diff --git a/.covignore b/.covignore new file mode 100644 index 0000000..ec7d1db --- /dev/null +++ b/.covignore @@ -0,0 +1,6 @@ +.pb.go +.pb.gw.go +/x/cctp/simulation +/x/cctp/client/cli +module_simulation.go +module.go diff --git a/.github/workflows/unit-tests.yaml b/.github/workflows/unit-tests.yaml index 62daab4..d8072af 100644 --- a/.github/workflows/unit-tests.yaml +++ b/.github/workflows/unit-tests.yaml @@ -1,3 +1,19 @@ +# Copyright 2024 Circle Internet Group, Inc. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 + name: Unit Tests on: @@ -27,6 +43,8 @@ jobs: needs: unit-tests if: github.event_name == 'pull_request' uses: circlefin/circle-public-github-workflows/.github/workflows/pr-scan.yaml@v1 + with: + allow-reciprocal-licenses: false release-sbom: needs: unit-tests diff --git a/.gitignore b/.gitignore index acace8e..4fb6986 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .idea coverage.out +coverage.html diff --git a/.licenseignore b/.licenseignore new file mode 100644 index 0000000..ff099e1 --- /dev/null +++ b/.licenseignore @@ -0,0 +1,5 @@ +pkg:golang/github.com/hashicorp/go-plugin +pkg:golang/github.com/hashicorp/golang-lru +pkg:golang/github.com/hashicorp/golang-lru/v2 +pkg:golang/github.com/hashicorp/yamux +pkg:golang/pgregory.net/rapid diff --git a/Makefile b/Makefile index 833c164..1f86f36 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: proto-setup proto-format proto-lint proto-gen format lint test +.PHONY: proto-format proto-lint proto-gen format lint test all: proto-all format lint test ############################################################################### @@ -22,7 +22,8 @@ lint: ### Protobuf ### ############################################################################### -BUF_VERSION=1.27.1 +BUF_VERSION=1.34.0 +BUILDER_VERSION=0.14.0 proto-all: proto-format proto-lint proto-gen @@ -35,7 +36,7 @@ proto-format: proto-gen: @echo "šŸ¤– Generating code from protobuf..." @docker run --rm --volume "$(PWD)":/workspace --workdir /workspace \ - noble-cctp-proto sh ./proto/generate.sh + ghcr.io/cosmos/proto-builder:$(BUILDER_VERSION) sh ./proto/generate.sh @echo "āœ… Completed code generation!" proto-lint: @@ -44,16 +45,16 @@ proto-lint: bufbuild/buf:$(BUF_VERSION) lint @echo "āœ… Completed protobuf linting!" -proto-setup: - @echo "šŸ¤– Setting up protobuf environment..." - @docker build --rm --tag noble-cctp-proto:latest --file proto/Dockerfile . - @echo "āœ… Setup protobuf environment!" - ############################################################################### ### Testing ### ############################################################################### test: @echo "šŸ¤– Running tests..." - @go test -cover -race -v ./x/... + @go test -coverprofile=coverage.out -race ./x/... @echo "āœ… Completed tests!" + @grep -v -f .covignore coverage.out > coverage.filtered.out && rm coverage.out + @echo "\nšŸ“ Detailed coverage report, excluding files in .covignore:" + @go tool cover -func coverage.filtered.out + @go tool cover -html coverage.filtered.out -o coverage.html && rm coverage.filtered.out + @echo "\nšŸ“ Produced html coverage report at coverage.html, excluding files in .covignore" diff --git a/api/circle/cctp/module/v1/module.pulsar.go b/api/circle/cctp/module/v1/module.pulsar.go new file mode 100644 index 0000000..725ffd0 --- /dev/null +++ b/api/circle/cctp/module/v1/module.pulsar.go @@ -0,0 +1,503 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package modulev1 + +import ( + _ "cosmossdk.io/api/cosmos/app/v1alpha1" + fmt "fmt" + runtime "github.com/cosmos/cosmos-proto/runtime" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoiface "google.golang.org/protobuf/runtime/protoiface" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + io "io" + reflect "reflect" + sync "sync" +) + +var ( + md_Module protoreflect.MessageDescriptor +) + +func init() { + file_circle_cctp_module_v1_module_proto_init() + md_Module = File_circle_cctp_module_v1_module_proto.Messages().ByName("Module") +} + +var _ protoreflect.Message = (*fastReflection_Module)(nil) + +type fastReflection_Module Module + +func (x *Module) ProtoReflect() protoreflect.Message { + return (*fastReflection_Module)(x) +} + +func (x *Module) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_module_v1_module_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_Module_messageType fastReflection_Module_messageType +var _ protoreflect.MessageType = fastReflection_Module_messageType{} + +type fastReflection_Module_messageType struct{} + +func (x fastReflection_Module_messageType) Zero() protoreflect.Message { + return (*fastReflection_Module)(nil) +} +func (x fastReflection_Module_messageType) New() protoreflect.Message { + return new(fastReflection_Module) +} +func (x fastReflection_Module_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_Module +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_Module) Descriptor() protoreflect.MessageDescriptor { + return md_Module +} + +// 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_Module) Type() protoreflect.MessageType { + return _fastReflection_Module_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_Module) New() protoreflect.Message { + return new(fastReflection_Module) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_Module) Interface() protoreflect.ProtoMessage { + return (*Module)(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_Module) 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_Module) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.module.v1.Module")) + } + panic(fmt.Errorf("message circle.cctp.module.v1.Module 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_Module) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.module.v1.Module")) + } + panic(fmt.Errorf("message circle.cctp.module.v1.Module 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_Module) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.module.v1.Module")) + } + panic(fmt.Errorf("message circle.cctp.module.v1.Module 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_Module) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.module.v1.Module")) + } + panic(fmt.Errorf("message circle.cctp.module.v1.Module 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_Module) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.module.v1.Module")) + } + panic(fmt.Errorf("message circle.cctp.module.v1.Module 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_Module) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.module.v1.Module")) + } + panic(fmt.Errorf("message circle.cctp.module.v1.Module 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_Module) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.module.v1.Module", 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_Module) 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_Module) 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_Module) 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_Module) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*Module) + 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().(*Module) + 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().(*Module) + 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: Module: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Module: 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, + } +} + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.0 +// protoc (unknown) +// source: circle/cctp/module/v1/module.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) +) + +// Module is the config object of the CCTP module. +type Module struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *Module) Reset() { + *x = Module{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_module_v1_module_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Module) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Module) ProtoMessage() {} + +// Deprecated: Use Module.ProtoReflect.Descriptor instead. +func (*Module) Descriptor() ([]byte, []int) { + return file_circle_cctp_module_v1_module_proto_rawDescGZIP(), []int{0} +} + +var File_circle_cctp_module_v1_module_proto protoreflect.FileDescriptor + +var file_circle_cctp_module_v1_module_proto_rawDesc = []byte{ + 0x0a, 0x22, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2f, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x6d, 0x6f, + 0x64, 0x75, 0x6c, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, + 0x70, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x20, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x38, 0x0a, + 0x06, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x3a, 0x2e, 0xba, 0xc0, 0x96, 0xda, 0x01, 0x28, 0x0a, + 0x26, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x69, 0x72, 0x63, + 0x6c, 0x65, 0x66, 0x69, 0x6e, 0x2f, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2d, 0x63, 0x63, 0x74, 0x70, + 0x2f, 0x78, 0x2f, 0x63, 0x63, 0x74, 0x70, 0x42, 0xe3, 0x01, 0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x2e, + 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x6d, 0x6f, 0x64, 0x75, + 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x0b, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x72, 0x6f, + 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x42, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, + 0x2f, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x66, 0x69, 0x6e, 0x2f, 0x6e, 0x6f, 0x62, 0x6c, 0x65, + 0x2d, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, + 0x2f, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2f, 0x76, 0x31, 0x3b, + 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x43, 0x4d, 0xaa, 0x02, + 0x15, 0x43, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x43, 0x63, 0x74, 0x70, 0x2e, 0x4d, 0x6f, 0x64, + 0x75, 0x6c, 0x65, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x15, 0x43, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x5c, + 0x43, 0x63, 0x74, 0x70, 0x5c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5c, 0x56, 0x31, 0xe2, 0x02, + 0x21, 0x43, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x5c, 0x43, 0x63, 0x74, 0x70, 0x5c, 0x4d, 0x6f, 0x64, + 0x75, 0x6c, 0x65, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0xea, 0x02, 0x18, 0x43, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x63, 0x74, + 0x70, 0x3a, 0x3a, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_circle_cctp_module_v1_module_proto_rawDescOnce sync.Once + file_circle_cctp_module_v1_module_proto_rawDescData = file_circle_cctp_module_v1_module_proto_rawDesc +) + +func file_circle_cctp_module_v1_module_proto_rawDescGZIP() []byte { + file_circle_cctp_module_v1_module_proto_rawDescOnce.Do(func() { + file_circle_cctp_module_v1_module_proto_rawDescData = protoimpl.X.CompressGZIP(file_circle_cctp_module_v1_module_proto_rawDescData) + }) + return file_circle_cctp_module_v1_module_proto_rawDescData +} + +var file_circle_cctp_module_v1_module_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_circle_cctp_module_v1_module_proto_goTypes = []interface{}{ + (*Module)(nil), // 0: circle.cctp.module.v1.Module +} +var file_circle_cctp_module_v1_module_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_circle_cctp_module_v1_module_proto_init() } +func file_circle_cctp_module_v1_module_proto_init() { + if File_circle_cctp_module_v1_module_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_circle_cctp_module_v1_module_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Module); 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_circle_cctp_module_v1_module_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_circle_cctp_module_v1_module_proto_goTypes, + DependencyIndexes: file_circle_cctp_module_v1_module_proto_depIdxs, + MessageInfos: file_circle_cctp_module_v1_module_proto_msgTypes, + }.Build() + File_circle_cctp_module_v1_module_proto = out.File + file_circle_cctp_module_v1_module_proto_rawDesc = nil + file_circle_cctp_module_v1_module_proto_goTypes = nil + file_circle_cctp_module_v1_module_proto_depIdxs = nil +} diff --git a/api/circle/cctp/v1/attester.pulsar.go b/api/circle/cctp/v1/attester.pulsar.go new file mode 100644 index 0000000..f4f38ac --- /dev/null +++ b/api/circle/cctp/v1/attester.pulsar.go @@ -0,0 +1,585 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package cctpv1 + +import ( + fmt "fmt" + runtime "github.com/cosmos/cosmos-proto/runtime" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoiface "google.golang.org/protobuf/runtime/protoiface" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + io "io" + reflect "reflect" + sync "sync" +) + +var ( + md_Attester protoreflect.MessageDescriptor + fd_Attester_attester protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_attester_proto_init() + md_Attester = File_circle_cctp_v1_attester_proto.Messages().ByName("Attester") + fd_Attester_attester = md_Attester.Fields().ByName("attester") +} + +var _ protoreflect.Message = (*fastReflection_Attester)(nil) + +type fastReflection_Attester Attester + +func (x *Attester) ProtoReflect() protoreflect.Message { + return (*fastReflection_Attester)(x) +} + +func (x *Attester) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_attester_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_Attester_messageType fastReflection_Attester_messageType +var _ protoreflect.MessageType = fastReflection_Attester_messageType{} + +type fastReflection_Attester_messageType struct{} + +func (x fastReflection_Attester_messageType) Zero() protoreflect.Message { + return (*fastReflection_Attester)(nil) +} +func (x fastReflection_Attester_messageType) New() protoreflect.Message { + return new(fastReflection_Attester) +} +func (x fastReflection_Attester_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_Attester +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_Attester) Descriptor() protoreflect.MessageDescriptor { + return md_Attester +} + +// 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_Attester) Type() protoreflect.MessageType { + return _fastReflection_Attester_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_Attester) New() protoreflect.Message { + return new(fastReflection_Attester) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_Attester) Interface() protoreflect.ProtoMessage { + return (*Attester)(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_Attester) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Attester != "" { + value := protoreflect.ValueOfString(x.Attester) + if !f(fd_Attester_attester, 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_Attester) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.Attester.attester": + return x.Attester != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.Attester")) + } + panic(fmt.Errorf("message circle.cctp.v1.Attester 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_Attester) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.Attester.attester": + x.Attester = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.Attester")) + } + panic(fmt.Errorf("message circle.cctp.v1.Attester 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_Attester) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.Attester.attester": + value := x.Attester + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.Attester")) + } + panic(fmt.Errorf("message circle.cctp.v1.Attester 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_Attester) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.Attester.attester": + x.Attester = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.Attester")) + } + panic(fmt.Errorf("message circle.cctp.v1.Attester 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_Attester) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.Attester.attester": + panic(fmt.Errorf("field attester of message circle.cctp.v1.Attester is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.Attester")) + } + panic(fmt.Errorf("message circle.cctp.v1.Attester 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_Attester) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.Attester.attester": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.Attester")) + } + panic(fmt.Errorf("message circle.cctp.v1.Attester 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_Attester) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.Attester", 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_Attester) 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_Attester) 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_Attester) 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_Attester) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*Attester) + 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.Attester) + 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().(*Attester) + 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.Attester) > 0 { + i -= len(x.Attester) + copy(dAtA[i:], x.Attester) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Attester))) + 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().(*Attester) + 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: Attester: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Attester: 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 Attester", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Attester = 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, + } +} + +// +// Copyright (c) 2023, Ā© Circle Internet Financial, LTD. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.0 +// protoc (unknown) +// source: circle/cctp/v1/attester.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) +) + +// * +// A public key used to verify message signatures +// @param attester ECDSA uncompressed public key, hex encoded +type Attester struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Attester string `protobuf:"bytes,1,opt,name=attester,proto3" json:"attester,omitempty"` +} + +func (x *Attester) Reset() { + *x = Attester{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_attester_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Attester) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Attester) ProtoMessage() {} + +// Deprecated: Use Attester.ProtoReflect.Descriptor instead. +func (*Attester) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_attester_proto_rawDescGZIP(), []int{0} +} + +func (x *Attester) GetAttester() string { + if x != nil { + return x.Attester + } + return "" +} + +var File_circle_cctp_v1_attester_proto protoreflect.FileDescriptor + +var file_circle_cctp_v1_attester_proto_rawDesc = []byte{ + 0x0a, 0x1d, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2f, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x76, 0x31, + 0x2f, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, + 0x0e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x22, + 0x26, 0x0a, 0x08, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x61, + 0x74, 0x74, 0x65, 0x73, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x61, + 0x74, 0x74, 0x65, 0x73, 0x74, 0x65, 0x72, 0x42, 0xb8, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, + 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x42, 0x0d, + 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, + 0x39, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x69, 0x72, 0x63, + 0x6c, 0x65, 0x66, 0x69, 0x6e, 0x2f, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2d, 0x63, 0x63, 0x74, 0x70, + 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2f, 0x63, 0x63, 0x74, 0x70, + 0x2f, 0x76, 0x31, 0x3b, 0x63, 0x63, 0x74, 0x70, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x43, 0x58, + 0xaa, 0x02, 0x0e, 0x43, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x43, 0x63, 0x74, 0x70, 0x2e, 0x56, + 0x31, 0xca, 0x02, 0x0e, 0x43, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x5c, 0x43, 0x63, 0x74, 0x70, 0x5c, + 0x56, 0x31, 0xe2, 0x02, 0x1a, 0x43, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x5c, 0x43, 0x63, 0x74, 0x70, + 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, + 0x02, 0x10, 0x43, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x63, 0x74, 0x70, 0x3a, 0x3a, + 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_circle_cctp_v1_attester_proto_rawDescOnce sync.Once + file_circle_cctp_v1_attester_proto_rawDescData = file_circle_cctp_v1_attester_proto_rawDesc +) + +func file_circle_cctp_v1_attester_proto_rawDescGZIP() []byte { + file_circle_cctp_v1_attester_proto_rawDescOnce.Do(func() { + file_circle_cctp_v1_attester_proto_rawDescData = protoimpl.X.CompressGZIP(file_circle_cctp_v1_attester_proto_rawDescData) + }) + return file_circle_cctp_v1_attester_proto_rawDescData +} + +var file_circle_cctp_v1_attester_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_circle_cctp_v1_attester_proto_goTypes = []interface{}{ + (*Attester)(nil), // 0: circle.cctp.v1.Attester +} +var file_circle_cctp_v1_attester_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_circle_cctp_v1_attester_proto_init() } +func file_circle_cctp_v1_attester_proto_init() { + if File_circle_cctp_v1_attester_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_circle_cctp_v1_attester_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Attester); 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_circle_cctp_v1_attester_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_circle_cctp_v1_attester_proto_goTypes, + DependencyIndexes: file_circle_cctp_v1_attester_proto_depIdxs, + MessageInfos: file_circle_cctp_v1_attester_proto_msgTypes, + }.Build() + File_circle_cctp_v1_attester_proto = out.File + file_circle_cctp_v1_attester_proto_rawDesc = nil + file_circle_cctp_v1_attester_proto_goTypes = nil + file_circle_cctp_v1_attester_proto_depIdxs = nil +} diff --git a/api/circle/cctp/v1/burn_message.pulsar.go b/api/circle/cctp/v1/burn_message.pulsar.go new file mode 100644 index 0000000..321ea28 --- /dev/null +++ b/api/circle/cctp/v1/burn_message.pulsar.go @@ -0,0 +1,880 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package cctpv1 + +import ( + fmt "fmt" + 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" + io "io" + reflect "reflect" + sync "sync" +) + +var ( + md_BurnMessage protoreflect.MessageDescriptor + fd_BurnMessage_version protoreflect.FieldDescriptor + fd_BurnMessage_burn_token protoreflect.FieldDescriptor + fd_BurnMessage_mint_recipient protoreflect.FieldDescriptor + fd_BurnMessage_amount protoreflect.FieldDescriptor + fd_BurnMessage_message_sender protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_burn_message_proto_init() + md_BurnMessage = File_circle_cctp_v1_burn_message_proto.Messages().ByName("BurnMessage") + fd_BurnMessage_version = md_BurnMessage.Fields().ByName("version") + fd_BurnMessage_burn_token = md_BurnMessage.Fields().ByName("burn_token") + fd_BurnMessage_mint_recipient = md_BurnMessage.Fields().ByName("mint_recipient") + fd_BurnMessage_amount = md_BurnMessage.Fields().ByName("amount") + fd_BurnMessage_message_sender = md_BurnMessage.Fields().ByName("message_sender") +} + +var _ protoreflect.Message = (*fastReflection_BurnMessage)(nil) + +type fastReflection_BurnMessage BurnMessage + +func (x *BurnMessage) ProtoReflect() protoreflect.Message { + return (*fastReflection_BurnMessage)(x) +} + +func (x *BurnMessage) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_burn_message_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_BurnMessage_messageType fastReflection_BurnMessage_messageType +var _ protoreflect.MessageType = fastReflection_BurnMessage_messageType{} + +type fastReflection_BurnMessage_messageType struct{} + +func (x fastReflection_BurnMessage_messageType) Zero() protoreflect.Message { + return (*fastReflection_BurnMessage)(nil) +} +func (x fastReflection_BurnMessage_messageType) New() protoreflect.Message { + return new(fastReflection_BurnMessage) +} +func (x fastReflection_BurnMessage_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_BurnMessage +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_BurnMessage) Descriptor() protoreflect.MessageDescriptor { + return md_BurnMessage +} + +// 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_BurnMessage) Type() protoreflect.MessageType { + return _fastReflection_BurnMessage_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_BurnMessage) New() protoreflect.Message { + return new(fastReflection_BurnMessage) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_BurnMessage) Interface() protoreflect.ProtoMessage { + return (*BurnMessage)(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_BurnMessage) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Version != uint32(0) { + value := protoreflect.ValueOfUint32(x.Version) + if !f(fd_BurnMessage_version, value) { + return + } + } + if len(x.BurnToken) != 0 { + value := protoreflect.ValueOfBytes(x.BurnToken) + if !f(fd_BurnMessage_burn_token, value) { + return + } + } + if len(x.MintRecipient) != 0 { + value := protoreflect.ValueOfBytes(x.MintRecipient) + if !f(fd_BurnMessage_mint_recipient, value) { + return + } + } + if x.Amount != "" { + value := protoreflect.ValueOfString(x.Amount) + if !f(fd_BurnMessage_amount, value) { + return + } + } + if len(x.MessageSender) != 0 { + value := protoreflect.ValueOfBytes(x.MessageSender) + if !f(fd_BurnMessage_message_sender, 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_BurnMessage) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.BurnMessage.version": + return x.Version != uint32(0) + case "circle.cctp.v1.BurnMessage.burn_token": + return len(x.BurnToken) != 0 + case "circle.cctp.v1.BurnMessage.mint_recipient": + return len(x.MintRecipient) != 0 + case "circle.cctp.v1.BurnMessage.amount": + return x.Amount != "" + case "circle.cctp.v1.BurnMessage.message_sender": + return len(x.MessageSender) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.BurnMessage")) + } + panic(fmt.Errorf("message circle.cctp.v1.BurnMessage 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_BurnMessage) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.BurnMessage.version": + x.Version = uint32(0) + case "circle.cctp.v1.BurnMessage.burn_token": + x.BurnToken = nil + case "circle.cctp.v1.BurnMessage.mint_recipient": + x.MintRecipient = nil + case "circle.cctp.v1.BurnMessage.amount": + x.Amount = "" + case "circle.cctp.v1.BurnMessage.message_sender": + x.MessageSender = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.BurnMessage")) + } + panic(fmt.Errorf("message circle.cctp.v1.BurnMessage 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_BurnMessage) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.BurnMessage.version": + value := x.Version + return protoreflect.ValueOfUint32(value) + case "circle.cctp.v1.BurnMessage.burn_token": + value := x.BurnToken + return protoreflect.ValueOfBytes(value) + case "circle.cctp.v1.BurnMessage.mint_recipient": + value := x.MintRecipient + return protoreflect.ValueOfBytes(value) + case "circle.cctp.v1.BurnMessage.amount": + value := x.Amount + return protoreflect.ValueOfString(value) + case "circle.cctp.v1.BurnMessage.message_sender": + value := x.MessageSender + return protoreflect.ValueOfBytes(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.BurnMessage")) + } + panic(fmt.Errorf("message circle.cctp.v1.BurnMessage 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_BurnMessage) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.BurnMessage.version": + x.Version = uint32(value.Uint()) + case "circle.cctp.v1.BurnMessage.burn_token": + x.BurnToken = value.Bytes() + case "circle.cctp.v1.BurnMessage.mint_recipient": + x.MintRecipient = value.Bytes() + case "circle.cctp.v1.BurnMessage.amount": + x.Amount = value.Interface().(string) + case "circle.cctp.v1.BurnMessage.message_sender": + x.MessageSender = value.Bytes() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.BurnMessage")) + } + panic(fmt.Errorf("message circle.cctp.v1.BurnMessage 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_BurnMessage) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.BurnMessage.version": + panic(fmt.Errorf("field version of message circle.cctp.v1.BurnMessage is not mutable")) + case "circle.cctp.v1.BurnMessage.burn_token": + panic(fmt.Errorf("field burn_token of message circle.cctp.v1.BurnMessage is not mutable")) + case "circle.cctp.v1.BurnMessage.mint_recipient": + panic(fmt.Errorf("field mint_recipient of message circle.cctp.v1.BurnMessage is not mutable")) + case "circle.cctp.v1.BurnMessage.amount": + panic(fmt.Errorf("field amount of message circle.cctp.v1.BurnMessage is not mutable")) + case "circle.cctp.v1.BurnMessage.message_sender": + panic(fmt.Errorf("field message_sender of message circle.cctp.v1.BurnMessage is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.BurnMessage")) + } + panic(fmt.Errorf("message circle.cctp.v1.BurnMessage 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_BurnMessage) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.BurnMessage.version": + return protoreflect.ValueOfUint32(uint32(0)) + case "circle.cctp.v1.BurnMessage.burn_token": + return protoreflect.ValueOfBytes(nil) + case "circle.cctp.v1.BurnMessage.mint_recipient": + return protoreflect.ValueOfBytes(nil) + case "circle.cctp.v1.BurnMessage.amount": + return protoreflect.ValueOfString("") + case "circle.cctp.v1.BurnMessage.message_sender": + return protoreflect.ValueOfBytes(nil) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.BurnMessage")) + } + panic(fmt.Errorf("message circle.cctp.v1.BurnMessage 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_BurnMessage) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.BurnMessage", 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_BurnMessage) 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_BurnMessage) 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_BurnMessage) 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_BurnMessage) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*BurnMessage) + 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.Version != 0 { + n += 1 + runtime.Sov(uint64(x.Version)) + } + l = len(x.BurnToken) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.MintRecipient) + 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.MessageSender) + 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().(*BurnMessage) + 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.MessageSender) > 0 { + i -= len(x.MessageSender) + copy(dAtA[i:], x.MessageSender) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.MessageSender))) + 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.MintRecipient) > 0 { + i -= len(x.MintRecipient) + copy(dAtA[i:], x.MintRecipient) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.MintRecipient))) + i-- + dAtA[i] = 0x1a + } + if len(x.BurnToken) > 0 { + i -= len(x.BurnToken) + copy(dAtA[i:], x.BurnToken) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.BurnToken))) + i-- + dAtA[i] = 0x12 + } + if x.Version != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Version)) + 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().(*BurnMessage) + 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: BurnMessage: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: BurnMessage: 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 Version", wireType) + } + x.Version = 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.Version |= 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 BurnToken", 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.BurnToken = append(x.BurnToken[:0], dAtA[iNdEx:postIndex]...) + if x.BurnToken == nil { + x.BurnToken = []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 MintRecipient", 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.MintRecipient = append(x.MintRecipient[:0], dAtA[iNdEx:postIndex]...) + if x.MintRecipient == nil { + x.MintRecipient = []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 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 MessageSender", 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.MessageSender = append(x.MessageSender[:0], dAtA[iNdEx:postIndex]...) + if x.MessageSender == nil { + x.MessageSender = []byte{} + } + 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, + } +} + +// +// Copyright (c) 2023, Ā© Circle Internet Financial, LTD. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.0 +// protoc (unknown) +// source: circle/cctp/v1/burn_message.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) +) + +// * +// Message format for BurnMessages +// @param version the message body version +// @param burn_token the burn token address on source domain as bytes32 +// @param mint_recipient the mint recipient address as bytes32 +// @param amount the burn amount +// @param message_sender the message sender +type BurnMessage struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` + BurnToken []byte `protobuf:"bytes,2,opt,name=burn_token,json=burnToken,proto3" json:"burn_token,omitempty"` + MintRecipient []byte `protobuf:"bytes,3,opt,name=mint_recipient,json=mintRecipient,proto3" json:"mint_recipient,omitempty"` + Amount string `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount,omitempty"` + MessageSender []byte `protobuf:"bytes,5,opt,name=message_sender,json=messageSender,proto3" json:"message_sender,omitempty"` +} + +func (x *BurnMessage) Reset() { + *x = BurnMessage{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_burn_message_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BurnMessage) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BurnMessage) ProtoMessage() {} + +// Deprecated: Use BurnMessage.ProtoReflect.Descriptor instead. +func (*BurnMessage) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_burn_message_proto_rawDescGZIP(), []int{0} +} + +func (x *BurnMessage) GetVersion() uint32 { + if x != nil { + return x.Version + } + return 0 +} + +func (x *BurnMessage) GetBurnToken() []byte { + if x != nil { + return x.BurnToken + } + return nil +} + +func (x *BurnMessage) GetMintRecipient() []byte { + if x != nil { + return x.MintRecipient + } + return nil +} + +func (x *BurnMessage) GetAmount() string { + if x != nil { + return x.Amount + } + return "" +} + +func (x *BurnMessage) GetMessageSender() []byte { + if x != nil { + return x.MessageSender + } + return nil +} + +var File_circle_cctp_v1_burn_message_proto protoreflect.FileDescriptor + +var file_circle_cctp_v1_burn_message_proto_rawDesc = []byte{ + 0x0a, 0x21, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2f, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x76, 0x31, + 0x2f, 0x62, 0x75, 0x72, 0x6e, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, + 0x2e, 0x76, 0x31, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, + 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xcb, 0x01, 0x0a, 0x0b, 0x42, 0x75, + 0x72, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, + 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, + 0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x62, 0x75, 0x72, 0x6e, 0x5f, 0x74, 0x6f, 0x6b, 0x65, + 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x62, 0x75, 0x72, 0x6e, 0x54, 0x6f, 0x6b, + 0x65, 0x6e, 0x12, 0x25, 0x0a, 0x0e, 0x6d, 0x69, 0x6e, 0x74, 0x5f, 0x72, 0x65, 0x63, 0x69, 0x70, + 0x69, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, 0x6d, 0x69, 0x6e, 0x74, + 0x52, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x35, 0x0a, 0x06, 0x61, 0x6d, 0x6f, + 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x1d, 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, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, + 0x12, 0x25, 0x0a, 0x0e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x65, 0x6e, 0x64, + 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, + 0x65, 0x53, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x42, 0xbb, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, + 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x42, 0x10, + 0x42, 0x75, 0x72, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, + 0x50, 0x01, 0x5a, 0x39, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, + 0x69, 0x72, 0x63, 0x6c, 0x65, 0x66, 0x69, 0x6e, 0x2f, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2d, 0x63, + 0x63, 0x74, 0x70, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2f, 0x63, + 0x63, 0x74, 0x70, 0x2f, 0x76, 0x31, 0x3b, 0x63, 0x63, 0x74, 0x70, 0x76, 0x31, 0xa2, 0x02, 0x03, + 0x43, 0x43, 0x58, 0xaa, 0x02, 0x0e, 0x43, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x43, 0x63, 0x74, + 0x70, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0e, 0x43, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x5c, 0x43, 0x63, + 0x74, 0x70, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1a, 0x43, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x5c, 0x43, + 0x63, 0x74, 0x70, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0xea, 0x02, 0x10, 0x43, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x63, 0x74, + 0x70, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_circle_cctp_v1_burn_message_proto_rawDescOnce sync.Once + file_circle_cctp_v1_burn_message_proto_rawDescData = file_circle_cctp_v1_burn_message_proto_rawDesc +) + +func file_circle_cctp_v1_burn_message_proto_rawDescGZIP() []byte { + file_circle_cctp_v1_burn_message_proto_rawDescOnce.Do(func() { + file_circle_cctp_v1_burn_message_proto_rawDescData = protoimpl.X.CompressGZIP(file_circle_cctp_v1_burn_message_proto_rawDescData) + }) + return file_circle_cctp_v1_burn_message_proto_rawDescData +} + +var file_circle_cctp_v1_burn_message_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_circle_cctp_v1_burn_message_proto_goTypes = []interface{}{ + (*BurnMessage)(nil), // 0: circle.cctp.v1.BurnMessage +} +var file_circle_cctp_v1_burn_message_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_circle_cctp_v1_burn_message_proto_init() } +func file_circle_cctp_v1_burn_message_proto_init() { + if File_circle_cctp_v1_burn_message_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_circle_cctp_v1_burn_message_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BurnMessage); 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_circle_cctp_v1_burn_message_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_circle_cctp_v1_burn_message_proto_goTypes, + DependencyIndexes: file_circle_cctp_v1_burn_message_proto_depIdxs, + MessageInfos: file_circle_cctp_v1_burn_message_proto_msgTypes, + }.Build() + File_circle_cctp_v1_burn_message_proto = out.File + file_circle_cctp_v1_burn_message_proto_rawDesc = nil + file_circle_cctp_v1_burn_message_proto_goTypes = nil + file_circle_cctp_v1_burn_message_proto_depIdxs = nil +} diff --git a/api/circle/cctp/v1/burning_and_minting_paused.pulsar.go b/api/circle/cctp/v1/burning_and_minting_paused.pulsar.go new file mode 100644 index 0000000..9ae6a99 --- /dev/null +++ b/api/circle/cctp/v1/burning_and_minting_paused.pulsar.go @@ -0,0 +1,578 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package cctpv1 + +import ( + fmt "fmt" + runtime "github.com/cosmos/cosmos-proto/runtime" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoiface "google.golang.org/protobuf/runtime/protoiface" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + io "io" + reflect "reflect" + sync "sync" +) + +var ( + md_BurningAndMintingPaused protoreflect.MessageDescriptor + fd_BurningAndMintingPaused_paused protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_burning_and_minting_paused_proto_init() + md_BurningAndMintingPaused = File_circle_cctp_v1_burning_and_minting_paused_proto.Messages().ByName("BurningAndMintingPaused") + fd_BurningAndMintingPaused_paused = md_BurningAndMintingPaused.Fields().ByName("paused") +} + +var _ protoreflect.Message = (*fastReflection_BurningAndMintingPaused)(nil) + +type fastReflection_BurningAndMintingPaused BurningAndMintingPaused + +func (x *BurningAndMintingPaused) ProtoReflect() protoreflect.Message { + return (*fastReflection_BurningAndMintingPaused)(x) +} + +func (x *BurningAndMintingPaused) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_burning_and_minting_paused_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_BurningAndMintingPaused_messageType fastReflection_BurningAndMintingPaused_messageType +var _ protoreflect.MessageType = fastReflection_BurningAndMintingPaused_messageType{} + +type fastReflection_BurningAndMintingPaused_messageType struct{} + +func (x fastReflection_BurningAndMintingPaused_messageType) Zero() protoreflect.Message { + return (*fastReflection_BurningAndMintingPaused)(nil) +} +func (x fastReflection_BurningAndMintingPaused_messageType) New() protoreflect.Message { + return new(fastReflection_BurningAndMintingPaused) +} +func (x fastReflection_BurningAndMintingPaused_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_BurningAndMintingPaused +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_BurningAndMintingPaused) Descriptor() protoreflect.MessageDescriptor { + return md_BurningAndMintingPaused +} + +// 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_BurningAndMintingPaused) Type() protoreflect.MessageType { + return _fastReflection_BurningAndMintingPaused_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_BurningAndMintingPaused) New() protoreflect.Message { + return new(fastReflection_BurningAndMintingPaused) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_BurningAndMintingPaused) Interface() protoreflect.ProtoMessage { + return (*BurningAndMintingPaused)(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_BurningAndMintingPaused) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Paused != false { + value := protoreflect.ValueOfBool(x.Paused) + if !f(fd_BurningAndMintingPaused_paused, 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_BurningAndMintingPaused) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.BurningAndMintingPaused.paused": + return x.Paused != false + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.BurningAndMintingPaused")) + } + panic(fmt.Errorf("message circle.cctp.v1.BurningAndMintingPaused 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_BurningAndMintingPaused) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.BurningAndMintingPaused.paused": + x.Paused = false + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.BurningAndMintingPaused")) + } + panic(fmt.Errorf("message circle.cctp.v1.BurningAndMintingPaused 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_BurningAndMintingPaused) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.BurningAndMintingPaused.paused": + value := x.Paused + return protoreflect.ValueOfBool(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.BurningAndMintingPaused")) + } + panic(fmt.Errorf("message circle.cctp.v1.BurningAndMintingPaused 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_BurningAndMintingPaused) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.BurningAndMintingPaused.paused": + x.Paused = value.Bool() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.BurningAndMintingPaused")) + } + panic(fmt.Errorf("message circle.cctp.v1.BurningAndMintingPaused 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_BurningAndMintingPaused) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.BurningAndMintingPaused.paused": + panic(fmt.Errorf("field paused of message circle.cctp.v1.BurningAndMintingPaused is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.BurningAndMintingPaused")) + } + panic(fmt.Errorf("message circle.cctp.v1.BurningAndMintingPaused 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_BurningAndMintingPaused) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.BurningAndMintingPaused.paused": + return protoreflect.ValueOfBool(false) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.BurningAndMintingPaused")) + } + panic(fmt.Errorf("message circle.cctp.v1.BurningAndMintingPaused 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_BurningAndMintingPaused) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.BurningAndMintingPaused", 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_BurningAndMintingPaused) 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_BurningAndMintingPaused) 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_BurningAndMintingPaused) 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_BurningAndMintingPaused) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*BurningAndMintingPaused) + 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.Paused { + 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().(*BurningAndMintingPaused) + 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.Paused { + i-- + if x.Paused { + 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().(*BurningAndMintingPaused) + 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: BurningAndMintingPaused: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: BurningAndMintingPaused: 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 Paused", 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.Paused = 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, + } +} + +// +// Copyright (c) 2023, Ā© Circle Internet Financial, LTD. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.0 +// protoc (unknown) +// source: circle/cctp/v1/burning_and_minting_paused.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) +) + +// * +// Message format for BurningAndMintingPaused +// @param paused true if paused, false if not paused +type BurningAndMintingPaused struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Paused bool `protobuf:"varint,1,opt,name=paused,proto3" json:"paused,omitempty"` +} + +func (x *BurningAndMintingPaused) Reset() { + *x = BurningAndMintingPaused{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_burning_and_minting_paused_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BurningAndMintingPaused) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BurningAndMintingPaused) ProtoMessage() {} + +// Deprecated: Use BurningAndMintingPaused.ProtoReflect.Descriptor instead. +func (*BurningAndMintingPaused) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_burning_and_minting_paused_proto_rawDescGZIP(), []int{0} +} + +func (x *BurningAndMintingPaused) GetPaused() bool { + if x != nil { + return x.Paused + } + return false +} + +var File_circle_cctp_v1_burning_and_minting_paused_proto protoreflect.FileDescriptor + +var file_circle_cctp_v1_burning_and_minting_paused_proto_rawDesc = []byte{ + 0x0a, 0x2f, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2f, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x76, 0x31, + 0x2f, 0x62, 0x75, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x5f, 0x61, 0x6e, 0x64, 0x5f, 0x6d, 0x69, 0x6e, + 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x61, 0x75, 0x73, 0x65, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x12, 0x0e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, + 0x31, 0x22, 0x31, 0x0a, 0x17, 0x42, 0x75, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x41, 0x6e, 0x64, 0x4d, + 0x69, 0x6e, 0x74, 0x69, 0x6e, 0x67, 0x50, 0x61, 0x75, 0x73, 0x65, 0x64, 0x12, 0x16, 0x0a, 0x06, + 0x70, 0x61, 0x75, 0x73, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x70, 0x61, + 0x75, 0x73, 0x65, 0x64, 0x42, 0xc7, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x69, 0x72, + 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x42, 0x1c, 0x42, 0x75, 0x72, + 0x6e, 0x69, 0x6e, 0x67, 0x41, 0x6e, 0x64, 0x4d, 0x69, 0x6e, 0x74, 0x69, 0x6e, 0x67, 0x50, 0x61, + 0x75, 0x73, 0x65, 0x64, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x39, 0x67, 0x69, 0x74, + 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x66, 0x69, + 0x6e, 0x2f, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2d, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x61, 0x70, 0x69, + 0x2f, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2f, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x76, 0x31, 0x3b, + 0x63, 0x63, 0x74, 0x70, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x43, 0x58, 0xaa, 0x02, 0x0e, 0x43, + 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x43, 0x63, 0x74, 0x70, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0e, + 0x43, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x5c, 0x43, 0x63, 0x74, 0x70, 0x5c, 0x56, 0x31, 0xe2, 0x02, + 0x1a, 0x43, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x5c, 0x43, 0x63, 0x74, 0x70, 0x5c, 0x56, 0x31, 0x5c, + 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x10, 0x43, 0x69, + 0x72, 0x63, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x63, 0x74, 0x70, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_circle_cctp_v1_burning_and_minting_paused_proto_rawDescOnce sync.Once + file_circle_cctp_v1_burning_and_minting_paused_proto_rawDescData = file_circle_cctp_v1_burning_and_minting_paused_proto_rawDesc +) + +func file_circle_cctp_v1_burning_and_minting_paused_proto_rawDescGZIP() []byte { + file_circle_cctp_v1_burning_and_minting_paused_proto_rawDescOnce.Do(func() { + file_circle_cctp_v1_burning_and_minting_paused_proto_rawDescData = protoimpl.X.CompressGZIP(file_circle_cctp_v1_burning_and_minting_paused_proto_rawDescData) + }) + return file_circle_cctp_v1_burning_and_minting_paused_proto_rawDescData +} + +var file_circle_cctp_v1_burning_and_minting_paused_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_circle_cctp_v1_burning_and_minting_paused_proto_goTypes = []interface{}{ + (*BurningAndMintingPaused)(nil), // 0: circle.cctp.v1.BurningAndMintingPaused +} +var file_circle_cctp_v1_burning_and_minting_paused_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_circle_cctp_v1_burning_and_minting_paused_proto_init() } +func file_circle_cctp_v1_burning_and_minting_paused_proto_init() { + if File_circle_cctp_v1_burning_and_minting_paused_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_circle_cctp_v1_burning_and_minting_paused_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BurningAndMintingPaused); 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_circle_cctp_v1_burning_and_minting_paused_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_circle_cctp_v1_burning_and_minting_paused_proto_goTypes, + DependencyIndexes: file_circle_cctp_v1_burning_and_minting_paused_proto_depIdxs, + MessageInfos: file_circle_cctp_v1_burning_and_minting_paused_proto_msgTypes, + }.Build() + File_circle_cctp_v1_burning_and_minting_paused_proto = out.File + file_circle_cctp_v1_burning_and_minting_paused_proto_rawDesc = nil + file_circle_cctp_v1_burning_and_minting_paused_proto_goTypes = nil + file_circle_cctp_v1_burning_and_minting_paused_proto_depIdxs = nil +} diff --git a/api/circle/cctp/v1/events.pulsar.go b/api/circle/cctp/v1/events.pulsar.go new file mode 100644 index 0000000..4829f00 --- /dev/null +++ b/api/circle/cctp/v1/events.pulsar.go @@ -0,0 +1,12077 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package cctpv1 + +import ( + fmt "fmt" + 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" + io "io" + reflect "reflect" + sync "sync" +) + +var ( + md_AttesterEnabled protoreflect.MessageDescriptor + fd_AttesterEnabled_attester protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_events_proto_init() + md_AttesterEnabled = File_circle_cctp_v1_events_proto.Messages().ByName("AttesterEnabled") + fd_AttesterEnabled_attester = md_AttesterEnabled.Fields().ByName("attester") +} + +var _ protoreflect.Message = (*fastReflection_AttesterEnabled)(nil) + +type fastReflection_AttesterEnabled AttesterEnabled + +func (x *AttesterEnabled) ProtoReflect() protoreflect.Message { + return (*fastReflection_AttesterEnabled)(x) +} + +func (x *AttesterEnabled) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_AttesterEnabled_messageType fastReflection_AttesterEnabled_messageType +var _ protoreflect.MessageType = fastReflection_AttesterEnabled_messageType{} + +type fastReflection_AttesterEnabled_messageType struct{} + +func (x fastReflection_AttesterEnabled_messageType) Zero() protoreflect.Message { + return (*fastReflection_AttesterEnabled)(nil) +} +func (x fastReflection_AttesterEnabled_messageType) New() protoreflect.Message { + return new(fastReflection_AttesterEnabled) +} +func (x fastReflection_AttesterEnabled_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_AttesterEnabled +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_AttesterEnabled) Descriptor() protoreflect.MessageDescriptor { + return md_AttesterEnabled +} + +// 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_AttesterEnabled) Type() protoreflect.MessageType { + return _fastReflection_AttesterEnabled_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_AttesterEnabled) New() protoreflect.Message { + return new(fastReflection_AttesterEnabled) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_AttesterEnabled) Interface() protoreflect.ProtoMessage { + return (*AttesterEnabled)(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_AttesterEnabled) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Attester != "" { + value := protoreflect.ValueOfString(x.Attester) + if !f(fd_AttesterEnabled_attester, 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_AttesterEnabled) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.AttesterEnabled.attester": + return x.Attester != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.AttesterEnabled")) + } + panic(fmt.Errorf("message circle.cctp.v1.AttesterEnabled 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_AttesterEnabled) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.AttesterEnabled.attester": + x.Attester = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.AttesterEnabled")) + } + panic(fmt.Errorf("message circle.cctp.v1.AttesterEnabled 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_AttesterEnabled) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.AttesterEnabled.attester": + value := x.Attester + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.AttesterEnabled")) + } + panic(fmt.Errorf("message circle.cctp.v1.AttesterEnabled 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_AttesterEnabled) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.AttesterEnabled.attester": + x.Attester = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.AttesterEnabled")) + } + panic(fmt.Errorf("message circle.cctp.v1.AttesterEnabled 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_AttesterEnabled) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.AttesterEnabled.attester": + panic(fmt.Errorf("field attester of message circle.cctp.v1.AttesterEnabled is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.AttesterEnabled")) + } + panic(fmt.Errorf("message circle.cctp.v1.AttesterEnabled 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_AttesterEnabled) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.AttesterEnabled.attester": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.AttesterEnabled")) + } + panic(fmt.Errorf("message circle.cctp.v1.AttesterEnabled 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_AttesterEnabled) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.AttesterEnabled", 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_AttesterEnabled) 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_AttesterEnabled) 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_AttesterEnabled) 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_AttesterEnabled) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*AttesterEnabled) + 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.Attester) + 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().(*AttesterEnabled) + 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.Attester) > 0 { + i -= len(x.Attester) + copy(dAtA[i:], x.Attester) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Attester))) + 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().(*AttesterEnabled) + 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: AttesterEnabled: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: AttesterEnabled: 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 Attester", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Attester = 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_AttesterDisabled protoreflect.MessageDescriptor + fd_AttesterDisabled_attester protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_events_proto_init() + md_AttesterDisabled = File_circle_cctp_v1_events_proto.Messages().ByName("AttesterDisabled") + fd_AttesterDisabled_attester = md_AttesterDisabled.Fields().ByName("attester") +} + +var _ protoreflect.Message = (*fastReflection_AttesterDisabled)(nil) + +type fastReflection_AttesterDisabled AttesterDisabled + +func (x *AttesterDisabled) ProtoReflect() protoreflect.Message { + return (*fastReflection_AttesterDisabled)(x) +} + +func (x *AttesterDisabled) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_AttesterDisabled_messageType fastReflection_AttesterDisabled_messageType +var _ protoreflect.MessageType = fastReflection_AttesterDisabled_messageType{} + +type fastReflection_AttesterDisabled_messageType struct{} + +func (x fastReflection_AttesterDisabled_messageType) Zero() protoreflect.Message { + return (*fastReflection_AttesterDisabled)(nil) +} +func (x fastReflection_AttesterDisabled_messageType) New() protoreflect.Message { + return new(fastReflection_AttesterDisabled) +} +func (x fastReflection_AttesterDisabled_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_AttesterDisabled +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_AttesterDisabled) Descriptor() protoreflect.MessageDescriptor { + return md_AttesterDisabled +} + +// 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_AttesterDisabled) Type() protoreflect.MessageType { + return _fastReflection_AttesterDisabled_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_AttesterDisabled) New() protoreflect.Message { + return new(fastReflection_AttesterDisabled) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_AttesterDisabled) Interface() protoreflect.ProtoMessage { + return (*AttesterDisabled)(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_AttesterDisabled) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Attester != "" { + value := protoreflect.ValueOfString(x.Attester) + if !f(fd_AttesterDisabled_attester, 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_AttesterDisabled) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.AttesterDisabled.attester": + return x.Attester != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.AttesterDisabled")) + } + panic(fmt.Errorf("message circle.cctp.v1.AttesterDisabled 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_AttesterDisabled) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.AttesterDisabled.attester": + x.Attester = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.AttesterDisabled")) + } + panic(fmt.Errorf("message circle.cctp.v1.AttesterDisabled 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_AttesterDisabled) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.AttesterDisabled.attester": + value := x.Attester + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.AttesterDisabled")) + } + panic(fmt.Errorf("message circle.cctp.v1.AttesterDisabled 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_AttesterDisabled) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.AttesterDisabled.attester": + x.Attester = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.AttesterDisabled")) + } + panic(fmt.Errorf("message circle.cctp.v1.AttesterDisabled 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_AttesterDisabled) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.AttesterDisabled.attester": + panic(fmt.Errorf("field attester of message circle.cctp.v1.AttesterDisabled is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.AttesterDisabled")) + } + panic(fmt.Errorf("message circle.cctp.v1.AttesterDisabled 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_AttesterDisabled) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.AttesterDisabled.attester": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.AttesterDisabled")) + } + panic(fmt.Errorf("message circle.cctp.v1.AttesterDisabled 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_AttesterDisabled) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.AttesterDisabled", 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_AttesterDisabled) 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_AttesterDisabled) 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_AttesterDisabled) 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_AttesterDisabled) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*AttesterDisabled) + 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.Attester) + 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().(*AttesterDisabled) + 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.Attester) > 0 { + i -= len(x.Attester) + copy(dAtA[i:], x.Attester) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Attester))) + 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().(*AttesterDisabled) + 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: AttesterDisabled: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: AttesterDisabled: 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 Attester", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Attester = 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_SignatureThresholdUpdated protoreflect.MessageDescriptor + fd_SignatureThresholdUpdated_old_signature_threshold protoreflect.FieldDescriptor + fd_SignatureThresholdUpdated_new_signature_threshold protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_events_proto_init() + md_SignatureThresholdUpdated = File_circle_cctp_v1_events_proto.Messages().ByName("SignatureThresholdUpdated") + fd_SignatureThresholdUpdated_old_signature_threshold = md_SignatureThresholdUpdated.Fields().ByName("old_signature_threshold") + fd_SignatureThresholdUpdated_new_signature_threshold = md_SignatureThresholdUpdated.Fields().ByName("new_signature_threshold") +} + +var _ protoreflect.Message = (*fastReflection_SignatureThresholdUpdated)(nil) + +type fastReflection_SignatureThresholdUpdated SignatureThresholdUpdated + +func (x *SignatureThresholdUpdated) ProtoReflect() protoreflect.Message { + return (*fastReflection_SignatureThresholdUpdated)(x) +} + +func (x *SignatureThresholdUpdated) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_SignatureThresholdUpdated_messageType fastReflection_SignatureThresholdUpdated_messageType +var _ protoreflect.MessageType = fastReflection_SignatureThresholdUpdated_messageType{} + +type fastReflection_SignatureThresholdUpdated_messageType struct{} + +func (x fastReflection_SignatureThresholdUpdated_messageType) Zero() protoreflect.Message { + return (*fastReflection_SignatureThresholdUpdated)(nil) +} +func (x fastReflection_SignatureThresholdUpdated_messageType) New() protoreflect.Message { + return new(fastReflection_SignatureThresholdUpdated) +} +func (x fastReflection_SignatureThresholdUpdated_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_SignatureThresholdUpdated +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_SignatureThresholdUpdated) Descriptor() protoreflect.MessageDescriptor { + return md_SignatureThresholdUpdated +} + +// 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_SignatureThresholdUpdated) Type() protoreflect.MessageType { + return _fastReflection_SignatureThresholdUpdated_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_SignatureThresholdUpdated) New() protoreflect.Message { + return new(fastReflection_SignatureThresholdUpdated) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_SignatureThresholdUpdated) Interface() protoreflect.ProtoMessage { + return (*SignatureThresholdUpdated)(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_SignatureThresholdUpdated) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.OldSignatureThreshold != uint64(0) { + value := protoreflect.ValueOfUint64(x.OldSignatureThreshold) + if !f(fd_SignatureThresholdUpdated_old_signature_threshold, value) { + return + } + } + if x.NewSignatureThreshold != uint64(0) { + value := protoreflect.ValueOfUint64(x.NewSignatureThreshold) + if !f(fd_SignatureThresholdUpdated_new_signature_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_SignatureThresholdUpdated) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.SignatureThresholdUpdated.old_signature_threshold": + return x.OldSignatureThreshold != uint64(0) + case "circle.cctp.v1.SignatureThresholdUpdated.new_signature_threshold": + return x.NewSignatureThreshold != uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.SignatureThresholdUpdated")) + } + panic(fmt.Errorf("message circle.cctp.v1.SignatureThresholdUpdated 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_SignatureThresholdUpdated) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.SignatureThresholdUpdated.old_signature_threshold": + x.OldSignatureThreshold = uint64(0) + case "circle.cctp.v1.SignatureThresholdUpdated.new_signature_threshold": + x.NewSignatureThreshold = uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.SignatureThresholdUpdated")) + } + panic(fmt.Errorf("message circle.cctp.v1.SignatureThresholdUpdated 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_SignatureThresholdUpdated) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.SignatureThresholdUpdated.old_signature_threshold": + value := x.OldSignatureThreshold + return protoreflect.ValueOfUint64(value) + case "circle.cctp.v1.SignatureThresholdUpdated.new_signature_threshold": + value := x.NewSignatureThreshold + return protoreflect.ValueOfUint64(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.SignatureThresholdUpdated")) + } + panic(fmt.Errorf("message circle.cctp.v1.SignatureThresholdUpdated 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_SignatureThresholdUpdated) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.SignatureThresholdUpdated.old_signature_threshold": + x.OldSignatureThreshold = value.Uint() + case "circle.cctp.v1.SignatureThresholdUpdated.new_signature_threshold": + x.NewSignatureThreshold = value.Uint() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.SignatureThresholdUpdated")) + } + panic(fmt.Errorf("message circle.cctp.v1.SignatureThresholdUpdated 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_SignatureThresholdUpdated) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.SignatureThresholdUpdated.old_signature_threshold": + panic(fmt.Errorf("field old_signature_threshold of message circle.cctp.v1.SignatureThresholdUpdated is not mutable")) + case "circle.cctp.v1.SignatureThresholdUpdated.new_signature_threshold": + panic(fmt.Errorf("field new_signature_threshold of message circle.cctp.v1.SignatureThresholdUpdated is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.SignatureThresholdUpdated")) + } + panic(fmt.Errorf("message circle.cctp.v1.SignatureThresholdUpdated 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_SignatureThresholdUpdated) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.SignatureThresholdUpdated.old_signature_threshold": + return protoreflect.ValueOfUint64(uint64(0)) + case "circle.cctp.v1.SignatureThresholdUpdated.new_signature_threshold": + return protoreflect.ValueOfUint64(uint64(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.SignatureThresholdUpdated")) + } + panic(fmt.Errorf("message circle.cctp.v1.SignatureThresholdUpdated 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_SignatureThresholdUpdated) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.SignatureThresholdUpdated", 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_SignatureThresholdUpdated) 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_SignatureThresholdUpdated) 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_SignatureThresholdUpdated) 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_SignatureThresholdUpdated) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*SignatureThresholdUpdated) + 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.OldSignatureThreshold != 0 { + n += 1 + runtime.Sov(uint64(x.OldSignatureThreshold)) + } + if x.NewSignatureThreshold != 0 { + n += 1 + runtime.Sov(uint64(x.NewSignatureThreshold)) + } + 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().(*SignatureThresholdUpdated) + 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.NewSignatureThreshold != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.NewSignatureThreshold)) + i-- + dAtA[i] = 0x10 + } + if x.OldSignatureThreshold != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.OldSignatureThreshold)) + 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().(*SignatureThresholdUpdated) + 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: SignatureThresholdUpdated: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: SignatureThresholdUpdated: 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 OldSignatureThreshold", wireType) + } + x.OldSignatureThreshold = 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.OldSignatureThreshold |= 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 NewSignatureThreshold", wireType) + } + x.NewSignatureThreshold = 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.NewSignatureThreshold |= 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_OwnerUpdated protoreflect.MessageDescriptor + fd_OwnerUpdated_previous_owner protoreflect.FieldDescriptor + fd_OwnerUpdated_new_owner protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_events_proto_init() + md_OwnerUpdated = File_circle_cctp_v1_events_proto.Messages().ByName("OwnerUpdated") + fd_OwnerUpdated_previous_owner = md_OwnerUpdated.Fields().ByName("previous_owner") + fd_OwnerUpdated_new_owner = md_OwnerUpdated.Fields().ByName("new_owner") +} + +var _ protoreflect.Message = (*fastReflection_OwnerUpdated)(nil) + +type fastReflection_OwnerUpdated OwnerUpdated + +func (x *OwnerUpdated) ProtoReflect() protoreflect.Message { + return (*fastReflection_OwnerUpdated)(x) +} + +func (x *OwnerUpdated) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_OwnerUpdated_messageType fastReflection_OwnerUpdated_messageType +var _ protoreflect.MessageType = fastReflection_OwnerUpdated_messageType{} + +type fastReflection_OwnerUpdated_messageType struct{} + +func (x fastReflection_OwnerUpdated_messageType) Zero() protoreflect.Message { + return (*fastReflection_OwnerUpdated)(nil) +} +func (x fastReflection_OwnerUpdated_messageType) New() protoreflect.Message { + return new(fastReflection_OwnerUpdated) +} +func (x fastReflection_OwnerUpdated_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_OwnerUpdated +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_OwnerUpdated) Descriptor() protoreflect.MessageDescriptor { + return md_OwnerUpdated +} + +// 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_OwnerUpdated) Type() protoreflect.MessageType { + return _fastReflection_OwnerUpdated_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_OwnerUpdated) New() protoreflect.Message { + return new(fastReflection_OwnerUpdated) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_OwnerUpdated) Interface() protoreflect.ProtoMessage { + return (*OwnerUpdated)(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_OwnerUpdated) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.PreviousOwner != "" { + value := protoreflect.ValueOfString(x.PreviousOwner) + if !f(fd_OwnerUpdated_previous_owner, value) { + return + } + } + if x.NewOwner != "" { + value := protoreflect.ValueOfString(x.NewOwner) + if !f(fd_OwnerUpdated_new_owner, 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_OwnerUpdated) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.OwnerUpdated.previous_owner": + return x.PreviousOwner != "" + case "circle.cctp.v1.OwnerUpdated.new_owner": + return x.NewOwner != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.OwnerUpdated")) + } + panic(fmt.Errorf("message circle.cctp.v1.OwnerUpdated 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_OwnerUpdated) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.OwnerUpdated.previous_owner": + x.PreviousOwner = "" + case "circle.cctp.v1.OwnerUpdated.new_owner": + x.NewOwner = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.OwnerUpdated")) + } + panic(fmt.Errorf("message circle.cctp.v1.OwnerUpdated 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_OwnerUpdated) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.OwnerUpdated.previous_owner": + value := x.PreviousOwner + return protoreflect.ValueOfString(value) + case "circle.cctp.v1.OwnerUpdated.new_owner": + value := x.NewOwner + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.OwnerUpdated")) + } + panic(fmt.Errorf("message circle.cctp.v1.OwnerUpdated 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_OwnerUpdated) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.OwnerUpdated.previous_owner": + x.PreviousOwner = value.Interface().(string) + case "circle.cctp.v1.OwnerUpdated.new_owner": + x.NewOwner = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.OwnerUpdated")) + } + panic(fmt.Errorf("message circle.cctp.v1.OwnerUpdated 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_OwnerUpdated) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.OwnerUpdated.previous_owner": + panic(fmt.Errorf("field previous_owner of message circle.cctp.v1.OwnerUpdated is not mutable")) + case "circle.cctp.v1.OwnerUpdated.new_owner": + panic(fmt.Errorf("field new_owner of message circle.cctp.v1.OwnerUpdated is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.OwnerUpdated")) + } + panic(fmt.Errorf("message circle.cctp.v1.OwnerUpdated 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_OwnerUpdated) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.OwnerUpdated.previous_owner": + return protoreflect.ValueOfString("") + case "circle.cctp.v1.OwnerUpdated.new_owner": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.OwnerUpdated")) + } + panic(fmt.Errorf("message circle.cctp.v1.OwnerUpdated 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_OwnerUpdated) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.OwnerUpdated", 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_OwnerUpdated) 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_OwnerUpdated) 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_OwnerUpdated) 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_OwnerUpdated) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*OwnerUpdated) + 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.PreviousOwner) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.NewOwner) + 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().(*OwnerUpdated) + 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.NewOwner) > 0 { + i -= len(x.NewOwner) + copy(dAtA[i:], x.NewOwner) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.NewOwner))) + i-- + dAtA[i] = 0x12 + } + if len(x.PreviousOwner) > 0 { + i -= len(x.PreviousOwner) + copy(dAtA[i:], x.PreviousOwner) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.PreviousOwner))) + 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().(*OwnerUpdated) + 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: OwnerUpdated: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: OwnerUpdated: 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 PreviousOwner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.PreviousOwner = 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 NewOwner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.NewOwner = 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_OwnershipTransferStarted protoreflect.MessageDescriptor + fd_OwnershipTransferStarted_previous_owner protoreflect.FieldDescriptor + fd_OwnershipTransferStarted_new_owner protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_events_proto_init() + md_OwnershipTransferStarted = File_circle_cctp_v1_events_proto.Messages().ByName("OwnershipTransferStarted") + fd_OwnershipTransferStarted_previous_owner = md_OwnershipTransferStarted.Fields().ByName("previous_owner") + fd_OwnershipTransferStarted_new_owner = md_OwnershipTransferStarted.Fields().ByName("new_owner") +} + +var _ protoreflect.Message = (*fastReflection_OwnershipTransferStarted)(nil) + +type fastReflection_OwnershipTransferStarted OwnershipTransferStarted + +func (x *OwnershipTransferStarted) ProtoReflect() protoreflect.Message { + return (*fastReflection_OwnershipTransferStarted)(x) +} + +func (x *OwnershipTransferStarted) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_OwnershipTransferStarted_messageType fastReflection_OwnershipTransferStarted_messageType +var _ protoreflect.MessageType = fastReflection_OwnershipTransferStarted_messageType{} + +type fastReflection_OwnershipTransferStarted_messageType struct{} + +func (x fastReflection_OwnershipTransferStarted_messageType) Zero() protoreflect.Message { + return (*fastReflection_OwnershipTransferStarted)(nil) +} +func (x fastReflection_OwnershipTransferStarted_messageType) New() protoreflect.Message { + return new(fastReflection_OwnershipTransferStarted) +} +func (x fastReflection_OwnershipTransferStarted_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_OwnershipTransferStarted +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_OwnershipTransferStarted) Descriptor() protoreflect.MessageDescriptor { + return md_OwnershipTransferStarted +} + +// 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_OwnershipTransferStarted) Type() protoreflect.MessageType { + return _fastReflection_OwnershipTransferStarted_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_OwnershipTransferStarted) New() protoreflect.Message { + return new(fastReflection_OwnershipTransferStarted) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_OwnershipTransferStarted) Interface() protoreflect.ProtoMessage { + return (*OwnershipTransferStarted)(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_OwnershipTransferStarted) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.PreviousOwner != "" { + value := protoreflect.ValueOfString(x.PreviousOwner) + if !f(fd_OwnershipTransferStarted_previous_owner, value) { + return + } + } + if x.NewOwner != "" { + value := protoreflect.ValueOfString(x.NewOwner) + if !f(fd_OwnershipTransferStarted_new_owner, 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_OwnershipTransferStarted) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.OwnershipTransferStarted.previous_owner": + return x.PreviousOwner != "" + case "circle.cctp.v1.OwnershipTransferStarted.new_owner": + return x.NewOwner != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.OwnershipTransferStarted")) + } + panic(fmt.Errorf("message circle.cctp.v1.OwnershipTransferStarted 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_OwnershipTransferStarted) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.OwnershipTransferStarted.previous_owner": + x.PreviousOwner = "" + case "circle.cctp.v1.OwnershipTransferStarted.new_owner": + x.NewOwner = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.OwnershipTransferStarted")) + } + panic(fmt.Errorf("message circle.cctp.v1.OwnershipTransferStarted 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_OwnershipTransferStarted) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.OwnershipTransferStarted.previous_owner": + value := x.PreviousOwner + return protoreflect.ValueOfString(value) + case "circle.cctp.v1.OwnershipTransferStarted.new_owner": + value := x.NewOwner + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.OwnershipTransferStarted")) + } + panic(fmt.Errorf("message circle.cctp.v1.OwnershipTransferStarted 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_OwnershipTransferStarted) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.OwnershipTransferStarted.previous_owner": + x.PreviousOwner = value.Interface().(string) + case "circle.cctp.v1.OwnershipTransferStarted.new_owner": + x.NewOwner = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.OwnershipTransferStarted")) + } + panic(fmt.Errorf("message circle.cctp.v1.OwnershipTransferStarted 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_OwnershipTransferStarted) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.OwnershipTransferStarted.previous_owner": + panic(fmt.Errorf("field previous_owner of message circle.cctp.v1.OwnershipTransferStarted is not mutable")) + case "circle.cctp.v1.OwnershipTransferStarted.new_owner": + panic(fmt.Errorf("field new_owner of message circle.cctp.v1.OwnershipTransferStarted is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.OwnershipTransferStarted")) + } + panic(fmt.Errorf("message circle.cctp.v1.OwnershipTransferStarted 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_OwnershipTransferStarted) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.OwnershipTransferStarted.previous_owner": + return protoreflect.ValueOfString("") + case "circle.cctp.v1.OwnershipTransferStarted.new_owner": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.OwnershipTransferStarted")) + } + panic(fmt.Errorf("message circle.cctp.v1.OwnershipTransferStarted 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_OwnershipTransferStarted) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.OwnershipTransferStarted", 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_OwnershipTransferStarted) 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_OwnershipTransferStarted) 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_OwnershipTransferStarted) 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_OwnershipTransferStarted) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*OwnershipTransferStarted) + 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.PreviousOwner) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.NewOwner) + 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().(*OwnershipTransferStarted) + 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.NewOwner) > 0 { + i -= len(x.NewOwner) + copy(dAtA[i:], x.NewOwner) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.NewOwner))) + i-- + dAtA[i] = 0x12 + } + if len(x.PreviousOwner) > 0 { + i -= len(x.PreviousOwner) + copy(dAtA[i:], x.PreviousOwner) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.PreviousOwner))) + 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().(*OwnershipTransferStarted) + 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: OwnershipTransferStarted: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: OwnershipTransferStarted: 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 PreviousOwner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.PreviousOwner = 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 NewOwner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.NewOwner = 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_PauserUpdated protoreflect.MessageDescriptor + fd_PauserUpdated_previous_pauser protoreflect.FieldDescriptor + fd_PauserUpdated_new_pauser protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_events_proto_init() + md_PauserUpdated = File_circle_cctp_v1_events_proto.Messages().ByName("PauserUpdated") + fd_PauserUpdated_previous_pauser = md_PauserUpdated.Fields().ByName("previous_pauser") + fd_PauserUpdated_new_pauser = md_PauserUpdated.Fields().ByName("new_pauser") +} + +var _ protoreflect.Message = (*fastReflection_PauserUpdated)(nil) + +type fastReflection_PauserUpdated PauserUpdated + +func (x *PauserUpdated) ProtoReflect() protoreflect.Message { + return (*fastReflection_PauserUpdated)(x) +} + +func (x *PauserUpdated) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_PauserUpdated_messageType fastReflection_PauserUpdated_messageType +var _ protoreflect.MessageType = fastReflection_PauserUpdated_messageType{} + +type fastReflection_PauserUpdated_messageType struct{} + +func (x fastReflection_PauserUpdated_messageType) Zero() protoreflect.Message { + return (*fastReflection_PauserUpdated)(nil) +} +func (x fastReflection_PauserUpdated_messageType) New() protoreflect.Message { + return new(fastReflection_PauserUpdated) +} +func (x fastReflection_PauserUpdated_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_PauserUpdated +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_PauserUpdated) Descriptor() protoreflect.MessageDescriptor { + return md_PauserUpdated +} + +// 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_PauserUpdated) Type() protoreflect.MessageType { + return _fastReflection_PauserUpdated_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_PauserUpdated) New() protoreflect.Message { + return new(fastReflection_PauserUpdated) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_PauserUpdated) Interface() protoreflect.ProtoMessage { + return (*PauserUpdated)(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_PauserUpdated) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.PreviousPauser != "" { + value := protoreflect.ValueOfString(x.PreviousPauser) + if !f(fd_PauserUpdated_previous_pauser, value) { + return + } + } + if x.NewPauser != "" { + value := protoreflect.ValueOfString(x.NewPauser) + if !f(fd_PauserUpdated_new_pauser, 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_PauserUpdated) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.PauserUpdated.previous_pauser": + return x.PreviousPauser != "" + case "circle.cctp.v1.PauserUpdated.new_pauser": + return x.NewPauser != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.PauserUpdated")) + } + panic(fmt.Errorf("message circle.cctp.v1.PauserUpdated 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_PauserUpdated) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.PauserUpdated.previous_pauser": + x.PreviousPauser = "" + case "circle.cctp.v1.PauserUpdated.new_pauser": + x.NewPauser = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.PauserUpdated")) + } + panic(fmt.Errorf("message circle.cctp.v1.PauserUpdated 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_PauserUpdated) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.PauserUpdated.previous_pauser": + value := x.PreviousPauser + return protoreflect.ValueOfString(value) + case "circle.cctp.v1.PauserUpdated.new_pauser": + value := x.NewPauser + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.PauserUpdated")) + } + panic(fmt.Errorf("message circle.cctp.v1.PauserUpdated 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_PauserUpdated) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.PauserUpdated.previous_pauser": + x.PreviousPauser = value.Interface().(string) + case "circle.cctp.v1.PauserUpdated.new_pauser": + x.NewPauser = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.PauserUpdated")) + } + panic(fmt.Errorf("message circle.cctp.v1.PauserUpdated 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_PauserUpdated) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.PauserUpdated.previous_pauser": + panic(fmt.Errorf("field previous_pauser of message circle.cctp.v1.PauserUpdated is not mutable")) + case "circle.cctp.v1.PauserUpdated.new_pauser": + panic(fmt.Errorf("field new_pauser of message circle.cctp.v1.PauserUpdated is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.PauserUpdated")) + } + panic(fmt.Errorf("message circle.cctp.v1.PauserUpdated 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_PauserUpdated) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.PauserUpdated.previous_pauser": + return protoreflect.ValueOfString("") + case "circle.cctp.v1.PauserUpdated.new_pauser": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.PauserUpdated")) + } + panic(fmt.Errorf("message circle.cctp.v1.PauserUpdated 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_PauserUpdated) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.PauserUpdated", 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_PauserUpdated) 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_PauserUpdated) 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_PauserUpdated) 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_PauserUpdated) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*PauserUpdated) + 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.PreviousPauser) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.NewPauser) + 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().(*PauserUpdated) + 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.NewPauser) > 0 { + i -= len(x.NewPauser) + copy(dAtA[i:], x.NewPauser) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.NewPauser))) + i-- + dAtA[i] = 0x12 + } + if len(x.PreviousPauser) > 0 { + i -= len(x.PreviousPauser) + copy(dAtA[i:], x.PreviousPauser) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.PreviousPauser))) + 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().(*PauserUpdated) + 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: PauserUpdated: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: PauserUpdated: 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 PreviousPauser", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.PreviousPauser = 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 NewPauser", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.NewPauser = 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_AttesterManagerUpdated protoreflect.MessageDescriptor + fd_AttesterManagerUpdated_previous_attester_manager protoreflect.FieldDescriptor + fd_AttesterManagerUpdated_new_attester_manager protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_events_proto_init() + md_AttesterManagerUpdated = File_circle_cctp_v1_events_proto.Messages().ByName("AttesterManagerUpdated") + fd_AttesterManagerUpdated_previous_attester_manager = md_AttesterManagerUpdated.Fields().ByName("previous_attester_manager") + fd_AttesterManagerUpdated_new_attester_manager = md_AttesterManagerUpdated.Fields().ByName("new_attester_manager") +} + +var _ protoreflect.Message = (*fastReflection_AttesterManagerUpdated)(nil) + +type fastReflection_AttesterManagerUpdated AttesterManagerUpdated + +func (x *AttesterManagerUpdated) ProtoReflect() protoreflect.Message { + return (*fastReflection_AttesterManagerUpdated)(x) +} + +func (x *AttesterManagerUpdated) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_AttesterManagerUpdated_messageType fastReflection_AttesterManagerUpdated_messageType +var _ protoreflect.MessageType = fastReflection_AttesterManagerUpdated_messageType{} + +type fastReflection_AttesterManagerUpdated_messageType struct{} + +func (x fastReflection_AttesterManagerUpdated_messageType) Zero() protoreflect.Message { + return (*fastReflection_AttesterManagerUpdated)(nil) +} +func (x fastReflection_AttesterManagerUpdated_messageType) New() protoreflect.Message { + return new(fastReflection_AttesterManagerUpdated) +} +func (x fastReflection_AttesterManagerUpdated_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_AttesterManagerUpdated +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_AttesterManagerUpdated) Descriptor() protoreflect.MessageDescriptor { + return md_AttesterManagerUpdated +} + +// 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_AttesterManagerUpdated) Type() protoreflect.MessageType { + return _fastReflection_AttesterManagerUpdated_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_AttesterManagerUpdated) New() protoreflect.Message { + return new(fastReflection_AttesterManagerUpdated) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_AttesterManagerUpdated) Interface() protoreflect.ProtoMessage { + return (*AttesterManagerUpdated)(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_AttesterManagerUpdated) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.PreviousAttesterManager != "" { + value := protoreflect.ValueOfString(x.PreviousAttesterManager) + if !f(fd_AttesterManagerUpdated_previous_attester_manager, value) { + return + } + } + if x.NewAttesterManager != "" { + value := protoreflect.ValueOfString(x.NewAttesterManager) + if !f(fd_AttesterManagerUpdated_new_attester_manager, 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_AttesterManagerUpdated) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.AttesterManagerUpdated.previous_attester_manager": + return x.PreviousAttesterManager != "" + case "circle.cctp.v1.AttesterManagerUpdated.new_attester_manager": + return x.NewAttesterManager != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.AttesterManagerUpdated")) + } + panic(fmt.Errorf("message circle.cctp.v1.AttesterManagerUpdated 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_AttesterManagerUpdated) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.AttesterManagerUpdated.previous_attester_manager": + x.PreviousAttesterManager = "" + case "circle.cctp.v1.AttesterManagerUpdated.new_attester_manager": + x.NewAttesterManager = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.AttesterManagerUpdated")) + } + panic(fmt.Errorf("message circle.cctp.v1.AttesterManagerUpdated 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_AttesterManagerUpdated) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.AttesterManagerUpdated.previous_attester_manager": + value := x.PreviousAttesterManager + return protoreflect.ValueOfString(value) + case "circle.cctp.v1.AttesterManagerUpdated.new_attester_manager": + value := x.NewAttesterManager + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.AttesterManagerUpdated")) + } + panic(fmt.Errorf("message circle.cctp.v1.AttesterManagerUpdated 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_AttesterManagerUpdated) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.AttesterManagerUpdated.previous_attester_manager": + x.PreviousAttesterManager = value.Interface().(string) + case "circle.cctp.v1.AttesterManagerUpdated.new_attester_manager": + x.NewAttesterManager = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.AttesterManagerUpdated")) + } + panic(fmt.Errorf("message circle.cctp.v1.AttesterManagerUpdated 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_AttesterManagerUpdated) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.AttesterManagerUpdated.previous_attester_manager": + panic(fmt.Errorf("field previous_attester_manager of message circle.cctp.v1.AttesterManagerUpdated is not mutable")) + case "circle.cctp.v1.AttesterManagerUpdated.new_attester_manager": + panic(fmt.Errorf("field new_attester_manager of message circle.cctp.v1.AttesterManagerUpdated is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.AttesterManagerUpdated")) + } + panic(fmt.Errorf("message circle.cctp.v1.AttesterManagerUpdated 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_AttesterManagerUpdated) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.AttesterManagerUpdated.previous_attester_manager": + return protoreflect.ValueOfString("") + case "circle.cctp.v1.AttesterManagerUpdated.new_attester_manager": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.AttesterManagerUpdated")) + } + panic(fmt.Errorf("message circle.cctp.v1.AttesterManagerUpdated 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_AttesterManagerUpdated) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.AttesterManagerUpdated", 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_AttesterManagerUpdated) 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_AttesterManagerUpdated) 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_AttesterManagerUpdated) 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_AttesterManagerUpdated) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*AttesterManagerUpdated) + 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.PreviousAttesterManager) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.NewAttesterManager) + 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().(*AttesterManagerUpdated) + 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.NewAttesterManager) > 0 { + i -= len(x.NewAttesterManager) + copy(dAtA[i:], x.NewAttesterManager) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.NewAttesterManager))) + i-- + dAtA[i] = 0x12 + } + if len(x.PreviousAttesterManager) > 0 { + i -= len(x.PreviousAttesterManager) + copy(dAtA[i:], x.PreviousAttesterManager) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.PreviousAttesterManager))) + 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().(*AttesterManagerUpdated) + 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: AttesterManagerUpdated: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: AttesterManagerUpdated: 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 PreviousAttesterManager", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.PreviousAttesterManager = 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 NewAttesterManager", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.NewAttesterManager = 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_TokenControllerUpdated protoreflect.MessageDescriptor + fd_TokenControllerUpdated_previous_token_controller protoreflect.FieldDescriptor + fd_TokenControllerUpdated_new_token_controller protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_events_proto_init() + md_TokenControllerUpdated = File_circle_cctp_v1_events_proto.Messages().ByName("TokenControllerUpdated") + fd_TokenControllerUpdated_previous_token_controller = md_TokenControllerUpdated.Fields().ByName("previous_token_controller") + fd_TokenControllerUpdated_new_token_controller = md_TokenControllerUpdated.Fields().ByName("new_token_controller") +} + +var _ protoreflect.Message = (*fastReflection_TokenControllerUpdated)(nil) + +type fastReflection_TokenControllerUpdated TokenControllerUpdated + +func (x *TokenControllerUpdated) ProtoReflect() protoreflect.Message { + return (*fastReflection_TokenControllerUpdated)(x) +} + +func (x *TokenControllerUpdated) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_TokenControllerUpdated_messageType fastReflection_TokenControllerUpdated_messageType +var _ protoreflect.MessageType = fastReflection_TokenControllerUpdated_messageType{} + +type fastReflection_TokenControllerUpdated_messageType struct{} + +func (x fastReflection_TokenControllerUpdated_messageType) Zero() protoreflect.Message { + return (*fastReflection_TokenControllerUpdated)(nil) +} +func (x fastReflection_TokenControllerUpdated_messageType) New() protoreflect.Message { + return new(fastReflection_TokenControllerUpdated) +} +func (x fastReflection_TokenControllerUpdated_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_TokenControllerUpdated +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_TokenControllerUpdated) Descriptor() protoreflect.MessageDescriptor { + return md_TokenControllerUpdated +} + +// 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_TokenControllerUpdated) Type() protoreflect.MessageType { + return _fastReflection_TokenControllerUpdated_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_TokenControllerUpdated) New() protoreflect.Message { + return new(fastReflection_TokenControllerUpdated) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_TokenControllerUpdated) Interface() protoreflect.ProtoMessage { + return (*TokenControllerUpdated)(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_TokenControllerUpdated) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.PreviousTokenController != "" { + value := protoreflect.ValueOfString(x.PreviousTokenController) + if !f(fd_TokenControllerUpdated_previous_token_controller, value) { + return + } + } + if x.NewTokenController != "" { + value := protoreflect.ValueOfString(x.NewTokenController) + if !f(fd_TokenControllerUpdated_new_token_controller, 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_TokenControllerUpdated) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.TokenControllerUpdated.previous_token_controller": + return x.PreviousTokenController != "" + case "circle.cctp.v1.TokenControllerUpdated.new_token_controller": + return x.NewTokenController != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.TokenControllerUpdated")) + } + panic(fmt.Errorf("message circle.cctp.v1.TokenControllerUpdated 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_TokenControllerUpdated) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.TokenControllerUpdated.previous_token_controller": + x.PreviousTokenController = "" + case "circle.cctp.v1.TokenControllerUpdated.new_token_controller": + x.NewTokenController = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.TokenControllerUpdated")) + } + panic(fmt.Errorf("message circle.cctp.v1.TokenControllerUpdated 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_TokenControllerUpdated) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.TokenControllerUpdated.previous_token_controller": + value := x.PreviousTokenController + return protoreflect.ValueOfString(value) + case "circle.cctp.v1.TokenControllerUpdated.new_token_controller": + value := x.NewTokenController + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.TokenControllerUpdated")) + } + panic(fmt.Errorf("message circle.cctp.v1.TokenControllerUpdated 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_TokenControllerUpdated) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.TokenControllerUpdated.previous_token_controller": + x.PreviousTokenController = value.Interface().(string) + case "circle.cctp.v1.TokenControllerUpdated.new_token_controller": + x.NewTokenController = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.TokenControllerUpdated")) + } + panic(fmt.Errorf("message circle.cctp.v1.TokenControllerUpdated 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_TokenControllerUpdated) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.TokenControllerUpdated.previous_token_controller": + panic(fmt.Errorf("field previous_token_controller of message circle.cctp.v1.TokenControllerUpdated is not mutable")) + case "circle.cctp.v1.TokenControllerUpdated.new_token_controller": + panic(fmt.Errorf("field new_token_controller of message circle.cctp.v1.TokenControllerUpdated is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.TokenControllerUpdated")) + } + panic(fmt.Errorf("message circle.cctp.v1.TokenControllerUpdated 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_TokenControllerUpdated) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.TokenControllerUpdated.previous_token_controller": + return protoreflect.ValueOfString("") + case "circle.cctp.v1.TokenControllerUpdated.new_token_controller": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.TokenControllerUpdated")) + } + panic(fmt.Errorf("message circle.cctp.v1.TokenControllerUpdated 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_TokenControllerUpdated) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.TokenControllerUpdated", 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_TokenControllerUpdated) 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_TokenControllerUpdated) 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_TokenControllerUpdated) 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_TokenControllerUpdated) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*TokenControllerUpdated) + 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.PreviousTokenController) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.NewTokenController) + 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().(*TokenControllerUpdated) + 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.NewTokenController) > 0 { + i -= len(x.NewTokenController) + copy(dAtA[i:], x.NewTokenController) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.NewTokenController))) + i-- + dAtA[i] = 0x12 + } + if len(x.PreviousTokenController) > 0 { + i -= len(x.PreviousTokenController) + copy(dAtA[i:], x.PreviousTokenController) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.PreviousTokenController))) + 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().(*TokenControllerUpdated) + 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: TokenControllerUpdated: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TokenControllerUpdated: 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 PreviousTokenController", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.PreviousTokenController = 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 NewTokenController", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.NewTokenController = 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_BurningAndMintingPausedEvent protoreflect.MessageDescriptor +) + +func init() { + file_circle_cctp_v1_events_proto_init() + md_BurningAndMintingPausedEvent = File_circle_cctp_v1_events_proto.Messages().ByName("BurningAndMintingPausedEvent") +} + +var _ protoreflect.Message = (*fastReflection_BurningAndMintingPausedEvent)(nil) + +type fastReflection_BurningAndMintingPausedEvent BurningAndMintingPausedEvent + +func (x *BurningAndMintingPausedEvent) ProtoReflect() protoreflect.Message { + return (*fastReflection_BurningAndMintingPausedEvent)(x) +} + +func (x *BurningAndMintingPausedEvent) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_BurningAndMintingPausedEvent_messageType fastReflection_BurningAndMintingPausedEvent_messageType +var _ protoreflect.MessageType = fastReflection_BurningAndMintingPausedEvent_messageType{} + +type fastReflection_BurningAndMintingPausedEvent_messageType struct{} + +func (x fastReflection_BurningAndMintingPausedEvent_messageType) Zero() protoreflect.Message { + return (*fastReflection_BurningAndMintingPausedEvent)(nil) +} +func (x fastReflection_BurningAndMintingPausedEvent_messageType) New() protoreflect.Message { + return new(fastReflection_BurningAndMintingPausedEvent) +} +func (x fastReflection_BurningAndMintingPausedEvent_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_BurningAndMintingPausedEvent +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_BurningAndMintingPausedEvent) Descriptor() protoreflect.MessageDescriptor { + return md_BurningAndMintingPausedEvent +} + +// 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_BurningAndMintingPausedEvent) Type() protoreflect.MessageType { + return _fastReflection_BurningAndMintingPausedEvent_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_BurningAndMintingPausedEvent) New() protoreflect.Message { + return new(fastReflection_BurningAndMintingPausedEvent) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_BurningAndMintingPausedEvent) Interface() protoreflect.ProtoMessage { + return (*BurningAndMintingPausedEvent)(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_BurningAndMintingPausedEvent) 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_BurningAndMintingPausedEvent) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.BurningAndMintingPausedEvent")) + } + panic(fmt.Errorf("message circle.cctp.v1.BurningAndMintingPausedEvent 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_BurningAndMintingPausedEvent) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.BurningAndMintingPausedEvent")) + } + panic(fmt.Errorf("message circle.cctp.v1.BurningAndMintingPausedEvent 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_BurningAndMintingPausedEvent) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.BurningAndMintingPausedEvent")) + } + panic(fmt.Errorf("message circle.cctp.v1.BurningAndMintingPausedEvent 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_BurningAndMintingPausedEvent) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.BurningAndMintingPausedEvent")) + } + panic(fmt.Errorf("message circle.cctp.v1.BurningAndMintingPausedEvent 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_BurningAndMintingPausedEvent) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.BurningAndMintingPausedEvent")) + } + panic(fmt.Errorf("message circle.cctp.v1.BurningAndMintingPausedEvent 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_BurningAndMintingPausedEvent) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.BurningAndMintingPausedEvent")) + } + panic(fmt.Errorf("message circle.cctp.v1.BurningAndMintingPausedEvent 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_BurningAndMintingPausedEvent) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.BurningAndMintingPausedEvent", 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_BurningAndMintingPausedEvent) 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_BurningAndMintingPausedEvent) 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_BurningAndMintingPausedEvent) 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_BurningAndMintingPausedEvent) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*BurningAndMintingPausedEvent) + 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().(*BurningAndMintingPausedEvent) + 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().(*BurningAndMintingPausedEvent) + 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: BurningAndMintingPausedEvent: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: BurningAndMintingPausedEvent: 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_BurningAndMintingUnpausedEvent protoreflect.MessageDescriptor +) + +func init() { + file_circle_cctp_v1_events_proto_init() + md_BurningAndMintingUnpausedEvent = File_circle_cctp_v1_events_proto.Messages().ByName("BurningAndMintingUnpausedEvent") +} + +var _ protoreflect.Message = (*fastReflection_BurningAndMintingUnpausedEvent)(nil) + +type fastReflection_BurningAndMintingUnpausedEvent BurningAndMintingUnpausedEvent + +func (x *BurningAndMintingUnpausedEvent) ProtoReflect() protoreflect.Message { + return (*fastReflection_BurningAndMintingUnpausedEvent)(x) +} + +func (x *BurningAndMintingUnpausedEvent) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_BurningAndMintingUnpausedEvent_messageType fastReflection_BurningAndMintingUnpausedEvent_messageType +var _ protoreflect.MessageType = fastReflection_BurningAndMintingUnpausedEvent_messageType{} + +type fastReflection_BurningAndMintingUnpausedEvent_messageType struct{} + +func (x fastReflection_BurningAndMintingUnpausedEvent_messageType) Zero() protoreflect.Message { + return (*fastReflection_BurningAndMintingUnpausedEvent)(nil) +} +func (x fastReflection_BurningAndMintingUnpausedEvent_messageType) New() protoreflect.Message { + return new(fastReflection_BurningAndMintingUnpausedEvent) +} +func (x fastReflection_BurningAndMintingUnpausedEvent_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_BurningAndMintingUnpausedEvent +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_BurningAndMintingUnpausedEvent) Descriptor() protoreflect.MessageDescriptor { + return md_BurningAndMintingUnpausedEvent +} + +// 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_BurningAndMintingUnpausedEvent) Type() protoreflect.MessageType { + return _fastReflection_BurningAndMintingUnpausedEvent_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_BurningAndMintingUnpausedEvent) New() protoreflect.Message { + return new(fastReflection_BurningAndMintingUnpausedEvent) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_BurningAndMintingUnpausedEvent) Interface() protoreflect.ProtoMessage { + return (*BurningAndMintingUnpausedEvent)(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_BurningAndMintingUnpausedEvent) 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_BurningAndMintingUnpausedEvent) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.BurningAndMintingUnpausedEvent")) + } + panic(fmt.Errorf("message circle.cctp.v1.BurningAndMintingUnpausedEvent 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_BurningAndMintingUnpausedEvent) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.BurningAndMintingUnpausedEvent")) + } + panic(fmt.Errorf("message circle.cctp.v1.BurningAndMintingUnpausedEvent 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_BurningAndMintingUnpausedEvent) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.BurningAndMintingUnpausedEvent")) + } + panic(fmt.Errorf("message circle.cctp.v1.BurningAndMintingUnpausedEvent 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_BurningAndMintingUnpausedEvent) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.BurningAndMintingUnpausedEvent")) + } + panic(fmt.Errorf("message circle.cctp.v1.BurningAndMintingUnpausedEvent 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_BurningAndMintingUnpausedEvent) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.BurningAndMintingUnpausedEvent")) + } + panic(fmt.Errorf("message circle.cctp.v1.BurningAndMintingUnpausedEvent 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_BurningAndMintingUnpausedEvent) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.BurningAndMintingUnpausedEvent")) + } + panic(fmt.Errorf("message circle.cctp.v1.BurningAndMintingUnpausedEvent 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_BurningAndMintingUnpausedEvent) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.BurningAndMintingUnpausedEvent", 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_BurningAndMintingUnpausedEvent) 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_BurningAndMintingUnpausedEvent) 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_BurningAndMintingUnpausedEvent) 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_BurningAndMintingUnpausedEvent) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*BurningAndMintingUnpausedEvent) + 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().(*BurningAndMintingUnpausedEvent) + 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().(*BurningAndMintingUnpausedEvent) + 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: BurningAndMintingUnpausedEvent: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: BurningAndMintingUnpausedEvent: 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_SendingAndReceivingPausedEvent protoreflect.MessageDescriptor +) + +func init() { + file_circle_cctp_v1_events_proto_init() + md_SendingAndReceivingPausedEvent = File_circle_cctp_v1_events_proto.Messages().ByName("SendingAndReceivingPausedEvent") +} + +var _ protoreflect.Message = (*fastReflection_SendingAndReceivingPausedEvent)(nil) + +type fastReflection_SendingAndReceivingPausedEvent SendingAndReceivingPausedEvent + +func (x *SendingAndReceivingPausedEvent) ProtoReflect() protoreflect.Message { + return (*fastReflection_SendingAndReceivingPausedEvent)(x) +} + +func (x *SendingAndReceivingPausedEvent) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_SendingAndReceivingPausedEvent_messageType fastReflection_SendingAndReceivingPausedEvent_messageType +var _ protoreflect.MessageType = fastReflection_SendingAndReceivingPausedEvent_messageType{} + +type fastReflection_SendingAndReceivingPausedEvent_messageType struct{} + +func (x fastReflection_SendingAndReceivingPausedEvent_messageType) Zero() protoreflect.Message { + return (*fastReflection_SendingAndReceivingPausedEvent)(nil) +} +func (x fastReflection_SendingAndReceivingPausedEvent_messageType) New() protoreflect.Message { + return new(fastReflection_SendingAndReceivingPausedEvent) +} +func (x fastReflection_SendingAndReceivingPausedEvent_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_SendingAndReceivingPausedEvent +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_SendingAndReceivingPausedEvent) Descriptor() protoreflect.MessageDescriptor { + return md_SendingAndReceivingPausedEvent +} + +// 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_SendingAndReceivingPausedEvent) Type() protoreflect.MessageType { + return _fastReflection_SendingAndReceivingPausedEvent_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_SendingAndReceivingPausedEvent) New() protoreflect.Message { + return new(fastReflection_SendingAndReceivingPausedEvent) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_SendingAndReceivingPausedEvent) Interface() protoreflect.ProtoMessage { + return (*SendingAndReceivingPausedEvent)(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_SendingAndReceivingPausedEvent) 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_SendingAndReceivingPausedEvent) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.SendingAndReceivingPausedEvent")) + } + panic(fmt.Errorf("message circle.cctp.v1.SendingAndReceivingPausedEvent 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_SendingAndReceivingPausedEvent) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.SendingAndReceivingPausedEvent")) + } + panic(fmt.Errorf("message circle.cctp.v1.SendingAndReceivingPausedEvent 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_SendingAndReceivingPausedEvent) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.SendingAndReceivingPausedEvent")) + } + panic(fmt.Errorf("message circle.cctp.v1.SendingAndReceivingPausedEvent 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_SendingAndReceivingPausedEvent) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.SendingAndReceivingPausedEvent")) + } + panic(fmt.Errorf("message circle.cctp.v1.SendingAndReceivingPausedEvent 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_SendingAndReceivingPausedEvent) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.SendingAndReceivingPausedEvent")) + } + panic(fmt.Errorf("message circle.cctp.v1.SendingAndReceivingPausedEvent 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_SendingAndReceivingPausedEvent) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.SendingAndReceivingPausedEvent")) + } + panic(fmt.Errorf("message circle.cctp.v1.SendingAndReceivingPausedEvent 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_SendingAndReceivingPausedEvent) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.SendingAndReceivingPausedEvent", 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_SendingAndReceivingPausedEvent) 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_SendingAndReceivingPausedEvent) 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_SendingAndReceivingPausedEvent) 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_SendingAndReceivingPausedEvent) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*SendingAndReceivingPausedEvent) + 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().(*SendingAndReceivingPausedEvent) + 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().(*SendingAndReceivingPausedEvent) + 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: SendingAndReceivingPausedEvent: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: SendingAndReceivingPausedEvent: 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_SendingAndReceivingUnpausedEvent protoreflect.MessageDescriptor +) + +func init() { + file_circle_cctp_v1_events_proto_init() + md_SendingAndReceivingUnpausedEvent = File_circle_cctp_v1_events_proto.Messages().ByName("SendingAndReceivingUnpausedEvent") +} + +var _ protoreflect.Message = (*fastReflection_SendingAndReceivingUnpausedEvent)(nil) + +type fastReflection_SendingAndReceivingUnpausedEvent SendingAndReceivingUnpausedEvent + +func (x *SendingAndReceivingUnpausedEvent) ProtoReflect() protoreflect.Message { + return (*fastReflection_SendingAndReceivingUnpausedEvent)(x) +} + +func (x *SendingAndReceivingUnpausedEvent) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_SendingAndReceivingUnpausedEvent_messageType fastReflection_SendingAndReceivingUnpausedEvent_messageType +var _ protoreflect.MessageType = fastReflection_SendingAndReceivingUnpausedEvent_messageType{} + +type fastReflection_SendingAndReceivingUnpausedEvent_messageType struct{} + +func (x fastReflection_SendingAndReceivingUnpausedEvent_messageType) Zero() protoreflect.Message { + return (*fastReflection_SendingAndReceivingUnpausedEvent)(nil) +} +func (x fastReflection_SendingAndReceivingUnpausedEvent_messageType) New() protoreflect.Message { + return new(fastReflection_SendingAndReceivingUnpausedEvent) +} +func (x fastReflection_SendingAndReceivingUnpausedEvent_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_SendingAndReceivingUnpausedEvent +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_SendingAndReceivingUnpausedEvent) Descriptor() protoreflect.MessageDescriptor { + return md_SendingAndReceivingUnpausedEvent +} + +// 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_SendingAndReceivingUnpausedEvent) Type() protoreflect.MessageType { + return _fastReflection_SendingAndReceivingUnpausedEvent_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_SendingAndReceivingUnpausedEvent) New() protoreflect.Message { + return new(fastReflection_SendingAndReceivingUnpausedEvent) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_SendingAndReceivingUnpausedEvent) Interface() protoreflect.ProtoMessage { + return (*SendingAndReceivingUnpausedEvent)(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_SendingAndReceivingUnpausedEvent) 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_SendingAndReceivingUnpausedEvent) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.SendingAndReceivingUnpausedEvent")) + } + panic(fmt.Errorf("message circle.cctp.v1.SendingAndReceivingUnpausedEvent 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_SendingAndReceivingUnpausedEvent) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.SendingAndReceivingUnpausedEvent")) + } + panic(fmt.Errorf("message circle.cctp.v1.SendingAndReceivingUnpausedEvent 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_SendingAndReceivingUnpausedEvent) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.SendingAndReceivingUnpausedEvent")) + } + panic(fmt.Errorf("message circle.cctp.v1.SendingAndReceivingUnpausedEvent 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_SendingAndReceivingUnpausedEvent) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.SendingAndReceivingUnpausedEvent")) + } + panic(fmt.Errorf("message circle.cctp.v1.SendingAndReceivingUnpausedEvent 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_SendingAndReceivingUnpausedEvent) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.SendingAndReceivingUnpausedEvent")) + } + panic(fmt.Errorf("message circle.cctp.v1.SendingAndReceivingUnpausedEvent 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_SendingAndReceivingUnpausedEvent) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.SendingAndReceivingUnpausedEvent")) + } + panic(fmt.Errorf("message circle.cctp.v1.SendingAndReceivingUnpausedEvent 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_SendingAndReceivingUnpausedEvent) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.SendingAndReceivingUnpausedEvent", 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_SendingAndReceivingUnpausedEvent) 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_SendingAndReceivingUnpausedEvent) 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_SendingAndReceivingUnpausedEvent) 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_SendingAndReceivingUnpausedEvent) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*SendingAndReceivingUnpausedEvent) + 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().(*SendingAndReceivingUnpausedEvent) + 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().(*SendingAndReceivingUnpausedEvent) + 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: SendingAndReceivingUnpausedEvent: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: SendingAndReceivingUnpausedEvent: 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_DepositForBurn protoreflect.MessageDescriptor + fd_DepositForBurn_nonce protoreflect.FieldDescriptor + fd_DepositForBurn_burn_token protoreflect.FieldDescriptor + fd_DepositForBurn_amount protoreflect.FieldDescriptor + fd_DepositForBurn_depositor protoreflect.FieldDescriptor + fd_DepositForBurn_mint_recipient protoreflect.FieldDescriptor + fd_DepositForBurn_destination_domain protoreflect.FieldDescriptor + fd_DepositForBurn_destination_token_messenger protoreflect.FieldDescriptor + fd_DepositForBurn_destination_caller protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_events_proto_init() + md_DepositForBurn = File_circle_cctp_v1_events_proto.Messages().ByName("DepositForBurn") + fd_DepositForBurn_nonce = md_DepositForBurn.Fields().ByName("nonce") + fd_DepositForBurn_burn_token = md_DepositForBurn.Fields().ByName("burn_token") + fd_DepositForBurn_amount = md_DepositForBurn.Fields().ByName("amount") + fd_DepositForBurn_depositor = md_DepositForBurn.Fields().ByName("depositor") + fd_DepositForBurn_mint_recipient = md_DepositForBurn.Fields().ByName("mint_recipient") + fd_DepositForBurn_destination_domain = md_DepositForBurn.Fields().ByName("destination_domain") + fd_DepositForBurn_destination_token_messenger = md_DepositForBurn.Fields().ByName("destination_token_messenger") + fd_DepositForBurn_destination_caller = md_DepositForBurn.Fields().ByName("destination_caller") +} + +var _ protoreflect.Message = (*fastReflection_DepositForBurn)(nil) + +type fastReflection_DepositForBurn DepositForBurn + +func (x *DepositForBurn) ProtoReflect() protoreflect.Message { + return (*fastReflection_DepositForBurn)(x) +} + +func (x *DepositForBurn) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_DepositForBurn_messageType fastReflection_DepositForBurn_messageType +var _ protoreflect.MessageType = fastReflection_DepositForBurn_messageType{} + +type fastReflection_DepositForBurn_messageType struct{} + +func (x fastReflection_DepositForBurn_messageType) Zero() protoreflect.Message { + return (*fastReflection_DepositForBurn)(nil) +} +func (x fastReflection_DepositForBurn_messageType) New() protoreflect.Message { + return new(fastReflection_DepositForBurn) +} +func (x fastReflection_DepositForBurn_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_DepositForBurn +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_DepositForBurn) Descriptor() protoreflect.MessageDescriptor { + return md_DepositForBurn +} + +// 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_DepositForBurn) Type() protoreflect.MessageType { + return _fastReflection_DepositForBurn_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_DepositForBurn) New() protoreflect.Message { + return new(fastReflection_DepositForBurn) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_DepositForBurn) Interface() protoreflect.ProtoMessage { + return (*DepositForBurn)(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_DepositForBurn) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Nonce != uint64(0) { + value := protoreflect.ValueOfUint64(x.Nonce) + if !f(fd_DepositForBurn_nonce, value) { + return + } + } + if x.BurnToken != "" { + value := protoreflect.ValueOfString(x.BurnToken) + if !f(fd_DepositForBurn_burn_token, value) { + return + } + } + if x.Amount != "" { + value := protoreflect.ValueOfString(x.Amount) + if !f(fd_DepositForBurn_amount, value) { + return + } + } + if x.Depositor != "" { + value := protoreflect.ValueOfString(x.Depositor) + if !f(fd_DepositForBurn_depositor, value) { + return + } + } + if len(x.MintRecipient) != 0 { + value := protoreflect.ValueOfBytes(x.MintRecipient) + if !f(fd_DepositForBurn_mint_recipient, value) { + return + } + } + if x.DestinationDomain != uint32(0) { + value := protoreflect.ValueOfUint32(x.DestinationDomain) + if !f(fd_DepositForBurn_destination_domain, value) { + return + } + } + if len(x.DestinationTokenMessenger) != 0 { + value := protoreflect.ValueOfBytes(x.DestinationTokenMessenger) + if !f(fd_DepositForBurn_destination_token_messenger, value) { + return + } + } + if len(x.DestinationCaller) != 0 { + value := protoreflect.ValueOfBytes(x.DestinationCaller) + if !f(fd_DepositForBurn_destination_caller, 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_DepositForBurn) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.DepositForBurn.nonce": + return x.Nonce != uint64(0) + case "circle.cctp.v1.DepositForBurn.burn_token": + return x.BurnToken != "" + case "circle.cctp.v1.DepositForBurn.amount": + return x.Amount != "" + case "circle.cctp.v1.DepositForBurn.depositor": + return x.Depositor != "" + case "circle.cctp.v1.DepositForBurn.mint_recipient": + return len(x.MintRecipient) != 0 + case "circle.cctp.v1.DepositForBurn.destination_domain": + return x.DestinationDomain != uint32(0) + case "circle.cctp.v1.DepositForBurn.destination_token_messenger": + return len(x.DestinationTokenMessenger) != 0 + case "circle.cctp.v1.DepositForBurn.destination_caller": + return len(x.DestinationCaller) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.DepositForBurn")) + } + panic(fmt.Errorf("message circle.cctp.v1.DepositForBurn 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_DepositForBurn) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.DepositForBurn.nonce": + x.Nonce = uint64(0) + case "circle.cctp.v1.DepositForBurn.burn_token": + x.BurnToken = "" + case "circle.cctp.v1.DepositForBurn.amount": + x.Amount = "" + case "circle.cctp.v1.DepositForBurn.depositor": + x.Depositor = "" + case "circle.cctp.v1.DepositForBurn.mint_recipient": + x.MintRecipient = nil + case "circle.cctp.v1.DepositForBurn.destination_domain": + x.DestinationDomain = uint32(0) + case "circle.cctp.v1.DepositForBurn.destination_token_messenger": + x.DestinationTokenMessenger = nil + case "circle.cctp.v1.DepositForBurn.destination_caller": + x.DestinationCaller = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.DepositForBurn")) + } + panic(fmt.Errorf("message circle.cctp.v1.DepositForBurn 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_DepositForBurn) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.DepositForBurn.nonce": + value := x.Nonce + return protoreflect.ValueOfUint64(value) + case "circle.cctp.v1.DepositForBurn.burn_token": + value := x.BurnToken + return protoreflect.ValueOfString(value) + case "circle.cctp.v1.DepositForBurn.amount": + value := x.Amount + return protoreflect.ValueOfString(value) + case "circle.cctp.v1.DepositForBurn.depositor": + value := x.Depositor + return protoreflect.ValueOfString(value) + case "circle.cctp.v1.DepositForBurn.mint_recipient": + value := x.MintRecipient + return protoreflect.ValueOfBytes(value) + case "circle.cctp.v1.DepositForBurn.destination_domain": + value := x.DestinationDomain + return protoreflect.ValueOfUint32(value) + case "circle.cctp.v1.DepositForBurn.destination_token_messenger": + value := x.DestinationTokenMessenger + return protoreflect.ValueOfBytes(value) + case "circle.cctp.v1.DepositForBurn.destination_caller": + value := x.DestinationCaller + return protoreflect.ValueOfBytes(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.DepositForBurn")) + } + panic(fmt.Errorf("message circle.cctp.v1.DepositForBurn 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_DepositForBurn) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.DepositForBurn.nonce": + x.Nonce = value.Uint() + case "circle.cctp.v1.DepositForBurn.burn_token": + x.BurnToken = value.Interface().(string) + case "circle.cctp.v1.DepositForBurn.amount": + x.Amount = value.Interface().(string) + case "circle.cctp.v1.DepositForBurn.depositor": + x.Depositor = value.Interface().(string) + case "circle.cctp.v1.DepositForBurn.mint_recipient": + x.MintRecipient = value.Bytes() + case "circle.cctp.v1.DepositForBurn.destination_domain": + x.DestinationDomain = uint32(value.Uint()) + case "circle.cctp.v1.DepositForBurn.destination_token_messenger": + x.DestinationTokenMessenger = value.Bytes() + case "circle.cctp.v1.DepositForBurn.destination_caller": + x.DestinationCaller = value.Bytes() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.DepositForBurn")) + } + panic(fmt.Errorf("message circle.cctp.v1.DepositForBurn 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_DepositForBurn) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.DepositForBurn.nonce": + panic(fmt.Errorf("field nonce of message circle.cctp.v1.DepositForBurn is not mutable")) + case "circle.cctp.v1.DepositForBurn.burn_token": + panic(fmt.Errorf("field burn_token of message circle.cctp.v1.DepositForBurn is not mutable")) + case "circle.cctp.v1.DepositForBurn.amount": + panic(fmt.Errorf("field amount of message circle.cctp.v1.DepositForBurn is not mutable")) + case "circle.cctp.v1.DepositForBurn.depositor": + panic(fmt.Errorf("field depositor of message circle.cctp.v1.DepositForBurn is not mutable")) + case "circle.cctp.v1.DepositForBurn.mint_recipient": + panic(fmt.Errorf("field mint_recipient of message circle.cctp.v1.DepositForBurn is not mutable")) + case "circle.cctp.v1.DepositForBurn.destination_domain": + panic(fmt.Errorf("field destination_domain of message circle.cctp.v1.DepositForBurn is not mutable")) + case "circle.cctp.v1.DepositForBurn.destination_token_messenger": + panic(fmt.Errorf("field destination_token_messenger of message circle.cctp.v1.DepositForBurn is not mutable")) + case "circle.cctp.v1.DepositForBurn.destination_caller": + panic(fmt.Errorf("field destination_caller of message circle.cctp.v1.DepositForBurn is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.DepositForBurn")) + } + panic(fmt.Errorf("message circle.cctp.v1.DepositForBurn 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_DepositForBurn) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.DepositForBurn.nonce": + return protoreflect.ValueOfUint64(uint64(0)) + case "circle.cctp.v1.DepositForBurn.burn_token": + return protoreflect.ValueOfString("") + case "circle.cctp.v1.DepositForBurn.amount": + return protoreflect.ValueOfString("") + case "circle.cctp.v1.DepositForBurn.depositor": + return protoreflect.ValueOfString("") + case "circle.cctp.v1.DepositForBurn.mint_recipient": + return protoreflect.ValueOfBytes(nil) + case "circle.cctp.v1.DepositForBurn.destination_domain": + return protoreflect.ValueOfUint32(uint32(0)) + case "circle.cctp.v1.DepositForBurn.destination_token_messenger": + return protoreflect.ValueOfBytes(nil) + case "circle.cctp.v1.DepositForBurn.destination_caller": + return protoreflect.ValueOfBytes(nil) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.DepositForBurn")) + } + panic(fmt.Errorf("message circle.cctp.v1.DepositForBurn 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_DepositForBurn) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.DepositForBurn", 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_DepositForBurn) 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_DepositForBurn) 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_DepositForBurn) 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_DepositForBurn) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*DepositForBurn) + 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)) + } + l = len(x.BurnToken) + 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.Depositor) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.MintRecipient) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.DestinationDomain != 0 { + n += 1 + runtime.Sov(uint64(x.DestinationDomain)) + } + l = len(x.DestinationTokenMessenger) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.DestinationCaller) + 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().(*DepositForBurn) + 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.DestinationCaller) > 0 { + i -= len(x.DestinationCaller) + copy(dAtA[i:], x.DestinationCaller) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.DestinationCaller))) + i-- + dAtA[i] = 0x42 + } + if len(x.DestinationTokenMessenger) > 0 { + i -= len(x.DestinationTokenMessenger) + copy(dAtA[i:], x.DestinationTokenMessenger) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.DestinationTokenMessenger))) + i-- + dAtA[i] = 0x3a + } + if x.DestinationDomain != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.DestinationDomain)) + i-- + dAtA[i] = 0x30 + } + if len(x.MintRecipient) > 0 { + i -= len(x.MintRecipient) + copy(dAtA[i:], x.MintRecipient) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.MintRecipient))) + i-- + dAtA[i] = 0x2a + } + 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] = 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.BurnToken) > 0 { + i -= len(x.BurnToken) + copy(dAtA[i:], x.BurnToken) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.BurnToken))) + i-- + dAtA[i] = 0x12 + } + 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().(*DepositForBurn) + 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: DepositForBurn: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: DepositForBurn: 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 != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BurnToken", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.BurnToken = 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 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 5: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MintRecipient", 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.MintRecipient = append(x.MintRecipient[:0], dAtA[iNdEx:postIndex]...) + if x.MintRecipient == nil { + x.MintRecipient = []byte{} + } + iNdEx = postIndex + case 6: + 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 7: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DestinationTokenMessenger", 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.DestinationTokenMessenger = append(x.DestinationTokenMessenger[:0], dAtA[iNdEx:postIndex]...) + if x.DestinationTokenMessenger == nil { + x.DestinationTokenMessenger = []byte{} + } + iNdEx = postIndex + case 8: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DestinationCaller", 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.DestinationCaller = append(x.DestinationCaller[:0], dAtA[iNdEx:postIndex]...) + if x.DestinationCaller == nil { + x.DestinationCaller = []byte{} + } + 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_MintAndWithdraw protoreflect.MessageDescriptor + fd_MintAndWithdraw_mint_recipient protoreflect.FieldDescriptor + fd_MintAndWithdraw_amount protoreflect.FieldDescriptor + fd_MintAndWithdraw_mint_token protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_events_proto_init() + md_MintAndWithdraw = File_circle_cctp_v1_events_proto.Messages().ByName("MintAndWithdraw") + fd_MintAndWithdraw_mint_recipient = md_MintAndWithdraw.Fields().ByName("mint_recipient") + fd_MintAndWithdraw_amount = md_MintAndWithdraw.Fields().ByName("amount") + fd_MintAndWithdraw_mint_token = md_MintAndWithdraw.Fields().ByName("mint_token") +} + +var _ protoreflect.Message = (*fastReflection_MintAndWithdraw)(nil) + +type fastReflection_MintAndWithdraw MintAndWithdraw + +func (x *MintAndWithdraw) ProtoReflect() protoreflect.Message { + return (*fastReflection_MintAndWithdraw)(x) +} + +func (x *MintAndWithdraw) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_MintAndWithdraw_messageType fastReflection_MintAndWithdraw_messageType +var _ protoreflect.MessageType = fastReflection_MintAndWithdraw_messageType{} + +type fastReflection_MintAndWithdraw_messageType struct{} + +func (x fastReflection_MintAndWithdraw_messageType) Zero() protoreflect.Message { + return (*fastReflection_MintAndWithdraw)(nil) +} +func (x fastReflection_MintAndWithdraw_messageType) New() protoreflect.Message { + return new(fastReflection_MintAndWithdraw) +} +func (x fastReflection_MintAndWithdraw_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MintAndWithdraw +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MintAndWithdraw) Descriptor() protoreflect.MessageDescriptor { + return md_MintAndWithdraw +} + +// 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_MintAndWithdraw) Type() protoreflect.MessageType { + return _fastReflection_MintAndWithdraw_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MintAndWithdraw) New() protoreflect.Message { + return new(fastReflection_MintAndWithdraw) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MintAndWithdraw) Interface() protoreflect.ProtoMessage { + return (*MintAndWithdraw)(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_MintAndWithdraw) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.MintRecipient) != 0 { + value := protoreflect.ValueOfBytes(x.MintRecipient) + if !f(fd_MintAndWithdraw_mint_recipient, value) { + return + } + } + if x.Amount != "" { + value := protoreflect.ValueOfString(x.Amount) + if !f(fd_MintAndWithdraw_amount, value) { + return + } + } + if x.MintToken != "" { + value := protoreflect.ValueOfString(x.MintToken) + if !f(fd_MintAndWithdraw_mint_token, 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_MintAndWithdraw) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.MintAndWithdraw.mint_recipient": + return len(x.MintRecipient) != 0 + case "circle.cctp.v1.MintAndWithdraw.amount": + return x.Amount != "" + case "circle.cctp.v1.MintAndWithdraw.mint_token": + return x.MintToken != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MintAndWithdraw")) + } + panic(fmt.Errorf("message circle.cctp.v1.MintAndWithdraw 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_MintAndWithdraw) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.MintAndWithdraw.mint_recipient": + x.MintRecipient = nil + case "circle.cctp.v1.MintAndWithdraw.amount": + x.Amount = "" + case "circle.cctp.v1.MintAndWithdraw.mint_token": + x.MintToken = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MintAndWithdraw")) + } + panic(fmt.Errorf("message circle.cctp.v1.MintAndWithdraw 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_MintAndWithdraw) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.MintAndWithdraw.mint_recipient": + value := x.MintRecipient + return protoreflect.ValueOfBytes(value) + case "circle.cctp.v1.MintAndWithdraw.amount": + value := x.Amount + return protoreflect.ValueOfString(value) + case "circle.cctp.v1.MintAndWithdraw.mint_token": + value := x.MintToken + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MintAndWithdraw")) + } + panic(fmt.Errorf("message circle.cctp.v1.MintAndWithdraw 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_MintAndWithdraw) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.MintAndWithdraw.mint_recipient": + x.MintRecipient = value.Bytes() + case "circle.cctp.v1.MintAndWithdraw.amount": + x.Amount = value.Interface().(string) + case "circle.cctp.v1.MintAndWithdraw.mint_token": + x.MintToken = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MintAndWithdraw")) + } + panic(fmt.Errorf("message circle.cctp.v1.MintAndWithdraw 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_MintAndWithdraw) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.MintAndWithdraw.mint_recipient": + panic(fmt.Errorf("field mint_recipient of message circle.cctp.v1.MintAndWithdraw is not mutable")) + case "circle.cctp.v1.MintAndWithdraw.amount": + panic(fmt.Errorf("field amount of message circle.cctp.v1.MintAndWithdraw is not mutable")) + case "circle.cctp.v1.MintAndWithdraw.mint_token": + panic(fmt.Errorf("field mint_token of message circle.cctp.v1.MintAndWithdraw is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MintAndWithdraw")) + } + panic(fmt.Errorf("message circle.cctp.v1.MintAndWithdraw 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_MintAndWithdraw) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.MintAndWithdraw.mint_recipient": + return protoreflect.ValueOfBytes(nil) + case "circle.cctp.v1.MintAndWithdraw.amount": + return protoreflect.ValueOfString("") + case "circle.cctp.v1.MintAndWithdraw.mint_token": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MintAndWithdraw")) + } + panic(fmt.Errorf("message circle.cctp.v1.MintAndWithdraw 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_MintAndWithdraw) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.MintAndWithdraw", 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_MintAndWithdraw) 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_MintAndWithdraw) 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_MintAndWithdraw) 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_MintAndWithdraw) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MintAndWithdraw) + 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.MintRecipient) + 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.MintToken) + 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().(*MintAndWithdraw) + 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.MintToken) > 0 { + i -= len(x.MintToken) + copy(dAtA[i:], x.MintToken) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.MintToken))) + 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.MintRecipient) > 0 { + i -= len(x.MintRecipient) + copy(dAtA[i:], x.MintRecipient) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.MintRecipient))) + 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().(*MintAndWithdraw) + 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: MintAndWithdraw: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MintAndWithdraw: 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 MintRecipient", 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.MintRecipient = append(x.MintRecipient[:0], dAtA[iNdEx:postIndex]...) + if x.MintRecipient == nil { + x.MintRecipient = []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 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 MintToken", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.MintToken = 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_TokenPairLinked protoreflect.MessageDescriptor + fd_TokenPairLinked_local_token protoreflect.FieldDescriptor + fd_TokenPairLinked_remote_domain protoreflect.FieldDescriptor + fd_TokenPairLinked_remote_token protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_events_proto_init() + md_TokenPairLinked = File_circle_cctp_v1_events_proto.Messages().ByName("TokenPairLinked") + fd_TokenPairLinked_local_token = md_TokenPairLinked.Fields().ByName("local_token") + fd_TokenPairLinked_remote_domain = md_TokenPairLinked.Fields().ByName("remote_domain") + fd_TokenPairLinked_remote_token = md_TokenPairLinked.Fields().ByName("remote_token") +} + +var _ protoreflect.Message = (*fastReflection_TokenPairLinked)(nil) + +type fastReflection_TokenPairLinked TokenPairLinked + +func (x *TokenPairLinked) ProtoReflect() protoreflect.Message { + return (*fastReflection_TokenPairLinked)(x) +} + +func (x *TokenPairLinked) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_TokenPairLinked_messageType fastReflection_TokenPairLinked_messageType +var _ protoreflect.MessageType = fastReflection_TokenPairLinked_messageType{} + +type fastReflection_TokenPairLinked_messageType struct{} + +func (x fastReflection_TokenPairLinked_messageType) Zero() protoreflect.Message { + return (*fastReflection_TokenPairLinked)(nil) +} +func (x fastReflection_TokenPairLinked_messageType) New() protoreflect.Message { + return new(fastReflection_TokenPairLinked) +} +func (x fastReflection_TokenPairLinked_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_TokenPairLinked +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_TokenPairLinked) Descriptor() protoreflect.MessageDescriptor { + return md_TokenPairLinked +} + +// 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_TokenPairLinked) Type() protoreflect.MessageType { + return _fastReflection_TokenPairLinked_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_TokenPairLinked) New() protoreflect.Message { + return new(fastReflection_TokenPairLinked) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_TokenPairLinked) Interface() protoreflect.ProtoMessage { + return (*TokenPairLinked)(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_TokenPairLinked) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.LocalToken != "" { + value := protoreflect.ValueOfString(x.LocalToken) + if !f(fd_TokenPairLinked_local_token, value) { + return + } + } + if x.RemoteDomain != uint32(0) { + value := protoreflect.ValueOfUint32(x.RemoteDomain) + if !f(fd_TokenPairLinked_remote_domain, value) { + return + } + } + if len(x.RemoteToken) != 0 { + value := protoreflect.ValueOfBytes(x.RemoteToken) + if !f(fd_TokenPairLinked_remote_token, 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_TokenPairLinked) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.TokenPairLinked.local_token": + return x.LocalToken != "" + case "circle.cctp.v1.TokenPairLinked.remote_domain": + return x.RemoteDomain != uint32(0) + case "circle.cctp.v1.TokenPairLinked.remote_token": + return len(x.RemoteToken) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.TokenPairLinked")) + } + panic(fmt.Errorf("message circle.cctp.v1.TokenPairLinked 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_TokenPairLinked) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.TokenPairLinked.local_token": + x.LocalToken = "" + case "circle.cctp.v1.TokenPairLinked.remote_domain": + x.RemoteDomain = uint32(0) + case "circle.cctp.v1.TokenPairLinked.remote_token": + x.RemoteToken = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.TokenPairLinked")) + } + panic(fmt.Errorf("message circle.cctp.v1.TokenPairLinked 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_TokenPairLinked) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.TokenPairLinked.local_token": + value := x.LocalToken + return protoreflect.ValueOfString(value) + case "circle.cctp.v1.TokenPairLinked.remote_domain": + value := x.RemoteDomain + return protoreflect.ValueOfUint32(value) + case "circle.cctp.v1.TokenPairLinked.remote_token": + value := x.RemoteToken + return protoreflect.ValueOfBytes(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.TokenPairLinked")) + } + panic(fmt.Errorf("message circle.cctp.v1.TokenPairLinked 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_TokenPairLinked) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.TokenPairLinked.local_token": + x.LocalToken = value.Interface().(string) + case "circle.cctp.v1.TokenPairLinked.remote_domain": + x.RemoteDomain = uint32(value.Uint()) + case "circle.cctp.v1.TokenPairLinked.remote_token": + x.RemoteToken = value.Bytes() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.TokenPairLinked")) + } + panic(fmt.Errorf("message circle.cctp.v1.TokenPairLinked 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_TokenPairLinked) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.TokenPairLinked.local_token": + panic(fmt.Errorf("field local_token of message circle.cctp.v1.TokenPairLinked is not mutable")) + case "circle.cctp.v1.TokenPairLinked.remote_domain": + panic(fmt.Errorf("field remote_domain of message circle.cctp.v1.TokenPairLinked is not mutable")) + case "circle.cctp.v1.TokenPairLinked.remote_token": + panic(fmt.Errorf("field remote_token of message circle.cctp.v1.TokenPairLinked is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.TokenPairLinked")) + } + panic(fmt.Errorf("message circle.cctp.v1.TokenPairLinked 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_TokenPairLinked) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.TokenPairLinked.local_token": + return protoreflect.ValueOfString("") + case "circle.cctp.v1.TokenPairLinked.remote_domain": + return protoreflect.ValueOfUint32(uint32(0)) + case "circle.cctp.v1.TokenPairLinked.remote_token": + return protoreflect.ValueOfBytes(nil) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.TokenPairLinked")) + } + panic(fmt.Errorf("message circle.cctp.v1.TokenPairLinked 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_TokenPairLinked) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.TokenPairLinked", 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_TokenPairLinked) 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_TokenPairLinked) 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_TokenPairLinked) 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_TokenPairLinked) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*TokenPairLinked) + 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.LocalToken) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.RemoteDomain != 0 { + n += 1 + runtime.Sov(uint64(x.RemoteDomain)) + } + l = len(x.RemoteToken) + 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().(*TokenPairLinked) + 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.RemoteToken) > 0 { + i -= len(x.RemoteToken) + copy(dAtA[i:], x.RemoteToken) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.RemoteToken))) + i-- + dAtA[i] = 0x1a + } + if x.RemoteDomain != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.RemoteDomain)) + i-- + dAtA[i] = 0x10 + } + if len(x.LocalToken) > 0 { + i -= len(x.LocalToken) + copy(dAtA[i:], x.LocalToken) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.LocalToken))) + 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().(*TokenPairLinked) + 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: TokenPairLinked: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TokenPairLinked: 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 LocalToken", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.LocalToken = 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 RemoteDomain", wireType) + } + x.RemoteDomain = 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.RemoteDomain |= 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 RemoteToken", 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.RemoteToken = append(x.RemoteToken[:0], dAtA[iNdEx:postIndex]...) + if x.RemoteToken == nil { + x.RemoteToken = []byte{} + } + 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_TokenPairUnlinked protoreflect.MessageDescriptor + fd_TokenPairUnlinked_local_token protoreflect.FieldDescriptor + fd_TokenPairUnlinked_remote_domain protoreflect.FieldDescriptor + fd_TokenPairUnlinked_remote_token protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_events_proto_init() + md_TokenPairUnlinked = File_circle_cctp_v1_events_proto.Messages().ByName("TokenPairUnlinked") + fd_TokenPairUnlinked_local_token = md_TokenPairUnlinked.Fields().ByName("local_token") + fd_TokenPairUnlinked_remote_domain = md_TokenPairUnlinked.Fields().ByName("remote_domain") + fd_TokenPairUnlinked_remote_token = md_TokenPairUnlinked.Fields().ByName("remote_token") +} + +var _ protoreflect.Message = (*fastReflection_TokenPairUnlinked)(nil) + +type fastReflection_TokenPairUnlinked TokenPairUnlinked + +func (x *TokenPairUnlinked) ProtoReflect() protoreflect.Message { + return (*fastReflection_TokenPairUnlinked)(x) +} + +func (x *TokenPairUnlinked) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_events_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_TokenPairUnlinked_messageType fastReflection_TokenPairUnlinked_messageType +var _ protoreflect.MessageType = fastReflection_TokenPairUnlinked_messageType{} + +type fastReflection_TokenPairUnlinked_messageType struct{} + +func (x fastReflection_TokenPairUnlinked_messageType) Zero() protoreflect.Message { + return (*fastReflection_TokenPairUnlinked)(nil) +} +func (x fastReflection_TokenPairUnlinked_messageType) New() protoreflect.Message { + return new(fastReflection_TokenPairUnlinked) +} +func (x fastReflection_TokenPairUnlinked_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_TokenPairUnlinked +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_TokenPairUnlinked) Descriptor() protoreflect.MessageDescriptor { + return md_TokenPairUnlinked +} + +// 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_TokenPairUnlinked) Type() protoreflect.MessageType { + return _fastReflection_TokenPairUnlinked_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_TokenPairUnlinked) New() protoreflect.Message { + return new(fastReflection_TokenPairUnlinked) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_TokenPairUnlinked) Interface() protoreflect.ProtoMessage { + return (*TokenPairUnlinked)(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_TokenPairUnlinked) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.LocalToken != "" { + value := protoreflect.ValueOfString(x.LocalToken) + if !f(fd_TokenPairUnlinked_local_token, value) { + return + } + } + if x.RemoteDomain != uint32(0) { + value := protoreflect.ValueOfUint32(x.RemoteDomain) + if !f(fd_TokenPairUnlinked_remote_domain, value) { + return + } + } + if len(x.RemoteToken) != 0 { + value := protoreflect.ValueOfBytes(x.RemoteToken) + if !f(fd_TokenPairUnlinked_remote_token, 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_TokenPairUnlinked) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.TokenPairUnlinked.local_token": + return x.LocalToken != "" + case "circle.cctp.v1.TokenPairUnlinked.remote_domain": + return x.RemoteDomain != uint32(0) + case "circle.cctp.v1.TokenPairUnlinked.remote_token": + return len(x.RemoteToken) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.TokenPairUnlinked")) + } + panic(fmt.Errorf("message circle.cctp.v1.TokenPairUnlinked 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_TokenPairUnlinked) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.TokenPairUnlinked.local_token": + x.LocalToken = "" + case "circle.cctp.v1.TokenPairUnlinked.remote_domain": + x.RemoteDomain = uint32(0) + case "circle.cctp.v1.TokenPairUnlinked.remote_token": + x.RemoteToken = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.TokenPairUnlinked")) + } + panic(fmt.Errorf("message circle.cctp.v1.TokenPairUnlinked 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_TokenPairUnlinked) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.TokenPairUnlinked.local_token": + value := x.LocalToken + return protoreflect.ValueOfString(value) + case "circle.cctp.v1.TokenPairUnlinked.remote_domain": + value := x.RemoteDomain + return protoreflect.ValueOfUint32(value) + case "circle.cctp.v1.TokenPairUnlinked.remote_token": + value := x.RemoteToken + return protoreflect.ValueOfBytes(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.TokenPairUnlinked")) + } + panic(fmt.Errorf("message circle.cctp.v1.TokenPairUnlinked 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_TokenPairUnlinked) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.TokenPairUnlinked.local_token": + x.LocalToken = value.Interface().(string) + case "circle.cctp.v1.TokenPairUnlinked.remote_domain": + x.RemoteDomain = uint32(value.Uint()) + case "circle.cctp.v1.TokenPairUnlinked.remote_token": + x.RemoteToken = value.Bytes() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.TokenPairUnlinked")) + } + panic(fmt.Errorf("message circle.cctp.v1.TokenPairUnlinked 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_TokenPairUnlinked) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.TokenPairUnlinked.local_token": + panic(fmt.Errorf("field local_token of message circle.cctp.v1.TokenPairUnlinked is not mutable")) + case "circle.cctp.v1.TokenPairUnlinked.remote_domain": + panic(fmt.Errorf("field remote_domain of message circle.cctp.v1.TokenPairUnlinked is not mutable")) + case "circle.cctp.v1.TokenPairUnlinked.remote_token": + panic(fmt.Errorf("field remote_token of message circle.cctp.v1.TokenPairUnlinked is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.TokenPairUnlinked")) + } + panic(fmt.Errorf("message circle.cctp.v1.TokenPairUnlinked 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_TokenPairUnlinked) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.TokenPairUnlinked.local_token": + return protoreflect.ValueOfString("") + case "circle.cctp.v1.TokenPairUnlinked.remote_domain": + return protoreflect.ValueOfUint32(uint32(0)) + case "circle.cctp.v1.TokenPairUnlinked.remote_token": + return protoreflect.ValueOfBytes(nil) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.TokenPairUnlinked")) + } + panic(fmt.Errorf("message circle.cctp.v1.TokenPairUnlinked 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_TokenPairUnlinked) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.TokenPairUnlinked", 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_TokenPairUnlinked) 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_TokenPairUnlinked) 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_TokenPairUnlinked) 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_TokenPairUnlinked) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*TokenPairUnlinked) + 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.LocalToken) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.RemoteDomain != 0 { + n += 1 + runtime.Sov(uint64(x.RemoteDomain)) + } + l = len(x.RemoteToken) + 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().(*TokenPairUnlinked) + 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.RemoteToken) > 0 { + i -= len(x.RemoteToken) + copy(dAtA[i:], x.RemoteToken) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.RemoteToken))) + i-- + dAtA[i] = 0x1a + } + if x.RemoteDomain != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.RemoteDomain)) + i-- + dAtA[i] = 0x10 + } + if len(x.LocalToken) > 0 { + i -= len(x.LocalToken) + copy(dAtA[i:], x.LocalToken) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.LocalToken))) + 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().(*TokenPairUnlinked) + 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: TokenPairUnlinked: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TokenPairUnlinked: 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 LocalToken", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.LocalToken = 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 RemoteDomain", wireType) + } + x.RemoteDomain = 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.RemoteDomain |= 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 RemoteToken", 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.RemoteToken = append(x.RemoteToken[:0], dAtA[iNdEx:postIndex]...) + if x.RemoteToken == nil { + x.RemoteToken = []byte{} + } + 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_MessageSent protoreflect.MessageDescriptor + fd_MessageSent_message protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_events_proto_init() + md_MessageSent = File_circle_cctp_v1_events_proto.Messages().ByName("MessageSent") + fd_MessageSent_message = md_MessageSent.Fields().ByName("message") +} + +var _ protoreflect.Message = (*fastReflection_MessageSent)(nil) + +type fastReflection_MessageSent MessageSent + +func (x *MessageSent) ProtoReflect() protoreflect.Message { + return (*fastReflection_MessageSent)(x) +} + +func (x *MessageSent) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_events_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_MessageSent_messageType fastReflection_MessageSent_messageType +var _ protoreflect.MessageType = fastReflection_MessageSent_messageType{} + +type fastReflection_MessageSent_messageType struct{} + +func (x fastReflection_MessageSent_messageType) Zero() protoreflect.Message { + return (*fastReflection_MessageSent)(nil) +} +func (x fastReflection_MessageSent_messageType) New() protoreflect.Message { + return new(fastReflection_MessageSent) +} +func (x fastReflection_MessageSent_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MessageSent +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MessageSent) Descriptor() protoreflect.MessageDescriptor { + return md_MessageSent +} + +// 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_MessageSent) Type() protoreflect.MessageType { + return _fastReflection_MessageSent_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MessageSent) New() protoreflect.Message { + return new(fastReflection_MessageSent) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MessageSent) Interface() protoreflect.ProtoMessage { + return (*MessageSent)(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_MessageSent) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.Message) != 0 { + value := protoreflect.ValueOfBytes(x.Message) + if !f(fd_MessageSent_message, 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_MessageSent) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.MessageSent.message": + return len(x.Message) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MessageSent")) + } + panic(fmt.Errorf("message circle.cctp.v1.MessageSent 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_MessageSent) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.MessageSent.message": + x.Message = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MessageSent")) + } + panic(fmt.Errorf("message circle.cctp.v1.MessageSent 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_MessageSent) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.MessageSent.message": + value := x.Message + return protoreflect.ValueOfBytes(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MessageSent")) + } + panic(fmt.Errorf("message circle.cctp.v1.MessageSent 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_MessageSent) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.MessageSent.message": + x.Message = value.Bytes() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MessageSent")) + } + panic(fmt.Errorf("message circle.cctp.v1.MessageSent 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_MessageSent) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.MessageSent.message": + panic(fmt.Errorf("field message of message circle.cctp.v1.MessageSent is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MessageSent")) + } + panic(fmt.Errorf("message circle.cctp.v1.MessageSent 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_MessageSent) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.MessageSent.message": + return protoreflect.ValueOfBytes(nil) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MessageSent")) + } + panic(fmt.Errorf("message circle.cctp.v1.MessageSent 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_MessageSent) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.MessageSent", 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_MessageSent) 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_MessageSent) 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_MessageSent) 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_MessageSent) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MessageSent) + 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.Message) + 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().(*MessageSent) + 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.Message) > 0 { + i -= len(x.Message) + copy(dAtA[i:], x.Message) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Message))) + 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().(*MessageSent) + 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: MessageSent: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MessageSent: 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 Message", 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.Message = append(x.Message[:0], dAtA[iNdEx:postIndex]...) + if x.Message == nil { + x.Message = []byte{} + } + 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_MessageReceived protoreflect.MessageDescriptor + fd_MessageReceived_caller protoreflect.FieldDescriptor + fd_MessageReceived_source_domain protoreflect.FieldDescriptor + fd_MessageReceived_nonce protoreflect.FieldDescriptor + fd_MessageReceived_sender protoreflect.FieldDescriptor + fd_MessageReceived_message_body protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_events_proto_init() + md_MessageReceived = File_circle_cctp_v1_events_proto.Messages().ByName("MessageReceived") + fd_MessageReceived_caller = md_MessageReceived.Fields().ByName("caller") + fd_MessageReceived_source_domain = md_MessageReceived.Fields().ByName("source_domain") + fd_MessageReceived_nonce = md_MessageReceived.Fields().ByName("nonce") + fd_MessageReceived_sender = md_MessageReceived.Fields().ByName("sender") + fd_MessageReceived_message_body = md_MessageReceived.Fields().ByName("message_body") +} + +var _ protoreflect.Message = (*fastReflection_MessageReceived)(nil) + +type fastReflection_MessageReceived MessageReceived + +func (x *MessageReceived) ProtoReflect() protoreflect.Message { + return (*fastReflection_MessageReceived)(x) +} + +func (x *MessageReceived) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_events_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_MessageReceived_messageType fastReflection_MessageReceived_messageType +var _ protoreflect.MessageType = fastReflection_MessageReceived_messageType{} + +type fastReflection_MessageReceived_messageType struct{} + +func (x fastReflection_MessageReceived_messageType) Zero() protoreflect.Message { + return (*fastReflection_MessageReceived)(nil) +} +func (x fastReflection_MessageReceived_messageType) New() protoreflect.Message { + return new(fastReflection_MessageReceived) +} +func (x fastReflection_MessageReceived_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MessageReceived +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MessageReceived) Descriptor() protoreflect.MessageDescriptor { + return md_MessageReceived +} + +// 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_MessageReceived) Type() protoreflect.MessageType { + return _fastReflection_MessageReceived_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MessageReceived) New() protoreflect.Message { + return new(fastReflection_MessageReceived) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MessageReceived) Interface() protoreflect.ProtoMessage { + return (*MessageReceived)(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_MessageReceived) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Caller != "" { + value := protoreflect.ValueOfString(x.Caller) + if !f(fd_MessageReceived_caller, value) { + return + } + } + if x.SourceDomain != uint32(0) { + value := protoreflect.ValueOfUint32(x.SourceDomain) + if !f(fd_MessageReceived_source_domain, value) { + return + } + } + if x.Nonce != uint64(0) { + value := protoreflect.ValueOfUint64(x.Nonce) + if !f(fd_MessageReceived_nonce, value) { + return + } + } + if len(x.Sender) != 0 { + value := protoreflect.ValueOfBytes(x.Sender) + if !f(fd_MessageReceived_sender, value) { + return + } + } + if len(x.MessageBody) != 0 { + value := protoreflect.ValueOfBytes(x.MessageBody) + if !f(fd_MessageReceived_message_body, 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_MessageReceived) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.MessageReceived.caller": + return x.Caller != "" + case "circle.cctp.v1.MessageReceived.source_domain": + return x.SourceDomain != uint32(0) + case "circle.cctp.v1.MessageReceived.nonce": + return x.Nonce != uint64(0) + case "circle.cctp.v1.MessageReceived.sender": + return len(x.Sender) != 0 + case "circle.cctp.v1.MessageReceived.message_body": + return len(x.MessageBody) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MessageReceived")) + } + panic(fmt.Errorf("message circle.cctp.v1.MessageReceived 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_MessageReceived) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.MessageReceived.caller": + x.Caller = "" + case "circle.cctp.v1.MessageReceived.source_domain": + x.SourceDomain = uint32(0) + case "circle.cctp.v1.MessageReceived.nonce": + x.Nonce = uint64(0) + case "circle.cctp.v1.MessageReceived.sender": + x.Sender = nil + case "circle.cctp.v1.MessageReceived.message_body": + x.MessageBody = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MessageReceived")) + } + panic(fmt.Errorf("message circle.cctp.v1.MessageReceived 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_MessageReceived) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.MessageReceived.caller": + value := x.Caller + return protoreflect.ValueOfString(value) + case "circle.cctp.v1.MessageReceived.source_domain": + value := x.SourceDomain + return protoreflect.ValueOfUint32(value) + case "circle.cctp.v1.MessageReceived.nonce": + value := x.Nonce + return protoreflect.ValueOfUint64(value) + case "circle.cctp.v1.MessageReceived.sender": + value := x.Sender + return protoreflect.ValueOfBytes(value) + case "circle.cctp.v1.MessageReceived.message_body": + value := x.MessageBody + return protoreflect.ValueOfBytes(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MessageReceived")) + } + panic(fmt.Errorf("message circle.cctp.v1.MessageReceived 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_MessageReceived) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.MessageReceived.caller": + x.Caller = value.Interface().(string) + case "circle.cctp.v1.MessageReceived.source_domain": + x.SourceDomain = uint32(value.Uint()) + case "circle.cctp.v1.MessageReceived.nonce": + x.Nonce = value.Uint() + case "circle.cctp.v1.MessageReceived.sender": + x.Sender = value.Bytes() + case "circle.cctp.v1.MessageReceived.message_body": + x.MessageBody = value.Bytes() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MessageReceived")) + } + panic(fmt.Errorf("message circle.cctp.v1.MessageReceived 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_MessageReceived) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.MessageReceived.caller": + panic(fmt.Errorf("field caller of message circle.cctp.v1.MessageReceived is not mutable")) + case "circle.cctp.v1.MessageReceived.source_domain": + panic(fmt.Errorf("field source_domain of message circle.cctp.v1.MessageReceived is not mutable")) + case "circle.cctp.v1.MessageReceived.nonce": + panic(fmt.Errorf("field nonce of message circle.cctp.v1.MessageReceived is not mutable")) + case "circle.cctp.v1.MessageReceived.sender": + panic(fmt.Errorf("field sender of message circle.cctp.v1.MessageReceived is not mutable")) + case "circle.cctp.v1.MessageReceived.message_body": + panic(fmt.Errorf("field message_body of message circle.cctp.v1.MessageReceived is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MessageReceived")) + } + panic(fmt.Errorf("message circle.cctp.v1.MessageReceived 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_MessageReceived) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.MessageReceived.caller": + return protoreflect.ValueOfString("") + case "circle.cctp.v1.MessageReceived.source_domain": + return protoreflect.ValueOfUint32(uint32(0)) + case "circle.cctp.v1.MessageReceived.nonce": + return protoreflect.ValueOfUint64(uint64(0)) + case "circle.cctp.v1.MessageReceived.sender": + return protoreflect.ValueOfBytes(nil) + case "circle.cctp.v1.MessageReceived.message_body": + return protoreflect.ValueOfBytes(nil) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MessageReceived")) + } + panic(fmt.Errorf("message circle.cctp.v1.MessageReceived 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_MessageReceived) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.MessageReceived", 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_MessageReceived) 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_MessageReceived) 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_MessageReceived) 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_MessageReceived) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MessageReceived) + 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.Caller) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.SourceDomain != 0 { + n += 1 + runtime.Sov(uint64(x.SourceDomain)) + } + if x.Nonce != 0 { + n += 1 + runtime.Sov(uint64(x.Nonce)) + } + l = len(x.Sender) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.MessageBody) + 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().(*MessageReceived) + 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.MessageBody) > 0 { + i -= len(x.MessageBody) + copy(dAtA[i:], x.MessageBody) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.MessageBody))) + i-- + dAtA[i] = 0x2a + } + 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] = 0x22 + } + if x.Nonce != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Nonce)) + i-- + dAtA[i] = 0x18 + } + if x.SourceDomain != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.SourceDomain)) + i-- + dAtA[i] = 0x10 + } + if len(x.Caller) > 0 { + i -= len(x.Caller) + copy(dAtA[i:], x.Caller) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Caller))) + 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().(*MessageReceived) + 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: MessageReceived: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MessageReceived: 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 Caller", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Caller = 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 SourceDomain", wireType) + } + x.SourceDomain = 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.SourceDomain |= 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 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 4: + 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 5: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MessageBody", 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.MessageBody = append(x.MessageBody[:0], dAtA[iNdEx:postIndex]...) + if x.MessageBody == nil { + x.MessageBody = []byte{} + } + 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_MaxMessageBodySizeUpdated protoreflect.MessageDescriptor + fd_MaxMessageBodySizeUpdated_new_max_message_body_size protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_events_proto_init() + md_MaxMessageBodySizeUpdated = File_circle_cctp_v1_events_proto.Messages().ByName("MaxMessageBodySizeUpdated") + fd_MaxMessageBodySizeUpdated_new_max_message_body_size = md_MaxMessageBodySizeUpdated.Fields().ByName("new_max_message_body_size") +} + +var _ protoreflect.Message = (*fastReflection_MaxMessageBodySizeUpdated)(nil) + +type fastReflection_MaxMessageBodySizeUpdated MaxMessageBodySizeUpdated + +func (x *MaxMessageBodySizeUpdated) ProtoReflect() protoreflect.Message { + return (*fastReflection_MaxMessageBodySizeUpdated)(x) +} + +func (x *MaxMessageBodySizeUpdated) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_events_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_MaxMessageBodySizeUpdated_messageType fastReflection_MaxMessageBodySizeUpdated_messageType +var _ protoreflect.MessageType = fastReflection_MaxMessageBodySizeUpdated_messageType{} + +type fastReflection_MaxMessageBodySizeUpdated_messageType struct{} + +func (x fastReflection_MaxMessageBodySizeUpdated_messageType) Zero() protoreflect.Message { + return (*fastReflection_MaxMessageBodySizeUpdated)(nil) +} +func (x fastReflection_MaxMessageBodySizeUpdated_messageType) New() protoreflect.Message { + return new(fastReflection_MaxMessageBodySizeUpdated) +} +func (x fastReflection_MaxMessageBodySizeUpdated_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MaxMessageBodySizeUpdated +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MaxMessageBodySizeUpdated) Descriptor() protoreflect.MessageDescriptor { + return md_MaxMessageBodySizeUpdated +} + +// 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_MaxMessageBodySizeUpdated) Type() protoreflect.MessageType { + return _fastReflection_MaxMessageBodySizeUpdated_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MaxMessageBodySizeUpdated) New() protoreflect.Message { + return new(fastReflection_MaxMessageBodySizeUpdated) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MaxMessageBodySizeUpdated) Interface() protoreflect.ProtoMessage { + return (*MaxMessageBodySizeUpdated)(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_MaxMessageBodySizeUpdated) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.NewMaxMessageBodySize != uint64(0) { + value := protoreflect.ValueOfUint64(x.NewMaxMessageBodySize) + if !f(fd_MaxMessageBodySizeUpdated_new_max_message_body_size, 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_MaxMessageBodySizeUpdated) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.MaxMessageBodySizeUpdated.new_max_message_body_size": + return x.NewMaxMessageBodySize != uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MaxMessageBodySizeUpdated")) + } + panic(fmt.Errorf("message circle.cctp.v1.MaxMessageBodySizeUpdated 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_MaxMessageBodySizeUpdated) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.MaxMessageBodySizeUpdated.new_max_message_body_size": + x.NewMaxMessageBodySize = uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MaxMessageBodySizeUpdated")) + } + panic(fmt.Errorf("message circle.cctp.v1.MaxMessageBodySizeUpdated 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_MaxMessageBodySizeUpdated) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.MaxMessageBodySizeUpdated.new_max_message_body_size": + value := x.NewMaxMessageBodySize + return protoreflect.ValueOfUint64(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MaxMessageBodySizeUpdated")) + } + panic(fmt.Errorf("message circle.cctp.v1.MaxMessageBodySizeUpdated 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_MaxMessageBodySizeUpdated) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.MaxMessageBodySizeUpdated.new_max_message_body_size": + x.NewMaxMessageBodySize = value.Uint() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MaxMessageBodySizeUpdated")) + } + panic(fmt.Errorf("message circle.cctp.v1.MaxMessageBodySizeUpdated 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_MaxMessageBodySizeUpdated) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.MaxMessageBodySizeUpdated.new_max_message_body_size": + panic(fmt.Errorf("field new_max_message_body_size of message circle.cctp.v1.MaxMessageBodySizeUpdated is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MaxMessageBodySizeUpdated")) + } + panic(fmt.Errorf("message circle.cctp.v1.MaxMessageBodySizeUpdated 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_MaxMessageBodySizeUpdated) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.MaxMessageBodySizeUpdated.new_max_message_body_size": + return protoreflect.ValueOfUint64(uint64(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MaxMessageBodySizeUpdated")) + } + panic(fmt.Errorf("message circle.cctp.v1.MaxMessageBodySizeUpdated 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_MaxMessageBodySizeUpdated) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.MaxMessageBodySizeUpdated", 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_MaxMessageBodySizeUpdated) 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_MaxMessageBodySizeUpdated) 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_MaxMessageBodySizeUpdated) 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_MaxMessageBodySizeUpdated) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MaxMessageBodySizeUpdated) + 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.NewMaxMessageBodySize != 0 { + n += 1 + runtime.Sov(uint64(x.NewMaxMessageBodySize)) + } + 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().(*MaxMessageBodySizeUpdated) + 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.NewMaxMessageBodySize != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.NewMaxMessageBodySize)) + 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().(*MaxMessageBodySizeUpdated) + 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: MaxMessageBodySizeUpdated: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MaxMessageBodySizeUpdated: 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 NewMaxMessageBodySize", wireType) + } + x.NewMaxMessageBodySize = 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.NewMaxMessageBodySize |= 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_RemoteTokenMessengerAdded protoreflect.MessageDescriptor + fd_RemoteTokenMessengerAdded_domain protoreflect.FieldDescriptor + fd_RemoteTokenMessengerAdded_remote_token_messenger protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_events_proto_init() + md_RemoteTokenMessengerAdded = File_circle_cctp_v1_events_proto.Messages().ByName("RemoteTokenMessengerAdded") + fd_RemoteTokenMessengerAdded_domain = md_RemoteTokenMessengerAdded.Fields().ByName("domain") + fd_RemoteTokenMessengerAdded_remote_token_messenger = md_RemoteTokenMessengerAdded.Fields().ByName("remote_token_messenger") +} + +var _ protoreflect.Message = (*fastReflection_RemoteTokenMessengerAdded)(nil) + +type fastReflection_RemoteTokenMessengerAdded RemoteTokenMessengerAdded + +func (x *RemoteTokenMessengerAdded) ProtoReflect() protoreflect.Message { + return (*fastReflection_RemoteTokenMessengerAdded)(x) +} + +func (x *RemoteTokenMessengerAdded) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_events_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_RemoteTokenMessengerAdded_messageType fastReflection_RemoteTokenMessengerAdded_messageType +var _ protoreflect.MessageType = fastReflection_RemoteTokenMessengerAdded_messageType{} + +type fastReflection_RemoteTokenMessengerAdded_messageType struct{} + +func (x fastReflection_RemoteTokenMessengerAdded_messageType) Zero() protoreflect.Message { + return (*fastReflection_RemoteTokenMessengerAdded)(nil) +} +func (x fastReflection_RemoteTokenMessengerAdded_messageType) New() protoreflect.Message { + return new(fastReflection_RemoteTokenMessengerAdded) +} +func (x fastReflection_RemoteTokenMessengerAdded_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_RemoteTokenMessengerAdded +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_RemoteTokenMessengerAdded) Descriptor() protoreflect.MessageDescriptor { + return md_RemoteTokenMessengerAdded +} + +// 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_RemoteTokenMessengerAdded) Type() protoreflect.MessageType { + return _fastReflection_RemoteTokenMessengerAdded_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_RemoteTokenMessengerAdded) New() protoreflect.Message { + return new(fastReflection_RemoteTokenMessengerAdded) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_RemoteTokenMessengerAdded) Interface() protoreflect.ProtoMessage { + return (*RemoteTokenMessengerAdded)(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_RemoteTokenMessengerAdded) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Domain != uint32(0) { + value := protoreflect.ValueOfUint32(x.Domain) + if !f(fd_RemoteTokenMessengerAdded_domain, value) { + return + } + } + if len(x.RemoteTokenMessenger) != 0 { + value := protoreflect.ValueOfBytes(x.RemoteTokenMessenger) + if !f(fd_RemoteTokenMessengerAdded_remote_token_messenger, 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_RemoteTokenMessengerAdded) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.RemoteTokenMessengerAdded.domain": + return x.Domain != uint32(0) + case "circle.cctp.v1.RemoteTokenMessengerAdded.remote_token_messenger": + return len(x.RemoteTokenMessenger) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.RemoteTokenMessengerAdded")) + } + panic(fmt.Errorf("message circle.cctp.v1.RemoteTokenMessengerAdded 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_RemoteTokenMessengerAdded) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.RemoteTokenMessengerAdded.domain": + x.Domain = uint32(0) + case "circle.cctp.v1.RemoteTokenMessengerAdded.remote_token_messenger": + x.RemoteTokenMessenger = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.RemoteTokenMessengerAdded")) + } + panic(fmt.Errorf("message circle.cctp.v1.RemoteTokenMessengerAdded 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_RemoteTokenMessengerAdded) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.RemoteTokenMessengerAdded.domain": + value := x.Domain + return protoreflect.ValueOfUint32(value) + case "circle.cctp.v1.RemoteTokenMessengerAdded.remote_token_messenger": + value := x.RemoteTokenMessenger + return protoreflect.ValueOfBytes(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.RemoteTokenMessengerAdded")) + } + panic(fmt.Errorf("message circle.cctp.v1.RemoteTokenMessengerAdded 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_RemoteTokenMessengerAdded) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.RemoteTokenMessengerAdded.domain": + x.Domain = uint32(value.Uint()) + case "circle.cctp.v1.RemoteTokenMessengerAdded.remote_token_messenger": + x.RemoteTokenMessenger = value.Bytes() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.RemoteTokenMessengerAdded")) + } + panic(fmt.Errorf("message circle.cctp.v1.RemoteTokenMessengerAdded 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_RemoteTokenMessengerAdded) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.RemoteTokenMessengerAdded.domain": + panic(fmt.Errorf("field domain of message circle.cctp.v1.RemoteTokenMessengerAdded is not mutable")) + case "circle.cctp.v1.RemoteTokenMessengerAdded.remote_token_messenger": + panic(fmt.Errorf("field remote_token_messenger of message circle.cctp.v1.RemoteTokenMessengerAdded is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.RemoteTokenMessengerAdded")) + } + panic(fmt.Errorf("message circle.cctp.v1.RemoteTokenMessengerAdded 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_RemoteTokenMessengerAdded) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.RemoteTokenMessengerAdded.domain": + return protoreflect.ValueOfUint32(uint32(0)) + case "circle.cctp.v1.RemoteTokenMessengerAdded.remote_token_messenger": + return protoreflect.ValueOfBytes(nil) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.RemoteTokenMessengerAdded")) + } + panic(fmt.Errorf("message circle.cctp.v1.RemoteTokenMessengerAdded 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_RemoteTokenMessengerAdded) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.RemoteTokenMessengerAdded", 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_RemoteTokenMessengerAdded) 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_RemoteTokenMessengerAdded) 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_RemoteTokenMessengerAdded) 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_RemoteTokenMessengerAdded) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*RemoteTokenMessengerAdded) + 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.Domain != 0 { + n += 1 + runtime.Sov(uint64(x.Domain)) + } + l = len(x.RemoteTokenMessenger) + 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().(*RemoteTokenMessengerAdded) + 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.RemoteTokenMessenger) > 0 { + i -= len(x.RemoteTokenMessenger) + copy(dAtA[i:], x.RemoteTokenMessenger) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.RemoteTokenMessenger))) + i-- + dAtA[i] = 0x12 + } + if x.Domain != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Domain)) + 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().(*RemoteTokenMessengerAdded) + 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: RemoteTokenMessengerAdded: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RemoteTokenMessengerAdded: 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 Domain", wireType) + } + x.Domain = 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.Domain |= 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 RemoteTokenMessenger", 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.RemoteTokenMessenger = append(x.RemoteTokenMessenger[:0], dAtA[iNdEx:postIndex]...) + if x.RemoteTokenMessenger == nil { + x.RemoteTokenMessenger = []byte{} + } + 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_RemoteTokenMessengerRemoved protoreflect.MessageDescriptor + fd_RemoteTokenMessengerRemoved_domain protoreflect.FieldDescriptor + fd_RemoteTokenMessengerRemoved_remote_token_messenger protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_events_proto_init() + md_RemoteTokenMessengerRemoved = File_circle_cctp_v1_events_proto.Messages().ByName("RemoteTokenMessengerRemoved") + fd_RemoteTokenMessengerRemoved_domain = md_RemoteTokenMessengerRemoved.Fields().ByName("domain") + fd_RemoteTokenMessengerRemoved_remote_token_messenger = md_RemoteTokenMessengerRemoved.Fields().ByName("remote_token_messenger") +} + +var _ protoreflect.Message = (*fastReflection_RemoteTokenMessengerRemoved)(nil) + +type fastReflection_RemoteTokenMessengerRemoved RemoteTokenMessengerRemoved + +func (x *RemoteTokenMessengerRemoved) ProtoReflect() protoreflect.Message { + return (*fastReflection_RemoteTokenMessengerRemoved)(x) +} + +func (x *RemoteTokenMessengerRemoved) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_events_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_RemoteTokenMessengerRemoved_messageType fastReflection_RemoteTokenMessengerRemoved_messageType +var _ protoreflect.MessageType = fastReflection_RemoteTokenMessengerRemoved_messageType{} + +type fastReflection_RemoteTokenMessengerRemoved_messageType struct{} + +func (x fastReflection_RemoteTokenMessengerRemoved_messageType) Zero() protoreflect.Message { + return (*fastReflection_RemoteTokenMessengerRemoved)(nil) +} +func (x fastReflection_RemoteTokenMessengerRemoved_messageType) New() protoreflect.Message { + return new(fastReflection_RemoteTokenMessengerRemoved) +} +func (x fastReflection_RemoteTokenMessengerRemoved_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_RemoteTokenMessengerRemoved +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_RemoteTokenMessengerRemoved) Descriptor() protoreflect.MessageDescriptor { + return md_RemoteTokenMessengerRemoved +} + +// 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_RemoteTokenMessengerRemoved) Type() protoreflect.MessageType { + return _fastReflection_RemoteTokenMessengerRemoved_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_RemoteTokenMessengerRemoved) New() protoreflect.Message { + return new(fastReflection_RemoteTokenMessengerRemoved) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_RemoteTokenMessengerRemoved) Interface() protoreflect.ProtoMessage { + return (*RemoteTokenMessengerRemoved)(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_RemoteTokenMessengerRemoved) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Domain != uint32(0) { + value := protoreflect.ValueOfUint32(x.Domain) + if !f(fd_RemoteTokenMessengerRemoved_domain, value) { + return + } + } + if len(x.RemoteTokenMessenger) != 0 { + value := protoreflect.ValueOfBytes(x.RemoteTokenMessenger) + if !f(fd_RemoteTokenMessengerRemoved_remote_token_messenger, 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_RemoteTokenMessengerRemoved) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.RemoteTokenMessengerRemoved.domain": + return x.Domain != uint32(0) + case "circle.cctp.v1.RemoteTokenMessengerRemoved.remote_token_messenger": + return len(x.RemoteTokenMessenger) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.RemoteTokenMessengerRemoved")) + } + panic(fmt.Errorf("message circle.cctp.v1.RemoteTokenMessengerRemoved 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_RemoteTokenMessengerRemoved) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.RemoteTokenMessengerRemoved.domain": + x.Domain = uint32(0) + case "circle.cctp.v1.RemoteTokenMessengerRemoved.remote_token_messenger": + x.RemoteTokenMessenger = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.RemoteTokenMessengerRemoved")) + } + panic(fmt.Errorf("message circle.cctp.v1.RemoteTokenMessengerRemoved 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_RemoteTokenMessengerRemoved) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.RemoteTokenMessengerRemoved.domain": + value := x.Domain + return protoreflect.ValueOfUint32(value) + case "circle.cctp.v1.RemoteTokenMessengerRemoved.remote_token_messenger": + value := x.RemoteTokenMessenger + return protoreflect.ValueOfBytes(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.RemoteTokenMessengerRemoved")) + } + panic(fmt.Errorf("message circle.cctp.v1.RemoteTokenMessengerRemoved 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_RemoteTokenMessengerRemoved) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.RemoteTokenMessengerRemoved.domain": + x.Domain = uint32(value.Uint()) + case "circle.cctp.v1.RemoteTokenMessengerRemoved.remote_token_messenger": + x.RemoteTokenMessenger = value.Bytes() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.RemoteTokenMessengerRemoved")) + } + panic(fmt.Errorf("message circle.cctp.v1.RemoteTokenMessengerRemoved 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_RemoteTokenMessengerRemoved) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.RemoteTokenMessengerRemoved.domain": + panic(fmt.Errorf("field domain of message circle.cctp.v1.RemoteTokenMessengerRemoved is not mutable")) + case "circle.cctp.v1.RemoteTokenMessengerRemoved.remote_token_messenger": + panic(fmt.Errorf("field remote_token_messenger of message circle.cctp.v1.RemoteTokenMessengerRemoved is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.RemoteTokenMessengerRemoved")) + } + panic(fmt.Errorf("message circle.cctp.v1.RemoteTokenMessengerRemoved 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_RemoteTokenMessengerRemoved) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.RemoteTokenMessengerRemoved.domain": + return protoreflect.ValueOfUint32(uint32(0)) + case "circle.cctp.v1.RemoteTokenMessengerRemoved.remote_token_messenger": + return protoreflect.ValueOfBytes(nil) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.RemoteTokenMessengerRemoved")) + } + panic(fmt.Errorf("message circle.cctp.v1.RemoteTokenMessengerRemoved 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_RemoteTokenMessengerRemoved) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.RemoteTokenMessengerRemoved", 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_RemoteTokenMessengerRemoved) 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_RemoteTokenMessengerRemoved) 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_RemoteTokenMessengerRemoved) 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_RemoteTokenMessengerRemoved) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*RemoteTokenMessengerRemoved) + 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.Domain != 0 { + n += 1 + runtime.Sov(uint64(x.Domain)) + } + l = len(x.RemoteTokenMessenger) + 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().(*RemoteTokenMessengerRemoved) + 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.RemoteTokenMessenger) > 0 { + i -= len(x.RemoteTokenMessenger) + copy(dAtA[i:], x.RemoteTokenMessenger) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.RemoteTokenMessenger))) + i-- + dAtA[i] = 0x12 + } + if x.Domain != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Domain)) + 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().(*RemoteTokenMessengerRemoved) + 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: RemoteTokenMessengerRemoved: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RemoteTokenMessengerRemoved: 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 Domain", wireType) + } + x.Domain = 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.Domain |= 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 RemoteTokenMessenger", 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.RemoteTokenMessenger = append(x.RemoteTokenMessenger[:0], dAtA[iNdEx:postIndex]...) + if x.RemoteTokenMessenger == nil { + x.RemoteTokenMessenger = []byte{} + } + 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_SetBurnLimitPerMessage protoreflect.MessageDescriptor + fd_SetBurnLimitPerMessage_token protoreflect.FieldDescriptor + fd_SetBurnLimitPerMessage_burn_limit_per_message protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_events_proto_init() + md_SetBurnLimitPerMessage = File_circle_cctp_v1_events_proto.Messages().ByName("SetBurnLimitPerMessage") + fd_SetBurnLimitPerMessage_token = md_SetBurnLimitPerMessage.Fields().ByName("token") + fd_SetBurnLimitPerMessage_burn_limit_per_message = md_SetBurnLimitPerMessage.Fields().ByName("burn_limit_per_message") +} + +var _ protoreflect.Message = (*fastReflection_SetBurnLimitPerMessage)(nil) + +type fastReflection_SetBurnLimitPerMessage SetBurnLimitPerMessage + +func (x *SetBurnLimitPerMessage) ProtoReflect() protoreflect.Message { + return (*fastReflection_SetBurnLimitPerMessage)(x) +} + +func (x *SetBurnLimitPerMessage) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_events_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_SetBurnLimitPerMessage_messageType fastReflection_SetBurnLimitPerMessage_messageType +var _ protoreflect.MessageType = fastReflection_SetBurnLimitPerMessage_messageType{} + +type fastReflection_SetBurnLimitPerMessage_messageType struct{} + +func (x fastReflection_SetBurnLimitPerMessage_messageType) Zero() protoreflect.Message { + return (*fastReflection_SetBurnLimitPerMessage)(nil) +} +func (x fastReflection_SetBurnLimitPerMessage_messageType) New() protoreflect.Message { + return new(fastReflection_SetBurnLimitPerMessage) +} +func (x fastReflection_SetBurnLimitPerMessage_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_SetBurnLimitPerMessage +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_SetBurnLimitPerMessage) Descriptor() protoreflect.MessageDescriptor { + return md_SetBurnLimitPerMessage +} + +// 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_SetBurnLimitPerMessage) Type() protoreflect.MessageType { + return _fastReflection_SetBurnLimitPerMessage_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_SetBurnLimitPerMessage) New() protoreflect.Message { + return new(fastReflection_SetBurnLimitPerMessage) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_SetBurnLimitPerMessage) Interface() protoreflect.ProtoMessage { + return (*SetBurnLimitPerMessage)(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_SetBurnLimitPerMessage) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Token != "" { + value := protoreflect.ValueOfString(x.Token) + if !f(fd_SetBurnLimitPerMessage_token, value) { + return + } + } + if x.BurnLimitPerMessage != "" { + value := protoreflect.ValueOfString(x.BurnLimitPerMessage) + if !f(fd_SetBurnLimitPerMessage_burn_limit_per_message, 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_SetBurnLimitPerMessage) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.SetBurnLimitPerMessage.token": + return x.Token != "" + case "circle.cctp.v1.SetBurnLimitPerMessage.burn_limit_per_message": + return x.BurnLimitPerMessage != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.SetBurnLimitPerMessage")) + } + panic(fmt.Errorf("message circle.cctp.v1.SetBurnLimitPerMessage 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_SetBurnLimitPerMessage) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.SetBurnLimitPerMessage.token": + x.Token = "" + case "circle.cctp.v1.SetBurnLimitPerMessage.burn_limit_per_message": + x.BurnLimitPerMessage = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.SetBurnLimitPerMessage")) + } + panic(fmt.Errorf("message circle.cctp.v1.SetBurnLimitPerMessage 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_SetBurnLimitPerMessage) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.SetBurnLimitPerMessage.token": + value := x.Token + return protoreflect.ValueOfString(value) + case "circle.cctp.v1.SetBurnLimitPerMessage.burn_limit_per_message": + value := x.BurnLimitPerMessage + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.SetBurnLimitPerMessage")) + } + panic(fmt.Errorf("message circle.cctp.v1.SetBurnLimitPerMessage 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_SetBurnLimitPerMessage) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.SetBurnLimitPerMessage.token": + x.Token = value.Interface().(string) + case "circle.cctp.v1.SetBurnLimitPerMessage.burn_limit_per_message": + x.BurnLimitPerMessage = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.SetBurnLimitPerMessage")) + } + panic(fmt.Errorf("message circle.cctp.v1.SetBurnLimitPerMessage 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_SetBurnLimitPerMessage) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.SetBurnLimitPerMessage.token": + panic(fmt.Errorf("field token of message circle.cctp.v1.SetBurnLimitPerMessage is not mutable")) + case "circle.cctp.v1.SetBurnLimitPerMessage.burn_limit_per_message": + panic(fmt.Errorf("field burn_limit_per_message of message circle.cctp.v1.SetBurnLimitPerMessage is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.SetBurnLimitPerMessage")) + } + panic(fmt.Errorf("message circle.cctp.v1.SetBurnLimitPerMessage 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_SetBurnLimitPerMessage) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.SetBurnLimitPerMessage.token": + return protoreflect.ValueOfString("") + case "circle.cctp.v1.SetBurnLimitPerMessage.burn_limit_per_message": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.SetBurnLimitPerMessage")) + } + panic(fmt.Errorf("message circle.cctp.v1.SetBurnLimitPerMessage 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_SetBurnLimitPerMessage) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.SetBurnLimitPerMessage", 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_SetBurnLimitPerMessage) 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_SetBurnLimitPerMessage) 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_SetBurnLimitPerMessage) 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_SetBurnLimitPerMessage) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*SetBurnLimitPerMessage) + 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.Token) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.BurnLimitPerMessage) + 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().(*SetBurnLimitPerMessage) + 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.BurnLimitPerMessage) > 0 { + i -= len(x.BurnLimitPerMessage) + copy(dAtA[i:], x.BurnLimitPerMessage) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.BurnLimitPerMessage))) + i-- + dAtA[i] = 0x12 + } + if len(x.Token) > 0 { + i -= len(x.Token) + copy(dAtA[i:], x.Token) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Token))) + 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().(*SetBurnLimitPerMessage) + 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: SetBurnLimitPerMessage: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: SetBurnLimitPerMessage: 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 Token", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Token = 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 BurnLimitPerMessage", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.BurnLimitPerMessage = 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, + } +} + +// +// Copyright (c) 2023, Ā© Circle Internet Financial, LTD. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.0 +// protoc (unknown) +// source: circle/cctp/v1/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) +) + +// * +// Emitted when an attester is enabled +// @param attester newly enabled attester +type AttesterEnabled struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Attester string `protobuf:"bytes,1,opt,name=attester,proto3" json:"attester,omitempty"` +} + +func (x *AttesterEnabled) Reset() { + *x = AttesterEnabled{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_events_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AttesterEnabled) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AttesterEnabled) ProtoMessage() {} + +// Deprecated: Use AttesterEnabled.ProtoReflect.Descriptor instead. +func (*AttesterEnabled) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_events_proto_rawDescGZIP(), []int{0} +} + +func (x *AttesterEnabled) GetAttester() string { + if x != nil { + return x.Attester + } + return "" +} + +// * +// Emitted when an attester is disabled +// @param attester newly disabled attester +type AttesterDisabled struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Attester string `protobuf:"bytes,1,opt,name=attester,proto3" json:"attester,omitempty"` +} + +func (x *AttesterDisabled) Reset() { + *x = AttesterDisabled{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_events_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AttesterDisabled) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AttesterDisabled) ProtoMessage() {} + +// Deprecated: Use AttesterDisabled.ProtoReflect.Descriptor instead. +func (*AttesterDisabled) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_events_proto_rawDescGZIP(), []int{1} +} + +func (x *AttesterDisabled) GetAttester() string { + if x != nil { + return x.Attester + } + return "" +} + +// * +// Emitted when threshold number of attestations (m in m/n multisig) is updated +// @param old_signature_threshold old signature threshold +// @param new_signature_threshold new signature threshold +type SignatureThresholdUpdated struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + OldSignatureThreshold uint64 `protobuf:"varint,1,opt,name=old_signature_threshold,json=oldSignatureThreshold,proto3" json:"old_signature_threshold,omitempty"` + NewSignatureThreshold uint64 `protobuf:"varint,2,opt,name=new_signature_threshold,json=newSignatureThreshold,proto3" json:"new_signature_threshold,omitempty"` +} + +func (x *SignatureThresholdUpdated) Reset() { + *x = SignatureThresholdUpdated{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_events_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SignatureThresholdUpdated) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SignatureThresholdUpdated) ProtoMessage() {} + +// Deprecated: Use SignatureThresholdUpdated.ProtoReflect.Descriptor instead. +func (*SignatureThresholdUpdated) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_events_proto_rawDescGZIP(), []int{2} +} + +func (x *SignatureThresholdUpdated) GetOldSignatureThreshold() uint64 { + if x != nil { + return x.OldSignatureThreshold + } + return 0 +} + +func (x *SignatureThresholdUpdated) GetNewSignatureThreshold() uint64 { + if x != nil { + return x.NewSignatureThreshold + } + return 0 +} + +// * +// Emitted when owner address is updated +// @param previous_owner representing the address of the previous owner +// @param new_owner representing the address of the new owner +type OwnerUpdated struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + PreviousOwner string `protobuf:"bytes,1,opt,name=previous_owner,json=previousOwner,proto3" json:"previous_owner,omitempty"` + NewOwner string `protobuf:"bytes,2,opt,name=new_owner,json=newOwner,proto3" json:"new_owner,omitempty"` +} + +func (x *OwnerUpdated) Reset() { + *x = OwnerUpdated{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_events_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *OwnerUpdated) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OwnerUpdated) ProtoMessage() {} + +// Deprecated: Use OwnerUpdated.ProtoReflect.Descriptor instead. +func (*OwnerUpdated) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_events_proto_rawDescGZIP(), []int{3} +} + +func (x *OwnerUpdated) GetPreviousOwner() string { + if x != nil { + return x.PreviousOwner + } + return "" +} + +func (x *OwnerUpdated) GetNewOwner() string { + if x != nil { + return x.NewOwner + } + return "" +} + +// * +// Emitted when starting the two stage transfer ownership process +// @param previousOwner representing the address of the previous owner +// @param newOwner representing the address of the new owner +type OwnershipTransferStarted struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + PreviousOwner string `protobuf:"bytes,1,opt,name=previous_owner,json=previousOwner,proto3" json:"previous_owner,omitempty"` + NewOwner string `protobuf:"bytes,2,opt,name=new_owner,json=newOwner,proto3" json:"new_owner,omitempty"` +} + +func (x *OwnershipTransferStarted) Reset() { + *x = OwnershipTransferStarted{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_events_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *OwnershipTransferStarted) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OwnershipTransferStarted) ProtoMessage() {} + +// Deprecated: Use OwnershipTransferStarted.ProtoReflect.Descriptor instead. +func (*OwnershipTransferStarted) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_events_proto_rawDescGZIP(), []int{4} +} + +func (x *OwnershipTransferStarted) GetPreviousOwner() string { + if x != nil { + return x.PreviousOwner + } + return "" +} + +func (x *OwnershipTransferStarted) GetNewOwner() string { + if x != nil { + return x.NewOwner + } + return "" +} + +// * +// Emitted when pauser address is updated +// @param previous_pauser representing the address of the previous pauser +// @param new_pauser representing the address of the new pauser +type PauserUpdated struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + PreviousPauser string `protobuf:"bytes,1,opt,name=previous_pauser,json=previousPauser,proto3" json:"previous_pauser,omitempty"` + NewPauser string `protobuf:"bytes,2,opt,name=new_pauser,json=newPauser,proto3" json:"new_pauser,omitempty"` +} + +func (x *PauserUpdated) Reset() { + *x = PauserUpdated{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_events_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PauserUpdated) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PauserUpdated) ProtoMessage() {} + +// Deprecated: Use PauserUpdated.ProtoReflect.Descriptor instead. +func (*PauserUpdated) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_events_proto_rawDescGZIP(), []int{5} +} + +func (x *PauserUpdated) GetPreviousPauser() string { + if x != nil { + return x.PreviousPauser + } + return "" +} + +func (x *PauserUpdated) GetNewPauser() string { + if x != nil { + return x.NewPauser + } + return "" +} + +// * +// Emitted when attester manager address is updated +// @param previous_attester_manager representing the address of the previous +// attester manager +// @param new_attester_manager representing the address of the new attester +// manager +type AttesterManagerUpdated struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + PreviousAttesterManager string `protobuf:"bytes,1,opt,name=previous_attester_manager,json=previousAttesterManager,proto3" json:"previous_attester_manager,omitempty"` + NewAttesterManager string `protobuf:"bytes,2,opt,name=new_attester_manager,json=newAttesterManager,proto3" json:"new_attester_manager,omitempty"` +} + +func (x *AttesterManagerUpdated) Reset() { + *x = AttesterManagerUpdated{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_events_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AttesterManagerUpdated) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AttesterManagerUpdated) ProtoMessage() {} + +// Deprecated: Use AttesterManagerUpdated.ProtoReflect.Descriptor instead. +func (*AttesterManagerUpdated) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_events_proto_rawDescGZIP(), []int{6} +} + +func (x *AttesterManagerUpdated) GetPreviousAttesterManager() string { + if x != nil { + return x.PreviousAttesterManager + } + return "" +} + +func (x *AttesterManagerUpdated) GetNewAttesterManager() string { + if x != nil { + return x.NewAttesterManager + } + return "" +} + +// * +// Emitted when token controller address is updated +// @param previous_token_controller representing the address of the previous +// token controller +// @param new_token_controller representing the address of the new token +// controller +type TokenControllerUpdated struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + PreviousTokenController string `protobuf:"bytes,1,opt,name=previous_token_controller,json=previousTokenController,proto3" json:"previous_token_controller,omitempty"` + NewTokenController string `protobuf:"bytes,2,opt,name=new_token_controller,json=newTokenController,proto3" json:"new_token_controller,omitempty"` +} + +func (x *TokenControllerUpdated) Reset() { + *x = TokenControllerUpdated{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_events_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TokenControllerUpdated) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TokenControllerUpdated) ProtoMessage() {} + +// Deprecated: Use TokenControllerUpdated.ProtoReflect.Descriptor instead. +func (*TokenControllerUpdated) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_events_proto_rawDescGZIP(), []int{7} +} + +func (x *TokenControllerUpdated) GetPreviousTokenController() string { + if x != nil { + return x.PreviousTokenController + } + return "" +} + +func (x *TokenControllerUpdated) GetNewTokenController() string { + if x != nil { + return x.NewTokenController + } + return "" +} + +// * +// Emitted when burning and minting tokens is paused +type BurningAndMintingPausedEvent struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *BurningAndMintingPausedEvent) Reset() { + *x = BurningAndMintingPausedEvent{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_events_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BurningAndMintingPausedEvent) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BurningAndMintingPausedEvent) ProtoMessage() {} + +// Deprecated: Use BurningAndMintingPausedEvent.ProtoReflect.Descriptor instead. +func (*BurningAndMintingPausedEvent) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_events_proto_rawDescGZIP(), []int{8} +} + +// * +// Emitted when burning and minting tokens is unpaused +type BurningAndMintingUnpausedEvent struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *BurningAndMintingUnpausedEvent) Reset() { + *x = BurningAndMintingUnpausedEvent{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_events_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BurningAndMintingUnpausedEvent) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BurningAndMintingUnpausedEvent) ProtoMessage() {} + +// Deprecated: Use BurningAndMintingUnpausedEvent.ProtoReflect.Descriptor instead. +func (*BurningAndMintingUnpausedEvent) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_events_proto_rawDescGZIP(), []int{9} +} + +// * +// Emitted when sending and receiving messages is paused +type SendingAndReceivingPausedEvent struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *SendingAndReceivingPausedEvent) Reset() { + *x = SendingAndReceivingPausedEvent{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_events_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SendingAndReceivingPausedEvent) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SendingAndReceivingPausedEvent) ProtoMessage() {} + +// Deprecated: Use SendingAndReceivingPausedEvent.ProtoReflect.Descriptor instead. +func (*SendingAndReceivingPausedEvent) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_events_proto_rawDescGZIP(), []int{10} +} + +// * +// Emitted when sending and receiving messages is paused +type SendingAndReceivingUnpausedEvent struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *SendingAndReceivingUnpausedEvent) Reset() { + *x = SendingAndReceivingUnpausedEvent{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_events_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SendingAndReceivingUnpausedEvent) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SendingAndReceivingUnpausedEvent) ProtoMessage() {} + +// Deprecated: Use SendingAndReceivingUnpausedEvent.ProtoReflect.Descriptor instead. +func (*SendingAndReceivingUnpausedEvent) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_events_proto_rawDescGZIP(), []int{11} +} + +// * +// Emitted when a DepositForBurn message is sent +// @param nonce unique nonce reserved by message +// @param burn_token address of token burnt on source domain +// @param amount deposit amount +// @param depositor address where deposit is transferred from +// @param mint_recipient address receiving minted tokens on destination domain +// as bytes32 +// @param destination_domain destination domain +// @param destination_token_messenger address of TokenMessenger on destination +// domain as bytes32 +// @param destination_caller authorized caller as bytes32 of receiveMessage() on +// destination domain, if not equal to bytes32(0). If equal to bytes32(0), any +// address can call receiveMessage(). +type DepositForBurn struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Nonce uint64 `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"` + BurnToken string `protobuf:"bytes,2,opt,name=burn_token,json=burnToken,proto3" json:"burn_token,omitempty"` + Amount string `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"` + Depositor string `protobuf:"bytes,4,opt,name=depositor,proto3" json:"depositor,omitempty"` + MintRecipient []byte `protobuf:"bytes,5,opt,name=mint_recipient,json=mintRecipient,proto3" json:"mint_recipient,omitempty"` + DestinationDomain uint32 `protobuf:"varint,6,opt,name=destination_domain,json=destinationDomain,proto3" json:"destination_domain,omitempty"` + DestinationTokenMessenger []byte `protobuf:"bytes,7,opt,name=destination_token_messenger,json=destinationTokenMessenger,proto3" json:"destination_token_messenger,omitempty"` + DestinationCaller []byte `protobuf:"bytes,8,opt,name=destination_caller,json=destinationCaller,proto3" json:"destination_caller,omitempty"` +} + +func (x *DepositForBurn) Reset() { + *x = DepositForBurn{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_events_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DepositForBurn) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DepositForBurn) ProtoMessage() {} + +// Deprecated: Use DepositForBurn.ProtoReflect.Descriptor instead. +func (*DepositForBurn) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_events_proto_rawDescGZIP(), []int{12} +} + +func (x *DepositForBurn) GetNonce() uint64 { + if x != nil { + return x.Nonce + } + return 0 +} + +func (x *DepositForBurn) GetBurnToken() string { + if x != nil { + return x.BurnToken + } + return "" +} + +func (x *DepositForBurn) GetAmount() string { + if x != nil { + return x.Amount + } + return "" +} + +func (x *DepositForBurn) GetDepositor() string { + if x != nil { + return x.Depositor + } + return "" +} + +func (x *DepositForBurn) GetMintRecipient() []byte { + if x != nil { + return x.MintRecipient + } + return nil +} + +func (x *DepositForBurn) GetDestinationDomain() uint32 { + if x != nil { + return x.DestinationDomain + } + return 0 +} + +func (x *DepositForBurn) GetDestinationTokenMessenger() []byte { + if x != nil { + return x.DestinationTokenMessenger + } + return nil +} + +func (x *DepositForBurn) GetDestinationCaller() []byte { + if x != nil { + return x.DestinationCaller + } + return nil +} + +// * +// Emitted when tokens are minted +// @param mint_recipient recipient address of minted tokens +// @param amount amount of minted tokens +// @param mint_token contract address of minted token +type MintAndWithdraw struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + MintRecipient []byte `protobuf:"bytes,1,opt,name=mint_recipient,json=mintRecipient,proto3" json:"mint_recipient,omitempty"` + Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"` + MintToken string `protobuf:"bytes,3,opt,name=mint_token,json=mintToken,proto3" json:"mint_token,omitempty"` +} + +func (x *MintAndWithdraw) Reset() { + *x = MintAndWithdraw{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_events_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MintAndWithdraw) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MintAndWithdraw) ProtoMessage() {} + +// Deprecated: Use MintAndWithdraw.ProtoReflect.Descriptor instead. +func (*MintAndWithdraw) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_events_proto_rawDescGZIP(), []int{13} +} + +func (x *MintAndWithdraw) GetMintRecipient() []byte { + if x != nil { + return x.MintRecipient + } + return nil +} + +func (x *MintAndWithdraw) GetAmount() string { + if x != nil { + return x.Amount + } + return "" +} + +func (x *MintAndWithdraw) GetMintToken() string { + if x != nil { + return x.MintToken + } + return "" +} + +// * +// Emitted when a token pair is linked +// @param local_token local token to support +// @param remote_domain remote domain +// @param remote_token token on `remoteDomain` corresponding to `localToken` +type TokenPairLinked struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + LocalToken string `protobuf:"bytes,1,opt,name=local_token,json=localToken,proto3" json:"local_token,omitempty"` + RemoteDomain uint32 `protobuf:"varint,2,opt,name=remote_domain,json=remoteDomain,proto3" json:"remote_domain,omitempty"` + RemoteToken []byte `protobuf:"bytes,3,opt,name=remote_token,json=remoteToken,proto3" json:"remote_token,omitempty"` +} + +func (x *TokenPairLinked) Reset() { + *x = TokenPairLinked{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_events_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TokenPairLinked) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TokenPairLinked) ProtoMessage() {} + +// Deprecated: Use TokenPairLinked.ProtoReflect.Descriptor instead. +func (*TokenPairLinked) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_events_proto_rawDescGZIP(), []int{14} +} + +func (x *TokenPairLinked) GetLocalToken() string { + if x != nil { + return x.LocalToken + } + return "" +} + +func (x *TokenPairLinked) GetRemoteDomain() uint32 { + if x != nil { + return x.RemoteDomain + } + return 0 +} + +func (x *TokenPairLinked) GetRemoteToken() []byte { + if x != nil { + return x.RemoteToken + } + return nil +} + +// * +// Emitted when a token pair is unlinked +// @param local_token local token address +// @param remote_domain remote domain +// @param remote_token token on `remoteDomain` unlinked from `localToken` +type TokenPairUnlinked struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + LocalToken string `protobuf:"bytes,1,opt,name=local_token,json=localToken,proto3" json:"local_token,omitempty"` + RemoteDomain uint32 `protobuf:"varint,2,opt,name=remote_domain,json=remoteDomain,proto3" json:"remote_domain,omitempty"` + RemoteToken []byte `protobuf:"bytes,3,opt,name=remote_token,json=remoteToken,proto3" json:"remote_token,omitempty"` +} + +func (x *TokenPairUnlinked) Reset() { + *x = TokenPairUnlinked{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_events_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TokenPairUnlinked) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TokenPairUnlinked) ProtoMessage() {} + +// Deprecated: Use TokenPairUnlinked.ProtoReflect.Descriptor instead. +func (*TokenPairUnlinked) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_events_proto_rawDescGZIP(), []int{15} +} + +func (x *TokenPairUnlinked) GetLocalToken() string { + if x != nil { + return x.LocalToken + } + return "" +} + +func (x *TokenPairUnlinked) GetRemoteDomain() uint32 { + if x != nil { + return x.RemoteDomain + } + return 0 +} + +func (x *TokenPairUnlinked) GetRemoteToken() []byte { + if x != nil { + return x.RemoteToken + } + return nil +} + +// * +// Emitted when a new message is dispatched +// @param message Raw bytes of message +type MessageSent struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Message []byte `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` +} + +func (x *MessageSent) Reset() { + *x = MessageSent{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_events_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MessageSent) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MessageSent) ProtoMessage() {} + +// Deprecated: Use MessageSent.ProtoReflect.Descriptor instead. +func (*MessageSent) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_events_proto_rawDescGZIP(), []int{16} +} + +func (x *MessageSent) GetMessage() []byte { + if x != nil { + return x.Message + } + return nil +} + +// * +// Emitted when a new message is received +// @param caller caller (msg.sender) on destination domain +// @param source_domain the source domain this message originated from +// @param nonce the nonce unique to this message +// @param sender the sender of this message +// @param message_body message body bytes +type MessageReceived struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Caller string `protobuf:"bytes,1,opt,name=caller,proto3" json:"caller,omitempty"` + SourceDomain uint32 `protobuf:"varint,2,opt,name=source_domain,json=sourceDomain,proto3" json:"source_domain,omitempty"` + Nonce uint64 `protobuf:"varint,3,opt,name=nonce,proto3" json:"nonce,omitempty"` + Sender []byte `protobuf:"bytes,4,opt,name=sender,proto3" json:"sender,omitempty"` + MessageBody []byte `protobuf:"bytes,5,opt,name=message_body,json=messageBody,proto3" json:"message_body,omitempty"` +} + +func (x *MessageReceived) Reset() { + *x = MessageReceived{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_events_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MessageReceived) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MessageReceived) ProtoMessage() {} + +// Deprecated: Use MessageReceived.ProtoReflect.Descriptor instead. +func (*MessageReceived) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_events_proto_rawDescGZIP(), []int{17} +} + +func (x *MessageReceived) GetCaller() string { + if x != nil { + return x.Caller + } + return "" +} + +func (x *MessageReceived) GetSourceDomain() uint32 { + if x != nil { + return x.SourceDomain + } + return 0 +} + +func (x *MessageReceived) GetNonce() uint64 { + if x != nil { + return x.Nonce + } + return 0 +} + +func (x *MessageReceived) GetSender() []byte { + if x != nil { + return x.Sender + } + return nil +} + +func (x *MessageReceived) GetMessageBody() []byte { + if x != nil { + return x.MessageBody + } + return nil +} + +// * +// Emitted when max message body size is updated +// @param new_max_message_body_size new maximum message body size, in bytes +type MaxMessageBodySizeUpdated struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + NewMaxMessageBodySize uint64 `protobuf:"varint,1,opt,name=new_max_message_body_size,json=newMaxMessageBodySize,proto3" json:"new_max_message_body_size,omitempty"` +} + +func (x *MaxMessageBodySizeUpdated) Reset() { + *x = MaxMessageBodySizeUpdated{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_events_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MaxMessageBodySizeUpdated) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MaxMessageBodySizeUpdated) ProtoMessage() {} + +// Deprecated: Use MaxMessageBodySizeUpdated.ProtoReflect.Descriptor instead. +func (*MaxMessageBodySizeUpdated) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_events_proto_rawDescGZIP(), []int{18} +} + +func (x *MaxMessageBodySizeUpdated) GetNewMaxMessageBodySize() uint64 { + if x != nil { + return x.NewMaxMessageBodySize + } + return 0 +} + +// * +// Emitted when a RemoteTokenMessenger is added +// @param domain remote domain +// @param remote_token_messenger RemoteTokenMessenger on domain +type RemoteTokenMessengerAdded struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Domain uint32 `protobuf:"varint,1,opt,name=domain,proto3" json:"domain,omitempty"` + RemoteTokenMessenger []byte `protobuf:"bytes,2,opt,name=remote_token_messenger,json=remoteTokenMessenger,proto3" json:"remote_token_messenger,omitempty"` +} + +func (x *RemoteTokenMessengerAdded) Reset() { + *x = RemoteTokenMessengerAdded{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_events_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RemoteTokenMessengerAdded) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RemoteTokenMessengerAdded) ProtoMessage() {} + +// Deprecated: Use RemoteTokenMessengerAdded.ProtoReflect.Descriptor instead. +func (*RemoteTokenMessengerAdded) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_events_proto_rawDescGZIP(), []int{19} +} + +func (x *RemoteTokenMessengerAdded) GetDomain() uint32 { + if x != nil { + return x.Domain + } + return 0 +} + +func (x *RemoteTokenMessengerAdded) GetRemoteTokenMessenger() []byte { + if x != nil { + return x.RemoteTokenMessenger + } + return nil +} + +// * +// Emitted when a RemoteTokenMessenger is removed +// @param domain remote domain +// @param remote_token_messenger RemoteTokenMessenger on domain +type RemoteTokenMessengerRemoved struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Domain uint32 `protobuf:"varint,1,opt,name=domain,proto3" json:"domain,omitempty"` + RemoteTokenMessenger []byte `protobuf:"bytes,2,opt,name=remote_token_messenger,json=remoteTokenMessenger,proto3" json:"remote_token_messenger,omitempty"` +} + +func (x *RemoteTokenMessengerRemoved) Reset() { + *x = RemoteTokenMessengerRemoved{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_events_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RemoteTokenMessengerRemoved) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RemoteTokenMessengerRemoved) ProtoMessage() {} + +// Deprecated: Use RemoteTokenMessengerRemoved.ProtoReflect.Descriptor instead. +func (*RemoteTokenMessengerRemoved) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_events_proto_rawDescGZIP(), []int{20} +} + +func (x *RemoteTokenMessengerRemoved) GetDomain() uint32 { + if x != nil { + return x.Domain + } + return 0 +} + +func (x *RemoteTokenMessengerRemoved) GetRemoteTokenMessenger() []byte { + if x != nil { + return x.RemoteTokenMessenger + } + return nil +} + +// * +// Emitted when max burn amount per message is updated +// @param local_token +// @param old_amount old max burn amount +// @param new_amount new max burn amount +type SetBurnLimitPerMessage struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` + BurnLimitPerMessage string `protobuf:"bytes,2,opt,name=burn_limit_per_message,json=burnLimitPerMessage,proto3" json:"burn_limit_per_message,omitempty"` +} + +func (x *SetBurnLimitPerMessage) Reset() { + *x = SetBurnLimitPerMessage{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_events_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SetBurnLimitPerMessage) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SetBurnLimitPerMessage) ProtoMessage() {} + +// Deprecated: Use SetBurnLimitPerMessage.ProtoReflect.Descriptor instead. +func (*SetBurnLimitPerMessage) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_events_proto_rawDescGZIP(), []int{21} +} + +func (x *SetBurnLimitPerMessage) GetToken() string { + if x != nil { + return x.Token + } + return "" +} + +func (x *SetBurnLimitPerMessage) GetBurnLimitPerMessage() string { + if x != nil { + return x.BurnLimitPerMessage + } + return "" +} + +var File_circle_cctp_v1_events_proto protoreflect.FileDescriptor + +var file_circle_cctp_v1_events_proto_rawDesc = []byte{ + 0x0a, 0x1b, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2f, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x76, 0x31, + 0x2f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x63, + 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x1a, 0x14, 0x67, + 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x22, 0x2d, 0x0a, 0x0f, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x65, 0x72, 0x45, + 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, + 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, + 0x65, 0x72, 0x22, 0x2e, 0x0a, 0x10, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x65, 0x72, 0x44, 0x69, + 0x73, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, + 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, + 0x65, 0x72, 0x22, 0x8b, 0x01, 0x0a, 0x19, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, + 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, + 0x12, 0x36, 0x0a, 0x17, 0x6f, 0x6c, 0x64, 0x5f, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, + 0x65, 0x5f, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x15, 0x6f, 0x6c, 0x64, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x54, + 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x12, 0x36, 0x0a, 0x17, 0x6e, 0x65, 0x77, 0x5f, + 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x5f, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, + 0x6f, 0x6c, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x15, 0x6e, 0x65, 0x77, 0x53, 0x69, + 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, + 0x22, 0x52, 0x0a, 0x0c, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, + 0x12, 0x25, 0x0a, 0x0e, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x5f, 0x6f, 0x77, 0x6e, + 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, + 0x75, 0x73, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x65, 0x77, 0x5f, 0x6f, + 0x77, 0x6e, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6e, 0x65, 0x77, 0x4f, + 0x77, 0x6e, 0x65, 0x72, 0x22, 0x5e, 0x0a, 0x18, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, + 0x70, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x53, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, + 0x12, 0x25, 0x0a, 0x0e, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x5f, 0x6f, 0x77, 0x6e, + 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, + 0x75, 0x73, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x65, 0x77, 0x5f, 0x6f, + 0x77, 0x6e, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6e, 0x65, 0x77, 0x4f, + 0x77, 0x6e, 0x65, 0x72, 0x22, 0x57, 0x0a, 0x0d, 0x50, 0x61, 0x75, 0x73, 0x65, 0x72, 0x55, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x64, 0x12, 0x27, 0x0a, 0x0f, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, + 0x73, 0x5f, 0x70, 0x61, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, + 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x50, 0x61, 0x75, 0x73, 0x65, 0x72, 0x12, 0x1d, + 0x0a, 0x0a, 0x6e, 0x65, 0x77, 0x5f, 0x70, 0x61, 0x75, 0x73, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x09, 0x6e, 0x65, 0x77, 0x50, 0x61, 0x75, 0x73, 0x65, 0x72, 0x22, 0x86, 0x01, + 0x0a, 0x16, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x65, 0x72, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, + 0x72, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x12, 0x3a, 0x0a, 0x19, 0x70, 0x72, 0x65, 0x76, + 0x69, 0x6f, 0x75, 0x73, 0x5f, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x6d, 0x61, + 0x6e, 0x61, 0x67, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, 0x70, 0x72, 0x65, + 0x76, 0x69, 0x6f, 0x75, 0x73, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x65, 0x72, 0x4d, 0x61, 0x6e, + 0x61, 0x67, 0x65, 0x72, 0x12, 0x30, 0x0a, 0x14, 0x6e, 0x65, 0x77, 0x5f, 0x61, 0x74, 0x74, 0x65, + 0x73, 0x74, 0x65, 0x72, 0x5f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x12, 0x6e, 0x65, 0x77, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x65, 0x72, 0x4d, + 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x22, 0x86, 0x01, 0x0a, 0x16, 0x54, 0x6f, 0x6b, 0x65, 0x6e, + 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x64, 0x12, 0x3a, 0x0a, 0x19, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x5f, 0x74, 0x6f, + 0x6b, 0x65, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x54, 0x6f, + 0x6b, 0x65, 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x12, 0x30, 0x0a, + 0x14, 0x6e, 0x65, 0x77, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x72, + 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x6e, 0x65, 0x77, + 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x22, + 0x1e, 0x0a, 0x1c, 0x42, 0x75, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x41, 0x6e, 0x64, 0x4d, 0x69, 0x6e, + 0x74, 0x69, 0x6e, 0x67, 0x50, 0x61, 0x75, 0x73, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x22, + 0x20, 0x0a, 0x1e, 0x42, 0x75, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x41, 0x6e, 0x64, 0x4d, 0x69, 0x6e, + 0x74, 0x69, 0x6e, 0x67, 0x55, 0x6e, 0x70, 0x61, 0x75, 0x73, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, + 0x74, 0x22, 0x20, 0x0a, 0x1e, 0x53, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x41, 0x6e, 0x64, 0x52, + 0x65, 0x63, 0x65, 0x69, 0x76, 0x69, 0x6e, 0x67, 0x50, 0x61, 0x75, 0x73, 0x65, 0x64, 0x45, 0x76, + 0x65, 0x6e, 0x74, 0x22, 0x22, 0x0a, 0x20, 0x53, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x41, 0x6e, + 0x64, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x69, 0x6e, 0x67, 0x55, 0x6e, 0x70, 0x61, 0x75, 0x73, + 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x22, 0xdf, 0x02, 0x0a, 0x0e, 0x44, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x46, 0x6f, 0x72, 0x42, 0x75, 0x72, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, + 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, + 0x12, 0x1d, 0x0a, 0x0a, 0x62, 0x75, 0x72, 0x6e, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x62, 0x75, 0x72, 0x6e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, + 0x35, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, + 0x1d, 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, 0x52, 0x06, + 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x6f, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x64, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x12, 0x25, 0x0a, 0x0e, 0x6d, 0x69, 0x6e, 0x74, 0x5f, 0x72, 0x65, 0x63, + 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, 0x6d, 0x69, + 0x6e, 0x74, 0x52, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x2d, 0x0a, 0x12, 0x64, + 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, + 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x11, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x3e, 0x0a, 0x1b, 0x64, 0x65, + 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, + 0x6d, 0x65, 0x73, 0x73, 0x65, 0x6e, 0x67, 0x65, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x19, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x6b, 0x65, + 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x65, 0x6e, 0x67, 0x65, 0x72, 0x12, 0x2d, 0x0a, 0x12, 0x64, 0x65, + 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x61, 0x6c, 0x6c, 0x65, 0x72, + 0x18, 0x08, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x11, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x43, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x22, 0x8e, 0x01, 0x0a, 0x0f, 0x4d, 0x69, + 0x6e, 0x74, 0x41, 0x6e, 0x64, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x12, 0x25, 0x0a, + 0x0e, 0x6d, 0x69, 0x6e, 0x74, 0x5f, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, 0x6d, 0x69, 0x6e, 0x74, 0x52, 0x65, 0x63, 0x69, 0x70, + 0x69, 0x65, 0x6e, 0x74, 0x12, 0x35, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x42, 0x1d, 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, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, + 0x69, 0x6e, 0x74, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x09, 0x6d, 0x69, 0x6e, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x7a, 0x0a, 0x0f, 0x54, 0x6f, + 0x6b, 0x65, 0x6e, 0x50, 0x61, 0x69, 0x72, 0x4c, 0x69, 0x6e, 0x6b, 0x65, 0x64, 0x12, 0x1f, 0x0a, + 0x0b, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x23, + 0x0a, 0x0d, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0c, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x44, 0x6f, 0x6d, + 0x61, 0x69, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x74, 0x6f, + 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x72, 0x65, 0x6d, 0x6f, 0x74, + 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x7c, 0x0a, 0x11, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x50, + 0x61, 0x69, 0x72, 0x55, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x65, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x6c, + 0x6f, 0x63, 0x61, 0x6c, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x23, 0x0a, 0x0d, + 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0d, 0x52, 0x0c, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x44, 0x6f, 0x6d, 0x61, 0x69, + 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, + 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x54, + 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x27, 0x0a, 0x0b, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x53, + 0x65, 0x6e, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x9f, 0x01, + 0x0a, 0x0f, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, + 0x64, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x06, 0x63, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, + 0x52, 0x0c, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x14, + 0x0a, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6e, + 0x6f, 0x6e, 0x63, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x21, 0x0a, 0x0c, + 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x0b, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x42, 0x6f, 0x64, 0x79, 0x22, + 0x55, 0x0a, 0x19, 0x4d, 0x61, 0x78, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x42, 0x6f, 0x64, + 0x79, 0x53, 0x69, 0x7a, 0x65, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x12, 0x38, 0x0a, 0x19, + 0x6e, 0x65, 0x77, 0x5f, 0x6d, 0x61, 0x78, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, + 0x62, 0x6f, 0x64, 0x79, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x15, 0x6e, 0x65, 0x77, 0x4d, 0x61, 0x78, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x42, 0x6f, + 0x64, 0x79, 0x53, 0x69, 0x7a, 0x65, 0x22, 0x69, 0x0a, 0x19, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, + 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x65, 0x6e, 0x67, 0x65, 0x72, 0x41, 0x64, + 0x64, 0x65, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0d, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x34, 0x0a, 0x16, 0x72, + 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x6d, 0x65, 0x73, 0x73, + 0x65, 0x6e, 0x67, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x14, 0x72, 0x65, 0x6d, + 0x6f, 0x74, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x65, 0x6e, 0x67, 0x65, + 0x72, 0x22, 0x6b, 0x0a, 0x1b, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, + 0x4d, 0x65, 0x73, 0x73, 0x65, 0x6e, 0x67, 0x65, 0x72, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x64, + 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, + 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x34, 0x0a, 0x16, 0x72, 0x65, 0x6d, 0x6f, + 0x74, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x65, 0x6e, 0x67, + 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x14, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, + 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x65, 0x6e, 0x67, 0x65, 0x72, 0x22, 0x82, + 0x01, 0x0a, 0x16, 0x53, 0x65, 0x74, 0x42, 0x75, 0x72, 0x6e, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x50, + 0x65, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, + 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, + 0x52, 0x0a, 0x16, 0x62, 0x75, 0x72, 0x6e, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x5f, 0x70, 0x65, + 0x72, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, + 0x1d, 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, 0x52, 0x13, + 0x62, 0x75, 0x72, 0x6e, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x50, 0x65, 0x72, 0x4d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x42, 0xb6, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x69, 0x72, 0x63, + 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x42, 0x0b, 0x45, 0x76, 0x65, 0x6e, + 0x74, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x39, 0x67, 0x69, 0x74, 0x68, 0x75, + 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x66, 0x69, 0x6e, 0x2f, + 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2d, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, + 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2f, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x76, 0x31, 0x3b, 0x63, 0x63, + 0x74, 0x70, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x43, 0x58, 0xaa, 0x02, 0x0e, 0x43, 0x69, 0x72, + 0x63, 0x6c, 0x65, 0x2e, 0x43, 0x63, 0x74, 0x70, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0e, 0x43, 0x69, + 0x72, 0x63, 0x6c, 0x65, 0x5c, 0x43, 0x63, 0x74, 0x70, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1a, 0x43, + 0x69, 0x72, 0x63, 0x6c, 0x65, 0x5c, 0x43, 0x63, 0x74, 0x70, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, + 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x10, 0x43, 0x69, 0x72, 0x63, + 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x63, 0x74, 0x70, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_circle_cctp_v1_events_proto_rawDescOnce sync.Once + file_circle_cctp_v1_events_proto_rawDescData = file_circle_cctp_v1_events_proto_rawDesc +) + +func file_circle_cctp_v1_events_proto_rawDescGZIP() []byte { + file_circle_cctp_v1_events_proto_rawDescOnce.Do(func() { + file_circle_cctp_v1_events_proto_rawDescData = protoimpl.X.CompressGZIP(file_circle_cctp_v1_events_proto_rawDescData) + }) + return file_circle_cctp_v1_events_proto_rawDescData +} + +var file_circle_cctp_v1_events_proto_msgTypes = make([]protoimpl.MessageInfo, 22) +var file_circle_cctp_v1_events_proto_goTypes = []interface{}{ + (*AttesterEnabled)(nil), // 0: circle.cctp.v1.AttesterEnabled + (*AttesterDisabled)(nil), // 1: circle.cctp.v1.AttesterDisabled + (*SignatureThresholdUpdated)(nil), // 2: circle.cctp.v1.SignatureThresholdUpdated + (*OwnerUpdated)(nil), // 3: circle.cctp.v1.OwnerUpdated + (*OwnershipTransferStarted)(nil), // 4: circle.cctp.v1.OwnershipTransferStarted + (*PauserUpdated)(nil), // 5: circle.cctp.v1.PauserUpdated + (*AttesterManagerUpdated)(nil), // 6: circle.cctp.v1.AttesterManagerUpdated + (*TokenControllerUpdated)(nil), // 7: circle.cctp.v1.TokenControllerUpdated + (*BurningAndMintingPausedEvent)(nil), // 8: circle.cctp.v1.BurningAndMintingPausedEvent + (*BurningAndMintingUnpausedEvent)(nil), // 9: circle.cctp.v1.BurningAndMintingUnpausedEvent + (*SendingAndReceivingPausedEvent)(nil), // 10: circle.cctp.v1.SendingAndReceivingPausedEvent + (*SendingAndReceivingUnpausedEvent)(nil), // 11: circle.cctp.v1.SendingAndReceivingUnpausedEvent + (*DepositForBurn)(nil), // 12: circle.cctp.v1.DepositForBurn + (*MintAndWithdraw)(nil), // 13: circle.cctp.v1.MintAndWithdraw + (*TokenPairLinked)(nil), // 14: circle.cctp.v1.TokenPairLinked + (*TokenPairUnlinked)(nil), // 15: circle.cctp.v1.TokenPairUnlinked + (*MessageSent)(nil), // 16: circle.cctp.v1.MessageSent + (*MessageReceived)(nil), // 17: circle.cctp.v1.MessageReceived + (*MaxMessageBodySizeUpdated)(nil), // 18: circle.cctp.v1.MaxMessageBodySizeUpdated + (*RemoteTokenMessengerAdded)(nil), // 19: circle.cctp.v1.RemoteTokenMessengerAdded + (*RemoteTokenMessengerRemoved)(nil), // 20: circle.cctp.v1.RemoteTokenMessengerRemoved + (*SetBurnLimitPerMessage)(nil), // 21: circle.cctp.v1.SetBurnLimitPerMessage +} +var file_circle_cctp_v1_events_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_circle_cctp_v1_events_proto_init() } +func file_circle_cctp_v1_events_proto_init() { + if File_circle_cctp_v1_events_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_circle_cctp_v1_events_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AttesterEnabled); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_events_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AttesterDisabled); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_events_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SignatureThresholdUpdated); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_events_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OwnerUpdated); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_events_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OwnershipTransferStarted); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_events_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PauserUpdated); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_events_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AttesterManagerUpdated); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_events_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TokenControllerUpdated); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_events_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BurningAndMintingPausedEvent); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_events_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BurningAndMintingUnpausedEvent); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_events_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SendingAndReceivingPausedEvent); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_events_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SendingAndReceivingUnpausedEvent); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_events_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DepositForBurn); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_events_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MintAndWithdraw); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_events_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TokenPairLinked); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_events_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TokenPairUnlinked); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_events_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MessageSent); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_events_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MessageReceived); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_events_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MaxMessageBodySizeUpdated); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_events_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RemoteTokenMessengerAdded); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_events_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RemoteTokenMessengerRemoved); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_events_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SetBurnLimitPerMessage); 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_circle_cctp_v1_events_proto_rawDesc, + NumEnums: 0, + NumMessages: 22, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_circle_cctp_v1_events_proto_goTypes, + DependencyIndexes: file_circle_cctp_v1_events_proto_depIdxs, + MessageInfos: file_circle_cctp_v1_events_proto_msgTypes, + }.Build() + File_circle_cctp_v1_events_proto = out.File + file_circle_cctp_v1_events_proto_rawDesc = nil + file_circle_cctp_v1_events_proto_goTypes = nil + file_circle_cctp_v1_events_proto_depIdxs = nil +} diff --git a/api/circle/cctp/v1/genesis.pulsar.go b/api/circle/cctp/v1/genesis.pulsar.go new file mode 100644 index 0000000..f78995d --- /dev/null +++ b/api/circle/cctp/v1/genesis.pulsar.go @@ -0,0 +1,2081 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package cctpv1 + +import ( + fmt "fmt" + 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" + io "io" + reflect "reflect" + sync "sync" +) + +var _ protoreflect.List = (*_GenesisState_6_list)(nil) + +type _GenesisState_6_list struct { + list *[]*Attester +} + +func (x *_GenesisState_6_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_GenesisState_6_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_GenesisState_6_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*Attester) + (*x.list)[i] = concreteValue +} + +func (x *_GenesisState_6_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*Attester) + *x.list = append(*x.list, concreteValue) +} + +func (x *_GenesisState_6_list) AppendMutable() protoreflect.Value { + v := new(Attester) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_6_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_GenesisState_6_list) NewElement() protoreflect.Value { + v := new(Attester) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_6_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_GenesisState_7_list)(nil) + +type _GenesisState_7_list struct { + list *[]*PerMessageBurnLimit +} + +func (x *_GenesisState_7_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_GenesisState_7_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_GenesisState_7_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*PerMessageBurnLimit) + (*x.list)[i] = concreteValue +} + +func (x *_GenesisState_7_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*PerMessageBurnLimit) + *x.list = append(*x.list, concreteValue) +} + +func (x *_GenesisState_7_list) AppendMutable() protoreflect.Value { + v := new(PerMessageBurnLimit) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_7_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_GenesisState_7_list) NewElement() protoreflect.Value { + v := new(PerMessageBurnLimit) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_7_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_GenesisState_13_list)(nil) + +type _GenesisState_13_list struct { + list *[]*TokenPair +} + +func (x *_GenesisState_13_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_GenesisState_13_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_GenesisState_13_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TokenPair) + (*x.list)[i] = concreteValue +} + +func (x *_GenesisState_13_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TokenPair) + *x.list = append(*x.list, concreteValue) +} + +func (x *_GenesisState_13_list) AppendMutable() protoreflect.Value { + v := new(TokenPair) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_13_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_GenesisState_13_list) NewElement() protoreflect.Value { + v := new(TokenPair) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_13_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_GenesisState_14_list)(nil) + +type _GenesisState_14_list struct { + list *[]*Nonce +} + +func (x *_GenesisState_14_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_GenesisState_14_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_GenesisState_14_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*Nonce) + (*x.list)[i] = concreteValue +} + +func (x *_GenesisState_14_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*Nonce) + *x.list = append(*x.list, concreteValue) +} + +func (x *_GenesisState_14_list) AppendMutable() protoreflect.Value { + v := new(Nonce) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_14_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_GenesisState_14_list) NewElement() protoreflect.Value { + v := new(Nonce) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_14_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_GenesisState_15_list)(nil) + +type _GenesisState_15_list struct { + list *[]*RemoteTokenMessenger +} + +func (x *_GenesisState_15_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_GenesisState_15_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_GenesisState_15_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*RemoteTokenMessenger) + (*x.list)[i] = concreteValue +} + +func (x *_GenesisState_15_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*RemoteTokenMessenger) + *x.list = append(*x.list, concreteValue) +} + +func (x *_GenesisState_15_list) AppendMutable() protoreflect.Value { + v := new(RemoteTokenMessenger) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_15_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_GenesisState_15_list) NewElement() protoreflect.Value { + v := new(RemoteTokenMessenger) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_15_list) IsValid() bool { + return x.list != nil +} + +var ( + md_GenesisState protoreflect.MessageDescriptor + fd_GenesisState_owner protoreflect.FieldDescriptor + fd_GenesisState_attester_manager protoreflect.FieldDescriptor + fd_GenesisState_pauser protoreflect.FieldDescriptor + fd_GenesisState_token_controller protoreflect.FieldDescriptor + fd_GenesisState_attester_list protoreflect.FieldDescriptor + fd_GenesisState_per_message_burn_limit_list protoreflect.FieldDescriptor + fd_GenesisState_burning_and_minting_paused protoreflect.FieldDescriptor + fd_GenesisState_sending_and_receiving_messages_paused protoreflect.FieldDescriptor + fd_GenesisState_max_message_body_size protoreflect.FieldDescriptor + fd_GenesisState_next_available_nonce protoreflect.FieldDescriptor + fd_GenesisState_signature_threshold protoreflect.FieldDescriptor + fd_GenesisState_token_pair_list protoreflect.FieldDescriptor + fd_GenesisState_used_nonces_list protoreflect.FieldDescriptor + fd_GenesisState_token_messenger_list protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_genesis_proto_init() + md_GenesisState = File_circle_cctp_v1_genesis_proto.Messages().ByName("GenesisState") + fd_GenesisState_owner = md_GenesisState.Fields().ByName("owner") + fd_GenesisState_attester_manager = md_GenesisState.Fields().ByName("attester_manager") + fd_GenesisState_pauser = md_GenesisState.Fields().ByName("pauser") + fd_GenesisState_token_controller = md_GenesisState.Fields().ByName("token_controller") + fd_GenesisState_attester_list = md_GenesisState.Fields().ByName("attester_list") + fd_GenesisState_per_message_burn_limit_list = md_GenesisState.Fields().ByName("per_message_burn_limit_list") + fd_GenesisState_burning_and_minting_paused = md_GenesisState.Fields().ByName("burning_and_minting_paused") + fd_GenesisState_sending_and_receiving_messages_paused = md_GenesisState.Fields().ByName("sending_and_receiving_messages_paused") + fd_GenesisState_max_message_body_size = md_GenesisState.Fields().ByName("max_message_body_size") + fd_GenesisState_next_available_nonce = md_GenesisState.Fields().ByName("next_available_nonce") + fd_GenesisState_signature_threshold = md_GenesisState.Fields().ByName("signature_threshold") + fd_GenesisState_token_pair_list = md_GenesisState.Fields().ByName("token_pair_list") + fd_GenesisState_used_nonces_list = md_GenesisState.Fields().ByName("used_nonces_list") + fd_GenesisState_token_messenger_list = md_GenesisState.Fields().ByName("token_messenger_list") +} + +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_circle_cctp_v1_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.Owner != "" { + value := protoreflect.ValueOfString(x.Owner) + if !f(fd_GenesisState_owner, value) { + return + } + } + if x.AttesterManager != "" { + value := protoreflect.ValueOfString(x.AttesterManager) + if !f(fd_GenesisState_attester_manager, value) { + return + } + } + if x.Pauser != "" { + value := protoreflect.ValueOfString(x.Pauser) + if !f(fd_GenesisState_pauser, value) { + return + } + } + if x.TokenController != "" { + value := protoreflect.ValueOfString(x.TokenController) + if !f(fd_GenesisState_token_controller, value) { + return + } + } + if len(x.AttesterList) != 0 { + value := protoreflect.ValueOfList(&_GenesisState_6_list{list: &x.AttesterList}) + if !f(fd_GenesisState_attester_list, value) { + return + } + } + if len(x.PerMessageBurnLimitList) != 0 { + value := protoreflect.ValueOfList(&_GenesisState_7_list{list: &x.PerMessageBurnLimitList}) + if !f(fd_GenesisState_per_message_burn_limit_list, value) { + return + } + } + if x.BurningAndMintingPaused != nil { + value := protoreflect.ValueOfMessage(x.BurningAndMintingPaused.ProtoReflect()) + if !f(fd_GenesisState_burning_and_minting_paused, value) { + return + } + } + if x.SendingAndReceivingMessagesPaused != nil { + value := protoreflect.ValueOfMessage(x.SendingAndReceivingMessagesPaused.ProtoReflect()) + if !f(fd_GenesisState_sending_and_receiving_messages_paused, value) { + return + } + } + if x.MaxMessageBodySize != nil { + value := protoreflect.ValueOfMessage(x.MaxMessageBodySize.ProtoReflect()) + if !f(fd_GenesisState_max_message_body_size, value) { + return + } + } + if x.NextAvailableNonce != nil { + value := protoreflect.ValueOfMessage(x.NextAvailableNonce.ProtoReflect()) + if !f(fd_GenesisState_next_available_nonce, value) { + return + } + } + if x.SignatureThreshold != nil { + value := protoreflect.ValueOfMessage(x.SignatureThreshold.ProtoReflect()) + if !f(fd_GenesisState_signature_threshold, value) { + return + } + } + if len(x.TokenPairList) != 0 { + value := protoreflect.ValueOfList(&_GenesisState_13_list{list: &x.TokenPairList}) + if !f(fd_GenesisState_token_pair_list, value) { + return + } + } + if len(x.UsedNoncesList) != 0 { + value := protoreflect.ValueOfList(&_GenesisState_14_list{list: &x.UsedNoncesList}) + if !f(fd_GenesisState_used_nonces_list, value) { + return + } + } + if len(x.TokenMessengerList) != 0 { + value := protoreflect.ValueOfList(&_GenesisState_15_list{list: &x.TokenMessengerList}) + if !f(fd_GenesisState_token_messenger_list, 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 "circle.cctp.v1.GenesisState.owner": + return x.Owner != "" + case "circle.cctp.v1.GenesisState.attester_manager": + return x.AttesterManager != "" + case "circle.cctp.v1.GenesisState.pauser": + return x.Pauser != "" + case "circle.cctp.v1.GenesisState.token_controller": + return x.TokenController != "" + case "circle.cctp.v1.GenesisState.attester_list": + return len(x.AttesterList) != 0 + case "circle.cctp.v1.GenesisState.per_message_burn_limit_list": + return len(x.PerMessageBurnLimitList) != 0 + case "circle.cctp.v1.GenesisState.burning_and_minting_paused": + return x.BurningAndMintingPaused != nil + case "circle.cctp.v1.GenesisState.sending_and_receiving_messages_paused": + return x.SendingAndReceivingMessagesPaused != nil + case "circle.cctp.v1.GenesisState.max_message_body_size": + return x.MaxMessageBodySize != nil + case "circle.cctp.v1.GenesisState.next_available_nonce": + return x.NextAvailableNonce != nil + case "circle.cctp.v1.GenesisState.signature_threshold": + return x.SignatureThreshold != nil + case "circle.cctp.v1.GenesisState.token_pair_list": + return len(x.TokenPairList) != 0 + case "circle.cctp.v1.GenesisState.used_nonces_list": + return len(x.UsedNoncesList) != 0 + case "circle.cctp.v1.GenesisState.token_messenger_list": + return len(x.TokenMessengerList) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.GenesisState")) + } + panic(fmt.Errorf("message circle.cctp.v1.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 "circle.cctp.v1.GenesisState.owner": + x.Owner = "" + case "circle.cctp.v1.GenesisState.attester_manager": + x.AttesterManager = "" + case "circle.cctp.v1.GenesisState.pauser": + x.Pauser = "" + case "circle.cctp.v1.GenesisState.token_controller": + x.TokenController = "" + case "circle.cctp.v1.GenesisState.attester_list": + x.AttesterList = nil + case "circle.cctp.v1.GenesisState.per_message_burn_limit_list": + x.PerMessageBurnLimitList = nil + case "circle.cctp.v1.GenesisState.burning_and_minting_paused": + x.BurningAndMintingPaused = nil + case "circle.cctp.v1.GenesisState.sending_and_receiving_messages_paused": + x.SendingAndReceivingMessagesPaused = nil + case "circle.cctp.v1.GenesisState.max_message_body_size": + x.MaxMessageBodySize = nil + case "circle.cctp.v1.GenesisState.next_available_nonce": + x.NextAvailableNonce = nil + case "circle.cctp.v1.GenesisState.signature_threshold": + x.SignatureThreshold = nil + case "circle.cctp.v1.GenesisState.token_pair_list": + x.TokenPairList = nil + case "circle.cctp.v1.GenesisState.used_nonces_list": + x.UsedNoncesList = nil + case "circle.cctp.v1.GenesisState.token_messenger_list": + x.TokenMessengerList = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.GenesisState")) + } + panic(fmt.Errorf("message circle.cctp.v1.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 "circle.cctp.v1.GenesisState.owner": + value := x.Owner + return protoreflect.ValueOfString(value) + case "circle.cctp.v1.GenesisState.attester_manager": + value := x.AttesterManager + return protoreflect.ValueOfString(value) + case "circle.cctp.v1.GenesisState.pauser": + value := x.Pauser + return protoreflect.ValueOfString(value) + case "circle.cctp.v1.GenesisState.token_controller": + value := x.TokenController + return protoreflect.ValueOfString(value) + case "circle.cctp.v1.GenesisState.attester_list": + if len(x.AttesterList) == 0 { + return protoreflect.ValueOfList(&_GenesisState_6_list{}) + } + listValue := &_GenesisState_6_list{list: &x.AttesterList} + return protoreflect.ValueOfList(listValue) + case "circle.cctp.v1.GenesisState.per_message_burn_limit_list": + if len(x.PerMessageBurnLimitList) == 0 { + return protoreflect.ValueOfList(&_GenesisState_7_list{}) + } + listValue := &_GenesisState_7_list{list: &x.PerMessageBurnLimitList} + return protoreflect.ValueOfList(listValue) + case "circle.cctp.v1.GenesisState.burning_and_minting_paused": + value := x.BurningAndMintingPaused + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "circle.cctp.v1.GenesisState.sending_and_receiving_messages_paused": + value := x.SendingAndReceivingMessagesPaused + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "circle.cctp.v1.GenesisState.max_message_body_size": + value := x.MaxMessageBodySize + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "circle.cctp.v1.GenesisState.next_available_nonce": + value := x.NextAvailableNonce + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "circle.cctp.v1.GenesisState.signature_threshold": + value := x.SignatureThreshold + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "circle.cctp.v1.GenesisState.token_pair_list": + if len(x.TokenPairList) == 0 { + return protoreflect.ValueOfList(&_GenesisState_13_list{}) + } + listValue := &_GenesisState_13_list{list: &x.TokenPairList} + return protoreflect.ValueOfList(listValue) + case "circle.cctp.v1.GenesisState.used_nonces_list": + if len(x.UsedNoncesList) == 0 { + return protoreflect.ValueOfList(&_GenesisState_14_list{}) + } + listValue := &_GenesisState_14_list{list: &x.UsedNoncesList} + return protoreflect.ValueOfList(listValue) + case "circle.cctp.v1.GenesisState.token_messenger_list": + if len(x.TokenMessengerList) == 0 { + return protoreflect.ValueOfList(&_GenesisState_15_list{}) + } + listValue := &_GenesisState_15_list{list: &x.TokenMessengerList} + return protoreflect.ValueOfList(listValue) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.GenesisState")) + } + panic(fmt.Errorf("message circle.cctp.v1.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 "circle.cctp.v1.GenesisState.owner": + x.Owner = value.Interface().(string) + case "circle.cctp.v1.GenesisState.attester_manager": + x.AttesterManager = value.Interface().(string) + case "circle.cctp.v1.GenesisState.pauser": + x.Pauser = value.Interface().(string) + case "circle.cctp.v1.GenesisState.token_controller": + x.TokenController = value.Interface().(string) + case "circle.cctp.v1.GenesisState.attester_list": + lv := value.List() + clv := lv.(*_GenesisState_6_list) + x.AttesterList = *clv.list + case "circle.cctp.v1.GenesisState.per_message_burn_limit_list": + lv := value.List() + clv := lv.(*_GenesisState_7_list) + x.PerMessageBurnLimitList = *clv.list + case "circle.cctp.v1.GenesisState.burning_and_minting_paused": + x.BurningAndMintingPaused = value.Message().Interface().(*BurningAndMintingPaused) + case "circle.cctp.v1.GenesisState.sending_and_receiving_messages_paused": + x.SendingAndReceivingMessagesPaused = value.Message().Interface().(*SendingAndReceivingMessagesPaused) + case "circle.cctp.v1.GenesisState.max_message_body_size": + x.MaxMessageBodySize = value.Message().Interface().(*MaxMessageBodySize) + case "circle.cctp.v1.GenesisState.next_available_nonce": + x.NextAvailableNonce = value.Message().Interface().(*Nonce) + case "circle.cctp.v1.GenesisState.signature_threshold": + x.SignatureThreshold = value.Message().Interface().(*SignatureThreshold) + case "circle.cctp.v1.GenesisState.token_pair_list": + lv := value.List() + clv := lv.(*_GenesisState_13_list) + x.TokenPairList = *clv.list + case "circle.cctp.v1.GenesisState.used_nonces_list": + lv := value.List() + clv := lv.(*_GenesisState_14_list) + x.UsedNoncesList = *clv.list + case "circle.cctp.v1.GenesisState.token_messenger_list": + lv := value.List() + clv := lv.(*_GenesisState_15_list) + x.TokenMessengerList = *clv.list + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.GenesisState")) + } + panic(fmt.Errorf("message circle.cctp.v1.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 "circle.cctp.v1.GenesisState.attester_list": + if x.AttesterList == nil { + x.AttesterList = []*Attester{} + } + value := &_GenesisState_6_list{list: &x.AttesterList} + return protoreflect.ValueOfList(value) + case "circle.cctp.v1.GenesisState.per_message_burn_limit_list": + if x.PerMessageBurnLimitList == nil { + x.PerMessageBurnLimitList = []*PerMessageBurnLimit{} + } + value := &_GenesisState_7_list{list: &x.PerMessageBurnLimitList} + return protoreflect.ValueOfList(value) + case "circle.cctp.v1.GenesisState.burning_and_minting_paused": + if x.BurningAndMintingPaused == nil { + x.BurningAndMintingPaused = new(BurningAndMintingPaused) + } + return protoreflect.ValueOfMessage(x.BurningAndMintingPaused.ProtoReflect()) + case "circle.cctp.v1.GenesisState.sending_and_receiving_messages_paused": + if x.SendingAndReceivingMessagesPaused == nil { + x.SendingAndReceivingMessagesPaused = new(SendingAndReceivingMessagesPaused) + } + return protoreflect.ValueOfMessage(x.SendingAndReceivingMessagesPaused.ProtoReflect()) + case "circle.cctp.v1.GenesisState.max_message_body_size": + if x.MaxMessageBodySize == nil { + x.MaxMessageBodySize = new(MaxMessageBodySize) + } + return protoreflect.ValueOfMessage(x.MaxMessageBodySize.ProtoReflect()) + case "circle.cctp.v1.GenesisState.next_available_nonce": + if x.NextAvailableNonce == nil { + x.NextAvailableNonce = new(Nonce) + } + return protoreflect.ValueOfMessage(x.NextAvailableNonce.ProtoReflect()) + case "circle.cctp.v1.GenesisState.signature_threshold": + if x.SignatureThreshold == nil { + x.SignatureThreshold = new(SignatureThreshold) + } + return protoreflect.ValueOfMessage(x.SignatureThreshold.ProtoReflect()) + case "circle.cctp.v1.GenesisState.token_pair_list": + if x.TokenPairList == nil { + x.TokenPairList = []*TokenPair{} + } + value := &_GenesisState_13_list{list: &x.TokenPairList} + return protoreflect.ValueOfList(value) + case "circle.cctp.v1.GenesisState.used_nonces_list": + if x.UsedNoncesList == nil { + x.UsedNoncesList = []*Nonce{} + } + value := &_GenesisState_14_list{list: &x.UsedNoncesList} + return protoreflect.ValueOfList(value) + case "circle.cctp.v1.GenesisState.token_messenger_list": + if x.TokenMessengerList == nil { + x.TokenMessengerList = []*RemoteTokenMessenger{} + } + value := &_GenesisState_15_list{list: &x.TokenMessengerList} + return protoreflect.ValueOfList(value) + case "circle.cctp.v1.GenesisState.owner": + panic(fmt.Errorf("field owner of message circle.cctp.v1.GenesisState is not mutable")) + case "circle.cctp.v1.GenesisState.attester_manager": + panic(fmt.Errorf("field attester_manager of message circle.cctp.v1.GenesisState is not mutable")) + case "circle.cctp.v1.GenesisState.pauser": + panic(fmt.Errorf("field pauser of message circle.cctp.v1.GenesisState is not mutable")) + case "circle.cctp.v1.GenesisState.token_controller": + panic(fmt.Errorf("field token_controller of message circle.cctp.v1.GenesisState is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.GenesisState")) + } + panic(fmt.Errorf("message circle.cctp.v1.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 "circle.cctp.v1.GenesisState.owner": + return protoreflect.ValueOfString("") + case "circle.cctp.v1.GenesisState.attester_manager": + return protoreflect.ValueOfString("") + case "circle.cctp.v1.GenesisState.pauser": + return protoreflect.ValueOfString("") + case "circle.cctp.v1.GenesisState.token_controller": + return protoreflect.ValueOfString("") + case "circle.cctp.v1.GenesisState.attester_list": + list := []*Attester{} + return protoreflect.ValueOfList(&_GenesisState_6_list{list: &list}) + case "circle.cctp.v1.GenesisState.per_message_burn_limit_list": + list := []*PerMessageBurnLimit{} + return protoreflect.ValueOfList(&_GenesisState_7_list{list: &list}) + case "circle.cctp.v1.GenesisState.burning_and_minting_paused": + m := new(BurningAndMintingPaused) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "circle.cctp.v1.GenesisState.sending_and_receiving_messages_paused": + m := new(SendingAndReceivingMessagesPaused) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "circle.cctp.v1.GenesisState.max_message_body_size": + m := new(MaxMessageBodySize) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "circle.cctp.v1.GenesisState.next_available_nonce": + m := new(Nonce) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "circle.cctp.v1.GenesisState.signature_threshold": + m := new(SignatureThreshold) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "circle.cctp.v1.GenesisState.token_pair_list": + list := []*TokenPair{} + return protoreflect.ValueOfList(&_GenesisState_13_list{list: &list}) + case "circle.cctp.v1.GenesisState.used_nonces_list": + list := []*Nonce{} + return protoreflect.ValueOfList(&_GenesisState_14_list{list: &list}) + case "circle.cctp.v1.GenesisState.token_messenger_list": + list := []*RemoteTokenMessenger{} + return protoreflect.ValueOfList(&_GenesisState_15_list{list: &list}) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.GenesisState")) + } + panic(fmt.Errorf("message circle.cctp.v1.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 circle.cctp.v1.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 + l = len(x.Owner) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.AttesterManager) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Pauser) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.TokenController) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if len(x.AttesterList) > 0 { + for _, e := range x.AttesterList { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if len(x.PerMessageBurnLimitList) > 0 { + for _, e := range x.PerMessageBurnLimitList { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if x.BurningAndMintingPaused != nil { + l = options.Size(x.BurningAndMintingPaused) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.SendingAndReceivingMessagesPaused != nil { + l = options.Size(x.SendingAndReceivingMessagesPaused) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.MaxMessageBodySize != nil { + l = options.Size(x.MaxMessageBodySize) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.NextAvailableNonce != nil { + l = options.Size(x.NextAvailableNonce) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.SignatureThreshold != nil { + l = options.Size(x.SignatureThreshold) + n += 1 + l + runtime.Sov(uint64(l)) + } + if len(x.TokenPairList) > 0 { + for _, e := range x.TokenPairList { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if len(x.UsedNoncesList) > 0 { + for _, e := range x.UsedNoncesList { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if len(x.TokenMessengerList) > 0 { + for _, e := range x.TokenMessengerList { + 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().(*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 len(x.TokenMessengerList) > 0 { + for iNdEx := len(x.TokenMessengerList) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.TokenMessengerList[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] = 0x7a + } + } + if len(x.UsedNoncesList) > 0 { + for iNdEx := len(x.UsedNoncesList) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.UsedNoncesList[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] = 0x72 + } + } + if len(x.TokenPairList) > 0 { + for iNdEx := len(x.TokenPairList) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.TokenPairList[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] = 0x6a + } + } + if x.SignatureThreshold != nil { + encoded, err := options.Marshal(x.SignatureThreshold) + 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 x.NextAvailableNonce != nil { + encoded, err := options.Marshal(x.NextAvailableNonce) + 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.MaxMessageBodySize != nil { + encoded, err := options.Marshal(x.MaxMessageBodySize) + 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.SendingAndReceivingMessagesPaused != nil { + encoded, err := options.Marshal(x.SendingAndReceivingMessagesPaused) + 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.BurningAndMintingPaused != nil { + encoded, err := options.Marshal(x.BurningAndMintingPaused) + 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.PerMessageBurnLimitList) > 0 { + for iNdEx := len(x.PerMessageBurnLimitList) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.PerMessageBurnLimitList[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] = 0x3a + } + } + if len(x.AttesterList) > 0 { + for iNdEx := len(x.AttesterList) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.AttesterList[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] = 0x32 + } + } + if len(x.TokenController) > 0 { + i -= len(x.TokenController) + copy(dAtA[i:], x.TokenController) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TokenController))) + i-- + dAtA[i] = 0x2a + } + if len(x.Pauser) > 0 { + i -= len(x.Pauser) + copy(dAtA[i:], x.Pauser) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Pauser))) + i-- + dAtA[i] = 0x22 + } + if len(x.AttesterManager) > 0 { + i -= len(x.AttesterManager) + copy(dAtA[i:], x.AttesterManager) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.AttesterManager))) + i-- + dAtA[i] = 0x1a + } + if len(x.Owner) > 0 { + i -= len(x.Owner) + copy(dAtA[i:], x.Owner) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Owner))) + i-- + dAtA[i] = 0x12 + } + 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 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Owner = 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 AttesterManager", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.AttesterManager = 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 Pauser", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Pauser = 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 TokenController", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.TokenController = 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 AttesterList", 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.AttesterList = append(x.AttesterList, &Attester{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.AttesterList[len(x.AttesterList)-1]); 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 PerMessageBurnLimitList", 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.PerMessageBurnLimitList = append(x.PerMessageBurnLimitList, &PerMessageBurnLimit{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.PerMessageBurnLimitList[len(x.PerMessageBurnLimitList)-1]); 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 BurningAndMintingPaused", 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.BurningAndMintingPaused == nil { + x.BurningAndMintingPaused = &BurningAndMintingPaused{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.BurningAndMintingPaused); 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 SendingAndReceivingMessagesPaused", 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.SendingAndReceivingMessagesPaused == nil { + x.SendingAndReceivingMessagesPaused = &SendingAndReceivingMessagesPaused{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.SendingAndReceivingMessagesPaused); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 10: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MaxMessageBodySize", 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.MaxMessageBodySize == nil { + x.MaxMessageBodySize = &MaxMessageBodySize{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.MaxMessageBodySize); 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 NextAvailableNonce", 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.NextAvailableNonce == nil { + x.NextAvailableNonce = &Nonce{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.NextAvailableNonce); 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 SignatureThreshold", 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.SignatureThreshold == nil { + x.SignatureThreshold = &SignatureThreshold{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.SignatureThreshold); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 13: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TokenPairList", 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.TokenPairList = append(x.TokenPairList, &TokenPair{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.TokenPairList[len(x.TokenPairList)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 14: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field UsedNoncesList", 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.UsedNoncesList = append(x.UsedNoncesList, &Nonce{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.UsedNoncesList[len(x.UsedNoncesList)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 15: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TokenMessengerList", 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.TokenMessengerList = append(x.TokenMessengerList, &RemoteTokenMessenger{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.TokenMessengerList[len(x.TokenMessengerList)-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, + } +} + +// +// Copyright (c) 2023, Ā© Circle Internet Financial, LTD. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.0 +// protoc (unknown) +// source: circle/cctp/v1/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 cctp module's genesis state. +type GenesisState struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` + AttesterManager string `protobuf:"bytes,3,opt,name=attester_manager,json=attesterManager,proto3" json:"attester_manager,omitempty"` + Pauser string `protobuf:"bytes,4,opt,name=pauser,proto3" json:"pauser,omitempty"` + TokenController string `protobuf:"bytes,5,opt,name=token_controller,json=tokenController,proto3" json:"token_controller,omitempty"` + AttesterList []*Attester `protobuf:"bytes,6,rep,name=attester_list,json=attesterList,proto3" json:"attester_list,omitempty"` + PerMessageBurnLimitList []*PerMessageBurnLimit `protobuf:"bytes,7,rep,name=per_message_burn_limit_list,json=perMessageBurnLimitList,proto3" json:"per_message_burn_limit_list,omitempty"` + BurningAndMintingPaused *BurningAndMintingPaused `protobuf:"bytes,8,opt,name=burning_and_minting_paused,json=burningAndMintingPaused,proto3" json:"burning_and_minting_paused,omitempty"` + SendingAndReceivingMessagesPaused *SendingAndReceivingMessagesPaused `protobuf:"bytes,9,opt,name=sending_and_receiving_messages_paused,json=sendingAndReceivingMessagesPaused,proto3" json:"sending_and_receiving_messages_paused,omitempty"` + MaxMessageBodySize *MaxMessageBodySize `protobuf:"bytes,10,opt,name=max_message_body_size,json=maxMessageBodySize,proto3" json:"max_message_body_size,omitempty"` + NextAvailableNonce *Nonce `protobuf:"bytes,11,opt,name=next_available_nonce,json=nextAvailableNonce,proto3" json:"next_available_nonce,omitempty"` + SignatureThreshold *SignatureThreshold `protobuf:"bytes,12,opt,name=signature_threshold,json=signatureThreshold,proto3" json:"signature_threshold,omitempty"` + TokenPairList []*TokenPair `protobuf:"bytes,13,rep,name=token_pair_list,json=tokenPairList,proto3" json:"token_pair_list,omitempty"` + UsedNoncesList []*Nonce `protobuf:"bytes,14,rep,name=used_nonces_list,json=usedNoncesList,proto3" json:"used_nonces_list,omitempty"` + TokenMessengerList []*RemoteTokenMessenger `protobuf:"bytes,15,rep,name=token_messenger_list,json=tokenMessengerList,proto3" json:"token_messenger_list,omitempty"` +} + +func (x *GenesisState) Reset() { + *x = GenesisState{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_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_circle_cctp_v1_genesis_proto_rawDescGZIP(), []int{0} +} + +func (x *GenesisState) GetOwner() string { + if x != nil { + return x.Owner + } + return "" +} + +func (x *GenesisState) GetAttesterManager() string { + if x != nil { + return x.AttesterManager + } + return "" +} + +func (x *GenesisState) GetPauser() string { + if x != nil { + return x.Pauser + } + return "" +} + +func (x *GenesisState) GetTokenController() string { + if x != nil { + return x.TokenController + } + return "" +} + +func (x *GenesisState) GetAttesterList() []*Attester { + if x != nil { + return x.AttesterList + } + return nil +} + +func (x *GenesisState) GetPerMessageBurnLimitList() []*PerMessageBurnLimit { + if x != nil { + return x.PerMessageBurnLimitList + } + return nil +} + +func (x *GenesisState) GetBurningAndMintingPaused() *BurningAndMintingPaused { + if x != nil { + return x.BurningAndMintingPaused + } + return nil +} + +func (x *GenesisState) GetSendingAndReceivingMessagesPaused() *SendingAndReceivingMessagesPaused { + if x != nil { + return x.SendingAndReceivingMessagesPaused + } + return nil +} + +func (x *GenesisState) GetMaxMessageBodySize() *MaxMessageBodySize { + if x != nil { + return x.MaxMessageBodySize + } + return nil +} + +func (x *GenesisState) GetNextAvailableNonce() *Nonce { + if x != nil { + return x.NextAvailableNonce + } + return nil +} + +func (x *GenesisState) GetSignatureThreshold() *SignatureThreshold { + if x != nil { + return x.SignatureThreshold + } + return nil +} + +func (x *GenesisState) GetTokenPairList() []*TokenPair { + if x != nil { + return x.TokenPairList + } + return nil +} + +func (x *GenesisState) GetUsedNoncesList() []*Nonce { + if x != nil { + return x.UsedNoncesList + } + return nil +} + +func (x *GenesisState) GetTokenMessengerList() []*RemoteTokenMessenger { + if x != nil { + return x.TokenMessengerList + } + return nil +} + +var File_circle_cctp_v1_genesis_proto protoreflect.FileDescriptor + +var file_circle_cctp_v1_genesis_proto_rawDesc = []byte{ + 0x0a, 0x1c, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2f, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x76, 0x31, + 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, + 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x1a, 0x1d, + 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2f, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x76, 0x31, 0x2f, 0x61, + 0x74, 0x74, 0x65, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2f, 0x63, + 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2f, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x75, + 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x5f, 0x61, 0x6e, 0x64, 0x5f, 0x6d, 0x69, 0x6e, 0x74, 0x69, 0x6e, + 0x67, 0x5f, 0x70, 0x61, 0x75, 0x73, 0x65, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2a, + 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2f, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x76, 0x31, 0x2f, 0x6d, + 0x61, 0x78, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x62, 0x6f, 0x64, 0x79, 0x5f, + 0x73, 0x69, 0x7a, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1a, 0x63, 0x69, 0x72, 0x63, + 0x6c, 0x65, 0x2f, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x76, 0x31, 0x2f, 0x6e, 0x6f, 0x6e, 0x63, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2b, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2f, 0x63, + 0x63, 0x74, 0x70, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x65, 0x72, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, + 0x67, 0x65, 0x5f, 0x62, 0x75, 0x72, 0x6e, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x1a, 0x2b, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2f, 0x63, 0x63, 0x74, 0x70, + 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, + 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x65, 0x6e, 0x67, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x1a, 0x3a, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2f, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x76, 0x31, + 0x2f, 0x73, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x61, 0x6e, 0x64, 0x5f, 0x72, 0x65, 0x63, + 0x65, 0x69, 0x76, 0x69, 0x6e, 0x67, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x5f, + 0x70, 0x61, 0x75, 0x73, 0x65, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x28, 0x63, 0x69, + 0x72, 0x63, 0x6c, 0x65, 0x2f, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x69, 0x67, + 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x5f, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2f, 0x63, + 0x63, 0x74, 0x70, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x70, 0x61, 0x69, + 0x72, 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, 0x22, 0x9d, 0x08, + 0x0a, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x14, + 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, + 0x77, 0x6e, 0x65, 0x72, 0x12, 0x29, 0x0a, 0x10, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x65, 0x72, + 0x5f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, + 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x65, 0x72, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x12, + 0x16, 0x0a, 0x06, 0x70, 0x61, 0x75, 0x73, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x06, 0x70, 0x61, 0x75, 0x73, 0x65, 0x72, 0x12, 0x29, 0x0a, 0x10, 0x74, 0x6f, 0x6b, 0x65, 0x6e, + 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, + 0x65, 0x72, 0x12, 0x43, 0x0a, 0x0d, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x6c, + 0x69, 0x73, 0x74, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x63, 0x69, 0x72, 0x63, + 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x74, 0x74, 0x65, 0x73, + 0x74, 0x65, 0x72, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0c, 0x61, 0x74, 0x74, 0x65, 0x73, + 0x74, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x67, 0x0a, 0x1b, 0x70, 0x65, 0x72, 0x5f, 0x6d, + 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x62, 0x75, 0x72, 0x6e, 0x5f, 0x6c, 0x69, 0x6d, 0x69, + 0x74, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x63, + 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x65, + 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x42, 0x75, 0x72, 0x6e, 0x4c, 0x69, 0x6d, 0x69, + 0x74, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x17, 0x70, 0x65, 0x72, 0x4d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x42, 0x75, 0x72, 0x6e, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x4c, 0x69, 0x73, 0x74, + 0x12, 0x64, 0x0a, 0x1a, 0x62, 0x75, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x5f, 0x61, 0x6e, 0x64, 0x5f, + 0x6d, 0x69, 0x6e, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x61, 0x75, 0x73, 0x65, 0x64, 0x18, 0x08, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, + 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x75, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x41, 0x6e, 0x64, + 0x4d, 0x69, 0x6e, 0x74, 0x69, 0x6e, 0x67, 0x50, 0x61, 0x75, 0x73, 0x65, 0x64, 0x52, 0x17, 0x62, + 0x75, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x41, 0x6e, 0x64, 0x4d, 0x69, 0x6e, 0x74, 0x69, 0x6e, 0x67, + 0x50, 0x61, 0x75, 0x73, 0x65, 0x64, 0x12, 0x83, 0x01, 0x0a, 0x25, 0x73, 0x65, 0x6e, 0x64, 0x69, + 0x6e, 0x67, 0x5f, 0x61, 0x6e, 0x64, 0x5f, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x69, 0x6e, 0x67, + 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x5f, 0x70, 0x61, 0x75, 0x73, 0x65, 0x64, + 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, + 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x41, + 0x6e, 0x64, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x69, 0x6e, 0x67, 0x4d, 0x65, 0x73, 0x73, 0x61, + 0x67, 0x65, 0x73, 0x50, 0x61, 0x75, 0x73, 0x65, 0x64, 0x52, 0x21, 0x73, 0x65, 0x6e, 0x64, 0x69, + 0x6e, 0x67, 0x41, 0x6e, 0x64, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x69, 0x6e, 0x67, 0x4d, 0x65, + 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x50, 0x61, 0x75, 0x73, 0x65, 0x64, 0x12, 0x55, 0x0a, 0x15, + 0x6d, 0x61, 0x78, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x62, 0x6f, 0x64, 0x79, + 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x63, 0x69, + 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x78, + 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x42, 0x6f, 0x64, 0x79, 0x53, 0x69, 0x7a, 0x65, 0x52, + 0x12, 0x6d, 0x61, 0x78, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x42, 0x6f, 0x64, 0x79, 0x53, + 0x69, 0x7a, 0x65, 0x12, 0x47, 0x0a, 0x14, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x61, 0x76, 0x61, 0x69, + 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x15, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, + 0x76, 0x31, 0x2e, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x52, 0x12, 0x6e, 0x65, 0x78, 0x74, 0x41, 0x76, + 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x12, 0x53, 0x0a, 0x13, + 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x5f, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, + 0x6f, 0x6c, 0x64, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x63, 0x69, 0x72, 0x63, + 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x61, + 0x74, 0x75, 0x72, 0x65, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x52, 0x12, 0x73, + 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, + 0x64, 0x12, 0x47, 0x0a, 0x0f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x70, 0x61, 0x69, 0x72, 0x5f, + 0x6c, 0x69, 0x73, 0x74, 0x18, 0x0d, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x69, 0x72, + 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x6f, 0x6b, 0x65, + 0x6e, 0x50, 0x61, 0x69, 0x72, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0d, 0x74, 0x6f, 0x6b, + 0x65, 0x6e, 0x50, 0x61, 0x69, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x45, 0x0a, 0x10, 0x75, 0x73, + 0x65, 0x64, 0x5f, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x73, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x0e, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, + 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, + 0x00, 0x52, 0x0e, 0x75, 0x73, 0x65, 0x64, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x73, 0x4c, 0x69, 0x73, + 0x74, 0x12, 0x5c, 0x0a, 0x14, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x65, + 0x6e, 0x67, 0x65, 0x72, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x0f, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x24, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, + 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x4d, 0x65, 0x73, 0x73, + 0x65, 0x6e, 0x67, 0x65, 0x72, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x12, 0x74, 0x6f, 0x6b, + 0x65, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x65, 0x6e, 0x67, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x4a, + 0x04, 0x08, 0x01, 0x10, 0x02, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0xb7, 0x01, + 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, + 0x70, 0x2e, 0x76, 0x31, 0x42, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x50, 0x72, 0x6f, + 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x39, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, + 0x2f, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x66, 0x69, 0x6e, 0x2f, 0x6e, 0x6f, 0x62, 0x6c, 0x65, + 0x2d, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, + 0x2f, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x76, 0x31, 0x3b, 0x63, 0x63, 0x74, 0x70, 0x76, 0x31, 0xa2, + 0x02, 0x03, 0x43, 0x43, 0x58, 0xaa, 0x02, 0x0e, 0x43, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x43, + 0x63, 0x74, 0x70, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0e, 0x43, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x5c, + 0x43, 0x63, 0x74, 0x70, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1a, 0x43, 0x69, 0x72, 0x63, 0x6c, 0x65, + 0x5c, 0x43, 0x63, 0x74, 0x70, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x10, 0x43, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x3a, 0x3a, 0x43, + 0x63, 0x74, 0x70, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_circle_cctp_v1_genesis_proto_rawDescOnce sync.Once + file_circle_cctp_v1_genesis_proto_rawDescData = file_circle_cctp_v1_genesis_proto_rawDesc +) + +func file_circle_cctp_v1_genesis_proto_rawDescGZIP() []byte { + file_circle_cctp_v1_genesis_proto_rawDescOnce.Do(func() { + file_circle_cctp_v1_genesis_proto_rawDescData = protoimpl.X.CompressGZIP(file_circle_cctp_v1_genesis_proto_rawDescData) + }) + return file_circle_cctp_v1_genesis_proto_rawDescData +} + +var file_circle_cctp_v1_genesis_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_circle_cctp_v1_genesis_proto_goTypes = []interface{}{ + (*GenesisState)(nil), // 0: circle.cctp.v1.GenesisState + (*Attester)(nil), // 1: circle.cctp.v1.Attester + (*PerMessageBurnLimit)(nil), // 2: circle.cctp.v1.PerMessageBurnLimit + (*BurningAndMintingPaused)(nil), // 3: circle.cctp.v1.BurningAndMintingPaused + (*SendingAndReceivingMessagesPaused)(nil), // 4: circle.cctp.v1.SendingAndReceivingMessagesPaused + (*MaxMessageBodySize)(nil), // 5: circle.cctp.v1.MaxMessageBodySize + (*Nonce)(nil), // 6: circle.cctp.v1.Nonce + (*SignatureThreshold)(nil), // 7: circle.cctp.v1.SignatureThreshold + (*TokenPair)(nil), // 8: circle.cctp.v1.TokenPair + (*RemoteTokenMessenger)(nil), // 9: circle.cctp.v1.RemoteTokenMessenger +} +var file_circle_cctp_v1_genesis_proto_depIdxs = []int32{ + 1, // 0: circle.cctp.v1.GenesisState.attester_list:type_name -> circle.cctp.v1.Attester + 2, // 1: circle.cctp.v1.GenesisState.per_message_burn_limit_list:type_name -> circle.cctp.v1.PerMessageBurnLimit + 3, // 2: circle.cctp.v1.GenesisState.burning_and_minting_paused:type_name -> circle.cctp.v1.BurningAndMintingPaused + 4, // 3: circle.cctp.v1.GenesisState.sending_and_receiving_messages_paused:type_name -> circle.cctp.v1.SendingAndReceivingMessagesPaused + 5, // 4: circle.cctp.v1.GenesisState.max_message_body_size:type_name -> circle.cctp.v1.MaxMessageBodySize + 6, // 5: circle.cctp.v1.GenesisState.next_available_nonce:type_name -> circle.cctp.v1.Nonce + 7, // 6: circle.cctp.v1.GenesisState.signature_threshold:type_name -> circle.cctp.v1.SignatureThreshold + 8, // 7: circle.cctp.v1.GenesisState.token_pair_list:type_name -> circle.cctp.v1.TokenPair + 6, // 8: circle.cctp.v1.GenesisState.used_nonces_list:type_name -> circle.cctp.v1.Nonce + 9, // 9: circle.cctp.v1.GenesisState.token_messenger_list:type_name -> circle.cctp.v1.RemoteTokenMessenger + 10, // [10:10] is the sub-list for method output_type + 10, // [10:10] is the sub-list for method input_type + 10, // [10:10] is the sub-list for extension type_name + 10, // [10:10] is the sub-list for extension extendee + 0, // [0:10] is the sub-list for field type_name +} + +func init() { file_circle_cctp_v1_genesis_proto_init() } +func file_circle_cctp_v1_genesis_proto_init() { + if File_circle_cctp_v1_genesis_proto != nil { + return + } + file_circle_cctp_v1_attester_proto_init() + file_circle_cctp_v1_burning_and_minting_paused_proto_init() + file_circle_cctp_v1_max_message_body_size_proto_init() + file_circle_cctp_v1_nonce_proto_init() + file_circle_cctp_v1_per_message_burn_limit_proto_init() + file_circle_cctp_v1_remote_token_messenger_proto_init() + file_circle_cctp_v1_sending_and_receiving_messages_paused_proto_init() + file_circle_cctp_v1_signature_threshold_proto_init() + file_circle_cctp_v1_token_pair_proto_init() + if !protoimpl.UnsafeEnabled { + file_circle_cctp_v1_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 + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_circle_cctp_v1_genesis_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_circle_cctp_v1_genesis_proto_goTypes, + DependencyIndexes: file_circle_cctp_v1_genesis_proto_depIdxs, + MessageInfos: file_circle_cctp_v1_genesis_proto_msgTypes, + }.Build() + File_circle_cctp_v1_genesis_proto = out.File + file_circle_cctp_v1_genesis_proto_rawDesc = nil + file_circle_cctp_v1_genesis_proto_goTypes = nil + file_circle_cctp_v1_genesis_proto_depIdxs = nil +} diff --git a/api/circle/cctp/v1/max_message_body_size.pulsar.go b/api/circle/cctp/v1/max_message_body_size.pulsar.go new file mode 100644 index 0000000..c6547ff --- /dev/null +++ b/api/circle/cctp/v1/max_message_body_size.pulsar.go @@ -0,0 +1,571 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package cctpv1 + +import ( + fmt "fmt" + runtime "github.com/cosmos/cosmos-proto/runtime" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoiface "google.golang.org/protobuf/runtime/protoiface" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + io "io" + reflect "reflect" + sync "sync" +) + +var ( + md_MaxMessageBodySize protoreflect.MessageDescriptor + fd_MaxMessageBodySize_amount protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_max_message_body_size_proto_init() + md_MaxMessageBodySize = File_circle_cctp_v1_max_message_body_size_proto.Messages().ByName("MaxMessageBodySize") + fd_MaxMessageBodySize_amount = md_MaxMessageBodySize.Fields().ByName("amount") +} + +var _ protoreflect.Message = (*fastReflection_MaxMessageBodySize)(nil) + +type fastReflection_MaxMessageBodySize MaxMessageBodySize + +func (x *MaxMessageBodySize) ProtoReflect() protoreflect.Message { + return (*fastReflection_MaxMessageBodySize)(x) +} + +func (x *MaxMessageBodySize) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_max_message_body_size_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_MaxMessageBodySize_messageType fastReflection_MaxMessageBodySize_messageType +var _ protoreflect.MessageType = fastReflection_MaxMessageBodySize_messageType{} + +type fastReflection_MaxMessageBodySize_messageType struct{} + +func (x fastReflection_MaxMessageBodySize_messageType) Zero() protoreflect.Message { + return (*fastReflection_MaxMessageBodySize)(nil) +} +func (x fastReflection_MaxMessageBodySize_messageType) New() protoreflect.Message { + return new(fastReflection_MaxMessageBodySize) +} +func (x fastReflection_MaxMessageBodySize_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MaxMessageBodySize +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MaxMessageBodySize) Descriptor() protoreflect.MessageDescriptor { + return md_MaxMessageBodySize +} + +// 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_MaxMessageBodySize) Type() protoreflect.MessageType { + return _fastReflection_MaxMessageBodySize_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MaxMessageBodySize) New() protoreflect.Message { + return new(fastReflection_MaxMessageBodySize) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MaxMessageBodySize) Interface() protoreflect.ProtoMessage { + return (*MaxMessageBodySize)(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_MaxMessageBodySize) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Amount != uint64(0) { + value := protoreflect.ValueOfUint64(x.Amount) + if !f(fd_MaxMessageBodySize_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_MaxMessageBodySize) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.MaxMessageBodySize.amount": + return x.Amount != uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MaxMessageBodySize")) + } + panic(fmt.Errorf("message circle.cctp.v1.MaxMessageBodySize 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_MaxMessageBodySize) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.MaxMessageBodySize.amount": + x.Amount = uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MaxMessageBodySize")) + } + panic(fmt.Errorf("message circle.cctp.v1.MaxMessageBodySize 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_MaxMessageBodySize) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.MaxMessageBodySize.amount": + value := x.Amount + return protoreflect.ValueOfUint64(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MaxMessageBodySize")) + } + panic(fmt.Errorf("message circle.cctp.v1.MaxMessageBodySize 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_MaxMessageBodySize) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.MaxMessageBodySize.amount": + x.Amount = value.Uint() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MaxMessageBodySize")) + } + panic(fmt.Errorf("message circle.cctp.v1.MaxMessageBodySize 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_MaxMessageBodySize) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.MaxMessageBodySize.amount": + panic(fmt.Errorf("field amount of message circle.cctp.v1.MaxMessageBodySize is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MaxMessageBodySize")) + } + panic(fmt.Errorf("message circle.cctp.v1.MaxMessageBodySize 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_MaxMessageBodySize) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.MaxMessageBodySize.amount": + return protoreflect.ValueOfUint64(uint64(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MaxMessageBodySize")) + } + panic(fmt.Errorf("message circle.cctp.v1.MaxMessageBodySize 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_MaxMessageBodySize) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.MaxMessageBodySize", 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_MaxMessageBodySize) 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_MaxMessageBodySize) 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_MaxMessageBodySize) 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_MaxMessageBodySize) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MaxMessageBodySize) + 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.Amount != 0 { + n += 1 + runtime.Sov(uint64(x.Amount)) + } + 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().(*MaxMessageBodySize) + 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.Amount != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Amount)) + 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().(*MaxMessageBodySize) + 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: MaxMessageBodySize: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MaxMessageBodySize: 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 Amount", wireType) + } + x.Amount = 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.Amount |= 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, + } +} + +// +// Copyright (c) 2023, Ā© Circle Internet Financial, LTD. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.0 +// protoc (unknown) +// source: circle/cctp/v1/max_message_body_size.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) +) + +// * +// Message format for BurningAndMintingPaused +// @param paused true if paused, false if not paused +type MaxMessageBodySize struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Amount uint64 `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"` +} + +func (x *MaxMessageBodySize) Reset() { + *x = MaxMessageBodySize{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_max_message_body_size_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MaxMessageBodySize) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MaxMessageBodySize) ProtoMessage() {} + +// Deprecated: Use MaxMessageBodySize.ProtoReflect.Descriptor instead. +func (*MaxMessageBodySize) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_max_message_body_size_proto_rawDescGZIP(), []int{0} +} + +func (x *MaxMessageBodySize) GetAmount() uint64 { + if x != nil { + return x.Amount + } + return 0 +} + +var File_circle_cctp_v1_max_message_body_size_proto protoreflect.FileDescriptor + +var file_circle_cctp_v1_max_message_body_size_proto_rawDesc = []byte{ + 0x0a, 0x2a, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2f, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x76, 0x31, + 0x2f, 0x6d, 0x61, 0x78, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x62, 0x6f, 0x64, + 0x79, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x63, 0x69, + 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x22, 0x2c, 0x0a, 0x12, + 0x4d, 0x61, 0x78, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x42, 0x6f, 0x64, 0x79, 0x53, 0x69, + 0x7a, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x04, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0xc2, 0x01, 0x0a, 0x12, 0x63, + 0x6f, 0x6d, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, + 0x31, 0x42, 0x17, 0x4d, 0x61, 0x78, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x42, 0x6f, 0x64, + 0x79, 0x53, 0x69, 0x7a, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x39, 0x67, 0x69, + 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x66, + 0x69, 0x6e, 0x2f, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2d, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x61, 0x70, + 0x69, 0x2f, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2f, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x76, 0x31, + 0x3b, 0x63, 0x63, 0x74, 0x70, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x43, 0x58, 0xaa, 0x02, 0x0e, + 0x43, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x43, 0x63, 0x74, 0x70, 0x2e, 0x56, 0x31, 0xca, 0x02, + 0x0e, 0x43, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x5c, 0x43, 0x63, 0x74, 0x70, 0x5c, 0x56, 0x31, 0xe2, + 0x02, 0x1a, 0x43, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x5c, 0x43, 0x63, 0x74, 0x70, 0x5c, 0x56, 0x31, + 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x10, 0x43, + 0x69, 0x72, 0x63, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x63, 0x74, 0x70, 0x3a, 0x3a, 0x56, 0x31, 0x62, + 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_circle_cctp_v1_max_message_body_size_proto_rawDescOnce sync.Once + file_circle_cctp_v1_max_message_body_size_proto_rawDescData = file_circle_cctp_v1_max_message_body_size_proto_rawDesc +) + +func file_circle_cctp_v1_max_message_body_size_proto_rawDescGZIP() []byte { + file_circle_cctp_v1_max_message_body_size_proto_rawDescOnce.Do(func() { + file_circle_cctp_v1_max_message_body_size_proto_rawDescData = protoimpl.X.CompressGZIP(file_circle_cctp_v1_max_message_body_size_proto_rawDescData) + }) + return file_circle_cctp_v1_max_message_body_size_proto_rawDescData +} + +var file_circle_cctp_v1_max_message_body_size_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_circle_cctp_v1_max_message_body_size_proto_goTypes = []interface{}{ + (*MaxMessageBodySize)(nil), // 0: circle.cctp.v1.MaxMessageBodySize +} +var file_circle_cctp_v1_max_message_body_size_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_circle_cctp_v1_max_message_body_size_proto_init() } +func file_circle_cctp_v1_max_message_body_size_proto_init() { + if File_circle_cctp_v1_max_message_body_size_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_circle_cctp_v1_max_message_body_size_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MaxMessageBodySize); 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_circle_cctp_v1_max_message_body_size_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_circle_cctp_v1_max_message_body_size_proto_goTypes, + DependencyIndexes: file_circle_cctp_v1_max_message_body_size_proto_depIdxs, + MessageInfos: file_circle_cctp_v1_max_message_body_size_proto_msgTypes, + }.Build() + File_circle_cctp_v1_max_message_body_size_proto = out.File + file_circle_cctp_v1_max_message_body_size_proto_rawDesc = nil + file_circle_cctp_v1_max_message_body_size_proto_goTypes = nil + file_circle_cctp_v1_max_message_body_size_proto_depIdxs = nil +} diff --git a/api/circle/cctp/v1/message.pulsar.go b/api/circle/cctp/v1/message.pulsar.go new file mode 100644 index 0000000..8143f5c --- /dev/null +++ b/api/circle/cctp/v1/message.pulsar.go @@ -0,0 +1,1060 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package cctpv1 + +import ( + fmt "fmt" + runtime "github.com/cosmos/cosmos-proto/runtime" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoiface "google.golang.org/protobuf/runtime/protoiface" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + io "io" + reflect "reflect" + sync "sync" +) + +var ( + md_Message protoreflect.MessageDescriptor + fd_Message_version protoreflect.FieldDescriptor + fd_Message_source_domain protoreflect.FieldDescriptor + fd_Message_destination_domain protoreflect.FieldDescriptor + fd_Message_nonce protoreflect.FieldDescriptor + fd_Message_sender protoreflect.FieldDescriptor + fd_Message_recipient protoreflect.FieldDescriptor + fd_Message_destination_caller protoreflect.FieldDescriptor + fd_Message_message_body protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_message_proto_init() + md_Message = File_circle_cctp_v1_message_proto.Messages().ByName("Message") + fd_Message_version = md_Message.Fields().ByName("version") + fd_Message_source_domain = md_Message.Fields().ByName("source_domain") + fd_Message_destination_domain = md_Message.Fields().ByName("destination_domain") + fd_Message_nonce = md_Message.Fields().ByName("nonce") + fd_Message_sender = md_Message.Fields().ByName("sender") + fd_Message_recipient = md_Message.Fields().ByName("recipient") + fd_Message_destination_caller = md_Message.Fields().ByName("destination_caller") + fd_Message_message_body = md_Message.Fields().ByName("message_body") +} + +var _ protoreflect.Message = (*fastReflection_Message)(nil) + +type fastReflection_Message Message + +func (x *Message) ProtoReflect() protoreflect.Message { + return (*fastReflection_Message)(x) +} + +func (x *Message) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_message_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_Message_messageType fastReflection_Message_messageType +var _ protoreflect.MessageType = fastReflection_Message_messageType{} + +type fastReflection_Message_messageType struct{} + +func (x fastReflection_Message_messageType) Zero() protoreflect.Message { + return (*fastReflection_Message)(nil) +} +func (x fastReflection_Message_messageType) New() protoreflect.Message { + return new(fastReflection_Message) +} +func (x fastReflection_Message_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_Message +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_Message) Descriptor() protoreflect.MessageDescriptor { + return md_Message +} + +// 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_Message) Type() protoreflect.MessageType { + return _fastReflection_Message_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_Message) New() protoreflect.Message { + return new(fastReflection_Message) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_Message) Interface() protoreflect.ProtoMessage { + return (*Message)(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_Message) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Version != uint32(0) { + value := protoreflect.ValueOfUint32(x.Version) + if !f(fd_Message_version, value) { + return + } + } + if x.SourceDomain != uint32(0) { + value := protoreflect.ValueOfUint32(x.SourceDomain) + if !f(fd_Message_source_domain, value) { + return + } + } + if x.DestinationDomain != uint32(0) { + value := protoreflect.ValueOfUint32(x.DestinationDomain) + if !f(fd_Message_destination_domain, value) { + return + } + } + if x.Nonce != uint64(0) { + value := protoreflect.ValueOfUint64(x.Nonce) + if !f(fd_Message_nonce, value) { + return + } + } + if len(x.Sender) != 0 { + value := protoreflect.ValueOfBytes(x.Sender) + if !f(fd_Message_sender, value) { + return + } + } + if len(x.Recipient) != 0 { + value := protoreflect.ValueOfBytes(x.Recipient) + if !f(fd_Message_recipient, value) { + return + } + } + if len(x.DestinationCaller) != 0 { + value := protoreflect.ValueOfBytes(x.DestinationCaller) + if !f(fd_Message_destination_caller, value) { + return + } + } + if len(x.MessageBody) != 0 { + value := protoreflect.ValueOfBytes(x.MessageBody) + if !f(fd_Message_message_body, 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_Message) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.Message.version": + return x.Version != uint32(0) + case "circle.cctp.v1.Message.source_domain": + return x.SourceDomain != uint32(0) + case "circle.cctp.v1.Message.destination_domain": + return x.DestinationDomain != uint32(0) + case "circle.cctp.v1.Message.nonce": + return x.Nonce != uint64(0) + case "circle.cctp.v1.Message.sender": + return len(x.Sender) != 0 + case "circle.cctp.v1.Message.recipient": + return len(x.Recipient) != 0 + case "circle.cctp.v1.Message.destination_caller": + return len(x.DestinationCaller) != 0 + case "circle.cctp.v1.Message.message_body": + return len(x.MessageBody) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.Message")) + } + panic(fmt.Errorf("message circle.cctp.v1.Message 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_Message) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.Message.version": + x.Version = uint32(0) + case "circle.cctp.v1.Message.source_domain": + x.SourceDomain = uint32(0) + case "circle.cctp.v1.Message.destination_domain": + x.DestinationDomain = uint32(0) + case "circle.cctp.v1.Message.nonce": + x.Nonce = uint64(0) + case "circle.cctp.v1.Message.sender": + x.Sender = nil + case "circle.cctp.v1.Message.recipient": + x.Recipient = nil + case "circle.cctp.v1.Message.destination_caller": + x.DestinationCaller = nil + case "circle.cctp.v1.Message.message_body": + x.MessageBody = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.Message")) + } + panic(fmt.Errorf("message circle.cctp.v1.Message 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_Message) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.Message.version": + value := x.Version + return protoreflect.ValueOfUint32(value) + case "circle.cctp.v1.Message.source_domain": + value := x.SourceDomain + return protoreflect.ValueOfUint32(value) + case "circle.cctp.v1.Message.destination_domain": + value := x.DestinationDomain + return protoreflect.ValueOfUint32(value) + case "circle.cctp.v1.Message.nonce": + value := x.Nonce + return protoreflect.ValueOfUint64(value) + case "circle.cctp.v1.Message.sender": + value := x.Sender + return protoreflect.ValueOfBytes(value) + case "circle.cctp.v1.Message.recipient": + value := x.Recipient + return protoreflect.ValueOfBytes(value) + case "circle.cctp.v1.Message.destination_caller": + value := x.DestinationCaller + return protoreflect.ValueOfBytes(value) + case "circle.cctp.v1.Message.message_body": + value := x.MessageBody + return protoreflect.ValueOfBytes(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.Message")) + } + panic(fmt.Errorf("message circle.cctp.v1.Message 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_Message) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.Message.version": + x.Version = uint32(value.Uint()) + case "circle.cctp.v1.Message.source_domain": + x.SourceDomain = uint32(value.Uint()) + case "circle.cctp.v1.Message.destination_domain": + x.DestinationDomain = uint32(value.Uint()) + case "circle.cctp.v1.Message.nonce": + x.Nonce = value.Uint() + case "circle.cctp.v1.Message.sender": + x.Sender = value.Bytes() + case "circle.cctp.v1.Message.recipient": + x.Recipient = value.Bytes() + case "circle.cctp.v1.Message.destination_caller": + x.DestinationCaller = value.Bytes() + case "circle.cctp.v1.Message.message_body": + x.MessageBody = value.Bytes() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.Message")) + } + panic(fmt.Errorf("message circle.cctp.v1.Message 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_Message) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.Message.version": + panic(fmt.Errorf("field version of message circle.cctp.v1.Message is not mutable")) + case "circle.cctp.v1.Message.source_domain": + panic(fmt.Errorf("field source_domain of message circle.cctp.v1.Message is not mutable")) + case "circle.cctp.v1.Message.destination_domain": + panic(fmt.Errorf("field destination_domain of message circle.cctp.v1.Message is not mutable")) + case "circle.cctp.v1.Message.nonce": + panic(fmt.Errorf("field nonce of message circle.cctp.v1.Message is not mutable")) + case "circle.cctp.v1.Message.sender": + panic(fmt.Errorf("field sender of message circle.cctp.v1.Message is not mutable")) + case "circle.cctp.v1.Message.recipient": + panic(fmt.Errorf("field recipient of message circle.cctp.v1.Message is not mutable")) + case "circle.cctp.v1.Message.destination_caller": + panic(fmt.Errorf("field destination_caller of message circle.cctp.v1.Message is not mutable")) + case "circle.cctp.v1.Message.message_body": + panic(fmt.Errorf("field message_body of message circle.cctp.v1.Message is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.Message")) + } + panic(fmt.Errorf("message circle.cctp.v1.Message 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_Message) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.Message.version": + return protoreflect.ValueOfUint32(uint32(0)) + case "circle.cctp.v1.Message.source_domain": + return protoreflect.ValueOfUint32(uint32(0)) + case "circle.cctp.v1.Message.destination_domain": + return protoreflect.ValueOfUint32(uint32(0)) + case "circle.cctp.v1.Message.nonce": + return protoreflect.ValueOfUint64(uint64(0)) + case "circle.cctp.v1.Message.sender": + return protoreflect.ValueOfBytes(nil) + case "circle.cctp.v1.Message.recipient": + return protoreflect.ValueOfBytes(nil) + case "circle.cctp.v1.Message.destination_caller": + return protoreflect.ValueOfBytes(nil) + case "circle.cctp.v1.Message.message_body": + return protoreflect.ValueOfBytes(nil) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.Message")) + } + panic(fmt.Errorf("message circle.cctp.v1.Message 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_Message) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.Message", 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_Message) 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_Message) 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_Message) 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_Message) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*Message) + 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.Version != 0 { + n += 1 + runtime.Sov(uint64(x.Version)) + } + if x.SourceDomain != 0 { + n += 1 + runtime.Sov(uint64(x.SourceDomain)) + } + 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.Sender) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Recipient) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.DestinationCaller) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.MessageBody) + 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().(*Message) + 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.MessageBody) > 0 { + i -= len(x.MessageBody) + copy(dAtA[i:], x.MessageBody) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.MessageBody))) + i-- + dAtA[i] = 0x42 + } + if len(x.DestinationCaller) > 0 { + i -= len(x.DestinationCaller) + copy(dAtA[i:], x.DestinationCaller) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.DestinationCaller))) + i-- + dAtA[i] = 0x3a + } + if len(x.Recipient) > 0 { + i -= len(x.Recipient) + copy(dAtA[i:], x.Recipient) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Recipient))) + i-- + dAtA[i] = 0x32 + } + 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] = 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.SourceDomain != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.SourceDomain)) + i-- + dAtA[i] = 0x10 + } + if x.Version != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Version)) + 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().(*Message) + 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: Message: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Message: 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 Version", wireType) + } + x.Version = 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.Version |= 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 SourceDomain", wireType) + } + x.SourceDomain = 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.SourceDomain |= 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 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 6: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Recipient", 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.Recipient = append(x.Recipient[:0], dAtA[iNdEx:postIndex]...) + if x.Recipient == nil { + x.Recipient = []byte{} + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DestinationCaller", 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.DestinationCaller = append(x.DestinationCaller[:0], dAtA[iNdEx:postIndex]...) + if x.DestinationCaller == nil { + x.DestinationCaller = []byte{} + } + iNdEx = postIndex + case 8: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MessageBody", 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.MessageBody = append(x.MessageBody[:0], dAtA[iNdEx:postIndex]...) + if x.MessageBody == nil { + x.MessageBody = []byte{} + } + 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, + } +} + +// +// Copyright (c) 2023, Ā© Circle Internet Financial, LTD. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.0 +// protoc (unknown) +// source: circle/cctp/v1/message.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) +) + +// * +// Generic message header for all messages passing through CCTP +// The message body is dynamically-sized to support custom message body +// formats. Other fields must be fixed-size to avoid hash collisions. +// +// Padding: uintNN fields are left-padded, and bytesNN fields are right-padded. +// +// @param version the version of the message format +// @param source_domain domain of home chain +// @param destination_domain domain of destination chain +// @param nonce destination-specific nonce +// @param sender address of sender on source chain as bytes32 +// @param recipient address of recipient on destination chain as bytes32 +// @param destination_caller address of caller on destination chain as bytes32 +// @param message_body raw bytes of message body +type Message struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` + SourceDomain uint32 `protobuf:"varint,2,opt,name=source_domain,json=sourceDomain,proto3" json:"source_domain,omitempty"` + DestinationDomain uint32 `protobuf:"varint,3,opt,name=destination_domain,json=destinationDomain,proto3" json:"destination_domain,omitempty"` + Nonce uint64 `protobuf:"varint,4,opt,name=nonce,proto3" json:"nonce,omitempty"` + Sender []byte `protobuf:"bytes,5,opt,name=sender,proto3" json:"sender,omitempty"` + Recipient []byte `protobuf:"bytes,6,opt,name=recipient,proto3" json:"recipient,omitempty"` + DestinationCaller []byte `protobuf:"bytes,7,opt,name=destination_caller,json=destinationCaller,proto3" json:"destination_caller,omitempty"` + MessageBody []byte `protobuf:"bytes,8,opt,name=message_body,json=messageBody,proto3" json:"message_body,omitempty"` +} + +func (x *Message) Reset() { + *x = Message{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_message_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Message) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Message) ProtoMessage() {} + +// Deprecated: Use Message.ProtoReflect.Descriptor instead. +func (*Message) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_message_proto_rawDescGZIP(), []int{0} +} + +func (x *Message) GetVersion() uint32 { + if x != nil { + return x.Version + } + return 0 +} + +func (x *Message) GetSourceDomain() uint32 { + if x != nil { + return x.SourceDomain + } + return 0 +} + +func (x *Message) GetDestinationDomain() uint32 { + if x != nil { + return x.DestinationDomain + } + return 0 +} + +func (x *Message) GetNonce() uint64 { + if x != nil { + return x.Nonce + } + return 0 +} + +func (x *Message) GetSender() []byte { + if x != nil { + return x.Sender + } + return nil +} + +func (x *Message) GetRecipient() []byte { + if x != nil { + return x.Recipient + } + return nil +} + +func (x *Message) GetDestinationCaller() []byte { + if x != nil { + return x.DestinationCaller + } + return nil +} + +func (x *Message) GetMessageBody() []byte { + if x != nil { + return x.MessageBody + } + return nil +} + +var File_circle_cctp_v1_message_proto protoreflect.FileDescriptor + +var file_circle_cctp_v1_message_proto_rawDesc = []byte{ + 0x0a, 0x1c, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2f, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x76, 0x31, + 0x2f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, + 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x22, 0x95, + 0x02, 0x0a, 0x07, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, + 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x76, 0x65, 0x72, + 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x64, + 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0c, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 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, 0x16, + 0x0a, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, + 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, + 0x65, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x72, 0x65, 0x63, 0x69, 0x70, + 0x69, 0x65, 0x6e, 0x74, 0x12, 0x2d, 0x0a, 0x12, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, + 0x52, 0x11, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x61, 0x6c, + 0x6c, 0x65, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x62, + 0x6f, 0x64, 0x79, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x6d, 0x65, 0x73, 0x73, 0x61, + 0x67, 0x65, 0x42, 0x6f, 0x64, 0x79, 0x42, 0xb7, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x63, + 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x42, 0x0c, 0x4d, + 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x39, 0x67, + 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, + 0x66, 0x69, 0x6e, 0x2f, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2d, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x61, + 0x70, 0x69, 0x2f, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2f, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x76, + 0x31, 0x3b, 0x63, 0x63, 0x74, 0x70, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x43, 0x58, 0xaa, 0x02, + 0x0e, 0x43, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x43, 0x63, 0x74, 0x70, 0x2e, 0x56, 0x31, 0xca, + 0x02, 0x0e, 0x43, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x5c, 0x43, 0x63, 0x74, 0x70, 0x5c, 0x56, 0x31, + 0xe2, 0x02, 0x1a, 0x43, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x5c, 0x43, 0x63, 0x74, 0x70, 0x5c, 0x56, + 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x10, + 0x43, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x63, 0x74, 0x70, 0x3a, 0x3a, 0x56, 0x31, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_circle_cctp_v1_message_proto_rawDescOnce sync.Once + file_circle_cctp_v1_message_proto_rawDescData = file_circle_cctp_v1_message_proto_rawDesc +) + +func file_circle_cctp_v1_message_proto_rawDescGZIP() []byte { + file_circle_cctp_v1_message_proto_rawDescOnce.Do(func() { + file_circle_cctp_v1_message_proto_rawDescData = protoimpl.X.CompressGZIP(file_circle_cctp_v1_message_proto_rawDescData) + }) + return file_circle_cctp_v1_message_proto_rawDescData +} + +var file_circle_cctp_v1_message_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_circle_cctp_v1_message_proto_goTypes = []interface{}{ + (*Message)(nil), // 0: circle.cctp.v1.Message +} +var file_circle_cctp_v1_message_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_circle_cctp_v1_message_proto_init() } +func file_circle_cctp_v1_message_proto_init() { + if File_circle_cctp_v1_message_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_circle_cctp_v1_message_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Message); 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_circle_cctp_v1_message_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_circle_cctp_v1_message_proto_goTypes, + DependencyIndexes: file_circle_cctp_v1_message_proto_depIdxs, + MessageInfos: file_circle_cctp_v1_message_proto_msgTypes, + }.Build() + File_circle_cctp_v1_message_proto = out.File + file_circle_cctp_v1_message_proto_rawDesc = nil + file_circle_cctp_v1_message_proto_goTypes = nil + file_circle_cctp_v1_message_proto_depIdxs = nil +} diff --git a/api/circle/cctp/v1/nonce.pulsar.go b/api/circle/cctp/v1/nonce.pulsar.go new file mode 100644 index 0000000..8926d76 --- /dev/null +++ b/api/circle/cctp/v1/nonce.pulsar.go @@ -0,0 +1,629 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package cctpv1 + +import ( + fmt "fmt" + runtime "github.com/cosmos/cosmos-proto/runtime" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoiface "google.golang.org/protobuf/runtime/protoiface" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + io "io" + reflect "reflect" + sync "sync" +) + +var ( + md_Nonce protoreflect.MessageDescriptor + fd_Nonce_source_domain protoreflect.FieldDescriptor + fd_Nonce_nonce protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_nonce_proto_init() + md_Nonce = File_circle_cctp_v1_nonce_proto.Messages().ByName("Nonce") + fd_Nonce_source_domain = md_Nonce.Fields().ByName("source_domain") + fd_Nonce_nonce = md_Nonce.Fields().ByName("nonce") +} + +var _ protoreflect.Message = (*fastReflection_Nonce)(nil) + +type fastReflection_Nonce Nonce + +func (x *Nonce) ProtoReflect() protoreflect.Message { + return (*fastReflection_Nonce)(x) +} + +func (x *Nonce) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_nonce_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_Nonce_messageType fastReflection_Nonce_messageType +var _ protoreflect.MessageType = fastReflection_Nonce_messageType{} + +type fastReflection_Nonce_messageType struct{} + +func (x fastReflection_Nonce_messageType) Zero() protoreflect.Message { + return (*fastReflection_Nonce)(nil) +} +func (x fastReflection_Nonce_messageType) New() protoreflect.Message { + return new(fastReflection_Nonce) +} +func (x fastReflection_Nonce_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_Nonce +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_Nonce) Descriptor() protoreflect.MessageDescriptor { + return md_Nonce +} + +// 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_Nonce) Type() protoreflect.MessageType { + return _fastReflection_Nonce_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_Nonce) New() protoreflect.Message { + return new(fastReflection_Nonce) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_Nonce) Interface() protoreflect.ProtoMessage { + return (*Nonce)(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_Nonce) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.SourceDomain != uint32(0) { + value := protoreflect.ValueOfUint32(x.SourceDomain) + if !f(fd_Nonce_source_domain, value) { + return + } + } + if x.Nonce != uint64(0) { + value := protoreflect.ValueOfUint64(x.Nonce) + if !f(fd_Nonce_nonce, 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_Nonce) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.Nonce.source_domain": + return x.SourceDomain != uint32(0) + case "circle.cctp.v1.Nonce.nonce": + return x.Nonce != uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.Nonce")) + } + panic(fmt.Errorf("message circle.cctp.v1.Nonce 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_Nonce) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.Nonce.source_domain": + x.SourceDomain = uint32(0) + case "circle.cctp.v1.Nonce.nonce": + x.Nonce = uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.Nonce")) + } + panic(fmt.Errorf("message circle.cctp.v1.Nonce 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_Nonce) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.Nonce.source_domain": + value := x.SourceDomain + return protoreflect.ValueOfUint32(value) + case "circle.cctp.v1.Nonce.nonce": + value := x.Nonce + return protoreflect.ValueOfUint64(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.Nonce")) + } + panic(fmt.Errorf("message circle.cctp.v1.Nonce 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_Nonce) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.Nonce.source_domain": + x.SourceDomain = uint32(value.Uint()) + case "circle.cctp.v1.Nonce.nonce": + x.Nonce = value.Uint() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.Nonce")) + } + panic(fmt.Errorf("message circle.cctp.v1.Nonce 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_Nonce) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.Nonce.source_domain": + panic(fmt.Errorf("field source_domain of message circle.cctp.v1.Nonce is not mutable")) + case "circle.cctp.v1.Nonce.nonce": + panic(fmt.Errorf("field nonce of message circle.cctp.v1.Nonce is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.Nonce")) + } + panic(fmt.Errorf("message circle.cctp.v1.Nonce 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_Nonce) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.Nonce.source_domain": + return protoreflect.ValueOfUint32(uint32(0)) + case "circle.cctp.v1.Nonce.nonce": + return protoreflect.ValueOfUint64(uint64(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.Nonce")) + } + panic(fmt.Errorf("message circle.cctp.v1.Nonce 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_Nonce) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.Nonce", 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_Nonce) 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_Nonce) 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_Nonce) 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_Nonce) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*Nonce) + 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.SourceDomain != 0 { + n += 1 + runtime.Sov(uint64(x.SourceDomain)) + } + if x.Nonce != 0 { + n += 1 + runtime.Sov(uint64(x.Nonce)) + } + 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().(*Nonce) + 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.Nonce != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Nonce)) + i-- + dAtA[i] = 0x10 + } + if x.SourceDomain != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.SourceDomain)) + 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().(*Nonce) + 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: Nonce: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Nonce: 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 SourceDomain", wireType) + } + x.SourceDomain = 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.SourceDomain |= 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 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 + } + } + 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, + } +} + +// +// Copyright (c) 2023, Ā© Circle Internet Financial, LTD. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.0 +// protoc (unknown) +// source: circle/cctp/v1/nonce.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) +) + +// * +// The Nonce type functions both to mark receipt of received messages and a +// counter for sending messages +// @param source_domain the domain id, used to mark used nonces for received +// messages +// @param nonce the nonce number +type Nonce struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + SourceDomain uint32 `protobuf:"varint,1,opt,name=source_domain,json=sourceDomain,proto3" json:"source_domain,omitempty"` + Nonce uint64 `protobuf:"varint,2,opt,name=nonce,proto3" json:"nonce,omitempty"` +} + +func (x *Nonce) Reset() { + *x = Nonce{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_nonce_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Nonce) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Nonce) ProtoMessage() {} + +// Deprecated: Use Nonce.ProtoReflect.Descriptor instead. +func (*Nonce) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_nonce_proto_rawDescGZIP(), []int{0} +} + +func (x *Nonce) GetSourceDomain() uint32 { + if x != nil { + return x.SourceDomain + } + return 0 +} + +func (x *Nonce) GetNonce() uint64 { + if x != nil { + return x.Nonce + } + return 0 +} + +var File_circle_cctp_v1_nonce_proto protoreflect.FileDescriptor + +var file_circle_cctp_v1_nonce_proto_rawDesc = []byte{ + 0x0a, 0x1a, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2f, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x76, 0x31, + 0x2f, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x63, 0x69, + 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x22, 0x42, 0x0a, 0x05, + 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, + 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0c, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, + 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, + 0x42, 0xb5, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, + 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x50, 0x72, + 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x39, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, + 0x6d, 0x2f, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x66, 0x69, 0x6e, 0x2f, 0x6e, 0x6f, 0x62, 0x6c, + 0x65, 0x2d, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x69, 0x72, 0x63, 0x6c, + 0x65, 0x2f, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x76, 0x31, 0x3b, 0x63, 0x63, 0x74, 0x70, 0x76, 0x31, + 0xa2, 0x02, 0x03, 0x43, 0x43, 0x58, 0xaa, 0x02, 0x0e, 0x43, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, + 0x43, 0x63, 0x74, 0x70, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0e, 0x43, 0x69, 0x72, 0x63, 0x6c, 0x65, + 0x5c, 0x43, 0x63, 0x74, 0x70, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1a, 0x43, 0x69, 0x72, 0x63, 0x6c, + 0x65, 0x5c, 0x43, 0x63, 0x74, 0x70, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x10, 0x43, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x3a, 0x3a, + 0x43, 0x63, 0x74, 0x70, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_circle_cctp_v1_nonce_proto_rawDescOnce sync.Once + file_circle_cctp_v1_nonce_proto_rawDescData = file_circle_cctp_v1_nonce_proto_rawDesc +) + +func file_circle_cctp_v1_nonce_proto_rawDescGZIP() []byte { + file_circle_cctp_v1_nonce_proto_rawDescOnce.Do(func() { + file_circle_cctp_v1_nonce_proto_rawDescData = protoimpl.X.CompressGZIP(file_circle_cctp_v1_nonce_proto_rawDescData) + }) + return file_circle_cctp_v1_nonce_proto_rawDescData +} + +var file_circle_cctp_v1_nonce_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_circle_cctp_v1_nonce_proto_goTypes = []interface{}{ + (*Nonce)(nil), // 0: circle.cctp.v1.Nonce +} +var file_circle_cctp_v1_nonce_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_circle_cctp_v1_nonce_proto_init() } +func file_circle_cctp_v1_nonce_proto_init() { + if File_circle_cctp_v1_nonce_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_circle_cctp_v1_nonce_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Nonce); 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_circle_cctp_v1_nonce_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_circle_cctp_v1_nonce_proto_goTypes, + DependencyIndexes: file_circle_cctp_v1_nonce_proto_depIdxs, + MessageInfos: file_circle_cctp_v1_nonce_proto_msgTypes, + }.Build() + File_circle_cctp_v1_nonce_proto = out.File + file_circle_cctp_v1_nonce_proto_rawDesc = nil + file_circle_cctp_v1_nonce_proto_goTypes = nil + file_circle_cctp_v1_nonce_proto_depIdxs = nil +} diff --git a/api/circle/cctp/v1/params.pulsar.go b/api/circle/cctp/v1/params.pulsar.go new file mode 100644 index 0000000..45bde2c --- /dev/null +++ b/api/circle/cctp/v1/params.pulsar.go @@ -0,0 +1,512 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package cctpv1 + +import ( + fmt "fmt" + 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" + io "io" + reflect "reflect" + sync "sync" +) + +var ( + md_Params protoreflect.MessageDescriptor +) + +func init() { + file_circle_cctp_v1_params_proto_init() + md_Params = File_circle_cctp_v1_params_proto.Messages().ByName("Params") +} + +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_circle_cctp_v1_params_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_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) { +} + +// 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() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.Params")) + } + panic(fmt.Errorf("message circle.cctp.v1.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() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.Params")) + } + panic(fmt.Errorf("message circle.cctp.v1.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() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.Params")) + } + panic(fmt.Errorf("message circle.cctp.v1.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() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.Params")) + } + panic(fmt.Errorf("message circle.cctp.v1.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() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.Params")) + } + panic(fmt.Errorf("message circle.cctp.v1.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() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.Params")) + } + panic(fmt.Errorf("message circle.cctp.v1.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 circle.cctp.v1.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 + 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 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 { + 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, + } +} + +// +// Copyright (c) 2023, Ā© Circle Internet Financial, LTD. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.0 +// protoc (unknown) +// source: circle/cctp/v1/params.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) +) + +// * +// Params defines the parameters for the module. +type Params struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *Params) Reset() { + *x = Params{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_params_proto_msgTypes[0] + 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_circle_cctp_v1_params_proto_rawDescGZIP(), []int{0} +} + +var File_circle_cctp_v1_params_proto protoreflect.FileDescriptor + +var file_circle_cctp_v1_params_proto_rawDesc = []byte{ + 0x0a, 0x1b, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2f, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x76, 0x31, + 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x63, + 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x1a, 0x14, 0x67, + 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x22, 0x0e, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x3a, 0x04, 0x98, + 0xa0, 0x1f, 0x00, 0x42, 0xb6, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x69, 0x72, 0x63, + 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x42, 0x0b, 0x50, 0x61, 0x72, 0x61, + 0x6d, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x39, 0x67, 0x69, 0x74, 0x68, 0x75, + 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x66, 0x69, 0x6e, 0x2f, + 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2d, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, + 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2f, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x76, 0x31, 0x3b, 0x63, 0x63, + 0x74, 0x70, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x43, 0x58, 0xaa, 0x02, 0x0e, 0x43, 0x69, 0x72, + 0x63, 0x6c, 0x65, 0x2e, 0x43, 0x63, 0x74, 0x70, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0e, 0x43, 0x69, + 0x72, 0x63, 0x6c, 0x65, 0x5c, 0x43, 0x63, 0x74, 0x70, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1a, 0x43, + 0x69, 0x72, 0x63, 0x6c, 0x65, 0x5c, 0x43, 0x63, 0x74, 0x70, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, + 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x10, 0x43, 0x69, 0x72, 0x63, + 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x63, 0x74, 0x70, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_circle_cctp_v1_params_proto_rawDescOnce sync.Once + file_circle_cctp_v1_params_proto_rawDescData = file_circle_cctp_v1_params_proto_rawDesc +) + +func file_circle_cctp_v1_params_proto_rawDescGZIP() []byte { + file_circle_cctp_v1_params_proto_rawDescOnce.Do(func() { + file_circle_cctp_v1_params_proto_rawDescData = protoimpl.X.CompressGZIP(file_circle_cctp_v1_params_proto_rawDescData) + }) + return file_circle_cctp_v1_params_proto_rawDescData +} + +var file_circle_cctp_v1_params_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_circle_cctp_v1_params_proto_goTypes = []interface{}{ + (*Params)(nil), // 0: circle.cctp.v1.Params +} +var file_circle_cctp_v1_params_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_circle_cctp_v1_params_proto_init() } +func file_circle_cctp_v1_params_proto_init() { + if File_circle_cctp_v1_params_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_circle_cctp_v1_params_proto_msgTypes[0].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 + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_circle_cctp_v1_params_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_circle_cctp_v1_params_proto_goTypes, + DependencyIndexes: file_circle_cctp_v1_params_proto_depIdxs, + MessageInfos: file_circle_cctp_v1_params_proto_msgTypes, + }.Build() + File_circle_cctp_v1_params_proto = out.File + file_circle_cctp_v1_params_proto_rawDesc = nil + file_circle_cctp_v1_params_proto_goTypes = nil + file_circle_cctp_v1_params_proto_depIdxs = nil +} diff --git a/api/circle/cctp/v1/per_message_burn_limit.pulsar.go b/api/circle/cctp/v1/per_message_burn_limit.pulsar.go new file mode 100644 index 0000000..a53bad2 --- /dev/null +++ b/api/circle/cctp/v1/per_message_burn_limit.pulsar.go @@ -0,0 +1,668 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package cctpv1 + +import ( + fmt "fmt" + 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" + io "io" + reflect "reflect" + sync "sync" +) + +var ( + md_PerMessageBurnLimit protoreflect.MessageDescriptor + fd_PerMessageBurnLimit_denom protoreflect.FieldDescriptor + fd_PerMessageBurnLimit_amount protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_per_message_burn_limit_proto_init() + md_PerMessageBurnLimit = File_circle_cctp_v1_per_message_burn_limit_proto.Messages().ByName("PerMessageBurnLimit") + fd_PerMessageBurnLimit_denom = md_PerMessageBurnLimit.Fields().ByName("denom") + fd_PerMessageBurnLimit_amount = md_PerMessageBurnLimit.Fields().ByName("amount") +} + +var _ protoreflect.Message = (*fastReflection_PerMessageBurnLimit)(nil) + +type fastReflection_PerMessageBurnLimit PerMessageBurnLimit + +func (x *PerMessageBurnLimit) ProtoReflect() protoreflect.Message { + return (*fastReflection_PerMessageBurnLimit)(x) +} + +func (x *PerMessageBurnLimit) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_per_message_burn_limit_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_PerMessageBurnLimit_messageType fastReflection_PerMessageBurnLimit_messageType +var _ protoreflect.MessageType = fastReflection_PerMessageBurnLimit_messageType{} + +type fastReflection_PerMessageBurnLimit_messageType struct{} + +func (x fastReflection_PerMessageBurnLimit_messageType) Zero() protoreflect.Message { + return (*fastReflection_PerMessageBurnLimit)(nil) +} +func (x fastReflection_PerMessageBurnLimit_messageType) New() protoreflect.Message { + return new(fastReflection_PerMessageBurnLimit) +} +func (x fastReflection_PerMessageBurnLimit_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_PerMessageBurnLimit +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_PerMessageBurnLimit) Descriptor() protoreflect.MessageDescriptor { + return md_PerMessageBurnLimit +} + +// 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_PerMessageBurnLimit) Type() protoreflect.MessageType { + return _fastReflection_PerMessageBurnLimit_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_PerMessageBurnLimit) New() protoreflect.Message { + return new(fastReflection_PerMessageBurnLimit) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_PerMessageBurnLimit) Interface() protoreflect.ProtoMessage { + return (*PerMessageBurnLimit)(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_PerMessageBurnLimit) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Denom != "" { + value := protoreflect.ValueOfString(x.Denom) + if !f(fd_PerMessageBurnLimit_denom, value) { + return + } + } + if x.Amount != "" { + value := protoreflect.ValueOfString(x.Amount) + if !f(fd_PerMessageBurnLimit_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_PerMessageBurnLimit) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.PerMessageBurnLimit.denom": + return x.Denom != "" + case "circle.cctp.v1.PerMessageBurnLimit.amount": + return x.Amount != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.PerMessageBurnLimit")) + } + panic(fmt.Errorf("message circle.cctp.v1.PerMessageBurnLimit 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_PerMessageBurnLimit) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.PerMessageBurnLimit.denom": + x.Denom = "" + case "circle.cctp.v1.PerMessageBurnLimit.amount": + x.Amount = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.PerMessageBurnLimit")) + } + panic(fmt.Errorf("message circle.cctp.v1.PerMessageBurnLimit 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_PerMessageBurnLimit) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.PerMessageBurnLimit.denom": + value := x.Denom + return protoreflect.ValueOfString(value) + case "circle.cctp.v1.PerMessageBurnLimit.amount": + value := x.Amount + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.PerMessageBurnLimit")) + } + panic(fmt.Errorf("message circle.cctp.v1.PerMessageBurnLimit 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_PerMessageBurnLimit) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.PerMessageBurnLimit.denom": + x.Denom = value.Interface().(string) + case "circle.cctp.v1.PerMessageBurnLimit.amount": + x.Amount = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.PerMessageBurnLimit")) + } + panic(fmt.Errorf("message circle.cctp.v1.PerMessageBurnLimit 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_PerMessageBurnLimit) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.PerMessageBurnLimit.denom": + panic(fmt.Errorf("field denom of message circle.cctp.v1.PerMessageBurnLimit is not mutable")) + case "circle.cctp.v1.PerMessageBurnLimit.amount": + panic(fmt.Errorf("field amount of message circle.cctp.v1.PerMessageBurnLimit is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.PerMessageBurnLimit")) + } + panic(fmt.Errorf("message circle.cctp.v1.PerMessageBurnLimit 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_PerMessageBurnLimit) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.PerMessageBurnLimit.denom": + return protoreflect.ValueOfString("") + case "circle.cctp.v1.PerMessageBurnLimit.amount": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.PerMessageBurnLimit")) + } + panic(fmt.Errorf("message circle.cctp.v1.PerMessageBurnLimit 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_PerMessageBurnLimit) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.PerMessageBurnLimit", 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_PerMessageBurnLimit) 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_PerMessageBurnLimit) 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_PerMessageBurnLimit) 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_PerMessageBurnLimit) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*PerMessageBurnLimit) + 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.Denom) + 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().(*PerMessageBurnLimit) + 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.Denom) > 0 { + i -= len(x.Denom) + copy(dAtA[i:], x.Denom) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Denom))) + 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().(*PerMessageBurnLimit) + 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: PerMessageBurnLimit: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: PerMessageBurnLimit: 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 Denom", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Denom = 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, + } +} + +// +// Copyright (c) 2023, Ā© Circle Internet Financial, LTD. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.0 +// protoc (unknown) +// source: circle/cctp/v1/per_message_burn_limit.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) +) + +// * +// PerMessageBurnLimit is the maximum amount of a certain denom that can be +// burned in an single burn +// @param denom the denom +// @param amount the amount that can be burned (in microunits). An amount of +// 1000000 uusdc is equivalent to 1USDC +type PerMessageBurnLimit struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"` + Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"` +} + +func (x *PerMessageBurnLimit) Reset() { + *x = PerMessageBurnLimit{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_per_message_burn_limit_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PerMessageBurnLimit) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PerMessageBurnLimit) ProtoMessage() {} + +// Deprecated: Use PerMessageBurnLimit.ProtoReflect.Descriptor instead. +func (*PerMessageBurnLimit) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_per_message_burn_limit_proto_rawDescGZIP(), []int{0} +} + +func (x *PerMessageBurnLimit) GetDenom() string { + if x != nil { + return x.Denom + } + return "" +} + +func (x *PerMessageBurnLimit) GetAmount() string { + if x != nil { + return x.Amount + } + return "" +} + +var File_circle_cctp_v1_per_message_burn_limit_proto protoreflect.FileDescriptor + +var file_circle_cctp_v1_per_message_burn_limit_proto_rawDesc = []byte{ + 0x0a, 0x2b, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2f, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x76, 0x31, + 0x2f, 0x70, 0x65, 0x72, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x62, 0x75, 0x72, + 0x6e, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x63, + 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x1a, 0x14, 0x67, + 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x22, 0x62, 0x0a, 0x13, 0x50, 0x65, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, + 0x65, 0x42, 0x75, 0x72, 0x6e, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x64, 0x65, + 0x6e, 0x6f, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x64, 0x65, 0x6e, 0x6f, 0x6d, + 0x12, 0x35, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x1d, 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, 0x52, + 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0xc3, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, + 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x42, 0x18, + 0x50, 0x65, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x42, 0x75, 0x72, 0x6e, 0x4c, 0x69, + 0x6d, 0x69, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x39, 0x67, 0x69, 0x74, 0x68, + 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x66, 0x69, 0x6e, + 0x2f, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2d, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x61, 0x70, 0x69, 0x2f, + 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2f, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x76, 0x31, 0x3b, 0x63, + 0x63, 0x74, 0x70, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x43, 0x58, 0xaa, 0x02, 0x0e, 0x43, 0x69, + 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x43, 0x63, 0x74, 0x70, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0e, 0x43, + 0x69, 0x72, 0x63, 0x6c, 0x65, 0x5c, 0x43, 0x63, 0x74, 0x70, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1a, + 0x43, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x5c, 0x43, 0x63, 0x74, 0x70, 0x5c, 0x56, 0x31, 0x5c, 0x47, + 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x10, 0x43, 0x69, 0x72, + 0x63, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x63, 0x74, 0x70, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_circle_cctp_v1_per_message_burn_limit_proto_rawDescOnce sync.Once + file_circle_cctp_v1_per_message_burn_limit_proto_rawDescData = file_circle_cctp_v1_per_message_burn_limit_proto_rawDesc +) + +func file_circle_cctp_v1_per_message_burn_limit_proto_rawDescGZIP() []byte { + file_circle_cctp_v1_per_message_burn_limit_proto_rawDescOnce.Do(func() { + file_circle_cctp_v1_per_message_burn_limit_proto_rawDescData = protoimpl.X.CompressGZIP(file_circle_cctp_v1_per_message_burn_limit_proto_rawDescData) + }) + return file_circle_cctp_v1_per_message_burn_limit_proto_rawDescData +} + +var file_circle_cctp_v1_per_message_burn_limit_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_circle_cctp_v1_per_message_burn_limit_proto_goTypes = []interface{}{ + (*PerMessageBurnLimit)(nil), // 0: circle.cctp.v1.PerMessageBurnLimit +} +var file_circle_cctp_v1_per_message_burn_limit_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_circle_cctp_v1_per_message_burn_limit_proto_init() } +func file_circle_cctp_v1_per_message_burn_limit_proto_init() { + if File_circle_cctp_v1_per_message_burn_limit_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_circle_cctp_v1_per_message_burn_limit_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PerMessageBurnLimit); 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_circle_cctp_v1_per_message_burn_limit_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_circle_cctp_v1_per_message_burn_limit_proto_goTypes, + DependencyIndexes: file_circle_cctp_v1_per_message_burn_limit_proto_depIdxs, + MessageInfos: file_circle_cctp_v1_per_message_burn_limit_proto_msgTypes, + }.Build() + File_circle_cctp_v1_per_message_burn_limit_proto = out.File + file_circle_cctp_v1_per_message_burn_limit_proto_rawDesc = nil + file_circle_cctp_v1_per_message_burn_limit_proto_goTypes = nil + file_circle_cctp_v1_per_message_burn_limit_proto_depIdxs = nil +} diff --git a/api/circle/cctp/v1/query.pulsar.go b/api/circle/cctp/v1/query.pulsar.go new file mode 100644 index 0000000..704c157 --- /dev/null +++ b/api/circle/cctp/v1/query.pulsar.go @@ -0,0 +1,19123 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package cctpv1 + +import ( + v1beta1 "cosmossdk.io/api/cosmos/base/query/v1beta1" + fmt "fmt" + 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" + io "io" + reflect "reflect" + sync "sync" +) + +var ( + md_QueryRolesRequest protoreflect.MessageDescriptor +) + +func init() { + file_circle_cctp_v1_query_proto_init() + md_QueryRolesRequest = File_circle_cctp_v1_query_proto.Messages().ByName("QueryRolesRequest") +} + +var _ protoreflect.Message = (*fastReflection_QueryRolesRequest)(nil) + +type fastReflection_QueryRolesRequest QueryRolesRequest + +func (x *QueryRolesRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryRolesRequest)(x) +} + +func (x *QueryRolesRequest) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_QueryRolesRequest_messageType fastReflection_QueryRolesRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryRolesRequest_messageType{} + +type fastReflection_QueryRolesRequest_messageType struct{} + +func (x fastReflection_QueryRolesRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryRolesRequest)(nil) +} +func (x fastReflection_QueryRolesRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryRolesRequest) +} +func (x fastReflection_QueryRolesRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryRolesRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryRolesRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryRolesRequest +} + +// 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_QueryRolesRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryRolesRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryRolesRequest) New() protoreflect.Message { + return new(fastReflection_QueryRolesRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryRolesRequest) Interface() protoreflect.ProtoMessage { + return (*QueryRolesRequest)(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_QueryRolesRequest) 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_QueryRolesRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryRolesRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryRolesRequest 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_QueryRolesRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryRolesRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryRolesRequest 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_QueryRolesRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryRolesRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryRolesRequest 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_QueryRolesRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryRolesRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryRolesRequest 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_QueryRolesRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryRolesRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryRolesRequest 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_QueryRolesRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryRolesRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryRolesRequest 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_QueryRolesRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.QueryRolesRequest", 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_QueryRolesRequest) 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_QueryRolesRequest) 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_QueryRolesRequest) 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_QueryRolesRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryRolesRequest) + 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().(*QueryRolesRequest) + 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().(*QueryRolesRequest) + 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: QueryRolesRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryRolesRequest: 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_QueryRolesResponse protoreflect.MessageDescriptor + fd_QueryRolesResponse_owner protoreflect.FieldDescriptor + fd_QueryRolesResponse_attester_manager protoreflect.FieldDescriptor + fd_QueryRolesResponse_pauser protoreflect.FieldDescriptor + fd_QueryRolesResponse_token_controller protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_query_proto_init() + md_QueryRolesResponse = File_circle_cctp_v1_query_proto.Messages().ByName("QueryRolesResponse") + fd_QueryRolesResponse_owner = md_QueryRolesResponse.Fields().ByName("owner") + fd_QueryRolesResponse_attester_manager = md_QueryRolesResponse.Fields().ByName("attester_manager") + fd_QueryRolesResponse_pauser = md_QueryRolesResponse.Fields().ByName("pauser") + fd_QueryRolesResponse_token_controller = md_QueryRolesResponse.Fields().ByName("token_controller") +} + +var _ protoreflect.Message = (*fastReflection_QueryRolesResponse)(nil) + +type fastReflection_QueryRolesResponse QueryRolesResponse + +func (x *QueryRolesResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryRolesResponse)(x) +} + +func (x *QueryRolesResponse) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_QueryRolesResponse_messageType fastReflection_QueryRolesResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryRolesResponse_messageType{} + +type fastReflection_QueryRolesResponse_messageType struct{} + +func (x fastReflection_QueryRolesResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryRolesResponse)(nil) +} +func (x fastReflection_QueryRolesResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryRolesResponse) +} +func (x fastReflection_QueryRolesResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryRolesResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryRolesResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryRolesResponse +} + +// 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_QueryRolesResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryRolesResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryRolesResponse) New() protoreflect.Message { + return new(fastReflection_QueryRolesResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryRolesResponse) Interface() protoreflect.ProtoMessage { + return (*QueryRolesResponse)(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_QueryRolesResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Owner != "" { + value := protoreflect.ValueOfString(x.Owner) + if !f(fd_QueryRolesResponse_owner, value) { + return + } + } + if x.AttesterManager != "" { + value := protoreflect.ValueOfString(x.AttesterManager) + if !f(fd_QueryRolesResponse_attester_manager, value) { + return + } + } + if x.Pauser != "" { + value := protoreflect.ValueOfString(x.Pauser) + if !f(fd_QueryRolesResponse_pauser, value) { + return + } + } + if x.TokenController != "" { + value := protoreflect.ValueOfString(x.TokenController) + if !f(fd_QueryRolesResponse_token_controller, 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_QueryRolesResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.QueryRolesResponse.owner": + return x.Owner != "" + case "circle.cctp.v1.QueryRolesResponse.attester_manager": + return x.AttesterManager != "" + case "circle.cctp.v1.QueryRolesResponse.pauser": + return x.Pauser != "" + case "circle.cctp.v1.QueryRolesResponse.token_controller": + return x.TokenController != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryRolesResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryRolesResponse 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_QueryRolesResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.QueryRolesResponse.owner": + x.Owner = "" + case "circle.cctp.v1.QueryRolesResponse.attester_manager": + x.AttesterManager = "" + case "circle.cctp.v1.QueryRolesResponse.pauser": + x.Pauser = "" + case "circle.cctp.v1.QueryRolesResponse.token_controller": + x.TokenController = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryRolesResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryRolesResponse 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_QueryRolesResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.QueryRolesResponse.owner": + value := x.Owner + return protoreflect.ValueOfString(value) + case "circle.cctp.v1.QueryRolesResponse.attester_manager": + value := x.AttesterManager + return protoreflect.ValueOfString(value) + case "circle.cctp.v1.QueryRolesResponse.pauser": + value := x.Pauser + return protoreflect.ValueOfString(value) + case "circle.cctp.v1.QueryRolesResponse.token_controller": + value := x.TokenController + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryRolesResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryRolesResponse 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_QueryRolesResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.QueryRolesResponse.owner": + x.Owner = value.Interface().(string) + case "circle.cctp.v1.QueryRolesResponse.attester_manager": + x.AttesterManager = value.Interface().(string) + case "circle.cctp.v1.QueryRolesResponse.pauser": + x.Pauser = value.Interface().(string) + case "circle.cctp.v1.QueryRolesResponse.token_controller": + x.TokenController = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryRolesResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryRolesResponse 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_QueryRolesResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.QueryRolesResponse.owner": + panic(fmt.Errorf("field owner of message circle.cctp.v1.QueryRolesResponse is not mutable")) + case "circle.cctp.v1.QueryRolesResponse.attester_manager": + panic(fmt.Errorf("field attester_manager of message circle.cctp.v1.QueryRolesResponse is not mutable")) + case "circle.cctp.v1.QueryRolesResponse.pauser": + panic(fmt.Errorf("field pauser of message circle.cctp.v1.QueryRolesResponse is not mutable")) + case "circle.cctp.v1.QueryRolesResponse.token_controller": + panic(fmt.Errorf("field token_controller of message circle.cctp.v1.QueryRolesResponse is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryRolesResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryRolesResponse 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_QueryRolesResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.QueryRolesResponse.owner": + return protoreflect.ValueOfString("") + case "circle.cctp.v1.QueryRolesResponse.attester_manager": + return protoreflect.ValueOfString("") + case "circle.cctp.v1.QueryRolesResponse.pauser": + return protoreflect.ValueOfString("") + case "circle.cctp.v1.QueryRolesResponse.token_controller": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryRolesResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryRolesResponse 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_QueryRolesResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.QueryRolesResponse", 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_QueryRolesResponse) 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_QueryRolesResponse) 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_QueryRolesResponse) 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_QueryRolesResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryRolesResponse) + 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.Owner) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.AttesterManager) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Pauser) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.TokenController) + 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().(*QueryRolesResponse) + 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.TokenController) > 0 { + i -= len(x.TokenController) + copy(dAtA[i:], x.TokenController) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TokenController))) + i-- + dAtA[i] = 0x22 + } + if len(x.Pauser) > 0 { + i -= len(x.Pauser) + copy(dAtA[i:], x.Pauser) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Pauser))) + i-- + dAtA[i] = 0x1a + } + if len(x.AttesterManager) > 0 { + i -= len(x.AttesterManager) + copy(dAtA[i:], x.AttesterManager) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.AttesterManager))) + i-- + dAtA[i] = 0x12 + } + if len(x.Owner) > 0 { + i -= len(x.Owner) + copy(dAtA[i:], x.Owner) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Owner))) + 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().(*QueryRolesResponse) + 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: QueryRolesResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryRolesResponse: 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 Owner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Owner = 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 AttesterManager", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.AttesterManager = 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 Pauser", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Pauser = 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 TokenController", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.TokenController = 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_QueryGetAttesterRequest protoreflect.MessageDescriptor + fd_QueryGetAttesterRequest_attester protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_query_proto_init() + md_QueryGetAttesterRequest = File_circle_cctp_v1_query_proto.Messages().ByName("QueryGetAttesterRequest") + fd_QueryGetAttesterRequest_attester = md_QueryGetAttesterRequest.Fields().ByName("attester") +} + +var _ protoreflect.Message = (*fastReflection_QueryGetAttesterRequest)(nil) + +type fastReflection_QueryGetAttesterRequest QueryGetAttesterRequest + +func (x *QueryGetAttesterRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryGetAttesterRequest)(x) +} + +func (x *QueryGetAttesterRequest) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_QueryGetAttesterRequest_messageType fastReflection_QueryGetAttesterRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryGetAttesterRequest_messageType{} + +type fastReflection_QueryGetAttesterRequest_messageType struct{} + +func (x fastReflection_QueryGetAttesterRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryGetAttesterRequest)(nil) +} +func (x fastReflection_QueryGetAttesterRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryGetAttesterRequest) +} +func (x fastReflection_QueryGetAttesterRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGetAttesterRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryGetAttesterRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGetAttesterRequest +} + +// 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_QueryGetAttesterRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryGetAttesterRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryGetAttesterRequest) New() protoreflect.Message { + return new(fastReflection_QueryGetAttesterRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryGetAttesterRequest) Interface() protoreflect.ProtoMessage { + return (*QueryGetAttesterRequest)(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_QueryGetAttesterRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Attester != "" { + value := protoreflect.ValueOfString(x.Attester) + if !f(fd_QueryGetAttesterRequest_attester, 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_QueryGetAttesterRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.QueryGetAttesterRequest.attester": + return x.Attester != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetAttesterRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetAttesterRequest 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_QueryGetAttesterRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.QueryGetAttesterRequest.attester": + x.Attester = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetAttesterRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetAttesterRequest 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_QueryGetAttesterRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.QueryGetAttesterRequest.attester": + value := x.Attester + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetAttesterRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetAttesterRequest 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_QueryGetAttesterRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.QueryGetAttesterRequest.attester": + x.Attester = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetAttesterRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetAttesterRequest 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_QueryGetAttesterRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.QueryGetAttesterRequest.attester": + panic(fmt.Errorf("field attester of message circle.cctp.v1.QueryGetAttesterRequest is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetAttesterRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetAttesterRequest 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_QueryGetAttesterRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.QueryGetAttesterRequest.attester": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetAttesterRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetAttesterRequest 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_QueryGetAttesterRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.QueryGetAttesterRequest", 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_QueryGetAttesterRequest) 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_QueryGetAttesterRequest) 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_QueryGetAttesterRequest) 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_QueryGetAttesterRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryGetAttesterRequest) + 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.Attester) + 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().(*QueryGetAttesterRequest) + 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.Attester) > 0 { + i -= len(x.Attester) + copy(dAtA[i:], x.Attester) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Attester))) + 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().(*QueryGetAttesterRequest) + 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: QueryGetAttesterRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetAttesterRequest: 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 Attester", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Attester = 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_QueryGetAttesterResponse protoreflect.MessageDescriptor + fd_QueryGetAttesterResponse_attester protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_query_proto_init() + md_QueryGetAttesterResponse = File_circle_cctp_v1_query_proto.Messages().ByName("QueryGetAttesterResponse") + fd_QueryGetAttesterResponse_attester = md_QueryGetAttesterResponse.Fields().ByName("attester") +} + +var _ protoreflect.Message = (*fastReflection_QueryGetAttesterResponse)(nil) + +type fastReflection_QueryGetAttesterResponse QueryGetAttesterResponse + +func (x *QueryGetAttesterResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryGetAttesterResponse)(x) +} + +func (x *QueryGetAttesterResponse) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_QueryGetAttesterResponse_messageType fastReflection_QueryGetAttesterResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryGetAttesterResponse_messageType{} + +type fastReflection_QueryGetAttesterResponse_messageType struct{} + +func (x fastReflection_QueryGetAttesterResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryGetAttesterResponse)(nil) +} +func (x fastReflection_QueryGetAttesterResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryGetAttesterResponse) +} +func (x fastReflection_QueryGetAttesterResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGetAttesterResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryGetAttesterResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGetAttesterResponse +} + +// 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_QueryGetAttesterResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryGetAttesterResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryGetAttesterResponse) New() protoreflect.Message { + return new(fastReflection_QueryGetAttesterResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryGetAttesterResponse) Interface() protoreflect.ProtoMessage { + return (*QueryGetAttesterResponse)(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_QueryGetAttesterResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Attester != nil { + value := protoreflect.ValueOfMessage(x.Attester.ProtoReflect()) + if !f(fd_QueryGetAttesterResponse_attester, 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_QueryGetAttesterResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.QueryGetAttesterResponse.attester": + return x.Attester != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetAttesterResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetAttesterResponse 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_QueryGetAttesterResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.QueryGetAttesterResponse.attester": + x.Attester = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetAttesterResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetAttesterResponse 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_QueryGetAttesterResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.QueryGetAttesterResponse.attester": + value := x.Attester + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetAttesterResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetAttesterResponse 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_QueryGetAttesterResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.QueryGetAttesterResponse.attester": + x.Attester = value.Message().Interface().(*Attester) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetAttesterResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetAttesterResponse 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_QueryGetAttesterResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.QueryGetAttesterResponse.attester": + if x.Attester == nil { + x.Attester = new(Attester) + } + return protoreflect.ValueOfMessage(x.Attester.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetAttesterResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetAttesterResponse 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_QueryGetAttesterResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.QueryGetAttesterResponse.attester": + m := new(Attester) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetAttesterResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetAttesterResponse 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_QueryGetAttesterResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.QueryGetAttesterResponse", 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_QueryGetAttesterResponse) 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_QueryGetAttesterResponse) 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_QueryGetAttesterResponse) 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_QueryGetAttesterResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryGetAttesterResponse) + 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.Attester != nil { + l = options.Size(x.Attester) + 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().(*QueryGetAttesterResponse) + 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.Attester != nil { + encoded, err := options.Marshal(x.Attester) + 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().(*QueryGetAttesterResponse) + 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: QueryGetAttesterResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetAttesterResponse: 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 Attester", 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.Attester == nil { + x.Attester = &Attester{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Attester); 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_QueryAllAttestersRequest protoreflect.MessageDescriptor + fd_QueryAllAttestersRequest_pagination protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_query_proto_init() + md_QueryAllAttestersRequest = File_circle_cctp_v1_query_proto.Messages().ByName("QueryAllAttestersRequest") + fd_QueryAllAttestersRequest_pagination = md_QueryAllAttestersRequest.Fields().ByName("pagination") +} + +var _ protoreflect.Message = (*fastReflection_QueryAllAttestersRequest)(nil) + +type fastReflection_QueryAllAttestersRequest QueryAllAttestersRequest + +func (x *QueryAllAttestersRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryAllAttestersRequest)(x) +} + +func (x *QueryAllAttestersRequest) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_QueryAllAttestersRequest_messageType fastReflection_QueryAllAttestersRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryAllAttestersRequest_messageType{} + +type fastReflection_QueryAllAttestersRequest_messageType struct{} + +func (x fastReflection_QueryAllAttestersRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryAllAttestersRequest)(nil) +} +func (x fastReflection_QueryAllAttestersRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryAllAttestersRequest) +} +func (x fastReflection_QueryAllAttestersRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAllAttestersRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryAllAttestersRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAllAttestersRequest +} + +// 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_QueryAllAttestersRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryAllAttestersRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryAllAttestersRequest) New() protoreflect.Message { + return new(fastReflection_QueryAllAttestersRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryAllAttestersRequest) Interface() protoreflect.ProtoMessage { + return (*QueryAllAttestersRequest)(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_QueryAllAttestersRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Pagination != nil { + value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + if !f(fd_QueryAllAttestersRequest_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_QueryAllAttestersRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.QueryAllAttestersRequest.pagination": + return x.Pagination != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryAllAttestersRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryAllAttestersRequest 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_QueryAllAttestersRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.QueryAllAttestersRequest.pagination": + x.Pagination = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryAllAttestersRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryAllAttestersRequest 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_QueryAllAttestersRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.QueryAllAttestersRequest.pagination": + value := x.Pagination + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryAllAttestersRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryAllAttestersRequest 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_QueryAllAttestersRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.QueryAllAttestersRequest.pagination": + x.Pagination = value.Message().Interface().(*v1beta1.PageRequest) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryAllAttestersRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryAllAttestersRequest 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_QueryAllAttestersRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.QueryAllAttestersRequest.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: circle.cctp.v1.QueryAllAttestersRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryAllAttestersRequest 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_QueryAllAttestersRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.QueryAllAttestersRequest.pagination": + m := new(v1beta1.PageRequest) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryAllAttestersRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryAllAttestersRequest 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_QueryAllAttestersRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.QueryAllAttestersRequest", 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_QueryAllAttestersRequest) 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_QueryAllAttestersRequest) 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_QueryAllAttestersRequest) 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_QueryAllAttestersRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryAllAttestersRequest) + 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().(*QueryAllAttestersRequest) + 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().(*QueryAllAttestersRequest) + 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: QueryAllAttestersRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAllAttestersRequest: 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 = (*_QueryAllAttestersResponse_1_list)(nil) + +type _QueryAllAttestersResponse_1_list struct { + list *[]*Attester +} + +func (x *_QueryAllAttestersResponse_1_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_QueryAllAttestersResponse_1_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_QueryAllAttestersResponse_1_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*Attester) + (*x.list)[i] = concreteValue +} + +func (x *_QueryAllAttestersResponse_1_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*Attester) + *x.list = append(*x.list, concreteValue) +} + +func (x *_QueryAllAttestersResponse_1_list) AppendMutable() protoreflect.Value { + v := new(Attester) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryAllAttestersResponse_1_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_QueryAllAttestersResponse_1_list) NewElement() protoreflect.Value { + v := new(Attester) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryAllAttestersResponse_1_list) IsValid() bool { + return x.list != nil +} + +var ( + md_QueryAllAttestersResponse protoreflect.MessageDescriptor + fd_QueryAllAttestersResponse_attesters protoreflect.FieldDescriptor + fd_QueryAllAttestersResponse_pagination protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_query_proto_init() + md_QueryAllAttestersResponse = File_circle_cctp_v1_query_proto.Messages().ByName("QueryAllAttestersResponse") + fd_QueryAllAttestersResponse_attesters = md_QueryAllAttestersResponse.Fields().ByName("attesters") + fd_QueryAllAttestersResponse_pagination = md_QueryAllAttestersResponse.Fields().ByName("pagination") +} + +var _ protoreflect.Message = (*fastReflection_QueryAllAttestersResponse)(nil) + +type fastReflection_QueryAllAttestersResponse QueryAllAttestersResponse + +func (x *QueryAllAttestersResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryAllAttestersResponse)(x) +} + +func (x *QueryAllAttestersResponse) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_QueryAllAttestersResponse_messageType fastReflection_QueryAllAttestersResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryAllAttestersResponse_messageType{} + +type fastReflection_QueryAllAttestersResponse_messageType struct{} + +func (x fastReflection_QueryAllAttestersResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryAllAttestersResponse)(nil) +} +func (x fastReflection_QueryAllAttestersResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryAllAttestersResponse) +} +func (x fastReflection_QueryAllAttestersResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAllAttestersResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryAllAttestersResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAllAttestersResponse +} + +// 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_QueryAllAttestersResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryAllAttestersResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryAllAttestersResponse) New() protoreflect.Message { + return new(fastReflection_QueryAllAttestersResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryAllAttestersResponse) Interface() protoreflect.ProtoMessage { + return (*QueryAllAttestersResponse)(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_QueryAllAttestersResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.Attesters) != 0 { + value := protoreflect.ValueOfList(&_QueryAllAttestersResponse_1_list{list: &x.Attesters}) + if !f(fd_QueryAllAttestersResponse_attesters, value) { + return + } + } + if x.Pagination != nil { + value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + if !f(fd_QueryAllAttestersResponse_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_QueryAllAttestersResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.QueryAllAttestersResponse.attesters": + return len(x.Attesters) != 0 + case "circle.cctp.v1.QueryAllAttestersResponse.pagination": + return x.Pagination != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryAllAttestersResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryAllAttestersResponse 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_QueryAllAttestersResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.QueryAllAttestersResponse.attesters": + x.Attesters = nil + case "circle.cctp.v1.QueryAllAttestersResponse.pagination": + x.Pagination = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryAllAttestersResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryAllAttestersResponse 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_QueryAllAttestersResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.QueryAllAttestersResponse.attesters": + if len(x.Attesters) == 0 { + return protoreflect.ValueOfList(&_QueryAllAttestersResponse_1_list{}) + } + listValue := &_QueryAllAttestersResponse_1_list{list: &x.Attesters} + return protoreflect.ValueOfList(listValue) + case "circle.cctp.v1.QueryAllAttestersResponse.pagination": + value := x.Pagination + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryAllAttestersResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryAllAttestersResponse 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_QueryAllAttestersResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.QueryAllAttestersResponse.attesters": + lv := value.List() + clv := lv.(*_QueryAllAttestersResponse_1_list) + x.Attesters = *clv.list + case "circle.cctp.v1.QueryAllAttestersResponse.pagination": + x.Pagination = value.Message().Interface().(*v1beta1.PageResponse) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryAllAttestersResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryAllAttestersResponse 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_QueryAllAttestersResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.QueryAllAttestersResponse.attesters": + if x.Attesters == nil { + x.Attesters = []*Attester{} + } + value := &_QueryAllAttestersResponse_1_list{list: &x.Attesters} + return protoreflect.ValueOfList(value) + case "circle.cctp.v1.QueryAllAttestersResponse.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: circle.cctp.v1.QueryAllAttestersResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryAllAttestersResponse 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_QueryAllAttestersResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.QueryAllAttestersResponse.attesters": + list := []*Attester{} + return protoreflect.ValueOfList(&_QueryAllAttestersResponse_1_list{list: &list}) + case "circle.cctp.v1.QueryAllAttestersResponse.pagination": + m := new(v1beta1.PageResponse) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryAllAttestersResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryAllAttestersResponse 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_QueryAllAttestersResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.QueryAllAttestersResponse", 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_QueryAllAttestersResponse) 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_QueryAllAttestersResponse) 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_QueryAllAttestersResponse) 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_QueryAllAttestersResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryAllAttestersResponse) + 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.Attesters) > 0 { + for _, e := range x.Attesters { + 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().(*QueryAllAttestersResponse) + 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.Attesters) > 0 { + for iNdEx := len(x.Attesters) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.Attesters[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().(*QueryAllAttestersResponse) + 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: QueryAllAttestersResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAllAttestersResponse: 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 Attesters", 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.Attesters = append(x.Attesters, &Attester{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Attesters[len(x.Attesters)-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_QueryGetPerMessageBurnLimitRequest protoreflect.MessageDescriptor + fd_QueryGetPerMessageBurnLimitRequest_denom protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_query_proto_init() + md_QueryGetPerMessageBurnLimitRequest = File_circle_cctp_v1_query_proto.Messages().ByName("QueryGetPerMessageBurnLimitRequest") + fd_QueryGetPerMessageBurnLimitRequest_denom = md_QueryGetPerMessageBurnLimitRequest.Fields().ByName("denom") +} + +var _ protoreflect.Message = (*fastReflection_QueryGetPerMessageBurnLimitRequest)(nil) + +type fastReflection_QueryGetPerMessageBurnLimitRequest QueryGetPerMessageBurnLimitRequest + +func (x *QueryGetPerMessageBurnLimitRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryGetPerMessageBurnLimitRequest)(x) +} + +func (x *QueryGetPerMessageBurnLimitRequest) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_QueryGetPerMessageBurnLimitRequest_messageType fastReflection_QueryGetPerMessageBurnLimitRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryGetPerMessageBurnLimitRequest_messageType{} + +type fastReflection_QueryGetPerMessageBurnLimitRequest_messageType struct{} + +func (x fastReflection_QueryGetPerMessageBurnLimitRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryGetPerMessageBurnLimitRequest)(nil) +} +func (x fastReflection_QueryGetPerMessageBurnLimitRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryGetPerMessageBurnLimitRequest) +} +func (x fastReflection_QueryGetPerMessageBurnLimitRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGetPerMessageBurnLimitRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryGetPerMessageBurnLimitRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGetPerMessageBurnLimitRequest +} + +// 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_QueryGetPerMessageBurnLimitRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryGetPerMessageBurnLimitRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryGetPerMessageBurnLimitRequest) New() protoreflect.Message { + return new(fastReflection_QueryGetPerMessageBurnLimitRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryGetPerMessageBurnLimitRequest) Interface() protoreflect.ProtoMessage { + return (*QueryGetPerMessageBurnLimitRequest)(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_QueryGetPerMessageBurnLimitRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Denom != "" { + value := protoreflect.ValueOfString(x.Denom) + if !f(fd_QueryGetPerMessageBurnLimitRequest_denom, 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_QueryGetPerMessageBurnLimitRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.QueryGetPerMessageBurnLimitRequest.denom": + return x.Denom != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetPerMessageBurnLimitRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetPerMessageBurnLimitRequest 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_QueryGetPerMessageBurnLimitRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.QueryGetPerMessageBurnLimitRequest.denom": + x.Denom = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetPerMessageBurnLimitRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetPerMessageBurnLimitRequest 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_QueryGetPerMessageBurnLimitRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.QueryGetPerMessageBurnLimitRequest.denom": + value := x.Denom + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetPerMessageBurnLimitRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetPerMessageBurnLimitRequest 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_QueryGetPerMessageBurnLimitRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.QueryGetPerMessageBurnLimitRequest.denom": + x.Denom = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetPerMessageBurnLimitRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetPerMessageBurnLimitRequest 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_QueryGetPerMessageBurnLimitRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.QueryGetPerMessageBurnLimitRequest.denom": + panic(fmt.Errorf("field denom of message circle.cctp.v1.QueryGetPerMessageBurnLimitRequest is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetPerMessageBurnLimitRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetPerMessageBurnLimitRequest 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_QueryGetPerMessageBurnLimitRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.QueryGetPerMessageBurnLimitRequest.denom": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetPerMessageBurnLimitRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetPerMessageBurnLimitRequest 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_QueryGetPerMessageBurnLimitRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.QueryGetPerMessageBurnLimitRequest", 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_QueryGetPerMessageBurnLimitRequest) 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_QueryGetPerMessageBurnLimitRequest) 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_QueryGetPerMessageBurnLimitRequest) 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_QueryGetPerMessageBurnLimitRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryGetPerMessageBurnLimitRequest) + 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.Denom) + 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().(*QueryGetPerMessageBurnLimitRequest) + 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.Denom) > 0 { + i -= len(x.Denom) + copy(dAtA[i:], x.Denom) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Denom))) + 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().(*QueryGetPerMessageBurnLimitRequest) + 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: QueryGetPerMessageBurnLimitRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetPerMessageBurnLimitRequest: 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 Denom", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Denom = 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_QueryGetPerMessageBurnLimitResponse protoreflect.MessageDescriptor + fd_QueryGetPerMessageBurnLimitResponse_burn_limit protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_query_proto_init() + md_QueryGetPerMessageBurnLimitResponse = File_circle_cctp_v1_query_proto.Messages().ByName("QueryGetPerMessageBurnLimitResponse") + fd_QueryGetPerMessageBurnLimitResponse_burn_limit = md_QueryGetPerMessageBurnLimitResponse.Fields().ByName("burn_limit") +} + +var _ protoreflect.Message = (*fastReflection_QueryGetPerMessageBurnLimitResponse)(nil) + +type fastReflection_QueryGetPerMessageBurnLimitResponse QueryGetPerMessageBurnLimitResponse + +func (x *QueryGetPerMessageBurnLimitResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryGetPerMessageBurnLimitResponse)(x) +} + +func (x *QueryGetPerMessageBurnLimitResponse) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_QueryGetPerMessageBurnLimitResponse_messageType fastReflection_QueryGetPerMessageBurnLimitResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryGetPerMessageBurnLimitResponse_messageType{} + +type fastReflection_QueryGetPerMessageBurnLimitResponse_messageType struct{} + +func (x fastReflection_QueryGetPerMessageBurnLimitResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryGetPerMessageBurnLimitResponse)(nil) +} +func (x fastReflection_QueryGetPerMessageBurnLimitResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryGetPerMessageBurnLimitResponse) +} +func (x fastReflection_QueryGetPerMessageBurnLimitResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGetPerMessageBurnLimitResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryGetPerMessageBurnLimitResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGetPerMessageBurnLimitResponse +} + +// 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_QueryGetPerMessageBurnLimitResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryGetPerMessageBurnLimitResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryGetPerMessageBurnLimitResponse) New() protoreflect.Message { + return new(fastReflection_QueryGetPerMessageBurnLimitResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryGetPerMessageBurnLimitResponse) Interface() protoreflect.ProtoMessage { + return (*QueryGetPerMessageBurnLimitResponse)(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_QueryGetPerMessageBurnLimitResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.BurnLimit != nil { + value := protoreflect.ValueOfMessage(x.BurnLimit.ProtoReflect()) + if !f(fd_QueryGetPerMessageBurnLimitResponse_burn_limit, 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_QueryGetPerMessageBurnLimitResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.QueryGetPerMessageBurnLimitResponse.burn_limit": + return x.BurnLimit != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetPerMessageBurnLimitResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetPerMessageBurnLimitResponse 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_QueryGetPerMessageBurnLimitResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.QueryGetPerMessageBurnLimitResponse.burn_limit": + x.BurnLimit = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetPerMessageBurnLimitResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetPerMessageBurnLimitResponse 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_QueryGetPerMessageBurnLimitResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.QueryGetPerMessageBurnLimitResponse.burn_limit": + value := x.BurnLimit + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetPerMessageBurnLimitResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetPerMessageBurnLimitResponse 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_QueryGetPerMessageBurnLimitResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.QueryGetPerMessageBurnLimitResponse.burn_limit": + x.BurnLimit = value.Message().Interface().(*PerMessageBurnLimit) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetPerMessageBurnLimitResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetPerMessageBurnLimitResponse 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_QueryGetPerMessageBurnLimitResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.QueryGetPerMessageBurnLimitResponse.burn_limit": + if x.BurnLimit == nil { + x.BurnLimit = new(PerMessageBurnLimit) + } + return protoreflect.ValueOfMessage(x.BurnLimit.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetPerMessageBurnLimitResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetPerMessageBurnLimitResponse 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_QueryGetPerMessageBurnLimitResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.QueryGetPerMessageBurnLimitResponse.burn_limit": + m := new(PerMessageBurnLimit) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetPerMessageBurnLimitResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetPerMessageBurnLimitResponse 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_QueryGetPerMessageBurnLimitResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.QueryGetPerMessageBurnLimitResponse", 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_QueryGetPerMessageBurnLimitResponse) 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_QueryGetPerMessageBurnLimitResponse) 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_QueryGetPerMessageBurnLimitResponse) 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_QueryGetPerMessageBurnLimitResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryGetPerMessageBurnLimitResponse) + 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.BurnLimit != nil { + l = options.Size(x.BurnLimit) + 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().(*QueryGetPerMessageBurnLimitResponse) + 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.BurnLimit != nil { + encoded, err := options.Marshal(x.BurnLimit) + 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().(*QueryGetPerMessageBurnLimitResponse) + 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: QueryGetPerMessageBurnLimitResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetPerMessageBurnLimitResponse: 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 BurnLimit", 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.BurnLimit == nil { + x.BurnLimit = &PerMessageBurnLimit{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.BurnLimit); 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_QueryAllPerMessageBurnLimitsRequest protoreflect.MessageDescriptor + fd_QueryAllPerMessageBurnLimitsRequest_pagination protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_query_proto_init() + md_QueryAllPerMessageBurnLimitsRequest = File_circle_cctp_v1_query_proto.Messages().ByName("QueryAllPerMessageBurnLimitsRequest") + fd_QueryAllPerMessageBurnLimitsRequest_pagination = md_QueryAllPerMessageBurnLimitsRequest.Fields().ByName("pagination") +} + +var _ protoreflect.Message = (*fastReflection_QueryAllPerMessageBurnLimitsRequest)(nil) + +type fastReflection_QueryAllPerMessageBurnLimitsRequest QueryAllPerMessageBurnLimitsRequest + +func (x *QueryAllPerMessageBurnLimitsRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryAllPerMessageBurnLimitsRequest)(x) +} + +func (x *QueryAllPerMessageBurnLimitsRequest) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_QueryAllPerMessageBurnLimitsRequest_messageType fastReflection_QueryAllPerMessageBurnLimitsRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryAllPerMessageBurnLimitsRequest_messageType{} + +type fastReflection_QueryAllPerMessageBurnLimitsRequest_messageType struct{} + +func (x fastReflection_QueryAllPerMessageBurnLimitsRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryAllPerMessageBurnLimitsRequest)(nil) +} +func (x fastReflection_QueryAllPerMessageBurnLimitsRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryAllPerMessageBurnLimitsRequest) +} +func (x fastReflection_QueryAllPerMessageBurnLimitsRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAllPerMessageBurnLimitsRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryAllPerMessageBurnLimitsRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAllPerMessageBurnLimitsRequest +} + +// 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_QueryAllPerMessageBurnLimitsRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryAllPerMessageBurnLimitsRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryAllPerMessageBurnLimitsRequest) New() protoreflect.Message { + return new(fastReflection_QueryAllPerMessageBurnLimitsRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryAllPerMessageBurnLimitsRequest) Interface() protoreflect.ProtoMessage { + return (*QueryAllPerMessageBurnLimitsRequest)(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_QueryAllPerMessageBurnLimitsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Pagination != nil { + value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + if !f(fd_QueryAllPerMessageBurnLimitsRequest_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_QueryAllPerMessageBurnLimitsRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.QueryAllPerMessageBurnLimitsRequest.pagination": + return x.Pagination != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryAllPerMessageBurnLimitsRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryAllPerMessageBurnLimitsRequest 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_QueryAllPerMessageBurnLimitsRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.QueryAllPerMessageBurnLimitsRequest.pagination": + x.Pagination = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryAllPerMessageBurnLimitsRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryAllPerMessageBurnLimitsRequest 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_QueryAllPerMessageBurnLimitsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.QueryAllPerMessageBurnLimitsRequest.pagination": + value := x.Pagination + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryAllPerMessageBurnLimitsRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryAllPerMessageBurnLimitsRequest 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_QueryAllPerMessageBurnLimitsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.QueryAllPerMessageBurnLimitsRequest.pagination": + x.Pagination = value.Message().Interface().(*v1beta1.PageRequest) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryAllPerMessageBurnLimitsRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryAllPerMessageBurnLimitsRequest 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_QueryAllPerMessageBurnLimitsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.QueryAllPerMessageBurnLimitsRequest.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: circle.cctp.v1.QueryAllPerMessageBurnLimitsRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryAllPerMessageBurnLimitsRequest 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_QueryAllPerMessageBurnLimitsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.QueryAllPerMessageBurnLimitsRequest.pagination": + m := new(v1beta1.PageRequest) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryAllPerMessageBurnLimitsRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryAllPerMessageBurnLimitsRequest 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_QueryAllPerMessageBurnLimitsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.QueryAllPerMessageBurnLimitsRequest", 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_QueryAllPerMessageBurnLimitsRequest) 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_QueryAllPerMessageBurnLimitsRequest) 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_QueryAllPerMessageBurnLimitsRequest) 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_QueryAllPerMessageBurnLimitsRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryAllPerMessageBurnLimitsRequest) + 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().(*QueryAllPerMessageBurnLimitsRequest) + 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().(*QueryAllPerMessageBurnLimitsRequest) + 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: QueryAllPerMessageBurnLimitsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAllPerMessageBurnLimitsRequest: 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 = (*_QueryAllPerMessageBurnLimitsResponse_1_list)(nil) + +type _QueryAllPerMessageBurnLimitsResponse_1_list struct { + list *[]*PerMessageBurnLimit +} + +func (x *_QueryAllPerMessageBurnLimitsResponse_1_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_QueryAllPerMessageBurnLimitsResponse_1_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_QueryAllPerMessageBurnLimitsResponse_1_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*PerMessageBurnLimit) + (*x.list)[i] = concreteValue +} + +func (x *_QueryAllPerMessageBurnLimitsResponse_1_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*PerMessageBurnLimit) + *x.list = append(*x.list, concreteValue) +} + +func (x *_QueryAllPerMessageBurnLimitsResponse_1_list) AppendMutable() protoreflect.Value { + v := new(PerMessageBurnLimit) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryAllPerMessageBurnLimitsResponse_1_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_QueryAllPerMessageBurnLimitsResponse_1_list) NewElement() protoreflect.Value { + v := new(PerMessageBurnLimit) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryAllPerMessageBurnLimitsResponse_1_list) IsValid() bool { + return x.list != nil +} + +var ( + md_QueryAllPerMessageBurnLimitsResponse protoreflect.MessageDescriptor + fd_QueryAllPerMessageBurnLimitsResponse_burn_limits protoreflect.FieldDescriptor + fd_QueryAllPerMessageBurnLimitsResponse_pagination protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_query_proto_init() + md_QueryAllPerMessageBurnLimitsResponse = File_circle_cctp_v1_query_proto.Messages().ByName("QueryAllPerMessageBurnLimitsResponse") + fd_QueryAllPerMessageBurnLimitsResponse_burn_limits = md_QueryAllPerMessageBurnLimitsResponse.Fields().ByName("burn_limits") + fd_QueryAllPerMessageBurnLimitsResponse_pagination = md_QueryAllPerMessageBurnLimitsResponse.Fields().ByName("pagination") +} + +var _ protoreflect.Message = (*fastReflection_QueryAllPerMessageBurnLimitsResponse)(nil) + +type fastReflection_QueryAllPerMessageBurnLimitsResponse QueryAllPerMessageBurnLimitsResponse + +func (x *QueryAllPerMessageBurnLimitsResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryAllPerMessageBurnLimitsResponse)(x) +} + +func (x *QueryAllPerMessageBurnLimitsResponse) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_QueryAllPerMessageBurnLimitsResponse_messageType fastReflection_QueryAllPerMessageBurnLimitsResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryAllPerMessageBurnLimitsResponse_messageType{} + +type fastReflection_QueryAllPerMessageBurnLimitsResponse_messageType struct{} + +func (x fastReflection_QueryAllPerMessageBurnLimitsResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryAllPerMessageBurnLimitsResponse)(nil) +} +func (x fastReflection_QueryAllPerMessageBurnLimitsResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryAllPerMessageBurnLimitsResponse) +} +func (x fastReflection_QueryAllPerMessageBurnLimitsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAllPerMessageBurnLimitsResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryAllPerMessageBurnLimitsResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAllPerMessageBurnLimitsResponse +} + +// 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_QueryAllPerMessageBurnLimitsResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryAllPerMessageBurnLimitsResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryAllPerMessageBurnLimitsResponse) New() protoreflect.Message { + return new(fastReflection_QueryAllPerMessageBurnLimitsResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryAllPerMessageBurnLimitsResponse) Interface() protoreflect.ProtoMessage { + return (*QueryAllPerMessageBurnLimitsResponse)(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_QueryAllPerMessageBurnLimitsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.BurnLimits) != 0 { + value := protoreflect.ValueOfList(&_QueryAllPerMessageBurnLimitsResponse_1_list{list: &x.BurnLimits}) + if !f(fd_QueryAllPerMessageBurnLimitsResponse_burn_limits, value) { + return + } + } + if x.Pagination != nil { + value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + if !f(fd_QueryAllPerMessageBurnLimitsResponse_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_QueryAllPerMessageBurnLimitsResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.QueryAllPerMessageBurnLimitsResponse.burn_limits": + return len(x.BurnLimits) != 0 + case "circle.cctp.v1.QueryAllPerMessageBurnLimitsResponse.pagination": + return x.Pagination != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryAllPerMessageBurnLimitsResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryAllPerMessageBurnLimitsResponse 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_QueryAllPerMessageBurnLimitsResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.QueryAllPerMessageBurnLimitsResponse.burn_limits": + x.BurnLimits = nil + case "circle.cctp.v1.QueryAllPerMessageBurnLimitsResponse.pagination": + x.Pagination = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryAllPerMessageBurnLimitsResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryAllPerMessageBurnLimitsResponse 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_QueryAllPerMessageBurnLimitsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.QueryAllPerMessageBurnLimitsResponse.burn_limits": + if len(x.BurnLimits) == 0 { + return protoreflect.ValueOfList(&_QueryAllPerMessageBurnLimitsResponse_1_list{}) + } + listValue := &_QueryAllPerMessageBurnLimitsResponse_1_list{list: &x.BurnLimits} + return protoreflect.ValueOfList(listValue) + case "circle.cctp.v1.QueryAllPerMessageBurnLimitsResponse.pagination": + value := x.Pagination + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryAllPerMessageBurnLimitsResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryAllPerMessageBurnLimitsResponse 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_QueryAllPerMessageBurnLimitsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.QueryAllPerMessageBurnLimitsResponse.burn_limits": + lv := value.List() + clv := lv.(*_QueryAllPerMessageBurnLimitsResponse_1_list) + x.BurnLimits = *clv.list + case "circle.cctp.v1.QueryAllPerMessageBurnLimitsResponse.pagination": + x.Pagination = value.Message().Interface().(*v1beta1.PageResponse) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryAllPerMessageBurnLimitsResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryAllPerMessageBurnLimitsResponse 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_QueryAllPerMessageBurnLimitsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.QueryAllPerMessageBurnLimitsResponse.burn_limits": + if x.BurnLimits == nil { + x.BurnLimits = []*PerMessageBurnLimit{} + } + value := &_QueryAllPerMessageBurnLimitsResponse_1_list{list: &x.BurnLimits} + return protoreflect.ValueOfList(value) + case "circle.cctp.v1.QueryAllPerMessageBurnLimitsResponse.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: circle.cctp.v1.QueryAllPerMessageBurnLimitsResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryAllPerMessageBurnLimitsResponse 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_QueryAllPerMessageBurnLimitsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.QueryAllPerMessageBurnLimitsResponse.burn_limits": + list := []*PerMessageBurnLimit{} + return protoreflect.ValueOfList(&_QueryAllPerMessageBurnLimitsResponse_1_list{list: &list}) + case "circle.cctp.v1.QueryAllPerMessageBurnLimitsResponse.pagination": + m := new(v1beta1.PageResponse) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryAllPerMessageBurnLimitsResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryAllPerMessageBurnLimitsResponse 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_QueryAllPerMessageBurnLimitsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.QueryAllPerMessageBurnLimitsResponse", 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_QueryAllPerMessageBurnLimitsResponse) 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_QueryAllPerMessageBurnLimitsResponse) 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_QueryAllPerMessageBurnLimitsResponse) 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_QueryAllPerMessageBurnLimitsResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryAllPerMessageBurnLimitsResponse) + 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.BurnLimits) > 0 { + for _, e := range x.BurnLimits { + 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().(*QueryAllPerMessageBurnLimitsResponse) + 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.BurnLimits) > 0 { + for iNdEx := len(x.BurnLimits) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.BurnLimits[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().(*QueryAllPerMessageBurnLimitsResponse) + 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: QueryAllPerMessageBurnLimitsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAllPerMessageBurnLimitsResponse: 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 BurnLimits", 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.BurnLimits = append(x.BurnLimits, &PerMessageBurnLimit{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.BurnLimits[len(x.BurnLimits)-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_QueryGetBurningAndMintingPausedRequest protoreflect.MessageDescriptor +) + +func init() { + file_circle_cctp_v1_query_proto_init() + md_QueryGetBurningAndMintingPausedRequest = File_circle_cctp_v1_query_proto.Messages().ByName("QueryGetBurningAndMintingPausedRequest") +} + +var _ protoreflect.Message = (*fastReflection_QueryGetBurningAndMintingPausedRequest)(nil) + +type fastReflection_QueryGetBurningAndMintingPausedRequest QueryGetBurningAndMintingPausedRequest + +func (x *QueryGetBurningAndMintingPausedRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryGetBurningAndMintingPausedRequest)(x) +} + +func (x *QueryGetBurningAndMintingPausedRequest) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_QueryGetBurningAndMintingPausedRequest_messageType fastReflection_QueryGetBurningAndMintingPausedRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryGetBurningAndMintingPausedRequest_messageType{} + +type fastReflection_QueryGetBurningAndMintingPausedRequest_messageType struct{} + +func (x fastReflection_QueryGetBurningAndMintingPausedRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryGetBurningAndMintingPausedRequest)(nil) +} +func (x fastReflection_QueryGetBurningAndMintingPausedRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryGetBurningAndMintingPausedRequest) +} +func (x fastReflection_QueryGetBurningAndMintingPausedRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGetBurningAndMintingPausedRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryGetBurningAndMintingPausedRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGetBurningAndMintingPausedRequest +} + +// 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_QueryGetBurningAndMintingPausedRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryGetBurningAndMintingPausedRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryGetBurningAndMintingPausedRequest) New() protoreflect.Message { + return new(fastReflection_QueryGetBurningAndMintingPausedRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryGetBurningAndMintingPausedRequest) Interface() protoreflect.ProtoMessage { + return (*QueryGetBurningAndMintingPausedRequest)(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_QueryGetBurningAndMintingPausedRequest) 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_QueryGetBurningAndMintingPausedRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetBurningAndMintingPausedRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetBurningAndMintingPausedRequest 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_QueryGetBurningAndMintingPausedRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetBurningAndMintingPausedRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetBurningAndMintingPausedRequest 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_QueryGetBurningAndMintingPausedRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetBurningAndMintingPausedRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetBurningAndMintingPausedRequest 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_QueryGetBurningAndMintingPausedRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetBurningAndMintingPausedRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetBurningAndMintingPausedRequest 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_QueryGetBurningAndMintingPausedRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetBurningAndMintingPausedRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetBurningAndMintingPausedRequest 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_QueryGetBurningAndMintingPausedRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetBurningAndMintingPausedRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetBurningAndMintingPausedRequest 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_QueryGetBurningAndMintingPausedRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.QueryGetBurningAndMintingPausedRequest", 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_QueryGetBurningAndMintingPausedRequest) 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_QueryGetBurningAndMintingPausedRequest) 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_QueryGetBurningAndMintingPausedRequest) 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_QueryGetBurningAndMintingPausedRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryGetBurningAndMintingPausedRequest) + 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().(*QueryGetBurningAndMintingPausedRequest) + 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().(*QueryGetBurningAndMintingPausedRequest) + 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: QueryGetBurningAndMintingPausedRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetBurningAndMintingPausedRequest: 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_QueryGetBurningAndMintingPausedResponse protoreflect.MessageDescriptor + fd_QueryGetBurningAndMintingPausedResponse_paused protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_query_proto_init() + md_QueryGetBurningAndMintingPausedResponse = File_circle_cctp_v1_query_proto.Messages().ByName("QueryGetBurningAndMintingPausedResponse") + fd_QueryGetBurningAndMintingPausedResponse_paused = md_QueryGetBurningAndMintingPausedResponse.Fields().ByName("paused") +} + +var _ protoreflect.Message = (*fastReflection_QueryGetBurningAndMintingPausedResponse)(nil) + +type fastReflection_QueryGetBurningAndMintingPausedResponse QueryGetBurningAndMintingPausedResponse + +func (x *QueryGetBurningAndMintingPausedResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryGetBurningAndMintingPausedResponse)(x) +} + +func (x *QueryGetBurningAndMintingPausedResponse) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_QueryGetBurningAndMintingPausedResponse_messageType fastReflection_QueryGetBurningAndMintingPausedResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryGetBurningAndMintingPausedResponse_messageType{} + +type fastReflection_QueryGetBurningAndMintingPausedResponse_messageType struct{} + +func (x fastReflection_QueryGetBurningAndMintingPausedResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryGetBurningAndMintingPausedResponse)(nil) +} +func (x fastReflection_QueryGetBurningAndMintingPausedResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryGetBurningAndMintingPausedResponse) +} +func (x fastReflection_QueryGetBurningAndMintingPausedResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGetBurningAndMintingPausedResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryGetBurningAndMintingPausedResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGetBurningAndMintingPausedResponse +} + +// 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_QueryGetBurningAndMintingPausedResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryGetBurningAndMintingPausedResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryGetBurningAndMintingPausedResponse) New() protoreflect.Message { + return new(fastReflection_QueryGetBurningAndMintingPausedResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryGetBurningAndMintingPausedResponse) Interface() protoreflect.ProtoMessage { + return (*QueryGetBurningAndMintingPausedResponse)(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_QueryGetBurningAndMintingPausedResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Paused != nil { + value := protoreflect.ValueOfMessage(x.Paused.ProtoReflect()) + if !f(fd_QueryGetBurningAndMintingPausedResponse_paused, 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_QueryGetBurningAndMintingPausedResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.QueryGetBurningAndMintingPausedResponse.paused": + return x.Paused != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetBurningAndMintingPausedResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetBurningAndMintingPausedResponse 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_QueryGetBurningAndMintingPausedResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.QueryGetBurningAndMintingPausedResponse.paused": + x.Paused = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetBurningAndMintingPausedResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetBurningAndMintingPausedResponse 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_QueryGetBurningAndMintingPausedResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.QueryGetBurningAndMintingPausedResponse.paused": + value := x.Paused + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetBurningAndMintingPausedResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetBurningAndMintingPausedResponse 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_QueryGetBurningAndMintingPausedResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.QueryGetBurningAndMintingPausedResponse.paused": + x.Paused = value.Message().Interface().(*BurningAndMintingPaused) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetBurningAndMintingPausedResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetBurningAndMintingPausedResponse 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_QueryGetBurningAndMintingPausedResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.QueryGetBurningAndMintingPausedResponse.paused": + if x.Paused == nil { + x.Paused = new(BurningAndMintingPaused) + } + return protoreflect.ValueOfMessage(x.Paused.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetBurningAndMintingPausedResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetBurningAndMintingPausedResponse 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_QueryGetBurningAndMintingPausedResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.QueryGetBurningAndMintingPausedResponse.paused": + m := new(BurningAndMintingPaused) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetBurningAndMintingPausedResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetBurningAndMintingPausedResponse 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_QueryGetBurningAndMintingPausedResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.QueryGetBurningAndMintingPausedResponse", 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_QueryGetBurningAndMintingPausedResponse) 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_QueryGetBurningAndMintingPausedResponse) 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_QueryGetBurningAndMintingPausedResponse) 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_QueryGetBurningAndMintingPausedResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryGetBurningAndMintingPausedResponse) + 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.Paused != nil { + l = options.Size(x.Paused) + 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().(*QueryGetBurningAndMintingPausedResponse) + 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.Paused != nil { + encoded, err := options.Marshal(x.Paused) + 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().(*QueryGetBurningAndMintingPausedResponse) + 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: QueryGetBurningAndMintingPausedResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetBurningAndMintingPausedResponse: 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 Paused", 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.Paused == nil { + x.Paused = &BurningAndMintingPaused{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Paused); 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_QueryGetSendingAndReceivingMessagesPausedRequest protoreflect.MessageDescriptor +) + +func init() { + file_circle_cctp_v1_query_proto_init() + md_QueryGetSendingAndReceivingMessagesPausedRequest = File_circle_cctp_v1_query_proto.Messages().ByName("QueryGetSendingAndReceivingMessagesPausedRequest") +} + +var _ protoreflect.Message = (*fastReflection_QueryGetSendingAndReceivingMessagesPausedRequest)(nil) + +type fastReflection_QueryGetSendingAndReceivingMessagesPausedRequest QueryGetSendingAndReceivingMessagesPausedRequest + +func (x *QueryGetSendingAndReceivingMessagesPausedRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryGetSendingAndReceivingMessagesPausedRequest)(x) +} + +func (x *QueryGetSendingAndReceivingMessagesPausedRequest) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_QueryGetSendingAndReceivingMessagesPausedRequest_messageType fastReflection_QueryGetSendingAndReceivingMessagesPausedRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryGetSendingAndReceivingMessagesPausedRequest_messageType{} + +type fastReflection_QueryGetSendingAndReceivingMessagesPausedRequest_messageType struct{} + +func (x fastReflection_QueryGetSendingAndReceivingMessagesPausedRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryGetSendingAndReceivingMessagesPausedRequest)(nil) +} +func (x fastReflection_QueryGetSendingAndReceivingMessagesPausedRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryGetSendingAndReceivingMessagesPausedRequest) +} +func (x fastReflection_QueryGetSendingAndReceivingMessagesPausedRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGetSendingAndReceivingMessagesPausedRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryGetSendingAndReceivingMessagesPausedRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGetSendingAndReceivingMessagesPausedRequest +} + +// 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_QueryGetSendingAndReceivingMessagesPausedRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryGetSendingAndReceivingMessagesPausedRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryGetSendingAndReceivingMessagesPausedRequest) New() protoreflect.Message { + return new(fastReflection_QueryGetSendingAndReceivingMessagesPausedRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryGetSendingAndReceivingMessagesPausedRequest) Interface() protoreflect.ProtoMessage { + return (*QueryGetSendingAndReceivingMessagesPausedRequest)(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_QueryGetSendingAndReceivingMessagesPausedRequest) 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_QueryGetSendingAndReceivingMessagesPausedRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetSendingAndReceivingMessagesPausedRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetSendingAndReceivingMessagesPausedRequest 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_QueryGetSendingAndReceivingMessagesPausedRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetSendingAndReceivingMessagesPausedRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetSendingAndReceivingMessagesPausedRequest 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_QueryGetSendingAndReceivingMessagesPausedRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetSendingAndReceivingMessagesPausedRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetSendingAndReceivingMessagesPausedRequest 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_QueryGetSendingAndReceivingMessagesPausedRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetSendingAndReceivingMessagesPausedRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetSendingAndReceivingMessagesPausedRequest 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_QueryGetSendingAndReceivingMessagesPausedRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetSendingAndReceivingMessagesPausedRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetSendingAndReceivingMessagesPausedRequest 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_QueryGetSendingAndReceivingMessagesPausedRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetSendingAndReceivingMessagesPausedRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetSendingAndReceivingMessagesPausedRequest 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_QueryGetSendingAndReceivingMessagesPausedRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.QueryGetSendingAndReceivingMessagesPausedRequest", 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_QueryGetSendingAndReceivingMessagesPausedRequest) 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_QueryGetSendingAndReceivingMessagesPausedRequest) 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_QueryGetSendingAndReceivingMessagesPausedRequest) 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_QueryGetSendingAndReceivingMessagesPausedRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryGetSendingAndReceivingMessagesPausedRequest) + 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().(*QueryGetSendingAndReceivingMessagesPausedRequest) + 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().(*QueryGetSendingAndReceivingMessagesPausedRequest) + 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: QueryGetSendingAndReceivingMessagesPausedRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetSendingAndReceivingMessagesPausedRequest: 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_QueryGetSendingAndReceivingMessagesPausedResponse protoreflect.MessageDescriptor + fd_QueryGetSendingAndReceivingMessagesPausedResponse_paused protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_query_proto_init() + md_QueryGetSendingAndReceivingMessagesPausedResponse = File_circle_cctp_v1_query_proto.Messages().ByName("QueryGetSendingAndReceivingMessagesPausedResponse") + fd_QueryGetSendingAndReceivingMessagesPausedResponse_paused = md_QueryGetSendingAndReceivingMessagesPausedResponse.Fields().ByName("paused") +} + +var _ protoreflect.Message = (*fastReflection_QueryGetSendingAndReceivingMessagesPausedResponse)(nil) + +type fastReflection_QueryGetSendingAndReceivingMessagesPausedResponse QueryGetSendingAndReceivingMessagesPausedResponse + +func (x *QueryGetSendingAndReceivingMessagesPausedResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryGetSendingAndReceivingMessagesPausedResponse)(x) +} + +func (x *QueryGetSendingAndReceivingMessagesPausedResponse) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_QueryGetSendingAndReceivingMessagesPausedResponse_messageType fastReflection_QueryGetSendingAndReceivingMessagesPausedResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryGetSendingAndReceivingMessagesPausedResponse_messageType{} + +type fastReflection_QueryGetSendingAndReceivingMessagesPausedResponse_messageType struct{} + +func (x fastReflection_QueryGetSendingAndReceivingMessagesPausedResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryGetSendingAndReceivingMessagesPausedResponse)(nil) +} +func (x fastReflection_QueryGetSendingAndReceivingMessagesPausedResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryGetSendingAndReceivingMessagesPausedResponse) +} +func (x fastReflection_QueryGetSendingAndReceivingMessagesPausedResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGetSendingAndReceivingMessagesPausedResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryGetSendingAndReceivingMessagesPausedResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGetSendingAndReceivingMessagesPausedResponse +} + +// 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_QueryGetSendingAndReceivingMessagesPausedResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryGetSendingAndReceivingMessagesPausedResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryGetSendingAndReceivingMessagesPausedResponse) New() protoreflect.Message { + return new(fastReflection_QueryGetSendingAndReceivingMessagesPausedResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryGetSendingAndReceivingMessagesPausedResponse) Interface() protoreflect.ProtoMessage { + return (*QueryGetSendingAndReceivingMessagesPausedResponse)(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_QueryGetSendingAndReceivingMessagesPausedResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Paused != nil { + value := protoreflect.ValueOfMessage(x.Paused.ProtoReflect()) + if !f(fd_QueryGetSendingAndReceivingMessagesPausedResponse_paused, 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_QueryGetSendingAndReceivingMessagesPausedResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.QueryGetSendingAndReceivingMessagesPausedResponse.paused": + return x.Paused != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetSendingAndReceivingMessagesPausedResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetSendingAndReceivingMessagesPausedResponse 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_QueryGetSendingAndReceivingMessagesPausedResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.QueryGetSendingAndReceivingMessagesPausedResponse.paused": + x.Paused = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetSendingAndReceivingMessagesPausedResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetSendingAndReceivingMessagesPausedResponse 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_QueryGetSendingAndReceivingMessagesPausedResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.QueryGetSendingAndReceivingMessagesPausedResponse.paused": + value := x.Paused + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetSendingAndReceivingMessagesPausedResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetSendingAndReceivingMessagesPausedResponse 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_QueryGetSendingAndReceivingMessagesPausedResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.QueryGetSendingAndReceivingMessagesPausedResponse.paused": + x.Paused = value.Message().Interface().(*SendingAndReceivingMessagesPaused) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetSendingAndReceivingMessagesPausedResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetSendingAndReceivingMessagesPausedResponse 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_QueryGetSendingAndReceivingMessagesPausedResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.QueryGetSendingAndReceivingMessagesPausedResponse.paused": + if x.Paused == nil { + x.Paused = new(SendingAndReceivingMessagesPaused) + } + return protoreflect.ValueOfMessage(x.Paused.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetSendingAndReceivingMessagesPausedResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetSendingAndReceivingMessagesPausedResponse 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_QueryGetSendingAndReceivingMessagesPausedResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.QueryGetSendingAndReceivingMessagesPausedResponse.paused": + m := new(SendingAndReceivingMessagesPaused) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetSendingAndReceivingMessagesPausedResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetSendingAndReceivingMessagesPausedResponse 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_QueryGetSendingAndReceivingMessagesPausedResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.QueryGetSendingAndReceivingMessagesPausedResponse", 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_QueryGetSendingAndReceivingMessagesPausedResponse) 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_QueryGetSendingAndReceivingMessagesPausedResponse) 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_QueryGetSendingAndReceivingMessagesPausedResponse) 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_QueryGetSendingAndReceivingMessagesPausedResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryGetSendingAndReceivingMessagesPausedResponse) + 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.Paused != nil { + l = options.Size(x.Paused) + 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().(*QueryGetSendingAndReceivingMessagesPausedResponse) + 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.Paused != nil { + encoded, err := options.Marshal(x.Paused) + 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().(*QueryGetSendingAndReceivingMessagesPausedResponse) + 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: QueryGetSendingAndReceivingMessagesPausedResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetSendingAndReceivingMessagesPausedResponse: 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 Paused", 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.Paused == nil { + x.Paused = &SendingAndReceivingMessagesPaused{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Paused); 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_QueryGetMaxMessageBodySizeRequest protoreflect.MessageDescriptor +) + +func init() { + file_circle_cctp_v1_query_proto_init() + md_QueryGetMaxMessageBodySizeRequest = File_circle_cctp_v1_query_proto.Messages().ByName("QueryGetMaxMessageBodySizeRequest") +} + +var _ protoreflect.Message = (*fastReflection_QueryGetMaxMessageBodySizeRequest)(nil) + +type fastReflection_QueryGetMaxMessageBodySizeRequest QueryGetMaxMessageBodySizeRequest + +func (x *QueryGetMaxMessageBodySizeRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryGetMaxMessageBodySizeRequest)(x) +} + +func (x *QueryGetMaxMessageBodySizeRequest) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_QueryGetMaxMessageBodySizeRequest_messageType fastReflection_QueryGetMaxMessageBodySizeRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryGetMaxMessageBodySizeRequest_messageType{} + +type fastReflection_QueryGetMaxMessageBodySizeRequest_messageType struct{} + +func (x fastReflection_QueryGetMaxMessageBodySizeRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryGetMaxMessageBodySizeRequest)(nil) +} +func (x fastReflection_QueryGetMaxMessageBodySizeRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryGetMaxMessageBodySizeRequest) +} +func (x fastReflection_QueryGetMaxMessageBodySizeRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGetMaxMessageBodySizeRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryGetMaxMessageBodySizeRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGetMaxMessageBodySizeRequest +} + +// 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_QueryGetMaxMessageBodySizeRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryGetMaxMessageBodySizeRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryGetMaxMessageBodySizeRequest) New() protoreflect.Message { + return new(fastReflection_QueryGetMaxMessageBodySizeRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryGetMaxMessageBodySizeRequest) Interface() protoreflect.ProtoMessage { + return (*QueryGetMaxMessageBodySizeRequest)(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_QueryGetMaxMessageBodySizeRequest) 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_QueryGetMaxMessageBodySizeRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetMaxMessageBodySizeRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetMaxMessageBodySizeRequest 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_QueryGetMaxMessageBodySizeRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetMaxMessageBodySizeRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetMaxMessageBodySizeRequest 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_QueryGetMaxMessageBodySizeRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetMaxMessageBodySizeRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetMaxMessageBodySizeRequest 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_QueryGetMaxMessageBodySizeRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetMaxMessageBodySizeRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetMaxMessageBodySizeRequest 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_QueryGetMaxMessageBodySizeRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetMaxMessageBodySizeRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetMaxMessageBodySizeRequest 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_QueryGetMaxMessageBodySizeRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetMaxMessageBodySizeRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetMaxMessageBodySizeRequest 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_QueryGetMaxMessageBodySizeRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.QueryGetMaxMessageBodySizeRequest", 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_QueryGetMaxMessageBodySizeRequest) 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_QueryGetMaxMessageBodySizeRequest) 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_QueryGetMaxMessageBodySizeRequest) 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_QueryGetMaxMessageBodySizeRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryGetMaxMessageBodySizeRequest) + 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().(*QueryGetMaxMessageBodySizeRequest) + 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().(*QueryGetMaxMessageBodySizeRequest) + 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: QueryGetMaxMessageBodySizeRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetMaxMessageBodySizeRequest: 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_QueryGetMaxMessageBodySizeResponse protoreflect.MessageDescriptor + fd_QueryGetMaxMessageBodySizeResponse_amount protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_query_proto_init() + md_QueryGetMaxMessageBodySizeResponse = File_circle_cctp_v1_query_proto.Messages().ByName("QueryGetMaxMessageBodySizeResponse") + fd_QueryGetMaxMessageBodySizeResponse_amount = md_QueryGetMaxMessageBodySizeResponse.Fields().ByName("amount") +} + +var _ protoreflect.Message = (*fastReflection_QueryGetMaxMessageBodySizeResponse)(nil) + +type fastReflection_QueryGetMaxMessageBodySizeResponse QueryGetMaxMessageBodySizeResponse + +func (x *QueryGetMaxMessageBodySizeResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryGetMaxMessageBodySizeResponse)(x) +} + +func (x *QueryGetMaxMessageBodySizeResponse) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_QueryGetMaxMessageBodySizeResponse_messageType fastReflection_QueryGetMaxMessageBodySizeResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryGetMaxMessageBodySizeResponse_messageType{} + +type fastReflection_QueryGetMaxMessageBodySizeResponse_messageType struct{} + +func (x fastReflection_QueryGetMaxMessageBodySizeResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryGetMaxMessageBodySizeResponse)(nil) +} +func (x fastReflection_QueryGetMaxMessageBodySizeResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryGetMaxMessageBodySizeResponse) +} +func (x fastReflection_QueryGetMaxMessageBodySizeResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGetMaxMessageBodySizeResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryGetMaxMessageBodySizeResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGetMaxMessageBodySizeResponse +} + +// 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_QueryGetMaxMessageBodySizeResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryGetMaxMessageBodySizeResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryGetMaxMessageBodySizeResponse) New() protoreflect.Message { + return new(fastReflection_QueryGetMaxMessageBodySizeResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryGetMaxMessageBodySizeResponse) Interface() protoreflect.ProtoMessage { + return (*QueryGetMaxMessageBodySizeResponse)(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_QueryGetMaxMessageBodySizeResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Amount != nil { + value := protoreflect.ValueOfMessage(x.Amount.ProtoReflect()) + if !f(fd_QueryGetMaxMessageBodySizeResponse_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_QueryGetMaxMessageBodySizeResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.QueryGetMaxMessageBodySizeResponse.amount": + return x.Amount != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetMaxMessageBodySizeResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetMaxMessageBodySizeResponse 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_QueryGetMaxMessageBodySizeResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.QueryGetMaxMessageBodySizeResponse.amount": + x.Amount = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetMaxMessageBodySizeResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetMaxMessageBodySizeResponse 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_QueryGetMaxMessageBodySizeResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.QueryGetMaxMessageBodySizeResponse.amount": + value := x.Amount + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetMaxMessageBodySizeResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetMaxMessageBodySizeResponse 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_QueryGetMaxMessageBodySizeResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.QueryGetMaxMessageBodySizeResponse.amount": + x.Amount = value.Message().Interface().(*MaxMessageBodySize) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetMaxMessageBodySizeResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetMaxMessageBodySizeResponse 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_QueryGetMaxMessageBodySizeResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.QueryGetMaxMessageBodySizeResponse.amount": + if x.Amount == nil { + x.Amount = new(MaxMessageBodySize) + } + return protoreflect.ValueOfMessage(x.Amount.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetMaxMessageBodySizeResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetMaxMessageBodySizeResponse 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_QueryGetMaxMessageBodySizeResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.QueryGetMaxMessageBodySizeResponse.amount": + m := new(MaxMessageBodySize) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetMaxMessageBodySizeResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetMaxMessageBodySizeResponse 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_QueryGetMaxMessageBodySizeResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.QueryGetMaxMessageBodySizeResponse", 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_QueryGetMaxMessageBodySizeResponse) 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_QueryGetMaxMessageBodySizeResponse) 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_QueryGetMaxMessageBodySizeResponse) 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_QueryGetMaxMessageBodySizeResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryGetMaxMessageBodySizeResponse) + 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.Amount != nil { + l = options.Size(x.Amount) + 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().(*QueryGetMaxMessageBodySizeResponse) + 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.Amount != nil { + encoded, err := options.Marshal(x.Amount) + 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().(*QueryGetMaxMessageBodySizeResponse) + 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: QueryGetMaxMessageBodySizeResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetMaxMessageBodySizeResponse: 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 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.Amount == nil { + x.Amount = &MaxMessageBodySize{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Amount); 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_QueryGetNextAvailableNonceRequest protoreflect.MessageDescriptor +) + +func init() { + file_circle_cctp_v1_query_proto_init() + md_QueryGetNextAvailableNonceRequest = File_circle_cctp_v1_query_proto.Messages().ByName("QueryGetNextAvailableNonceRequest") +} + +var _ protoreflect.Message = (*fastReflection_QueryGetNextAvailableNonceRequest)(nil) + +type fastReflection_QueryGetNextAvailableNonceRequest QueryGetNextAvailableNonceRequest + +func (x *QueryGetNextAvailableNonceRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryGetNextAvailableNonceRequest)(x) +} + +func (x *QueryGetNextAvailableNonceRequest) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_QueryGetNextAvailableNonceRequest_messageType fastReflection_QueryGetNextAvailableNonceRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryGetNextAvailableNonceRequest_messageType{} + +type fastReflection_QueryGetNextAvailableNonceRequest_messageType struct{} + +func (x fastReflection_QueryGetNextAvailableNonceRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryGetNextAvailableNonceRequest)(nil) +} +func (x fastReflection_QueryGetNextAvailableNonceRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryGetNextAvailableNonceRequest) +} +func (x fastReflection_QueryGetNextAvailableNonceRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGetNextAvailableNonceRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryGetNextAvailableNonceRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGetNextAvailableNonceRequest +} + +// 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_QueryGetNextAvailableNonceRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryGetNextAvailableNonceRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryGetNextAvailableNonceRequest) New() protoreflect.Message { + return new(fastReflection_QueryGetNextAvailableNonceRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryGetNextAvailableNonceRequest) Interface() protoreflect.ProtoMessage { + return (*QueryGetNextAvailableNonceRequest)(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_QueryGetNextAvailableNonceRequest) 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_QueryGetNextAvailableNonceRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetNextAvailableNonceRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetNextAvailableNonceRequest 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_QueryGetNextAvailableNonceRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetNextAvailableNonceRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetNextAvailableNonceRequest 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_QueryGetNextAvailableNonceRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetNextAvailableNonceRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetNextAvailableNonceRequest 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_QueryGetNextAvailableNonceRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetNextAvailableNonceRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetNextAvailableNonceRequest 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_QueryGetNextAvailableNonceRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetNextAvailableNonceRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetNextAvailableNonceRequest 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_QueryGetNextAvailableNonceRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetNextAvailableNonceRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetNextAvailableNonceRequest 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_QueryGetNextAvailableNonceRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.QueryGetNextAvailableNonceRequest", 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_QueryGetNextAvailableNonceRequest) 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_QueryGetNextAvailableNonceRequest) 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_QueryGetNextAvailableNonceRequest) 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_QueryGetNextAvailableNonceRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryGetNextAvailableNonceRequest) + 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().(*QueryGetNextAvailableNonceRequest) + 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().(*QueryGetNextAvailableNonceRequest) + 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: QueryGetNextAvailableNonceRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetNextAvailableNonceRequest: 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_QueryGetNextAvailableNonceResponse protoreflect.MessageDescriptor + fd_QueryGetNextAvailableNonceResponse_nonce protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_query_proto_init() + md_QueryGetNextAvailableNonceResponse = File_circle_cctp_v1_query_proto.Messages().ByName("QueryGetNextAvailableNonceResponse") + fd_QueryGetNextAvailableNonceResponse_nonce = md_QueryGetNextAvailableNonceResponse.Fields().ByName("nonce") +} + +var _ protoreflect.Message = (*fastReflection_QueryGetNextAvailableNonceResponse)(nil) + +type fastReflection_QueryGetNextAvailableNonceResponse QueryGetNextAvailableNonceResponse + +func (x *QueryGetNextAvailableNonceResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryGetNextAvailableNonceResponse)(x) +} + +func (x *QueryGetNextAvailableNonceResponse) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_QueryGetNextAvailableNonceResponse_messageType fastReflection_QueryGetNextAvailableNonceResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryGetNextAvailableNonceResponse_messageType{} + +type fastReflection_QueryGetNextAvailableNonceResponse_messageType struct{} + +func (x fastReflection_QueryGetNextAvailableNonceResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryGetNextAvailableNonceResponse)(nil) +} +func (x fastReflection_QueryGetNextAvailableNonceResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryGetNextAvailableNonceResponse) +} +func (x fastReflection_QueryGetNextAvailableNonceResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGetNextAvailableNonceResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryGetNextAvailableNonceResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGetNextAvailableNonceResponse +} + +// 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_QueryGetNextAvailableNonceResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryGetNextAvailableNonceResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryGetNextAvailableNonceResponse) New() protoreflect.Message { + return new(fastReflection_QueryGetNextAvailableNonceResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryGetNextAvailableNonceResponse) Interface() protoreflect.ProtoMessage { + return (*QueryGetNextAvailableNonceResponse)(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_QueryGetNextAvailableNonceResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Nonce != nil { + value := protoreflect.ValueOfMessage(x.Nonce.ProtoReflect()) + if !f(fd_QueryGetNextAvailableNonceResponse_nonce, 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_QueryGetNextAvailableNonceResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.QueryGetNextAvailableNonceResponse.nonce": + return x.Nonce != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetNextAvailableNonceResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetNextAvailableNonceResponse 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_QueryGetNextAvailableNonceResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.QueryGetNextAvailableNonceResponse.nonce": + x.Nonce = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetNextAvailableNonceResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetNextAvailableNonceResponse 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_QueryGetNextAvailableNonceResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.QueryGetNextAvailableNonceResponse.nonce": + value := x.Nonce + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetNextAvailableNonceResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetNextAvailableNonceResponse 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_QueryGetNextAvailableNonceResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.QueryGetNextAvailableNonceResponse.nonce": + x.Nonce = value.Message().Interface().(*Nonce) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetNextAvailableNonceResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetNextAvailableNonceResponse 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_QueryGetNextAvailableNonceResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.QueryGetNextAvailableNonceResponse.nonce": + if x.Nonce == nil { + x.Nonce = new(Nonce) + } + return protoreflect.ValueOfMessage(x.Nonce.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetNextAvailableNonceResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetNextAvailableNonceResponse 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_QueryGetNextAvailableNonceResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.QueryGetNextAvailableNonceResponse.nonce": + m := new(Nonce) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetNextAvailableNonceResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetNextAvailableNonceResponse 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_QueryGetNextAvailableNonceResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.QueryGetNextAvailableNonceResponse", 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_QueryGetNextAvailableNonceResponse) 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_QueryGetNextAvailableNonceResponse) 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_QueryGetNextAvailableNonceResponse) 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_QueryGetNextAvailableNonceResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryGetNextAvailableNonceResponse) + 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 != nil { + l = options.Size(x.Nonce) + 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().(*QueryGetNextAvailableNonceResponse) + 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.Nonce != nil { + encoded, err := options.Marshal(x.Nonce) + 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().(*QueryGetNextAvailableNonceResponse) + 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: QueryGetNextAvailableNonceResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetNextAvailableNonceResponse: 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 Nonce", 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.Nonce == nil { + x.Nonce = &Nonce{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Nonce); 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_QueryGetSignatureThresholdRequest protoreflect.MessageDescriptor +) + +func init() { + file_circle_cctp_v1_query_proto_init() + md_QueryGetSignatureThresholdRequest = File_circle_cctp_v1_query_proto.Messages().ByName("QueryGetSignatureThresholdRequest") +} + +var _ protoreflect.Message = (*fastReflection_QueryGetSignatureThresholdRequest)(nil) + +type fastReflection_QueryGetSignatureThresholdRequest QueryGetSignatureThresholdRequest + +func (x *QueryGetSignatureThresholdRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryGetSignatureThresholdRequest)(x) +} + +func (x *QueryGetSignatureThresholdRequest) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_QueryGetSignatureThresholdRequest_messageType fastReflection_QueryGetSignatureThresholdRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryGetSignatureThresholdRequest_messageType{} + +type fastReflection_QueryGetSignatureThresholdRequest_messageType struct{} + +func (x fastReflection_QueryGetSignatureThresholdRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryGetSignatureThresholdRequest)(nil) +} +func (x fastReflection_QueryGetSignatureThresholdRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryGetSignatureThresholdRequest) +} +func (x fastReflection_QueryGetSignatureThresholdRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGetSignatureThresholdRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryGetSignatureThresholdRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGetSignatureThresholdRequest +} + +// 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_QueryGetSignatureThresholdRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryGetSignatureThresholdRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryGetSignatureThresholdRequest) New() protoreflect.Message { + return new(fastReflection_QueryGetSignatureThresholdRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryGetSignatureThresholdRequest) Interface() protoreflect.ProtoMessage { + return (*QueryGetSignatureThresholdRequest)(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_QueryGetSignatureThresholdRequest) 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_QueryGetSignatureThresholdRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetSignatureThresholdRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetSignatureThresholdRequest 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_QueryGetSignatureThresholdRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetSignatureThresholdRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetSignatureThresholdRequest 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_QueryGetSignatureThresholdRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetSignatureThresholdRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetSignatureThresholdRequest 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_QueryGetSignatureThresholdRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetSignatureThresholdRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetSignatureThresholdRequest 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_QueryGetSignatureThresholdRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetSignatureThresholdRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetSignatureThresholdRequest 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_QueryGetSignatureThresholdRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetSignatureThresholdRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetSignatureThresholdRequest 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_QueryGetSignatureThresholdRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.QueryGetSignatureThresholdRequest", 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_QueryGetSignatureThresholdRequest) 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_QueryGetSignatureThresholdRequest) 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_QueryGetSignatureThresholdRequest) 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_QueryGetSignatureThresholdRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryGetSignatureThresholdRequest) + 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().(*QueryGetSignatureThresholdRequest) + 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().(*QueryGetSignatureThresholdRequest) + 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: QueryGetSignatureThresholdRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetSignatureThresholdRequest: 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_QueryGetSignatureThresholdResponse protoreflect.MessageDescriptor + fd_QueryGetSignatureThresholdResponse_amount protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_query_proto_init() + md_QueryGetSignatureThresholdResponse = File_circle_cctp_v1_query_proto.Messages().ByName("QueryGetSignatureThresholdResponse") + fd_QueryGetSignatureThresholdResponse_amount = md_QueryGetSignatureThresholdResponse.Fields().ByName("amount") +} + +var _ protoreflect.Message = (*fastReflection_QueryGetSignatureThresholdResponse)(nil) + +type fastReflection_QueryGetSignatureThresholdResponse QueryGetSignatureThresholdResponse + +func (x *QueryGetSignatureThresholdResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryGetSignatureThresholdResponse)(x) +} + +func (x *QueryGetSignatureThresholdResponse) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_QueryGetSignatureThresholdResponse_messageType fastReflection_QueryGetSignatureThresholdResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryGetSignatureThresholdResponse_messageType{} + +type fastReflection_QueryGetSignatureThresholdResponse_messageType struct{} + +func (x fastReflection_QueryGetSignatureThresholdResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryGetSignatureThresholdResponse)(nil) +} +func (x fastReflection_QueryGetSignatureThresholdResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryGetSignatureThresholdResponse) +} +func (x fastReflection_QueryGetSignatureThresholdResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGetSignatureThresholdResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryGetSignatureThresholdResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGetSignatureThresholdResponse +} + +// 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_QueryGetSignatureThresholdResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryGetSignatureThresholdResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryGetSignatureThresholdResponse) New() protoreflect.Message { + return new(fastReflection_QueryGetSignatureThresholdResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryGetSignatureThresholdResponse) Interface() protoreflect.ProtoMessage { + return (*QueryGetSignatureThresholdResponse)(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_QueryGetSignatureThresholdResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Amount != nil { + value := protoreflect.ValueOfMessage(x.Amount.ProtoReflect()) + if !f(fd_QueryGetSignatureThresholdResponse_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_QueryGetSignatureThresholdResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.QueryGetSignatureThresholdResponse.amount": + return x.Amount != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetSignatureThresholdResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetSignatureThresholdResponse 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_QueryGetSignatureThresholdResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.QueryGetSignatureThresholdResponse.amount": + x.Amount = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetSignatureThresholdResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetSignatureThresholdResponse 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_QueryGetSignatureThresholdResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.QueryGetSignatureThresholdResponse.amount": + value := x.Amount + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetSignatureThresholdResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetSignatureThresholdResponse 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_QueryGetSignatureThresholdResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.QueryGetSignatureThresholdResponse.amount": + x.Amount = value.Message().Interface().(*SignatureThreshold) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetSignatureThresholdResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetSignatureThresholdResponse 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_QueryGetSignatureThresholdResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.QueryGetSignatureThresholdResponse.amount": + if x.Amount == nil { + x.Amount = new(SignatureThreshold) + } + return protoreflect.ValueOfMessage(x.Amount.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetSignatureThresholdResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetSignatureThresholdResponse 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_QueryGetSignatureThresholdResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.QueryGetSignatureThresholdResponse.amount": + m := new(SignatureThreshold) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetSignatureThresholdResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetSignatureThresholdResponse 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_QueryGetSignatureThresholdResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.QueryGetSignatureThresholdResponse", 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_QueryGetSignatureThresholdResponse) 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_QueryGetSignatureThresholdResponse) 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_QueryGetSignatureThresholdResponse) 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_QueryGetSignatureThresholdResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryGetSignatureThresholdResponse) + 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.Amount != nil { + l = options.Size(x.Amount) + 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().(*QueryGetSignatureThresholdResponse) + 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.Amount != nil { + encoded, err := options.Marshal(x.Amount) + 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().(*QueryGetSignatureThresholdResponse) + 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: QueryGetSignatureThresholdResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetSignatureThresholdResponse: 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 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.Amount == nil { + x.Amount = &SignatureThreshold{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Amount); 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_QueryGetTokenPairRequest protoreflect.MessageDescriptor + fd_QueryGetTokenPairRequest_remote_domain protoreflect.FieldDescriptor + fd_QueryGetTokenPairRequest_remote_token protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_query_proto_init() + md_QueryGetTokenPairRequest = File_circle_cctp_v1_query_proto.Messages().ByName("QueryGetTokenPairRequest") + fd_QueryGetTokenPairRequest_remote_domain = md_QueryGetTokenPairRequest.Fields().ByName("remote_domain") + fd_QueryGetTokenPairRequest_remote_token = md_QueryGetTokenPairRequest.Fields().ByName("remote_token") +} + +var _ protoreflect.Message = (*fastReflection_QueryGetTokenPairRequest)(nil) + +type fastReflection_QueryGetTokenPairRequest QueryGetTokenPairRequest + +func (x *QueryGetTokenPairRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryGetTokenPairRequest)(x) +} + +func (x *QueryGetTokenPairRequest) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_QueryGetTokenPairRequest_messageType fastReflection_QueryGetTokenPairRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryGetTokenPairRequest_messageType{} + +type fastReflection_QueryGetTokenPairRequest_messageType struct{} + +func (x fastReflection_QueryGetTokenPairRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryGetTokenPairRequest)(nil) +} +func (x fastReflection_QueryGetTokenPairRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryGetTokenPairRequest) +} +func (x fastReflection_QueryGetTokenPairRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGetTokenPairRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryGetTokenPairRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGetTokenPairRequest +} + +// 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_QueryGetTokenPairRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryGetTokenPairRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryGetTokenPairRequest) New() protoreflect.Message { + return new(fastReflection_QueryGetTokenPairRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryGetTokenPairRequest) Interface() protoreflect.ProtoMessage { + return (*QueryGetTokenPairRequest)(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_QueryGetTokenPairRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.RemoteDomain != uint32(0) { + value := protoreflect.ValueOfUint32(x.RemoteDomain) + if !f(fd_QueryGetTokenPairRequest_remote_domain, value) { + return + } + } + if x.RemoteToken != "" { + value := protoreflect.ValueOfString(x.RemoteToken) + if !f(fd_QueryGetTokenPairRequest_remote_token, 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_QueryGetTokenPairRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.QueryGetTokenPairRequest.remote_domain": + return x.RemoteDomain != uint32(0) + case "circle.cctp.v1.QueryGetTokenPairRequest.remote_token": + return x.RemoteToken != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetTokenPairRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetTokenPairRequest 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_QueryGetTokenPairRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.QueryGetTokenPairRequest.remote_domain": + x.RemoteDomain = uint32(0) + case "circle.cctp.v1.QueryGetTokenPairRequest.remote_token": + x.RemoteToken = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetTokenPairRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetTokenPairRequest 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_QueryGetTokenPairRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.QueryGetTokenPairRequest.remote_domain": + value := x.RemoteDomain + return protoreflect.ValueOfUint32(value) + case "circle.cctp.v1.QueryGetTokenPairRequest.remote_token": + value := x.RemoteToken + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetTokenPairRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetTokenPairRequest 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_QueryGetTokenPairRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.QueryGetTokenPairRequest.remote_domain": + x.RemoteDomain = uint32(value.Uint()) + case "circle.cctp.v1.QueryGetTokenPairRequest.remote_token": + x.RemoteToken = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetTokenPairRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetTokenPairRequest 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_QueryGetTokenPairRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.QueryGetTokenPairRequest.remote_domain": + panic(fmt.Errorf("field remote_domain of message circle.cctp.v1.QueryGetTokenPairRequest is not mutable")) + case "circle.cctp.v1.QueryGetTokenPairRequest.remote_token": + panic(fmt.Errorf("field remote_token of message circle.cctp.v1.QueryGetTokenPairRequest is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetTokenPairRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetTokenPairRequest 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_QueryGetTokenPairRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.QueryGetTokenPairRequest.remote_domain": + return protoreflect.ValueOfUint32(uint32(0)) + case "circle.cctp.v1.QueryGetTokenPairRequest.remote_token": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetTokenPairRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetTokenPairRequest 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_QueryGetTokenPairRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.QueryGetTokenPairRequest", 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_QueryGetTokenPairRequest) 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_QueryGetTokenPairRequest) 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_QueryGetTokenPairRequest) 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_QueryGetTokenPairRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryGetTokenPairRequest) + 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.RemoteDomain != 0 { + n += 1 + runtime.Sov(uint64(x.RemoteDomain)) + } + l = len(x.RemoteToken) + 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().(*QueryGetTokenPairRequest) + 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.RemoteToken) > 0 { + i -= len(x.RemoteToken) + copy(dAtA[i:], x.RemoteToken) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.RemoteToken))) + i-- + dAtA[i] = 0x12 + } + if x.RemoteDomain != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.RemoteDomain)) + 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().(*QueryGetTokenPairRequest) + 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: QueryGetTokenPairRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetTokenPairRequest: 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 RemoteDomain", wireType) + } + x.RemoteDomain = 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.RemoteDomain |= 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 RemoteToken", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.RemoteToken = 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_QueryGetTokenPairResponse protoreflect.MessageDescriptor + fd_QueryGetTokenPairResponse_pair protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_query_proto_init() + md_QueryGetTokenPairResponse = File_circle_cctp_v1_query_proto.Messages().ByName("QueryGetTokenPairResponse") + fd_QueryGetTokenPairResponse_pair = md_QueryGetTokenPairResponse.Fields().ByName("pair") +} + +var _ protoreflect.Message = (*fastReflection_QueryGetTokenPairResponse)(nil) + +type fastReflection_QueryGetTokenPairResponse QueryGetTokenPairResponse + +func (x *QueryGetTokenPairResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryGetTokenPairResponse)(x) +} + +func (x *QueryGetTokenPairResponse) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_QueryGetTokenPairResponse_messageType fastReflection_QueryGetTokenPairResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryGetTokenPairResponse_messageType{} + +type fastReflection_QueryGetTokenPairResponse_messageType struct{} + +func (x fastReflection_QueryGetTokenPairResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryGetTokenPairResponse)(nil) +} +func (x fastReflection_QueryGetTokenPairResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryGetTokenPairResponse) +} +func (x fastReflection_QueryGetTokenPairResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGetTokenPairResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryGetTokenPairResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGetTokenPairResponse +} + +// 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_QueryGetTokenPairResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryGetTokenPairResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryGetTokenPairResponse) New() protoreflect.Message { + return new(fastReflection_QueryGetTokenPairResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryGetTokenPairResponse) Interface() protoreflect.ProtoMessage { + return (*QueryGetTokenPairResponse)(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_QueryGetTokenPairResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Pair != nil { + value := protoreflect.ValueOfMessage(x.Pair.ProtoReflect()) + if !f(fd_QueryGetTokenPairResponse_pair, 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_QueryGetTokenPairResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.QueryGetTokenPairResponse.pair": + return x.Pair != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetTokenPairResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetTokenPairResponse 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_QueryGetTokenPairResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.QueryGetTokenPairResponse.pair": + x.Pair = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetTokenPairResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetTokenPairResponse 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_QueryGetTokenPairResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.QueryGetTokenPairResponse.pair": + value := x.Pair + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetTokenPairResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetTokenPairResponse 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_QueryGetTokenPairResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.QueryGetTokenPairResponse.pair": + x.Pair = value.Message().Interface().(*TokenPair) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetTokenPairResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetTokenPairResponse 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_QueryGetTokenPairResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.QueryGetTokenPairResponse.pair": + if x.Pair == nil { + x.Pair = new(TokenPair) + } + return protoreflect.ValueOfMessage(x.Pair.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetTokenPairResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetTokenPairResponse 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_QueryGetTokenPairResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.QueryGetTokenPairResponse.pair": + m := new(TokenPair) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetTokenPairResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetTokenPairResponse 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_QueryGetTokenPairResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.QueryGetTokenPairResponse", 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_QueryGetTokenPairResponse) 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_QueryGetTokenPairResponse) 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_QueryGetTokenPairResponse) 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_QueryGetTokenPairResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryGetTokenPairResponse) + 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.Pair != nil { + l = options.Size(x.Pair) + 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().(*QueryGetTokenPairResponse) + 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.Pair != nil { + encoded, err := options.Marshal(x.Pair) + 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().(*QueryGetTokenPairResponse) + 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: QueryGetTokenPairResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetTokenPairResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pair", wireType) + } + var 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.Pair == nil { + x.Pair = &TokenPair{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pair); 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_QueryAllTokenPairsRequest protoreflect.MessageDescriptor + fd_QueryAllTokenPairsRequest_pagination protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_query_proto_init() + md_QueryAllTokenPairsRequest = File_circle_cctp_v1_query_proto.Messages().ByName("QueryAllTokenPairsRequest") + fd_QueryAllTokenPairsRequest_pagination = md_QueryAllTokenPairsRequest.Fields().ByName("pagination") +} + +var _ protoreflect.Message = (*fastReflection_QueryAllTokenPairsRequest)(nil) + +type fastReflection_QueryAllTokenPairsRequest QueryAllTokenPairsRequest + +func (x *QueryAllTokenPairsRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryAllTokenPairsRequest)(x) +} + +func (x *QueryAllTokenPairsRequest) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_QueryAllTokenPairsRequest_messageType fastReflection_QueryAllTokenPairsRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryAllTokenPairsRequest_messageType{} + +type fastReflection_QueryAllTokenPairsRequest_messageType struct{} + +func (x fastReflection_QueryAllTokenPairsRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryAllTokenPairsRequest)(nil) +} +func (x fastReflection_QueryAllTokenPairsRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryAllTokenPairsRequest) +} +func (x fastReflection_QueryAllTokenPairsRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAllTokenPairsRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryAllTokenPairsRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAllTokenPairsRequest +} + +// 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_QueryAllTokenPairsRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryAllTokenPairsRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryAllTokenPairsRequest) New() protoreflect.Message { + return new(fastReflection_QueryAllTokenPairsRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryAllTokenPairsRequest) Interface() protoreflect.ProtoMessage { + return (*QueryAllTokenPairsRequest)(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_QueryAllTokenPairsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Pagination != nil { + value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + if !f(fd_QueryAllTokenPairsRequest_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_QueryAllTokenPairsRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.QueryAllTokenPairsRequest.pagination": + return x.Pagination != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryAllTokenPairsRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryAllTokenPairsRequest 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_QueryAllTokenPairsRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.QueryAllTokenPairsRequest.pagination": + x.Pagination = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryAllTokenPairsRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryAllTokenPairsRequest 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_QueryAllTokenPairsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.QueryAllTokenPairsRequest.pagination": + value := x.Pagination + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryAllTokenPairsRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryAllTokenPairsRequest 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_QueryAllTokenPairsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.QueryAllTokenPairsRequest.pagination": + x.Pagination = value.Message().Interface().(*v1beta1.PageRequest) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryAllTokenPairsRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryAllTokenPairsRequest 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_QueryAllTokenPairsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.QueryAllTokenPairsRequest.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: circle.cctp.v1.QueryAllTokenPairsRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryAllTokenPairsRequest 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_QueryAllTokenPairsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.QueryAllTokenPairsRequest.pagination": + m := new(v1beta1.PageRequest) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryAllTokenPairsRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryAllTokenPairsRequest 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_QueryAllTokenPairsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.QueryAllTokenPairsRequest", 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_QueryAllTokenPairsRequest) 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_QueryAllTokenPairsRequest) 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_QueryAllTokenPairsRequest) 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_QueryAllTokenPairsRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryAllTokenPairsRequest) + 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().(*QueryAllTokenPairsRequest) + 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().(*QueryAllTokenPairsRequest) + 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: QueryAllTokenPairsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAllTokenPairsRequest: 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 = (*_QueryAllTokenPairsResponse_1_list)(nil) + +type _QueryAllTokenPairsResponse_1_list struct { + list *[]*TokenPair +} + +func (x *_QueryAllTokenPairsResponse_1_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_QueryAllTokenPairsResponse_1_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_QueryAllTokenPairsResponse_1_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TokenPair) + (*x.list)[i] = concreteValue +} + +func (x *_QueryAllTokenPairsResponse_1_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TokenPair) + *x.list = append(*x.list, concreteValue) +} + +func (x *_QueryAllTokenPairsResponse_1_list) AppendMutable() protoreflect.Value { + v := new(TokenPair) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryAllTokenPairsResponse_1_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_QueryAllTokenPairsResponse_1_list) NewElement() protoreflect.Value { + v := new(TokenPair) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryAllTokenPairsResponse_1_list) IsValid() bool { + return x.list != nil +} + +var ( + md_QueryAllTokenPairsResponse protoreflect.MessageDescriptor + fd_QueryAllTokenPairsResponse_token_pairs protoreflect.FieldDescriptor + fd_QueryAllTokenPairsResponse_pagination protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_query_proto_init() + md_QueryAllTokenPairsResponse = File_circle_cctp_v1_query_proto.Messages().ByName("QueryAllTokenPairsResponse") + fd_QueryAllTokenPairsResponse_token_pairs = md_QueryAllTokenPairsResponse.Fields().ByName("token_pairs") + fd_QueryAllTokenPairsResponse_pagination = md_QueryAllTokenPairsResponse.Fields().ByName("pagination") +} + +var _ protoreflect.Message = (*fastReflection_QueryAllTokenPairsResponse)(nil) + +type fastReflection_QueryAllTokenPairsResponse QueryAllTokenPairsResponse + +func (x *QueryAllTokenPairsResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryAllTokenPairsResponse)(x) +} + +func (x *QueryAllTokenPairsResponse) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_QueryAllTokenPairsResponse_messageType fastReflection_QueryAllTokenPairsResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryAllTokenPairsResponse_messageType{} + +type fastReflection_QueryAllTokenPairsResponse_messageType struct{} + +func (x fastReflection_QueryAllTokenPairsResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryAllTokenPairsResponse)(nil) +} +func (x fastReflection_QueryAllTokenPairsResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryAllTokenPairsResponse) +} +func (x fastReflection_QueryAllTokenPairsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAllTokenPairsResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryAllTokenPairsResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAllTokenPairsResponse +} + +// 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_QueryAllTokenPairsResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryAllTokenPairsResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryAllTokenPairsResponse) New() protoreflect.Message { + return new(fastReflection_QueryAllTokenPairsResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryAllTokenPairsResponse) Interface() protoreflect.ProtoMessage { + return (*QueryAllTokenPairsResponse)(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_QueryAllTokenPairsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.TokenPairs) != 0 { + value := protoreflect.ValueOfList(&_QueryAllTokenPairsResponse_1_list{list: &x.TokenPairs}) + if !f(fd_QueryAllTokenPairsResponse_token_pairs, value) { + return + } + } + if x.Pagination != nil { + value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + if !f(fd_QueryAllTokenPairsResponse_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_QueryAllTokenPairsResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.QueryAllTokenPairsResponse.token_pairs": + return len(x.TokenPairs) != 0 + case "circle.cctp.v1.QueryAllTokenPairsResponse.pagination": + return x.Pagination != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryAllTokenPairsResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryAllTokenPairsResponse 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_QueryAllTokenPairsResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.QueryAllTokenPairsResponse.token_pairs": + x.TokenPairs = nil + case "circle.cctp.v1.QueryAllTokenPairsResponse.pagination": + x.Pagination = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryAllTokenPairsResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryAllTokenPairsResponse 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_QueryAllTokenPairsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.QueryAllTokenPairsResponse.token_pairs": + if len(x.TokenPairs) == 0 { + return protoreflect.ValueOfList(&_QueryAllTokenPairsResponse_1_list{}) + } + listValue := &_QueryAllTokenPairsResponse_1_list{list: &x.TokenPairs} + return protoreflect.ValueOfList(listValue) + case "circle.cctp.v1.QueryAllTokenPairsResponse.pagination": + value := x.Pagination + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryAllTokenPairsResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryAllTokenPairsResponse 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_QueryAllTokenPairsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.QueryAllTokenPairsResponse.token_pairs": + lv := value.List() + clv := lv.(*_QueryAllTokenPairsResponse_1_list) + x.TokenPairs = *clv.list + case "circle.cctp.v1.QueryAllTokenPairsResponse.pagination": + x.Pagination = value.Message().Interface().(*v1beta1.PageResponse) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryAllTokenPairsResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryAllTokenPairsResponse 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_QueryAllTokenPairsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.QueryAllTokenPairsResponse.token_pairs": + if x.TokenPairs == nil { + x.TokenPairs = []*TokenPair{} + } + value := &_QueryAllTokenPairsResponse_1_list{list: &x.TokenPairs} + return protoreflect.ValueOfList(value) + case "circle.cctp.v1.QueryAllTokenPairsResponse.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: circle.cctp.v1.QueryAllTokenPairsResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryAllTokenPairsResponse 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_QueryAllTokenPairsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.QueryAllTokenPairsResponse.token_pairs": + list := []*TokenPair{} + return protoreflect.ValueOfList(&_QueryAllTokenPairsResponse_1_list{list: &list}) + case "circle.cctp.v1.QueryAllTokenPairsResponse.pagination": + m := new(v1beta1.PageResponse) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryAllTokenPairsResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryAllTokenPairsResponse 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_QueryAllTokenPairsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.QueryAllTokenPairsResponse", 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_QueryAllTokenPairsResponse) 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_QueryAllTokenPairsResponse) 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_QueryAllTokenPairsResponse) 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_QueryAllTokenPairsResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryAllTokenPairsResponse) + 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.TokenPairs) > 0 { + for _, e := range x.TokenPairs { + 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().(*QueryAllTokenPairsResponse) + 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.TokenPairs) > 0 { + for iNdEx := len(x.TokenPairs) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.TokenPairs[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().(*QueryAllTokenPairsResponse) + 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: QueryAllTokenPairsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAllTokenPairsResponse: 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 TokenPairs", 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.TokenPairs = append(x.TokenPairs, &TokenPair{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.TokenPairs[len(x.TokenPairs)-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_QueryGetUsedNonceRequest protoreflect.MessageDescriptor + fd_QueryGetUsedNonceRequest_source_domain protoreflect.FieldDescriptor + fd_QueryGetUsedNonceRequest_nonce protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_query_proto_init() + md_QueryGetUsedNonceRequest = File_circle_cctp_v1_query_proto.Messages().ByName("QueryGetUsedNonceRequest") + fd_QueryGetUsedNonceRequest_source_domain = md_QueryGetUsedNonceRequest.Fields().ByName("source_domain") + fd_QueryGetUsedNonceRequest_nonce = md_QueryGetUsedNonceRequest.Fields().ByName("nonce") +} + +var _ protoreflect.Message = (*fastReflection_QueryGetUsedNonceRequest)(nil) + +type fastReflection_QueryGetUsedNonceRequest QueryGetUsedNonceRequest + +func (x *QueryGetUsedNonceRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryGetUsedNonceRequest)(x) +} + +func (x *QueryGetUsedNonceRequest) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_QueryGetUsedNonceRequest_messageType fastReflection_QueryGetUsedNonceRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryGetUsedNonceRequest_messageType{} + +type fastReflection_QueryGetUsedNonceRequest_messageType struct{} + +func (x fastReflection_QueryGetUsedNonceRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryGetUsedNonceRequest)(nil) +} +func (x fastReflection_QueryGetUsedNonceRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryGetUsedNonceRequest) +} +func (x fastReflection_QueryGetUsedNonceRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGetUsedNonceRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryGetUsedNonceRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGetUsedNonceRequest +} + +// 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_QueryGetUsedNonceRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryGetUsedNonceRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryGetUsedNonceRequest) New() protoreflect.Message { + return new(fastReflection_QueryGetUsedNonceRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryGetUsedNonceRequest) Interface() protoreflect.ProtoMessage { + return (*QueryGetUsedNonceRequest)(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_QueryGetUsedNonceRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.SourceDomain != uint32(0) { + value := protoreflect.ValueOfUint32(x.SourceDomain) + if !f(fd_QueryGetUsedNonceRequest_source_domain, value) { + return + } + } + if x.Nonce != uint64(0) { + value := protoreflect.ValueOfUint64(x.Nonce) + if !f(fd_QueryGetUsedNonceRequest_nonce, 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_QueryGetUsedNonceRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.QueryGetUsedNonceRequest.source_domain": + return x.SourceDomain != uint32(0) + case "circle.cctp.v1.QueryGetUsedNonceRequest.nonce": + return x.Nonce != uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetUsedNonceRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetUsedNonceRequest 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_QueryGetUsedNonceRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.QueryGetUsedNonceRequest.source_domain": + x.SourceDomain = uint32(0) + case "circle.cctp.v1.QueryGetUsedNonceRequest.nonce": + x.Nonce = uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetUsedNonceRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetUsedNonceRequest 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_QueryGetUsedNonceRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.QueryGetUsedNonceRequest.source_domain": + value := x.SourceDomain + return protoreflect.ValueOfUint32(value) + case "circle.cctp.v1.QueryGetUsedNonceRequest.nonce": + value := x.Nonce + return protoreflect.ValueOfUint64(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetUsedNonceRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetUsedNonceRequest 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_QueryGetUsedNonceRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.QueryGetUsedNonceRequest.source_domain": + x.SourceDomain = uint32(value.Uint()) + case "circle.cctp.v1.QueryGetUsedNonceRequest.nonce": + x.Nonce = value.Uint() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetUsedNonceRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetUsedNonceRequest 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_QueryGetUsedNonceRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.QueryGetUsedNonceRequest.source_domain": + panic(fmt.Errorf("field source_domain of message circle.cctp.v1.QueryGetUsedNonceRequest is not mutable")) + case "circle.cctp.v1.QueryGetUsedNonceRequest.nonce": + panic(fmt.Errorf("field nonce of message circle.cctp.v1.QueryGetUsedNonceRequest is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetUsedNonceRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetUsedNonceRequest 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_QueryGetUsedNonceRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.QueryGetUsedNonceRequest.source_domain": + return protoreflect.ValueOfUint32(uint32(0)) + case "circle.cctp.v1.QueryGetUsedNonceRequest.nonce": + return protoreflect.ValueOfUint64(uint64(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetUsedNonceRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetUsedNonceRequest 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_QueryGetUsedNonceRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.QueryGetUsedNonceRequest", 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_QueryGetUsedNonceRequest) 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_QueryGetUsedNonceRequest) 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_QueryGetUsedNonceRequest) 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_QueryGetUsedNonceRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryGetUsedNonceRequest) + 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.SourceDomain != 0 { + n += 1 + runtime.Sov(uint64(x.SourceDomain)) + } + if x.Nonce != 0 { + n += 1 + runtime.Sov(uint64(x.Nonce)) + } + 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().(*QueryGetUsedNonceRequest) + 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.Nonce != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Nonce)) + i-- + dAtA[i] = 0x10 + } + if x.SourceDomain != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.SourceDomain)) + 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().(*QueryGetUsedNonceRequest) + 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: QueryGetUsedNonceRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetUsedNonceRequest: 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 SourceDomain", wireType) + } + x.SourceDomain = 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.SourceDomain |= 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 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 + } + } + 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_QueryGetUsedNonceResponse protoreflect.MessageDescriptor + fd_QueryGetUsedNonceResponse_nonce protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_query_proto_init() + md_QueryGetUsedNonceResponse = File_circle_cctp_v1_query_proto.Messages().ByName("QueryGetUsedNonceResponse") + fd_QueryGetUsedNonceResponse_nonce = md_QueryGetUsedNonceResponse.Fields().ByName("nonce") +} + +var _ protoreflect.Message = (*fastReflection_QueryGetUsedNonceResponse)(nil) + +type fastReflection_QueryGetUsedNonceResponse QueryGetUsedNonceResponse + +func (x *QueryGetUsedNonceResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryGetUsedNonceResponse)(x) +} + +func (x *QueryGetUsedNonceResponse) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_QueryGetUsedNonceResponse_messageType fastReflection_QueryGetUsedNonceResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryGetUsedNonceResponse_messageType{} + +type fastReflection_QueryGetUsedNonceResponse_messageType struct{} + +func (x fastReflection_QueryGetUsedNonceResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryGetUsedNonceResponse)(nil) +} +func (x fastReflection_QueryGetUsedNonceResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryGetUsedNonceResponse) +} +func (x fastReflection_QueryGetUsedNonceResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGetUsedNonceResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryGetUsedNonceResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGetUsedNonceResponse +} + +// 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_QueryGetUsedNonceResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryGetUsedNonceResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryGetUsedNonceResponse) New() protoreflect.Message { + return new(fastReflection_QueryGetUsedNonceResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryGetUsedNonceResponse) Interface() protoreflect.ProtoMessage { + return (*QueryGetUsedNonceResponse)(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_QueryGetUsedNonceResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Nonce != nil { + value := protoreflect.ValueOfMessage(x.Nonce.ProtoReflect()) + if !f(fd_QueryGetUsedNonceResponse_nonce, 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_QueryGetUsedNonceResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.QueryGetUsedNonceResponse.nonce": + return x.Nonce != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetUsedNonceResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetUsedNonceResponse 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_QueryGetUsedNonceResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.QueryGetUsedNonceResponse.nonce": + x.Nonce = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetUsedNonceResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetUsedNonceResponse 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_QueryGetUsedNonceResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.QueryGetUsedNonceResponse.nonce": + value := x.Nonce + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetUsedNonceResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetUsedNonceResponse 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_QueryGetUsedNonceResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.QueryGetUsedNonceResponse.nonce": + x.Nonce = value.Message().Interface().(*Nonce) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetUsedNonceResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetUsedNonceResponse 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_QueryGetUsedNonceResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.QueryGetUsedNonceResponse.nonce": + if x.Nonce == nil { + x.Nonce = new(Nonce) + } + return protoreflect.ValueOfMessage(x.Nonce.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetUsedNonceResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetUsedNonceResponse 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_QueryGetUsedNonceResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.QueryGetUsedNonceResponse.nonce": + m := new(Nonce) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryGetUsedNonceResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryGetUsedNonceResponse 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_QueryGetUsedNonceResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.QueryGetUsedNonceResponse", 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_QueryGetUsedNonceResponse) 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_QueryGetUsedNonceResponse) 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_QueryGetUsedNonceResponse) 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_QueryGetUsedNonceResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryGetUsedNonceResponse) + 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 != nil { + l = options.Size(x.Nonce) + 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().(*QueryGetUsedNonceResponse) + 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.Nonce != nil { + encoded, err := options.Marshal(x.Nonce) + 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().(*QueryGetUsedNonceResponse) + 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: QueryGetUsedNonceResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetUsedNonceResponse: 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 Nonce", 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.Nonce == nil { + x.Nonce = &Nonce{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Nonce); 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_QueryAllUsedNoncesRequest protoreflect.MessageDescriptor + fd_QueryAllUsedNoncesRequest_pagination protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_query_proto_init() + md_QueryAllUsedNoncesRequest = File_circle_cctp_v1_query_proto.Messages().ByName("QueryAllUsedNoncesRequest") + fd_QueryAllUsedNoncesRequest_pagination = md_QueryAllUsedNoncesRequest.Fields().ByName("pagination") +} + +var _ protoreflect.Message = (*fastReflection_QueryAllUsedNoncesRequest)(nil) + +type fastReflection_QueryAllUsedNoncesRequest QueryAllUsedNoncesRequest + +func (x *QueryAllUsedNoncesRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryAllUsedNoncesRequest)(x) +} + +func (x *QueryAllUsedNoncesRequest) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_QueryAllUsedNoncesRequest_messageType fastReflection_QueryAllUsedNoncesRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryAllUsedNoncesRequest_messageType{} + +type fastReflection_QueryAllUsedNoncesRequest_messageType struct{} + +func (x fastReflection_QueryAllUsedNoncesRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryAllUsedNoncesRequest)(nil) +} +func (x fastReflection_QueryAllUsedNoncesRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryAllUsedNoncesRequest) +} +func (x fastReflection_QueryAllUsedNoncesRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAllUsedNoncesRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryAllUsedNoncesRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAllUsedNoncesRequest +} + +// 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_QueryAllUsedNoncesRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryAllUsedNoncesRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryAllUsedNoncesRequest) New() protoreflect.Message { + return new(fastReflection_QueryAllUsedNoncesRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryAllUsedNoncesRequest) Interface() protoreflect.ProtoMessage { + return (*QueryAllUsedNoncesRequest)(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_QueryAllUsedNoncesRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Pagination != nil { + value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + if !f(fd_QueryAllUsedNoncesRequest_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_QueryAllUsedNoncesRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.QueryAllUsedNoncesRequest.pagination": + return x.Pagination != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryAllUsedNoncesRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryAllUsedNoncesRequest 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_QueryAllUsedNoncesRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.QueryAllUsedNoncesRequest.pagination": + x.Pagination = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryAllUsedNoncesRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryAllUsedNoncesRequest 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_QueryAllUsedNoncesRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.QueryAllUsedNoncesRequest.pagination": + value := x.Pagination + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryAllUsedNoncesRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryAllUsedNoncesRequest 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_QueryAllUsedNoncesRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.QueryAllUsedNoncesRequest.pagination": + x.Pagination = value.Message().Interface().(*v1beta1.PageRequest) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryAllUsedNoncesRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryAllUsedNoncesRequest 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_QueryAllUsedNoncesRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.QueryAllUsedNoncesRequest.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: circle.cctp.v1.QueryAllUsedNoncesRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryAllUsedNoncesRequest 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_QueryAllUsedNoncesRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.QueryAllUsedNoncesRequest.pagination": + m := new(v1beta1.PageRequest) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryAllUsedNoncesRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryAllUsedNoncesRequest 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_QueryAllUsedNoncesRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.QueryAllUsedNoncesRequest", 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_QueryAllUsedNoncesRequest) 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_QueryAllUsedNoncesRequest) 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_QueryAllUsedNoncesRequest) 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_QueryAllUsedNoncesRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryAllUsedNoncesRequest) + 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().(*QueryAllUsedNoncesRequest) + 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().(*QueryAllUsedNoncesRequest) + 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: QueryAllUsedNoncesRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAllUsedNoncesRequest: 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 = (*_QueryAllUsedNoncesResponse_1_list)(nil) + +type _QueryAllUsedNoncesResponse_1_list struct { + list *[]*Nonce +} + +func (x *_QueryAllUsedNoncesResponse_1_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_QueryAllUsedNoncesResponse_1_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_QueryAllUsedNoncesResponse_1_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*Nonce) + (*x.list)[i] = concreteValue +} + +func (x *_QueryAllUsedNoncesResponse_1_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*Nonce) + *x.list = append(*x.list, concreteValue) +} + +func (x *_QueryAllUsedNoncesResponse_1_list) AppendMutable() protoreflect.Value { + v := new(Nonce) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryAllUsedNoncesResponse_1_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_QueryAllUsedNoncesResponse_1_list) NewElement() protoreflect.Value { + v := new(Nonce) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryAllUsedNoncesResponse_1_list) IsValid() bool { + return x.list != nil +} + +var ( + md_QueryAllUsedNoncesResponse protoreflect.MessageDescriptor + fd_QueryAllUsedNoncesResponse_used_nonces protoreflect.FieldDescriptor + fd_QueryAllUsedNoncesResponse_pagination protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_query_proto_init() + md_QueryAllUsedNoncesResponse = File_circle_cctp_v1_query_proto.Messages().ByName("QueryAllUsedNoncesResponse") + fd_QueryAllUsedNoncesResponse_used_nonces = md_QueryAllUsedNoncesResponse.Fields().ByName("used_nonces") + fd_QueryAllUsedNoncesResponse_pagination = md_QueryAllUsedNoncesResponse.Fields().ByName("pagination") +} + +var _ protoreflect.Message = (*fastReflection_QueryAllUsedNoncesResponse)(nil) + +type fastReflection_QueryAllUsedNoncesResponse QueryAllUsedNoncesResponse + +func (x *QueryAllUsedNoncesResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryAllUsedNoncesResponse)(x) +} + +func (x *QueryAllUsedNoncesResponse) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_QueryAllUsedNoncesResponse_messageType fastReflection_QueryAllUsedNoncesResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryAllUsedNoncesResponse_messageType{} + +type fastReflection_QueryAllUsedNoncesResponse_messageType struct{} + +func (x fastReflection_QueryAllUsedNoncesResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryAllUsedNoncesResponse)(nil) +} +func (x fastReflection_QueryAllUsedNoncesResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryAllUsedNoncesResponse) +} +func (x fastReflection_QueryAllUsedNoncesResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAllUsedNoncesResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryAllUsedNoncesResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAllUsedNoncesResponse +} + +// 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_QueryAllUsedNoncesResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryAllUsedNoncesResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryAllUsedNoncesResponse) New() protoreflect.Message { + return new(fastReflection_QueryAllUsedNoncesResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryAllUsedNoncesResponse) Interface() protoreflect.ProtoMessage { + return (*QueryAllUsedNoncesResponse)(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_QueryAllUsedNoncesResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.UsedNonces) != 0 { + value := protoreflect.ValueOfList(&_QueryAllUsedNoncesResponse_1_list{list: &x.UsedNonces}) + if !f(fd_QueryAllUsedNoncesResponse_used_nonces, value) { + return + } + } + if x.Pagination != nil { + value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + if !f(fd_QueryAllUsedNoncesResponse_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_QueryAllUsedNoncesResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.QueryAllUsedNoncesResponse.used_nonces": + return len(x.UsedNonces) != 0 + case "circle.cctp.v1.QueryAllUsedNoncesResponse.pagination": + return x.Pagination != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryAllUsedNoncesResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryAllUsedNoncesResponse 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_QueryAllUsedNoncesResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.QueryAllUsedNoncesResponse.used_nonces": + x.UsedNonces = nil + case "circle.cctp.v1.QueryAllUsedNoncesResponse.pagination": + x.Pagination = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryAllUsedNoncesResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryAllUsedNoncesResponse 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_QueryAllUsedNoncesResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.QueryAllUsedNoncesResponse.used_nonces": + if len(x.UsedNonces) == 0 { + return protoreflect.ValueOfList(&_QueryAllUsedNoncesResponse_1_list{}) + } + listValue := &_QueryAllUsedNoncesResponse_1_list{list: &x.UsedNonces} + return protoreflect.ValueOfList(listValue) + case "circle.cctp.v1.QueryAllUsedNoncesResponse.pagination": + value := x.Pagination + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryAllUsedNoncesResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryAllUsedNoncesResponse 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_QueryAllUsedNoncesResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.QueryAllUsedNoncesResponse.used_nonces": + lv := value.List() + clv := lv.(*_QueryAllUsedNoncesResponse_1_list) + x.UsedNonces = *clv.list + case "circle.cctp.v1.QueryAllUsedNoncesResponse.pagination": + x.Pagination = value.Message().Interface().(*v1beta1.PageResponse) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryAllUsedNoncesResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryAllUsedNoncesResponse 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_QueryAllUsedNoncesResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.QueryAllUsedNoncesResponse.used_nonces": + if x.UsedNonces == nil { + x.UsedNonces = []*Nonce{} + } + value := &_QueryAllUsedNoncesResponse_1_list{list: &x.UsedNonces} + return protoreflect.ValueOfList(value) + case "circle.cctp.v1.QueryAllUsedNoncesResponse.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: circle.cctp.v1.QueryAllUsedNoncesResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryAllUsedNoncesResponse 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_QueryAllUsedNoncesResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.QueryAllUsedNoncesResponse.used_nonces": + list := []*Nonce{} + return protoreflect.ValueOfList(&_QueryAllUsedNoncesResponse_1_list{list: &list}) + case "circle.cctp.v1.QueryAllUsedNoncesResponse.pagination": + m := new(v1beta1.PageResponse) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryAllUsedNoncesResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryAllUsedNoncesResponse 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_QueryAllUsedNoncesResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.QueryAllUsedNoncesResponse", 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_QueryAllUsedNoncesResponse) 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_QueryAllUsedNoncesResponse) 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_QueryAllUsedNoncesResponse) 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_QueryAllUsedNoncesResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryAllUsedNoncesResponse) + 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.UsedNonces) > 0 { + for _, e := range x.UsedNonces { + 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().(*QueryAllUsedNoncesResponse) + 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.UsedNonces) > 0 { + for iNdEx := len(x.UsedNonces) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.UsedNonces[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().(*QueryAllUsedNoncesResponse) + 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: QueryAllUsedNoncesResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAllUsedNoncesResponse: 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 UsedNonces", 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.UsedNonces = append(x.UsedNonces, &Nonce{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.UsedNonces[len(x.UsedNonces)-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_QueryRemoteTokenMessengerRequest protoreflect.MessageDescriptor + fd_QueryRemoteTokenMessengerRequest_domain_id protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_query_proto_init() + md_QueryRemoteTokenMessengerRequest = File_circle_cctp_v1_query_proto.Messages().ByName("QueryRemoteTokenMessengerRequest") + fd_QueryRemoteTokenMessengerRequest_domain_id = md_QueryRemoteTokenMessengerRequest.Fields().ByName("domain_id") +} + +var _ protoreflect.Message = (*fastReflection_QueryRemoteTokenMessengerRequest)(nil) + +type fastReflection_QueryRemoteTokenMessengerRequest QueryRemoteTokenMessengerRequest + +func (x *QueryRemoteTokenMessengerRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryRemoteTokenMessengerRequest)(x) +} + +func (x *QueryRemoteTokenMessengerRequest) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_QueryRemoteTokenMessengerRequest_messageType fastReflection_QueryRemoteTokenMessengerRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryRemoteTokenMessengerRequest_messageType{} + +type fastReflection_QueryRemoteTokenMessengerRequest_messageType struct{} + +func (x fastReflection_QueryRemoteTokenMessengerRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryRemoteTokenMessengerRequest)(nil) +} +func (x fastReflection_QueryRemoteTokenMessengerRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryRemoteTokenMessengerRequest) +} +func (x fastReflection_QueryRemoteTokenMessengerRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryRemoteTokenMessengerRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryRemoteTokenMessengerRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryRemoteTokenMessengerRequest +} + +// 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_QueryRemoteTokenMessengerRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryRemoteTokenMessengerRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryRemoteTokenMessengerRequest) New() protoreflect.Message { + return new(fastReflection_QueryRemoteTokenMessengerRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryRemoteTokenMessengerRequest) Interface() protoreflect.ProtoMessage { + return (*QueryRemoteTokenMessengerRequest)(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_QueryRemoteTokenMessengerRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.DomainId != uint32(0) { + value := protoreflect.ValueOfUint32(x.DomainId) + if !f(fd_QueryRemoteTokenMessengerRequest_domain_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_QueryRemoteTokenMessengerRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.QueryRemoteTokenMessengerRequest.domain_id": + return x.DomainId != uint32(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryRemoteTokenMessengerRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryRemoteTokenMessengerRequest 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_QueryRemoteTokenMessengerRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.QueryRemoteTokenMessengerRequest.domain_id": + x.DomainId = uint32(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryRemoteTokenMessengerRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryRemoteTokenMessengerRequest 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_QueryRemoteTokenMessengerRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.QueryRemoteTokenMessengerRequest.domain_id": + value := x.DomainId + return protoreflect.ValueOfUint32(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryRemoteTokenMessengerRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryRemoteTokenMessengerRequest 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_QueryRemoteTokenMessengerRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.QueryRemoteTokenMessengerRequest.domain_id": + x.DomainId = uint32(value.Uint()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryRemoteTokenMessengerRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryRemoteTokenMessengerRequest 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_QueryRemoteTokenMessengerRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.QueryRemoteTokenMessengerRequest.domain_id": + panic(fmt.Errorf("field domain_id of message circle.cctp.v1.QueryRemoteTokenMessengerRequest is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryRemoteTokenMessengerRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryRemoteTokenMessengerRequest 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_QueryRemoteTokenMessengerRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.QueryRemoteTokenMessengerRequest.domain_id": + return protoreflect.ValueOfUint32(uint32(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryRemoteTokenMessengerRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryRemoteTokenMessengerRequest 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_QueryRemoteTokenMessengerRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.QueryRemoteTokenMessengerRequest", 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_QueryRemoteTokenMessengerRequest) 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_QueryRemoteTokenMessengerRequest) 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_QueryRemoteTokenMessengerRequest) 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_QueryRemoteTokenMessengerRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryRemoteTokenMessengerRequest) + 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.DomainId != 0 { + n += 1 + runtime.Sov(uint64(x.DomainId)) + } + 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().(*QueryRemoteTokenMessengerRequest) + 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.DomainId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.DomainId)) + 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().(*QueryRemoteTokenMessengerRequest) + 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: QueryRemoteTokenMessengerRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryRemoteTokenMessengerRequest: 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 DomainId", wireType) + } + x.DomainId = 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.DomainId |= 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_QueryRemoteTokenMessengerResponse protoreflect.MessageDescriptor + fd_QueryRemoteTokenMessengerResponse_remote_token_messenger protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_query_proto_init() + md_QueryRemoteTokenMessengerResponse = File_circle_cctp_v1_query_proto.Messages().ByName("QueryRemoteTokenMessengerResponse") + fd_QueryRemoteTokenMessengerResponse_remote_token_messenger = md_QueryRemoteTokenMessengerResponse.Fields().ByName("remote_token_messenger") +} + +var _ protoreflect.Message = (*fastReflection_QueryRemoteTokenMessengerResponse)(nil) + +type fastReflection_QueryRemoteTokenMessengerResponse QueryRemoteTokenMessengerResponse + +func (x *QueryRemoteTokenMessengerResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryRemoteTokenMessengerResponse)(x) +} + +func (x *QueryRemoteTokenMessengerResponse) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_QueryRemoteTokenMessengerResponse_messageType fastReflection_QueryRemoteTokenMessengerResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryRemoteTokenMessengerResponse_messageType{} + +type fastReflection_QueryRemoteTokenMessengerResponse_messageType struct{} + +func (x fastReflection_QueryRemoteTokenMessengerResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryRemoteTokenMessengerResponse)(nil) +} +func (x fastReflection_QueryRemoteTokenMessengerResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryRemoteTokenMessengerResponse) +} +func (x fastReflection_QueryRemoteTokenMessengerResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryRemoteTokenMessengerResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryRemoteTokenMessengerResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryRemoteTokenMessengerResponse +} + +// 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_QueryRemoteTokenMessengerResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryRemoteTokenMessengerResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryRemoteTokenMessengerResponse) New() protoreflect.Message { + return new(fastReflection_QueryRemoteTokenMessengerResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryRemoteTokenMessengerResponse) Interface() protoreflect.ProtoMessage { + return (*QueryRemoteTokenMessengerResponse)(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_QueryRemoteTokenMessengerResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.RemoteTokenMessenger != nil { + value := protoreflect.ValueOfMessage(x.RemoteTokenMessenger.ProtoReflect()) + if !f(fd_QueryRemoteTokenMessengerResponse_remote_token_messenger, 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_QueryRemoteTokenMessengerResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.QueryRemoteTokenMessengerResponse.remote_token_messenger": + return x.RemoteTokenMessenger != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryRemoteTokenMessengerResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryRemoteTokenMessengerResponse 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_QueryRemoteTokenMessengerResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.QueryRemoteTokenMessengerResponse.remote_token_messenger": + x.RemoteTokenMessenger = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryRemoteTokenMessengerResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryRemoteTokenMessengerResponse 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_QueryRemoteTokenMessengerResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.QueryRemoteTokenMessengerResponse.remote_token_messenger": + value := x.RemoteTokenMessenger + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryRemoteTokenMessengerResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryRemoteTokenMessengerResponse 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_QueryRemoteTokenMessengerResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.QueryRemoteTokenMessengerResponse.remote_token_messenger": + x.RemoteTokenMessenger = value.Message().Interface().(*RemoteTokenMessenger) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryRemoteTokenMessengerResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryRemoteTokenMessengerResponse 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_QueryRemoteTokenMessengerResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.QueryRemoteTokenMessengerResponse.remote_token_messenger": + if x.RemoteTokenMessenger == nil { + x.RemoteTokenMessenger = new(RemoteTokenMessenger) + } + return protoreflect.ValueOfMessage(x.RemoteTokenMessenger.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryRemoteTokenMessengerResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryRemoteTokenMessengerResponse 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_QueryRemoteTokenMessengerResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.QueryRemoteTokenMessengerResponse.remote_token_messenger": + m := new(RemoteTokenMessenger) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryRemoteTokenMessengerResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryRemoteTokenMessengerResponse 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_QueryRemoteTokenMessengerResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.QueryRemoteTokenMessengerResponse", 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_QueryRemoteTokenMessengerResponse) 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_QueryRemoteTokenMessengerResponse) 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_QueryRemoteTokenMessengerResponse) 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_QueryRemoteTokenMessengerResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryRemoteTokenMessengerResponse) + 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.RemoteTokenMessenger != nil { + l = options.Size(x.RemoteTokenMessenger) + 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().(*QueryRemoteTokenMessengerResponse) + 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.RemoteTokenMessenger != nil { + encoded, err := options.Marshal(x.RemoteTokenMessenger) + 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().(*QueryRemoteTokenMessengerResponse) + 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: QueryRemoteTokenMessengerResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryRemoteTokenMessengerResponse: 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 RemoteTokenMessenger", 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.RemoteTokenMessenger == nil { + x.RemoteTokenMessenger = &RemoteTokenMessenger{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.RemoteTokenMessenger); 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_QueryRemoteTokenMessengersRequest protoreflect.MessageDescriptor + fd_QueryRemoteTokenMessengersRequest_pagination protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_query_proto_init() + md_QueryRemoteTokenMessengersRequest = File_circle_cctp_v1_query_proto.Messages().ByName("QueryRemoteTokenMessengersRequest") + fd_QueryRemoteTokenMessengersRequest_pagination = md_QueryRemoteTokenMessengersRequest.Fields().ByName("pagination") +} + +var _ protoreflect.Message = (*fastReflection_QueryRemoteTokenMessengersRequest)(nil) + +type fastReflection_QueryRemoteTokenMessengersRequest QueryRemoteTokenMessengersRequest + +func (x *QueryRemoteTokenMessengersRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryRemoteTokenMessengersRequest)(x) +} + +func (x *QueryRemoteTokenMessengersRequest) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_QueryRemoteTokenMessengersRequest_messageType fastReflection_QueryRemoteTokenMessengersRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryRemoteTokenMessengersRequest_messageType{} + +type fastReflection_QueryRemoteTokenMessengersRequest_messageType struct{} + +func (x fastReflection_QueryRemoteTokenMessengersRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryRemoteTokenMessengersRequest)(nil) +} +func (x fastReflection_QueryRemoteTokenMessengersRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryRemoteTokenMessengersRequest) +} +func (x fastReflection_QueryRemoteTokenMessengersRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryRemoteTokenMessengersRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryRemoteTokenMessengersRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryRemoteTokenMessengersRequest +} + +// 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_QueryRemoteTokenMessengersRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryRemoteTokenMessengersRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryRemoteTokenMessengersRequest) New() protoreflect.Message { + return new(fastReflection_QueryRemoteTokenMessengersRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryRemoteTokenMessengersRequest) Interface() protoreflect.ProtoMessage { + return (*QueryRemoteTokenMessengersRequest)(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_QueryRemoteTokenMessengersRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Pagination != nil { + value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + if !f(fd_QueryRemoteTokenMessengersRequest_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_QueryRemoteTokenMessengersRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.QueryRemoteTokenMessengersRequest.pagination": + return x.Pagination != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryRemoteTokenMessengersRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryRemoteTokenMessengersRequest 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_QueryRemoteTokenMessengersRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.QueryRemoteTokenMessengersRequest.pagination": + x.Pagination = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryRemoteTokenMessengersRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryRemoteTokenMessengersRequest 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_QueryRemoteTokenMessengersRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.QueryRemoteTokenMessengersRequest.pagination": + value := x.Pagination + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryRemoteTokenMessengersRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryRemoteTokenMessengersRequest 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_QueryRemoteTokenMessengersRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.QueryRemoteTokenMessengersRequest.pagination": + x.Pagination = value.Message().Interface().(*v1beta1.PageRequest) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryRemoteTokenMessengersRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryRemoteTokenMessengersRequest 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_QueryRemoteTokenMessengersRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.QueryRemoteTokenMessengersRequest.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: circle.cctp.v1.QueryRemoteTokenMessengersRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryRemoteTokenMessengersRequest 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_QueryRemoteTokenMessengersRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.QueryRemoteTokenMessengersRequest.pagination": + m := new(v1beta1.PageRequest) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryRemoteTokenMessengersRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryRemoteTokenMessengersRequest 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_QueryRemoteTokenMessengersRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.QueryRemoteTokenMessengersRequest", 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_QueryRemoteTokenMessengersRequest) 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_QueryRemoteTokenMessengersRequest) 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_QueryRemoteTokenMessengersRequest) 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_QueryRemoteTokenMessengersRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryRemoteTokenMessengersRequest) + 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().(*QueryRemoteTokenMessengersRequest) + 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().(*QueryRemoteTokenMessengersRequest) + 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: QueryRemoteTokenMessengersRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryRemoteTokenMessengersRequest: 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 = (*_QueryRemoteTokenMessengersResponse_1_list)(nil) + +type _QueryRemoteTokenMessengersResponse_1_list struct { + list *[]*RemoteTokenMessenger +} + +func (x *_QueryRemoteTokenMessengersResponse_1_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_QueryRemoteTokenMessengersResponse_1_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_QueryRemoteTokenMessengersResponse_1_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*RemoteTokenMessenger) + (*x.list)[i] = concreteValue +} + +func (x *_QueryRemoteTokenMessengersResponse_1_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*RemoteTokenMessenger) + *x.list = append(*x.list, concreteValue) +} + +func (x *_QueryRemoteTokenMessengersResponse_1_list) AppendMutable() protoreflect.Value { + v := new(RemoteTokenMessenger) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryRemoteTokenMessengersResponse_1_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_QueryRemoteTokenMessengersResponse_1_list) NewElement() protoreflect.Value { + v := new(RemoteTokenMessenger) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryRemoteTokenMessengersResponse_1_list) IsValid() bool { + return x.list != nil +} + +var ( + md_QueryRemoteTokenMessengersResponse protoreflect.MessageDescriptor + fd_QueryRemoteTokenMessengersResponse_remote_token_messengers protoreflect.FieldDescriptor + fd_QueryRemoteTokenMessengersResponse_pagination protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_query_proto_init() + md_QueryRemoteTokenMessengersResponse = File_circle_cctp_v1_query_proto.Messages().ByName("QueryRemoteTokenMessengersResponse") + fd_QueryRemoteTokenMessengersResponse_remote_token_messengers = md_QueryRemoteTokenMessengersResponse.Fields().ByName("remote_token_messengers") + fd_QueryRemoteTokenMessengersResponse_pagination = md_QueryRemoteTokenMessengersResponse.Fields().ByName("pagination") +} + +var _ protoreflect.Message = (*fastReflection_QueryRemoteTokenMessengersResponse)(nil) + +type fastReflection_QueryRemoteTokenMessengersResponse QueryRemoteTokenMessengersResponse + +func (x *QueryRemoteTokenMessengersResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryRemoteTokenMessengersResponse)(x) +} + +func (x *QueryRemoteTokenMessengersResponse) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_QueryRemoteTokenMessengersResponse_messageType fastReflection_QueryRemoteTokenMessengersResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryRemoteTokenMessengersResponse_messageType{} + +type fastReflection_QueryRemoteTokenMessengersResponse_messageType struct{} + +func (x fastReflection_QueryRemoteTokenMessengersResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryRemoteTokenMessengersResponse)(nil) +} +func (x fastReflection_QueryRemoteTokenMessengersResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryRemoteTokenMessengersResponse) +} +func (x fastReflection_QueryRemoteTokenMessengersResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryRemoteTokenMessengersResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryRemoteTokenMessengersResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryRemoteTokenMessengersResponse +} + +// 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_QueryRemoteTokenMessengersResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryRemoteTokenMessengersResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryRemoteTokenMessengersResponse) New() protoreflect.Message { + return new(fastReflection_QueryRemoteTokenMessengersResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryRemoteTokenMessengersResponse) Interface() protoreflect.ProtoMessage { + return (*QueryRemoteTokenMessengersResponse)(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_QueryRemoteTokenMessengersResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.RemoteTokenMessengers) != 0 { + value := protoreflect.ValueOfList(&_QueryRemoteTokenMessengersResponse_1_list{list: &x.RemoteTokenMessengers}) + if !f(fd_QueryRemoteTokenMessengersResponse_remote_token_messengers, value) { + return + } + } + if x.Pagination != nil { + value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + if !f(fd_QueryRemoteTokenMessengersResponse_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_QueryRemoteTokenMessengersResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.QueryRemoteTokenMessengersResponse.remote_token_messengers": + return len(x.RemoteTokenMessengers) != 0 + case "circle.cctp.v1.QueryRemoteTokenMessengersResponse.pagination": + return x.Pagination != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryRemoteTokenMessengersResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryRemoteTokenMessengersResponse 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_QueryRemoteTokenMessengersResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.QueryRemoteTokenMessengersResponse.remote_token_messengers": + x.RemoteTokenMessengers = nil + case "circle.cctp.v1.QueryRemoteTokenMessengersResponse.pagination": + x.Pagination = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryRemoteTokenMessengersResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryRemoteTokenMessengersResponse 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_QueryRemoteTokenMessengersResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.QueryRemoteTokenMessengersResponse.remote_token_messengers": + if len(x.RemoteTokenMessengers) == 0 { + return protoreflect.ValueOfList(&_QueryRemoteTokenMessengersResponse_1_list{}) + } + listValue := &_QueryRemoteTokenMessengersResponse_1_list{list: &x.RemoteTokenMessengers} + return protoreflect.ValueOfList(listValue) + case "circle.cctp.v1.QueryRemoteTokenMessengersResponse.pagination": + value := x.Pagination + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryRemoteTokenMessengersResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryRemoteTokenMessengersResponse 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_QueryRemoteTokenMessengersResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.QueryRemoteTokenMessengersResponse.remote_token_messengers": + lv := value.List() + clv := lv.(*_QueryRemoteTokenMessengersResponse_1_list) + x.RemoteTokenMessengers = *clv.list + case "circle.cctp.v1.QueryRemoteTokenMessengersResponse.pagination": + x.Pagination = value.Message().Interface().(*v1beta1.PageResponse) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryRemoteTokenMessengersResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryRemoteTokenMessengersResponse 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_QueryRemoteTokenMessengersResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.QueryRemoteTokenMessengersResponse.remote_token_messengers": + if x.RemoteTokenMessengers == nil { + x.RemoteTokenMessengers = []*RemoteTokenMessenger{} + } + value := &_QueryRemoteTokenMessengersResponse_1_list{list: &x.RemoteTokenMessengers} + return protoreflect.ValueOfList(value) + case "circle.cctp.v1.QueryRemoteTokenMessengersResponse.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: circle.cctp.v1.QueryRemoteTokenMessengersResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryRemoteTokenMessengersResponse 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_QueryRemoteTokenMessengersResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.QueryRemoteTokenMessengersResponse.remote_token_messengers": + list := []*RemoteTokenMessenger{} + return protoreflect.ValueOfList(&_QueryRemoteTokenMessengersResponse_1_list{list: &list}) + case "circle.cctp.v1.QueryRemoteTokenMessengersResponse.pagination": + m := new(v1beta1.PageResponse) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryRemoteTokenMessengersResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryRemoteTokenMessengersResponse 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_QueryRemoteTokenMessengersResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.QueryRemoteTokenMessengersResponse", 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_QueryRemoteTokenMessengersResponse) 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_QueryRemoteTokenMessengersResponse) 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_QueryRemoteTokenMessengersResponse) 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_QueryRemoteTokenMessengersResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryRemoteTokenMessengersResponse) + 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.RemoteTokenMessengers) > 0 { + for _, e := range x.RemoteTokenMessengers { + 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().(*QueryRemoteTokenMessengersResponse) + 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.RemoteTokenMessengers) > 0 { + for iNdEx := len(x.RemoteTokenMessengers) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.RemoteTokenMessengers[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().(*QueryRemoteTokenMessengersResponse) + 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: QueryRemoteTokenMessengersResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryRemoteTokenMessengersResponse: 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 RemoteTokenMessengers", 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.RemoteTokenMessengers = append(x.RemoteTokenMessengers, &RemoteTokenMessenger{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.RemoteTokenMessengers[len(x.RemoteTokenMessengers)-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_QueryBurnMessageVersionRequest protoreflect.MessageDescriptor +) + +func init() { + file_circle_cctp_v1_query_proto_init() + md_QueryBurnMessageVersionRequest = File_circle_cctp_v1_query_proto.Messages().ByName("QueryBurnMessageVersionRequest") +} + +var _ protoreflect.Message = (*fastReflection_QueryBurnMessageVersionRequest)(nil) + +type fastReflection_QueryBurnMessageVersionRequest QueryBurnMessageVersionRequest + +func (x *QueryBurnMessageVersionRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryBurnMessageVersionRequest)(x) +} + +func (x *QueryBurnMessageVersionRequest) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_QueryBurnMessageVersionRequest_messageType fastReflection_QueryBurnMessageVersionRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryBurnMessageVersionRequest_messageType{} + +type fastReflection_QueryBurnMessageVersionRequest_messageType struct{} + +func (x fastReflection_QueryBurnMessageVersionRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryBurnMessageVersionRequest)(nil) +} +func (x fastReflection_QueryBurnMessageVersionRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryBurnMessageVersionRequest) +} +func (x fastReflection_QueryBurnMessageVersionRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryBurnMessageVersionRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryBurnMessageVersionRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryBurnMessageVersionRequest +} + +// 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_QueryBurnMessageVersionRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryBurnMessageVersionRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryBurnMessageVersionRequest) New() protoreflect.Message { + return new(fastReflection_QueryBurnMessageVersionRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryBurnMessageVersionRequest) Interface() protoreflect.ProtoMessage { + return (*QueryBurnMessageVersionRequest)(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_QueryBurnMessageVersionRequest) 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_QueryBurnMessageVersionRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryBurnMessageVersionRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryBurnMessageVersionRequest 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_QueryBurnMessageVersionRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryBurnMessageVersionRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryBurnMessageVersionRequest 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_QueryBurnMessageVersionRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryBurnMessageVersionRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryBurnMessageVersionRequest 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_QueryBurnMessageVersionRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryBurnMessageVersionRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryBurnMessageVersionRequest 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_QueryBurnMessageVersionRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryBurnMessageVersionRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryBurnMessageVersionRequest 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_QueryBurnMessageVersionRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryBurnMessageVersionRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryBurnMessageVersionRequest 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_QueryBurnMessageVersionRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.QueryBurnMessageVersionRequest", 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_QueryBurnMessageVersionRequest) 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_QueryBurnMessageVersionRequest) 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_QueryBurnMessageVersionRequest) 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_QueryBurnMessageVersionRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryBurnMessageVersionRequest) + 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().(*QueryBurnMessageVersionRequest) + 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().(*QueryBurnMessageVersionRequest) + 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: QueryBurnMessageVersionRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryBurnMessageVersionRequest: 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_QueryBurnMessageVersionResponse protoreflect.MessageDescriptor + fd_QueryBurnMessageVersionResponse_version protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_query_proto_init() + md_QueryBurnMessageVersionResponse = File_circle_cctp_v1_query_proto.Messages().ByName("QueryBurnMessageVersionResponse") + fd_QueryBurnMessageVersionResponse_version = md_QueryBurnMessageVersionResponse.Fields().ByName("version") +} + +var _ protoreflect.Message = (*fastReflection_QueryBurnMessageVersionResponse)(nil) + +type fastReflection_QueryBurnMessageVersionResponse QueryBurnMessageVersionResponse + +func (x *QueryBurnMessageVersionResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryBurnMessageVersionResponse)(x) +} + +func (x *QueryBurnMessageVersionResponse) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_QueryBurnMessageVersionResponse_messageType fastReflection_QueryBurnMessageVersionResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryBurnMessageVersionResponse_messageType{} + +type fastReflection_QueryBurnMessageVersionResponse_messageType struct{} + +func (x fastReflection_QueryBurnMessageVersionResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryBurnMessageVersionResponse)(nil) +} +func (x fastReflection_QueryBurnMessageVersionResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryBurnMessageVersionResponse) +} +func (x fastReflection_QueryBurnMessageVersionResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryBurnMessageVersionResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryBurnMessageVersionResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryBurnMessageVersionResponse +} + +// 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_QueryBurnMessageVersionResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryBurnMessageVersionResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryBurnMessageVersionResponse) New() protoreflect.Message { + return new(fastReflection_QueryBurnMessageVersionResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryBurnMessageVersionResponse) Interface() protoreflect.ProtoMessage { + return (*QueryBurnMessageVersionResponse)(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_QueryBurnMessageVersionResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Version != uint32(0) { + value := protoreflect.ValueOfUint32(x.Version) + if !f(fd_QueryBurnMessageVersionResponse_version, 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_QueryBurnMessageVersionResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.QueryBurnMessageVersionResponse.version": + return x.Version != uint32(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryBurnMessageVersionResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryBurnMessageVersionResponse 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_QueryBurnMessageVersionResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.QueryBurnMessageVersionResponse.version": + x.Version = uint32(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryBurnMessageVersionResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryBurnMessageVersionResponse 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_QueryBurnMessageVersionResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.QueryBurnMessageVersionResponse.version": + value := x.Version + return protoreflect.ValueOfUint32(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryBurnMessageVersionResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryBurnMessageVersionResponse 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_QueryBurnMessageVersionResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.QueryBurnMessageVersionResponse.version": + x.Version = uint32(value.Uint()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryBurnMessageVersionResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryBurnMessageVersionResponse 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_QueryBurnMessageVersionResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.QueryBurnMessageVersionResponse.version": + panic(fmt.Errorf("field version of message circle.cctp.v1.QueryBurnMessageVersionResponse is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryBurnMessageVersionResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryBurnMessageVersionResponse 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_QueryBurnMessageVersionResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.QueryBurnMessageVersionResponse.version": + return protoreflect.ValueOfUint32(uint32(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryBurnMessageVersionResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryBurnMessageVersionResponse 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_QueryBurnMessageVersionResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.QueryBurnMessageVersionResponse", 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_QueryBurnMessageVersionResponse) 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_QueryBurnMessageVersionResponse) 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_QueryBurnMessageVersionResponse) 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_QueryBurnMessageVersionResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryBurnMessageVersionResponse) + 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.Version != 0 { + n += 1 + runtime.Sov(uint64(x.Version)) + } + 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().(*QueryBurnMessageVersionResponse) + 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.Version != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Version)) + 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().(*QueryBurnMessageVersionResponse) + 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: QueryBurnMessageVersionResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryBurnMessageVersionResponse: 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 Version", wireType) + } + x.Version = 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.Version |= 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_QueryLocalMessageVersionRequest protoreflect.MessageDescriptor +) + +func init() { + file_circle_cctp_v1_query_proto_init() + md_QueryLocalMessageVersionRequest = File_circle_cctp_v1_query_proto.Messages().ByName("QueryLocalMessageVersionRequest") +} + +var _ protoreflect.Message = (*fastReflection_QueryLocalMessageVersionRequest)(nil) + +type fastReflection_QueryLocalMessageVersionRequest QueryLocalMessageVersionRequest + +func (x *QueryLocalMessageVersionRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryLocalMessageVersionRequest)(x) +} + +func (x *QueryLocalMessageVersionRequest) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_QueryLocalMessageVersionRequest_messageType fastReflection_QueryLocalMessageVersionRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryLocalMessageVersionRequest_messageType{} + +type fastReflection_QueryLocalMessageVersionRequest_messageType struct{} + +func (x fastReflection_QueryLocalMessageVersionRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryLocalMessageVersionRequest)(nil) +} +func (x fastReflection_QueryLocalMessageVersionRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryLocalMessageVersionRequest) +} +func (x fastReflection_QueryLocalMessageVersionRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryLocalMessageVersionRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryLocalMessageVersionRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryLocalMessageVersionRequest +} + +// 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_QueryLocalMessageVersionRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryLocalMessageVersionRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryLocalMessageVersionRequest) New() protoreflect.Message { + return new(fastReflection_QueryLocalMessageVersionRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryLocalMessageVersionRequest) Interface() protoreflect.ProtoMessage { + return (*QueryLocalMessageVersionRequest)(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_QueryLocalMessageVersionRequest) 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_QueryLocalMessageVersionRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryLocalMessageVersionRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryLocalMessageVersionRequest 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_QueryLocalMessageVersionRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryLocalMessageVersionRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryLocalMessageVersionRequest 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_QueryLocalMessageVersionRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryLocalMessageVersionRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryLocalMessageVersionRequest 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_QueryLocalMessageVersionRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryLocalMessageVersionRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryLocalMessageVersionRequest 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_QueryLocalMessageVersionRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryLocalMessageVersionRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryLocalMessageVersionRequest 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_QueryLocalMessageVersionRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryLocalMessageVersionRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryLocalMessageVersionRequest 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_QueryLocalMessageVersionRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.QueryLocalMessageVersionRequest", 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_QueryLocalMessageVersionRequest) 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_QueryLocalMessageVersionRequest) 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_QueryLocalMessageVersionRequest) 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_QueryLocalMessageVersionRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryLocalMessageVersionRequest) + 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().(*QueryLocalMessageVersionRequest) + 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().(*QueryLocalMessageVersionRequest) + 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: QueryLocalMessageVersionRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryLocalMessageVersionRequest: 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_QueryLocalMessageVersionResponse protoreflect.MessageDescriptor + fd_QueryLocalMessageVersionResponse_version protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_query_proto_init() + md_QueryLocalMessageVersionResponse = File_circle_cctp_v1_query_proto.Messages().ByName("QueryLocalMessageVersionResponse") + fd_QueryLocalMessageVersionResponse_version = md_QueryLocalMessageVersionResponse.Fields().ByName("version") +} + +var _ protoreflect.Message = (*fastReflection_QueryLocalMessageVersionResponse)(nil) + +type fastReflection_QueryLocalMessageVersionResponse QueryLocalMessageVersionResponse + +func (x *QueryLocalMessageVersionResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryLocalMessageVersionResponse)(x) +} + +func (x *QueryLocalMessageVersionResponse) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_QueryLocalMessageVersionResponse_messageType fastReflection_QueryLocalMessageVersionResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryLocalMessageVersionResponse_messageType{} + +type fastReflection_QueryLocalMessageVersionResponse_messageType struct{} + +func (x fastReflection_QueryLocalMessageVersionResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryLocalMessageVersionResponse)(nil) +} +func (x fastReflection_QueryLocalMessageVersionResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryLocalMessageVersionResponse) +} +func (x fastReflection_QueryLocalMessageVersionResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryLocalMessageVersionResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryLocalMessageVersionResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryLocalMessageVersionResponse +} + +// 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_QueryLocalMessageVersionResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryLocalMessageVersionResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryLocalMessageVersionResponse) New() protoreflect.Message { + return new(fastReflection_QueryLocalMessageVersionResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryLocalMessageVersionResponse) Interface() protoreflect.ProtoMessage { + return (*QueryLocalMessageVersionResponse)(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_QueryLocalMessageVersionResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Version != uint32(0) { + value := protoreflect.ValueOfUint32(x.Version) + if !f(fd_QueryLocalMessageVersionResponse_version, 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_QueryLocalMessageVersionResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.QueryLocalMessageVersionResponse.version": + return x.Version != uint32(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryLocalMessageVersionResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryLocalMessageVersionResponse 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_QueryLocalMessageVersionResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.QueryLocalMessageVersionResponse.version": + x.Version = uint32(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryLocalMessageVersionResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryLocalMessageVersionResponse 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_QueryLocalMessageVersionResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.QueryLocalMessageVersionResponse.version": + value := x.Version + return protoreflect.ValueOfUint32(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryLocalMessageVersionResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryLocalMessageVersionResponse 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_QueryLocalMessageVersionResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.QueryLocalMessageVersionResponse.version": + x.Version = uint32(value.Uint()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryLocalMessageVersionResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryLocalMessageVersionResponse 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_QueryLocalMessageVersionResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.QueryLocalMessageVersionResponse.version": + panic(fmt.Errorf("field version of message circle.cctp.v1.QueryLocalMessageVersionResponse is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryLocalMessageVersionResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryLocalMessageVersionResponse 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_QueryLocalMessageVersionResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.QueryLocalMessageVersionResponse.version": + return protoreflect.ValueOfUint32(uint32(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryLocalMessageVersionResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryLocalMessageVersionResponse 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_QueryLocalMessageVersionResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.QueryLocalMessageVersionResponse", 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_QueryLocalMessageVersionResponse) 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_QueryLocalMessageVersionResponse) 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_QueryLocalMessageVersionResponse) 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_QueryLocalMessageVersionResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryLocalMessageVersionResponse) + 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.Version != 0 { + n += 1 + runtime.Sov(uint64(x.Version)) + } + 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().(*QueryLocalMessageVersionResponse) + 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.Version != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Version)) + 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().(*QueryLocalMessageVersionResponse) + 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: QueryLocalMessageVersionResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryLocalMessageVersionResponse: 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 Version", wireType) + } + x.Version = 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.Version |= 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_QueryLocalDomainRequest protoreflect.MessageDescriptor +) + +func init() { + file_circle_cctp_v1_query_proto_init() + md_QueryLocalDomainRequest = File_circle_cctp_v1_query_proto.Messages().ByName("QueryLocalDomainRequest") +} + +var _ protoreflect.Message = (*fastReflection_QueryLocalDomainRequest)(nil) + +type fastReflection_QueryLocalDomainRequest QueryLocalDomainRequest + +func (x *QueryLocalDomainRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryLocalDomainRequest)(x) +} + +func (x *QueryLocalDomainRequest) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_QueryLocalDomainRequest_messageType fastReflection_QueryLocalDomainRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryLocalDomainRequest_messageType{} + +type fastReflection_QueryLocalDomainRequest_messageType struct{} + +func (x fastReflection_QueryLocalDomainRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryLocalDomainRequest)(nil) +} +func (x fastReflection_QueryLocalDomainRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryLocalDomainRequest) +} +func (x fastReflection_QueryLocalDomainRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryLocalDomainRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryLocalDomainRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryLocalDomainRequest +} + +// 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_QueryLocalDomainRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryLocalDomainRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryLocalDomainRequest) New() protoreflect.Message { + return new(fastReflection_QueryLocalDomainRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryLocalDomainRequest) Interface() protoreflect.ProtoMessage { + return (*QueryLocalDomainRequest)(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_QueryLocalDomainRequest) 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_QueryLocalDomainRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryLocalDomainRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryLocalDomainRequest 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_QueryLocalDomainRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryLocalDomainRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryLocalDomainRequest 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_QueryLocalDomainRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryLocalDomainRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryLocalDomainRequest 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_QueryLocalDomainRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryLocalDomainRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryLocalDomainRequest 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_QueryLocalDomainRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryLocalDomainRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryLocalDomainRequest 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_QueryLocalDomainRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryLocalDomainRequest")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryLocalDomainRequest 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_QueryLocalDomainRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.QueryLocalDomainRequest", 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_QueryLocalDomainRequest) 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_QueryLocalDomainRequest) 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_QueryLocalDomainRequest) 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_QueryLocalDomainRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryLocalDomainRequest) + 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().(*QueryLocalDomainRequest) + 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().(*QueryLocalDomainRequest) + 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: QueryLocalDomainRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryLocalDomainRequest: 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_QueryLocalDomainResponse protoreflect.MessageDescriptor + fd_QueryLocalDomainResponse_domain_id protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_query_proto_init() + md_QueryLocalDomainResponse = File_circle_cctp_v1_query_proto.Messages().ByName("QueryLocalDomainResponse") + fd_QueryLocalDomainResponse_domain_id = md_QueryLocalDomainResponse.Fields().ByName("domain_id") +} + +var _ protoreflect.Message = (*fastReflection_QueryLocalDomainResponse)(nil) + +type fastReflection_QueryLocalDomainResponse QueryLocalDomainResponse + +func (x *QueryLocalDomainResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryLocalDomainResponse)(x) +} + +func (x *QueryLocalDomainResponse) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_QueryLocalDomainResponse_messageType fastReflection_QueryLocalDomainResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryLocalDomainResponse_messageType{} + +type fastReflection_QueryLocalDomainResponse_messageType struct{} + +func (x fastReflection_QueryLocalDomainResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryLocalDomainResponse)(nil) +} +func (x fastReflection_QueryLocalDomainResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryLocalDomainResponse) +} +func (x fastReflection_QueryLocalDomainResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryLocalDomainResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryLocalDomainResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryLocalDomainResponse +} + +// 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_QueryLocalDomainResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryLocalDomainResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryLocalDomainResponse) New() protoreflect.Message { + return new(fastReflection_QueryLocalDomainResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryLocalDomainResponse) Interface() protoreflect.ProtoMessage { + return (*QueryLocalDomainResponse)(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_QueryLocalDomainResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.DomainId != uint32(0) { + value := protoreflect.ValueOfUint32(x.DomainId) + if !f(fd_QueryLocalDomainResponse_domain_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_QueryLocalDomainResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.QueryLocalDomainResponse.domain_id": + return x.DomainId != uint32(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryLocalDomainResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryLocalDomainResponse 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_QueryLocalDomainResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.QueryLocalDomainResponse.domain_id": + x.DomainId = uint32(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryLocalDomainResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryLocalDomainResponse 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_QueryLocalDomainResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.QueryLocalDomainResponse.domain_id": + value := x.DomainId + return protoreflect.ValueOfUint32(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryLocalDomainResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryLocalDomainResponse 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_QueryLocalDomainResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.QueryLocalDomainResponse.domain_id": + x.DomainId = uint32(value.Uint()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryLocalDomainResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryLocalDomainResponse 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_QueryLocalDomainResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.QueryLocalDomainResponse.domain_id": + panic(fmt.Errorf("field domain_id of message circle.cctp.v1.QueryLocalDomainResponse is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryLocalDomainResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryLocalDomainResponse 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_QueryLocalDomainResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.QueryLocalDomainResponse.domain_id": + return protoreflect.ValueOfUint32(uint32(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.QueryLocalDomainResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.QueryLocalDomainResponse 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_QueryLocalDomainResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.QueryLocalDomainResponse", 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_QueryLocalDomainResponse) 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_QueryLocalDomainResponse) 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_QueryLocalDomainResponse) 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_QueryLocalDomainResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryLocalDomainResponse) + 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.DomainId != 0 { + n += 1 + runtime.Sov(uint64(x.DomainId)) + } + 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().(*QueryLocalDomainResponse) + 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.DomainId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.DomainId)) + 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().(*QueryLocalDomainResponse) + 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: QueryLocalDomainResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryLocalDomainResponse: 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 DomainId", wireType) + } + x.DomainId = 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.DomainId |= 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, + } +} + +// +// Copyright (c) 2023, Ā© Circle Internet Financial, LTD. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.0 +// protoc (unknown) +// source: circle/cctp/v1/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) +) + +// QueryRolesRequest is the request type for the Query/Roles RPC method. +type QueryRolesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *QueryRolesRequest) Reset() { + *x = QueryRolesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_query_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryRolesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryRolesRequest) ProtoMessage() {} + +// Deprecated: Use QueryRolesRequest.ProtoReflect.Descriptor instead. +func (*QueryRolesRequest) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_query_proto_rawDescGZIP(), []int{0} +} + +// QueryRolesResponse is the response type for the Query/Roles RPC method. +type QueryRolesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` + AttesterManager string `protobuf:"bytes,2,opt,name=attester_manager,json=attesterManager,proto3" json:"attester_manager,omitempty"` + Pauser string `protobuf:"bytes,3,opt,name=pauser,proto3" json:"pauser,omitempty"` + TokenController string `protobuf:"bytes,4,opt,name=token_controller,json=tokenController,proto3" json:"token_controller,omitempty"` +} + +func (x *QueryRolesResponse) Reset() { + *x = QueryRolesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_query_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryRolesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryRolesResponse) ProtoMessage() {} + +// Deprecated: Use QueryRolesResponse.ProtoReflect.Descriptor instead. +func (*QueryRolesResponse) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_query_proto_rawDescGZIP(), []int{1} +} + +func (x *QueryRolesResponse) GetOwner() string { + if x != nil { + return x.Owner + } + return "" +} + +func (x *QueryRolesResponse) GetAttesterManager() string { + if x != nil { + return x.AttesterManager + } + return "" +} + +func (x *QueryRolesResponse) GetPauser() string { + if x != nil { + return x.Pauser + } + return "" +} + +func (x *QueryRolesResponse) GetTokenController() string { + if x != nil { + return x.TokenController + } + return "" +} + +// QueryAttestersRequest is the request type for the Query/Attester RPC method. +type QueryGetAttesterRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Attester string `protobuf:"bytes,1,opt,name=attester,proto3" json:"attester,omitempty"` +} + +func (x *QueryGetAttesterRequest) Reset() { + *x = QueryGetAttesterRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_query_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryGetAttesterRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryGetAttesterRequest) ProtoMessage() {} + +// Deprecated: Use QueryGetAttesterRequest.ProtoReflect.Descriptor instead. +func (*QueryGetAttesterRequest) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_query_proto_rawDescGZIP(), []int{2} +} + +func (x *QueryGetAttesterRequest) GetAttester() string { + if x != nil { + return x.Attester + } + return "" +} + +// QueryAttestersResponse is the response type for the Query/Attester RPC +// method. +type QueryGetAttesterResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Attester *Attester `protobuf:"bytes,1,opt,name=attester,proto3" json:"attester,omitempty"` +} + +func (x *QueryGetAttesterResponse) Reset() { + *x = QueryGetAttesterResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_query_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryGetAttesterResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryGetAttesterResponse) ProtoMessage() {} + +// Deprecated: Use QueryGetAttesterResponse.ProtoReflect.Descriptor instead. +func (*QueryGetAttesterResponse) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_query_proto_rawDescGZIP(), []int{3} +} + +func (x *QueryGetAttesterResponse) GetAttester() *Attester { + if x != nil { + return x.Attester + } + return nil +} + +// QueryAllAttestersRequest is the request type for the Query/Attesters RPC +// method. +type QueryAllAttestersRequest 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 *QueryAllAttestersRequest) Reset() { + *x = QueryAllAttestersRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_query_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryAllAttestersRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryAllAttestersRequest) ProtoMessage() {} + +// Deprecated: Use QueryAllAttestersRequest.ProtoReflect.Descriptor instead. +func (*QueryAllAttestersRequest) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_query_proto_rawDescGZIP(), []int{4} +} + +func (x *QueryAllAttestersRequest) GetPagination() *v1beta1.PageRequest { + if x != nil { + return x.Pagination + } + return nil +} + +// QueryAllAttestersResponse is the response type for the Query/Attesters RPC +// method. +type QueryAllAttestersResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Attesters []*Attester `protobuf:"bytes,1,rep,name=attesters,proto3" json:"attesters,omitempty"` + Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (x *QueryAllAttestersResponse) Reset() { + *x = QueryAllAttestersResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_query_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryAllAttestersResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryAllAttestersResponse) ProtoMessage() {} + +// Deprecated: Use QueryAllAttestersResponse.ProtoReflect.Descriptor instead. +func (*QueryAllAttestersResponse) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_query_proto_rawDescGZIP(), []int{5} +} + +func (x *QueryAllAttestersResponse) GetAttesters() []*Attester { + if x != nil { + return x.Attesters + } + return nil +} + +func (x *QueryAllAttestersResponse) GetPagination() *v1beta1.PageResponse { + if x != nil { + return x.Pagination + } + return nil +} + +// QueryPerMessageBurnLimitRequest is the request type for the +// Query/PerMessageBurnLimit RPC method. +type QueryGetPerMessageBurnLimitRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"` +} + +func (x *QueryGetPerMessageBurnLimitRequest) Reset() { + *x = QueryGetPerMessageBurnLimitRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_query_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryGetPerMessageBurnLimitRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryGetPerMessageBurnLimitRequest) ProtoMessage() {} + +// Deprecated: Use QueryGetPerMessageBurnLimitRequest.ProtoReflect.Descriptor instead. +func (*QueryGetPerMessageBurnLimitRequest) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_query_proto_rawDescGZIP(), []int{6} +} + +func (x *QueryGetPerMessageBurnLimitRequest) GetDenom() string { + if x != nil { + return x.Denom + } + return "" +} + +// QueryPerMessageBurnLimitResponse is the response type for the +// Query/PerMessageBurnLimit RPC method. +type QueryGetPerMessageBurnLimitResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + BurnLimit *PerMessageBurnLimit `protobuf:"bytes,1,opt,name=burn_limit,json=burnLimit,proto3" json:"burn_limit,omitempty"` +} + +func (x *QueryGetPerMessageBurnLimitResponse) Reset() { + *x = QueryGetPerMessageBurnLimitResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_query_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryGetPerMessageBurnLimitResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryGetPerMessageBurnLimitResponse) ProtoMessage() {} + +// Deprecated: Use QueryGetPerMessageBurnLimitResponse.ProtoReflect.Descriptor instead. +func (*QueryGetPerMessageBurnLimitResponse) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_query_proto_rawDescGZIP(), []int{7} +} + +func (x *QueryGetPerMessageBurnLimitResponse) GetBurnLimit() *PerMessageBurnLimit { + if x != nil { + return x.BurnLimit + } + return nil +} + +// QueryAllPerMessageBurnLimitsRequest is the response type for the +// Query/PerMessageBurnLimit RPC method. +type QueryAllPerMessageBurnLimitsRequest 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 *QueryAllPerMessageBurnLimitsRequest) Reset() { + *x = QueryAllPerMessageBurnLimitsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_query_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryAllPerMessageBurnLimitsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryAllPerMessageBurnLimitsRequest) ProtoMessage() {} + +// Deprecated: Use QueryAllPerMessageBurnLimitsRequest.ProtoReflect.Descriptor instead. +func (*QueryAllPerMessageBurnLimitsRequest) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_query_proto_rawDescGZIP(), []int{8} +} + +func (x *QueryAllPerMessageBurnLimitsRequest) GetPagination() *v1beta1.PageRequest { + if x != nil { + return x.Pagination + } + return nil +} + +// QueryAllPerMessageBurnLimitsRequest is the response type for the +// Query/PerMessageBurnLimit RPC method. +type QueryAllPerMessageBurnLimitsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + BurnLimits []*PerMessageBurnLimit `protobuf:"bytes,1,rep,name=burn_limits,json=burnLimits,proto3" json:"burn_limits,omitempty"` + Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (x *QueryAllPerMessageBurnLimitsResponse) Reset() { + *x = QueryAllPerMessageBurnLimitsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_query_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryAllPerMessageBurnLimitsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryAllPerMessageBurnLimitsResponse) ProtoMessage() {} + +// Deprecated: Use QueryAllPerMessageBurnLimitsResponse.ProtoReflect.Descriptor instead. +func (*QueryAllPerMessageBurnLimitsResponse) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_query_proto_rawDescGZIP(), []int{9} +} + +func (x *QueryAllPerMessageBurnLimitsResponse) GetBurnLimits() []*PerMessageBurnLimit { + if x != nil { + return x.BurnLimits + } + return nil +} + +func (x *QueryAllPerMessageBurnLimitsResponse) GetPagination() *v1beta1.PageResponse { + if x != nil { + return x.Pagination + } + return nil +} + +// QueryBurningAndMintingPausedRequest is the request type for the +// Query/BurningAndMintingPaused RPC method. +type QueryGetBurningAndMintingPausedRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *QueryGetBurningAndMintingPausedRequest) Reset() { + *x = QueryGetBurningAndMintingPausedRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_query_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryGetBurningAndMintingPausedRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryGetBurningAndMintingPausedRequest) ProtoMessage() {} + +// Deprecated: Use QueryGetBurningAndMintingPausedRequest.ProtoReflect.Descriptor instead. +func (*QueryGetBurningAndMintingPausedRequest) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_query_proto_rawDescGZIP(), []int{10} +} + +// QueryBurningAndMintingPausedResponse is the response type for the +// Query/BurningAndMintingPaused RPC method. +type QueryGetBurningAndMintingPausedResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Paused *BurningAndMintingPaused `protobuf:"bytes,1,opt,name=paused,proto3" json:"paused,omitempty"` +} + +func (x *QueryGetBurningAndMintingPausedResponse) Reset() { + *x = QueryGetBurningAndMintingPausedResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_query_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryGetBurningAndMintingPausedResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryGetBurningAndMintingPausedResponse) ProtoMessage() {} + +// Deprecated: Use QueryGetBurningAndMintingPausedResponse.ProtoReflect.Descriptor instead. +func (*QueryGetBurningAndMintingPausedResponse) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_query_proto_rawDescGZIP(), []int{11} +} + +func (x *QueryGetBurningAndMintingPausedResponse) GetPaused() *BurningAndMintingPaused { + if x != nil { + return x.Paused + } + return nil +} + +// QuerySendingAndReceivingPausedRequest is the request type for the +// Query/SendingAndReceivingPaused RPC method. +type QueryGetSendingAndReceivingMessagesPausedRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *QueryGetSendingAndReceivingMessagesPausedRequest) Reset() { + *x = QueryGetSendingAndReceivingMessagesPausedRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_query_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryGetSendingAndReceivingMessagesPausedRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryGetSendingAndReceivingMessagesPausedRequest) ProtoMessage() {} + +// Deprecated: Use QueryGetSendingAndReceivingMessagesPausedRequest.ProtoReflect.Descriptor instead. +func (*QueryGetSendingAndReceivingMessagesPausedRequest) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_query_proto_rawDescGZIP(), []int{12} +} + +// QuerySendingAndReceivingPausedResponse is the response type for the +// Query/SendingAndReceivingPaused RPC method. +type QueryGetSendingAndReceivingMessagesPausedResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Paused *SendingAndReceivingMessagesPaused `protobuf:"bytes,1,opt,name=paused,proto3" json:"paused,omitempty"` +} + +func (x *QueryGetSendingAndReceivingMessagesPausedResponse) Reset() { + *x = QueryGetSendingAndReceivingMessagesPausedResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_query_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryGetSendingAndReceivingMessagesPausedResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryGetSendingAndReceivingMessagesPausedResponse) ProtoMessage() {} + +// Deprecated: Use QueryGetSendingAndReceivingMessagesPausedResponse.ProtoReflect.Descriptor instead. +func (*QueryGetSendingAndReceivingMessagesPausedResponse) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_query_proto_rawDescGZIP(), []int{13} +} + +func (x *QueryGetSendingAndReceivingMessagesPausedResponse) GetPaused() *SendingAndReceivingMessagesPaused { + if x != nil { + return x.Paused + } + return nil +} + +// QueryMaxMessageBodySizeRequest is the request type for the +// Query/MaxMessageBodySize RPC method. +type QueryGetMaxMessageBodySizeRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *QueryGetMaxMessageBodySizeRequest) Reset() { + *x = QueryGetMaxMessageBodySizeRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_query_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryGetMaxMessageBodySizeRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryGetMaxMessageBodySizeRequest) ProtoMessage() {} + +// Deprecated: Use QueryGetMaxMessageBodySizeRequest.ProtoReflect.Descriptor instead. +func (*QueryGetMaxMessageBodySizeRequest) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_query_proto_rawDescGZIP(), []int{14} +} + +// QueryMaxMessageBodySizeResponse is the response type for the +// Query/MaxMessageBodySize RPC method. +type QueryGetMaxMessageBodySizeResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Amount *MaxMessageBodySize `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"` +} + +func (x *QueryGetMaxMessageBodySizeResponse) Reset() { + *x = QueryGetMaxMessageBodySizeResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_query_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryGetMaxMessageBodySizeResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryGetMaxMessageBodySizeResponse) ProtoMessage() {} + +// Deprecated: Use QueryGetMaxMessageBodySizeResponse.ProtoReflect.Descriptor instead. +func (*QueryGetMaxMessageBodySizeResponse) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_query_proto_rawDescGZIP(), []int{15} +} + +func (x *QueryGetMaxMessageBodySizeResponse) GetAmount() *MaxMessageBodySize { + if x != nil { + return x.Amount + } + return nil +} + +// QueryGetNextAvailableNonceRequest is the request type for the +// Query/NextAvailableNonce RPC method. +type QueryGetNextAvailableNonceRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *QueryGetNextAvailableNonceRequest) Reset() { + *x = QueryGetNextAvailableNonceRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_query_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryGetNextAvailableNonceRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryGetNextAvailableNonceRequest) ProtoMessage() {} + +// Deprecated: Use QueryGetNextAvailableNonceRequest.ProtoReflect.Descriptor instead. +func (*QueryGetNextAvailableNonceRequest) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_query_proto_rawDescGZIP(), []int{16} +} + +// Query QueryGetNextAvailableNonceResponse is the response type for the +// Query/NextAvailableNonce RPC method. +type QueryGetNextAvailableNonceResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Nonce *Nonce `protobuf:"bytes,1,opt,name=nonce,proto3" json:"nonce,omitempty"` +} + +func (x *QueryGetNextAvailableNonceResponse) Reset() { + *x = QueryGetNextAvailableNonceResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_query_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryGetNextAvailableNonceResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryGetNextAvailableNonceResponse) ProtoMessage() {} + +// Deprecated: Use QueryGetNextAvailableNonceResponse.ProtoReflect.Descriptor instead. +func (*QueryGetNextAvailableNonceResponse) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_query_proto_rawDescGZIP(), []int{17} +} + +func (x *QueryGetNextAvailableNonceResponse) GetNonce() *Nonce { + if x != nil { + return x.Nonce + } + return nil +} + +// QuerySignatureThresholdRequest is the request type for the +// Query/SignatureThreshold RPC method. +type QueryGetSignatureThresholdRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *QueryGetSignatureThresholdRequest) Reset() { + *x = QueryGetSignatureThresholdRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_query_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryGetSignatureThresholdRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryGetSignatureThresholdRequest) ProtoMessage() {} + +// Deprecated: Use QueryGetSignatureThresholdRequest.ProtoReflect.Descriptor instead. +func (*QueryGetSignatureThresholdRequest) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_query_proto_rawDescGZIP(), []int{18} +} + +// QuerySignatureThresholdResponse is the response type for the +// Query/SignatureThreshold RPC method. +type QueryGetSignatureThresholdResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Amount *SignatureThreshold `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"` +} + +func (x *QueryGetSignatureThresholdResponse) Reset() { + *x = QueryGetSignatureThresholdResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_query_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryGetSignatureThresholdResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryGetSignatureThresholdResponse) ProtoMessage() {} + +// Deprecated: Use QueryGetSignatureThresholdResponse.ProtoReflect.Descriptor instead. +func (*QueryGetSignatureThresholdResponse) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_query_proto_rawDescGZIP(), []int{19} +} + +func (x *QueryGetSignatureThresholdResponse) GetAmount() *SignatureThreshold { + if x != nil { + return x.Amount + } + return nil +} + +// QueryGetTokenPairRequest is the request type for the Query/TokenPair RPC +// method. +type QueryGetTokenPairRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + RemoteDomain uint32 `protobuf:"varint,1,opt,name=remote_domain,json=remoteDomain,proto3" json:"remote_domain,omitempty"` + RemoteToken string `protobuf:"bytes,2,opt,name=remote_token,json=remoteToken,proto3" json:"remote_token,omitempty"` +} + +func (x *QueryGetTokenPairRequest) Reset() { + *x = QueryGetTokenPairRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_query_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryGetTokenPairRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryGetTokenPairRequest) ProtoMessage() {} + +// Deprecated: Use QueryGetTokenPairRequest.ProtoReflect.Descriptor instead. +func (*QueryGetTokenPairRequest) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_query_proto_rawDescGZIP(), []int{20} +} + +func (x *QueryGetTokenPairRequest) GetRemoteDomain() uint32 { + if x != nil { + return x.RemoteDomain + } + return 0 +} + +func (x *QueryGetTokenPairRequest) GetRemoteToken() string { + if x != nil { + return x.RemoteToken + } + return "" +} + +// QueryGetTokenPairResponse is the response type for the Query/TokenPair RPC +// method. +type QueryGetTokenPairResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Pair *TokenPair `protobuf:"bytes,1,opt,name=pair,proto3" json:"pair,omitempty"` +} + +func (x *QueryGetTokenPairResponse) Reset() { + *x = QueryGetTokenPairResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_query_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryGetTokenPairResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryGetTokenPairResponse) ProtoMessage() {} + +// Deprecated: Use QueryGetTokenPairResponse.ProtoReflect.Descriptor instead. +func (*QueryGetTokenPairResponse) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_query_proto_rawDescGZIP(), []int{21} +} + +func (x *QueryGetTokenPairResponse) GetPair() *TokenPair { + if x != nil { + return x.Pair + } + return nil +} + +// QueryAllTokenPairsRequest is the request type for the Query/TokenPairs RPC +// method. +type QueryAllTokenPairsRequest 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 *QueryAllTokenPairsRequest) Reset() { + *x = QueryAllTokenPairsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_query_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryAllTokenPairsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryAllTokenPairsRequest) ProtoMessage() {} + +// Deprecated: Use QueryAllTokenPairsRequest.ProtoReflect.Descriptor instead. +func (*QueryAllTokenPairsRequest) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_query_proto_rawDescGZIP(), []int{22} +} + +func (x *QueryAllTokenPairsRequest) GetPagination() *v1beta1.PageRequest { + if x != nil { + return x.Pagination + } + return nil +} + +// QueryAllTokenPairsResponse is the response type for the Query/TokenPairs RPC +// method. +type QueryAllTokenPairsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + TokenPairs []*TokenPair `protobuf:"bytes,1,rep,name=token_pairs,json=tokenPairs,proto3" json:"token_pairs,omitempty"` + Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (x *QueryAllTokenPairsResponse) Reset() { + *x = QueryAllTokenPairsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_query_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryAllTokenPairsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryAllTokenPairsResponse) ProtoMessage() {} + +// Deprecated: Use QueryAllTokenPairsResponse.ProtoReflect.Descriptor instead. +func (*QueryAllTokenPairsResponse) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_query_proto_rawDescGZIP(), []int{23} +} + +func (x *QueryAllTokenPairsResponse) GetTokenPairs() []*TokenPair { + if x != nil { + return x.TokenPairs + } + return nil +} + +func (x *QueryAllTokenPairsResponse) GetPagination() *v1beta1.PageResponse { + if x != nil { + return x.Pagination + } + return nil +} + +// QueryGetUsedNonceRequest is the request type for the Query/UsedNonce RPC +// method. +type QueryGetUsedNonceRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + SourceDomain uint32 `protobuf:"varint,1,opt,name=source_domain,json=sourceDomain,proto3" json:"source_domain,omitempty"` + Nonce uint64 `protobuf:"varint,2,opt,name=nonce,proto3" json:"nonce,omitempty"` +} + +func (x *QueryGetUsedNonceRequest) Reset() { + *x = QueryGetUsedNonceRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_query_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryGetUsedNonceRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryGetUsedNonceRequest) ProtoMessage() {} + +// Deprecated: Use QueryGetUsedNonceRequest.ProtoReflect.Descriptor instead. +func (*QueryGetUsedNonceRequest) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_query_proto_rawDescGZIP(), []int{24} +} + +func (x *QueryGetUsedNonceRequest) GetSourceDomain() uint32 { + if x != nil { + return x.SourceDomain + } + return 0 +} + +func (x *QueryGetUsedNonceRequest) GetNonce() uint64 { + if x != nil { + return x.Nonce + } + return 0 +} + +// QueryGetUsedNonceResponse is the response type for the Query/UsedNonce RPC +// method. +type QueryGetUsedNonceResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Nonce *Nonce `protobuf:"bytes,1,opt,name=nonce,proto3" json:"nonce,omitempty"` +} + +func (x *QueryGetUsedNonceResponse) Reset() { + *x = QueryGetUsedNonceResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_query_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryGetUsedNonceResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryGetUsedNonceResponse) ProtoMessage() {} + +// Deprecated: Use QueryGetUsedNonceResponse.ProtoReflect.Descriptor instead. +func (*QueryGetUsedNonceResponse) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_query_proto_rawDescGZIP(), []int{25} +} + +func (x *QueryGetUsedNonceResponse) GetNonce() *Nonce { + if x != nil { + return x.Nonce + } + return nil +} + +// QueryAllUsedNonceRequest is the request type for the Query/UsedNonces RPC +// method. +type QueryAllUsedNoncesRequest 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 *QueryAllUsedNoncesRequest) Reset() { + *x = QueryAllUsedNoncesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_query_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryAllUsedNoncesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryAllUsedNoncesRequest) ProtoMessage() {} + +// Deprecated: Use QueryAllUsedNoncesRequest.ProtoReflect.Descriptor instead. +func (*QueryAllUsedNoncesRequest) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_query_proto_rawDescGZIP(), []int{26} +} + +func (x *QueryAllUsedNoncesRequest) GetPagination() *v1beta1.PageRequest { + if x != nil { + return x.Pagination + } + return nil +} + +// QueryAllUsedNonceResponse is the response type for the Query/UsedNonces RPC +// method. +type QueryAllUsedNoncesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + UsedNonces []*Nonce `protobuf:"bytes,1,rep,name=used_nonces,json=usedNonces,proto3" json:"used_nonces,omitempty"` + Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (x *QueryAllUsedNoncesResponse) Reset() { + *x = QueryAllUsedNoncesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_query_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryAllUsedNoncesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryAllUsedNoncesResponse) ProtoMessage() {} + +// Deprecated: Use QueryAllUsedNoncesResponse.ProtoReflect.Descriptor instead. +func (*QueryAllUsedNoncesResponse) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_query_proto_rawDescGZIP(), []int{27} +} + +func (x *QueryAllUsedNoncesResponse) GetUsedNonces() []*Nonce { + if x != nil { + return x.UsedNonces + } + return nil +} + +func (x *QueryAllUsedNoncesResponse) GetPagination() *v1beta1.PageResponse { + if x != nil { + return x.Pagination + } + return nil +} + +// QueryRemoteTokenMessengerRequest is the request type for the +// Query/RemoteTokenMessenger RPC method. +type QueryRemoteTokenMessengerRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + DomainId uint32 `protobuf:"varint,1,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"` +} + +func (x *QueryRemoteTokenMessengerRequest) Reset() { + *x = QueryRemoteTokenMessengerRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_query_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryRemoteTokenMessengerRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryRemoteTokenMessengerRequest) ProtoMessage() {} + +// Deprecated: Use QueryRemoteTokenMessengerRequest.ProtoReflect.Descriptor instead. +func (*QueryRemoteTokenMessengerRequest) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_query_proto_rawDescGZIP(), []int{28} +} + +func (x *QueryRemoteTokenMessengerRequest) GetDomainId() uint32 { + if x != nil { + return x.DomainId + } + return 0 +} + +// QueryRemoteTokenMessengerResponse is the response type for the +// Query/RemoteTokenMessenger RPC method. +type QueryRemoteTokenMessengerResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + RemoteTokenMessenger *RemoteTokenMessenger `protobuf:"bytes,1,opt,name=remote_token_messenger,json=remoteTokenMessenger,proto3" json:"remote_token_messenger,omitempty"` +} + +func (x *QueryRemoteTokenMessengerResponse) Reset() { + *x = QueryRemoteTokenMessengerResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_query_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryRemoteTokenMessengerResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryRemoteTokenMessengerResponse) ProtoMessage() {} + +// Deprecated: Use QueryRemoteTokenMessengerResponse.ProtoReflect.Descriptor instead. +func (*QueryRemoteTokenMessengerResponse) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_query_proto_rawDescGZIP(), []int{29} +} + +func (x *QueryRemoteTokenMessengerResponse) GetRemoteTokenMessenger() *RemoteTokenMessenger { + if x != nil { + return x.RemoteTokenMessenger + } + return nil +} + +// QueryRemoteTokenMessengersRequest is the request type for the +// Query/RemoteTokenMessengers RPC method. +type QueryRemoteTokenMessengersRequest 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 *QueryRemoteTokenMessengersRequest) Reset() { + *x = QueryRemoteTokenMessengersRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_query_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryRemoteTokenMessengersRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryRemoteTokenMessengersRequest) ProtoMessage() {} + +// Deprecated: Use QueryRemoteTokenMessengersRequest.ProtoReflect.Descriptor instead. +func (*QueryRemoteTokenMessengersRequest) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_query_proto_rawDescGZIP(), []int{30} +} + +func (x *QueryRemoteTokenMessengersRequest) GetPagination() *v1beta1.PageRequest { + if x != nil { + return x.Pagination + } + return nil +} + +// QueryRemoteTokenMessengersResponse is the response type for the +// Query/RemoteTokenMessengers RPC method. +type QueryRemoteTokenMessengersResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + RemoteTokenMessengers []*RemoteTokenMessenger `protobuf:"bytes,1,rep,name=remote_token_messengers,json=remoteTokenMessengers,proto3" json:"remote_token_messengers,omitempty"` + Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (x *QueryRemoteTokenMessengersResponse) Reset() { + *x = QueryRemoteTokenMessengersResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_query_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryRemoteTokenMessengersResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryRemoteTokenMessengersResponse) ProtoMessage() {} + +// Deprecated: Use QueryRemoteTokenMessengersResponse.ProtoReflect.Descriptor instead. +func (*QueryRemoteTokenMessengersResponse) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_query_proto_rawDescGZIP(), []int{31} +} + +func (x *QueryRemoteTokenMessengersResponse) GetRemoteTokenMessengers() []*RemoteTokenMessenger { + if x != nil { + return x.RemoteTokenMessengers + } + return nil +} + +func (x *QueryRemoteTokenMessengersResponse) GetPagination() *v1beta1.PageResponse { + if x != nil { + return x.Pagination + } + return nil +} + +// QueryBurnMessageVersionRequest is the request type for the +// Query/BurnMessageVersion RPC method. +type QueryBurnMessageVersionRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *QueryBurnMessageVersionRequest) Reset() { + *x = QueryBurnMessageVersionRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_query_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryBurnMessageVersionRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryBurnMessageVersionRequest) ProtoMessage() {} + +// Deprecated: Use QueryBurnMessageVersionRequest.ProtoReflect.Descriptor instead. +func (*QueryBurnMessageVersionRequest) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_query_proto_rawDescGZIP(), []int{32} +} + +// QueryBurnMessageVersionResponse is the response type for the +// Query/BurnMessageVersion RPC method. +type QueryBurnMessageVersionResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // version is the burn message version of the local domain. + Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` +} + +func (x *QueryBurnMessageVersionResponse) Reset() { + *x = QueryBurnMessageVersionResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_query_proto_msgTypes[33] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryBurnMessageVersionResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryBurnMessageVersionResponse) ProtoMessage() {} + +// Deprecated: Use QueryBurnMessageVersionResponse.ProtoReflect.Descriptor instead. +func (*QueryBurnMessageVersionResponse) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_query_proto_rawDescGZIP(), []int{33} +} + +func (x *QueryBurnMessageVersionResponse) GetVersion() uint32 { + if x != nil { + return x.Version + } + return 0 +} + +// QueryLocalMessageVersionRequest is the request type for the +// Query/LocalMessageVersion RPC method. +type QueryLocalMessageVersionRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *QueryLocalMessageVersionRequest) Reset() { + *x = QueryLocalMessageVersionRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_query_proto_msgTypes[34] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryLocalMessageVersionRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryLocalMessageVersionRequest) ProtoMessage() {} + +// Deprecated: Use QueryLocalMessageVersionRequest.ProtoReflect.Descriptor instead. +func (*QueryLocalMessageVersionRequest) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_query_proto_rawDescGZIP(), []int{34} +} + +// QueryLocalMessageVersionResponse is the response type for the +// Query/LocalMessageVersion RPC method. +type QueryLocalMessageVersionResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // version is the message version of the local domain. + Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` +} + +func (x *QueryLocalMessageVersionResponse) Reset() { + *x = QueryLocalMessageVersionResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_query_proto_msgTypes[35] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryLocalMessageVersionResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryLocalMessageVersionResponse) ProtoMessage() {} + +// Deprecated: Use QueryLocalMessageVersionResponse.ProtoReflect.Descriptor instead. +func (*QueryLocalMessageVersionResponse) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_query_proto_rawDescGZIP(), []int{35} +} + +func (x *QueryLocalMessageVersionResponse) GetVersion() uint32 { + if x != nil { + return x.Version + } + return 0 +} + +// QueryLocalDomainRequest is the request type for the Query/LocalDomain RPC +// method. +type QueryLocalDomainRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *QueryLocalDomainRequest) Reset() { + *x = QueryLocalDomainRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_query_proto_msgTypes[36] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryLocalDomainRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryLocalDomainRequest) ProtoMessage() {} + +// Deprecated: Use QueryLocalDomainRequest.ProtoReflect.Descriptor instead. +func (*QueryLocalDomainRequest) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_query_proto_rawDescGZIP(), []int{36} +} + +// QueryLocalDomainResponse is the response type for the Query/LocalDomain RPC +// method. +type QueryLocalDomainResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // domain_id is the id of the local domain. + DomainId uint32 `protobuf:"varint,1,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"` +} + +func (x *QueryLocalDomainResponse) Reset() { + *x = QueryLocalDomainResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_query_proto_msgTypes[37] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryLocalDomainResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryLocalDomainResponse) ProtoMessage() {} + +// Deprecated: Use QueryLocalDomainResponse.ProtoReflect.Descriptor instead. +func (*QueryLocalDomainResponse) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_query_proto_rawDescGZIP(), []int{37} +} + +func (x *QueryLocalDomainResponse) GetDomainId() uint32 { + if x != nil { + return x.DomainId + } + return 0 +} + +var File_circle_cctp_v1_query_proto protoreflect.FileDescriptor + +var file_circle_cctp_v1_query_proto_rawDesc = []byte{ + 0x0a, 0x1a, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2f, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x76, 0x31, + 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x63, 0x69, + 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x1a, 0x1d, 0x63, 0x69, + 0x72, 0x63, 0x6c, 0x65, 0x2f, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x74, 0x74, + 0x65, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2f, 0x63, 0x69, 0x72, + 0x63, 0x6c, 0x65, 0x2f, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x75, 0x72, 0x6e, + 0x69, 0x6e, 0x67, 0x5f, 0x61, 0x6e, 0x64, 0x5f, 0x6d, 0x69, 0x6e, 0x74, 0x69, 0x6e, 0x67, 0x5f, + 0x70, 0x61, 0x75, 0x73, 0x65, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2a, 0x63, 0x69, + 0x72, 0x63, 0x6c, 0x65, 0x2f, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x61, 0x78, + 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x62, 0x6f, 0x64, 0x79, 0x5f, 0x73, 0x69, + 0x7a, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1a, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, + 0x2f, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x76, 0x31, 0x2f, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2b, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2f, 0x63, 0x63, 0x74, + 0x70, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x65, 0x72, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, + 0x5f, 0x62, 0x75, 0x72, 0x6e, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x1a, 0x2b, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2f, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x76, + 0x31, 0x2f, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x6d, + 0x65, 0x73, 0x73, 0x65, 0x6e, 0x67, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x3a, + 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2f, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x76, 0x31, 0x2f, 0x73, + 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x61, 0x6e, 0x64, 0x5f, 0x72, 0x65, 0x63, 0x65, 0x69, + 0x76, 0x69, 0x6e, 0x67, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x5f, 0x70, 0x61, + 0x75, 0x73, 0x65, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x28, 0x63, 0x69, 0x72, 0x63, + 0x6c, 0x65, 0x2f, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x69, 0x67, 0x6e, 0x61, + 0x74, 0x75, 0x72, 0x65, 0x5f, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2f, 0x63, 0x63, 0x74, + 0x70, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x70, 0x61, 0x69, 0x72, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 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, 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, 0x22, 0x13, 0x0a, 0x11, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x6f, + 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x98, 0x01, 0x0a, 0x12, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x29, 0x0a, 0x10, 0x61, 0x74, 0x74, 0x65, 0x73, + 0x74, 0x65, 0x72, 0x5f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0f, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x65, 0x72, 0x4d, 0x61, 0x6e, 0x61, 0x67, + 0x65, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x61, 0x75, 0x73, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x06, 0x70, 0x61, 0x75, 0x73, 0x65, 0x72, 0x12, 0x29, 0x0a, 0x10, 0x74, 0x6f, + 0x6b, 0x65, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x72, + 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x22, 0x35, 0x0a, 0x17, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, + 0x74, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x08, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x65, 0x72, 0x22, 0x56, 0x0a, 0x18, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x65, 0x72, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3a, 0x0a, 0x08, 0x61, 0x74, 0x74, 0x65, + 0x73, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x63, 0x69, 0x72, + 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x74, 0x74, 0x65, + 0x73, 0x74, 0x65, 0x72, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x08, 0x61, 0x74, 0x74, 0x65, + 0x73, 0x74, 0x65, 0x72, 0x22, 0x62, 0x0a, 0x18, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, + 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x65, 0x72, 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, 0xa2, 0x01, 0x0a, 0x19, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3c, 0x0a, 0x09, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, + 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x63, 0x69, 0x72, 0x63, + 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x74, 0x74, 0x65, 0x73, + 0x74, 0x65, 0x72, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x09, 0x61, 0x74, 0x74, 0x65, 0x73, + 0x74, 0x65, 0x72, 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, 0x3a, 0x0a, + 0x22, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x50, 0x65, 0x72, 0x4d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x42, 0x75, 0x72, 0x6e, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x05, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x22, 0x6f, 0x0a, 0x23, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x47, 0x65, 0x74, 0x50, 0x65, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x42, + 0x75, 0x72, 0x6e, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x48, 0x0a, 0x0a, 0x62, 0x75, 0x72, 0x6e, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, + 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x65, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, + 0x42, 0x75, 0x72, 0x6e, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, + 0x09, 0x62, 0x75, 0x72, 0x6e, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x22, 0x6d, 0x0a, 0x23, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x50, 0x65, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, + 0x42, 0x75, 0x72, 0x6e, 0x4c, 0x69, 0x6d, 0x69, 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, 0xbb, 0x01, 0x0a, 0x24, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x50, 0x65, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, + 0x42, 0x75, 0x72, 0x6e, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x4a, 0x0a, 0x0b, 0x62, 0x75, 0x72, 0x6e, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, + 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, + 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x65, 0x72, 0x4d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x42, 0x75, 0x72, 0x6e, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x42, 0x04, 0xc8, 0xde, + 0x1f, 0x00, 0x52, 0x0a, 0x62, 0x75, 0x72, 0x6e, 0x4c, 0x69, 0x6d, 0x69, 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, 0x28, 0x0a, 0x26, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x47, 0x65, 0x74, 0x42, 0x75, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x41, 0x6e, 0x64, 0x4d, 0x69, 0x6e, + 0x74, 0x69, 0x6e, 0x67, 0x50, 0x61, 0x75, 0x73, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x22, 0x70, 0x0a, 0x27, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x42, 0x75, 0x72, + 0x6e, 0x69, 0x6e, 0x67, 0x41, 0x6e, 0x64, 0x4d, 0x69, 0x6e, 0x74, 0x69, 0x6e, 0x67, 0x50, 0x61, + 0x75, 0x73, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x45, 0x0a, 0x06, + 0x70, 0x61, 0x75, 0x73, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, + 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x75, + 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x41, 0x6e, 0x64, 0x4d, 0x69, 0x6e, 0x74, 0x69, 0x6e, 0x67, 0x50, + 0x61, 0x75, 0x73, 0x65, 0x64, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, 0x70, 0x61, 0x75, + 0x73, 0x65, 0x64, 0x22, 0x32, 0x0a, 0x30, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x53, + 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x41, 0x6e, 0x64, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x69, + 0x6e, 0x67, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x50, 0x61, 0x75, 0x73, 0x65, 0x64, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x84, 0x01, 0x0a, 0x31, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x47, 0x65, 0x74, 0x53, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x41, 0x6e, 0x64, 0x52, 0x65, + 0x63, 0x65, 0x69, 0x76, 0x69, 0x6e, 0x67, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x50, + 0x61, 0x75, 0x73, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4f, 0x0a, + 0x06, 0x70, 0x61, 0x75, 0x73, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, + 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x53, + 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x41, 0x6e, 0x64, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x69, + 0x6e, 0x67, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x50, 0x61, 0x75, 0x73, 0x65, 0x64, + 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, 0x70, 0x61, 0x75, 0x73, 0x65, 0x64, 0x22, 0x23, + 0x0a, 0x21, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x4d, 0x61, 0x78, 0x4d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x42, 0x6f, 0x64, 0x79, 0x53, 0x69, 0x7a, 0x65, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x22, 0x66, 0x0a, 0x22, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x4d, + 0x61, 0x78, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x42, 0x6f, 0x64, 0x79, 0x53, 0x69, 0x7a, + 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x40, 0x0a, 0x06, 0x61, 0x6d, 0x6f, + 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x63, 0x69, 0x72, 0x63, + 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x78, 0x4d, 0x65, + 0x73, 0x73, 0x61, 0x67, 0x65, 0x42, 0x6f, 0x64, 0x79, 0x53, 0x69, 0x7a, 0x65, 0x42, 0x04, 0xc8, + 0xde, 0x1f, 0x00, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x23, 0x0a, 0x21, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x4e, 0x65, 0x78, 0x74, 0x41, 0x76, 0x61, 0x69, 0x6c, + 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x22, 0x57, 0x0a, 0x22, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x4e, 0x65, 0x78, 0x74, + 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x31, 0x0a, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, + 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x42, 0x04, 0xc8, 0xde, + 0x1f, 0x00, 0x52, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x22, 0x23, 0x0a, 0x21, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x47, 0x65, 0x74, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x54, 0x68, + 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x66, + 0x0a, 0x22, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, + 0x75, 0x72, 0x65, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x40, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, + 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x54, + 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, + 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x62, 0x0a, 0x18, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, + 0x65, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x50, 0x61, 0x69, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x64, 0x6f, 0x6d, + 0x61, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0c, 0x72, 0x65, 0x6d, 0x6f, 0x74, + 0x65, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x65, 0x6d, 0x6f, 0x74, + 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x72, + 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x50, 0x0a, 0x19, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x50, 0x61, 0x69, 0x72, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x33, 0x0a, 0x04, 0x70, 0x61, 0x69, 0x72, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, + 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x50, 0x61, 0x69, 0x72, + 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x04, 0x70, 0x61, 0x69, 0x72, 0x22, 0x63, 0x0a, 0x19, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x50, 0x61, 0x69, + 0x72, 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, 0xa7, 0x01, 0x0a, 0x1a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x54, 0x6f, + 0x6b, 0x65, 0x6e, 0x50, 0x61, 0x69, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x40, 0x0a, 0x0b, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x70, 0x61, 0x69, 0x72, 0x73, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, + 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x50, 0x61, 0x69, 0x72, + 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0a, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x50, 0x61, 0x69, + 0x72, 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, 0x55, 0x0a, 0x18, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x64, 0x4e, 0x6f, 0x6e, 0x63, 0x65, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0c, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x14, 0x0a, 0x05, + 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6e, 0x6f, 0x6e, + 0x63, 0x65, 0x22, 0x4e, 0x0a, 0x19, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x55, 0x73, + 0x65, 0x64, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x31, 0x0a, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, + 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, + 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x05, 0x6e, 0x6f, 0x6e, + 0x63, 0x65, 0x22, 0x63, 0x0a, 0x19, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x55, 0x73, + 0x65, 0x64, 0x4e, 0x6f, 0x6e, 0x63, 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, 0xa3, 0x01, 0x0a, 0x1a, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x41, 0x6c, 0x6c, 0x55, 0x73, 0x65, 0x64, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3c, 0x0a, 0x0b, 0x75, 0x73, 0x65, 0x64, 0x5f, 0x6e, + 0x6f, 0x6e, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x63, 0x69, + 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x6f, 0x6e, + 0x63, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0a, 0x75, 0x73, 0x65, 0x64, 0x4e, 0x6f, + 0x6e, 0x63, 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, 0x3f, 0x0a, + 0x20, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x54, 0x6f, 0x6b, 0x65, + 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x65, 0x6e, 0x67, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x22, 0x85, + 0x01, 0x0a, 0x21, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x54, 0x6f, + 0x6b, 0x65, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x65, 0x6e, 0x67, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x60, 0x0a, 0x16, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x74, + 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x65, 0x6e, 0x67, 0x65, 0x72, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, + 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x54, 0x6f, 0x6b, 0x65, + 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x65, 0x6e, 0x67, 0x65, 0x72, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, + 0x52, 0x14, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x4d, 0x65, 0x73, + 0x73, 0x65, 0x6e, 0x67, 0x65, 0x72, 0x22, 0x6b, 0x0a, 0x21, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, + 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x65, 0x6e, + 0x67, 0x65, 0x72, 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, 0xd1, 0x01, 0x0a, 0x22, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x6d, + 0x6f, 0x74, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x65, 0x6e, 0x67, 0x65, + 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x62, 0x0a, 0x17, 0x72, 0x65, + 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x65, + 0x6e, 0x67, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x63, 0x69, + 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6d, + 0x6f, 0x74, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x65, 0x6e, 0x67, 0x65, + 0x72, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x15, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x54, + 0x6f, 0x6b, 0x65, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x65, 0x6e, 0x67, 0x65, 0x72, 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, 0x20, 0x0a, 0x1e, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x42, 0x75, 0x72, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, + 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x3b, 0x0a, 0x1f, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x42, 0x75, 0x72, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x56, 0x65, 0x72, + 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, + 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x76, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x21, 0x0a, 0x1f, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, + 0x6f, 0x63, 0x61, 0x6c, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, + 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x3c, 0x0a, 0x20, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x56, 0x65, + 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, + 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, + 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x19, 0x0a, 0x17, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x22, 0x37, 0x0a, 0x18, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x6f, 0x63, 0x61, 0x6c, + 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1b, + 0x0a, 0x09, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0d, 0x52, 0x08, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x32, 0xcb, 0x18, 0x0a, 0x05, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x6d, 0x0a, 0x05, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x12, 0x21, + 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x22, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, + 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17, 0x12, 0x15, 0x2f, + 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2f, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x76, 0x31, 0x2f, 0x72, + 0x6f, 0x6c, 0x65, 0x73, 0x12, 0x8b, 0x01, 0x0a, 0x08, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x65, + 0x72, 0x12, 0x27, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, + 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x41, 0x74, 0x74, 0x65, 0x73, + 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x63, 0x69, 0x72, + 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x47, 0x65, 0x74, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x26, 0x12, 0x24, 0x2f, 0x63, + 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2f, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x74, + 0x74, 0x65, 0x73, 0x74, 0x65, 0x72, 0x73, 0x2f, 0x7b, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x65, + 0x72, 0x7d, 0x12, 0x83, 0x01, 0x0a, 0x09, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x65, 0x72, 0x73, + 0x12, 0x28, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, + 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, + 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x63, 0x69, 0x72, + 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x41, 0x6c, 0x6c, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x21, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1b, 0x12, 0x19, 0x2f, + 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2f, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x76, 0x31, 0x2f, 0x61, + 0x74, 0x74, 0x65, 0x73, 0x74, 0x65, 0x72, 0x73, 0x12, 0xb7, 0x01, 0x0a, 0x13, 0x50, 0x65, 0x72, + 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x42, 0x75, 0x72, 0x6e, 0x4c, 0x69, 0x6d, 0x69, 0x74, + 0x12, 0x32, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, + 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x50, 0x65, 0x72, 0x4d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x42, 0x75, 0x72, 0x6e, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, + 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x50, 0x65, + 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x42, 0x75, 0x72, 0x6e, 0x4c, 0x69, 0x6d, 0x69, + 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x37, 0x82, 0xd3, 0xe4, 0x93, 0x02, + 0x31, 0x12, 0x2f, 0x2f, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2f, 0x63, 0x63, 0x74, 0x70, 0x2f, + 0x76, 0x31, 0x2f, 0x70, 0x65, 0x72, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x62, + 0x75, 0x72, 0x6e, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x73, 0x2f, 0x7b, 0x64, 0x65, 0x6e, 0x6f, + 0x6d, 0x7d, 0x12, 0xb2, 0x01, 0x0a, 0x14, 0x50, 0x65, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, + 0x65, 0x42, 0x75, 0x72, 0x6e, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x73, 0x12, 0x33, 0x2e, 0x63, 0x69, + 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x50, 0x65, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x42, + 0x75, 0x72, 0x6e, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x34, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, + 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x50, 0x65, 0x72, 0x4d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x42, 0x75, 0x72, 0x6e, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x29, 0x12, 0x27, + 0x2f, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2f, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x76, 0x31, 0x2f, + 0x70, 0x65, 0x72, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x62, 0x75, 0x72, 0x6e, + 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x73, 0x12, 0xbe, 0x01, 0x0a, 0x17, 0x42, 0x75, 0x72, 0x6e, + 0x69, 0x6e, 0x67, 0x41, 0x6e, 0x64, 0x4d, 0x69, 0x6e, 0x74, 0x69, 0x6e, 0x67, 0x50, 0x61, 0x75, + 0x73, 0x65, 0x64, 0x12, 0x36, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, + 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x42, 0x75, 0x72, + 0x6e, 0x69, 0x6e, 0x67, 0x41, 0x6e, 0x64, 0x4d, 0x69, 0x6e, 0x74, 0x69, 0x6e, 0x67, 0x50, 0x61, + 0x75, 0x73, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x37, 0x2e, 0x63, 0x69, + 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x47, 0x65, 0x74, 0x42, 0x75, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x41, 0x6e, 0x64, 0x4d, + 0x69, 0x6e, 0x74, 0x69, 0x6e, 0x67, 0x50, 0x61, 0x75, 0x73, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x32, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2c, 0x12, 0x2a, 0x2f, 0x63, + 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2f, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x75, + 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x5f, 0x61, 0x6e, 0x64, 0x5f, 0x6d, 0x69, 0x6e, 0x74, 0x69, 0x6e, + 0x67, 0x5f, 0x70, 0x61, 0x75, 0x73, 0x65, 0x64, 0x12, 0xe7, 0x01, 0x0a, 0x21, 0x53, 0x65, 0x6e, + 0x64, 0x69, 0x6e, 0x67, 0x41, 0x6e, 0x64, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x69, 0x6e, 0x67, + 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x50, 0x61, 0x75, 0x73, 0x65, 0x64, 0x12, 0x40, + 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x53, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x41, + 0x6e, 0x64, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x69, 0x6e, 0x67, 0x4d, 0x65, 0x73, 0x73, 0x61, + 0x67, 0x65, 0x73, 0x50, 0x61, 0x75, 0x73, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x41, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, + 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x53, 0x65, 0x6e, 0x64, 0x69, 0x6e, + 0x67, 0x41, 0x6e, 0x64, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x69, 0x6e, 0x67, 0x4d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x73, 0x50, 0x61, 0x75, 0x73, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x3d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x37, 0x12, 0x35, 0x2f, 0x63, 0x69, + 0x72, 0x63, 0x6c, 0x65, 0x2f, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x6e, + 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x61, 0x6e, 0x64, 0x5f, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x69, + 0x6e, 0x67, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x5f, 0x70, 0x61, 0x75, 0x73, + 0x65, 0x64, 0x12, 0xaa, 0x01, 0x0a, 0x12, 0x4d, 0x61, 0x78, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, + 0x65, 0x42, 0x6f, 0x64, 0x79, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x31, 0x2e, 0x63, 0x69, 0x72, 0x63, + 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x47, 0x65, 0x74, 0x4d, 0x61, 0x78, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x42, 0x6f, 0x64, + 0x79, 0x53, 0x69, 0x7a, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x63, + 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x4d, 0x61, 0x78, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, + 0x42, 0x6f, 0x64, 0x79, 0x53, 0x69, 0x7a, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x2d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x27, 0x12, 0x25, 0x2f, 0x63, 0x69, 0x72, 0x63, 0x6c, + 0x65, 0x2f, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x61, 0x78, 0x5f, 0x6d, 0x65, + 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x62, 0x6f, 0x64, 0x79, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x12, + 0xa9, 0x01, 0x0a, 0x12, 0x4e, 0x65, 0x78, 0x74, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, + 0x65, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x12, 0x31, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, + 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, + 0x4e, 0x65, 0x78, 0x74, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x6f, 0x6e, + 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x63, 0x69, 0x72, 0x63, + 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x47, 0x65, 0x74, 0x4e, 0x65, 0x78, 0x74, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, + 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2c, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x26, 0x12, 0x24, 0x2f, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2f, 0x63, + 0x63, 0x74, 0x70, 0x2f, 0x76, 0x31, 0x2f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x61, 0x76, 0x61, 0x69, + 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x12, 0xa8, 0x01, 0x0a, 0x12, + 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, + 0x6c, 0x64, 0x12, 0x31, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, + 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x53, 0x69, 0x67, 0x6e, + 0x61, 0x74, 0x75, 0x72, 0x65, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, + 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x53, + 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, + 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2b, 0x82, 0xd3, 0xe4, 0x93, 0x02, + 0x25, 0x12, 0x23, 0x2f, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2f, 0x63, 0x63, 0x74, 0x70, 0x2f, + 0x76, 0x31, 0x2f, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x5f, 0x74, 0x68, 0x72, + 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x12, 0xa4, 0x01, 0x0a, 0x09, 0x54, 0x6f, 0x6b, 0x65, 0x6e, + 0x50, 0x61, 0x69, 0x72, 0x12, 0x28, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, + 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x54, 0x6f, + 0x6b, 0x65, 0x6e, 0x50, 0x61, 0x69, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, + 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x50, 0x61, 0x69, + 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x42, 0x82, 0xd3, 0xe4, 0x93, 0x02, + 0x3c, 0x12, 0x3a, 0x2f, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2f, 0x63, 0x63, 0x74, 0x70, 0x2f, + 0x76, 0x31, 0x2f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x70, 0x61, 0x69, 0x72, 0x73, 0x2f, 0x7b, + 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x7d, 0x2f, 0x7b, + 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x7d, 0x12, 0x88, 0x01, + 0x0a, 0x0a, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x50, 0x61, 0x69, 0x72, 0x73, 0x12, 0x29, 0x2e, 0x63, + 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x50, 0x61, 0x69, 0x72, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, + 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, + 0x6c, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x50, 0x61, 0x69, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x23, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x12, 0x1b, 0x2f, 0x63, 0x69, + 0x72, 0x63, 0x6c, 0x65, 0x2f, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x6f, 0x6b, + 0x65, 0x6e, 0x5f, 0x70, 0x61, 0x69, 0x72, 0x73, 0x12, 0x9d, 0x01, 0x0a, 0x09, 0x55, 0x73, 0x65, + 0x64, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x12, 0x28, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, + 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, + 0x55, 0x73, 0x65, 0x64, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x29, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, + 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x64, 0x4e, 0x6f, + 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3b, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x35, 0x12, 0x33, 0x2f, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2f, 0x63, 0x63, 0x74, + 0x70, 0x2f, 0x76, 0x31, 0x2f, 0x75, 0x73, 0x65, 0x64, 0x5f, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x73, + 0x2f, 0x7b, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x7d, + 0x2f, 0x7b, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x7d, 0x12, 0x88, 0x01, 0x0a, 0x0a, 0x55, 0x73, 0x65, + 0x64, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x29, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, + 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, + 0x6c, 0x55, 0x73, 0x65, 0x64, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, + 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x55, 0x73, 0x65, 0x64, + 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x23, + 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x12, 0x1b, 0x2f, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2f, + 0x63, 0x63, 0x74, 0x70, 0x2f, 0x76, 0x31, 0x2f, 0x75, 0x73, 0x65, 0x64, 0x5f, 0x6e, 0x6f, 0x6e, + 0x63, 0x65, 0x73, 0x12, 0xb8, 0x01, 0x0a, 0x14, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x54, 0x6f, + 0x6b, 0x65, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x65, 0x6e, 0x67, 0x65, 0x72, 0x12, 0x30, 0x2e, 0x63, + 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x4d, 0x65, + 0x73, 0x73, 0x65, 0x6e, 0x67, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, + 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, + 0x4d, 0x65, 0x73, 0x73, 0x65, 0x6e, 0x67, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x3b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x35, 0x12, 0x33, 0x2f, 0x63, 0x69, 0x72, 0x63, + 0x6c, 0x65, 0x2f, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x6d, 0x6f, 0x74, + 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x65, 0x6e, 0x67, 0x65, + 0x72, 0x73, 0x2f, 0x7b, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0xaf, + 0x01, 0x0a, 0x15, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x4d, 0x65, + 0x73, 0x73, 0x65, 0x6e, 0x67, 0x65, 0x72, 0x73, 0x12, 0x31, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, + 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, + 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x65, 0x6e, + 0x67, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x63, 0x69, + 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x4d, 0x65, 0x73, + 0x73, 0x65, 0x6e, 0x67, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x2f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x29, 0x12, 0x27, 0x2f, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, + 0x2f, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, + 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x65, 0x6e, 0x67, 0x65, 0x72, 0x73, + 0x12, 0xa3, 0x01, 0x0a, 0x12, 0x42, 0x75, 0x72, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, + 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x2e, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, + 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x75, + 0x72, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, + 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x75, + 0x72, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x26, + 0x12, 0x24, 0x2f, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2f, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x76, + 0x31, 0x2f, 0x62, 0x75, 0x72, 0x6e, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x76, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0xa7, 0x01, 0x0a, 0x13, 0x4c, 0x6f, 0x63, 0x61, 0x6c, + 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x2f, + 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, + 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x30, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, + 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x4d, 0x65, 0x73, 0x73, 0x61, + 0x67, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x2d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x27, 0x12, 0x25, 0x2f, 0x63, 0x69, 0x72, 0x63, + 0x6c, 0x65, 0x2f, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x76, 0x31, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x6c, + 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x12, 0x86, 0x01, 0x0a, 0x0b, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, + 0x12, 0x27, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, + 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x44, 0x6f, 0x6d, 0x61, + 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x63, 0x69, 0x72, 0x63, + 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x24, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1e, 0x12, 0x1c, 0x2f, 0x63, 0x69, + 0x72, 0x63, 0x6c, 0x65, 0x2f, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x76, 0x31, 0x2f, 0x6c, 0x6f, 0x63, + 0x61, 0x6c, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x42, 0xb5, 0x01, 0x0a, 0x12, 0x63, 0x6f, + 0x6d, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, + 0x42, 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x39, + 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x69, 0x72, 0x63, 0x6c, + 0x65, 0x66, 0x69, 0x6e, 0x2f, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2d, 0x63, 0x63, 0x74, 0x70, 0x2f, + 0x61, 0x70, 0x69, 0x2f, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2f, 0x63, 0x63, 0x74, 0x70, 0x2f, + 0x76, 0x31, 0x3b, 0x63, 0x63, 0x74, 0x70, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x43, 0x58, 0xaa, + 0x02, 0x0e, 0x43, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x43, 0x63, 0x74, 0x70, 0x2e, 0x56, 0x31, + 0xca, 0x02, 0x0e, 0x43, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x5c, 0x43, 0x63, 0x74, 0x70, 0x5c, 0x56, + 0x31, 0xe2, 0x02, 0x1a, 0x43, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x5c, 0x43, 0x63, 0x74, 0x70, 0x5c, + 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, + 0x10, 0x43, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x63, 0x74, 0x70, 0x3a, 0x3a, 0x56, + 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_circle_cctp_v1_query_proto_rawDescOnce sync.Once + file_circle_cctp_v1_query_proto_rawDescData = file_circle_cctp_v1_query_proto_rawDesc +) + +func file_circle_cctp_v1_query_proto_rawDescGZIP() []byte { + file_circle_cctp_v1_query_proto_rawDescOnce.Do(func() { + file_circle_cctp_v1_query_proto_rawDescData = protoimpl.X.CompressGZIP(file_circle_cctp_v1_query_proto_rawDescData) + }) + return file_circle_cctp_v1_query_proto_rawDescData +} + +var file_circle_cctp_v1_query_proto_msgTypes = make([]protoimpl.MessageInfo, 38) +var file_circle_cctp_v1_query_proto_goTypes = []interface{}{ + (*QueryRolesRequest)(nil), // 0: circle.cctp.v1.QueryRolesRequest + (*QueryRolesResponse)(nil), // 1: circle.cctp.v1.QueryRolesResponse + (*QueryGetAttesterRequest)(nil), // 2: circle.cctp.v1.QueryGetAttesterRequest + (*QueryGetAttesterResponse)(nil), // 3: circle.cctp.v1.QueryGetAttesterResponse + (*QueryAllAttestersRequest)(nil), // 4: circle.cctp.v1.QueryAllAttestersRequest + (*QueryAllAttestersResponse)(nil), // 5: circle.cctp.v1.QueryAllAttestersResponse + (*QueryGetPerMessageBurnLimitRequest)(nil), // 6: circle.cctp.v1.QueryGetPerMessageBurnLimitRequest + (*QueryGetPerMessageBurnLimitResponse)(nil), // 7: circle.cctp.v1.QueryGetPerMessageBurnLimitResponse + (*QueryAllPerMessageBurnLimitsRequest)(nil), // 8: circle.cctp.v1.QueryAllPerMessageBurnLimitsRequest + (*QueryAllPerMessageBurnLimitsResponse)(nil), // 9: circle.cctp.v1.QueryAllPerMessageBurnLimitsResponse + (*QueryGetBurningAndMintingPausedRequest)(nil), // 10: circle.cctp.v1.QueryGetBurningAndMintingPausedRequest + (*QueryGetBurningAndMintingPausedResponse)(nil), // 11: circle.cctp.v1.QueryGetBurningAndMintingPausedResponse + (*QueryGetSendingAndReceivingMessagesPausedRequest)(nil), // 12: circle.cctp.v1.QueryGetSendingAndReceivingMessagesPausedRequest + (*QueryGetSendingAndReceivingMessagesPausedResponse)(nil), // 13: circle.cctp.v1.QueryGetSendingAndReceivingMessagesPausedResponse + (*QueryGetMaxMessageBodySizeRequest)(nil), // 14: circle.cctp.v1.QueryGetMaxMessageBodySizeRequest + (*QueryGetMaxMessageBodySizeResponse)(nil), // 15: circle.cctp.v1.QueryGetMaxMessageBodySizeResponse + (*QueryGetNextAvailableNonceRequest)(nil), // 16: circle.cctp.v1.QueryGetNextAvailableNonceRequest + (*QueryGetNextAvailableNonceResponse)(nil), // 17: circle.cctp.v1.QueryGetNextAvailableNonceResponse + (*QueryGetSignatureThresholdRequest)(nil), // 18: circle.cctp.v1.QueryGetSignatureThresholdRequest + (*QueryGetSignatureThresholdResponse)(nil), // 19: circle.cctp.v1.QueryGetSignatureThresholdResponse + (*QueryGetTokenPairRequest)(nil), // 20: circle.cctp.v1.QueryGetTokenPairRequest + (*QueryGetTokenPairResponse)(nil), // 21: circle.cctp.v1.QueryGetTokenPairResponse + (*QueryAllTokenPairsRequest)(nil), // 22: circle.cctp.v1.QueryAllTokenPairsRequest + (*QueryAllTokenPairsResponse)(nil), // 23: circle.cctp.v1.QueryAllTokenPairsResponse + (*QueryGetUsedNonceRequest)(nil), // 24: circle.cctp.v1.QueryGetUsedNonceRequest + (*QueryGetUsedNonceResponse)(nil), // 25: circle.cctp.v1.QueryGetUsedNonceResponse + (*QueryAllUsedNoncesRequest)(nil), // 26: circle.cctp.v1.QueryAllUsedNoncesRequest + (*QueryAllUsedNoncesResponse)(nil), // 27: circle.cctp.v1.QueryAllUsedNoncesResponse + (*QueryRemoteTokenMessengerRequest)(nil), // 28: circle.cctp.v1.QueryRemoteTokenMessengerRequest + (*QueryRemoteTokenMessengerResponse)(nil), // 29: circle.cctp.v1.QueryRemoteTokenMessengerResponse + (*QueryRemoteTokenMessengersRequest)(nil), // 30: circle.cctp.v1.QueryRemoteTokenMessengersRequest + (*QueryRemoteTokenMessengersResponse)(nil), // 31: circle.cctp.v1.QueryRemoteTokenMessengersResponse + (*QueryBurnMessageVersionRequest)(nil), // 32: circle.cctp.v1.QueryBurnMessageVersionRequest + (*QueryBurnMessageVersionResponse)(nil), // 33: circle.cctp.v1.QueryBurnMessageVersionResponse + (*QueryLocalMessageVersionRequest)(nil), // 34: circle.cctp.v1.QueryLocalMessageVersionRequest + (*QueryLocalMessageVersionResponse)(nil), // 35: circle.cctp.v1.QueryLocalMessageVersionResponse + (*QueryLocalDomainRequest)(nil), // 36: circle.cctp.v1.QueryLocalDomainRequest + (*QueryLocalDomainResponse)(nil), // 37: circle.cctp.v1.QueryLocalDomainResponse + (*Attester)(nil), // 38: circle.cctp.v1.Attester + (*v1beta1.PageRequest)(nil), // 39: cosmos.base.query.v1beta1.PageRequest + (*v1beta1.PageResponse)(nil), // 40: cosmos.base.query.v1beta1.PageResponse + (*PerMessageBurnLimit)(nil), // 41: circle.cctp.v1.PerMessageBurnLimit + (*BurningAndMintingPaused)(nil), // 42: circle.cctp.v1.BurningAndMintingPaused + (*SendingAndReceivingMessagesPaused)(nil), // 43: circle.cctp.v1.SendingAndReceivingMessagesPaused + (*MaxMessageBodySize)(nil), // 44: circle.cctp.v1.MaxMessageBodySize + (*Nonce)(nil), // 45: circle.cctp.v1.Nonce + (*SignatureThreshold)(nil), // 46: circle.cctp.v1.SignatureThreshold + (*TokenPair)(nil), // 47: circle.cctp.v1.TokenPair + (*RemoteTokenMessenger)(nil), // 48: circle.cctp.v1.RemoteTokenMessenger +} +var file_circle_cctp_v1_query_proto_depIdxs = []int32{ + 38, // 0: circle.cctp.v1.QueryGetAttesterResponse.attester:type_name -> circle.cctp.v1.Attester + 39, // 1: circle.cctp.v1.QueryAllAttestersRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 38, // 2: circle.cctp.v1.QueryAllAttestersResponse.attesters:type_name -> circle.cctp.v1.Attester + 40, // 3: circle.cctp.v1.QueryAllAttestersResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 41, // 4: circle.cctp.v1.QueryGetPerMessageBurnLimitResponse.burn_limit:type_name -> circle.cctp.v1.PerMessageBurnLimit + 39, // 5: circle.cctp.v1.QueryAllPerMessageBurnLimitsRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 41, // 6: circle.cctp.v1.QueryAllPerMessageBurnLimitsResponse.burn_limits:type_name -> circle.cctp.v1.PerMessageBurnLimit + 40, // 7: circle.cctp.v1.QueryAllPerMessageBurnLimitsResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 42, // 8: circle.cctp.v1.QueryGetBurningAndMintingPausedResponse.paused:type_name -> circle.cctp.v1.BurningAndMintingPaused + 43, // 9: circle.cctp.v1.QueryGetSendingAndReceivingMessagesPausedResponse.paused:type_name -> circle.cctp.v1.SendingAndReceivingMessagesPaused + 44, // 10: circle.cctp.v1.QueryGetMaxMessageBodySizeResponse.amount:type_name -> circle.cctp.v1.MaxMessageBodySize + 45, // 11: circle.cctp.v1.QueryGetNextAvailableNonceResponse.nonce:type_name -> circle.cctp.v1.Nonce + 46, // 12: circle.cctp.v1.QueryGetSignatureThresholdResponse.amount:type_name -> circle.cctp.v1.SignatureThreshold + 47, // 13: circle.cctp.v1.QueryGetTokenPairResponse.pair:type_name -> circle.cctp.v1.TokenPair + 39, // 14: circle.cctp.v1.QueryAllTokenPairsRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 47, // 15: circle.cctp.v1.QueryAllTokenPairsResponse.token_pairs:type_name -> circle.cctp.v1.TokenPair + 40, // 16: circle.cctp.v1.QueryAllTokenPairsResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 45, // 17: circle.cctp.v1.QueryGetUsedNonceResponse.nonce:type_name -> circle.cctp.v1.Nonce + 39, // 18: circle.cctp.v1.QueryAllUsedNoncesRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 45, // 19: circle.cctp.v1.QueryAllUsedNoncesResponse.used_nonces:type_name -> circle.cctp.v1.Nonce + 40, // 20: circle.cctp.v1.QueryAllUsedNoncesResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 48, // 21: circle.cctp.v1.QueryRemoteTokenMessengerResponse.remote_token_messenger:type_name -> circle.cctp.v1.RemoteTokenMessenger + 39, // 22: circle.cctp.v1.QueryRemoteTokenMessengersRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 48, // 23: circle.cctp.v1.QueryRemoteTokenMessengersResponse.remote_token_messengers:type_name -> circle.cctp.v1.RemoteTokenMessenger + 40, // 24: circle.cctp.v1.QueryRemoteTokenMessengersResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 0, // 25: circle.cctp.v1.Query.Roles:input_type -> circle.cctp.v1.QueryRolesRequest + 2, // 26: circle.cctp.v1.Query.Attester:input_type -> circle.cctp.v1.QueryGetAttesterRequest + 4, // 27: circle.cctp.v1.Query.Attesters:input_type -> circle.cctp.v1.QueryAllAttestersRequest + 6, // 28: circle.cctp.v1.Query.PerMessageBurnLimit:input_type -> circle.cctp.v1.QueryGetPerMessageBurnLimitRequest + 8, // 29: circle.cctp.v1.Query.PerMessageBurnLimits:input_type -> circle.cctp.v1.QueryAllPerMessageBurnLimitsRequest + 10, // 30: circle.cctp.v1.Query.BurningAndMintingPaused:input_type -> circle.cctp.v1.QueryGetBurningAndMintingPausedRequest + 12, // 31: circle.cctp.v1.Query.SendingAndReceivingMessagesPaused:input_type -> circle.cctp.v1.QueryGetSendingAndReceivingMessagesPausedRequest + 14, // 32: circle.cctp.v1.Query.MaxMessageBodySize:input_type -> circle.cctp.v1.QueryGetMaxMessageBodySizeRequest + 16, // 33: circle.cctp.v1.Query.NextAvailableNonce:input_type -> circle.cctp.v1.QueryGetNextAvailableNonceRequest + 18, // 34: circle.cctp.v1.Query.SignatureThreshold:input_type -> circle.cctp.v1.QueryGetSignatureThresholdRequest + 20, // 35: circle.cctp.v1.Query.TokenPair:input_type -> circle.cctp.v1.QueryGetTokenPairRequest + 22, // 36: circle.cctp.v1.Query.TokenPairs:input_type -> circle.cctp.v1.QueryAllTokenPairsRequest + 24, // 37: circle.cctp.v1.Query.UsedNonce:input_type -> circle.cctp.v1.QueryGetUsedNonceRequest + 26, // 38: circle.cctp.v1.Query.UsedNonces:input_type -> circle.cctp.v1.QueryAllUsedNoncesRequest + 28, // 39: circle.cctp.v1.Query.RemoteTokenMessenger:input_type -> circle.cctp.v1.QueryRemoteTokenMessengerRequest + 30, // 40: circle.cctp.v1.Query.RemoteTokenMessengers:input_type -> circle.cctp.v1.QueryRemoteTokenMessengersRequest + 32, // 41: circle.cctp.v1.Query.BurnMessageVersion:input_type -> circle.cctp.v1.QueryBurnMessageVersionRequest + 34, // 42: circle.cctp.v1.Query.LocalMessageVersion:input_type -> circle.cctp.v1.QueryLocalMessageVersionRequest + 36, // 43: circle.cctp.v1.Query.LocalDomain:input_type -> circle.cctp.v1.QueryLocalDomainRequest + 1, // 44: circle.cctp.v1.Query.Roles:output_type -> circle.cctp.v1.QueryRolesResponse + 3, // 45: circle.cctp.v1.Query.Attester:output_type -> circle.cctp.v1.QueryGetAttesterResponse + 5, // 46: circle.cctp.v1.Query.Attesters:output_type -> circle.cctp.v1.QueryAllAttestersResponse + 7, // 47: circle.cctp.v1.Query.PerMessageBurnLimit:output_type -> circle.cctp.v1.QueryGetPerMessageBurnLimitResponse + 9, // 48: circle.cctp.v1.Query.PerMessageBurnLimits:output_type -> circle.cctp.v1.QueryAllPerMessageBurnLimitsResponse + 11, // 49: circle.cctp.v1.Query.BurningAndMintingPaused:output_type -> circle.cctp.v1.QueryGetBurningAndMintingPausedResponse + 13, // 50: circle.cctp.v1.Query.SendingAndReceivingMessagesPaused:output_type -> circle.cctp.v1.QueryGetSendingAndReceivingMessagesPausedResponse + 15, // 51: circle.cctp.v1.Query.MaxMessageBodySize:output_type -> circle.cctp.v1.QueryGetMaxMessageBodySizeResponse + 17, // 52: circle.cctp.v1.Query.NextAvailableNonce:output_type -> circle.cctp.v1.QueryGetNextAvailableNonceResponse + 19, // 53: circle.cctp.v1.Query.SignatureThreshold:output_type -> circle.cctp.v1.QueryGetSignatureThresholdResponse + 21, // 54: circle.cctp.v1.Query.TokenPair:output_type -> circle.cctp.v1.QueryGetTokenPairResponse + 23, // 55: circle.cctp.v1.Query.TokenPairs:output_type -> circle.cctp.v1.QueryAllTokenPairsResponse + 25, // 56: circle.cctp.v1.Query.UsedNonce:output_type -> circle.cctp.v1.QueryGetUsedNonceResponse + 27, // 57: circle.cctp.v1.Query.UsedNonces:output_type -> circle.cctp.v1.QueryAllUsedNoncesResponse + 29, // 58: circle.cctp.v1.Query.RemoteTokenMessenger:output_type -> circle.cctp.v1.QueryRemoteTokenMessengerResponse + 31, // 59: circle.cctp.v1.Query.RemoteTokenMessengers:output_type -> circle.cctp.v1.QueryRemoteTokenMessengersResponse + 33, // 60: circle.cctp.v1.Query.BurnMessageVersion:output_type -> circle.cctp.v1.QueryBurnMessageVersionResponse + 35, // 61: circle.cctp.v1.Query.LocalMessageVersion:output_type -> circle.cctp.v1.QueryLocalMessageVersionResponse + 37, // 62: circle.cctp.v1.Query.LocalDomain:output_type -> circle.cctp.v1.QueryLocalDomainResponse + 44, // [44:63] is the sub-list for method output_type + 25, // [25:44] is the sub-list for method input_type + 25, // [25:25] is the sub-list for extension type_name + 25, // [25:25] is the sub-list for extension extendee + 0, // [0:25] is the sub-list for field type_name +} + +func init() { file_circle_cctp_v1_query_proto_init() } +func file_circle_cctp_v1_query_proto_init() { + if File_circle_cctp_v1_query_proto != nil { + return + } + file_circle_cctp_v1_attester_proto_init() + file_circle_cctp_v1_burning_and_minting_paused_proto_init() + file_circle_cctp_v1_max_message_body_size_proto_init() + file_circle_cctp_v1_nonce_proto_init() + file_circle_cctp_v1_per_message_burn_limit_proto_init() + file_circle_cctp_v1_remote_token_messenger_proto_init() + file_circle_cctp_v1_sending_and_receiving_messages_paused_proto_init() + file_circle_cctp_v1_signature_threshold_proto_init() + file_circle_cctp_v1_token_pair_proto_init() + if !protoimpl.UnsafeEnabled { + file_circle_cctp_v1_query_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryRolesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_query_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryRolesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_query_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryGetAttesterRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_query_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryGetAttesterResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_query_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryAllAttestersRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_query_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryAllAttestersResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_query_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryGetPerMessageBurnLimitRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_query_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryGetPerMessageBurnLimitResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_query_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryAllPerMessageBurnLimitsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_query_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryAllPerMessageBurnLimitsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_query_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryGetBurningAndMintingPausedRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_query_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryGetBurningAndMintingPausedResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_query_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryGetSendingAndReceivingMessagesPausedRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_query_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryGetSendingAndReceivingMessagesPausedResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_query_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryGetMaxMessageBodySizeRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_query_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryGetMaxMessageBodySizeResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_query_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryGetNextAvailableNonceRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_query_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryGetNextAvailableNonceResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_query_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryGetSignatureThresholdRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_query_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryGetSignatureThresholdResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_query_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryGetTokenPairRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_query_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryGetTokenPairResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_query_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryAllTokenPairsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_query_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryAllTokenPairsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_query_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryGetUsedNonceRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_query_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryGetUsedNonceResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_query_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryAllUsedNoncesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_query_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryAllUsedNoncesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_query_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryRemoteTokenMessengerRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_query_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryRemoteTokenMessengerResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_query_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryRemoteTokenMessengersRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_query_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryRemoteTokenMessengersResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_query_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryBurnMessageVersionRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_query_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryBurnMessageVersionResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_query_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryLocalMessageVersionRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_query_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryLocalMessageVersionResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_query_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryLocalDomainRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_query_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryLocalDomainResponse); 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_circle_cctp_v1_query_proto_rawDesc, + NumEnums: 0, + NumMessages: 38, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_circle_cctp_v1_query_proto_goTypes, + DependencyIndexes: file_circle_cctp_v1_query_proto_depIdxs, + MessageInfos: file_circle_cctp_v1_query_proto_msgTypes, + }.Build() + File_circle_cctp_v1_query_proto = out.File + file_circle_cctp_v1_query_proto_rawDesc = nil + file_circle_cctp_v1_query_proto_goTypes = nil + file_circle_cctp_v1_query_proto_depIdxs = nil +} diff --git a/api/circle/cctp/v1/query_grpc.pb.go b/api/circle/cctp/v1/query_grpc.pb.go new file mode 100644 index 0000000..df7b4ef --- /dev/null +++ b/api/circle/cctp/v1/query_grpc.pb.go @@ -0,0 +1,820 @@ +// +// Copyright (c) 2023, Ā© Circle Internet Financial, LTD. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.3.0 +// - protoc (unknown) +// source: circle/cctp/v1/query.proto + +package cctpv1 + +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.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +const ( + Query_Roles_FullMethodName = "/circle.cctp.v1.Query/Roles" + Query_Attester_FullMethodName = "/circle.cctp.v1.Query/Attester" + Query_Attesters_FullMethodName = "/circle.cctp.v1.Query/Attesters" + Query_PerMessageBurnLimit_FullMethodName = "/circle.cctp.v1.Query/PerMessageBurnLimit" + Query_PerMessageBurnLimits_FullMethodName = "/circle.cctp.v1.Query/PerMessageBurnLimits" + Query_BurningAndMintingPaused_FullMethodName = "/circle.cctp.v1.Query/BurningAndMintingPaused" + Query_SendingAndReceivingMessagesPaused_FullMethodName = "/circle.cctp.v1.Query/SendingAndReceivingMessagesPaused" + Query_MaxMessageBodySize_FullMethodName = "/circle.cctp.v1.Query/MaxMessageBodySize" + Query_NextAvailableNonce_FullMethodName = "/circle.cctp.v1.Query/NextAvailableNonce" + Query_SignatureThreshold_FullMethodName = "/circle.cctp.v1.Query/SignatureThreshold" + Query_TokenPair_FullMethodName = "/circle.cctp.v1.Query/TokenPair" + Query_TokenPairs_FullMethodName = "/circle.cctp.v1.Query/TokenPairs" + Query_UsedNonce_FullMethodName = "/circle.cctp.v1.Query/UsedNonce" + Query_UsedNonces_FullMethodName = "/circle.cctp.v1.Query/UsedNonces" + Query_RemoteTokenMessenger_FullMethodName = "/circle.cctp.v1.Query/RemoteTokenMessenger" + Query_RemoteTokenMessengers_FullMethodName = "/circle.cctp.v1.Query/RemoteTokenMessengers" + Query_BurnMessageVersion_FullMethodName = "/circle.cctp.v1.Query/BurnMessageVersion" + Query_LocalMessageVersion_FullMethodName = "/circle.cctp.v1.Query/LocalMessageVersion" + Query_LocalDomain_FullMethodName = "/circle.cctp.v1.Query/LocalDomain" +) + +// 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. +type QueryClient interface { + Roles(ctx context.Context, in *QueryRolesRequest, opts ...grpc.CallOption) (*QueryRolesResponse, error) + // Queries an Attester by index + Attester(ctx context.Context, in *QueryGetAttesterRequest, opts ...grpc.CallOption) (*QueryGetAttesterResponse, error) + // Queries a list of Attesters + Attesters(ctx context.Context, in *QueryAllAttestersRequest, opts ...grpc.CallOption) (*QueryAllAttestersResponse, error) + // Queries a PerMessageBurnLimit by index + PerMessageBurnLimit(ctx context.Context, in *QueryGetPerMessageBurnLimitRequest, opts ...grpc.CallOption) (*QueryGetPerMessageBurnLimitResponse, error) + // Queries a list of PerMessageBurnLimits + PerMessageBurnLimits(ctx context.Context, in *QueryAllPerMessageBurnLimitsRequest, opts ...grpc.CallOption) (*QueryAllPerMessageBurnLimitsResponse, error) + // Queries BurningAndMintingPaused + BurningAndMintingPaused(ctx context.Context, in *QueryGetBurningAndMintingPausedRequest, opts ...grpc.CallOption) (*QueryGetBurningAndMintingPausedResponse, error) + // Queries SendingAndReceivingPaused + SendingAndReceivingMessagesPaused(ctx context.Context, in *QueryGetSendingAndReceivingMessagesPausedRequest, opts ...grpc.CallOption) (*QueryGetSendingAndReceivingMessagesPausedResponse, error) + // Queries the MaxMessageBodySize + MaxMessageBodySize(ctx context.Context, in *QueryGetMaxMessageBodySizeRequest, opts ...grpc.CallOption) (*QueryGetMaxMessageBodySizeResponse, error) + // Queries the NextAvailableNonce + NextAvailableNonce(ctx context.Context, in *QueryGetNextAvailableNonceRequest, opts ...grpc.CallOption) (*QueryGetNextAvailableNonceResponse, error) + // Queries the SignatureThreshold + SignatureThreshold(ctx context.Context, in *QueryGetSignatureThresholdRequest, opts ...grpc.CallOption) (*QueryGetSignatureThresholdResponse, error) + // Queries a TokenPair by index + TokenPair(ctx context.Context, in *QueryGetTokenPairRequest, opts ...grpc.CallOption) (*QueryGetTokenPairResponse, error) + // Queries a list of TokenPair + TokenPairs(ctx context.Context, in *QueryAllTokenPairsRequest, opts ...grpc.CallOption) (*QueryAllTokenPairsResponse, error) + // Queries a UsedNonce by index + UsedNonce(ctx context.Context, in *QueryGetUsedNonceRequest, opts ...grpc.CallOption) (*QueryGetUsedNonceResponse, error) + // Queries a list of UsedNonces + UsedNonces(ctx context.Context, in *QueryAllUsedNoncesRequest, opts ...grpc.CallOption) (*QueryAllUsedNoncesResponse, error) + // Query the RemoteTokenMessenger of a specific domain. + RemoteTokenMessenger(ctx context.Context, in *QueryRemoteTokenMessengerRequest, opts ...grpc.CallOption) (*QueryRemoteTokenMessengerResponse, error) + // Query all RemoteTokenMessenger's. + RemoteTokenMessengers(ctx context.Context, in *QueryRemoteTokenMessengersRequest, opts ...grpc.CallOption) (*QueryRemoteTokenMessengersResponse, error) + BurnMessageVersion(ctx context.Context, in *QueryBurnMessageVersionRequest, opts ...grpc.CallOption) (*QueryBurnMessageVersionResponse, error) + LocalMessageVersion(ctx context.Context, in *QueryLocalMessageVersionRequest, opts ...grpc.CallOption) (*QueryLocalMessageVersionResponse, error) + LocalDomain(ctx context.Context, in *QueryLocalDomainRequest, opts ...grpc.CallOption) (*QueryLocalDomainResponse, error) +} + +type queryClient struct { + cc grpc.ClientConnInterface +} + +func NewQueryClient(cc grpc.ClientConnInterface) QueryClient { + return &queryClient{cc} +} + +func (c *queryClient) Roles(ctx context.Context, in *QueryRolesRequest, opts ...grpc.CallOption) (*QueryRolesResponse, error) { + out := new(QueryRolesResponse) + err := c.cc.Invoke(ctx, Query_Roles_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) Attester(ctx context.Context, in *QueryGetAttesterRequest, opts ...grpc.CallOption) (*QueryGetAttesterResponse, error) { + out := new(QueryGetAttesterResponse) + err := c.cc.Invoke(ctx, Query_Attester_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) Attesters(ctx context.Context, in *QueryAllAttestersRequest, opts ...grpc.CallOption) (*QueryAllAttestersResponse, error) { + out := new(QueryAllAttestersResponse) + err := c.cc.Invoke(ctx, Query_Attesters_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) PerMessageBurnLimit(ctx context.Context, in *QueryGetPerMessageBurnLimitRequest, opts ...grpc.CallOption) (*QueryGetPerMessageBurnLimitResponse, error) { + out := new(QueryGetPerMessageBurnLimitResponse) + err := c.cc.Invoke(ctx, Query_PerMessageBurnLimit_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) PerMessageBurnLimits(ctx context.Context, in *QueryAllPerMessageBurnLimitsRequest, opts ...grpc.CallOption) (*QueryAllPerMessageBurnLimitsResponse, error) { + out := new(QueryAllPerMessageBurnLimitsResponse) + err := c.cc.Invoke(ctx, Query_PerMessageBurnLimits_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) BurningAndMintingPaused(ctx context.Context, in *QueryGetBurningAndMintingPausedRequest, opts ...grpc.CallOption) (*QueryGetBurningAndMintingPausedResponse, error) { + out := new(QueryGetBurningAndMintingPausedResponse) + err := c.cc.Invoke(ctx, Query_BurningAndMintingPaused_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) SendingAndReceivingMessagesPaused(ctx context.Context, in *QueryGetSendingAndReceivingMessagesPausedRequest, opts ...grpc.CallOption) (*QueryGetSendingAndReceivingMessagesPausedResponse, error) { + out := new(QueryGetSendingAndReceivingMessagesPausedResponse) + err := c.cc.Invoke(ctx, Query_SendingAndReceivingMessagesPaused_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) MaxMessageBodySize(ctx context.Context, in *QueryGetMaxMessageBodySizeRequest, opts ...grpc.CallOption) (*QueryGetMaxMessageBodySizeResponse, error) { + out := new(QueryGetMaxMessageBodySizeResponse) + err := c.cc.Invoke(ctx, Query_MaxMessageBodySize_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) NextAvailableNonce(ctx context.Context, in *QueryGetNextAvailableNonceRequest, opts ...grpc.CallOption) (*QueryGetNextAvailableNonceResponse, error) { + out := new(QueryGetNextAvailableNonceResponse) + err := c.cc.Invoke(ctx, Query_NextAvailableNonce_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) SignatureThreshold(ctx context.Context, in *QueryGetSignatureThresholdRequest, opts ...grpc.CallOption) (*QueryGetSignatureThresholdResponse, error) { + out := new(QueryGetSignatureThresholdResponse) + err := c.cc.Invoke(ctx, Query_SignatureThreshold_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) TokenPair(ctx context.Context, in *QueryGetTokenPairRequest, opts ...grpc.CallOption) (*QueryGetTokenPairResponse, error) { + out := new(QueryGetTokenPairResponse) + err := c.cc.Invoke(ctx, Query_TokenPair_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) TokenPairs(ctx context.Context, in *QueryAllTokenPairsRequest, opts ...grpc.CallOption) (*QueryAllTokenPairsResponse, error) { + out := new(QueryAllTokenPairsResponse) + err := c.cc.Invoke(ctx, Query_TokenPairs_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) UsedNonce(ctx context.Context, in *QueryGetUsedNonceRequest, opts ...grpc.CallOption) (*QueryGetUsedNonceResponse, error) { + out := new(QueryGetUsedNonceResponse) + err := c.cc.Invoke(ctx, Query_UsedNonce_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) UsedNonces(ctx context.Context, in *QueryAllUsedNoncesRequest, opts ...grpc.CallOption) (*QueryAllUsedNoncesResponse, error) { + out := new(QueryAllUsedNoncesResponse) + err := c.cc.Invoke(ctx, Query_UsedNonces_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) RemoteTokenMessenger(ctx context.Context, in *QueryRemoteTokenMessengerRequest, opts ...grpc.CallOption) (*QueryRemoteTokenMessengerResponse, error) { + out := new(QueryRemoteTokenMessengerResponse) + err := c.cc.Invoke(ctx, Query_RemoteTokenMessenger_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) RemoteTokenMessengers(ctx context.Context, in *QueryRemoteTokenMessengersRequest, opts ...grpc.CallOption) (*QueryRemoteTokenMessengersResponse, error) { + out := new(QueryRemoteTokenMessengersResponse) + err := c.cc.Invoke(ctx, Query_RemoteTokenMessengers_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) BurnMessageVersion(ctx context.Context, in *QueryBurnMessageVersionRequest, opts ...grpc.CallOption) (*QueryBurnMessageVersionResponse, error) { + out := new(QueryBurnMessageVersionResponse) + err := c.cc.Invoke(ctx, Query_BurnMessageVersion_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) LocalMessageVersion(ctx context.Context, in *QueryLocalMessageVersionRequest, opts ...grpc.CallOption) (*QueryLocalMessageVersionResponse, error) { + out := new(QueryLocalMessageVersionResponse) + err := c.cc.Invoke(ctx, Query_LocalMessageVersion_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) LocalDomain(ctx context.Context, in *QueryLocalDomainRequest, opts ...grpc.CallOption) (*QueryLocalDomainResponse, error) { + out := new(QueryLocalDomainResponse) + err := c.cc.Invoke(ctx, Query_LocalDomain_FullMethodName, in, out, opts...) + 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 +type QueryServer interface { + Roles(context.Context, *QueryRolesRequest) (*QueryRolesResponse, error) + // Queries an Attester by index + Attester(context.Context, *QueryGetAttesterRequest) (*QueryGetAttesterResponse, error) + // Queries a list of Attesters + Attesters(context.Context, *QueryAllAttestersRequest) (*QueryAllAttestersResponse, error) + // Queries a PerMessageBurnLimit by index + PerMessageBurnLimit(context.Context, *QueryGetPerMessageBurnLimitRequest) (*QueryGetPerMessageBurnLimitResponse, error) + // Queries a list of PerMessageBurnLimits + PerMessageBurnLimits(context.Context, *QueryAllPerMessageBurnLimitsRequest) (*QueryAllPerMessageBurnLimitsResponse, error) + // Queries BurningAndMintingPaused + BurningAndMintingPaused(context.Context, *QueryGetBurningAndMintingPausedRequest) (*QueryGetBurningAndMintingPausedResponse, error) + // Queries SendingAndReceivingPaused + SendingAndReceivingMessagesPaused(context.Context, *QueryGetSendingAndReceivingMessagesPausedRequest) (*QueryGetSendingAndReceivingMessagesPausedResponse, error) + // Queries the MaxMessageBodySize + MaxMessageBodySize(context.Context, *QueryGetMaxMessageBodySizeRequest) (*QueryGetMaxMessageBodySizeResponse, error) + // Queries the NextAvailableNonce + NextAvailableNonce(context.Context, *QueryGetNextAvailableNonceRequest) (*QueryGetNextAvailableNonceResponse, error) + // Queries the SignatureThreshold + SignatureThreshold(context.Context, *QueryGetSignatureThresholdRequest) (*QueryGetSignatureThresholdResponse, error) + // Queries a TokenPair by index + TokenPair(context.Context, *QueryGetTokenPairRequest) (*QueryGetTokenPairResponse, error) + // Queries a list of TokenPair + TokenPairs(context.Context, *QueryAllTokenPairsRequest) (*QueryAllTokenPairsResponse, error) + // Queries a UsedNonce by index + UsedNonce(context.Context, *QueryGetUsedNonceRequest) (*QueryGetUsedNonceResponse, error) + // Queries a list of UsedNonces + UsedNonces(context.Context, *QueryAllUsedNoncesRequest) (*QueryAllUsedNoncesResponse, error) + // Query the RemoteTokenMessenger of a specific domain. + RemoteTokenMessenger(context.Context, *QueryRemoteTokenMessengerRequest) (*QueryRemoteTokenMessengerResponse, error) + // Query all RemoteTokenMessenger's. + RemoteTokenMessengers(context.Context, *QueryRemoteTokenMessengersRequest) (*QueryRemoteTokenMessengersResponse, error) + BurnMessageVersion(context.Context, *QueryBurnMessageVersionRequest) (*QueryBurnMessageVersionResponse, error) + LocalMessageVersion(context.Context, *QueryLocalMessageVersionRequest) (*QueryLocalMessageVersionResponse, error) + LocalDomain(context.Context, *QueryLocalDomainRequest) (*QueryLocalDomainResponse, error) + mustEmbedUnimplementedQueryServer() +} + +// UnimplementedQueryServer must be embedded to have forward compatible implementations. +type UnimplementedQueryServer struct { +} + +func (UnimplementedQueryServer) Roles(context.Context, *QueryRolesRequest) (*QueryRolesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Roles not implemented") +} +func (UnimplementedQueryServer) Attester(context.Context, *QueryGetAttesterRequest) (*QueryGetAttesterResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Attester not implemented") +} +func (UnimplementedQueryServer) Attesters(context.Context, *QueryAllAttestersRequest) (*QueryAllAttestersResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Attesters not implemented") +} +func (UnimplementedQueryServer) PerMessageBurnLimit(context.Context, *QueryGetPerMessageBurnLimitRequest) (*QueryGetPerMessageBurnLimitResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method PerMessageBurnLimit not implemented") +} +func (UnimplementedQueryServer) PerMessageBurnLimits(context.Context, *QueryAllPerMessageBurnLimitsRequest) (*QueryAllPerMessageBurnLimitsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method PerMessageBurnLimits not implemented") +} +func (UnimplementedQueryServer) BurningAndMintingPaused(context.Context, *QueryGetBurningAndMintingPausedRequest) (*QueryGetBurningAndMintingPausedResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method BurningAndMintingPaused not implemented") +} +func (UnimplementedQueryServer) SendingAndReceivingMessagesPaused(context.Context, *QueryGetSendingAndReceivingMessagesPausedRequest) (*QueryGetSendingAndReceivingMessagesPausedResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SendingAndReceivingMessagesPaused not implemented") +} +func (UnimplementedQueryServer) MaxMessageBodySize(context.Context, *QueryGetMaxMessageBodySizeRequest) (*QueryGetMaxMessageBodySizeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method MaxMessageBodySize not implemented") +} +func (UnimplementedQueryServer) NextAvailableNonce(context.Context, *QueryGetNextAvailableNonceRequest) (*QueryGetNextAvailableNonceResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method NextAvailableNonce not implemented") +} +func (UnimplementedQueryServer) SignatureThreshold(context.Context, *QueryGetSignatureThresholdRequest) (*QueryGetSignatureThresholdResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SignatureThreshold not implemented") +} +func (UnimplementedQueryServer) TokenPair(context.Context, *QueryGetTokenPairRequest) (*QueryGetTokenPairResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method TokenPair not implemented") +} +func (UnimplementedQueryServer) TokenPairs(context.Context, *QueryAllTokenPairsRequest) (*QueryAllTokenPairsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method TokenPairs not implemented") +} +func (UnimplementedQueryServer) UsedNonce(context.Context, *QueryGetUsedNonceRequest) (*QueryGetUsedNonceResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UsedNonce not implemented") +} +func (UnimplementedQueryServer) UsedNonces(context.Context, *QueryAllUsedNoncesRequest) (*QueryAllUsedNoncesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UsedNonces not implemented") +} +func (UnimplementedQueryServer) RemoteTokenMessenger(context.Context, *QueryRemoteTokenMessengerRequest) (*QueryRemoteTokenMessengerResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RemoteTokenMessenger not implemented") +} +func (UnimplementedQueryServer) RemoteTokenMessengers(context.Context, *QueryRemoteTokenMessengersRequest) (*QueryRemoteTokenMessengersResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RemoteTokenMessengers not implemented") +} +func (UnimplementedQueryServer) BurnMessageVersion(context.Context, *QueryBurnMessageVersionRequest) (*QueryBurnMessageVersionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method BurnMessageVersion not implemented") +} +func (UnimplementedQueryServer) LocalMessageVersion(context.Context, *QueryLocalMessageVersionRequest) (*QueryLocalMessageVersionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method LocalMessageVersion not implemented") +} +func (UnimplementedQueryServer) LocalDomain(context.Context, *QueryLocalDomainRequest) (*QueryLocalDomainResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method LocalDomain not implemented") +} +func (UnimplementedQueryServer) mustEmbedUnimplementedQueryServer() {} + +// 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) { + s.RegisterService(&Query_ServiceDesc, srv) +} + +func _Query_Roles_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryRolesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).Roles(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_Roles_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Roles(ctx, req.(*QueryRolesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_Attester_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryGetAttesterRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).Attester(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_Attester_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Attester(ctx, req.(*QueryGetAttesterRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_Attesters_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryAllAttestersRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).Attesters(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_Attesters_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Attesters(ctx, req.(*QueryAllAttestersRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_PerMessageBurnLimit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryGetPerMessageBurnLimitRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).PerMessageBurnLimit(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_PerMessageBurnLimit_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).PerMessageBurnLimit(ctx, req.(*QueryGetPerMessageBurnLimitRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_PerMessageBurnLimits_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryAllPerMessageBurnLimitsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).PerMessageBurnLimits(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_PerMessageBurnLimits_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).PerMessageBurnLimits(ctx, req.(*QueryAllPerMessageBurnLimitsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_BurningAndMintingPaused_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryGetBurningAndMintingPausedRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).BurningAndMintingPaused(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_BurningAndMintingPaused_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).BurningAndMintingPaused(ctx, req.(*QueryGetBurningAndMintingPausedRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_SendingAndReceivingMessagesPaused_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryGetSendingAndReceivingMessagesPausedRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).SendingAndReceivingMessagesPaused(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_SendingAndReceivingMessagesPaused_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).SendingAndReceivingMessagesPaused(ctx, req.(*QueryGetSendingAndReceivingMessagesPausedRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_MaxMessageBodySize_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryGetMaxMessageBodySizeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).MaxMessageBodySize(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_MaxMessageBodySize_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).MaxMessageBodySize(ctx, req.(*QueryGetMaxMessageBodySizeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_NextAvailableNonce_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryGetNextAvailableNonceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).NextAvailableNonce(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_NextAvailableNonce_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).NextAvailableNonce(ctx, req.(*QueryGetNextAvailableNonceRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_SignatureThreshold_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryGetSignatureThresholdRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).SignatureThreshold(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_SignatureThreshold_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).SignatureThreshold(ctx, req.(*QueryGetSignatureThresholdRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_TokenPair_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryGetTokenPairRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).TokenPair(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_TokenPair_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).TokenPair(ctx, req.(*QueryGetTokenPairRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_TokenPairs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryAllTokenPairsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).TokenPairs(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_TokenPairs_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).TokenPairs(ctx, req.(*QueryAllTokenPairsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_UsedNonce_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryGetUsedNonceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).UsedNonce(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_UsedNonce_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).UsedNonce(ctx, req.(*QueryGetUsedNonceRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_UsedNonces_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryAllUsedNoncesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).UsedNonces(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_UsedNonces_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).UsedNonces(ctx, req.(*QueryAllUsedNoncesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_RemoteTokenMessenger_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryRemoteTokenMessengerRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).RemoteTokenMessenger(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_RemoteTokenMessenger_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).RemoteTokenMessenger(ctx, req.(*QueryRemoteTokenMessengerRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_RemoteTokenMessengers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryRemoteTokenMessengersRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).RemoteTokenMessengers(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_RemoteTokenMessengers_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).RemoteTokenMessengers(ctx, req.(*QueryRemoteTokenMessengersRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_BurnMessageVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryBurnMessageVersionRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).BurnMessageVersion(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_BurnMessageVersion_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).BurnMessageVersion(ctx, req.(*QueryBurnMessageVersionRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_LocalMessageVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryLocalMessageVersionRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).LocalMessageVersion(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_LocalMessageVersion_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).LocalMessageVersion(ctx, req.(*QueryLocalMessageVersionRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_LocalDomain_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryLocalDomainRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).LocalDomain(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_LocalDomain_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).LocalDomain(ctx, req.(*QueryLocalDomainRequest)) + } + 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: "circle.cctp.v1.Query", + HandlerType: (*QueryServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Roles", + Handler: _Query_Roles_Handler, + }, + { + MethodName: "Attester", + Handler: _Query_Attester_Handler, + }, + { + MethodName: "Attesters", + Handler: _Query_Attesters_Handler, + }, + { + MethodName: "PerMessageBurnLimit", + Handler: _Query_PerMessageBurnLimit_Handler, + }, + { + MethodName: "PerMessageBurnLimits", + Handler: _Query_PerMessageBurnLimits_Handler, + }, + { + MethodName: "BurningAndMintingPaused", + Handler: _Query_BurningAndMintingPaused_Handler, + }, + { + MethodName: "SendingAndReceivingMessagesPaused", + Handler: _Query_SendingAndReceivingMessagesPaused_Handler, + }, + { + MethodName: "MaxMessageBodySize", + Handler: _Query_MaxMessageBodySize_Handler, + }, + { + MethodName: "NextAvailableNonce", + Handler: _Query_NextAvailableNonce_Handler, + }, + { + MethodName: "SignatureThreshold", + Handler: _Query_SignatureThreshold_Handler, + }, + { + MethodName: "TokenPair", + Handler: _Query_TokenPair_Handler, + }, + { + MethodName: "TokenPairs", + Handler: _Query_TokenPairs_Handler, + }, + { + MethodName: "UsedNonce", + Handler: _Query_UsedNonce_Handler, + }, + { + MethodName: "UsedNonces", + Handler: _Query_UsedNonces_Handler, + }, + { + MethodName: "RemoteTokenMessenger", + Handler: _Query_RemoteTokenMessenger_Handler, + }, + { + MethodName: "RemoteTokenMessengers", + Handler: _Query_RemoteTokenMessengers_Handler, + }, + { + MethodName: "BurnMessageVersion", + Handler: _Query_BurnMessageVersion_Handler, + }, + { + MethodName: "LocalMessageVersion", + Handler: _Query_LocalMessageVersion_Handler, + }, + { + MethodName: "LocalDomain", + Handler: _Query_LocalDomain_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "circle/cctp/v1/query.proto", +} diff --git a/api/circle/cctp/v1/remote_token_messenger.pulsar.go b/api/circle/cctp/v1/remote_token_messenger.pulsar.go new file mode 100644 index 0000000..b715a7c --- /dev/null +++ b/api/circle/cctp/v1/remote_token_messenger.pulsar.go @@ -0,0 +1,647 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package cctpv1 + +import ( + fmt "fmt" + runtime "github.com/cosmos/cosmos-proto/runtime" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoiface "google.golang.org/protobuf/runtime/protoiface" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + io "io" + reflect "reflect" + sync "sync" +) + +var ( + md_RemoteTokenMessenger protoreflect.MessageDescriptor + fd_RemoteTokenMessenger_domain_id protoreflect.FieldDescriptor + fd_RemoteTokenMessenger_address protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_remote_token_messenger_proto_init() + md_RemoteTokenMessenger = File_circle_cctp_v1_remote_token_messenger_proto.Messages().ByName("RemoteTokenMessenger") + fd_RemoteTokenMessenger_domain_id = md_RemoteTokenMessenger.Fields().ByName("domain_id") + fd_RemoteTokenMessenger_address = md_RemoteTokenMessenger.Fields().ByName("address") +} + +var _ protoreflect.Message = (*fastReflection_RemoteTokenMessenger)(nil) + +type fastReflection_RemoteTokenMessenger RemoteTokenMessenger + +func (x *RemoteTokenMessenger) ProtoReflect() protoreflect.Message { + return (*fastReflection_RemoteTokenMessenger)(x) +} + +func (x *RemoteTokenMessenger) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_remote_token_messenger_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_RemoteTokenMessenger_messageType fastReflection_RemoteTokenMessenger_messageType +var _ protoreflect.MessageType = fastReflection_RemoteTokenMessenger_messageType{} + +type fastReflection_RemoteTokenMessenger_messageType struct{} + +func (x fastReflection_RemoteTokenMessenger_messageType) Zero() protoreflect.Message { + return (*fastReflection_RemoteTokenMessenger)(nil) +} +func (x fastReflection_RemoteTokenMessenger_messageType) New() protoreflect.Message { + return new(fastReflection_RemoteTokenMessenger) +} +func (x fastReflection_RemoteTokenMessenger_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_RemoteTokenMessenger +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_RemoteTokenMessenger) Descriptor() protoreflect.MessageDescriptor { + return md_RemoteTokenMessenger +} + +// 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_RemoteTokenMessenger) Type() protoreflect.MessageType { + return _fastReflection_RemoteTokenMessenger_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_RemoteTokenMessenger) New() protoreflect.Message { + return new(fastReflection_RemoteTokenMessenger) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_RemoteTokenMessenger) Interface() protoreflect.ProtoMessage { + return (*RemoteTokenMessenger)(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_RemoteTokenMessenger) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.DomainId != uint32(0) { + value := protoreflect.ValueOfUint32(x.DomainId) + if !f(fd_RemoteTokenMessenger_domain_id, value) { + return + } + } + if len(x.Address) != 0 { + value := protoreflect.ValueOfBytes(x.Address) + if !f(fd_RemoteTokenMessenger_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_RemoteTokenMessenger) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.RemoteTokenMessenger.domain_id": + return x.DomainId != uint32(0) + case "circle.cctp.v1.RemoteTokenMessenger.address": + return len(x.Address) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.RemoteTokenMessenger")) + } + panic(fmt.Errorf("message circle.cctp.v1.RemoteTokenMessenger 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_RemoteTokenMessenger) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.RemoteTokenMessenger.domain_id": + x.DomainId = uint32(0) + case "circle.cctp.v1.RemoteTokenMessenger.address": + x.Address = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.RemoteTokenMessenger")) + } + panic(fmt.Errorf("message circle.cctp.v1.RemoteTokenMessenger 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_RemoteTokenMessenger) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.RemoteTokenMessenger.domain_id": + value := x.DomainId + return protoreflect.ValueOfUint32(value) + case "circle.cctp.v1.RemoteTokenMessenger.address": + value := x.Address + return protoreflect.ValueOfBytes(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.RemoteTokenMessenger")) + } + panic(fmt.Errorf("message circle.cctp.v1.RemoteTokenMessenger 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_RemoteTokenMessenger) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.RemoteTokenMessenger.domain_id": + x.DomainId = uint32(value.Uint()) + case "circle.cctp.v1.RemoteTokenMessenger.address": + x.Address = value.Bytes() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.RemoteTokenMessenger")) + } + panic(fmt.Errorf("message circle.cctp.v1.RemoteTokenMessenger 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_RemoteTokenMessenger) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.RemoteTokenMessenger.domain_id": + panic(fmt.Errorf("field domain_id of message circle.cctp.v1.RemoteTokenMessenger is not mutable")) + case "circle.cctp.v1.RemoteTokenMessenger.address": + panic(fmt.Errorf("field address of message circle.cctp.v1.RemoteTokenMessenger is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.RemoteTokenMessenger")) + } + panic(fmt.Errorf("message circle.cctp.v1.RemoteTokenMessenger 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_RemoteTokenMessenger) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.RemoteTokenMessenger.domain_id": + return protoreflect.ValueOfUint32(uint32(0)) + case "circle.cctp.v1.RemoteTokenMessenger.address": + return protoreflect.ValueOfBytes(nil) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.RemoteTokenMessenger")) + } + panic(fmt.Errorf("message circle.cctp.v1.RemoteTokenMessenger 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_RemoteTokenMessenger) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.RemoteTokenMessenger", 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_RemoteTokenMessenger) 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_RemoteTokenMessenger) 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_RemoteTokenMessenger) 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_RemoteTokenMessenger) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*RemoteTokenMessenger) + 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.DomainId != 0 { + n += 1 + runtime.Sov(uint64(x.DomainId)) + } + 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().(*RemoteTokenMessenger) + 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.DomainId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.DomainId)) + 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().(*RemoteTokenMessenger) + 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: RemoteTokenMessenger: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RemoteTokenMessenger: 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 DomainId", wireType) + } + x.DomainId = 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.DomainId |= 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 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 + 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, + } +} + +// +// Copyright (c) 2023, Ā© Circle Internet Financial, LTD. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.0 +// protoc (unknown) +// source: circle/cctp/v1/remote_token_messenger.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) +) + +// * +// @param domain_id +// @param address +type RemoteTokenMessenger struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + DomainId uint32 `protobuf:"varint,1,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"` + Address []byte `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` +} + +func (x *RemoteTokenMessenger) Reset() { + *x = RemoteTokenMessenger{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_remote_token_messenger_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RemoteTokenMessenger) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RemoteTokenMessenger) ProtoMessage() {} + +// Deprecated: Use RemoteTokenMessenger.ProtoReflect.Descriptor instead. +func (*RemoteTokenMessenger) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_remote_token_messenger_proto_rawDescGZIP(), []int{0} +} + +func (x *RemoteTokenMessenger) GetDomainId() uint32 { + if x != nil { + return x.DomainId + } + return 0 +} + +func (x *RemoteTokenMessenger) GetAddress() []byte { + if x != nil { + return x.Address + } + return nil +} + +var File_circle_cctp_v1_remote_token_messenger_proto protoreflect.FileDescriptor + +var file_circle_cctp_v1_remote_token_messenger_proto_rawDesc = []byte{ + 0x0a, 0x2b, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2f, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x76, 0x31, + 0x2f, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x6d, 0x65, + 0x73, 0x73, 0x65, 0x6e, 0x67, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x63, + 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x22, 0x4d, 0x0a, + 0x14, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x4d, 0x65, 0x73, 0x73, + 0x65, 0x6e, 0x67, 0x65, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, + 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, + 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x42, 0xc4, 0x01, 0x0a, + 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, + 0x2e, 0x76, 0x31, 0x42, 0x19, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, + 0x4d, 0x65, 0x73, 0x73, 0x65, 0x6e, 0x67, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, + 0x5a, 0x39, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x69, 0x72, + 0x63, 0x6c, 0x65, 0x66, 0x69, 0x6e, 0x2f, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2d, 0x63, 0x63, 0x74, + 0x70, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2f, 0x63, 0x63, 0x74, + 0x70, 0x2f, 0x76, 0x31, 0x3b, 0x63, 0x63, 0x74, 0x70, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x43, + 0x58, 0xaa, 0x02, 0x0e, 0x43, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x43, 0x63, 0x74, 0x70, 0x2e, + 0x56, 0x31, 0xca, 0x02, 0x0e, 0x43, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x5c, 0x43, 0x63, 0x74, 0x70, + 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1a, 0x43, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x5c, 0x43, 0x63, 0x74, + 0x70, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0xea, 0x02, 0x10, 0x43, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x63, 0x74, 0x70, 0x3a, + 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_circle_cctp_v1_remote_token_messenger_proto_rawDescOnce sync.Once + file_circle_cctp_v1_remote_token_messenger_proto_rawDescData = file_circle_cctp_v1_remote_token_messenger_proto_rawDesc +) + +func file_circle_cctp_v1_remote_token_messenger_proto_rawDescGZIP() []byte { + file_circle_cctp_v1_remote_token_messenger_proto_rawDescOnce.Do(func() { + file_circle_cctp_v1_remote_token_messenger_proto_rawDescData = protoimpl.X.CompressGZIP(file_circle_cctp_v1_remote_token_messenger_proto_rawDescData) + }) + return file_circle_cctp_v1_remote_token_messenger_proto_rawDescData +} + +var file_circle_cctp_v1_remote_token_messenger_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_circle_cctp_v1_remote_token_messenger_proto_goTypes = []interface{}{ + (*RemoteTokenMessenger)(nil), // 0: circle.cctp.v1.RemoteTokenMessenger +} +var file_circle_cctp_v1_remote_token_messenger_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_circle_cctp_v1_remote_token_messenger_proto_init() } +func file_circle_cctp_v1_remote_token_messenger_proto_init() { + if File_circle_cctp_v1_remote_token_messenger_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_circle_cctp_v1_remote_token_messenger_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RemoteTokenMessenger); 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_circle_cctp_v1_remote_token_messenger_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_circle_cctp_v1_remote_token_messenger_proto_goTypes, + DependencyIndexes: file_circle_cctp_v1_remote_token_messenger_proto_depIdxs, + MessageInfos: file_circle_cctp_v1_remote_token_messenger_proto_msgTypes, + }.Build() + File_circle_cctp_v1_remote_token_messenger_proto = out.File + file_circle_cctp_v1_remote_token_messenger_proto_rawDesc = nil + file_circle_cctp_v1_remote_token_messenger_proto_goTypes = nil + file_circle_cctp_v1_remote_token_messenger_proto_depIdxs = nil +} diff --git a/api/circle/cctp/v1/sending_and_receiving_messages_paused.pulsar.go b/api/circle/cctp/v1/sending_and_receiving_messages_paused.pulsar.go new file mode 100644 index 0000000..d76622f --- /dev/null +++ b/api/circle/cctp/v1/sending_and_receiving_messages_paused.pulsar.go @@ -0,0 +1,580 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package cctpv1 + +import ( + fmt "fmt" + runtime "github.com/cosmos/cosmos-proto/runtime" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoiface "google.golang.org/protobuf/runtime/protoiface" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + io "io" + reflect "reflect" + sync "sync" +) + +var ( + md_SendingAndReceivingMessagesPaused protoreflect.MessageDescriptor + fd_SendingAndReceivingMessagesPaused_paused protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_sending_and_receiving_messages_paused_proto_init() + md_SendingAndReceivingMessagesPaused = File_circle_cctp_v1_sending_and_receiving_messages_paused_proto.Messages().ByName("SendingAndReceivingMessagesPaused") + fd_SendingAndReceivingMessagesPaused_paused = md_SendingAndReceivingMessagesPaused.Fields().ByName("paused") +} + +var _ protoreflect.Message = (*fastReflection_SendingAndReceivingMessagesPaused)(nil) + +type fastReflection_SendingAndReceivingMessagesPaused SendingAndReceivingMessagesPaused + +func (x *SendingAndReceivingMessagesPaused) ProtoReflect() protoreflect.Message { + return (*fastReflection_SendingAndReceivingMessagesPaused)(x) +} + +func (x *SendingAndReceivingMessagesPaused) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_sending_and_receiving_messages_paused_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_SendingAndReceivingMessagesPaused_messageType fastReflection_SendingAndReceivingMessagesPaused_messageType +var _ protoreflect.MessageType = fastReflection_SendingAndReceivingMessagesPaused_messageType{} + +type fastReflection_SendingAndReceivingMessagesPaused_messageType struct{} + +func (x fastReflection_SendingAndReceivingMessagesPaused_messageType) Zero() protoreflect.Message { + return (*fastReflection_SendingAndReceivingMessagesPaused)(nil) +} +func (x fastReflection_SendingAndReceivingMessagesPaused_messageType) New() protoreflect.Message { + return new(fastReflection_SendingAndReceivingMessagesPaused) +} +func (x fastReflection_SendingAndReceivingMessagesPaused_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_SendingAndReceivingMessagesPaused +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_SendingAndReceivingMessagesPaused) Descriptor() protoreflect.MessageDescriptor { + return md_SendingAndReceivingMessagesPaused +} + +// 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_SendingAndReceivingMessagesPaused) Type() protoreflect.MessageType { + return _fastReflection_SendingAndReceivingMessagesPaused_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_SendingAndReceivingMessagesPaused) New() protoreflect.Message { + return new(fastReflection_SendingAndReceivingMessagesPaused) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_SendingAndReceivingMessagesPaused) Interface() protoreflect.ProtoMessage { + return (*SendingAndReceivingMessagesPaused)(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_SendingAndReceivingMessagesPaused) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Paused != false { + value := protoreflect.ValueOfBool(x.Paused) + if !f(fd_SendingAndReceivingMessagesPaused_paused, 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_SendingAndReceivingMessagesPaused) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.SendingAndReceivingMessagesPaused.paused": + return x.Paused != false + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.SendingAndReceivingMessagesPaused")) + } + panic(fmt.Errorf("message circle.cctp.v1.SendingAndReceivingMessagesPaused 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_SendingAndReceivingMessagesPaused) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.SendingAndReceivingMessagesPaused.paused": + x.Paused = false + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.SendingAndReceivingMessagesPaused")) + } + panic(fmt.Errorf("message circle.cctp.v1.SendingAndReceivingMessagesPaused 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_SendingAndReceivingMessagesPaused) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.SendingAndReceivingMessagesPaused.paused": + value := x.Paused + return protoreflect.ValueOfBool(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.SendingAndReceivingMessagesPaused")) + } + panic(fmt.Errorf("message circle.cctp.v1.SendingAndReceivingMessagesPaused 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_SendingAndReceivingMessagesPaused) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.SendingAndReceivingMessagesPaused.paused": + x.Paused = value.Bool() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.SendingAndReceivingMessagesPaused")) + } + panic(fmt.Errorf("message circle.cctp.v1.SendingAndReceivingMessagesPaused 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_SendingAndReceivingMessagesPaused) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.SendingAndReceivingMessagesPaused.paused": + panic(fmt.Errorf("field paused of message circle.cctp.v1.SendingAndReceivingMessagesPaused is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.SendingAndReceivingMessagesPaused")) + } + panic(fmt.Errorf("message circle.cctp.v1.SendingAndReceivingMessagesPaused 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_SendingAndReceivingMessagesPaused) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.SendingAndReceivingMessagesPaused.paused": + return protoreflect.ValueOfBool(false) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.SendingAndReceivingMessagesPaused")) + } + panic(fmt.Errorf("message circle.cctp.v1.SendingAndReceivingMessagesPaused 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_SendingAndReceivingMessagesPaused) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.SendingAndReceivingMessagesPaused", 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_SendingAndReceivingMessagesPaused) 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_SendingAndReceivingMessagesPaused) 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_SendingAndReceivingMessagesPaused) 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_SendingAndReceivingMessagesPaused) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*SendingAndReceivingMessagesPaused) + 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.Paused { + 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().(*SendingAndReceivingMessagesPaused) + 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.Paused { + i-- + if x.Paused { + 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().(*SendingAndReceivingMessagesPaused) + 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: SendingAndReceivingMessagesPaused: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: SendingAndReceivingMessagesPaused: 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 Paused", 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.Paused = 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, + } +} + +// +// Copyright (c) 2023, Ā© Circle Internet Financial, LTD. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.0 +// protoc (unknown) +// source: circle/cctp/v1/sending_and_receiving_messages_paused.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) +) + +// * +// Message format for SendingAndReceivingMessagesPaused +// @param paused true if paused, false if not paused +type SendingAndReceivingMessagesPaused struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Paused bool `protobuf:"varint,1,opt,name=paused,proto3" json:"paused,omitempty"` +} + +func (x *SendingAndReceivingMessagesPaused) Reset() { + *x = SendingAndReceivingMessagesPaused{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_sending_and_receiving_messages_paused_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SendingAndReceivingMessagesPaused) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SendingAndReceivingMessagesPaused) ProtoMessage() {} + +// Deprecated: Use SendingAndReceivingMessagesPaused.ProtoReflect.Descriptor instead. +func (*SendingAndReceivingMessagesPaused) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_sending_and_receiving_messages_paused_proto_rawDescGZIP(), []int{0} +} + +func (x *SendingAndReceivingMessagesPaused) GetPaused() bool { + if x != nil { + return x.Paused + } + return false +} + +var File_circle_cctp_v1_sending_and_receiving_messages_paused_proto protoreflect.FileDescriptor + +var file_circle_cctp_v1_sending_and_receiving_messages_paused_proto_rawDesc = []byte{ + 0x0a, 0x3a, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2f, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x76, 0x31, + 0x2f, 0x73, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x61, 0x6e, 0x64, 0x5f, 0x72, 0x65, 0x63, + 0x65, 0x69, 0x76, 0x69, 0x6e, 0x67, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x5f, + 0x70, 0x61, 0x75, 0x73, 0x65, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x63, 0x69, + 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x22, 0x3b, 0x0a, 0x21, + 0x53, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x41, 0x6e, 0x64, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, + 0x69, 0x6e, 0x67, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x50, 0x61, 0x75, 0x73, 0x65, + 0x64, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x61, 0x75, 0x73, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x06, 0x70, 0x61, 0x75, 0x73, 0x65, 0x64, 0x42, 0xd1, 0x01, 0x0a, 0x12, 0x63, 0x6f, + 0x6d, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, + 0x42, 0x26, 0x53, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x41, 0x6e, 0x64, 0x52, 0x65, 0x63, 0x65, + 0x69, 0x76, 0x69, 0x6e, 0x67, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x50, 0x61, 0x75, + 0x73, 0x65, 0x64, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x39, 0x67, 0x69, 0x74, 0x68, + 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x66, 0x69, 0x6e, + 0x2f, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2d, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x61, 0x70, 0x69, 0x2f, + 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2f, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x76, 0x31, 0x3b, 0x63, + 0x63, 0x74, 0x70, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x43, 0x58, 0xaa, 0x02, 0x0e, 0x43, 0x69, + 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x43, 0x63, 0x74, 0x70, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0e, 0x43, + 0x69, 0x72, 0x63, 0x6c, 0x65, 0x5c, 0x43, 0x63, 0x74, 0x70, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1a, + 0x43, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x5c, 0x43, 0x63, 0x74, 0x70, 0x5c, 0x56, 0x31, 0x5c, 0x47, + 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x10, 0x43, 0x69, 0x72, + 0x63, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x63, 0x74, 0x70, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_circle_cctp_v1_sending_and_receiving_messages_paused_proto_rawDescOnce sync.Once + file_circle_cctp_v1_sending_and_receiving_messages_paused_proto_rawDescData = file_circle_cctp_v1_sending_and_receiving_messages_paused_proto_rawDesc +) + +func file_circle_cctp_v1_sending_and_receiving_messages_paused_proto_rawDescGZIP() []byte { + file_circle_cctp_v1_sending_and_receiving_messages_paused_proto_rawDescOnce.Do(func() { + file_circle_cctp_v1_sending_and_receiving_messages_paused_proto_rawDescData = protoimpl.X.CompressGZIP(file_circle_cctp_v1_sending_and_receiving_messages_paused_proto_rawDescData) + }) + return file_circle_cctp_v1_sending_and_receiving_messages_paused_proto_rawDescData +} + +var file_circle_cctp_v1_sending_and_receiving_messages_paused_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_circle_cctp_v1_sending_and_receiving_messages_paused_proto_goTypes = []interface{}{ + (*SendingAndReceivingMessagesPaused)(nil), // 0: circle.cctp.v1.SendingAndReceivingMessagesPaused +} +var file_circle_cctp_v1_sending_and_receiving_messages_paused_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_circle_cctp_v1_sending_and_receiving_messages_paused_proto_init() } +func file_circle_cctp_v1_sending_and_receiving_messages_paused_proto_init() { + if File_circle_cctp_v1_sending_and_receiving_messages_paused_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_circle_cctp_v1_sending_and_receiving_messages_paused_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SendingAndReceivingMessagesPaused); 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_circle_cctp_v1_sending_and_receiving_messages_paused_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_circle_cctp_v1_sending_and_receiving_messages_paused_proto_goTypes, + DependencyIndexes: file_circle_cctp_v1_sending_and_receiving_messages_paused_proto_depIdxs, + MessageInfos: file_circle_cctp_v1_sending_and_receiving_messages_paused_proto_msgTypes, + }.Build() + File_circle_cctp_v1_sending_and_receiving_messages_paused_proto = out.File + file_circle_cctp_v1_sending_and_receiving_messages_paused_proto_rawDesc = nil + file_circle_cctp_v1_sending_and_receiving_messages_paused_proto_goTypes = nil + file_circle_cctp_v1_sending_and_receiving_messages_paused_proto_depIdxs = nil +} diff --git a/api/circle/cctp/v1/signature_threshold.pulsar.go b/api/circle/cctp/v1/signature_threshold.pulsar.go new file mode 100644 index 0000000..794242e --- /dev/null +++ b/api/circle/cctp/v1/signature_threshold.pulsar.go @@ -0,0 +1,572 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package cctpv1 + +import ( + fmt "fmt" + runtime "github.com/cosmos/cosmos-proto/runtime" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoiface "google.golang.org/protobuf/runtime/protoiface" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + io "io" + reflect "reflect" + sync "sync" +) + +var ( + md_SignatureThreshold protoreflect.MessageDescriptor + fd_SignatureThreshold_amount protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_signature_threshold_proto_init() + md_SignatureThreshold = File_circle_cctp_v1_signature_threshold_proto.Messages().ByName("SignatureThreshold") + fd_SignatureThreshold_amount = md_SignatureThreshold.Fields().ByName("amount") +} + +var _ protoreflect.Message = (*fastReflection_SignatureThreshold)(nil) + +type fastReflection_SignatureThreshold SignatureThreshold + +func (x *SignatureThreshold) ProtoReflect() protoreflect.Message { + return (*fastReflection_SignatureThreshold)(x) +} + +func (x *SignatureThreshold) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_signature_threshold_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_SignatureThreshold_messageType fastReflection_SignatureThreshold_messageType +var _ protoreflect.MessageType = fastReflection_SignatureThreshold_messageType{} + +type fastReflection_SignatureThreshold_messageType struct{} + +func (x fastReflection_SignatureThreshold_messageType) Zero() protoreflect.Message { + return (*fastReflection_SignatureThreshold)(nil) +} +func (x fastReflection_SignatureThreshold_messageType) New() protoreflect.Message { + return new(fastReflection_SignatureThreshold) +} +func (x fastReflection_SignatureThreshold_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_SignatureThreshold +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_SignatureThreshold) Descriptor() protoreflect.MessageDescriptor { + return md_SignatureThreshold +} + +// 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_SignatureThreshold) Type() protoreflect.MessageType { + return _fastReflection_SignatureThreshold_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_SignatureThreshold) New() protoreflect.Message { + return new(fastReflection_SignatureThreshold) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_SignatureThreshold) Interface() protoreflect.ProtoMessage { + return (*SignatureThreshold)(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_SignatureThreshold) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Amount != uint32(0) { + value := protoreflect.ValueOfUint32(x.Amount) + if !f(fd_SignatureThreshold_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_SignatureThreshold) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.SignatureThreshold.amount": + return x.Amount != uint32(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.SignatureThreshold")) + } + panic(fmt.Errorf("message circle.cctp.v1.SignatureThreshold 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_SignatureThreshold) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.SignatureThreshold.amount": + x.Amount = uint32(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.SignatureThreshold")) + } + panic(fmt.Errorf("message circle.cctp.v1.SignatureThreshold 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_SignatureThreshold) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.SignatureThreshold.amount": + value := x.Amount + return protoreflect.ValueOfUint32(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.SignatureThreshold")) + } + panic(fmt.Errorf("message circle.cctp.v1.SignatureThreshold 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_SignatureThreshold) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.SignatureThreshold.amount": + x.Amount = uint32(value.Uint()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.SignatureThreshold")) + } + panic(fmt.Errorf("message circle.cctp.v1.SignatureThreshold 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_SignatureThreshold) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.SignatureThreshold.amount": + panic(fmt.Errorf("field amount of message circle.cctp.v1.SignatureThreshold is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.SignatureThreshold")) + } + panic(fmt.Errorf("message circle.cctp.v1.SignatureThreshold 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_SignatureThreshold) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.SignatureThreshold.amount": + return protoreflect.ValueOfUint32(uint32(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.SignatureThreshold")) + } + panic(fmt.Errorf("message circle.cctp.v1.SignatureThreshold 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_SignatureThreshold) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.SignatureThreshold", 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_SignatureThreshold) 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_SignatureThreshold) 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_SignatureThreshold) 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_SignatureThreshold) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*SignatureThreshold) + 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.Amount != 0 { + n += 1 + runtime.Sov(uint64(x.Amount)) + } + 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().(*SignatureThreshold) + 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.Amount != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Amount)) + 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().(*SignatureThreshold) + 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: SignatureThreshold: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: SignatureThreshold: 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 Amount", wireType) + } + x.Amount = 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.Amount |= 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, + } +} + +// +// Copyright (c) 2023, Ā© Circle Internet Financial, LTD. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.0 +// protoc (unknown) +// source: circle/cctp/v1/signature_threshold.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) +) + +// * +// SignatureThreshold is the minimum amount of signatures required to attest to +// a message (the 'm' in a m/n multisig) +// @param amount the number of signatures required +type SignatureThreshold struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Amount uint32 `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"` +} + +func (x *SignatureThreshold) Reset() { + *x = SignatureThreshold{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_signature_threshold_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SignatureThreshold) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SignatureThreshold) ProtoMessage() {} + +// Deprecated: Use SignatureThreshold.ProtoReflect.Descriptor instead. +func (*SignatureThreshold) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_signature_threshold_proto_rawDescGZIP(), []int{0} +} + +func (x *SignatureThreshold) GetAmount() uint32 { + if x != nil { + return x.Amount + } + return 0 +} + +var File_circle_cctp_v1_signature_threshold_proto protoreflect.FileDescriptor + +var file_circle_cctp_v1_signature_threshold_proto_rawDesc = []byte{ + 0x0a, 0x28, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2f, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x76, 0x31, + 0x2f, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x5f, 0x74, 0x68, 0x72, 0x65, 0x73, + 0x68, 0x6f, 0x6c, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x63, 0x69, 0x72, 0x63, + 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x22, 0x2c, 0x0a, 0x12, 0x53, 0x69, + 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, + 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, + 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0xc2, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, + 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x42, + 0x17, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, + 0x6f, 0x6c, 0x64, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x39, 0x67, 0x69, 0x74, 0x68, + 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x66, 0x69, 0x6e, + 0x2f, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2d, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x61, 0x70, 0x69, 0x2f, + 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2f, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x76, 0x31, 0x3b, 0x63, + 0x63, 0x74, 0x70, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x43, 0x58, 0xaa, 0x02, 0x0e, 0x43, 0x69, + 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x43, 0x63, 0x74, 0x70, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0e, 0x43, + 0x69, 0x72, 0x63, 0x6c, 0x65, 0x5c, 0x43, 0x63, 0x74, 0x70, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1a, + 0x43, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x5c, 0x43, 0x63, 0x74, 0x70, 0x5c, 0x56, 0x31, 0x5c, 0x47, + 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x10, 0x43, 0x69, 0x72, + 0x63, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x63, 0x74, 0x70, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_circle_cctp_v1_signature_threshold_proto_rawDescOnce sync.Once + file_circle_cctp_v1_signature_threshold_proto_rawDescData = file_circle_cctp_v1_signature_threshold_proto_rawDesc +) + +func file_circle_cctp_v1_signature_threshold_proto_rawDescGZIP() []byte { + file_circle_cctp_v1_signature_threshold_proto_rawDescOnce.Do(func() { + file_circle_cctp_v1_signature_threshold_proto_rawDescData = protoimpl.X.CompressGZIP(file_circle_cctp_v1_signature_threshold_proto_rawDescData) + }) + return file_circle_cctp_v1_signature_threshold_proto_rawDescData +} + +var file_circle_cctp_v1_signature_threshold_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_circle_cctp_v1_signature_threshold_proto_goTypes = []interface{}{ + (*SignatureThreshold)(nil), // 0: circle.cctp.v1.SignatureThreshold +} +var file_circle_cctp_v1_signature_threshold_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_circle_cctp_v1_signature_threshold_proto_init() } +func file_circle_cctp_v1_signature_threshold_proto_init() { + if File_circle_cctp_v1_signature_threshold_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_circle_cctp_v1_signature_threshold_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SignatureThreshold); 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_circle_cctp_v1_signature_threshold_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_circle_cctp_v1_signature_threshold_proto_goTypes, + DependencyIndexes: file_circle_cctp_v1_signature_threshold_proto_depIdxs, + MessageInfos: file_circle_cctp_v1_signature_threshold_proto_msgTypes, + }.Build() + File_circle_cctp_v1_signature_threshold_proto = out.File + file_circle_cctp_v1_signature_threshold_proto_rawDesc = nil + file_circle_cctp_v1_signature_threshold_proto_goTypes = nil + file_circle_cctp_v1_signature_threshold_proto_depIdxs = nil +} diff --git a/api/circle/cctp/v1/token_pair.pulsar.go b/api/circle/cctp/v1/token_pair.pulsar.go new file mode 100644 index 0000000..898e0bb --- /dev/null +++ b/api/circle/cctp/v1/token_pair.pulsar.go @@ -0,0 +1,725 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package cctpv1 + +import ( + fmt "fmt" + runtime "github.com/cosmos/cosmos-proto/runtime" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoiface "google.golang.org/protobuf/runtime/protoiface" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + io "io" + reflect "reflect" + sync "sync" +) + +var ( + md_TokenPair protoreflect.MessageDescriptor + fd_TokenPair_remote_domain protoreflect.FieldDescriptor + fd_TokenPair_remote_token protoreflect.FieldDescriptor + fd_TokenPair_local_token protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_token_pair_proto_init() + md_TokenPair = File_circle_cctp_v1_token_pair_proto.Messages().ByName("TokenPair") + fd_TokenPair_remote_domain = md_TokenPair.Fields().ByName("remote_domain") + fd_TokenPair_remote_token = md_TokenPair.Fields().ByName("remote_token") + fd_TokenPair_local_token = md_TokenPair.Fields().ByName("local_token") +} + +var _ protoreflect.Message = (*fastReflection_TokenPair)(nil) + +type fastReflection_TokenPair TokenPair + +func (x *TokenPair) ProtoReflect() protoreflect.Message { + return (*fastReflection_TokenPair)(x) +} + +func (x *TokenPair) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_token_pair_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_TokenPair_messageType fastReflection_TokenPair_messageType +var _ protoreflect.MessageType = fastReflection_TokenPair_messageType{} + +type fastReflection_TokenPair_messageType struct{} + +func (x fastReflection_TokenPair_messageType) Zero() protoreflect.Message { + return (*fastReflection_TokenPair)(nil) +} +func (x fastReflection_TokenPair_messageType) New() protoreflect.Message { + return new(fastReflection_TokenPair) +} +func (x fastReflection_TokenPair_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_TokenPair +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_TokenPair) Descriptor() protoreflect.MessageDescriptor { + return md_TokenPair +} + +// 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_TokenPair) Type() protoreflect.MessageType { + return _fastReflection_TokenPair_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_TokenPair) New() protoreflect.Message { + return new(fastReflection_TokenPair) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_TokenPair) Interface() protoreflect.ProtoMessage { + return (*TokenPair)(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_TokenPair) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.RemoteDomain != uint32(0) { + value := protoreflect.ValueOfUint32(x.RemoteDomain) + if !f(fd_TokenPair_remote_domain, value) { + return + } + } + if len(x.RemoteToken) != 0 { + value := protoreflect.ValueOfBytes(x.RemoteToken) + if !f(fd_TokenPair_remote_token, value) { + return + } + } + if x.LocalToken != "" { + value := protoreflect.ValueOfString(x.LocalToken) + if !f(fd_TokenPair_local_token, 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_TokenPair) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.TokenPair.remote_domain": + return x.RemoteDomain != uint32(0) + case "circle.cctp.v1.TokenPair.remote_token": + return len(x.RemoteToken) != 0 + case "circle.cctp.v1.TokenPair.local_token": + return x.LocalToken != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.TokenPair")) + } + panic(fmt.Errorf("message circle.cctp.v1.TokenPair 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_TokenPair) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.TokenPair.remote_domain": + x.RemoteDomain = uint32(0) + case "circle.cctp.v1.TokenPair.remote_token": + x.RemoteToken = nil + case "circle.cctp.v1.TokenPair.local_token": + x.LocalToken = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.TokenPair")) + } + panic(fmt.Errorf("message circle.cctp.v1.TokenPair 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_TokenPair) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.TokenPair.remote_domain": + value := x.RemoteDomain + return protoreflect.ValueOfUint32(value) + case "circle.cctp.v1.TokenPair.remote_token": + value := x.RemoteToken + return protoreflect.ValueOfBytes(value) + case "circle.cctp.v1.TokenPair.local_token": + value := x.LocalToken + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.TokenPair")) + } + panic(fmt.Errorf("message circle.cctp.v1.TokenPair 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_TokenPair) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.TokenPair.remote_domain": + x.RemoteDomain = uint32(value.Uint()) + case "circle.cctp.v1.TokenPair.remote_token": + x.RemoteToken = value.Bytes() + case "circle.cctp.v1.TokenPair.local_token": + x.LocalToken = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.TokenPair")) + } + panic(fmt.Errorf("message circle.cctp.v1.TokenPair 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_TokenPair) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.TokenPair.remote_domain": + panic(fmt.Errorf("field remote_domain of message circle.cctp.v1.TokenPair is not mutable")) + case "circle.cctp.v1.TokenPair.remote_token": + panic(fmt.Errorf("field remote_token of message circle.cctp.v1.TokenPair is not mutable")) + case "circle.cctp.v1.TokenPair.local_token": + panic(fmt.Errorf("field local_token of message circle.cctp.v1.TokenPair is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.TokenPair")) + } + panic(fmt.Errorf("message circle.cctp.v1.TokenPair 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_TokenPair) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.TokenPair.remote_domain": + return protoreflect.ValueOfUint32(uint32(0)) + case "circle.cctp.v1.TokenPair.remote_token": + return protoreflect.ValueOfBytes(nil) + case "circle.cctp.v1.TokenPair.local_token": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.TokenPair")) + } + panic(fmt.Errorf("message circle.cctp.v1.TokenPair 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_TokenPair) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.TokenPair", 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_TokenPair) 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_TokenPair) 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_TokenPair) 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_TokenPair) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*TokenPair) + 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.RemoteDomain != 0 { + n += 1 + runtime.Sov(uint64(x.RemoteDomain)) + } + l = len(x.RemoteToken) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.LocalToken) + 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().(*TokenPair) + 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.LocalToken) > 0 { + i -= len(x.LocalToken) + copy(dAtA[i:], x.LocalToken) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.LocalToken))) + i-- + dAtA[i] = 0x1a + } + if len(x.RemoteToken) > 0 { + i -= len(x.RemoteToken) + copy(dAtA[i:], x.RemoteToken) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.RemoteToken))) + i-- + dAtA[i] = 0x12 + } + if x.RemoteDomain != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.RemoteDomain)) + 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().(*TokenPair) + 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: TokenPair: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TokenPair: 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 RemoteDomain", wireType) + } + x.RemoteDomain = 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.RemoteDomain |= 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 RemoteToken", 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.RemoteToken = append(x.RemoteToken[:0], dAtA[iNdEx:postIndex]...) + if x.RemoteToken == nil { + x.RemoteToken = []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 LocalToken", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.LocalToken = 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, + } +} + +// +// Copyright (c) 2023, Ā© Circle Internet Financial, LTD. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.0 +// protoc (unknown) +// source: circle/cctp/v1/token_pair.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) +) + +// * +// TokenPair is used to look up the Noble token (i.e. "uusdc") from a remote +// domain token address Multiple remote_domain + remote_token pairs can map to +// the same local_token +// +// @param remote_domain the remote domain_id corresponding to the token +// @param remote_token the remote token address +// @param local_token the corresponding Noble token denom in uunits +type TokenPair struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + RemoteDomain uint32 `protobuf:"varint,1,opt,name=remote_domain,json=remoteDomain,proto3" json:"remote_domain,omitempty"` + RemoteToken []byte `protobuf:"bytes,2,opt,name=remote_token,json=remoteToken,proto3" json:"remote_token,omitempty"` + LocalToken string `protobuf:"bytes,3,opt,name=local_token,json=localToken,proto3" json:"local_token,omitempty"` +} + +func (x *TokenPair) Reset() { + *x = TokenPair{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_token_pair_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TokenPair) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TokenPair) ProtoMessage() {} + +// Deprecated: Use TokenPair.ProtoReflect.Descriptor instead. +func (*TokenPair) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_token_pair_proto_rawDescGZIP(), []int{0} +} + +func (x *TokenPair) GetRemoteDomain() uint32 { + if x != nil { + return x.RemoteDomain + } + return 0 +} + +func (x *TokenPair) GetRemoteToken() []byte { + if x != nil { + return x.RemoteToken + } + return nil +} + +func (x *TokenPair) GetLocalToken() string { + if x != nil { + return x.LocalToken + } + return "" +} + +var File_circle_cctp_v1_token_pair_proto protoreflect.FileDescriptor + +var file_circle_cctp_v1_token_pair_proto_rawDesc = []byte{ + 0x0a, 0x1f, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2f, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x76, 0x31, + 0x2f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x70, 0x61, 0x69, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x12, 0x0e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, + 0x31, 0x22, 0x74, 0x0a, 0x09, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x50, 0x61, 0x69, 0x72, 0x12, 0x23, + 0x0a, 0x0d, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0c, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x44, 0x6f, 0x6d, + 0x61, 0x69, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x74, 0x6f, + 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x72, 0x65, 0x6d, 0x6f, 0x74, + 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x5f, + 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6c, 0x6f, 0x63, + 0x61, 0x6c, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x42, 0xb9, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, + 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x42, 0x0e, + 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x50, 0x61, 0x69, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, + 0x5a, 0x39, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x69, 0x72, + 0x63, 0x6c, 0x65, 0x66, 0x69, 0x6e, 0x2f, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2d, 0x63, 0x63, 0x74, + 0x70, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2f, 0x63, 0x63, 0x74, + 0x70, 0x2f, 0x76, 0x31, 0x3b, 0x63, 0x63, 0x74, 0x70, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x43, + 0x58, 0xaa, 0x02, 0x0e, 0x43, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x43, 0x63, 0x74, 0x70, 0x2e, + 0x56, 0x31, 0xca, 0x02, 0x0e, 0x43, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x5c, 0x43, 0x63, 0x74, 0x70, + 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1a, 0x43, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x5c, 0x43, 0x63, 0x74, + 0x70, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0xea, 0x02, 0x10, 0x43, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x63, 0x74, 0x70, 0x3a, + 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_circle_cctp_v1_token_pair_proto_rawDescOnce sync.Once + file_circle_cctp_v1_token_pair_proto_rawDescData = file_circle_cctp_v1_token_pair_proto_rawDesc +) + +func file_circle_cctp_v1_token_pair_proto_rawDescGZIP() []byte { + file_circle_cctp_v1_token_pair_proto_rawDescOnce.Do(func() { + file_circle_cctp_v1_token_pair_proto_rawDescData = protoimpl.X.CompressGZIP(file_circle_cctp_v1_token_pair_proto_rawDescData) + }) + return file_circle_cctp_v1_token_pair_proto_rawDescData +} + +var file_circle_cctp_v1_token_pair_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_circle_cctp_v1_token_pair_proto_goTypes = []interface{}{ + (*TokenPair)(nil), // 0: circle.cctp.v1.TokenPair +} +var file_circle_cctp_v1_token_pair_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_circle_cctp_v1_token_pair_proto_init() } +func file_circle_cctp_v1_token_pair_proto_init() { + if File_circle_cctp_v1_token_pair_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_circle_cctp_v1_token_pair_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TokenPair); 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_circle_cctp_v1_token_pair_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_circle_cctp_v1_token_pair_proto_goTypes, + DependencyIndexes: file_circle_cctp_v1_token_pair_proto_depIdxs, + MessageInfos: file_circle_cctp_v1_token_pair_proto_msgTypes, + }.Build() + File_circle_cctp_v1_token_pair_proto = out.File + file_circle_cctp_v1_token_pair_proto_rawDesc = nil + file_circle_cctp_v1_token_pair_proto_goTypes = nil + file_circle_cctp_v1_token_pair_proto_depIdxs = nil +} diff --git a/api/circle/cctp/v1/tx.pulsar.go b/api/circle/cctp/v1/tx.pulsar.go new file mode 100644 index 0000000..e678392 --- /dev/null +++ b/api/circle/cctp/v1/tx.pulsar.go @@ -0,0 +1,25704 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package cctpv1 + +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" + io "io" + reflect "reflect" + sync "sync" +) + +var ( + md_MsgUpdateOwner protoreflect.MessageDescriptor + fd_MsgUpdateOwner_from protoreflect.FieldDescriptor + fd_MsgUpdateOwner_new_owner protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_tx_proto_init() + md_MsgUpdateOwner = File_circle_cctp_v1_tx_proto.Messages().ByName("MsgUpdateOwner") + fd_MsgUpdateOwner_from = md_MsgUpdateOwner.Fields().ByName("from") + fd_MsgUpdateOwner_new_owner = md_MsgUpdateOwner.Fields().ByName("new_owner") +} + +var _ protoreflect.Message = (*fastReflection_MsgUpdateOwner)(nil) + +type fastReflection_MsgUpdateOwner MsgUpdateOwner + +func (x *MsgUpdateOwner) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUpdateOwner)(x) +} + +func (x *MsgUpdateOwner) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_MsgUpdateOwner_messageType fastReflection_MsgUpdateOwner_messageType +var _ protoreflect.MessageType = fastReflection_MsgUpdateOwner_messageType{} + +type fastReflection_MsgUpdateOwner_messageType struct{} + +func (x fastReflection_MsgUpdateOwner_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUpdateOwner)(nil) +} +func (x fastReflection_MsgUpdateOwner_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUpdateOwner) +} +func (x fastReflection_MsgUpdateOwner_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateOwner +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgUpdateOwner) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateOwner +} + +// 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_MsgUpdateOwner) Type() protoreflect.MessageType { + return _fastReflection_MsgUpdateOwner_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgUpdateOwner) New() protoreflect.Message { + return new(fastReflection_MsgUpdateOwner) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgUpdateOwner) Interface() protoreflect.ProtoMessage { + return (*MsgUpdateOwner)(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_MsgUpdateOwner) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.From != "" { + value := protoreflect.ValueOfString(x.From) + if !f(fd_MsgUpdateOwner_from, value) { + return + } + } + if x.NewOwner != "" { + value := protoreflect.ValueOfString(x.NewOwner) + if !f(fd_MsgUpdateOwner_new_owner, 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_MsgUpdateOwner) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.MsgUpdateOwner.from": + return x.From != "" + case "circle.cctp.v1.MsgUpdateOwner.new_owner": + return x.NewOwner != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUpdateOwner")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUpdateOwner 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_MsgUpdateOwner) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.MsgUpdateOwner.from": + x.From = "" + case "circle.cctp.v1.MsgUpdateOwner.new_owner": + x.NewOwner = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUpdateOwner")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUpdateOwner 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_MsgUpdateOwner) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.MsgUpdateOwner.from": + value := x.From + return protoreflect.ValueOfString(value) + case "circle.cctp.v1.MsgUpdateOwner.new_owner": + value := x.NewOwner + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUpdateOwner")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUpdateOwner 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_MsgUpdateOwner) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.MsgUpdateOwner.from": + x.From = value.Interface().(string) + case "circle.cctp.v1.MsgUpdateOwner.new_owner": + x.NewOwner = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUpdateOwner")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUpdateOwner 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_MsgUpdateOwner) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.MsgUpdateOwner.from": + panic(fmt.Errorf("field from of message circle.cctp.v1.MsgUpdateOwner is not mutable")) + case "circle.cctp.v1.MsgUpdateOwner.new_owner": + panic(fmt.Errorf("field new_owner of message circle.cctp.v1.MsgUpdateOwner is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUpdateOwner")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUpdateOwner 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_MsgUpdateOwner) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.MsgUpdateOwner.from": + return protoreflect.ValueOfString("") + case "circle.cctp.v1.MsgUpdateOwner.new_owner": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUpdateOwner")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUpdateOwner 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_MsgUpdateOwner) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.MsgUpdateOwner", 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_MsgUpdateOwner) 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_MsgUpdateOwner) 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_MsgUpdateOwner) 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_MsgUpdateOwner) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgUpdateOwner) + 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.From) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.NewOwner) + 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().(*MsgUpdateOwner) + 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.NewOwner) > 0 { + i -= len(x.NewOwner) + copy(dAtA[i:], x.NewOwner) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.NewOwner))) + i-- + dAtA[i] = 0x12 + } + if len(x.From) > 0 { + i -= len(x.From) + copy(dAtA[i:], x.From) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.From))) + 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().(*MsgUpdateOwner) + 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: MsgUpdateOwner: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateOwner: 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 From", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.From = 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 NewOwner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.NewOwner = 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_MsgUpdateOwnerResponse protoreflect.MessageDescriptor +) + +func init() { + file_circle_cctp_v1_tx_proto_init() + md_MsgUpdateOwnerResponse = File_circle_cctp_v1_tx_proto.Messages().ByName("MsgUpdateOwnerResponse") +} + +var _ protoreflect.Message = (*fastReflection_MsgUpdateOwnerResponse)(nil) + +type fastReflection_MsgUpdateOwnerResponse MsgUpdateOwnerResponse + +func (x *MsgUpdateOwnerResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUpdateOwnerResponse)(x) +} + +func (x *MsgUpdateOwnerResponse) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_MsgUpdateOwnerResponse_messageType fastReflection_MsgUpdateOwnerResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgUpdateOwnerResponse_messageType{} + +type fastReflection_MsgUpdateOwnerResponse_messageType struct{} + +func (x fastReflection_MsgUpdateOwnerResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUpdateOwnerResponse)(nil) +} +func (x fastReflection_MsgUpdateOwnerResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUpdateOwnerResponse) +} +func (x fastReflection_MsgUpdateOwnerResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateOwnerResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgUpdateOwnerResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateOwnerResponse +} + +// 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_MsgUpdateOwnerResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgUpdateOwnerResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgUpdateOwnerResponse) New() protoreflect.Message { + return new(fastReflection_MsgUpdateOwnerResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgUpdateOwnerResponse) Interface() protoreflect.ProtoMessage { + return (*MsgUpdateOwnerResponse)(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_MsgUpdateOwnerResponse) 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_MsgUpdateOwnerResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUpdateOwnerResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUpdateOwnerResponse 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_MsgUpdateOwnerResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUpdateOwnerResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUpdateOwnerResponse 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_MsgUpdateOwnerResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUpdateOwnerResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUpdateOwnerResponse 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_MsgUpdateOwnerResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUpdateOwnerResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUpdateOwnerResponse 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_MsgUpdateOwnerResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUpdateOwnerResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUpdateOwnerResponse 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_MsgUpdateOwnerResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUpdateOwnerResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUpdateOwnerResponse 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_MsgUpdateOwnerResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.MsgUpdateOwnerResponse", 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_MsgUpdateOwnerResponse) 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_MsgUpdateOwnerResponse) 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_MsgUpdateOwnerResponse) 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_MsgUpdateOwnerResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgUpdateOwnerResponse) + 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().(*MsgUpdateOwnerResponse) + 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().(*MsgUpdateOwnerResponse) + 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: MsgUpdateOwnerResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateOwnerResponse: 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_MsgUpdateAttesterManager protoreflect.MessageDescriptor + fd_MsgUpdateAttesterManager_from protoreflect.FieldDescriptor + fd_MsgUpdateAttesterManager_new_attester_manager protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_tx_proto_init() + md_MsgUpdateAttesterManager = File_circle_cctp_v1_tx_proto.Messages().ByName("MsgUpdateAttesterManager") + fd_MsgUpdateAttesterManager_from = md_MsgUpdateAttesterManager.Fields().ByName("from") + fd_MsgUpdateAttesterManager_new_attester_manager = md_MsgUpdateAttesterManager.Fields().ByName("new_attester_manager") +} + +var _ protoreflect.Message = (*fastReflection_MsgUpdateAttesterManager)(nil) + +type fastReflection_MsgUpdateAttesterManager MsgUpdateAttesterManager + +func (x *MsgUpdateAttesterManager) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUpdateAttesterManager)(x) +} + +func (x *MsgUpdateAttesterManager) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_MsgUpdateAttesterManager_messageType fastReflection_MsgUpdateAttesterManager_messageType +var _ protoreflect.MessageType = fastReflection_MsgUpdateAttesterManager_messageType{} + +type fastReflection_MsgUpdateAttesterManager_messageType struct{} + +func (x fastReflection_MsgUpdateAttesterManager_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUpdateAttesterManager)(nil) +} +func (x fastReflection_MsgUpdateAttesterManager_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUpdateAttesterManager) +} +func (x fastReflection_MsgUpdateAttesterManager_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateAttesterManager +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgUpdateAttesterManager) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateAttesterManager +} + +// 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_MsgUpdateAttesterManager) Type() protoreflect.MessageType { + return _fastReflection_MsgUpdateAttesterManager_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgUpdateAttesterManager) New() protoreflect.Message { + return new(fastReflection_MsgUpdateAttesterManager) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgUpdateAttesterManager) Interface() protoreflect.ProtoMessage { + return (*MsgUpdateAttesterManager)(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_MsgUpdateAttesterManager) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.From != "" { + value := protoreflect.ValueOfString(x.From) + if !f(fd_MsgUpdateAttesterManager_from, value) { + return + } + } + if x.NewAttesterManager != "" { + value := protoreflect.ValueOfString(x.NewAttesterManager) + if !f(fd_MsgUpdateAttesterManager_new_attester_manager, 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_MsgUpdateAttesterManager) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.MsgUpdateAttesterManager.from": + return x.From != "" + case "circle.cctp.v1.MsgUpdateAttesterManager.new_attester_manager": + return x.NewAttesterManager != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUpdateAttesterManager")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUpdateAttesterManager 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_MsgUpdateAttesterManager) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.MsgUpdateAttesterManager.from": + x.From = "" + case "circle.cctp.v1.MsgUpdateAttesterManager.new_attester_manager": + x.NewAttesterManager = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUpdateAttesterManager")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUpdateAttesterManager 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_MsgUpdateAttesterManager) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.MsgUpdateAttesterManager.from": + value := x.From + return protoreflect.ValueOfString(value) + case "circle.cctp.v1.MsgUpdateAttesterManager.new_attester_manager": + value := x.NewAttesterManager + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUpdateAttesterManager")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUpdateAttesterManager 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_MsgUpdateAttesterManager) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.MsgUpdateAttesterManager.from": + x.From = value.Interface().(string) + case "circle.cctp.v1.MsgUpdateAttesterManager.new_attester_manager": + x.NewAttesterManager = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUpdateAttesterManager")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUpdateAttesterManager 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_MsgUpdateAttesterManager) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.MsgUpdateAttesterManager.from": + panic(fmt.Errorf("field from of message circle.cctp.v1.MsgUpdateAttesterManager is not mutable")) + case "circle.cctp.v1.MsgUpdateAttesterManager.new_attester_manager": + panic(fmt.Errorf("field new_attester_manager of message circle.cctp.v1.MsgUpdateAttesterManager is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUpdateAttesterManager")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUpdateAttesterManager 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_MsgUpdateAttesterManager) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.MsgUpdateAttesterManager.from": + return protoreflect.ValueOfString("") + case "circle.cctp.v1.MsgUpdateAttesterManager.new_attester_manager": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUpdateAttesterManager")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUpdateAttesterManager 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_MsgUpdateAttesterManager) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.MsgUpdateAttesterManager", 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_MsgUpdateAttesterManager) 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_MsgUpdateAttesterManager) 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_MsgUpdateAttesterManager) 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_MsgUpdateAttesterManager) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgUpdateAttesterManager) + 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.From) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.NewAttesterManager) + 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().(*MsgUpdateAttesterManager) + 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.NewAttesterManager) > 0 { + i -= len(x.NewAttesterManager) + copy(dAtA[i:], x.NewAttesterManager) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.NewAttesterManager))) + i-- + dAtA[i] = 0x12 + } + if len(x.From) > 0 { + i -= len(x.From) + copy(dAtA[i:], x.From) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.From))) + 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().(*MsgUpdateAttesterManager) + 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: MsgUpdateAttesterManager: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateAttesterManager: 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 From", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.From = 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 NewAttesterManager", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.NewAttesterManager = 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_MsgUpdateAttesterManagerResponse protoreflect.MessageDescriptor +) + +func init() { + file_circle_cctp_v1_tx_proto_init() + md_MsgUpdateAttesterManagerResponse = File_circle_cctp_v1_tx_proto.Messages().ByName("MsgUpdateAttesterManagerResponse") +} + +var _ protoreflect.Message = (*fastReflection_MsgUpdateAttesterManagerResponse)(nil) + +type fastReflection_MsgUpdateAttesterManagerResponse MsgUpdateAttesterManagerResponse + +func (x *MsgUpdateAttesterManagerResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUpdateAttesterManagerResponse)(x) +} + +func (x *MsgUpdateAttesterManagerResponse) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_MsgUpdateAttesterManagerResponse_messageType fastReflection_MsgUpdateAttesterManagerResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgUpdateAttesterManagerResponse_messageType{} + +type fastReflection_MsgUpdateAttesterManagerResponse_messageType struct{} + +func (x fastReflection_MsgUpdateAttesterManagerResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUpdateAttesterManagerResponse)(nil) +} +func (x fastReflection_MsgUpdateAttesterManagerResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUpdateAttesterManagerResponse) +} +func (x fastReflection_MsgUpdateAttesterManagerResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateAttesterManagerResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgUpdateAttesterManagerResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateAttesterManagerResponse +} + +// 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_MsgUpdateAttesterManagerResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgUpdateAttesterManagerResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgUpdateAttesterManagerResponse) New() protoreflect.Message { + return new(fastReflection_MsgUpdateAttesterManagerResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgUpdateAttesterManagerResponse) Interface() protoreflect.ProtoMessage { + return (*MsgUpdateAttesterManagerResponse)(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_MsgUpdateAttesterManagerResponse) 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_MsgUpdateAttesterManagerResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUpdateAttesterManagerResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUpdateAttesterManagerResponse 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_MsgUpdateAttesterManagerResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUpdateAttesterManagerResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUpdateAttesterManagerResponse 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_MsgUpdateAttesterManagerResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUpdateAttesterManagerResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUpdateAttesterManagerResponse 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_MsgUpdateAttesterManagerResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUpdateAttesterManagerResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUpdateAttesterManagerResponse 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_MsgUpdateAttesterManagerResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUpdateAttesterManagerResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUpdateAttesterManagerResponse 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_MsgUpdateAttesterManagerResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUpdateAttesterManagerResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUpdateAttesterManagerResponse 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_MsgUpdateAttesterManagerResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.MsgUpdateAttesterManagerResponse", 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_MsgUpdateAttesterManagerResponse) 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_MsgUpdateAttesterManagerResponse) 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_MsgUpdateAttesterManagerResponse) 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_MsgUpdateAttesterManagerResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgUpdateAttesterManagerResponse) + 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().(*MsgUpdateAttesterManagerResponse) + 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().(*MsgUpdateAttesterManagerResponse) + 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: MsgUpdateAttesterManagerResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateAttesterManagerResponse: 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_MsgUpdateTokenController protoreflect.MessageDescriptor + fd_MsgUpdateTokenController_from protoreflect.FieldDescriptor + fd_MsgUpdateTokenController_new_token_controller protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_tx_proto_init() + md_MsgUpdateTokenController = File_circle_cctp_v1_tx_proto.Messages().ByName("MsgUpdateTokenController") + fd_MsgUpdateTokenController_from = md_MsgUpdateTokenController.Fields().ByName("from") + fd_MsgUpdateTokenController_new_token_controller = md_MsgUpdateTokenController.Fields().ByName("new_token_controller") +} + +var _ protoreflect.Message = (*fastReflection_MsgUpdateTokenController)(nil) + +type fastReflection_MsgUpdateTokenController MsgUpdateTokenController + +func (x *MsgUpdateTokenController) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUpdateTokenController)(x) +} + +func (x *MsgUpdateTokenController) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_MsgUpdateTokenController_messageType fastReflection_MsgUpdateTokenController_messageType +var _ protoreflect.MessageType = fastReflection_MsgUpdateTokenController_messageType{} + +type fastReflection_MsgUpdateTokenController_messageType struct{} + +func (x fastReflection_MsgUpdateTokenController_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUpdateTokenController)(nil) +} +func (x fastReflection_MsgUpdateTokenController_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUpdateTokenController) +} +func (x fastReflection_MsgUpdateTokenController_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateTokenController +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgUpdateTokenController) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateTokenController +} + +// 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_MsgUpdateTokenController) Type() protoreflect.MessageType { + return _fastReflection_MsgUpdateTokenController_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgUpdateTokenController) New() protoreflect.Message { + return new(fastReflection_MsgUpdateTokenController) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgUpdateTokenController) Interface() protoreflect.ProtoMessage { + return (*MsgUpdateTokenController)(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_MsgUpdateTokenController) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.From != "" { + value := protoreflect.ValueOfString(x.From) + if !f(fd_MsgUpdateTokenController_from, value) { + return + } + } + if x.NewTokenController != "" { + value := protoreflect.ValueOfString(x.NewTokenController) + if !f(fd_MsgUpdateTokenController_new_token_controller, 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_MsgUpdateTokenController) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.MsgUpdateTokenController.from": + return x.From != "" + case "circle.cctp.v1.MsgUpdateTokenController.new_token_controller": + return x.NewTokenController != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUpdateTokenController")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUpdateTokenController 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_MsgUpdateTokenController) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.MsgUpdateTokenController.from": + x.From = "" + case "circle.cctp.v1.MsgUpdateTokenController.new_token_controller": + x.NewTokenController = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUpdateTokenController")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUpdateTokenController 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_MsgUpdateTokenController) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.MsgUpdateTokenController.from": + value := x.From + return protoreflect.ValueOfString(value) + case "circle.cctp.v1.MsgUpdateTokenController.new_token_controller": + value := x.NewTokenController + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUpdateTokenController")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUpdateTokenController 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_MsgUpdateTokenController) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.MsgUpdateTokenController.from": + x.From = value.Interface().(string) + case "circle.cctp.v1.MsgUpdateTokenController.new_token_controller": + x.NewTokenController = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUpdateTokenController")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUpdateTokenController 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_MsgUpdateTokenController) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.MsgUpdateTokenController.from": + panic(fmt.Errorf("field from of message circle.cctp.v1.MsgUpdateTokenController is not mutable")) + case "circle.cctp.v1.MsgUpdateTokenController.new_token_controller": + panic(fmt.Errorf("field new_token_controller of message circle.cctp.v1.MsgUpdateTokenController is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUpdateTokenController")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUpdateTokenController 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_MsgUpdateTokenController) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.MsgUpdateTokenController.from": + return protoreflect.ValueOfString("") + case "circle.cctp.v1.MsgUpdateTokenController.new_token_controller": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUpdateTokenController")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUpdateTokenController 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_MsgUpdateTokenController) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.MsgUpdateTokenController", 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_MsgUpdateTokenController) 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_MsgUpdateTokenController) 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_MsgUpdateTokenController) 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_MsgUpdateTokenController) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgUpdateTokenController) + 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.From) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.NewTokenController) + 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().(*MsgUpdateTokenController) + 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.NewTokenController) > 0 { + i -= len(x.NewTokenController) + copy(dAtA[i:], x.NewTokenController) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.NewTokenController))) + i-- + dAtA[i] = 0x12 + } + if len(x.From) > 0 { + i -= len(x.From) + copy(dAtA[i:], x.From) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.From))) + 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().(*MsgUpdateTokenController) + 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: MsgUpdateTokenController: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateTokenController: 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 From", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.From = 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 NewTokenController", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.NewTokenController = 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_MsgUpdateTokenControllerResponse protoreflect.MessageDescriptor +) + +func init() { + file_circle_cctp_v1_tx_proto_init() + md_MsgUpdateTokenControllerResponse = File_circle_cctp_v1_tx_proto.Messages().ByName("MsgUpdateTokenControllerResponse") +} + +var _ protoreflect.Message = (*fastReflection_MsgUpdateTokenControllerResponse)(nil) + +type fastReflection_MsgUpdateTokenControllerResponse MsgUpdateTokenControllerResponse + +func (x *MsgUpdateTokenControllerResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUpdateTokenControllerResponse)(x) +} + +func (x *MsgUpdateTokenControllerResponse) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_MsgUpdateTokenControllerResponse_messageType fastReflection_MsgUpdateTokenControllerResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgUpdateTokenControllerResponse_messageType{} + +type fastReflection_MsgUpdateTokenControllerResponse_messageType struct{} + +func (x fastReflection_MsgUpdateTokenControllerResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUpdateTokenControllerResponse)(nil) +} +func (x fastReflection_MsgUpdateTokenControllerResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUpdateTokenControllerResponse) +} +func (x fastReflection_MsgUpdateTokenControllerResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateTokenControllerResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgUpdateTokenControllerResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateTokenControllerResponse +} + +// 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_MsgUpdateTokenControllerResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgUpdateTokenControllerResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgUpdateTokenControllerResponse) New() protoreflect.Message { + return new(fastReflection_MsgUpdateTokenControllerResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgUpdateTokenControllerResponse) Interface() protoreflect.ProtoMessage { + return (*MsgUpdateTokenControllerResponse)(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_MsgUpdateTokenControllerResponse) 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_MsgUpdateTokenControllerResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUpdateTokenControllerResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUpdateTokenControllerResponse 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_MsgUpdateTokenControllerResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUpdateTokenControllerResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUpdateTokenControllerResponse 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_MsgUpdateTokenControllerResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUpdateTokenControllerResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUpdateTokenControllerResponse 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_MsgUpdateTokenControllerResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUpdateTokenControllerResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUpdateTokenControllerResponse 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_MsgUpdateTokenControllerResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUpdateTokenControllerResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUpdateTokenControllerResponse 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_MsgUpdateTokenControllerResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUpdateTokenControllerResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUpdateTokenControllerResponse 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_MsgUpdateTokenControllerResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.MsgUpdateTokenControllerResponse", 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_MsgUpdateTokenControllerResponse) 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_MsgUpdateTokenControllerResponse) 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_MsgUpdateTokenControllerResponse) 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_MsgUpdateTokenControllerResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgUpdateTokenControllerResponse) + 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().(*MsgUpdateTokenControllerResponse) + 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().(*MsgUpdateTokenControllerResponse) + 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: MsgUpdateTokenControllerResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateTokenControllerResponse: 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_MsgUpdatePauser protoreflect.MessageDescriptor + fd_MsgUpdatePauser_from protoreflect.FieldDescriptor + fd_MsgUpdatePauser_new_pauser protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_tx_proto_init() + md_MsgUpdatePauser = File_circle_cctp_v1_tx_proto.Messages().ByName("MsgUpdatePauser") + fd_MsgUpdatePauser_from = md_MsgUpdatePauser.Fields().ByName("from") + fd_MsgUpdatePauser_new_pauser = md_MsgUpdatePauser.Fields().ByName("new_pauser") +} + +var _ protoreflect.Message = (*fastReflection_MsgUpdatePauser)(nil) + +type fastReflection_MsgUpdatePauser MsgUpdatePauser + +func (x *MsgUpdatePauser) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUpdatePauser)(x) +} + +func (x *MsgUpdatePauser) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_MsgUpdatePauser_messageType fastReflection_MsgUpdatePauser_messageType +var _ protoreflect.MessageType = fastReflection_MsgUpdatePauser_messageType{} + +type fastReflection_MsgUpdatePauser_messageType struct{} + +func (x fastReflection_MsgUpdatePauser_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUpdatePauser)(nil) +} +func (x fastReflection_MsgUpdatePauser_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUpdatePauser) +} +func (x fastReflection_MsgUpdatePauser_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdatePauser +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgUpdatePauser) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdatePauser +} + +// 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_MsgUpdatePauser) Type() protoreflect.MessageType { + return _fastReflection_MsgUpdatePauser_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgUpdatePauser) New() protoreflect.Message { + return new(fastReflection_MsgUpdatePauser) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgUpdatePauser) Interface() protoreflect.ProtoMessage { + return (*MsgUpdatePauser)(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_MsgUpdatePauser) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.From != "" { + value := protoreflect.ValueOfString(x.From) + if !f(fd_MsgUpdatePauser_from, value) { + return + } + } + if x.NewPauser != "" { + value := protoreflect.ValueOfString(x.NewPauser) + if !f(fd_MsgUpdatePauser_new_pauser, 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_MsgUpdatePauser) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.MsgUpdatePauser.from": + return x.From != "" + case "circle.cctp.v1.MsgUpdatePauser.new_pauser": + return x.NewPauser != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUpdatePauser")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUpdatePauser 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_MsgUpdatePauser) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.MsgUpdatePauser.from": + x.From = "" + case "circle.cctp.v1.MsgUpdatePauser.new_pauser": + x.NewPauser = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUpdatePauser")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUpdatePauser 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_MsgUpdatePauser) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.MsgUpdatePauser.from": + value := x.From + return protoreflect.ValueOfString(value) + case "circle.cctp.v1.MsgUpdatePauser.new_pauser": + value := x.NewPauser + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUpdatePauser")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUpdatePauser 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_MsgUpdatePauser) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.MsgUpdatePauser.from": + x.From = value.Interface().(string) + case "circle.cctp.v1.MsgUpdatePauser.new_pauser": + x.NewPauser = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUpdatePauser")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUpdatePauser 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_MsgUpdatePauser) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.MsgUpdatePauser.from": + panic(fmt.Errorf("field from of message circle.cctp.v1.MsgUpdatePauser is not mutable")) + case "circle.cctp.v1.MsgUpdatePauser.new_pauser": + panic(fmt.Errorf("field new_pauser of message circle.cctp.v1.MsgUpdatePauser is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUpdatePauser")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUpdatePauser 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_MsgUpdatePauser) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.MsgUpdatePauser.from": + return protoreflect.ValueOfString("") + case "circle.cctp.v1.MsgUpdatePauser.new_pauser": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUpdatePauser")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUpdatePauser 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_MsgUpdatePauser) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.MsgUpdatePauser", 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_MsgUpdatePauser) 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_MsgUpdatePauser) 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_MsgUpdatePauser) 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_MsgUpdatePauser) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgUpdatePauser) + 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.From) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.NewPauser) + 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().(*MsgUpdatePauser) + 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.NewPauser) > 0 { + i -= len(x.NewPauser) + copy(dAtA[i:], x.NewPauser) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.NewPauser))) + i-- + dAtA[i] = 0x12 + } + if len(x.From) > 0 { + i -= len(x.From) + copy(dAtA[i:], x.From) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.From))) + 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().(*MsgUpdatePauser) + 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: MsgUpdatePauser: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdatePauser: 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 From", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.From = 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 NewPauser", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.NewPauser = 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_MsgUpdatePauserResponse protoreflect.MessageDescriptor +) + +func init() { + file_circle_cctp_v1_tx_proto_init() + md_MsgUpdatePauserResponse = File_circle_cctp_v1_tx_proto.Messages().ByName("MsgUpdatePauserResponse") +} + +var _ protoreflect.Message = (*fastReflection_MsgUpdatePauserResponse)(nil) + +type fastReflection_MsgUpdatePauserResponse MsgUpdatePauserResponse + +func (x *MsgUpdatePauserResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUpdatePauserResponse)(x) +} + +func (x *MsgUpdatePauserResponse) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_MsgUpdatePauserResponse_messageType fastReflection_MsgUpdatePauserResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgUpdatePauserResponse_messageType{} + +type fastReflection_MsgUpdatePauserResponse_messageType struct{} + +func (x fastReflection_MsgUpdatePauserResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUpdatePauserResponse)(nil) +} +func (x fastReflection_MsgUpdatePauserResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUpdatePauserResponse) +} +func (x fastReflection_MsgUpdatePauserResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdatePauserResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgUpdatePauserResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdatePauserResponse +} + +// 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_MsgUpdatePauserResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgUpdatePauserResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgUpdatePauserResponse) New() protoreflect.Message { + return new(fastReflection_MsgUpdatePauserResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgUpdatePauserResponse) Interface() protoreflect.ProtoMessage { + return (*MsgUpdatePauserResponse)(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_MsgUpdatePauserResponse) 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_MsgUpdatePauserResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUpdatePauserResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUpdatePauserResponse 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_MsgUpdatePauserResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUpdatePauserResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUpdatePauserResponse 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_MsgUpdatePauserResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUpdatePauserResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUpdatePauserResponse 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_MsgUpdatePauserResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUpdatePauserResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUpdatePauserResponse 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_MsgUpdatePauserResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUpdatePauserResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUpdatePauserResponse 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_MsgUpdatePauserResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUpdatePauserResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUpdatePauserResponse 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_MsgUpdatePauserResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.MsgUpdatePauserResponse", 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_MsgUpdatePauserResponse) 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_MsgUpdatePauserResponse) 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_MsgUpdatePauserResponse) 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_MsgUpdatePauserResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgUpdatePauserResponse) + 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().(*MsgUpdatePauserResponse) + 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().(*MsgUpdatePauserResponse) + 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: MsgUpdatePauserResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdatePauserResponse: 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_MsgAcceptOwner protoreflect.MessageDescriptor + fd_MsgAcceptOwner_from protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_tx_proto_init() + md_MsgAcceptOwner = File_circle_cctp_v1_tx_proto.Messages().ByName("MsgAcceptOwner") + fd_MsgAcceptOwner_from = md_MsgAcceptOwner.Fields().ByName("from") +} + +var _ protoreflect.Message = (*fastReflection_MsgAcceptOwner)(nil) + +type fastReflection_MsgAcceptOwner MsgAcceptOwner + +func (x *MsgAcceptOwner) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgAcceptOwner)(x) +} + +func (x *MsgAcceptOwner) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_MsgAcceptOwner_messageType fastReflection_MsgAcceptOwner_messageType +var _ protoreflect.MessageType = fastReflection_MsgAcceptOwner_messageType{} + +type fastReflection_MsgAcceptOwner_messageType struct{} + +func (x fastReflection_MsgAcceptOwner_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgAcceptOwner)(nil) +} +func (x fastReflection_MsgAcceptOwner_messageType) New() protoreflect.Message { + return new(fastReflection_MsgAcceptOwner) +} +func (x fastReflection_MsgAcceptOwner_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgAcceptOwner +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgAcceptOwner) Descriptor() protoreflect.MessageDescriptor { + return md_MsgAcceptOwner +} + +// 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_MsgAcceptOwner) Type() protoreflect.MessageType { + return _fastReflection_MsgAcceptOwner_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgAcceptOwner) New() protoreflect.Message { + return new(fastReflection_MsgAcceptOwner) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgAcceptOwner) Interface() protoreflect.ProtoMessage { + return (*MsgAcceptOwner)(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_MsgAcceptOwner) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.From != "" { + value := protoreflect.ValueOfString(x.From) + if !f(fd_MsgAcceptOwner_from, 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_MsgAcceptOwner) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.MsgAcceptOwner.from": + return x.From != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgAcceptOwner")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgAcceptOwner 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_MsgAcceptOwner) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.MsgAcceptOwner.from": + x.From = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgAcceptOwner")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgAcceptOwner 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_MsgAcceptOwner) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.MsgAcceptOwner.from": + value := x.From + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgAcceptOwner")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgAcceptOwner 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_MsgAcceptOwner) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.MsgAcceptOwner.from": + x.From = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgAcceptOwner")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgAcceptOwner 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_MsgAcceptOwner) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.MsgAcceptOwner.from": + panic(fmt.Errorf("field from of message circle.cctp.v1.MsgAcceptOwner is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgAcceptOwner")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgAcceptOwner 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_MsgAcceptOwner) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.MsgAcceptOwner.from": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgAcceptOwner")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgAcceptOwner 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_MsgAcceptOwner) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.MsgAcceptOwner", 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_MsgAcceptOwner) 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_MsgAcceptOwner) 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_MsgAcceptOwner) 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_MsgAcceptOwner) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgAcceptOwner) + 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.From) + 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().(*MsgAcceptOwner) + 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.From) > 0 { + i -= len(x.From) + copy(dAtA[i:], x.From) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.From))) + 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().(*MsgAcceptOwner) + 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: MsgAcceptOwner: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgAcceptOwner: 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 From", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.From = 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_MsgAcceptOwnerResponse protoreflect.MessageDescriptor +) + +func init() { + file_circle_cctp_v1_tx_proto_init() + md_MsgAcceptOwnerResponse = File_circle_cctp_v1_tx_proto.Messages().ByName("MsgAcceptOwnerResponse") +} + +var _ protoreflect.Message = (*fastReflection_MsgAcceptOwnerResponse)(nil) + +type fastReflection_MsgAcceptOwnerResponse MsgAcceptOwnerResponse + +func (x *MsgAcceptOwnerResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgAcceptOwnerResponse)(x) +} + +func (x *MsgAcceptOwnerResponse) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_MsgAcceptOwnerResponse_messageType fastReflection_MsgAcceptOwnerResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgAcceptOwnerResponse_messageType{} + +type fastReflection_MsgAcceptOwnerResponse_messageType struct{} + +func (x fastReflection_MsgAcceptOwnerResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgAcceptOwnerResponse)(nil) +} +func (x fastReflection_MsgAcceptOwnerResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgAcceptOwnerResponse) +} +func (x fastReflection_MsgAcceptOwnerResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgAcceptOwnerResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgAcceptOwnerResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgAcceptOwnerResponse +} + +// 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_MsgAcceptOwnerResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgAcceptOwnerResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgAcceptOwnerResponse) New() protoreflect.Message { + return new(fastReflection_MsgAcceptOwnerResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgAcceptOwnerResponse) Interface() protoreflect.ProtoMessage { + return (*MsgAcceptOwnerResponse)(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_MsgAcceptOwnerResponse) 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_MsgAcceptOwnerResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgAcceptOwnerResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgAcceptOwnerResponse 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_MsgAcceptOwnerResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgAcceptOwnerResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgAcceptOwnerResponse 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_MsgAcceptOwnerResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgAcceptOwnerResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgAcceptOwnerResponse 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_MsgAcceptOwnerResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgAcceptOwnerResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgAcceptOwnerResponse 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_MsgAcceptOwnerResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgAcceptOwnerResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgAcceptOwnerResponse 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_MsgAcceptOwnerResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgAcceptOwnerResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgAcceptOwnerResponse 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_MsgAcceptOwnerResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.MsgAcceptOwnerResponse", 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_MsgAcceptOwnerResponse) 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_MsgAcceptOwnerResponse) 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_MsgAcceptOwnerResponse) 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_MsgAcceptOwnerResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgAcceptOwnerResponse) + 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().(*MsgAcceptOwnerResponse) + 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().(*MsgAcceptOwnerResponse) + 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: MsgAcceptOwnerResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgAcceptOwnerResponse: 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_MsgEnableAttester protoreflect.MessageDescriptor + fd_MsgEnableAttester_from protoreflect.FieldDescriptor + fd_MsgEnableAttester_attester protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_tx_proto_init() + md_MsgEnableAttester = File_circle_cctp_v1_tx_proto.Messages().ByName("MsgEnableAttester") + fd_MsgEnableAttester_from = md_MsgEnableAttester.Fields().ByName("from") + fd_MsgEnableAttester_attester = md_MsgEnableAttester.Fields().ByName("attester") +} + +var _ protoreflect.Message = (*fastReflection_MsgEnableAttester)(nil) + +type fastReflection_MsgEnableAttester MsgEnableAttester + +func (x *MsgEnableAttester) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgEnableAttester)(x) +} + +func (x *MsgEnableAttester) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_MsgEnableAttester_messageType fastReflection_MsgEnableAttester_messageType +var _ protoreflect.MessageType = fastReflection_MsgEnableAttester_messageType{} + +type fastReflection_MsgEnableAttester_messageType struct{} + +func (x fastReflection_MsgEnableAttester_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgEnableAttester)(nil) +} +func (x fastReflection_MsgEnableAttester_messageType) New() protoreflect.Message { + return new(fastReflection_MsgEnableAttester) +} +func (x fastReflection_MsgEnableAttester_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgEnableAttester +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgEnableAttester) Descriptor() protoreflect.MessageDescriptor { + return md_MsgEnableAttester +} + +// 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_MsgEnableAttester) Type() protoreflect.MessageType { + return _fastReflection_MsgEnableAttester_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgEnableAttester) New() protoreflect.Message { + return new(fastReflection_MsgEnableAttester) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgEnableAttester) Interface() protoreflect.ProtoMessage { + return (*MsgEnableAttester)(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_MsgEnableAttester) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.From != "" { + value := protoreflect.ValueOfString(x.From) + if !f(fd_MsgEnableAttester_from, value) { + return + } + } + if x.Attester != "" { + value := protoreflect.ValueOfString(x.Attester) + if !f(fd_MsgEnableAttester_attester, 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_MsgEnableAttester) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.MsgEnableAttester.from": + return x.From != "" + case "circle.cctp.v1.MsgEnableAttester.attester": + return x.Attester != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgEnableAttester")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgEnableAttester 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_MsgEnableAttester) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.MsgEnableAttester.from": + x.From = "" + case "circle.cctp.v1.MsgEnableAttester.attester": + x.Attester = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgEnableAttester")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgEnableAttester 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_MsgEnableAttester) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.MsgEnableAttester.from": + value := x.From + return protoreflect.ValueOfString(value) + case "circle.cctp.v1.MsgEnableAttester.attester": + value := x.Attester + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgEnableAttester")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgEnableAttester 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_MsgEnableAttester) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.MsgEnableAttester.from": + x.From = value.Interface().(string) + case "circle.cctp.v1.MsgEnableAttester.attester": + x.Attester = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgEnableAttester")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgEnableAttester 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_MsgEnableAttester) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.MsgEnableAttester.from": + panic(fmt.Errorf("field from of message circle.cctp.v1.MsgEnableAttester is not mutable")) + case "circle.cctp.v1.MsgEnableAttester.attester": + panic(fmt.Errorf("field attester of message circle.cctp.v1.MsgEnableAttester is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgEnableAttester")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgEnableAttester 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_MsgEnableAttester) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.MsgEnableAttester.from": + return protoreflect.ValueOfString("") + case "circle.cctp.v1.MsgEnableAttester.attester": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgEnableAttester")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgEnableAttester 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_MsgEnableAttester) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.MsgEnableAttester", 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_MsgEnableAttester) 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_MsgEnableAttester) 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_MsgEnableAttester) 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_MsgEnableAttester) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgEnableAttester) + 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.From) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Attester) + 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().(*MsgEnableAttester) + 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.Attester) > 0 { + i -= len(x.Attester) + copy(dAtA[i:], x.Attester) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Attester))) + i-- + dAtA[i] = 0x12 + } + if len(x.From) > 0 { + i -= len(x.From) + copy(dAtA[i:], x.From) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.From))) + 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().(*MsgEnableAttester) + 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: MsgEnableAttester: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgEnableAttester: 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 From", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.From = 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 Attester", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Attester = 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_MsgEnableAttesterResponse protoreflect.MessageDescriptor +) + +func init() { + file_circle_cctp_v1_tx_proto_init() + md_MsgEnableAttesterResponse = File_circle_cctp_v1_tx_proto.Messages().ByName("MsgEnableAttesterResponse") +} + +var _ protoreflect.Message = (*fastReflection_MsgEnableAttesterResponse)(nil) + +type fastReflection_MsgEnableAttesterResponse MsgEnableAttesterResponse + +func (x *MsgEnableAttesterResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgEnableAttesterResponse)(x) +} + +func (x *MsgEnableAttesterResponse) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_MsgEnableAttesterResponse_messageType fastReflection_MsgEnableAttesterResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgEnableAttesterResponse_messageType{} + +type fastReflection_MsgEnableAttesterResponse_messageType struct{} + +func (x fastReflection_MsgEnableAttesterResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgEnableAttesterResponse)(nil) +} +func (x fastReflection_MsgEnableAttesterResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgEnableAttesterResponse) +} +func (x fastReflection_MsgEnableAttesterResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgEnableAttesterResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgEnableAttesterResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgEnableAttesterResponse +} + +// 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_MsgEnableAttesterResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgEnableAttesterResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgEnableAttesterResponse) New() protoreflect.Message { + return new(fastReflection_MsgEnableAttesterResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgEnableAttesterResponse) Interface() protoreflect.ProtoMessage { + return (*MsgEnableAttesterResponse)(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_MsgEnableAttesterResponse) 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_MsgEnableAttesterResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgEnableAttesterResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgEnableAttesterResponse 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_MsgEnableAttesterResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgEnableAttesterResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgEnableAttesterResponse 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_MsgEnableAttesterResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgEnableAttesterResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgEnableAttesterResponse 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_MsgEnableAttesterResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgEnableAttesterResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgEnableAttesterResponse 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_MsgEnableAttesterResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgEnableAttesterResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgEnableAttesterResponse 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_MsgEnableAttesterResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgEnableAttesterResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgEnableAttesterResponse 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_MsgEnableAttesterResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.MsgEnableAttesterResponse", 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_MsgEnableAttesterResponse) 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_MsgEnableAttesterResponse) 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_MsgEnableAttesterResponse) 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_MsgEnableAttesterResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgEnableAttesterResponse) + 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().(*MsgEnableAttesterResponse) + 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().(*MsgEnableAttesterResponse) + 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: MsgEnableAttesterResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgEnableAttesterResponse: 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_MsgDisableAttester protoreflect.MessageDescriptor + fd_MsgDisableAttester_from protoreflect.FieldDescriptor + fd_MsgDisableAttester_attester protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_tx_proto_init() + md_MsgDisableAttester = File_circle_cctp_v1_tx_proto.Messages().ByName("MsgDisableAttester") + fd_MsgDisableAttester_from = md_MsgDisableAttester.Fields().ByName("from") + fd_MsgDisableAttester_attester = md_MsgDisableAttester.Fields().ByName("attester") +} + +var _ protoreflect.Message = (*fastReflection_MsgDisableAttester)(nil) + +type fastReflection_MsgDisableAttester MsgDisableAttester + +func (x *MsgDisableAttester) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgDisableAttester)(x) +} + +func (x *MsgDisableAttester) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_MsgDisableAttester_messageType fastReflection_MsgDisableAttester_messageType +var _ protoreflect.MessageType = fastReflection_MsgDisableAttester_messageType{} + +type fastReflection_MsgDisableAttester_messageType struct{} + +func (x fastReflection_MsgDisableAttester_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgDisableAttester)(nil) +} +func (x fastReflection_MsgDisableAttester_messageType) New() protoreflect.Message { + return new(fastReflection_MsgDisableAttester) +} +func (x fastReflection_MsgDisableAttester_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgDisableAttester +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgDisableAttester) Descriptor() protoreflect.MessageDescriptor { + return md_MsgDisableAttester +} + +// 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_MsgDisableAttester) Type() protoreflect.MessageType { + return _fastReflection_MsgDisableAttester_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgDisableAttester) New() protoreflect.Message { + return new(fastReflection_MsgDisableAttester) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgDisableAttester) Interface() protoreflect.ProtoMessage { + return (*MsgDisableAttester)(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_MsgDisableAttester) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.From != "" { + value := protoreflect.ValueOfString(x.From) + if !f(fd_MsgDisableAttester_from, value) { + return + } + } + if x.Attester != "" { + value := protoreflect.ValueOfString(x.Attester) + if !f(fd_MsgDisableAttester_attester, 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_MsgDisableAttester) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.MsgDisableAttester.from": + return x.From != "" + case "circle.cctp.v1.MsgDisableAttester.attester": + return x.Attester != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgDisableAttester")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgDisableAttester 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_MsgDisableAttester) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.MsgDisableAttester.from": + x.From = "" + case "circle.cctp.v1.MsgDisableAttester.attester": + x.Attester = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgDisableAttester")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgDisableAttester 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_MsgDisableAttester) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.MsgDisableAttester.from": + value := x.From + return protoreflect.ValueOfString(value) + case "circle.cctp.v1.MsgDisableAttester.attester": + value := x.Attester + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgDisableAttester")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgDisableAttester 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_MsgDisableAttester) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.MsgDisableAttester.from": + x.From = value.Interface().(string) + case "circle.cctp.v1.MsgDisableAttester.attester": + x.Attester = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgDisableAttester")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgDisableAttester 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_MsgDisableAttester) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.MsgDisableAttester.from": + panic(fmt.Errorf("field from of message circle.cctp.v1.MsgDisableAttester is not mutable")) + case "circle.cctp.v1.MsgDisableAttester.attester": + panic(fmt.Errorf("field attester of message circle.cctp.v1.MsgDisableAttester is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgDisableAttester")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgDisableAttester 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_MsgDisableAttester) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.MsgDisableAttester.from": + return protoreflect.ValueOfString("") + case "circle.cctp.v1.MsgDisableAttester.attester": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgDisableAttester")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgDisableAttester 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_MsgDisableAttester) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.MsgDisableAttester", 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_MsgDisableAttester) 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_MsgDisableAttester) 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_MsgDisableAttester) 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_MsgDisableAttester) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgDisableAttester) + 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.From) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Attester) + 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().(*MsgDisableAttester) + 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.Attester) > 0 { + i -= len(x.Attester) + copy(dAtA[i:], x.Attester) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Attester))) + i-- + dAtA[i] = 0x12 + } + if len(x.From) > 0 { + i -= len(x.From) + copy(dAtA[i:], x.From) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.From))) + 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().(*MsgDisableAttester) + 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: MsgDisableAttester: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgDisableAttester: 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 From", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.From = 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 Attester", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Attester = 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_MsgDisableAttesterResponse protoreflect.MessageDescriptor +) + +func init() { + file_circle_cctp_v1_tx_proto_init() + md_MsgDisableAttesterResponse = File_circle_cctp_v1_tx_proto.Messages().ByName("MsgDisableAttesterResponse") +} + +var _ protoreflect.Message = (*fastReflection_MsgDisableAttesterResponse)(nil) + +type fastReflection_MsgDisableAttesterResponse MsgDisableAttesterResponse + +func (x *MsgDisableAttesterResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgDisableAttesterResponse)(x) +} + +func (x *MsgDisableAttesterResponse) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_MsgDisableAttesterResponse_messageType fastReflection_MsgDisableAttesterResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgDisableAttesterResponse_messageType{} + +type fastReflection_MsgDisableAttesterResponse_messageType struct{} + +func (x fastReflection_MsgDisableAttesterResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgDisableAttesterResponse)(nil) +} +func (x fastReflection_MsgDisableAttesterResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgDisableAttesterResponse) +} +func (x fastReflection_MsgDisableAttesterResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgDisableAttesterResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgDisableAttesterResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgDisableAttesterResponse +} + +// 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_MsgDisableAttesterResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgDisableAttesterResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgDisableAttesterResponse) New() protoreflect.Message { + return new(fastReflection_MsgDisableAttesterResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgDisableAttesterResponse) Interface() protoreflect.ProtoMessage { + return (*MsgDisableAttesterResponse)(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_MsgDisableAttesterResponse) 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_MsgDisableAttesterResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgDisableAttesterResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgDisableAttesterResponse 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_MsgDisableAttesterResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgDisableAttesterResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgDisableAttesterResponse 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_MsgDisableAttesterResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgDisableAttesterResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgDisableAttesterResponse 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_MsgDisableAttesterResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgDisableAttesterResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgDisableAttesterResponse 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_MsgDisableAttesterResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgDisableAttesterResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgDisableAttesterResponse 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_MsgDisableAttesterResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgDisableAttesterResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgDisableAttesterResponse 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_MsgDisableAttesterResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.MsgDisableAttesterResponse", 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_MsgDisableAttesterResponse) 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_MsgDisableAttesterResponse) 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_MsgDisableAttesterResponse) 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_MsgDisableAttesterResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgDisableAttesterResponse) + 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().(*MsgDisableAttesterResponse) + 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().(*MsgDisableAttesterResponse) + 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: MsgDisableAttesterResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgDisableAttesterResponse: 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_MsgPauseBurningAndMinting protoreflect.MessageDescriptor + fd_MsgPauseBurningAndMinting_from protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_tx_proto_init() + md_MsgPauseBurningAndMinting = File_circle_cctp_v1_tx_proto.Messages().ByName("MsgPauseBurningAndMinting") + fd_MsgPauseBurningAndMinting_from = md_MsgPauseBurningAndMinting.Fields().ByName("from") +} + +var _ protoreflect.Message = (*fastReflection_MsgPauseBurningAndMinting)(nil) + +type fastReflection_MsgPauseBurningAndMinting MsgPauseBurningAndMinting + +func (x *MsgPauseBurningAndMinting) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgPauseBurningAndMinting)(x) +} + +func (x *MsgPauseBurningAndMinting) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_MsgPauseBurningAndMinting_messageType fastReflection_MsgPauseBurningAndMinting_messageType +var _ protoreflect.MessageType = fastReflection_MsgPauseBurningAndMinting_messageType{} + +type fastReflection_MsgPauseBurningAndMinting_messageType struct{} + +func (x fastReflection_MsgPauseBurningAndMinting_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgPauseBurningAndMinting)(nil) +} +func (x fastReflection_MsgPauseBurningAndMinting_messageType) New() protoreflect.Message { + return new(fastReflection_MsgPauseBurningAndMinting) +} +func (x fastReflection_MsgPauseBurningAndMinting_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgPauseBurningAndMinting +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgPauseBurningAndMinting) Descriptor() protoreflect.MessageDescriptor { + return md_MsgPauseBurningAndMinting +} + +// 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_MsgPauseBurningAndMinting) Type() protoreflect.MessageType { + return _fastReflection_MsgPauseBurningAndMinting_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgPauseBurningAndMinting) New() protoreflect.Message { + return new(fastReflection_MsgPauseBurningAndMinting) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgPauseBurningAndMinting) Interface() protoreflect.ProtoMessage { + return (*MsgPauseBurningAndMinting)(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_MsgPauseBurningAndMinting) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.From != "" { + value := protoreflect.ValueOfString(x.From) + if !f(fd_MsgPauseBurningAndMinting_from, 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_MsgPauseBurningAndMinting) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.MsgPauseBurningAndMinting.from": + return x.From != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgPauseBurningAndMinting")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgPauseBurningAndMinting 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_MsgPauseBurningAndMinting) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.MsgPauseBurningAndMinting.from": + x.From = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgPauseBurningAndMinting")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgPauseBurningAndMinting 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_MsgPauseBurningAndMinting) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.MsgPauseBurningAndMinting.from": + value := x.From + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgPauseBurningAndMinting")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgPauseBurningAndMinting 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_MsgPauseBurningAndMinting) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.MsgPauseBurningAndMinting.from": + x.From = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgPauseBurningAndMinting")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgPauseBurningAndMinting 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_MsgPauseBurningAndMinting) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.MsgPauseBurningAndMinting.from": + panic(fmt.Errorf("field from of message circle.cctp.v1.MsgPauseBurningAndMinting is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgPauseBurningAndMinting")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgPauseBurningAndMinting 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_MsgPauseBurningAndMinting) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.MsgPauseBurningAndMinting.from": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgPauseBurningAndMinting")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgPauseBurningAndMinting 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_MsgPauseBurningAndMinting) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.MsgPauseBurningAndMinting", 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_MsgPauseBurningAndMinting) 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_MsgPauseBurningAndMinting) 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_MsgPauseBurningAndMinting) 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_MsgPauseBurningAndMinting) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgPauseBurningAndMinting) + 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.From) + 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().(*MsgPauseBurningAndMinting) + 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.From) > 0 { + i -= len(x.From) + copy(dAtA[i:], x.From) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.From))) + 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().(*MsgPauseBurningAndMinting) + 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: MsgPauseBurningAndMinting: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgPauseBurningAndMinting: 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 From", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.From = 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_MsgPauseBurningAndMintingResponse protoreflect.MessageDescriptor +) + +func init() { + file_circle_cctp_v1_tx_proto_init() + md_MsgPauseBurningAndMintingResponse = File_circle_cctp_v1_tx_proto.Messages().ByName("MsgPauseBurningAndMintingResponse") +} + +var _ protoreflect.Message = (*fastReflection_MsgPauseBurningAndMintingResponse)(nil) + +type fastReflection_MsgPauseBurningAndMintingResponse MsgPauseBurningAndMintingResponse + +func (x *MsgPauseBurningAndMintingResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgPauseBurningAndMintingResponse)(x) +} + +func (x *MsgPauseBurningAndMintingResponse) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_MsgPauseBurningAndMintingResponse_messageType fastReflection_MsgPauseBurningAndMintingResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgPauseBurningAndMintingResponse_messageType{} + +type fastReflection_MsgPauseBurningAndMintingResponse_messageType struct{} + +func (x fastReflection_MsgPauseBurningAndMintingResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgPauseBurningAndMintingResponse)(nil) +} +func (x fastReflection_MsgPauseBurningAndMintingResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgPauseBurningAndMintingResponse) +} +func (x fastReflection_MsgPauseBurningAndMintingResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgPauseBurningAndMintingResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgPauseBurningAndMintingResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgPauseBurningAndMintingResponse +} + +// 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_MsgPauseBurningAndMintingResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgPauseBurningAndMintingResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgPauseBurningAndMintingResponse) New() protoreflect.Message { + return new(fastReflection_MsgPauseBurningAndMintingResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgPauseBurningAndMintingResponse) Interface() protoreflect.ProtoMessage { + return (*MsgPauseBurningAndMintingResponse)(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_MsgPauseBurningAndMintingResponse) 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_MsgPauseBurningAndMintingResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgPauseBurningAndMintingResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgPauseBurningAndMintingResponse 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_MsgPauseBurningAndMintingResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgPauseBurningAndMintingResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgPauseBurningAndMintingResponse 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_MsgPauseBurningAndMintingResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgPauseBurningAndMintingResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgPauseBurningAndMintingResponse 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_MsgPauseBurningAndMintingResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgPauseBurningAndMintingResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgPauseBurningAndMintingResponse 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_MsgPauseBurningAndMintingResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgPauseBurningAndMintingResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgPauseBurningAndMintingResponse 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_MsgPauseBurningAndMintingResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgPauseBurningAndMintingResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgPauseBurningAndMintingResponse 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_MsgPauseBurningAndMintingResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.MsgPauseBurningAndMintingResponse", 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_MsgPauseBurningAndMintingResponse) 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_MsgPauseBurningAndMintingResponse) 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_MsgPauseBurningAndMintingResponse) 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_MsgPauseBurningAndMintingResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgPauseBurningAndMintingResponse) + 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().(*MsgPauseBurningAndMintingResponse) + 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().(*MsgPauseBurningAndMintingResponse) + 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: MsgPauseBurningAndMintingResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgPauseBurningAndMintingResponse: 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_MsgUnpauseBurningAndMinting protoreflect.MessageDescriptor + fd_MsgUnpauseBurningAndMinting_from protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_tx_proto_init() + md_MsgUnpauseBurningAndMinting = File_circle_cctp_v1_tx_proto.Messages().ByName("MsgUnpauseBurningAndMinting") + fd_MsgUnpauseBurningAndMinting_from = md_MsgUnpauseBurningAndMinting.Fields().ByName("from") +} + +var _ protoreflect.Message = (*fastReflection_MsgUnpauseBurningAndMinting)(nil) + +type fastReflection_MsgUnpauseBurningAndMinting MsgUnpauseBurningAndMinting + +func (x *MsgUnpauseBurningAndMinting) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUnpauseBurningAndMinting)(x) +} + +func (x *MsgUnpauseBurningAndMinting) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_MsgUnpauseBurningAndMinting_messageType fastReflection_MsgUnpauseBurningAndMinting_messageType +var _ protoreflect.MessageType = fastReflection_MsgUnpauseBurningAndMinting_messageType{} + +type fastReflection_MsgUnpauseBurningAndMinting_messageType struct{} + +func (x fastReflection_MsgUnpauseBurningAndMinting_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUnpauseBurningAndMinting)(nil) +} +func (x fastReflection_MsgUnpauseBurningAndMinting_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUnpauseBurningAndMinting) +} +func (x fastReflection_MsgUnpauseBurningAndMinting_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUnpauseBurningAndMinting +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgUnpauseBurningAndMinting) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUnpauseBurningAndMinting +} + +// 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_MsgUnpauseBurningAndMinting) Type() protoreflect.MessageType { + return _fastReflection_MsgUnpauseBurningAndMinting_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgUnpauseBurningAndMinting) New() protoreflect.Message { + return new(fastReflection_MsgUnpauseBurningAndMinting) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgUnpauseBurningAndMinting) Interface() protoreflect.ProtoMessage { + return (*MsgUnpauseBurningAndMinting)(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_MsgUnpauseBurningAndMinting) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.From != "" { + value := protoreflect.ValueOfString(x.From) + if !f(fd_MsgUnpauseBurningAndMinting_from, 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_MsgUnpauseBurningAndMinting) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.MsgUnpauseBurningAndMinting.from": + return x.From != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUnpauseBurningAndMinting")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUnpauseBurningAndMinting 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_MsgUnpauseBurningAndMinting) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.MsgUnpauseBurningAndMinting.from": + x.From = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUnpauseBurningAndMinting")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUnpauseBurningAndMinting 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_MsgUnpauseBurningAndMinting) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.MsgUnpauseBurningAndMinting.from": + value := x.From + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUnpauseBurningAndMinting")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUnpauseBurningAndMinting 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_MsgUnpauseBurningAndMinting) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.MsgUnpauseBurningAndMinting.from": + x.From = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUnpauseBurningAndMinting")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUnpauseBurningAndMinting 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_MsgUnpauseBurningAndMinting) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.MsgUnpauseBurningAndMinting.from": + panic(fmt.Errorf("field from of message circle.cctp.v1.MsgUnpauseBurningAndMinting is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUnpauseBurningAndMinting")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUnpauseBurningAndMinting 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_MsgUnpauseBurningAndMinting) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.MsgUnpauseBurningAndMinting.from": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUnpauseBurningAndMinting")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUnpauseBurningAndMinting 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_MsgUnpauseBurningAndMinting) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.MsgUnpauseBurningAndMinting", 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_MsgUnpauseBurningAndMinting) 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_MsgUnpauseBurningAndMinting) 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_MsgUnpauseBurningAndMinting) 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_MsgUnpauseBurningAndMinting) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgUnpauseBurningAndMinting) + 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.From) + 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().(*MsgUnpauseBurningAndMinting) + 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.From) > 0 { + i -= len(x.From) + copy(dAtA[i:], x.From) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.From))) + 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().(*MsgUnpauseBurningAndMinting) + 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: MsgUnpauseBurningAndMinting: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUnpauseBurningAndMinting: 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 From", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.From = 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_MsgUnpauseBurningAndMintingResponse protoreflect.MessageDescriptor +) + +func init() { + file_circle_cctp_v1_tx_proto_init() + md_MsgUnpauseBurningAndMintingResponse = File_circle_cctp_v1_tx_proto.Messages().ByName("MsgUnpauseBurningAndMintingResponse") +} + +var _ protoreflect.Message = (*fastReflection_MsgUnpauseBurningAndMintingResponse)(nil) + +type fastReflection_MsgUnpauseBurningAndMintingResponse MsgUnpauseBurningAndMintingResponse + +func (x *MsgUnpauseBurningAndMintingResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUnpauseBurningAndMintingResponse)(x) +} + +func (x *MsgUnpauseBurningAndMintingResponse) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_MsgUnpauseBurningAndMintingResponse_messageType fastReflection_MsgUnpauseBurningAndMintingResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgUnpauseBurningAndMintingResponse_messageType{} + +type fastReflection_MsgUnpauseBurningAndMintingResponse_messageType struct{} + +func (x fastReflection_MsgUnpauseBurningAndMintingResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUnpauseBurningAndMintingResponse)(nil) +} +func (x fastReflection_MsgUnpauseBurningAndMintingResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUnpauseBurningAndMintingResponse) +} +func (x fastReflection_MsgUnpauseBurningAndMintingResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUnpauseBurningAndMintingResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgUnpauseBurningAndMintingResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUnpauseBurningAndMintingResponse +} + +// 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_MsgUnpauseBurningAndMintingResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgUnpauseBurningAndMintingResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgUnpauseBurningAndMintingResponse) New() protoreflect.Message { + return new(fastReflection_MsgUnpauseBurningAndMintingResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgUnpauseBurningAndMintingResponse) Interface() protoreflect.ProtoMessage { + return (*MsgUnpauseBurningAndMintingResponse)(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_MsgUnpauseBurningAndMintingResponse) 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_MsgUnpauseBurningAndMintingResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUnpauseBurningAndMintingResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUnpauseBurningAndMintingResponse 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_MsgUnpauseBurningAndMintingResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUnpauseBurningAndMintingResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUnpauseBurningAndMintingResponse 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_MsgUnpauseBurningAndMintingResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUnpauseBurningAndMintingResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUnpauseBurningAndMintingResponse 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_MsgUnpauseBurningAndMintingResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUnpauseBurningAndMintingResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUnpauseBurningAndMintingResponse 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_MsgUnpauseBurningAndMintingResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUnpauseBurningAndMintingResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUnpauseBurningAndMintingResponse 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_MsgUnpauseBurningAndMintingResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUnpauseBurningAndMintingResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUnpauseBurningAndMintingResponse 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_MsgUnpauseBurningAndMintingResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.MsgUnpauseBurningAndMintingResponse", 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_MsgUnpauseBurningAndMintingResponse) 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_MsgUnpauseBurningAndMintingResponse) 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_MsgUnpauseBurningAndMintingResponse) 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_MsgUnpauseBurningAndMintingResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgUnpauseBurningAndMintingResponse) + 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().(*MsgUnpauseBurningAndMintingResponse) + 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().(*MsgUnpauseBurningAndMintingResponse) + 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: MsgUnpauseBurningAndMintingResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUnpauseBurningAndMintingResponse: 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_MsgPauseSendingAndReceivingMessages protoreflect.MessageDescriptor + fd_MsgPauseSendingAndReceivingMessages_from protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_tx_proto_init() + md_MsgPauseSendingAndReceivingMessages = File_circle_cctp_v1_tx_proto.Messages().ByName("MsgPauseSendingAndReceivingMessages") + fd_MsgPauseSendingAndReceivingMessages_from = md_MsgPauseSendingAndReceivingMessages.Fields().ByName("from") +} + +var _ protoreflect.Message = (*fastReflection_MsgPauseSendingAndReceivingMessages)(nil) + +type fastReflection_MsgPauseSendingAndReceivingMessages MsgPauseSendingAndReceivingMessages + +func (x *MsgPauseSendingAndReceivingMessages) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgPauseSendingAndReceivingMessages)(x) +} + +func (x *MsgPauseSendingAndReceivingMessages) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_MsgPauseSendingAndReceivingMessages_messageType fastReflection_MsgPauseSendingAndReceivingMessages_messageType +var _ protoreflect.MessageType = fastReflection_MsgPauseSendingAndReceivingMessages_messageType{} + +type fastReflection_MsgPauseSendingAndReceivingMessages_messageType struct{} + +func (x fastReflection_MsgPauseSendingAndReceivingMessages_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgPauseSendingAndReceivingMessages)(nil) +} +func (x fastReflection_MsgPauseSendingAndReceivingMessages_messageType) New() protoreflect.Message { + return new(fastReflection_MsgPauseSendingAndReceivingMessages) +} +func (x fastReflection_MsgPauseSendingAndReceivingMessages_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgPauseSendingAndReceivingMessages +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgPauseSendingAndReceivingMessages) Descriptor() protoreflect.MessageDescriptor { + return md_MsgPauseSendingAndReceivingMessages +} + +// 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_MsgPauseSendingAndReceivingMessages) Type() protoreflect.MessageType { + return _fastReflection_MsgPauseSendingAndReceivingMessages_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgPauseSendingAndReceivingMessages) New() protoreflect.Message { + return new(fastReflection_MsgPauseSendingAndReceivingMessages) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgPauseSendingAndReceivingMessages) Interface() protoreflect.ProtoMessage { + return (*MsgPauseSendingAndReceivingMessages)(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_MsgPauseSendingAndReceivingMessages) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.From != "" { + value := protoreflect.ValueOfString(x.From) + if !f(fd_MsgPauseSendingAndReceivingMessages_from, 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_MsgPauseSendingAndReceivingMessages) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.MsgPauseSendingAndReceivingMessages.from": + return x.From != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgPauseSendingAndReceivingMessages")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgPauseSendingAndReceivingMessages 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_MsgPauseSendingAndReceivingMessages) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.MsgPauseSendingAndReceivingMessages.from": + x.From = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgPauseSendingAndReceivingMessages")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgPauseSendingAndReceivingMessages 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_MsgPauseSendingAndReceivingMessages) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.MsgPauseSendingAndReceivingMessages.from": + value := x.From + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgPauseSendingAndReceivingMessages")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgPauseSendingAndReceivingMessages 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_MsgPauseSendingAndReceivingMessages) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.MsgPauseSendingAndReceivingMessages.from": + x.From = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgPauseSendingAndReceivingMessages")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgPauseSendingAndReceivingMessages 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_MsgPauseSendingAndReceivingMessages) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.MsgPauseSendingAndReceivingMessages.from": + panic(fmt.Errorf("field from of message circle.cctp.v1.MsgPauseSendingAndReceivingMessages is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgPauseSendingAndReceivingMessages")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgPauseSendingAndReceivingMessages 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_MsgPauseSendingAndReceivingMessages) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.MsgPauseSendingAndReceivingMessages.from": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgPauseSendingAndReceivingMessages")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgPauseSendingAndReceivingMessages 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_MsgPauseSendingAndReceivingMessages) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.MsgPauseSendingAndReceivingMessages", 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_MsgPauseSendingAndReceivingMessages) 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_MsgPauseSendingAndReceivingMessages) 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_MsgPauseSendingAndReceivingMessages) 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_MsgPauseSendingAndReceivingMessages) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgPauseSendingAndReceivingMessages) + 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.From) + 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().(*MsgPauseSendingAndReceivingMessages) + 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.From) > 0 { + i -= len(x.From) + copy(dAtA[i:], x.From) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.From))) + 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().(*MsgPauseSendingAndReceivingMessages) + 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: MsgPauseSendingAndReceivingMessages: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgPauseSendingAndReceivingMessages: 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 From", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.From = 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_MsgPauseSendingAndReceivingMessagesResponse protoreflect.MessageDescriptor +) + +func init() { + file_circle_cctp_v1_tx_proto_init() + md_MsgPauseSendingAndReceivingMessagesResponse = File_circle_cctp_v1_tx_proto.Messages().ByName("MsgPauseSendingAndReceivingMessagesResponse") +} + +var _ protoreflect.Message = (*fastReflection_MsgPauseSendingAndReceivingMessagesResponse)(nil) + +type fastReflection_MsgPauseSendingAndReceivingMessagesResponse MsgPauseSendingAndReceivingMessagesResponse + +func (x *MsgPauseSendingAndReceivingMessagesResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgPauseSendingAndReceivingMessagesResponse)(x) +} + +func (x *MsgPauseSendingAndReceivingMessagesResponse) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_MsgPauseSendingAndReceivingMessagesResponse_messageType fastReflection_MsgPauseSendingAndReceivingMessagesResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgPauseSendingAndReceivingMessagesResponse_messageType{} + +type fastReflection_MsgPauseSendingAndReceivingMessagesResponse_messageType struct{} + +func (x fastReflection_MsgPauseSendingAndReceivingMessagesResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgPauseSendingAndReceivingMessagesResponse)(nil) +} +func (x fastReflection_MsgPauseSendingAndReceivingMessagesResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgPauseSendingAndReceivingMessagesResponse) +} +func (x fastReflection_MsgPauseSendingAndReceivingMessagesResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgPauseSendingAndReceivingMessagesResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgPauseSendingAndReceivingMessagesResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgPauseSendingAndReceivingMessagesResponse +} + +// 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_MsgPauseSendingAndReceivingMessagesResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgPauseSendingAndReceivingMessagesResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgPauseSendingAndReceivingMessagesResponse) New() protoreflect.Message { + return new(fastReflection_MsgPauseSendingAndReceivingMessagesResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgPauseSendingAndReceivingMessagesResponse) Interface() protoreflect.ProtoMessage { + return (*MsgPauseSendingAndReceivingMessagesResponse)(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_MsgPauseSendingAndReceivingMessagesResponse) 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_MsgPauseSendingAndReceivingMessagesResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgPauseSendingAndReceivingMessagesResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgPauseSendingAndReceivingMessagesResponse 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_MsgPauseSendingAndReceivingMessagesResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgPauseSendingAndReceivingMessagesResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgPauseSendingAndReceivingMessagesResponse 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_MsgPauseSendingAndReceivingMessagesResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgPauseSendingAndReceivingMessagesResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgPauseSendingAndReceivingMessagesResponse 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_MsgPauseSendingAndReceivingMessagesResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgPauseSendingAndReceivingMessagesResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgPauseSendingAndReceivingMessagesResponse 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_MsgPauseSendingAndReceivingMessagesResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgPauseSendingAndReceivingMessagesResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgPauseSendingAndReceivingMessagesResponse 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_MsgPauseSendingAndReceivingMessagesResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgPauseSendingAndReceivingMessagesResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgPauseSendingAndReceivingMessagesResponse 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_MsgPauseSendingAndReceivingMessagesResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.MsgPauseSendingAndReceivingMessagesResponse", 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_MsgPauseSendingAndReceivingMessagesResponse) 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_MsgPauseSendingAndReceivingMessagesResponse) 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_MsgPauseSendingAndReceivingMessagesResponse) 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_MsgPauseSendingAndReceivingMessagesResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgPauseSendingAndReceivingMessagesResponse) + 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().(*MsgPauseSendingAndReceivingMessagesResponse) + 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().(*MsgPauseSendingAndReceivingMessagesResponse) + 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: MsgPauseSendingAndReceivingMessagesResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgPauseSendingAndReceivingMessagesResponse: 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_MsgUnpauseSendingAndReceivingMessages protoreflect.MessageDescriptor + fd_MsgUnpauseSendingAndReceivingMessages_from protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_tx_proto_init() + md_MsgUnpauseSendingAndReceivingMessages = File_circle_cctp_v1_tx_proto.Messages().ByName("MsgUnpauseSendingAndReceivingMessages") + fd_MsgUnpauseSendingAndReceivingMessages_from = md_MsgUnpauseSendingAndReceivingMessages.Fields().ByName("from") +} + +var _ protoreflect.Message = (*fastReflection_MsgUnpauseSendingAndReceivingMessages)(nil) + +type fastReflection_MsgUnpauseSendingAndReceivingMessages MsgUnpauseSendingAndReceivingMessages + +func (x *MsgUnpauseSendingAndReceivingMessages) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUnpauseSendingAndReceivingMessages)(x) +} + +func (x *MsgUnpauseSendingAndReceivingMessages) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_MsgUnpauseSendingAndReceivingMessages_messageType fastReflection_MsgUnpauseSendingAndReceivingMessages_messageType +var _ protoreflect.MessageType = fastReflection_MsgUnpauseSendingAndReceivingMessages_messageType{} + +type fastReflection_MsgUnpauseSendingAndReceivingMessages_messageType struct{} + +func (x fastReflection_MsgUnpauseSendingAndReceivingMessages_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUnpauseSendingAndReceivingMessages)(nil) +} +func (x fastReflection_MsgUnpauseSendingAndReceivingMessages_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUnpauseSendingAndReceivingMessages) +} +func (x fastReflection_MsgUnpauseSendingAndReceivingMessages_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUnpauseSendingAndReceivingMessages +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgUnpauseSendingAndReceivingMessages) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUnpauseSendingAndReceivingMessages +} + +// 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_MsgUnpauseSendingAndReceivingMessages) Type() protoreflect.MessageType { + return _fastReflection_MsgUnpauseSendingAndReceivingMessages_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgUnpauseSendingAndReceivingMessages) New() protoreflect.Message { + return new(fastReflection_MsgUnpauseSendingAndReceivingMessages) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgUnpauseSendingAndReceivingMessages) Interface() protoreflect.ProtoMessage { + return (*MsgUnpauseSendingAndReceivingMessages)(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_MsgUnpauseSendingAndReceivingMessages) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.From != "" { + value := protoreflect.ValueOfString(x.From) + if !f(fd_MsgUnpauseSendingAndReceivingMessages_from, 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_MsgUnpauseSendingAndReceivingMessages) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.MsgUnpauseSendingAndReceivingMessages.from": + return x.From != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUnpauseSendingAndReceivingMessages")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUnpauseSendingAndReceivingMessages 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_MsgUnpauseSendingAndReceivingMessages) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.MsgUnpauseSendingAndReceivingMessages.from": + x.From = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUnpauseSendingAndReceivingMessages")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUnpauseSendingAndReceivingMessages 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_MsgUnpauseSendingAndReceivingMessages) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.MsgUnpauseSendingAndReceivingMessages.from": + value := x.From + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUnpauseSendingAndReceivingMessages")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUnpauseSendingAndReceivingMessages 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_MsgUnpauseSendingAndReceivingMessages) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.MsgUnpauseSendingAndReceivingMessages.from": + x.From = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUnpauseSendingAndReceivingMessages")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUnpauseSendingAndReceivingMessages 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_MsgUnpauseSendingAndReceivingMessages) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.MsgUnpauseSendingAndReceivingMessages.from": + panic(fmt.Errorf("field from of message circle.cctp.v1.MsgUnpauseSendingAndReceivingMessages is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUnpauseSendingAndReceivingMessages")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUnpauseSendingAndReceivingMessages 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_MsgUnpauseSendingAndReceivingMessages) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.MsgUnpauseSendingAndReceivingMessages.from": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUnpauseSendingAndReceivingMessages")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUnpauseSendingAndReceivingMessages 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_MsgUnpauseSendingAndReceivingMessages) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.MsgUnpauseSendingAndReceivingMessages", 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_MsgUnpauseSendingAndReceivingMessages) 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_MsgUnpauseSendingAndReceivingMessages) 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_MsgUnpauseSendingAndReceivingMessages) 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_MsgUnpauseSendingAndReceivingMessages) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgUnpauseSendingAndReceivingMessages) + 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.From) + 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().(*MsgUnpauseSendingAndReceivingMessages) + 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.From) > 0 { + i -= len(x.From) + copy(dAtA[i:], x.From) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.From))) + 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().(*MsgUnpauseSendingAndReceivingMessages) + 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: MsgUnpauseSendingAndReceivingMessages: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUnpauseSendingAndReceivingMessages: 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 From", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.From = 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_MsgUnpauseSendingAndReceivingMessagesResponse protoreflect.MessageDescriptor +) + +func init() { + file_circle_cctp_v1_tx_proto_init() + md_MsgUnpauseSendingAndReceivingMessagesResponse = File_circle_cctp_v1_tx_proto.Messages().ByName("MsgUnpauseSendingAndReceivingMessagesResponse") +} + +var _ protoreflect.Message = (*fastReflection_MsgUnpauseSendingAndReceivingMessagesResponse)(nil) + +type fastReflection_MsgUnpauseSendingAndReceivingMessagesResponse MsgUnpauseSendingAndReceivingMessagesResponse + +func (x *MsgUnpauseSendingAndReceivingMessagesResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUnpauseSendingAndReceivingMessagesResponse)(x) +} + +func (x *MsgUnpauseSendingAndReceivingMessagesResponse) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_MsgUnpauseSendingAndReceivingMessagesResponse_messageType fastReflection_MsgUnpauseSendingAndReceivingMessagesResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgUnpauseSendingAndReceivingMessagesResponse_messageType{} + +type fastReflection_MsgUnpauseSendingAndReceivingMessagesResponse_messageType struct{} + +func (x fastReflection_MsgUnpauseSendingAndReceivingMessagesResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUnpauseSendingAndReceivingMessagesResponse)(nil) +} +func (x fastReflection_MsgUnpauseSendingAndReceivingMessagesResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUnpauseSendingAndReceivingMessagesResponse) +} +func (x fastReflection_MsgUnpauseSendingAndReceivingMessagesResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUnpauseSendingAndReceivingMessagesResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgUnpauseSendingAndReceivingMessagesResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUnpauseSendingAndReceivingMessagesResponse +} + +// 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_MsgUnpauseSendingAndReceivingMessagesResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgUnpauseSendingAndReceivingMessagesResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgUnpauseSendingAndReceivingMessagesResponse) New() protoreflect.Message { + return new(fastReflection_MsgUnpauseSendingAndReceivingMessagesResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgUnpauseSendingAndReceivingMessagesResponse) Interface() protoreflect.ProtoMessage { + return (*MsgUnpauseSendingAndReceivingMessagesResponse)(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_MsgUnpauseSendingAndReceivingMessagesResponse) 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_MsgUnpauseSendingAndReceivingMessagesResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUnpauseSendingAndReceivingMessagesResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUnpauseSendingAndReceivingMessagesResponse 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_MsgUnpauseSendingAndReceivingMessagesResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUnpauseSendingAndReceivingMessagesResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUnpauseSendingAndReceivingMessagesResponse 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_MsgUnpauseSendingAndReceivingMessagesResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUnpauseSendingAndReceivingMessagesResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUnpauseSendingAndReceivingMessagesResponse 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_MsgUnpauseSendingAndReceivingMessagesResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUnpauseSendingAndReceivingMessagesResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUnpauseSendingAndReceivingMessagesResponse 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_MsgUnpauseSendingAndReceivingMessagesResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUnpauseSendingAndReceivingMessagesResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUnpauseSendingAndReceivingMessagesResponse 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_MsgUnpauseSendingAndReceivingMessagesResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUnpauseSendingAndReceivingMessagesResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUnpauseSendingAndReceivingMessagesResponse 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_MsgUnpauseSendingAndReceivingMessagesResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.MsgUnpauseSendingAndReceivingMessagesResponse", 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_MsgUnpauseSendingAndReceivingMessagesResponse) 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_MsgUnpauseSendingAndReceivingMessagesResponse) 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_MsgUnpauseSendingAndReceivingMessagesResponse) 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_MsgUnpauseSendingAndReceivingMessagesResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgUnpauseSendingAndReceivingMessagesResponse) + 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().(*MsgUnpauseSendingAndReceivingMessagesResponse) + 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().(*MsgUnpauseSendingAndReceivingMessagesResponse) + 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: MsgUnpauseSendingAndReceivingMessagesResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUnpauseSendingAndReceivingMessagesResponse: 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_MsgUpdateMaxMessageBodySize protoreflect.MessageDescriptor + fd_MsgUpdateMaxMessageBodySize_from protoreflect.FieldDescriptor + fd_MsgUpdateMaxMessageBodySize_message_size protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_tx_proto_init() + md_MsgUpdateMaxMessageBodySize = File_circle_cctp_v1_tx_proto.Messages().ByName("MsgUpdateMaxMessageBodySize") + fd_MsgUpdateMaxMessageBodySize_from = md_MsgUpdateMaxMessageBodySize.Fields().ByName("from") + fd_MsgUpdateMaxMessageBodySize_message_size = md_MsgUpdateMaxMessageBodySize.Fields().ByName("message_size") +} + +var _ protoreflect.Message = (*fastReflection_MsgUpdateMaxMessageBodySize)(nil) + +type fastReflection_MsgUpdateMaxMessageBodySize MsgUpdateMaxMessageBodySize + +func (x *MsgUpdateMaxMessageBodySize) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUpdateMaxMessageBodySize)(x) +} + +func (x *MsgUpdateMaxMessageBodySize) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_MsgUpdateMaxMessageBodySize_messageType fastReflection_MsgUpdateMaxMessageBodySize_messageType +var _ protoreflect.MessageType = fastReflection_MsgUpdateMaxMessageBodySize_messageType{} + +type fastReflection_MsgUpdateMaxMessageBodySize_messageType struct{} + +func (x fastReflection_MsgUpdateMaxMessageBodySize_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUpdateMaxMessageBodySize)(nil) +} +func (x fastReflection_MsgUpdateMaxMessageBodySize_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUpdateMaxMessageBodySize) +} +func (x fastReflection_MsgUpdateMaxMessageBodySize_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateMaxMessageBodySize +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgUpdateMaxMessageBodySize) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateMaxMessageBodySize +} + +// 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_MsgUpdateMaxMessageBodySize) Type() protoreflect.MessageType { + return _fastReflection_MsgUpdateMaxMessageBodySize_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgUpdateMaxMessageBodySize) New() protoreflect.Message { + return new(fastReflection_MsgUpdateMaxMessageBodySize) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgUpdateMaxMessageBodySize) Interface() protoreflect.ProtoMessage { + return (*MsgUpdateMaxMessageBodySize)(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_MsgUpdateMaxMessageBodySize) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.From != "" { + value := protoreflect.ValueOfString(x.From) + if !f(fd_MsgUpdateMaxMessageBodySize_from, value) { + return + } + } + if x.MessageSize != uint64(0) { + value := protoreflect.ValueOfUint64(x.MessageSize) + if !f(fd_MsgUpdateMaxMessageBodySize_message_size, 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_MsgUpdateMaxMessageBodySize) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.MsgUpdateMaxMessageBodySize.from": + return x.From != "" + case "circle.cctp.v1.MsgUpdateMaxMessageBodySize.message_size": + return x.MessageSize != uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUpdateMaxMessageBodySize")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUpdateMaxMessageBodySize 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_MsgUpdateMaxMessageBodySize) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.MsgUpdateMaxMessageBodySize.from": + x.From = "" + case "circle.cctp.v1.MsgUpdateMaxMessageBodySize.message_size": + x.MessageSize = uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUpdateMaxMessageBodySize")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUpdateMaxMessageBodySize 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_MsgUpdateMaxMessageBodySize) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.MsgUpdateMaxMessageBodySize.from": + value := x.From + return protoreflect.ValueOfString(value) + case "circle.cctp.v1.MsgUpdateMaxMessageBodySize.message_size": + value := x.MessageSize + return protoreflect.ValueOfUint64(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUpdateMaxMessageBodySize")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUpdateMaxMessageBodySize 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_MsgUpdateMaxMessageBodySize) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.MsgUpdateMaxMessageBodySize.from": + x.From = value.Interface().(string) + case "circle.cctp.v1.MsgUpdateMaxMessageBodySize.message_size": + x.MessageSize = value.Uint() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUpdateMaxMessageBodySize")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUpdateMaxMessageBodySize 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_MsgUpdateMaxMessageBodySize) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.MsgUpdateMaxMessageBodySize.from": + panic(fmt.Errorf("field from of message circle.cctp.v1.MsgUpdateMaxMessageBodySize is not mutable")) + case "circle.cctp.v1.MsgUpdateMaxMessageBodySize.message_size": + panic(fmt.Errorf("field message_size of message circle.cctp.v1.MsgUpdateMaxMessageBodySize is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUpdateMaxMessageBodySize")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUpdateMaxMessageBodySize 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_MsgUpdateMaxMessageBodySize) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.MsgUpdateMaxMessageBodySize.from": + return protoreflect.ValueOfString("") + case "circle.cctp.v1.MsgUpdateMaxMessageBodySize.message_size": + return protoreflect.ValueOfUint64(uint64(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUpdateMaxMessageBodySize")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUpdateMaxMessageBodySize 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_MsgUpdateMaxMessageBodySize) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.MsgUpdateMaxMessageBodySize", 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_MsgUpdateMaxMessageBodySize) 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_MsgUpdateMaxMessageBodySize) 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_MsgUpdateMaxMessageBodySize) 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_MsgUpdateMaxMessageBodySize) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgUpdateMaxMessageBodySize) + 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.From) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.MessageSize != 0 { + n += 1 + runtime.Sov(uint64(x.MessageSize)) + } + 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().(*MsgUpdateMaxMessageBodySize) + 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.MessageSize != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.MessageSize)) + i-- + dAtA[i] = 0x10 + } + if len(x.From) > 0 { + i -= len(x.From) + copy(dAtA[i:], x.From) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.From))) + 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().(*MsgUpdateMaxMessageBodySize) + 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: MsgUpdateMaxMessageBodySize: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateMaxMessageBodySize: 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 From", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.From = 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 MessageSize", wireType) + } + x.MessageSize = 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.MessageSize |= 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_MsgUpdateMaxMessageBodySizeResponse protoreflect.MessageDescriptor +) + +func init() { + file_circle_cctp_v1_tx_proto_init() + md_MsgUpdateMaxMessageBodySizeResponse = File_circle_cctp_v1_tx_proto.Messages().ByName("MsgUpdateMaxMessageBodySizeResponse") +} + +var _ protoreflect.Message = (*fastReflection_MsgUpdateMaxMessageBodySizeResponse)(nil) + +type fastReflection_MsgUpdateMaxMessageBodySizeResponse MsgUpdateMaxMessageBodySizeResponse + +func (x *MsgUpdateMaxMessageBodySizeResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUpdateMaxMessageBodySizeResponse)(x) +} + +func (x *MsgUpdateMaxMessageBodySizeResponse) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_MsgUpdateMaxMessageBodySizeResponse_messageType fastReflection_MsgUpdateMaxMessageBodySizeResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgUpdateMaxMessageBodySizeResponse_messageType{} + +type fastReflection_MsgUpdateMaxMessageBodySizeResponse_messageType struct{} + +func (x fastReflection_MsgUpdateMaxMessageBodySizeResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUpdateMaxMessageBodySizeResponse)(nil) +} +func (x fastReflection_MsgUpdateMaxMessageBodySizeResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUpdateMaxMessageBodySizeResponse) +} +func (x fastReflection_MsgUpdateMaxMessageBodySizeResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateMaxMessageBodySizeResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgUpdateMaxMessageBodySizeResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateMaxMessageBodySizeResponse +} + +// 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_MsgUpdateMaxMessageBodySizeResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgUpdateMaxMessageBodySizeResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgUpdateMaxMessageBodySizeResponse) New() protoreflect.Message { + return new(fastReflection_MsgUpdateMaxMessageBodySizeResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgUpdateMaxMessageBodySizeResponse) Interface() protoreflect.ProtoMessage { + return (*MsgUpdateMaxMessageBodySizeResponse)(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_MsgUpdateMaxMessageBodySizeResponse) 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_MsgUpdateMaxMessageBodySizeResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUpdateMaxMessageBodySizeResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUpdateMaxMessageBodySizeResponse 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_MsgUpdateMaxMessageBodySizeResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUpdateMaxMessageBodySizeResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUpdateMaxMessageBodySizeResponse 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_MsgUpdateMaxMessageBodySizeResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUpdateMaxMessageBodySizeResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUpdateMaxMessageBodySizeResponse 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_MsgUpdateMaxMessageBodySizeResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUpdateMaxMessageBodySizeResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUpdateMaxMessageBodySizeResponse 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_MsgUpdateMaxMessageBodySizeResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUpdateMaxMessageBodySizeResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUpdateMaxMessageBodySizeResponse 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_MsgUpdateMaxMessageBodySizeResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUpdateMaxMessageBodySizeResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUpdateMaxMessageBodySizeResponse 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_MsgUpdateMaxMessageBodySizeResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.MsgUpdateMaxMessageBodySizeResponse", 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_MsgUpdateMaxMessageBodySizeResponse) 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_MsgUpdateMaxMessageBodySizeResponse) 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_MsgUpdateMaxMessageBodySizeResponse) 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_MsgUpdateMaxMessageBodySizeResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgUpdateMaxMessageBodySizeResponse) + 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().(*MsgUpdateMaxMessageBodySizeResponse) + 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().(*MsgUpdateMaxMessageBodySizeResponse) + 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: MsgUpdateMaxMessageBodySizeResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateMaxMessageBodySizeResponse: 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_MsgSetMaxBurnAmountPerMessage protoreflect.MessageDescriptor + fd_MsgSetMaxBurnAmountPerMessage_from protoreflect.FieldDescriptor + fd_MsgSetMaxBurnAmountPerMessage_local_token protoreflect.FieldDescriptor + fd_MsgSetMaxBurnAmountPerMessage_amount protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_tx_proto_init() + md_MsgSetMaxBurnAmountPerMessage = File_circle_cctp_v1_tx_proto.Messages().ByName("MsgSetMaxBurnAmountPerMessage") + fd_MsgSetMaxBurnAmountPerMessage_from = md_MsgSetMaxBurnAmountPerMessage.Fields().ByName("from") + fd_MsgSetMaxBurnAmountPerMessage_local_token = md_MsgSetMaxBurnAmountPerMessage.Fields().ByName("local_token") + fd_MsgSetMaxBurnAmountPerMessage_amount = md_MsgSetMaxBurnAmountPerMessage.Fields().ByName("amount") +} + +var _ protoreflect.Message = (*fastReflection_MsgSetMaxBurnAmountPerMessage)(nil) + +type fastReflection_MsgSetMaxBurnAmountPerMessage MsgSetMaxBurnAmountPerMessage + +func (x *MsgSetMaxBurnAmountPerMessage) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgSetMaxBurnAmountPerMessage)(x) +} + +func (x *MsgSetMaxBurnAmountPerMessage) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_MsgSetMaxBurnAmountPerMessage_messageType fastReflection_MsgSetMaxBurnAmountPerMessage_messageType +var _ protoreflect.MessageType = fastReflection_MsgSetMaxBurnAmountPerMessage_messageType{} + +type fastReflection_MsgSetMaxBurnAmountPerMessage_messageType struct{} + +func (x fastReflection_MsgSetMaxBurnAmountPerMessage_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgSetMaxBurnAmountPerMessage)(nil) +} +func (x fastReflection_MsgSetMaxBurnAmountPerMessage_messageType) New() protoreflect.Message { + return new(fastReflection_MsgSetMaxBurnAmountPerMessage) +} +func (x fastReflection_MsgSetMaxBurnAmountPerMessage_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSetMaxBurnAmountPerMessage +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgSetMaxBurnAmountPerMessage) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSetMaxBurnAmountPerMessage +} + +// 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_MsgSetMaxBurnAmountPerMessage) Type() protoreflect.MessageType { + return _fastReflection_MsgSetMaxBurnAmountPerMessage_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgSetMaxBurnAmountPerMessage) New() protoreflect.Message { + return new(fastReflection_MsgSetMaxBurnAmountPerMessage) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgSetMaxBurnAmountPerMessage) Interface() protoreflect.ProtoMessage { + return (*MsgSetMaxBurnAmountPerMessage)(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_MsgSetMaxBurnAmountPerMessage) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.From != "" { + value := protoreflect.ValueOfString(x.From) + if !f(fd_MsgSetMaxBurnAmountPerMessage_from, value) { + return + } + } + if x.LocalToken != "" { + value := protoreflect.ValueOfString(x.LocalToken) + if !f(fd_MsgSetMaxBurnAmountPerMessage_local_token, value) { + return + } + } + if x.Amount != "" { + value := protoreflect.ValueOfString(x.Amount) + if !f(fd_MsgSetMaxBurnAmountPerMessage_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_MsgSetMaxBurnAmountPerMessage) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.MsgSetMaxBurnAmountPerMessage.from": + return x.From != "" + case "circle.cctp.v1.MsgSetMaxBurnAmountPerMessage.local_token": + return x.LocalToken != "" + case "circle.cctp.v1.MsgSetMaxBurnAmountPerMessage.amount": + return x.Amount != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgSetMaxBurnAmountPerMessage")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgSetMaxBurnAmountPerMessage 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_MsgSetMaxBurnAmountPerMessage) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.MsgSetMaxBurnAmountPerMessage.from": + x.From = "" + case "circle.cctp.v1.MsgSetMaxBurnAmountPerMessage.local_token": + x.LocalToken = "" + case "circle.cctp.v1.MsgSetMaxBurnAmountPerMessage.amount": + x.Amount = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgSetMaxBurnAmountPerMessage")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgSetMaxBurnAmountPerMessage 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_MsgSetMaxBurnAmountPerMessage) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.MsgSetMaxBurnAmountPerMessage.from": + value := x.From + return protoreflect.ValueOfString(value) + case "circle.cctp.v1.MsgSetMaxBurnAmountPerMessage.local_token": + value := x.LocalToken + return protoreflect.ValueOfString(value) + case "circle.cctp.v1.MsgSetMaxBurnAmountPerMessage.amount": + value := x.Amount + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgSetMaxBurnAmountPerMessage")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgSetMaxBurnAmountPerMessage 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_MsgSetMaxBurnAmountPerMessage) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.MsgSetMaxBurnAmountPerMessage.from": + x.From = value.Interface().(string) + case "circle.cctp.v1.MsgSetMaxBurnAmountPerMessage.local_token": + x.LocalToken = value.Interface().(string) + case "circle.cctp.v1.MsgSetMaxBurnAmountPerMessage.amount": + x.Amount = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgSetMaxBurnAmountPerMessage")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgSetMaxBurnAmountPerMessage 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_MsgSetMaxBurnAmountPerMessage) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.MsgSetMaxBurnAmountPerMessage.from": + panic(fmt.Errorf("field from of message circle.cctp.v1.MsgSetMaxBurnAmountPerMessage is not mutable")) + case "circle.cctp.v1.MsgSetMaxBurnAmountPerMessage.local_token": + panic(fmt.Errorf("field local_token of message circle.cctp.v1.MsgSetMaxBurnAmountPerMessage is not mutable")) + case "circle.cctp.v1.MsgSetMaxBurnAmountPerMessage.amount": + panic(fmt.Errorf("field amount of message circle.cctp.v1.MsgSetMaxBurnAmountPerMessage is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgSetMaxBurnAmountPerMessage")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgSetMaxBurnAmountPerMessage 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_MsgSetMaxBurnAmountPerMessage) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.MsgSetMaxBurnAmountPerMessage.from": + return protoreflect.ValueOfString("") + case "circle.cctp.v1.MsgSetMaxBurnAmountPerMessage.local_token": + return protoreflect.ValueOfString("") + case "circle.cctp.v1.MsgSetMaxBurnAmountPerMessage.amount": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgSetMaxBurnAmountPerMessage")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgSetMaxBurnAmountPerMessage 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_MsgSetMaxBurnAmountPerMessage) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.MsgSetMaxBurnAmountPerMessage", 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_MsgSetMaxBurnAmountPerMessage) 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_MsgSetMaxBurnAmountPerMessage) 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_MsgSetMaxBurnAmountPerMessage) 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_MsgSetMaxBurnAmountPerMessage) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgSetMaxBurnAmountPerMessage) + 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.From) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.LocalToken) + 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().(*MsgSetMaxBurnAmountPerMessage) + 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] = 0x1a + } + if len(x.LocalToken) > 0 { + i -= len(x.LocalToken) + copy(dAtA[i:], x.LocalToken) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.LocalToken))) + i-- + dAtA[i] = 0x12 + } + if len(x.From) > 0 { + i -= len(x.From) + copy(dAtA[i:], x.From) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.From))) + 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().(*MsgSetMaxBurnAmountPerMessage) + 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: MsgSetMaxBurnAmountPerMessage: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSetMaxBurnAmountPerMessage: 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 From", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.From = 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 LocalToken", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.LocalToken = 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 + 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_MsgSetMaxBurnAmountPerMessageResponse protoreflect.MessageDescriptor +) + +func init() { + file_circle_cctp_v1_tx_proto_init() + md_MsgSetMaxBurnAmountPerMessageResponse = File_circle_cctp_v1_tx_proto.Messages().ByName("MsgSetMaxBurnAmountPerMessageResponse") +} + +var _ protoreflect.Message = (*fastReflection_MsgSetMaxBurnAmountPerMessageResponse)(nil) + +type fastReflection_MsgSetMaxBurnAmountPerMessageResponse MsgSetMaxBurnAmountPerMessageResponse + +func (x *MsgSetMaxBurnAmountPerMessageResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgSetMaxBurnAmountPerMessageResponse)(x) +} + +func (x *MsgSetMaxBurnAmountPerMessageResponse) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_MsgSetMaxBurnAmountPerMessageResponse_messageType fastReflection_MsgSetMaxBurnAmountPerMessageResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgSetMaxBurnAmountPerMessageResponse_messageType{} + +type fastReflection_MsgSetMaxBurnAmountPerMessageResponse_messageType struct{} + +func (x fastReflection_MsgSetMaxBurnAmountPerMessageResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgSetMaxBurnAmountPerMessageResponse)(nil) +} +func (x fastReflection_MsgSetMaxBurnAmountPerMessageResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgSetMaxBurnAmountPerMessageResponse) +} +func (x fastReflection_MsgSetMaxBurnAmountPerMessageResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSetMaxBurnAmountPerMessageResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgSetMaxBurnAmountPerMessageResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSetMaxBurnAmountPerMessageResponse +} + +// 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_MsgSetMaxBurnAmountPerMessageResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgSetMaxBurnAmountPerMessageResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgSetMaxBurnAmountPerMessageResponse) New() protoreflect.Message { + return new(fastReflection_MsgSetMaxBurnAmountPerMessageResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgSetMaxBurnAmountPerMessageResponse) Interface() protoreflect.ProtoMessage { + return (*MsgSetMaxBurnAmountPerMessageResponse)(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_MsgSetMaxBurnAmountPerMessageResponse) 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_MsgSetMaxBurnAmountPerMessageResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgSetMaxBurnAmountPerMessageResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgSetMaxBurnAmountPerMessageResponse 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_MsgSetMaxBurnAmountPerMessageResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgSetMaxBurnAmountPerMessageResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgSetMaxBurnAmountPerMessageResponse 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_MsgSetMaxBurnAmountPerMessageResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgSetMaxBurnAmountPerMessageResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgSetMaxBurnAmountPerMessageResponse 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_MsgSetMaxBurnAmountPerMessageResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgSetMaxBurnAmountPerMessageResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgSetMaxBurnAmountPerMessageResponse 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_MsgSetMaxBurnAmountPerMessageResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgSetMaxBurnAmountPerMessageResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgSetMaxBurnAmountPerMessageResponse 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_MsgSetMaxBurnAmountPerMessageResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgSetMaxBurnAmountPerMessageResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgSetMaxBurnAmountPerMessageResponse 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_MsgSetMaxBurnAmountPerMessageResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.MsgSetMaxBurnAmountPerMessageResponse", 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_MsgSetMaxBurnAmountPerMessageResponse) 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_MsgSetMaxBurnAmountPerMessageResponse) 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_MsgSetMaxBurnAmountPerMessageResponse) 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_MsgSetMaxBurnAmountPerMessageResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgSetMaxBurnAmountPerMessageResponse) + 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().(*MsgSetMaxBurnAmountPerMessageResponse) + 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().(*MsgSetMaxBurnAmountPerMessageResponse) + 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: MsgSetMaxBurnAmountPerMessageResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSetMaxBurnAmountPerMessageResponse: 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_MsgDepositForBurn protoreflect.MessageDescriptor + fd_MsgDepositForBurn_from protoreflect.FieldDescriptor + fd_MsgDepositForBurn_amount protoreflect.FieldDescriptor + fd_MsgDepositForBurn_destination_domain protoreflect.FieldDescriptor + fd_MsgDepositForBurn_mint_recipient protoreflect.FieldDescriptor + fd_MsgDepositForBurn_burn_token protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_tx_proto_init() + md_MsgDepositForBurn = File_circle_cctp_v1_tx_proto.Messages().ByName("MsgDepositForBurn") + fd_MsgDepositForBurn_from = md_MsgDepositForBurn.Fields().ByName("from") + fd_MsgDepositForBurn_amount = md_MsgDepositForBurn.Fields().ByName("amount") + fd_MsgDepositForBurn_destination_domain = md_MsgDepositForBurn.Fields().ByName("destination_domain") + fd_MsgDepositForBurn_mint_recipient = md_MsgDepositForBurn.Fields().ByName("mint_recipient") + fd_MsgDepositForBurn_burn_token = md_MsgDepositForBurn.Fields().ByName("burn_token") +} + +var _ protoreflect.Message = (*fastReflection_MsgDepositForBurn)(nil) + +type fastReflection_MsgDepositForBurn MsgDepositForBurn + +func (x *MsgDepositForBurn) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgDepositForBurn)(x) +} + +func (x *MsgDepositForBurn) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_MsgDepositForBurn_messageType fastReflection_MsgDepositForBurn_messageType +var _ protoreflect.MessageType = fastReflection_MsgDepositForBurn_messageType{} + +type fastReflection_MsgDepositForBurn_messageType struct{} + +func (x fastReflection_MsgDepositForBurn_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgDepositForBurn)(nil) +} +func (x fastReflection_MsgDepositForBurn_messageType) New() protoreflect.Message { + return new(fastReflection_MsgDepositForBurn) +} +func (x fastReflection_MsgDepositForBurn_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgDepositForBurn +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgDepositForBurn) Descriptor() protoreflect.MessageDescriptor { + return md_MsgDepositForBurn +} + +// 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_MsgDepositForBurn) Type() protoreflect.MessageType { + return _fastReflection_MsgDepositForBurn_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgDepositForBurn) New() protoreflect.Message { + return new(fastReflection_MsgDepositForBurn) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgDepositForBurn) Interface() protoreflect.ProtoMessage { + return (*MsgDepositForBurn)(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_MsgDepositForBurn) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.From != "" { + value := protoreflect.ValueOfString(x.From) + if !f(fd_MsgDepositForBurn_from, value) { + return + } + } + if x.Amount != "" { + value := protoreflect.ValueOfString(x.Amount) + if !f(fd_MsgDepositForBurn_amount, value) { + return + } + } + if x.DestinationDomain != uint32(0) { + value := protoreflect.ValueOfUint32(x.DestinationDomain) + if !f(fd_MsgDepositForBurn_destination_domain, value) { + return + } + } + if len(x.MintRecipient) != 0 { + value := protoreflect.ValueOfBytes(x.MintRecipient) + if !f(fd_MsgDepositForBurn_mint_recipient, value) { + return + } + } + if x.BurnToken != "" { + value := protoreflect.ValueOfString(x.BurnToken) + if !f(fd_MsgDepositForBurn_burn_token, 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_MsgDepositForBurn) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.MsgDepositForBurn.from": + return x.From != "" + case "circle.cctp.v1.MsgDepositForBurn.amount": + return x.Amount != "" + case "circle.cctp.v1.MsgDepositForBurn.destination_domain": + return x.DestinationDomain != uint32(0) + case "circle.cctp.v1.MsgDepositForBurn.mint_recipient": + return len(x.MintRecipient) != 0 + case "circle.cctp.v1.MsgDepositForBurn.burn_token": + return x.BurnToken != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgDepositForBurn")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgDepositForBurn 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_MsgDepositForBurn) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.MsgDepositForBurn.from": + x.From = "" + case "circle.cctp.v1.MsgDepositForBurn.amount": + x.Amount = "" + case "circle.cctp.v1.MsgDepositForBurn.destination_domain": + x.DestinationDomain = uint32(0) + case "circle.cctp.v1.MsgDepositForBurn.mint_recipient": + x.MintRecipient = nil + case "circle.cctp.v1.MsgDepositForBurn.burn_token": + x.BurnToken = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgDepositForBurn")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgDepositForBurn 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_MsgDepositForBurn) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.MsgDepositForBurn.from": + value := x.From + return protoreflect.ValueOfString(value) + case "circle.cctp.v1.MsgDepositForBurn.amount": + value := x.Amount + return protoreflect.ValueOfString(value) + case "circle.cctp.v1.MsgDepositForBurn.destination_domain": + value := x.DestinationDomain + return protoreflect.ValueOfUint32(value) + case "circle.cctp.v1.MsgDepositForBurn.mint_recipient": + value := x.MintRecipient + return protoreflect.ValueOfBytes(value) + case "circle.cctp.v1.MsgDepositForBurn.burn_token": + value := x.BurnToken + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgDepositForBurn")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgDepositForBurn 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_MsgDepositForBurn) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.MsgDepositForBurn.from": + x.From = value.Interface().(string) + case "circle.cctp.v1.MsgDepositForBurn.amount": + x.Amount = value.Interface().(string) + case "circle.cctp.v1.MsgDepositForBurn.destination_domain": + x.DestinationDomain = uint32(value.Uint()) + case "circle.cctp.v1.MsgDepositForBurn.mint_recipient": + x.MintRecipient = value.Bytes() + case "circle.cctp.v1.MsgDepositForBurn.burn_token": + x.BurnToken = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgDepositForBurn")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgDepositForBurn 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_MsgDepositForBurn) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.MsgDepositForBurn.from": + panic(fmt.Errorf("field from of message circle.cctp.v1.MsgDepositForBurn is not mutable")) + case "circle.cctp.v1.MsgDepositForBurn.amount": + panic(fmt.Errorf("field amount of message circle.cctp.v1.MsgDepositForBurn is not mutable")) + case "circle.cctp.v1.MsgDepositForBurn.destination_domain": + panic(fmt.Errorf("field destination_domain of message circle.cctp.v1.MsgDepositForBurn is not mutable")) + case "circle.cctp.v1.MsgDepositForBurn.mint_recipient": + panic(fmt.Errorf("field mint_recipient of message circle.cctp.v1.MsgDepositForBurn is not mutable")) + case "circle.cctp.v1.MsgDepositForBurn.burn_token": + panic(fmt.Errorf("field burn_token of message circle.cctp.v1.MsgDepositForBurn is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgDepositForBurn")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgDepositForBurn 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_MsgDepositForBurn) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.MsgDepositForBurn.from": + return protoreflect.ValueOfString("") + case "circle.cctp.v1.MsgDepositForBurn.amount": + return protoreflect.ValueOfString("") + case "circle.cctp.v1.MsgDepositForBurn.destination_domain": + return protoreflect.ValueOfUint32(uint32(0)) + case "circle.cctp.v1.MsgDepositForBurn.mint_recipient": + return protoreflect.ValueOfBytes(nil) + case "circle.cctp.v1.MsgDepositForBurn.burn_token": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgDepositForBurn")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgDepositForBurn 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_MsgDepositForBurn) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.MsgDepositForBurn", 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_MsgDepositForBurn) 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_MsgDepositForBurn) 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_MsgDepositForBurn) 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_MsgDepositForBurn) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgDepositForBurn) + 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.From) + 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.DestinationDomain != 0 { + n += 1 + runtime.Sov(uint64(x.DestinationDomain)) + } + l = len(x.MintRecipient) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.BurnToken) + 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().(*MsgDepositForBurn) + 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.BurnToken) > 0 { + i -= len(x.BurnToken) + copy(dAtA[i:], x.BurnToken) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.BurnToken))) + i-- + dAtA[i] = 0x2a + } + if len(x.MintRecipient) > 0 { + i -= len(x.MintRecipient) + copy(dAtA[i:], x.MintRecipient) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.MintRecipient))) + i-- + dAtA[i] = 0x22 + } + if x.DestinationDomain != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.DestinationDomain)) + 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.From) > 0 { + i -= len(x.From) + copy(dAtA[i:], x.From) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.From))) + 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().(*MsgDepositForBurn) + 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: MsgDepositForBurn: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgDepositForBurn: 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 From", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.From = 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 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 != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MintRecipient", 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.MintRecipient = append(x.MintRecipient[:0], dAtA[iNdEx:postIndex]...) + if x.MintRecipient == nil { + x.MintRecipient = []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 BurnToken", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.BurnToken = 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_MsgDepositForBurnResponse protoreflect.MessageDescriptor + fd_MsgDepositForBurnResponse_nonce protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_tx_proto_init() + md_MsgDepositForBurnResponse = File_circle_cctp_v1_tx_proto.Messages().ByName("MsgDepositForBurnResponse") + fd_MsgDepositForBurnResponse_nonce = md_MsgDepositForBurnResponse.Fields().ByName("nonce") +} + +var _ protoreflect.Message = (*fastReflection_MsgDepositForBurnResponse)(nil) + +type fastReflection_MsgDepositForBurnResponse MsgDepositForBurnResponse + +func (x *MsgDepositForBurnResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgDepositForBurnResponse)(x) +} + +func (x *MsgDepositForBurnResponse) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_MsgDepositForBurnResponse_messageType fastReflection_MsgDepositForBurnResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgDepositForBurnResponse_messageType{} + +type fastReflection_MsgDepositForBurnResponse_messageType struct{} + +func (x fastReflection_MsgDepositForBurnResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgDepositForBurnResponse)(nil) +} +func (x fastReflection_MsgDepositForBurnResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgDepositForBurnResponse) +} +func (x fastReflection_MsgDepositForBurnResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgDepositForBurnResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgDepositForBurnResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgDepositForBurnResponse +} + +// 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_MsgDepositForBurnResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgDepositForBurnResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgDepositForBurnResponse) New() protoreflect.Message { + return new(fastReflection_MsgDepositForBurnResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgDepositForBurnResponse) Interface() protoreflect.ProtoMessage { + return (*MsgDepositForBurnResponse)(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_MsgDepositForBurnResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Nonce != uint64(0) { + value := protoreflect.ValueOfUint64(x.Nonce) + if !f(fd_MsgDepositForBurnResponse_nonce, 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_MsgDepositForBurnResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.MsgDepositForBurnResponse.nonce": + return x.Nonce != uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgDepositForBurnResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgDepositForBurnResponse 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_MsgDepositForBurnResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.MsgDepositForBurnResponse.nonce": + x.Nonce = uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgDepositForBurnResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgDepositForBurnResponse 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_MsgDepositForBurnResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.MsgDepositForBurnResponse.nonce": + value := x.Nonce + return protoreflect.ValueOfUint64(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgDepositForBurnResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgDepositForBurnResponse 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_MsgDepositForBurnResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.MsgDepositForBurnResponse.nonce": + x.Nonce = value.Uint() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgDepositForBurnResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgDepositForBurnResponse 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_MsgDepositForBurnResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.MsgDepositForBurnResponse.nonce": + panic(fmt.Errorf("field nonce of message circle.cctp.v1.MsgDepositForBurnResponse is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgDepositForBurnResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgDepositForBurnResponse 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_MsgDepositForBurnResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.MsgDepositForBurnResponse.nonce": + return protoreflect.ValueOfUint64(uint64(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgDepositForBurnResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgDepositForBurnResponse 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_MsgDepositForBurnResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.MsgDepositForBurnResponse", 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_MsgDepositForBurnResponse) 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_MsgDepositForBurnResponse) 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_MsgDepositForBurnResponse) 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_MsgDepositForBurnResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgDepositForBurnResponse) + 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.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().(*MsgDepositForBurnResponse) + 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.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().(*MsgDepositForBurnResponse) + 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: MsgDepositForBurnResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgDepositForBurnResponse: 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 + } + } + 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_MsgDepositForBurnWithCaller protoreflect.MessageDescriptor + fd_MsgDepositForBurnWithCaller_from protoreflect.FieldDescriptor + fd_MsgDepositForBurnWithCaller_amount protoreflect.FieldDescriptor + fd_MsgDepositForBurnWithCaller_destination_domain protoreflect.FieldDescriptor + fd_MsgDepositForBurnWithCaller_mint_recipient protoreflect.FieldDescriptor + fd_MsgDepositForBurnWithCaller_burn_token protoreflect.FieldDescriptor + fd_MsgDepositForBurnWithCaller_destination_caller protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_tx_proto_init() + md_MsgDepositForBurnWithCaller = File_circle_cctp_v1_tx_proto.Messages().ByName("MsgDepositForBurnWithCaller") + fd_MsgDepositForBurnWithCaller_from = md_MsgDepositForBurnWithCaller.Fields().ByName("from") + fd_MsgDepositForBurnWithCaller_amount = md_MsgDepositForBurnWithCaller.Fields().ByName("amount") + fd_MsgDepositForBurnWithCaller_destination_domain = md_MsgDepositForBurnWithCaller.Fields().ByName("destination_domain") + fd_MsgDepositForBurnWithCaller_mint_recipient = md_MsgDepositForBurnWithCaller.Fields().ByName("mint_recipient") + fd_MsgDepositForBurnWithCaller_burn_token = md_MsgDepositForBurnWithCaller.Fields().ByName("burn_token") + fd_MsgDepositForBurnWithCaller_destination_caller = md_MsgDepositForBurnWithCaller.Fields().ByName("destination_caller") +} + +var _ protoreflect.Message = (*fastReflection_MsgDepositForBurnWithCaller)(nil) + +type fastReflection_MsgDepositForBurnWithCaller MsgDepositForBurnWithCaller + +func (x *MsgDepositForBurnWithCaller) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgDepositForBurnWithCaller)(x) +} + +func (x *MsgDepositForBurnWithCaller) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_MsgDepositForBurnWithCaller_messageType fastReflection_MsgDepositForBurnWithCaller_messageType +var _ protoreflect.MessageType = fastReflection_MsgDepositForBurnWithCaller_messageType{} + +type fastReflection_MsgDepositForBurnWithCaller_messageType struct{} + +func (x fastReflection_MsgDepositForBurnWithCaller_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgDepositForBurnWithCaller)(nil) +} +func (x fastReflection_MsgDepositForBurnWithCaller_messageType) New() protoreflect.Message { + return new(fastReflection_MsgDepositForBurnWithCaller) +} +func (x fastReflection_MsgDepositForBurnWithCaller_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgDepositForBurnWithCaller +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgDepositForBurnWithCaller) Descriptor() protoreflect.MessageDescriptor { + return md_MsgDepositForBurnWithCaller +} + +// 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_MsgDepositForBurnWithCaller) Type() protoreflect.MessageType { + return _fastReflection_MsgDepositForBurnWithCaller_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgDepositForBurnWithCaller) New() protoreflect.Message { + return new(fastReflection_MsgDepositForBurnWithCaller) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgDepositForBurnWithCaller) Interface() protoreflect.ProtoMessage { + return (*MsgDepositForBurnWithCaller)(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_MsgDepositForBurnWithCaller) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.From != "" { + value := protoreflect.ValueOfString(x.From) + if !f(fd_MsgDepositForBurnWithCaller_from, value) { + return + } + } + if x.Amount != "" { + value := protoreflect.ValueOfString(x.Amount) + if !f(fd_MsgDepositForBurnWithCaller_amount, value) { + return + } + } + if x.DestinationDomain != uint32(0) { + value := protoreflect.ValueOfUint32(x.DestinationDomain) + if !f(fd_MsgDepositForBurnWithCaller_destination_domain, value) { + return + } + } + if len(x.MintRecipient) != 0 { + value := protoreflect.ValueOfBytes(x.MintRecipient) + if !f(fd_MsgDepositForBurnWithCaller_mint_recipient, value) { + return + } + } + if x.BurnToken != "" { + value := protoreflect.ValueOfString(x.BurnToken) + if !f(fd_MsgDepositForBurnWithCaller_burn_token, value) { + return + } + } + if len(x.DestinationCaller) != 0 { + value := protoreflect.ValueOfBytes(x.DestinationCaller) + if !f(fd_MsgDepositForBurnWithCaller_destination_caller, 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_MsgDepositForBurnWithCaller) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.MsgDepositForBurnWithCaller.from": + return x.From != "" + case "circle.cctp.v1.MsgDepositForBurnWithCaller.amount": + return x.Amount != "" + case "circle.cctp.v1.MsgDepositForBurnWithCaller.destination_domain": + return x.DestinationDomain != uint32(0) + case "circle.cctp.v1.MsgDepositForBurnWithCaller.mint_recipient": + return len(x.MintRecipient) != 0 + case "circle.cctp.v1.MsgDepositForBurnWithCaller.burn_token": + return x.BurnToken != "" + case "circle.cctp.v1.MsgDepositForBurnWithCaller.destination_caller": + return len(x.DestinationCaller) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgDepositForBurnWithCaller")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgDepositForBurnWithCaller 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_MsgDepositForBurnWithCaller) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.MsgDepositForBurnWithCaller.from": + x.From = "" + case "circle.cctp.v1.MsgDepositForBurnWithCaller.amount": + x.Amount = "" + case "circle.cctp.v1.MsgDepositForBurnWithCaller.destination_domain": + x.DestinationDomain = uint32(0) + case "circle.cctp.v1.MsgDepositForBurnWithCaller.mint_recipient": + x.MintRecipient = nil + case "circle.cctp.v1.MsgDepositForBurnWithCaller.burn_token": + x.BurnToken = "" + case "circle.cctp.v1.MsgDepositForBurnWithCaller.destination_caller": + x.DestinationCaller = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgDepositForBurnWithCaller")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgDepositForBurnWithCaller 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_MsgDepositForBurnWithCaller) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.MsgDepositForBurnWithCaller.from": + value := x.From + return protoreflect.ValueOfString(value) + case "circle.cctp.v1.MsgDepositForBurnWithCaller.amount": + value := x.Amount + return protoreflect.ValueOfString(value) + case "circle.cctp.v1.MsgDepositForBurnWithCaller.destination_domain": + value := x.DestinationDomain + return protoreflect.ValueOfUint32(value) + case "circle.cctp.v1.MsgDepositForBurnWithCaller.mint_recipient": + value := x.MintRecipient + return protoreflect.ValueOfBytes(value) + case "circle.cctp.v1.MsgDepositForBurnWithCaller.burn_token": + value := x.BurnToken + return protoreflect.ValueOfString(value) + case "circle.cctp.v1.MsgDepositForBurnWithCaller.destination_caller": + value := x.DestinationCaller + return protoreflect.ValueOfBytes(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgDepositForBurnWithCaller")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgDepositForBurnWithCaller 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_MsgDepositForBurnWithCaller) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.MsgDepositForBurnWithCaller.from": + x.From = value.Interface().(string) + case "circle.cctp.v1.MsgDepositForBurnWithCaller.amount": + x.Amount = value.Interface().(string) + case "circle.cctp.v1.MsgDepositForBurnWithCaller.destination_domain": + x.DestinationDomain = uint32(value.Uint()) + case "circle.cctp.v1.MsgDepositForBurnWithCaller.mint_recipient": + x.MintRecipient = value.Bytes() + case "circle.cctp.v1.MsgDepositForBurnWithCaller.burn_token": + x.BurnToken = value.Interface().(string) + case "circle.cctp.v1.MsgDepositForBurnWithCaller.destination_caller": + x.DestinationCaller = value.Bytes() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgDepositForBurnWithCaller")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgDepositForBurnWithCaller 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_MsgDepositForBurnWithCaller) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.MsgDepositForBurnWithCaller.from": + panic(fmt.Errorf("field from of message circle.cctp.v1.MsgDepositForBurnWithCaller is not mutable")) + case "circle.cctp.v1.MsgDepositForBurnWithCaller.amount": + panic(fmt.Errorf("field amount of message circle.cctp.v1.MsgDepositForBurnWithCaller is not mutable")) + case "circle.cctp.v1.MsgDepositForBurnWithCaller.destination_domain": + panic(fmt.Errorf("field destination_domain of message circle.cctp.v1.MsgDepositForBurnWithCaller is not mutable")) + case "circle.cctp.v1.MsgDepositForBurnWithCaller.mint_recipient": + panic(fmt.Errorf("field mint_recipient of message circle.cctp.v1.MsgDepositForBurnWithCaller is not mutable")) + case "circle.cctp.v1.MsgDepositForBurnWithCaller.burn_token": + panic(fmt.Errorf("field burn_token of message circle.cctp.v1.MsgDepositForBurnWithCaller is not mutable")) + case "circle.cctp.v1.MsgDepositForBurnWithCaller.destination_caller": + panic(fmt.Errorf("field destination_caller of message circle.cctp.v1.MsgDepositForBurnWithCaller is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgDepositForBurnWithCaller")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgDepositForBurnWithCaller 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_MsgDepositForBurnWithCaller) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.MsgDepositForBurnWithCaller.from": + return protoreflect.ValueOfString("") + case "circle.cctp.v1.MsgDepositForBurnWithCaller.amount": + return protoreflect.ValueOfString("") + case "circle.cctp.v1.MsgDepositForBurnWithCaller.destination_domain": + return protoreflect.ValueOfUint32(uint32(0)) + case "circle.cctp.v1.MsgDepositForBurnWithCaller.mint_recipient": + return protoreflect.ValueOfBytes(nil) + case "circle.cctp.v1.MsgDepositForBurnWithCaller.burn_token": + return protoreflect.ValueOfString("") + case "circle.cctp.v1.MsgDepositForBurnWithCaller.destination_caller": + return protoreflect.ValueOfBytes(nil) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgDepositForBurnWithCaller")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgDepositForBurnWithCaller 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_MsgDepositForBurnWithCaller) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.MsgDepositForBurnWithCaller", 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_MsgDepositForBurnWithCaller) 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_MsgDepositForBurnWithCaller) 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_MsgDepositForBurnWithCaller) 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_MsgDepositForBurnWithCaller) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgDepositForBurnWithCaller) + 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.From) + 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.DestinationDomain != 0 { + n += 1 + runtime.Sov(uint64(x.DestinationDomain)) + } + l = len(x.MintRecipient) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.BurnToken) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.DestinationCaller) + 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().(*MsgDepositForBurnWithCaller) + 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.DestinationCaller) > 0 { + i -= len(x.DestinationCaller) + copy(dAtA[i:], x.DestinationCaller) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.DestinationCaller))) + i-- + dAtA[i] = 0x32 + } + if len(x.BurnToken) > 0 { + i -= len(x.BurnToken) + copy(dAtA[i:], x.BurnToken) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.BurnToken))) + i-- + dAtA[i] = 0x2a + } + if len(x.MintRecipient) > 0 { + i -= len(x.MintRecipient) + copy(dAtA[i:], x.MintRecipient) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.MintRecipient))) + i-- + dAtA[i] = 0x22 + } + if x.DestinationDomain != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.DestinationDomain)) + 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.From) > 0 { + i -= len(x.From) + copy(dAtA[i:], x.From) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.From))) + 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().(*MsgDepositForBurnWithCaller) + 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: MsgDepositForBurnWithCaller: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgDepositForBurnWithCaller: 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 From", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.From = 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 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 != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MintRecipient", 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.MintRecipient = append(x.MintRecipient[:0], dAtA[iNdEx:postIndex]...) + if x.MintRecipient == nil { + x.MintRecipient = []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 BurnToken", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.BurnToken = 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 DestinationCaller", 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.DestinationCaller = append(x.DestinationCaller[:0], dAtA[iNdEx:postIndex]...) + if x.DestinationCaller == nil { + x.DestinationCaller = []byte{} + } + 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_MsgDepositForBurnWithCallerResponse protoreflect.MessageDescriptor + fd_MsgDepositForBurnWithCallerResponse_nonce protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_tx_proto_init() + md_MsgDepositForBurnWithCallerResponse = File_circle_cctp_v1_tx_proto.Messages().ByName("MsgDepositForBurnWithCallerResponse") + fd_MsgDepositForBurnWithCallerResponse_nonce = md_MsgDepositForBurnWithCallerResponse.Fields().ByName("nonce") +} + +var _ protoreflect.Message = (*fastReflection_MsgDepositForBurnWithCallerResponse)(nil) + +type fastReflection_MsgDepositForBurnWithCallerResponse MsgDepositForBurnWithCallerResponse + +func (x *MsgDepositForBurnWithCallerResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgDepositForBurnWithCallerResponse)(x) +} + +func (x *MsgDepositForBurnWithCallerResponse) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_MsgDepositForBurnWithCallerResponse_messageType fastReflection_MsgDepositForBurnWithCallerResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgDepositForBurnWithCallerResponse_messageType{} + +type fastReflection_MsgDepositForBurnWithCallerResponse_messageType struct{} + +func (x fastReflection_MsgDepositForBurnWithCallerResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgDepositForBurnWithCallerResponse)(nil) +} +func (x fastReflection_MsgDepositForBurnWithCallerResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgDepositForBurnWithCallerResponse) +} +func (x fastReflection_MsgDepositForBurnWithCallerResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgDepositForBurnWithCallerResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgDepositForBurnWithCallerResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgDepositForBurnWithCallerResponse +} + +// 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_MsgDepositForBurnWithCallerResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgDepositForBurnWithCallerResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgDepositForBurnWithCallerResponse) New() protoreflect.Message { + return new(fastReflection_MsgDepositForBurnWithCallerResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgDepositForBurnWithCallerResponse) Interface() protoreflect.ProtoMessage { + return (*MsgDepositForBurnWithCallerResponse)(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_MsgDepositForBurnWithCallerResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Nonce != uint64(0) { + value := protoreflect.ValueOfUint64(x.Nonce) + if !f(fd_MsgDepositForBurnWithCallerResponse_nonce, 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_MsgDepositForBurnWithCallerResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.MsgDepositForBurnWithCallerResponse.nonce": + return x.Nonce != uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgDepositForBurnWithCallerResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgDepositForBurnWithCallerResponse 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_MsgDepositForBurnWithCallerResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.MsgDepositForBurnWithCallerResponse.nonce": + x.Nonce = uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgDepositForBurnWithCallerResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgDepositForBurnWithCallerResponse 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_MsgDepositForBurnWithCallerResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.MsgDepositForBurnWithCallerResponse.nonce": + value := x.Nonce + return protoreflect.ValueOfUint64(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgDepositForBurnWithCallerResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgDepositForBurnWithCallerResponse 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_MsgDepositForBurnWithCallerResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.MsgDepositForBurnWithCallerResponse.nonce": + x.Nonce = value.Uint() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgDepositForBurnWithCallerResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgDepositForBurnWithCallerResponse 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_MsgDepositForBurnWithCallerResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.MsgDepositForBurnWithCallerResponse.nonce": + panic(fmt.Errorf("field nonce of message circle.cctp.v1.MsgDepositForBurnWithCallerResponse is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgDepositForBurnWithCallerResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgDepositForBurnWithCallerResponse 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_MsgDepositForBurnWithCallerResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.MsgDepositForBurnWithCallerResponse.nonce": + return protoreflect.ValueOfUint64(uint64(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgDepositForBurnWithCallerResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgDepositForBurnWithCallerResponse 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_MsgDepositForBurnWithCallerResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.MsgDepositForBurnWithCallerResponse", 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_MsgDepositForBurnWithCallerResponse) 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_MsgDepositForBurnWithCallerResponse) 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_MsgDepositForBurnWithCallerResponse) 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_MsgDepositForBurnWithCallerResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgDepositForBurnWithCallerResponse) + 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.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().(*MsgDepositForBurnWithCallerResponse) + 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.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().(*MsgDepositForBurnWithCallerResponse) + 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: MsgDepositForBurnWithCallerResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgDepositForBurnWithCallerResponse: 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 + } + } + 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_MsgReplaceDepositForBurn protoreflect.MessageDescriptor + fd_MsgReplaceDepositForBurn_from protoreflect.FieldDescriptor + fd_MsgReplaceDepositForBurn_original_message protoreflect.FieldDescriptor + fd_MsgReplaceDepositForBurn_original_attestation protoreflect.FieldDescriptor + fd_MsgReplaceDepositForBurn_new_destination_caller protoreflect.FieldDescriptor + fd_MsgReplaceDepositForBurn_new_mint_recipient protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_tx_proto_init() + md_MsgReplaceDepositForBurn = File_circle_cctp_v1_tx_proto.Messages().ByName("MsgReplaceDepositForBurn") + fd_MsgReplaceDepositForBurn_from = md_MsgReplaceDepositForBurn.Fields().ByName("from") + fd_MsgReplaceDepositForBurn_original_message = md_MsgReplaceDepositForBurn.Fields().ByName("original_message") + fd_MsgReplaceDepositForBurn_original_attestation = md_MsgReplaceDepositForBurn.Fields().ByName("original_attestation") + fd_MsgReplaceDepositForBurn_new_destination_caller = md_MsgReplaceDepositForBurn.Fields().ByName("new_destination_caller") + fd_MsgReplaceDepositForBurn_new_mint_recipient = md_MsgReplaceDepositForBurn.Fields().ByName("new_mint_recipient") +} + +var _ protoreflect.Message = (*fastReflection_MsgReplaceDepositForBurn)(nil) + +type fastReflection_MsgReplaceDepositForBurn MsgReplaceDepositForBurn + +func (x *MsgReplaceDepositForBurn) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgReplaceDepositForBurn)(x) +} + +func (x *MsgReplaceDepositForBurn) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_MsgReplaceDepositForBurn_messageType fastReflection_MsgReplaceDepositForBurn_messageType +var _ protoreflect.MessageType = fastReflection_MsgReplaceDepositForBurn_messageType{} + +type fastReflection_MsgReplaceDepositForBurn_messageType struct{} + +func (x fastReflection_MsgReplaceDepositForBurn_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgReplaceDepositForBurn)(nil) +} +func (x fastReflection_MsgReplaceDepositForBurn_messageType) New() protoreflect.Message { + return new(fastReflection_MsgReplaceDepositForBurn) +} +func (x fastReflection_MsgReplaceDepositForBurn_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgReplaceDepositForBurn +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgReplaceDepositForBurn) Descriptor() protoreflect.MessageDescriptor { + return md_MsgReplaceDepositForBurn +} + +// 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_MsgReplaceDepositForBurn) Type() protoreflect.MessageType { + return _fastReflection_MsgReplaceDepositForBurn_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgReplaceDepositForBurn) New() protoreflect.Message { + return new(fastReflection_MsgReplaceDepositForBurn) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgReplaceDepositForBurn) Interface() protoreflect.ProtoMessage { + return (*MsgReplaceDepositForBurn)(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_MsgReplaceDepositForBurn) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.From != "" { + value := protoreflect.ValueOfString(x.From) + if !f(fd_MsgReplaceDepositForBurn_from, value) { + return + } + } + if len(x.OriginalMessage) != 0 { + value := protoreflect.ValueOfBytes(x.OriginalMessage) + if !f(fd_MsgReplaceDepositForBurn_original_message, value) { + return + } + } + if len(x.OriginalAttestation) != 0 { + value := protoreflect.ValueOfBytes(x.OriginalAttestation) + if !f(fd_MsgReplaceDepositForBurn_original_attestation, value) { + return + } + } + if len(x.NewDestinationCaller) != 0 { + value := protoreflect.ValueOfBytes(x.NewDestinationCaller) + if !f(fd_MsgReplaceDepositForBurn_new_destination_caller, value) { + return + } + } + if len(x.NewMintRecipient) != 0 { + value := protoreflect.ValueOfBytes(x.NewMintRecipient) + if !f(fd_MsgReplaceDepositForBurn_new_mint_recipient, 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_MsgReplaceDepositForBurn) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.MsgReplaceDepositForBurn.from": + return x.From != "" + case "circle.cctp.v1.MsgReplaceDepositForBurn.original_message": + return len(x.OriginalMessage) != 0 + case "circle.cctp.v1.MsgReplaceDepositForBurn.original_attestation": + return len(x.OriginalAttestation) != 0 + case "circle.cctp.v1.MsgReplaceDepositForBurn.new_destination_caller": + return len(x.NewDestinationCaller) != 0 + case "circle.cctp.v1.MsgReplaceDepositForBurn.new_mint_recipient": + return len(x.NewMintRecipient) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgReplaceDepositForBurn")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgReplaceDepositForBurn 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_MsgReplaceDepositForBurn) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.MsgReplaceDepositForBurn.from": + x.From = "" + case "circle.cctp.v1.MsgReplaceDepositForBurn.original_message": + x.OriginalMessage = nil + case "circle.cctp.v1.MsgReplaceDepositForBurn.original_attestation": + x.OriginalAttestation = nil + case "circle.cctp.v1.MsgReplaceDepositForBurn.new_destination_caller": + x.NewDestinationCaller = nil + case "circle.cctp.v1.MsgReplaceDepositForBurn.new_mint_recipient": + x.NewMintRecipient = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgReplaceDepositForBurn")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgReplaceDepositForBurn 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_MsgReplaceDepositForBurn) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.MsgReplaceDepositForBurn.from": + value := x.From + return protoreflect.ValueOfString(value) + case "circle.cctp.v1.MsgReplaceDepositForBurn.original_message": + value := x.OriginalMessage + return protoreflect.ValueOfBytes(value) + case "circle.cctp.v1.MsgReplaceDepositForBurn.original_attestation": + value := x.OriginalAttestation + return protoreflect.ValueOfBytes(value) + case "circle.cctp.v1.MsgReplaceDepositForBurn.new_destination_caller": + value := x.NewDestinationCaller + return protoreflect.ValueOfBytes(value) + case "circle.cctp.v1.MsgReplaceDepositForBurn.new_mint_recipient": + value := x.NewMintRecipient + return protoreflect.ValueOfBytes(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgReplaceDepositForBurn")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgReplaceDepositForBurn 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_MsgReplaceDepositForBurn) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.MsgReplaceDepositForBurn.from": + x.From = value.Interface().(string) + case "circle.cctp.v1.MsgReplaceDepositForBurn.original_message": + x.OriginalMessage = value.Bytes() + case "circle.cctp.v1.MsgReplaceDepositForBurn.original_attestation": + x.OriginalAttestation = value.Bytes() + case "circle.cctp.v1.MsgReplaceDepositForBurn.new_destination_caller": + x.NewDestinationCaller = value.Bytes() + case "circle.cctp.v1.MsgReplaceDepositForBurn.new_mint_recipient": + x.NewMintRecipient = value.Bytes() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgReplaceDepositForBurn")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgReplaceDepositForBurn 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_MsgReplaceDepositForBurn) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.MsgReplaceDepositForBurn.from": + panic(fmt.Errorf("field from of message circle.cctp.v1.MsgReplaceDepositForBurn is not mutable")) + case "circle.cctp.v1.MsgReplaceDepositForBurn.original_message": + panic(fmt.Errorf("field original_message of message circle.cctp.v1.MsgReplaceDepositForBurn is not mutable")) + case "circle.cctp.v1.MsgReplaceDepositForBurn.original_attestation": + panic(fmt.Errorf("field original_attestation of message circle.cctp.v1.MsgReplaceDepositForBurn is not mutable")) + case "circle.cctp.v1.MsgReplaceDepositForBurn.new_destination_caller": + panic(fmt.Errorf("field new_destination_caller of message circle.cctp.v1.MsgReplaceDepositForBurn is not mutable")) + case "circle.cctp.v1.MsgReplaceDepositForBurn.new_mint_recipient": + panic(fmt.Errorf("field new_mint_recipient of message circle.cctp.v1.MsgReplaceDepositForBurn is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgReplaceDepositForBurn")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgReplaceDepositForBurn 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_MsgReplaceDepositForBurn) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.MsgReplaceDepositForBurn.from": + return protoreflect.ValueOfString("") + case "circle.cctp.v1.MsgReplaceDepositForBurn.original_message": + return protoreflect.ValueOfBytes(nil) + case "circle.cctp.v1.MsgReplaceDepositForBurn.original_attestation": + return protoreflect.ValueOfBytes(nil) + case "circle.cctp.v1.MsgReplaceDepositForBurn.new_destination_caller": + return protoreflect.ValueOfBytes(nil) + case "circle.cctp.v1.MsgReplaceDepositForBurn.new_mint_recipient": + return protoreflect.ValueOfBytes(nil) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgReplaceDepositForBurn")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgReplaceDepositForBurn 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_MsgReplaceDepositForBurn) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.MsgReplaceDepositForBurn", 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_MsgReplaceDepositForBurn) 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_MsgReplaceDepositForBurn) 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_MsgReplaceDepositForBurn) 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_MsgReplaceDepositForBurn) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgReplaceDepositForBurn) + 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.From) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.OriginalMessage) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.OriginalAttestation) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.NewDestinationCaller) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.NewMintRecipient) + 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().(*MsgReplaceDepositForBurn) + 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.NewMintRecipient) > 0 { + i -= len(x.NewMintRecipient) + copy(dAtA[i:], x.NewMintRecipient) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.NewMintRecipient))) + i-- + dAtA[i] = 0x2a + } + if len(x.NewDestinationCaller) > 0 { + i -= len(x.NewDestinationCaller) + copy(dAtA[i:], x.NewDestinationCaller) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.NewDestinationCaller))) + i-- + dAtA[i] = 0x22 + } + if len(x.OriginalAttestation) > 0 { + i -= len(x.OriginalAttestation) + copy(dAtA[i:], x.OriginalAttestation) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.OriginalAttestation))) + i-- + dAtA[i] = 0x1a + } + if len(x.OriginalMessage) > 0 { + i -= len(x.OriginalMessage) + copy(dAtA[i:], x.OriginalMessage) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.OriginalMessage))) + i-- + dAtA[i] = 0x12 + } + if len(x.From) > 0 { + i -= len(x.From) + copy(dAtA[i:], x.From) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.From))) + 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().(*MsgReplaceDepositForBurn) + 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: MsgReplaceDepositForBurn: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgReplaceDepositForBurn: 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 From", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.From = 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 OriginalMessage", 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.OriginalMessage = append(x.OriginalMessage[:0], dAtA[iNdEx:postIndex]...) + if x.OriginalMessage == nil { + x.OriginalMessage = []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 OriginalAttestation", 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.OriginalAttestation = append(x.OriginalAttestation[:0], dAtA[iNdEx:postIndex]...) + if x.OriginalAttestation == nil { + x.OriginalAttestation = []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 NewDestinationCaller", 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.NewDestinationCaller = append(x.NewDestinationCaller[:0], dAtA[iNdEx:postIndex]...) + if x.NewDestinationCaller == nil { + x.NewDestinationCaller = []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 NewMintRecipient", 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.NewMintRecipient = append(x.NewMintRecipient[:0], dAtA[iNdEx:postIndex]...) + if x.NewMintRecipient == nil { + x.NewMintRecipient = []byte{} + } + 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_MsgReplaceDepositForBurnResponse protoreflect.MessageDescriptor +) + +func init() { + file_circle_cctp_v1_tx_proto_init() + md_MsgReplaceDepositForBurnResponse = File_circle_cctp_v1_tx_proto.Messages().ByName("MsgReplaceDepositForBurnResponse") +} + +var _ protoreflect.Message = (*fastReflection_MsgReplaceDepositForBurnResponse)(nil) + +type fastReflection_MsgReplaceDepositForBurnResponse MsgReplaceDepositForBurnResponse + +func (x *MsgReplaceDepositForBurnResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgReplaceDepositForBurnResponse)(x) +} + +func (x *MsgReplaceDepositForBurnResponse) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_MsgReplaceDepositForBurnResponse_messageType fastReflection_MsgReplaceDepositForBurnResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgReplaceDepositForBurnResponse_messageType{} + +type fastReflection_MsgReplaceDepositForBurnResponse_messageType struct{} + +func (x fastReflection_MsgReplaceDepositForBurnResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgReplaceDepositForBurnResponse)(nil) +} +func (x fastReflection_MsgReplaceDepositForBurnResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgReplaceDepositForBurnResponse) +} +func (x fastReflection_MsgReplaceDepositForBurnResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgReplaceDepositForBurnResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgReplaceDepositForBurnResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgReplaceDepositForBurnResponse +} + +// 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_MsgReplaceDepositForBurnResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgReplaceDepositForBurnResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgReplaceDepositForBurnResponse) New() protoreflect.Message { + return new(fastReflection_MsgReplaceDepositForBurnResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgReplaceDepositForBurnResponse) Interface() protoreflect.ProtoMessage { + return (*MsgReplaceDepositForBurnResponse)(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_MsgReplaceDepositForBurnResponse) 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_MsgReplaceDepositForBurnResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgReplaceDepositForBurnResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgReplaceDepositForBurnResponse 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_MsgReplaceDepositForBurnResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgReplaceDepositForBurnResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgReplaceDepositForBurnResponse 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_MsgReplaceDepositForBurnResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgReplaceDepositForBurnResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgReplaceDepositForBurnResponse 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_MsgReplaceDepositForBurnResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgReplaceDepositForBurnResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgReplaceDepositForBurnResponse 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_MsgReplaceDepositForBurnResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgReplaceDepositForBurnResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgReplaceDepositForBurnResponse 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_MsgReplaceDepositForBurnResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgReplaceDepositForBurnResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgReplaceDepositForBurnResponse 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_MsgReplaceDepositForBurnResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.MsgReplaceDepositForBurnResponse", 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_MsgReplaceDepositForBurnResponse) 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_MsgReplaceDepositForBurnResponse) 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_MsgReplaceDepositForBurnResponse) 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_MsgReplaceDepositForBurnResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgReplaceDepositForBurnResponse) + 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().(*MsgReplaceDepositForBurnResponse) + 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().(*MsgReplaceDepositForBurnResponse) + 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: MsgReplaceDepositForBurnResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgReplaceDepositForBurnResponse: 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_MsgReceiveMessage protoreflect.MessageDescriptor + fd_MsgReceiveMessage_from protoreflect.FieldDescriptor + fd_MsgReceiveMessage_message protoreflect.FieldDescriptor + fd_MsgReceiveMessage_attestation protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_tx_proto_init() + md_MsgReceiveMessage = File_circle_cctp_v1_tx_proto.Messages().ByName("MsgReceiveMessage") + fd_MsgReceiveMessage_from = md_MsgReceiveMessage.Fields().ByName("from") + fd_MsgReceiveMessage_message = md_MsgReceiveMessage.Fields().ByName("message") + fd_MsgReceiveMessage_attestation = md_MsgReceiveMessage.Fields().ByName("attestation") +} + +var _ protoreflect.Message = (*fastReflection_MsgReceiveMessage)(nil) + +type fastReflection_MsgReceiveMessage MsgReceiveMessage + +func (x *MsgReceiveMessage) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgReceiveMessage)(x) +} + +func (x *MsgReceiveMessage) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_MsgReceiveMessage_messageType fastReflection_MsgReceiveMessage_messageType +var _ protoreflect.MessageType = fastReflection_MsgReceiveMessage_messageType{} + +type fastReflection_MsgReceiveMessage_messageType struct{} + +func (x fastReflection_MsgReceiveMessage_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgReceiveMessage)(nil) +} +func (x fastReflection_MsgReceiveMessage_messageType) New() protoreflect.Message { + return new(fastReflection_MsgReceiveMessage) +} +func (x fastReflection_MsgReceiveMessage_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgReceiveMessage +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgReceiveMessage) Descriptor() protoreflect.MessageDescriptor { + return md_MsgReceiveMessage +} + +// 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_MsgReceiveMessage) Type() protoreflect.MessageType { + return _fastReflection_MsgReceiveMessage_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgReceiveMessage) New() protoreflect.Message { + return new(fastReflection_MsgReceiveMessage) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgReceiveMessage) Interface() protoreflect.ProtoMessage { + return (*MsgReceiveMessage)(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_MsgReceiveMessage) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.From != "" { + value := protoreflect.ValueOfString(x.From) + if !f(fd_MsgReceiveMessage_from, value) { + return + } + } + if len(x.Message) != 0 { + value := protoreflect.ValueOfBytes(x.Message) + if !f(fd_MsgReceiveMessage_message, value) { + return + } + } + if len(x.Attestation) != 0 { + value := protoreflect.ValueOfBytes(x.Attestation) + if !f(fd_MsgReceiveMessage_attestation, 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_MsgReceiveMessage) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.MsgReceiveMessage.from": + return x.From != "" + case "circle.cctp.v1.MsgReceiveMessage.message": + return len(x.Message) != 0 + case "circle.cctp.v1.MsgReceiveMessage.attestation": + return len(x.Attestation) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgReceiveMessage")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgReceiveMessage 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_MsgReceiveMessage) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.MsgReceiveMessage.from": + x.From = "" + case "circle.cctp.v1.MsgReceiveMessage.message": + x.Message = nil + case "circle.cctp.v1.MsgReceiveMessage.attestation": + x.Attestation = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgReceiveMessage")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgReceiveMessage 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_MsgReceiveMessage) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.MsgReceiveMessage.from": + value := x.From + return protoreflect.ValueOfString(value) + case "circle.cctp.v1.MsgReceiveMessage.message": + value := x.Message + return protoreflect.ValueOfBytes(value) + case "circle.cctp.v1.MsgReceiveMessage.attestation": + value := x.Attestation + return protoreflect.ValueOfBytes(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgReceiveMessage")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgReceiveMessage 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_MsgReceiveMessage) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.MsgReceiveMessage.from": + x.From = value.Interface().(string) + case "circle.cctp.v1.MsgReceiveMessage.message": + x.Message = value.Bytes() + case "circle.cctp.v1.MsgReceiveMessage.attestation": + x.Attestation = value.Bytes() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgReceiveMessage")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgReceiveMessage 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_MsgReceiveMessage) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.MsgReceiveMessage.from": + panic(fmt.Errorf("field from of message circle.cctp.v1.MsgReceiveMessage is not mutable")) + case "circle.cctp.v1.MsgReceiveMessage.message": + panic(fmt.Errorf("field message of message circle.cctp.v1.MsgReceiveMessage is not mutable")) + case "circle.cctp.v1.MsgReceiveMessage.attestation": + panic(fmt.Errorf("field attestation of message circle.cctp.v1.MsgReceiveMessage is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgReceiveMessage")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgReceiveMessage 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_MsgReceiveMessage) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.MsgReceiveMessage.from": + return protoreflect.ValueOfString("") + case "circle.cctp.v1.MsgReceiveMessage.message": + return protoreflect.ValueOfBytes(nil) + case "circle.cctp.v1.MsgReceiveMessage.attestation": + return protoreflect.ValueOfBytes(nil) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgReceiveMessage")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgReceiveMessage 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_MsgReceiveMessage) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.MsgReceiveMessage", 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_MsgReceiveMessage) 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_MsgReceiveMessage) 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_MsgReceiveMessage) 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_MsgReceiveMessage) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgReceiveMessage) + 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.From) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Message) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Attestation) + 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().(*MsgReceiveMessage) + 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.Attestation) > 0 { + i -= len(x.Attestation) + copy(dAtA[i:], x.Attestation) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Attestation))) + i-- + dAtA[i] = 0x1a + } + if len(x.Message) > 0 { + i -= len(x.Message) + copy(dAtA[i:], x.Message) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Message))) + i-- + dAtA[i] = 0x12 + } + if len(x.From) > 0 { + i -= len(x.From) + copy(dAtA[i:], x.From) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.From))) + 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().(*MsgReceiveMessage) + 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: MsgReceiveMessage: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgReceiveMessage: 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 From", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.From = 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 Message", 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.Message = append(x.Message[:0], dAtA[iNdEx:postIndex]...) + if x.Message == nil { + x.Message = []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 Attestation", 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.Attestation = append(x.Attestation[:0], dAtA[iNdEx:postIndex]...) + if x.Attestation == nil { + x.Attestation = []byte{} + } + 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_MsgReceiveMessageResponse protoreflect.MessageDescriptor + fd_MsgReceiveMessageResponse_success protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_tx_proto_init() + md_MsgReceiveMessageResponse = File_circle_cctp_v1_tx_proto.Messages().ByName("MsgReceiveMessageResponse") + fd_MsgReceiveMessageResponse_success = md_MsgReceiveMessageResponse.Fields().ByName("success") +} + +var _ protoreflect.Message = (*fastReflection_MsgReceiveMessageResponse)(nil) + +type fastReflection_MsgReceiveMessageResponse MsgReceiveMessageResponse + +func (x *MsgReceiveMessageResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgReceiveMessageResponse)(x) +} + +func (x *MsgReceiveMessageResponse) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_MsgReceiveMessageResponse_messageType fastReflection_MsgReceiveMessageResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgReceiveMessageResponse_messageType{} + +type fastReflection_MsgReceiveMessageResponse_messageType struct{} + +func (x fastReflection_MsgReceiveMessageResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgReceiveMessageResponse)(nil) +} +func (x fastReflection_MsgReceiveMessageResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgReceiveMessageResponse) +} +func (x fastReflection_MsgReceiveMessageResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgReceiveMessageResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgReceiveMessageResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgReceiveMessageResponse +} + +// 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_MsgReceiveMessageResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgReceiveMessageResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgReceiveMessageResponse) New() protoreflect.Message { + return new(fastReflection_MsgReceiveMessageResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgReceiveMessageResponse) Interface() protoreflect.ProtoMessage { + return (*MsgReceiveMessageResponse)(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_MsgReceiveMessageResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Success != false { + value := protoreflect.ValueOfBool(x.Success) + if !f(fd_MsgReceiveMessageResponse_success, 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_MsgReceiveMessageResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.MsgReceiveMessageResponse.success": + return x.Success != false + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgReceiveMessageResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgReceiveMessageResponse 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_MsgReceiveMessageResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.MsgReceiveMessageResponse.success": + x.Success = false + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgReceiveMessageResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgReceiveMessageResponse 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_MsgReceiveMessageResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.MsgReceiveMessageResponse.success": + value := x.Success + return protoreflect.ValueOfBool(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgReceiveMessageResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgReceiveMessageResponse 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_MsgReceiveMessageResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.MsgReceiveMessageResponse.success": + x.Success = value.Bool() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgReceiveMessageResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgReceiveMessageResponse 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_MsgReceiveMessageResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.MsgReceiveMessageResponse.success": + panic(fmt.Errorf("field success of message circle.cctp.v1.MsgReceiveMessageResponse is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgReceiveMessageResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgReceiveMessageResponse 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_MsgReceiveMessageResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.MsgReceiveMessageResponse.success": + return protoreflect.ValueOfBool(false) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgReceiveMessageResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgReceiveMessageResponse 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_MsgReceiveMessageResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.MsgReceiveMessageResponse", 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_MsgReceiveMessageResponse) 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_MsgReceiveMessageResponse) 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_MsgReceiveMessageResponse) 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_MsgReceiveMessageResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgReceiveMessageResponse) + 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.Success { + 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().(*MsgReceiveMessageResponse) + 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.Success { + i-- + if x.Success { + 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().(*MsgReceiveMessageResponse) + 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: MsgReceiveMessageResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgReceiveMessageResponse: 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 Success", 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.Success = 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_MsgSendMessage protoreflect.MessageDescriptor + fd_MsgSendMessage_from protoreflect.FieldDescriptor + fd_MsgSendMessage_destination_domain protoreflect.FieldDescriptor + fd_MsgSendMessage_recipient protoreflect.FieldDescriptor + fd_MsgSendMessage_message_body protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_tx_proto_init() + md_MsgSendMessage = File_circle_cctp_v1_tx_proto.Messages().ByName("MsgSendMessage") + fd_MsgSendMessage_from = md_MsgSendMessage.Fields().ByName("from") + fd_MsgSendMessage_destination_domain = md_MsgSendMessage.Fields().ByName("destination_domain") + fd_MsgSendMessage_recipient = md_MsgSendMessage.Fields().ByName("recipient") + fd_MsgSendMessage_message_body = md_MsgSendMessage.Fields().ByName("message_body") +} + +var _ protoreflect.Message = (*fastReflection_MsgSendMessage)(nil) + +type fastReflection_MsgSendMessage MsgSendMessage + +func (x *MsgSendMessage) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgSendMessage)(x) +} + +func (x *MsgSendMessage) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_MsgSendMessage_messageType fastReflection_MsgSendMessage_messageType +var _ protoreflect.MessageType = fastReflection_MsgSendMessage_messageType{} + +type fastReflection_MsgSendMessage_messageType struct{} + +func (x fastReflection_MsgSendMessage_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgSendMessage)(nil) +} +func (x fastReflection_MsgSendMessage_messageType) New() protoreflect.Message { + return new(fastReflection_MsgSendMessage) +} +func (x fastReflection_MsgSendMessage_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSendMessage +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgSendMessage) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSendMessage +} + +// 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_MsgSendMessage) Type() protoreflect.MessageType { + return _fastReflection_MsgSendMessage_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgSendMessage) New() protoreflect.Message { + return new(fastReflection_MsgSendMessage) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgSendMessage) Interface() protoreflect.ProtoMessage { + return (*MsgSendMessage)(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_MsgSendMessage) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.From != "" { + value := protoreflect.ValueOfString(x.From) + if !f(fd_MsgSendMessage_from, value) { + return + } + } + if x.DestinationDomain != uint32(0) { + value := protoreflect.ValueOfUint32(x.DestinationDomain) + if !f(fd_MsgSendMessage_destination_domain, value) { + return + } + } + if len(x.Recipient) != 0 { + value := protoreflect.ValueOfBytes(x.Recipient) + if !f(fd_MsgSendMessage_recipient, value) { + return + } + } + if len(x.MessageBody) != 0 { + value := protoreflect.ValueOfBytes(x.MessageBody) + if !f(fd_MsgSendMessage_message_body, 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_MsgSendMessage) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.MsgSendMessage.from": + return x.From != "" + case "circle.cctp.v1.MsgSendMessage.destination_domain": + return x.DestinationDomain != uint32(0) + case "circle.cctp.v1.MsgSendMessage.recipient": + return len(x.Recipient) != 0 + case "circle.cctp.v1.MsgSendMessage.message_body": + return len(x.MessageBody) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgSendMessage")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgSendMessage 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_MsgSendMessage) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.MsgSendMessage.from": + x.From = "" + case "circle.cctp.v1.MsgSendMessage.destination_domain": + x.DestinationDomain = uint32(0) + case "circle.cctp.v1.MsgSendMessage.recipient": + x.Recipient = nil + case "circle.cctp.v1.MsgSendMessage.message_body": + x.MessageBody = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgSendMessage")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgSendMessage 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_MsgSendMessage) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.MsgSendMessage.from": + value := x.From + return protoreflect.ValueOfString(value) + case "circle.cctp.v1.MsgSendMessage.destination_domain": + value := x.DestinationDomain + return protoreflect.ValueOfUint32(value) + case "circle.cctp.v1.MsgSendMessage.recipient": + value := x.Recipient + return protoreflect.ValueOfBytes(value) + case "circle.cctp.v1.MsgSendMessage.message_body": + value := x.MessageBody + return protoreflect.ValueOfBytes(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgSendMessage")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgSendMessage 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_MsgSendMessage) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.MsgSendMessage.from": + x.From = value.Interface().(string) + case "circle.cctp.v1.MsgSendMessage.destination_domain": + x.DestinationDomain = uint32(value.Uint()) + case "circle.cctp.v1.MsgSendMessage.recipient": + x.Recipient = value.Bytes() + case "circle.cctp.v1.MsgSendMessage.message_body": + x.MessageBody = value.Bytes() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgSendMessage")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgSendMessage 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_MsgSendMessage) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.MsgSendMessage.from": + panic(fmt.Errorf("field from of message circle.cctp.v1.MsgSendMessage is not mutable")) + case "circle.cctp.v1.MsgSendMessage.destination_domain": + panic(fmt.Errorf("field destination_domain of message circle.cctp.v1.MsgSendMessage is not mutable")) + case "circle.cctp.v1.MsgSendMessage.recipient": + panic(fmt.Errorf("field recipient of message circle.cctp.v1.MsgSendMessage is not mutable")) + case "circle.cctp.v1.MsgSendMessage.message_body": + panic(fmt.Errorf("field message_body of message circle.cctp.v1.MsgSendMessage is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgSendMessage")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgSendMessage 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_MsgSendMessage) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.MsgSendMessage.from": + return protoreflect.ValueOfString("") + case "circle.cctp.v1.MsgSendMessage.destination_domain": + return protoreflect.ValueOfUint32(uint32(0)) + case "circle.cctp.v1.MsgSendMessage.recipient": + return protoreflect.ValueOfBytes(nil) + case "circle.cctp.v1.MsgSendMessage.message_body": + return protoreflect.ValueOfBytes(nil) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgSendMessage")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgSendMessage 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_MsgSendMessage) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.MsgSendMessage", 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_MsgSendMessage) 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_MsgSendMessage) 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_MsgSendMessage) 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_MsgSendMessage) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgSendMessage) + 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.From) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.DestinationDomain != 0 { + n += 1 + runtime.Sov(uint64(x.DestinationDomain)) + } + l = len(x.Recipient) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.MessageBody) + 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().(*MsgSendMessage) + 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.MessageBody) > 0 { + i -= len(x.MessageBody) + copy(dAtA[i:], x.MessageBody) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.MessageBody))) + i-- + dAtA[i] = 0x22 + } + if len(x.Recipient) > 0 { + i -= len(x.Recipient) + copy(dAtA[i:], x.Recipient) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Recipient))) + i-- + dAtA[i] = 0x1a + } + if x.DestinationDomain != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.DestinationDomain)) + i-- + dAtA[i] = 0x10 + } + if len(x.From) > 0 { + i -= len(x.From) + copy(dAtA[i:], x.From) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.From))) + 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().(*MsgSendMessage) + 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: MsgSendMessage: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSendMessage: 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 From", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.From = 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 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 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Recipient", 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.Recipient = append(x.Recipient[:0], dAtA[iNdEx:postIndex]...) + if x.Recipient == nil { + x.Recipient = []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 MessageBody", 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.MessageBody = append(x.MessageBody[:0], dAtA[iNdEx:postIndex]...) + if x.MessageBody == nil { + x.MessageBody = []byte{} + } + 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_MsgSendMessageResponse protoreflect.MessageDescriptor + fd_MsgSendMessageResponse_nonce protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_tx_proto_init() + md_MsgSendMessageResponse = File_circle_cctp_v1_tx_proto.Messages().ByName("MsgSendMessageResponse") + fd_MsgSendMessageResponse_nonce = md_MsgSendMessageResponse.Fields().ByName("nonce") +} + +var _ protoreflect.Message = (*fastReflection_MsgSendMessageResponse)(nil) + +type fastReflection_MsgSendMessageResponse MsgSendMessageResponse + +func (x *MsgSendMessageResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgSendMessageResponse)(x) +} + +func (x *MsgSendMessageResponse) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_MsgSendMessageResponse_messageType fastReflection_MsgSendMessageResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgSendMessageResponse_messageType{} + +type fastReflection_MsgSendMessageResponse_messageType struct{} + +func (x fastReflection_MsgSendMessageResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgSendMessageResponse)(nil) +} +func (x fastReflection_MsgSendMessageResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgSendMessageResponse) +} +func (x fastReflection_MsgSendMessageResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSendMessageResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgSendMessageResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSendMessageResponse +} + +// 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_MsgSendMessageResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgSendMessageResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgSendMessageResponse) New() protoreflect.Message { + return new(fastReflection_MsgSendMessageResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgSendMessageResponse) Interface() protoreflect.ProtoMessage { + return (*MsgSendMessageResponse)(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_MsgSendMessageResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Nonce != uint64(0) { + value := protoreflect.ValueOfUint64(x.Nonce) + if !f(fd_MsgSendMessageResponse_nonce, 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_MsgSendMessageResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.MsgSendMessageResponse.nonce": + return x.Nonce != uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgSendMessageResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgSendMessageResponse 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_MsgSendMessageResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.MsgSendMessageResponse.nonce": + x.Nonce = uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgSendMessageResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgSendMessageResponse 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_MsgSendMessageResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.MsgSendMessageResponse.nonce": + value := x.Nonce + return protoreflect.ValueOfUint64(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgSendMessageResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgSendMessageResponse 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_MsgSendMessageResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.MsgSendMessageResponse.nonce": + x.Nonce = value.Uint() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgSendMessageResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgSendMessageResponse 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_MsgSendMessageResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.MsgSendMessageResponse.nonce": + panic(fmt.Errorf("field nonce of message circle.cctp.v1.MsgSendMessageResponse is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgSendMessageResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgSendMessageResponse 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_MsgSendMessageResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.MsgSendMessageResponse.nonce": + return protoreflect.ValueOfUint64(uint64(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgSendMessageResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgSendMessageResponse 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_MsgSendMessageResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.MsgSendMessageResponse", 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_MsgSendMessageResponse) 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_MsgSendMessageResponse) 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_MsgSendMessageResponse) 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_MsgSendMessageResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgSendMessageResponse) + 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.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().(*MsgSendMessageResponse) + 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.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().(*MsgSendMessageResponse) + 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: MsgSendMessageResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSendMessageResponse: 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 + } + } + 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_MsgSendMessageWithCaller protoreflect.MessageDescriptor + fd_MsgSendMessageWithCaller_from protoreflect.FieldDescriptor + fd_MsgSendMessageWithCaller_destination_domain protoreflect.FieldDescriptor + fd_MsgSendMessageWithCaller_recipient protoreflect.FieldDescriptor + fd_MsgSendMessageWithCaller_message_body protoreflect.FieldDescriptor + fd_MsgSendMessageWithCaller_destination_caller protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_tx_proto_init() + md_MsgSendMessageWithCaller = File_circle_cctp_v1_tx_proto.Messages().ByName("MsgSendMessageWithCaller") + fd_MsgSendMessageWithCaller_from = md_MsgSendMessageWithCaller.Fields().ByName("from") + fd_MsgSendMessageWithCaller_destination_domain = md_MsgSendMessageWithCaller.Fields().ByName("destination_domain") + fd_MsgSendMessageWithCaller_recipient = md_MsgSendMessageWithCaller.Fields().ByName("recipient") + fd_MsgSendMessageWithCaller_message_body = md_MsgSendMessageWithCaller.Fields().ByName("message_body") + fd_MsgSendMessageWithCaller_destination_caller = md_MsgSendMessageWithCaller.Fields().ByName("destination_caller") +} + +var _ protoreflect.Message = (*fastReflection_MsgSendMessageWithCaller)(nil) + +type fastReflection_MsgSendMessageWithCaller MsgSendMessageWithCaller + +func (x *MsgSendMessageWithCaller) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgSendMessageWithCaller)(x) +} + +func (x *MsgSendMessageWithCaller) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_MsgSendMessageWithCaller_messageType fastReflection_MsgSendMessageWithCaller_messageType +var _ protoreflect.MessageType = fastReflection_MsgSendMessageWithCaller_messageType{} + +type fastReflection_MsgSendMessageWithCaller_messageType struct{} + +func (x fastReflection_MsgSendMessageWithCaller_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgSendMessageWithCaller)(nil) +} +func (x fastReflection_MsgSendMessageWithCaller_messageType) New() protoreflect.Message { + return new(fastReflection_MsgSendMessageWithCaller) +} +func (x fastReflection_MsgSendMessageWithCaller_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSendMessageWithCaller +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgSendMessageWithCaller) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSendMessageWithCaller +} + +// 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_MsgSendMessageWithCaller) Type() protoreflect.MessageType { + return _fastReflection_MsgSendMessageWithCaller_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgSendMessageWithCaller) New() protoreflect.Message { + return new(fastReflection_MsgSendMessageWithCaller) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgSendMessageWithCaller) Interface() protoreflect.ProtoMessage { + return (*MsgSendMessageWithCaller)(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_MsgSendMessageWithCaller) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.From != "" { + value := protoreflect.ValueOfString(x.From) + if !f(fd_MsgSendMessageWithCaller_from, value) { + return + } + } + if x.DestinationDomain != uint32(0) { + value := protoreflect.ValueOfUint32(x.DestinationDomain) + if !f(fd_MsgSendMessageWithCaller_destination_domain, value) { + return + } + } + if len(x.Recipient) != 0 { + value := protoreflect.ValueOfBytes(x.Recipient) + if !f(fd_MsgSendMessageWithCaller_recipient, value) { + return + } + } + if len(x.MessageBody) != 0 { + value := protoreflect.ValueOfBytes(x.MessageBody) + if !f(fd_MsgSendMessageWithCaller_message_body, value) { + return + } + } + if len(x.DestinationCaller) != 0 { + value := protoreflect.ValueOfBytes(x.DestinationCaller) + if !f(fd_MsgSendMessageWithCaller_destination_caller, 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_MsgSendMessageWithCaller) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.MsgSendMessageWithCaller.from": + return x.From != "" + case "circle.cctp.v1.MsgSendMessageWithCaller.destination_domain": + return x.DestinationDomain != uint32(0) + case "circle.cctp.v1.MsgSendMessageWithCaller.recipient": + return len(x.Recipient) != 0 + case "circle.cctp.v1.MsgSendMessageWithCaller.message_body": + return len(x.MessageBody) != 0 + case "circle.cctp.v1.MsgSendMessageWithCaller.destination_caller": + return len(x.DestinationCaller) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgSendMessageWithCaller")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgSendMessageWithCaller 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_MsgSendMessageWithCaller) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.MsgSendMessageWithCaller.from": + x.From = "" + case "circle.cctp.v1.MsgSendMessageWithCaller.destination_domain": + x.DestinationDomain = uint32(0) + case "circle.cctp.v1.MsgSendMessageWithCaller.recipient": + x.Recipient = nil + case "circle.cctp.v1.MsgSendMessageWithCaller.message_body": + x.MessageBody = nil + case "circle.cctp.v1.MsgSendMessageWithCaller.destination_caller": + x.DestinationCaller = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgSendMessageWithCaller")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgSendMessageWithCaller 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_MsgSendMessageWithCaller) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.MsgSendMessageWithCaller.from": + value := x.From + return protoreflect.ValueOfString(value) + case "circle.cctp.v1.MsgSendMessageWithCaller.destination_domain": + value := x.DestinationDomain + return protoreflect.ValueOfUint32(value) + case "circle.cctp.v1.MsgSendMessageWithCaller.recipient": + value := x.Recipient + return protoreflect.ValueOfBytes(value) + case "circle.cctp.v1.MsgSendMessageWithCaller.message_body": + value := x.MessageBody + return protoreflect.ValueOfBytes(value) + case "circle.cctp.v1.MsgSendMessageWithCaller.destination_caller": + value := x.DestinationCaller + return protoreflect.ValueOfBytes(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgSendMessageWithCaller")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgSendMessageWithCaller 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_MsgSendMessageWithCaller) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.MsgSendMessageWithCaller.from": + x.From = value.Interface().(string) + case "circle.cctp.v1.MsgSendMessageWithCaller.destination_domain": + x.DestinationDomain = uint32(value.Uint()) + case "circle.cctp.v1.MsgSendMessageWithCaller.recipient": + x.Recipient = value.Bytes() + case "circle.cctp.v1.MsgSendMessageWithCaller.message_body": + x.MessageBody = value.Bytes() + case "circle.cctp.v1.MsgSendMessageWithCaller.destination_caller": + x.DestinationCaller = value.Bytes() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgSendMessageWithCaller")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgSendMessageWithCaller 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_MsgSendMessageWithCaller) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.MsgSendMessageWithCaller.from": + panic(fmt.Errorf("field from of message circle.cctp.v1.MsgSendMessageWithCaller is not mutable")) + case "circle.cctp.v1.MsgSendMessageWithCaller.destination_domain": + panic(fmt.Errorf("field destination_domain of message circle.cctp.v1.MsgSendMessageWithCaller is not mutable")) + case "circle.cctp.v1.MsgSendMessageWithCaller.recipient": + panic(fmt.Errorf("field recipient of message circle.cctp.v1.MsgSendMessageWithCaller is not mutable")) + case "circle.cctp.v1.MsgSendMessageWithCaller.message_body": + panic(fmt.Errorf("field message_body of message circle.cctp.v1.MsgSendMessageWithCaller is not mutable")) + case "circle.cctp.v1.MsgSendMessageWithCaller.destination_caller": + panic(fmt.Errorf("field destination_caller of message circle.cctp.v1.MsgSendMessageWithCaller is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgSendMessageWithCaller")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgSendMessageWithCaller 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_MsgSendMessageWithCaller) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.MsgSendMessageWithCaller.from": + return protoreflect.ValueOfString("") + case "circle.cctp.v1.MsgSendMessageWithCaller.destination_domain": + return protoreflect.ValueOfUint32(uint32(0)) + case "circle.cctp.v1.MsgSendMessageWithCaller.recipient": + return protoreflect.ValueOfBytes(nil) + case "circle.cctp.v1.MsgSendMessageWithCaller.message_body": + return protoreflect.ValueOfBytes(nil) + case "circle.cctp.v1.MsgSendMessageWithCaller.destination_caller": + return protoreflect.ValueOfBytes(nil) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgSendMessageWithCaller")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgSendMessageWithCaller 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_MsgSendMessageWithCaller) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.MsgSendMessageWithCaller", 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_MsgSendMessageWithCaller) 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_MsgSendMessageWithCaller) 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_MsgSendMessageWithCaller) 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_MsgSendMessageWithCaller) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgSendMessageWithCaller) + 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.From) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.DestinationDomain != 0 { + n += 1 + runtime.Sov(uint64(x.DestinationDomain)) + } + l = len(x.Recipient) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.MessageBody) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.DestinationCaller) + 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().(*MsgSendMessageWithCaller) + 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.DestinationCaller) > 0 { + i -= len(x.DestinationCaller) + copy(dAtA[i:], x.DestinationCaller) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.DestinationCaller))) + i-- + dAtA[i] = 0x2a + } + if len(x.MessageBody) > 0 { + i -= len(x.MessageBody) + copy(dAtA[i:], x.MessageBody) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.MessageBody))) + i-- + dAtA[i] = 0x22 + } + if len(x.Recipient) > 0 { + i -= len(x.Recipient) + copy(dAtA[i:], x.Recipient) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Recipient))) + i-- + dAtA[i] = 0x1a + } + if x.DestinationDomain != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.DestinationDomain)) + i-- + dAtA[i] = 0x10 + } + if len(x.From) > 0 { + i -= len(x.From) + copy(dAtA[i:], x.From) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.From))) + 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().(*MsgSendMessageWithCaller) + 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: MsgSendMessageWithCaller: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSendMessageWithCaller: 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 From", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.From = 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 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 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Recipient", 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.Recipient = append(x.Recipient[:0], dAtA[iNdEx:postIndex]...) + if x.Recipient == nil { + x.Recipient = []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 MessageBody", 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.MessageBody = append(x.MessageBody[:0], dAtA[iNdEx:postIndex]...) + if x.MessageBody == nil { + x.MessageBody = []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 DestinationCaller", 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.DestinationCaller = append(x.DestinationCaller[:0], dAtA[iNdEx:postIndex]...) + if x.DestinationCaller == nil { + x.DestinationCaller = []byte{} + } + 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_MsgSendMessageWithCallerResponse protoreflect.MessageDescriptor + fd_MsgSendMessageWithCallerResponse_nonce protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_tx_proto_init() + md_MsgSendMessageWithCallerResponse = File_circle_cctp_v1_tx_proto.Messages().ByName("MsgSendMessageWithCallerResponse") + fd_MsgSendMessageWithCallerResponse_nonce = md_MsgSendMessageWithCallerResponse.Fields().ByName("nonce") +} + +var _ protoreflect.Message = (*fastReflection_MsgSendMessageWithCallerResponse)(nil) + +type fastReflection_MsgSendMessageWithCallerResponse MsgSendMessageWithCallerResponse + +func (x *MsgSendMessageWithCallerResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgSendMessageWithCallerResponse)(x) +} + +func (x *MsgSendMessageWithCallerResponse) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_MsgSendMessageWithCallerResponse_messageType fastReflection_MsgSendMessageWithCallerResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgSendMessageWithCallerResponse_messageType{} + +type fastReflection_MsgSendMessageWithCallerResponse_messageType struct{} + +func (x fastReflection_MsgSendMessageWithCallerResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgSendMessageWithCallerResponse)(nil) +} +func (x fastReflection_MsgSendMessageWithCallerResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgSendMessageWithCallerResponse) +} +func (x fastReflection_MsgSendMessageWithCallerResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSendMessageWithCallerResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgSendMessageWithCallerResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSendMessageWithCallerResponse +} + +// 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_MsgSendMessageWithCallerResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgSendMessageWithCallerResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgSendMessageWithCallerResponse) New() protoreflect.Message { + return new(fastReflection_MsgSendMessageWithCallerResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgSendMessageWithCallerResponse) Interface() protoreflect.ProtoMessage { + return (*MsgSendMessageWithCallerResponse)(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_MsgSendMessageWithCallerResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Nonce != uint64(0) { + value := protoreflect.ValueOfUint64(x.Nonce) + if !f(fd_MsgSendMessageWithCallerResponse_nonce, 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_MsgSendMessageWithCallerResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.MsgSendMessageWithCallerResponse.nonce": + return x.Nonce != uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgSendMessageWithCallerResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgSendMessageWithCallerResponse 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_MsgSendMessageWithCallerResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.MsgSendMessageWithCallerResponse.nonce": + x.Nonce = uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgSendMessageWithCallerResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgSendMessageWithCallerResponse 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_MsgSendMessageWithCallerResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.MsgSendMessageWithCallerResponse.nonce": + value := x.Nonce + return protoreflect.ValueOfUint64(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgSendMessageWithCallerResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgSendMessageWithCallerResponse 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_MsgSendMessageWithCallerResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.MsgSendMessageWithCallerResponse.nonce": + x.Nonce = value.Uint() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgSendMessageWithCallerResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgSendMessageWithCallerResponse 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_MsgSendMessageWithCallerResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.MsgSendMessageWithCallerResponse.nonce": + panic(fmt.Errorf("field nonce of message circle.cctp.v1.MsgSendMessageWithCallerResponse is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgSendMessageWithCallerResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgSendMessageWithCallerResponse 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_MsgSendMessageWithCallerResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.MsgSendMessageWithCallerResponse.nonce": + return protoreflect.ValueOfUint64(uint64(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgSendMessageWithCallerResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgSendMessageWithCallerResponse 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_MsgSendMessageWithCallerResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.MsgSendMessageWithCallerResponse", 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_MsgSendMessageWithCallerResponse) 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_MsgSendMessageWithCallerResponse) 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_MsgSendMessageWithCallerResponse) 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_MsgSendMessageWithCallerResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgSendMessageWithCallerResponse) + 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.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().(*MsgSendMessageWithCallerResponse) + 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.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().(*MsgSendMessageWithCallerResponse) + 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: MsgSendMessageWithCallerResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSendMessageWithCallerResponse: 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 + } + } + 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_MsgReplaceMessage protoreflect.MessageDescriptor + fd_MsgReplaceMessage_from protoreflect.FieldDescriptor + fd_MsgReplaceMessage_original_message protoreflect.FieldDescriptor + fd_MsgReplaceMessage_original_attestation protoreflect.FieldDescriptor + fd_MsgReplaceMessage_new_message_body protoreflect.FieldDescriptor + fd_MsgReplaceMessage_new_destination_caller protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_tx_proto_init() + md_MsgReplaceMessage = File_circle_cctp_v1_tx_proto.Messages().ByName("MsgReplaceMessage") + fd_MsgReplaceMessage_from = md_MsgReplaceMessage.Fields().ByName("from") + fd_MsgReplaceMessage_original_message = md_MsgReplaceMessage.Fields().ByName("original_message") + fd_MsgReplaceMessage_original_attestation = md_MsgReplaceMessage.Fields().ByName("original_attestation") + fd_MsgReplaceMessage_new_message_body = md_MsgReplaceMessage.Fields().ByName("new_message_body") + fd_MsgReplaceMessage_new_destination_caller = md_MsgReplaceMessage.Fields().ByName("new_destination_caller") +} + +var _ protoreflect.Message = (*fastReflection_MsgReplaceMessage)(nil) + +type fastReflection_MsgReplaceMessage MsgReplaceMessage + +func (x *MsgReplaceMessage) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgReplaceMessage)(x) +} + +func (x *MsgReplaceMessage) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_MsgReplaceMessage_messageType fastReflection_MsgReplaceMessage_messageType +var _ protoreflect.MessageType = fastReflection_MsgReplaceMessage_messageType{} + +type fastReflection_MsgReplaceMessage_messageType struct{} + +func (x fastReflection_MsgReplaceMessage_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgReplaceMessage)(nil) +} +func (x fastReflection_MsgReplaceMessage_messageType) New() protoreflect.Message { + return new(fastReflection_MsgReplaceMessage) +} +func (x fastReflection_MsgReplaceMessage_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgReplaceMessage +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgReplaceMessage) Descriptor() protoreflect.MessageDescriptor { + return md_MsgReplaceMessage +} + +// 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_MsgReplaceMessage) Type() protoreflect.MessageType { + return _fastReflection_MsgReplaceMessage_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgReplaceMessage) New() protoreflect.Message { + return new(fastReflection_MsgReplaceMessage) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgReplaceMessage) Interface() protoreflect.ProtoMessage { + return (*MsgReplaceMessage)(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_MsgReplaceMessage) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.From != "" { + value := protoreflect.ValueOfString(x.From) + if !f(fd_MsgReplaceMessage_from, value) { + return + } + } + if len(x.OriginalMessage) != 0 { + value := protoreflect.ValueOfBytes(x.OriginalMessage) + if !f(fd_MsgReplaceMessage_original_message, value) { + return + } + } + if len(x.OriginalAttestation) != 0 { + value := protoreflect.ValueOfBytes(x.OriginalAttestation) + if !f(fd_MsgReplaceMessage_original_attestation, value) { + return + } + } + if len(x.NewMessageBody) != 0 { + value := protoreflect.ValueOfBytes(x.NewMessageBody) + if !f(fd_MsgReplaceMessage_new_message_body, value) { + return + } + } + if len(x.NewDestinationCaller) != 0 { + value := protoreflect.ValueOfBytes(x.NewDestinationCaller) + if !f(fd_MsgReplaceMessage_new_destination_caller, 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_MsgReplaceMessage) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.MsgReplaceMessage.from": + return x.From != "" + case "circle.cctp.v1.MsgReplaceMessage.original_message": + return len(x.OriginalMessage) != 0 + case "circle.cctp.v1.MsgReplaceMessage.original_attestation": + return len(x.OriginalAttestation) != 0 + case "circle.cctp.v1.MsgReplaceMessage.new_message_body": + return len(x.NewMessageBody) != 0 + case "circle.cctp.v1.MsgReplaceMessage.new_destination_caller": + return len(x.NewDestinationCaller) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgReplaceMessage")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgReplaceMessage 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_MsgReplaceMessage) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.MsgReplaceMessage.from": + x.From = "" + case "circle.cctp.v1.MsgReplaceMessage.original_message": + x.OriginalMessage = nil + case "circle.cctp.v1.MsgReplaceMessage.original_attestation": + x.OriginalAttestation = nil + case "circle.cctp.v1.MsgReplaceMessage.new_message_body": + x.NewMessageBody = nil + case "circle.cctp.v1.MsgReplaceMessage.new_destination_caller": + x.NewDestinationCaller = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgReplaceMessage")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgReplaceMessage 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_MsgReplaceMessage) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.MsgReplaceMessage.from": + value := x.From + return protoreflect.ValueOfString(value) + case "circle.cctp.v1.MsgReplaceMessage.original_message": + value := x.OriginalMessage + return protoreflect.ValueOfBytes(value) + case "circle.cctp.v1.MsgReplaceMessage.original_attestation": + value := x.OriginalAttestation + return protoreflect.ValueOfBytes(value) + case "circle.cctp.v1.MsgReplaceMessage.new_message_body": + value := x.NewMessageBody + return protoreflect.ValueOfBytes(value) + case "circle.cctp.v1.MsgReplaceMessage.new_destination_caller": + value := x.NewDestinationCaller + return protoreflect.ValueOfBytes(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgReplaceMessage")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgReplaceMessage 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_MsgReplaceMessage) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.MsgReplaceMessage.from": + x.From = value.Interface().(string) + case "circle.cctp.v1.MsgReplaceMessage.original_message": + x.OriginalMessage = value.Bytes() + case "circle.cctp.v1.MsgReplaceMessage.original_attestation": + x.OriginalAttestation = value.Bytes() + case "circle.cctp.v1.MsgReplaceMessage.new_message_body": + x.NewMessageBody = value.Bytes() + case "circle.cctp.v1.MsgReplaceMessage.new_destination_caller": + x.NewDestinationCaller = value.Bytes() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgReplaceMessage")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgReplaceMessage 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_MsgReplaceMessage) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.MsgReplaceMessage.from": + panic(fmt.Errorf("field from of message circle.cctp.v1.MsgReplaceMessage is not mutable")) + case "circle.cctp.v1.MsgReplaceMessage.original_message": + panic(fmt.Errorf("field original_message of message circle.cctp.v1.MsgReplaceMessage is not mutable")) + case "circle.cctp.v1.MsgReplaceMessage.original_attestation": + panic(fmt.Errorf("field original_attestation of message circle.cctp.v1.MsgReplaceMessage is not mutable")) + case "circle.cctp.v1.MsgReplaceMessage.new_message_body": + panic(fmt.Errorf("field new_message_body of message circle.cctp.v1.MsgReplaceMessage is not mutable")) + case "circle.cctp.v1.MsgReplaceMessage.new_destination_caller": + panic(fmt.Errorf("field new_destination_caller of message circle.cctp.v1.MsgReplaceMessage is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgReplaceMessage")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgReplaceMessage 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_MsgReplaceMessage) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.MsgReplaceMessage.from": + return protoreflect.ValueOfString("") + case "circle.cctp.v1.MsgReplaceMessage.original_message": + return protoreflect.ValueOfBytes(nil) + case "circle.cctp.v1.MsgReplaceMessage.original_attestation": + return protoreflect.ValueOfBytes(nil) + case "circle.cctp.v1.MsgReplaceMessage.new_message_body": + return protoreflect.ValueOfBytes(nil) + case "circle.cctp.v1.MsgReplaceMessage.new_destination_caller": + return protoreflect.ValueOfBytes(nil) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgReplaceMessage")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgReplaceMessage 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_MsgReplaceMessage) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.MsgReplaceMessage", 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_MsgReplaceMessage) 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_MsgReplaceMessage) 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_MsgReplaceMessage) 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_MsgReplaceMessage) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgReplaceMessage) + 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.From) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.OriginalMessage) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.OriginalAttestation) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.NewMessageBody) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.NewDestinationCaller) + 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().(*MsgReplaceMessage) + 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.NewDestinationCaller) > 0 { + i -= len(x.NewDestinationCaller) + copy(dAtA[i:], x.NewDestinationCaller) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.NewDestinationCaller))) + i-- + dAtA[i] = 0x2a + } + if len(x.NewMessageBody) > 0 { + i -= len(x.NewMessageBody) + copy(dAtA[i:], x.NewMessageBody) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.NewMessageBody))) + i-- + dAtA[i] = 0x22 + } + if len(x.OriginalAttestation) > 0 { + i -= len(x.OriginalAttestation) + copy(dAtA[i:], x.OriginalAttestation) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.OriginalAttestation))) + i-- + dAtA[i] = 0x1a + } + if len(x.OriginalMessage) > 0 { + i -= len(x.OriginalMessage) + copy(dAtA[i:], x.OriginalMessage) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.OriginalMessage))) + i-- + dAtA[i] = 0x12 + } + if len(x.From) > 0 { + i -= len(x.From) + copy(dAtA[i:], x.From) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.From))) + 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().(*MsgReplaceMessage) + 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: MsgReplaceMessage: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgReplaceMessage: 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 From", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.From = 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 OriginalMessage", 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.OriginalMessage = append(x.OriginalMessage[:0], dAtA[iNdEx:postIndex]...) + if x.OriginalMessage == nil { + x.OriginalMessage = []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 OriginalAttestation", 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.OriginalAttestation = append(x.OriginalAttestation[:0], dAtA[iNdEx:postIndex]...) + if x.OriginalAttestation == nil { + x.OriginalAttestation = []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 NewMessageBody", 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.NewMessageBody = append(x.NewMessageBody[:0], dAtA[iNdEx:postIndex]...) + if x.NewMessageBody == nil { + x.NewMessageBody = []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 NewDestinationCaller", 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.NewDestinationCaller = append(x.NewDestinationCaller[:0], dAtA[iNdEx:postIndex]...) + if x.NewDestinationCaller == nil { + x.NewDestinationCaller = []byte{} + } + 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_MsgReplaceMessageResponse protoreflect.MessageDescriptor +) + +func init() { + file_circle_cctp_v1_tx_proto_init() + md_MsgReplaceMessageResponse = File_circle_cctp_v1_tx_proto.Messages().ByName("MsgReplaceMessageResponse") +} + +var _ protoreflect.Message = (*fastReflection_MsgReplaceMessageResponse)(nil) + +type fastReflection_MsgReplaceMessageResponse MsgReplaceMessageResponse + +func (x *MsgReplaceMessageResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgReplaceMessageResponse)(x) +} + +func (x *MsgReplaceMessageResponse) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_MsgReplaceMessageResponse_messageType fastReflection_MsgReplaceMessageResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgReplaceMessageResponse_messageType{} + +type fastReflection_MsgReplaceMessageResponse_messageType struct{} + +func (x fastReflection_MsgReplaceMessageResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgReplaceMessageResponse)(nil) +} +func (x fastReflection_MsgReplaceMessageResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgReplaceMessageResponse) +} +func (x fastReflection_MsgReplaceMessageResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgReplaceMessageResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgReplaceMessageResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgReplaceMessageResponse +} + +// 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_MsgReplaceMessageResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgReplaceMessageResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgReplaceMessageResponse) New() protoreflect.Message { + return new(fastReflection_MsgReplaceMessageResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgReplaceMessageResponse) Interface() protoreflect.ProtoMessage { + return (*MsgReplaceMessageResponse)(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_MsgReplaceMessageResponse) 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_MsgReplaceMessageResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgReplaceMessageResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgReplaceMessageResponse 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_MsgReplaceMessageResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgReplaceMessageResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgReplaceMessageResponse 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_MsgReplaceMessageResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgReplaceMessageResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgReplaceMessageResponse 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_MsgReplaceMessageResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgReplaceMessageResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgReplaceMessageResponse 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_MsgReplaceMessageResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgReplaceMessageResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgReplaceMessageResponse 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_MsgReplaceMessageResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgReplaceMessageResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgReplaceMessageResponse 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_MsgReplaceMessageResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.MsgReplaceMessageResponse", 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_MsgReplaceMessageResponse) 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_MsgReplaceMessageResponse) 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_MsgReplaceMessageResponse) 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_MsgReplaceMessageResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgReplaceMessageResponse) + 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().(*MsgReplaceMessageResponse) + 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().(*MsgReplaceMessageResponse) + 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: MsgReplaceMessageResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgReplaceMessageResponse: 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_MsgUpdateSignatureThreshold protoreflect.MessageDescriptor + fd_MsgUpdateSignatureThreshold_from protoreflect.FieldDescriptor + fd_MsgUpdateSignatureThreshold_amount protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_tx_proto_init() + md_MsgUpdateSignatureThreshold = File_circle_cctp_v1_tx_proto.Messages().ByName("MsgUpdateSignatureThreshold") + fd_MsgUpdateSignatureThreshold_from = md_MsgUpdateSignatureThreshold.Fields().ByName("from") + fd_MsgUpdateSignatureThreshold_amount = md_MsgUpdateSignatureThreshold.Fields().ByName("amount") +} + +var _ protoreflect.Message = (*fastReflection_MsgUpdateSignatureThreshold)(nil) + +type fastReflection_MsgUpdateSignatureThreshold MsgUpdateSignatureThreshold + +func (x *MsgUpdateSignatureThreshold) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUpdateSignatureThreshold)(x) +} + +func (x *MsgUpdateSignatureThreshold) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_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_MsgUpdateSignatureThreshold_messageType fastReflection_MsgUpdateSignatureThreshold_messageType +var _ protoreflect.MessageType = fastReflection_MsgUpdateSignatureThreshold_messageType{} + +type fastReflection_MsgUpdateSignatureThreshold_messageType struct{} + +func (x fastReflection_MsgUpdateSignatureThreshold_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUpdateSignatureThreshold)(nil) +} +func (x fastReflection_MsgUpdateSignatureThreshold_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUpdateSignatureThreshold) +} +func (x fastReflection_MsgUpdateSignatureThreshold_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateSignatureThreshold +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgUpdateSignatureThreshold) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateSignatureThreshold +} + +// 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_MsgUpdateSignatureThreshold) Type() protoreflect.MessageType { + return _fastReflection_MsgUpdateSignatureThreshold_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgUpdateSignatureThreshold) New() protoreflect.Message { + return new(fastReflection_MsgUpdateSignatureThreshold) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgUpdateSignatureThreshold) Interface() protoreflect.ProtoMessage { + return (*MsgUpdateSignatureThreshold)(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_MsgUpdateSignatureThreshold) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.From != "" { + value := protoreflect.ValueOfString(x.From) + if !f(fd_MsgUpdateSignatureThreshold_from, value) { + return + } + } + if x.Amount != uint32(0) { + value := protoreflect.ValueOfUint32(x.Amount) + if !f(fd_MsgUpdateSignatureThreshold_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_MsgUpdateSignatureThreshold) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.MsgUpdateSignatureThreshold.from": + return x.From != "" + case "circle.cctp.v1.MsgUpdateSignatureThreshold.amount": + return x.Amount != uint32(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUpdateSignatureThreshold")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUpdateSignatureThreshold 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_MsgUpdateSignatureThreshold) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.MsgUpdateSignatureThreshold.from": + x.From = "" + case "circle.cctp.v1.MsgUpdateSignatureThreshold.amount": + x.Amount = uint32(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUpdateSignatureThreshold")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUpdateSignatureThreshold 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_MsgUpdateSignatureThreshold) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.MsgUpdateSignatureThreshold.from": + value := x.From + return protoreflect.ValueOfString(value) + case "circle.cctp.v1.MsgUpdateSignatureThreshold.amount": + value := x.Amount + return protoreflect.ValueOfUint32(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUpdateSignatureThreshold")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUpdateSignatureThreshold 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_MsgUpdateSignatureThreshold) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.MsgUpdateSignatureThreshold.from": + x.From = value.Interface().(string) + case "circle.cctp.v1.MsgUpdateSignatureThreshold.amount": + x.Amount = uint32(value.Uint()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUpdateSignatureThreshold")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUpdateSignatureThreshold 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_MsgUpdateSignatureThreshold) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.MsgUpdateSignatureThreshold.from": + panic(fmt.Errorf("field from of message circle.cctp.v1.MsgUpdateSignatureThreshold is not mutable")) + case "circle.cctp.v1.MsgUpdateSignatureThreshold.amount": + panic(fmt.Errorf("field amount of message circle.cctp.v1.MsgUpdateSignatureThreshold is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUpdateSignatureThreshold")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUpdateSignatureThreshold 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_MsgUpdateSignatureThreshold) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.MsgUpdateSignatureThreshold.from": + return protoreflect.ValueOfString("") + case "circle.cctp.v1.MsgUpdateSignatureThreshold.amount": + return protoreflect.ValueOfUint32(uint32(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUpdateSignatureThreshold")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUpdateSignatureThreshold 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_MsgUpdateSignatureThreshold) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.MsgUpdateSignatureThreshold", 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_MsgUpdateSignatureThreshold) 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_MsgUpdateSignatureThreshold) 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_MsgUpdateSignatureThreshold) 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_MsgUpdateSignatureThreshold) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgUpdateSignatureThreshold) + 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.From) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Amount != 0 { + n += 1 + runtime.Sov(uint64(x.Amount)) + } + 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().(*MsgUpdateSignatureThreshold) + 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.Amount != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Amount)) + i-- + dAtA[i] = 0x10 + } + if len(x.From) > 0 { + i -= len(x.From) + copy(dAtA[i:], x.From) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.From))) + 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().(*MsgUpdateSignatureThreshold) + 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: MsgUpdateSignatureThreshold: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateSignatureThreshold: 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 From", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.From = 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 Amount", wireType) + } + x.Amount = 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.Amount |= 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_MsgUpdateSignatureThresholdResponse protoreflect.MessageDescriptor +) + +func init() { + file_circle_cctp_v1_tx_proto_init() + md_MsgUpdateSignatureThresholdResponse = File_circle_cctp_v1_tx_proto.Messages().ByName("MsgUpdateSignatureThresholdResponse") +} + +var _ protoreflect.Message = (*fastReflection_MsgUpdateSignatureThresholdResponse)(nil) + +type fastReflection_MsgUpdateSignatureThresholdResponse MsgUpdateSignatureThresholdResponse + +func (x *MsgUpdateSignatureThresholdResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUpdateSignatureThresholdResponse)(x) +} + +func (x *MsgUpdateSignatureThresholdResponse) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_tx_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_MsgUpdateSignatureThresholdResponse_messageType fastReflection_MsgUpdateSignatureThresholdResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgUpdateSignatureThresholdResponse_messageType{} + +type fastReflection_MsgUpdateSignatureThresholdResponse_messageType struct{} + +func (x fastReflection_MsgUpdateSignatureThresholdResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUpdateSignatureThresholdResponse)(nil) +} +func (x fastReflection_MsgUpdateSignatureThresholdResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUpdateSignatureThresholdResponse) +} +func (x fastReflection_MsgUpdateSignatureThresholdResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateSignatureThresholdResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgUpdateSignatureThresholdResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateSignatureThresholdResponse +} + +// 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_MsgUpdateSignatureThresholdResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgUpdateSignatureThresholdResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgUpdateSignatureThresholdResponse) New() protoreflect.Message { + return new(fastReflection_MsgUpdateSignatureThresholdResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgUpdateSignatureThresholdResponse) Interface() protoreflect.ProtoMessage { + return (*MsgUpdateSignatureThresholdResponse)(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_MsgUpdateSignatureThresholdResponse) 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_MsgUpdateSignatureThresholdResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUpdateSignatureThresholdResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUpdateSignatureThresholdResponse 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_MsgUpdateSignatureThresholdResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUpdateSignatureThresholdResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUpdateSignatureThresholdResponse 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_MsgUpdateSignatureThresholdResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUpdateSignatureThresholdResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUpdateSignatureThresholdResponse 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_MsgUpdateSignatureThresholdResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUpdateSignatureThresholdResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUpdateSignatureThresholdResponse 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_MsgUpdateSignatureThresholdResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUpdateSignatureThresholdResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUpdateSignatureThresholdResponse 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_MsgUpdateSignatureThresholdResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUpdateSignatureThresholdResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUpdateSignatureThresholdResponse 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_MsgUpdateSignatureThresholdResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.MsgUpdateSignatureThresholdResponse", 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_MsgUpdateSignatureThresholdResponse) 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_MsgUpdateSignatureThresholdResponse) 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_MsgUpdateSignatureThresholdResponse) 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_MsgUpdateSignatureThresholdResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgUpdateSignatureThresholdResponse) + 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().(*MsgUpdateSignatureThresholdResponse) + 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().(*MsgUpdateSignatureThresholdResponse) + 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: MsgUpdateSignatureThresholdResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateSignatureThresholdResponse: 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_MsgLinkTokenPair protoreflect.MessageDescriptor + fd_MsgLinkTokenPair_from protoreflect.FieldDescriptor + fd_MsgLinkTokenPair_remote_domain protoreflect.FieldDescriptor + fd_MsgLinkTokenPair_remote_token protoreflect.FieldDescriptor + fd_MsgLinkTokenPair_local_token protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_tx_proto_init() + md_MsgLinkTokenPair = File_circle_cctp_v1_tx_proto.Messages().ByName("MsgLinkTokenPair") + fd_MsgLinkTokenPair_from = md_MsgLinkTokenPair.Fields().ByName("from") + fd_MsgLinkTokenPair_remote_domain = md_MsgLinkTokenPair.Fields().ByName("remote_domain") + fd_MsgLinkTokenPair_remote_token = md_MsgLinkTokenPair.Fields().ByName("remote_token") + fd_MsgLinkTokenPair_local_token = md_MsgLinkTokenPair.Fields().ByName("local_token") +} + +var _ protoreflect.Message = (*fastReflection_MsgLinkTokenPair)(nil) + +type fastReflection_MsgLinkTokenPair MsgLinkTokenPair + +func (x *MsgLinkTokenPair) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgLinkTokenPair)(x) +} + +func (x *MsgLinkTokenPair) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_tx_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_MsgLinkTokenPair_messageType fastReflection_MsgLinkTokenPair_messageType +var _ protoreflect.MessageType = fastReflection_MsgLinkTokenPair_messageType{} + +type fastReflection_MsgLinkTokenPair_messageType struct{} + +func (x fastReflection_MsgLinkTokenPair_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgLinkTokenPair)(nil) +} +func (x fastReflection_MsgLinkTokenPair_messageType) New() protoreflect.Message { + return new(fastReflection_MsgLinkTokenPair) +} +func (x fastReflection_MsgLinkTokenPair_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgLinkTokenPair +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgLinkTokenPair) Descriptor() protoreflect.MessageDescriptor { + return md_MsgLinkTokenPair +} + +// 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_MsgLinkTokenPair) Type() protoreflect.MessageType { + return _fastReflection_MsgLinkTokenPair_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgLinkTokenPair) New() protoreflect.Message { + return new(fastReflection_MsgLinkTokenPair) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgLinkTokenPair) Interface() protoreflect.ProtoMessage { + return (*MsgLinkTokenPair)(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_MsgLinkTokenPair) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.From != "" { + value := protoreflect.ValueOfString(x.From) + if !f(fd_MsgLinkTokenPair_from, value) { + return + } + } + if x.RemoteDomain != uint32(0) { + value := protoreflect.ValueOfUint32(x.RemoteDomain) + if !f(fd_MsgLinkTokenPair_remote_domain, value) { + return + } + } + if len(x.RemoteToken) != 0 { + value := protoreflect.ValueOfBytes(x.RemoteToken) + if !f(fd_MsgLinkTokenPair_remote_token, value) { + return + } + } + if x.LocalToken != "" { + value := protoreflect.ValueOfString(x.LocalToken) + if !f(fd_MsgLinkTokenPair_local_token, 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_MsgLinkTokenPair) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.MsgLinkTokenPair.from": + return x.From != "" + case "circle.cctp.v1.MsgLinkTokenPair.remote_domain": + return x.RemoteDomain != uint32(0) + case "circle.cctp.v1.MsgLinkTokenPair.remote_token": + return len(x.RemoteToken) != 0 + case "circle.cctp.v1.MsgLinkTokenPair.local_token": + return x.LocalToken != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgLinkTokenPair")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgLinkTokenPair 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_MsgLinkTokenPair) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.MsgLinkTokenPair.from": + x.From = "" + case "circle.cctp.v1.MsgLinkTokenPair.remote_domain": + x.RemoteDomain = uint32(0) + case "circle.cctp.v1.MsgLinkTokenPair.remote_token": + x.RemoteToken = nil + case "circle.cctp.v1.MsgLinkTokenPair.local_token": + x.LocalToken = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgLinkTokenPair")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgLinkTokenPair 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_MsgLinkTokenPair) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.MsgLinkTokenPair.from": + value := x.From + return protoreflect.ValueOfString(value) + case "circle.cctp.v1.MsgLinkTokenPair.remote_domain": + value := x.RemoteDomain + return protoreflect.ValueOfUint32(value) + case "circle.cctp.v1.MsgLinkTokenPair.remote_token": + value := x.RemoteToken + return protoreflect.ValueOfBytes(value) + case "circle.cctp.v1.MsgLinkTokenPair.local_token": + value := x.LocalToken + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgLinkTokenPair")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgLinkTokenPair 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_MsgLinkTokenPair) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.MsgLinkTokenPair.from": + x.From = value.Interface().(string) + case "circle.cctp.v1.MsgLinkTokenPair.remote_domain": + x.RemoteDomain = uint32(value.Uint()) + case "circle.cctp.v1.MsgLinkTokenPair.remote_token": + x.RemoteToken = value.Bytes() + case "circle.cctp.v1.MsgLinkTokenPair.local_token": + x.LocalToken = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgLinkTokenPair")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgLinkTokenPair 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_MsgLinkTokenPair) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.MsgLinkTokenPair.from": + panic(fmt.Errorf("field from of message circle.cctp.v1.MsgLinkTokenPair is not mutable")) + case "circle.cctp.v1.MsgLinkTokenPair.remote_domain": + panic(fmt.Errorf("field remote_domain of message circle.cctp.v1.MsgLinkTokenPair is not mutable")) + case "circle.cctp.v1.MsgLinkTokenPair.remote_token": + panic(fmt.Errorf("field remote_token of message circle.cctp.v1.MsgLinkTokenPair is not mutable")) + case "circle.cctp.v1.MsgLinkTokenPair.local_token": + panic(fmt.Errorf("field local_token of message circle.cctp.v1.MsgLinkTokenPair is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgLinkTokenPair")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgLinkTokenPair 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_MsgLinkTokenPair) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.MsgLinkTokenPair.from": + return protoreflect.ValueOfString("") + case "circle.cctp.v1.MsgLinkTokenPair.remote_domain": + return protoreflect.ValueOfUint32(uint32(0)) + case "circle.cctp.v1.MsgLinkTokenPair.remote_token": + return protoreflect.ValueOfBytes(nil) + case "circle.cctp.v1.MsgLinkTokenPair.local_token": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgLinkTokenPair")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgLinkTokenPair 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_MsgLinkTokenPair) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.MsgLinkTokenPair", 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_MsgLinkTokenPair) 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_MsgLinkTokenPair) 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_MsgLinkTokenPair) 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_MsgLinkTokenPair) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgLinkTokenPair) + 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.From) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.RemoteDomain != 0 { + n += 1 + runtime.Sov(uint64(x.RemoteDomain)) + } + l = len(x.RemoteToken) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.LocalToken) + 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().(*MsgLinkTokenPair) + 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.LocalToken) > 0 { + i -= len(x.LocalToken) + copy(dAtA[i:], x.LocalToken) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.LocalToken))) + i-- + dAtA[i] = 0x22 + } + if len(x.RemoteToken) > 0 { + i -= len(x.RemoteToken) + copy(dAtA[i:], x.RemoteToken) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.RemoteToken))) + i-- + dAtA[i] = 0x1a + } + if x.RemoteDomain != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.RemoteDomain)) + i-- + dAtA[i] = 0x10 + } + if len(x.From) > 0 { + i -= len(x.From) + copy(dAtA[i:], x.From) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.From))) + 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().(*MsgLinkTokenPair) + 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: MsgLinkTokenPair: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgLinkTokenPair: 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 From", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.From = 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 RemoteDomain", wireType) + } + x.RemoteDomain = 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.RemoteDomain |= 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 RemoteToken", 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.RemoteToken = append(x.RemoteToken[:0], dAtA[iNdEx:postIndex]...) + if x.RemoteToken == nil { + x.RemoteToken = []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 LocalToken", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.LocalToken = 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_MsgLinkTokenPairResponse protoreflect.MessageDescriptor +) + +func init() { + file_circle_cctp_v1_tx_proto_init() + md_MsgLinkTokenPairResponse = File_circle_cctp_v1_tx_proto.Messages().ByName("MsgLinkTokenPairResponse") +} + +var _ protoreflect.Message = (*fastReflection_MsgLinkTokenPairResponse)(nil) + +type fastReflection_MsgLinkTokenPairResponse MsgLinkTokenPairResponse + +func (x *MsgLinkTokenPairResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgLinkTokenPairResponse)(x) +} + +func (x *MsgLinkTokenPairResponse) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_tx_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_MsgLinkTokenPairResponse_messageType fastReflection_MsgLinkTokenPairResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgLinkTokenPairResponse_messageType{} + +type fastReflection_MsgLinkTokenPairResponse_messageType struct{} + +func (x fastReflection_MsgLinkTokenPairResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgLinkTokenPairResponse)(nil) +} +func (x fastReflection_MsgLinkTokenPairResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgLinkTokenPairResponse) +} +func (x fastReflection_MsgLinkTokenPairResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgLinkTokenPairResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgLinkTokenPairResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgLinkTokenPairResponse +} + +// 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_MsgLinkTokenPairResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgLinkTokenPairResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgLinkTokenPairResponse) New() protoreflect.Message { + return new(fastReflection_MsgLinkTokenPairResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgLinkTokenPairResponse) Interface() protoreflect.ProtoMessage { + return (*MsgLinkTokenPairResponse)(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_MsgLinkTokenPairResponse) 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_MsgLinkTokenPairResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgLinkTokenPairResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgLinkTokenPairResponse 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_MsgLinkTokenPairResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgLinkTokenPairResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgLinkTokenPairResponse 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_MsgLinkTokenPairResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgLinkTokenPairResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgLinkTokenPairResponse 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_MsgLinkTokenPairResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgLinkTokenPairResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgLinkTokenPairResponse 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_MsgLinkTokenPairResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgLinkTokenPairResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgLinkTokenPairResponse 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_MsgLinkTokenPairResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgLinkTokenPairResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgLinkTokenPairResponse 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_MsgLinkTokenPairResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.MsgLinkTokenPairResponse", 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_MsgLinkTokenPairResponse) 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_MsgLinkTokenPairResponse) 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_MsgLinkTokenPairResponse) 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_MsgLinkTokenPairResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgLinkTokenPairResponse) + 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().(*MsgLinkTokenPairResponse) + 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().(*MsgLinkTokenPairResponse) + 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: MsgLinkTokenPairResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgLinkTokenPairResponse: 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_MsgUnlinkTokenPair protoreflect.MessageDescriptor + fd_MsgUnlinkTokenPair_from protoreflect.FieldDescriptor + fd_MsgUnlinkTokenPair_remote_domain protoreflect.FieldDescriptor + fd_MsgUnlinkTokenPair_remote_token protoreflect.FieldDescriptor + fd_MsgUnlinkTokenPair_local_token protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_tx_proto_init() + md_MsgUnlinkTokenPair = File_circle_cctp_v1_tx_proto.Messages().ByName("MsgUnlinkTokenPair") + fd_MsgUnlinkTokenPair_from = md_MsgUnlinkTokenPair.Fields().ByName("from") + fd_MsgUnlinkTokenPair_remote_domain = md_MsgUnlinkTokenPair.Fields().ByName("remote_domain") + fd_MsgUnlinkTokenPair_remote_token = md_MsgUnlinkTokenPair.Fields().ByName("remote_token") + fd_MsgUnlinkTokenPair_local_token = md_MsgUnlinkTokenPair.Fields().ByName("local_token") +} + +var _ protoreflect.Message = (*fastReflection_MsgUnlinkTokenPair)(nil) + +type fastReflection_MsgUnlinkTokenPair MsgUnlinkTokenPair + +func (x *MsgUnlinkTokenPair) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUnlinkTokenPair)(x) +} + +func (x *MsgUnlinkTokenPair) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_tx_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_MsgUnlinkTokenPair_messageType fastReflection_MsgUnlinkTokenPair_messageType +var _ protoreflect.MessageType = fastReflection_MsgUnlinkTokenPair_messageType{} + +type fastReflection_MsgUnlinkTokenPair_messageType struct{} + +func (x fastReflection_MsgUnlinkTokenPair_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUnlinkTokenPair)(nil) +} +func (x fastReflection_MsgUnlinkTokenPair_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUnlinkTokenPair) +} +func (x fastReflection_MsgUnlinkTokenPair_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUnlinkTokenPair +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgUnlinkTokenPair) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUnlinkTokenPair +} + +// 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_MsgUnlinkTokenPair) Type() protoreflect.MessageType { + return _fastReflection_MsgUnlinkTokenPair_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgUnlinkTokenPair) New() protoreflect.Message { + return new(fastReflection_MsgUnlinkTokenPair) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgUnlinkTokenPair) Interface() protoreflect.ProtoMessage { + return (*MsgUnlinkTokenPair)(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_MsgUnlinkTokenPair) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.From != "" { + value := protoreflect.ValueOfString(x.From) + if !f(fd_MsgUnlinkTokenPair_from, value) { + return + } + } + if x.RemoteDomain != uint32(0) { + value := protoreflect.ValueOfUint32(x.RemoteDomain) + if !f(fd_MsgUnlinkTokenPair_remote_domain, value) { + return + } + } + if len(x.RemoteToken) != 0 { + value := protoreflect.ValueOfBytes(x.RemoteToken) + if !f(fd_MsgUnlinkTokenPair_remote_token, value) { + return + } + } + if x.LocalToken != "" { + value := protoreflect.ValueOfString(x.LocalToken) + if !f(fd_MsgUnlinkTokenPair_local_token, 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_MsgUnlinkTokenPair) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.MsgUnlinkTokenPair.from": + return x.From != "" + case "circle.cctp.v1.MsgUnlinkTokenPair.remote_domain": + return x.RemoteDomain != uint32(0) + case "circle.cctp.v1.MsgUnlinkTokenPair.remote_token": + return len(x.RemoteToken) != 0 + case "circle.cctp.v1.MsgUnlinkTokenPair.local_token": + return x.LocalToken != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUnlinkTokenPair")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUnlinkTokenPair 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_MsgUnlinkTokenPair) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.MsgUnlinkTokenPair.from": + x.From = "" + case "circle.cctp.v1.MsgUnlinkTokenPair.remote_domain": + x.RemoteDomain = uint32(0) + case "circle.cctp.v1.MsgUnlinkTokenPair.remote_token": + x.RemoteToken = nil + case "circle.cctp.v1.MsgUnlinkTokenPair.local_token": + x.LocalToken = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUnlinkTokenPair")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUnlinkTokenPair 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_MsgUnlinkTokenPair) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.MsgUnlinkTokenPair.from": + value := x.From + return protoreflect.ValueOfString(value) + case "circle.cctp.v1.MsgUnlinkTokenPair.remote_domain": + value := x.RemoteDomain + return protoreflect.ValueOfUint32(value) + case "circle.cctp.v1.MsgUnlinkTokenPair.remote_token": + value := x.RemoteToken + return protoreflect.ValueOfBytes(value) + case "circle.cctp.v1.MsgUnlinkTokenPair.local_token": + value := x.LocalToken + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUnlinkTokenPair")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUnlinkTokenPair 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_MsgUnlinkTokenPair) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.MsgUnlinkTokenPair.from": + x.From = value.Interface().(string) + case "circle.cctp.v1.MsgUnlinkTokenPair.remote_domain": + x.RemoteDomain = uint32(value.Uint()) + case "circle.cctp.v1.MsgUnlinkTokenPair.remote_token": + x.RemoteToken = value.Bytes() + case "circle.cctp.v1.MsgUnlinkTokenPair.local_token": + x.LocalToken = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUnlinkTokenPair")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUnlinkTokenPair 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_MsgUnlinkTokenPair) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.MsgUnlinkTokenPair.from": + panic(fmt.Errorf("field from of message circle.cctp.v1.MsgUnlinkTokenPair is not mutable")) + case "circle.cctp.v1.MsgUnlinkTokenPair.remote_domain": + panic(fmt.Errorf("field remote_domain of message circle.cctp.v1.MsgUnlinkTokenPair is not mutable")) + case "circle.cctp.v1.MsgUnlinkTokenPair.remote_token": + panic(fmt.Errorf("field remote_token of message circle.cctp.v1.MsgUnlinkTokenPair is not mutable")) + case "circle.cctp.v1.MsgUnlinkTokenPair.local_token": + panic(fmt.Errorf("field local_token of message circle.cctp.v1.MsgUnlinkTokenPair is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUnlinkTokenPair")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUnlinkTokenPair 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_MsgUnlinkTokenPair) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.MsgUnlinkTokenPair.from": + return protoreflect.ValueOfString("") + case "circle.cctp.v1.MsgUnlinkTokenPair.remote_domain": + return protoreflect.ValueOfUint32(uint32(0)) + case "circle.cctp.v1.MsgUnlinkTokenPair.remote_token": + return protoreflect.ValueOfBytes(nil) + case "circle.cctp.v1.MsgUnlinkTokenPair.local_token": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUnlinkTokenPair")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUnlinkTokenPair 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_MsgUnlinkTokenPair) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.MsgUnlinkTokenPair", 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_MsgUnlinkTokenPair) 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_MsgUnlinkTokenPair) 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_MsgUnlinkTokenPair) 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_MsgUnlinkTokenPair) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgUnlinkTokenPair) + 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.From) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.RemoteDomain != 0 { + n += 1 + runtime.Sov(uint64(x.RemoteDomain)) + } + l = len(x.RemoteToken) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.LocalToken) + 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().(*MsgUnlinkTokenPair) + 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.LocalToken) > 0 { + i -= len(x.LocalToken) + copy(dAtA[i:], x.LocalToken) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.LocalToken))) + i-- + dAtA[i] = 0x22 + } + if len(x.RemoteToken) > 0 { + i -= len(x.RemoteToken) + copy(dAtA[i:], x.RemoteToken) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.RemoteToken))) + i-- + dAtA[i] = 0x1a + } + if x.RemoteDomain != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.RemoteDomain)) + i-- + dAtA[i] = 0x10 + } + if len(x.From) > 0 { + i -= len(x.From) + copy(dAtA[i:], x.From) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.From))) + 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().(*MsgUnlinkTokenPair) + 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: MsgUnlinkTokenPair: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUnlinkTokenPair: 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 From", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.From = 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 RemoteDomain", wireType) + } + x.RemoteDomain = 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.RemoteDomain |= 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 RemoteToken", 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.RemoteToken = append(x.RemoteToken[:0], dAtA[iNdEx:postIndex]...) + if x.RemoteToken == nil { + x.RemoteToken = []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 LocalToken", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.LocalToken = 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_MsgUnlinkTokenPairResponse protoreflect.MessageDescriptor +) + +func init() { + file_circle_cctp_v1_tx_proto_init() + md_MsgUnlinkTokenPairResponse = File_circle_cctp_v1_tx_proto.Messages().ByName("MsgUnlinkTokenPairResponse") +} + +var _ protoreflect.Message = (*fastReflection_MsgUnlinkTokenPairResponse)(nil) + +type fastReflection_MsgUnlinkTokenPairResponse MsgUnlinkTokenPairResponse + +func (x *MsgUnlinkTokenPairResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUnlinkTokenPairResponse)(x) +} + +func (x *MsgUnlinkTokenPairResponse) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_tx_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_MsgUnlinkTokenPairResponse_messageType fastReflection_MsgUnlinkTokenPairResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgUnlinkTokenPairResponse_messageType{} + +type fastReflection_MsgUnlinkTokenPairResponse_messageType struct{} + +func (x fastReflection_MsgUnlinkTokenPairResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUnlinkTokenPairResponse)(nil) +} +func (x fastReflection_MsgUnlinkTokenPairResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUnlinkTokenPairResponse) +} +func (x fastReflection_MsgUnlinkTokenPairResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUnlinkTokenPairResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgUnlinkTokenPairResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUnlinkTokenPairResponse +} + +// 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_MsgUnlinkTokenPairResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgUnlinkTokenPairResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgUnlinkTokenPairResponse) New() protoreflect.Message { + return new(fastReflection_MsgUnlinkTokenPairResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgUnlinkTokenPairResponse) Interface() protoreflect.ProtoMessage { + return (*MsgUnlinkTokenPairResponse)(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_MsgUnlinkTokenPairResponse) 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_MsgUnlinkTokenPairResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUnlinkTokenPairResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUnlinkTokenPairResponse 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_MsgUnlinkTokenPairResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUnlinkTokenPairResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUnlinkTokenPairResponse 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_MsgUnlinkTokenPairResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUnlinkTokenPairResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUnlinkTokenPairResponse 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_MsgUnlinkTokenPairResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUnlinkTokenPairResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUnlinkTokenPairResponse 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_MsgUnlinkTokenPairResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUnlinkTokenPairResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUnlinkTokenPairResponse 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_MsgUnlinkTokenPairResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgUnlinkTokenPairResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgUnlinkTokenPairResponse 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_MsgUnlinkTokenPairResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.MsgUnlinkTokenPairResponse", 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_MsgUnlinkTokenPairResponse) 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_MsgUnlinkTokenPairResponse) 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_MsgUnlinkTokenPairResponse) 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_MsgUnlinkTokenPairResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgUnlinkTokenPairResponse) + 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().(*MsgUnlinkTokenPairResponse) + 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().(*MsgUnlinkTokenPairResponse) + 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: MsgUnlinkTokenPairResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUnlinkTokenPairResponse: 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_MsgAddRemoteTokenMessenger protoreflect.MessageDescriptor + fd_MsgAddRemoteTokenMessenger_from protoreflect.FieldDescriptor + fd_MsgAddRemoteTokenMessenger_domain_id protoreflect.FieldDescriptor + fd_MsgAddRemoteTokenMessenger_address protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_tx_proto_init() + md_MsgAddRemoteTokenMessenger = File_circle_cctp_v1_tx_proto.Messages().ByName("MsgAddRemoteTokenMessenger") + fd_MsgAddRemoteTokenMessenger_from = md_MsgAddRemoteTokenMessenger.Fields().ByName("from") + fd_MsgAddRemoteTokenMessenger_domain_id = md_MsgAddRemoteTokenMessenger.Fields().ByName("domain_id") + fd_MsgAddRemoteTokenMessenger_address = md_MsgAddRemoteTokenMessenger.Fields().ByName("address") +} + +var _ protoreflect.Message = (*fastReflection_MsgAddRemoteTokenMessenger)(nil) + +type fastReflection_MsgAddRemoteTokenMessenger MsgAddRemoteTokenMessenger + +func (x *MsgAddRemoteTokenMessenger) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgAddRemoteTokenMessenger)(x) +} + +func (x *MsgAddRemoteTokenMessenger) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_tx_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_MsgAddRemoteTokenMessenger_messageType fastReflection_MsgAddRemoteTokenMessenger_messageType +var _ protoreflect.MessageType = fastReflection_MsgAddRemoteTokenMessenger_messageType{} + +type fastReflection_MsgAddRemoteTokenMessenger_messageType struct{} + +func (x fastReflection_MsgAddRemoteTokenMessenger_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgAddRemoteTokenMessenger)(nil) +} +func (x fastReflection_MsgAddRemoteTokenMessenger_messageType) New() protoreflect.Message { + return new(fastReflection_MsgAddRemoteTokenMessenger) +} +func (x fastReflection_MsgAddRemoteTokenMessenger_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgAddRemoteTokenMessenger +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgAddRemoteTokenMessenger) Descriptor() protoreflect.MessageDescriptor { + return md_MsgAddRemoteTokenMessenger +} + +// 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_MsgAddRemoteTokenMessenger) Type() protoreflect.MessageType { + return _fastReflection_MsgAddRemoteTokenMessenger_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgAddRemoteTokenMessenger) New() protoreflect.Message { + return new(fastReflection_MsgAddRemoteTokenMessenger) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgAddRemoteTokenMessenger) Interface() protoreflect.ProtoMessage { + return (*MsgAddRemoteTokenMessenger)(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_MsgAddRemoteTokenMessenger) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.From != "" { + value := protoreflect.ValueOfString(x.From) + if !f(fd_MsgAddRemoteTokenMessenger_from, value) { + return + } + } + if x.DomainId != uint32(0) { + value := protoreflect.ValueOfUint32(x.DomainId) + if !f(fd_MsgAddRemoteTokenMessenger_domain_id, value) { + return + } + } + if len(x.Address) != 0 { + value := protoreflect.ValueOfBytes(x.Address) + if !f(fd_MsgAddRemoteTokenMessenger_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_MsgAddRemoteTokenMessenger) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.MsgAddRemoteTokenMessenger.from": + return x.From != "" + case "circle.cctp.v1.MsgAddRemoteTokenMessenger.domain_id": + return x.DomainId != uint32(0) + case "circle.cctp.v1.MsgAddRemoteTokenMessenger.address": + return len(x.Address) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgAddRemoteTokenMessenger")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgAddRemoteTokenMessenger 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_MsgAddRemoteTokenMessenger) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.MsgAddRemoteTokenMessenger.from": + x.From = "" + case "circle.cctp.v1.MsgAddRemoteTokenMessenger.domain_id": + x.DomainId = uint32(0) + case "circle.cctp.v1.MsgAddRemoteTokenMessenger.address": + x.Address = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgAddRemoteTokenMessenger")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgAddRemoteTokenMessenger 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_MsgAddRemoteTokenMessenger) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.MsgAddRemoteTokenMessenger.from": + value := x.From + return protoreflect.ValueOfString(value) + case "circle.cctp.v1.MsgAddRemoteTokenMessenger.domain_id": + value := x.DomainId + return protoreflect.ValueOfUint32(value) + case "circle.cctp.v1.MsgAddRemoteTokenMessenger.address": + value := x.Address + return protoreflect.ValueOfBytes(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgAddRemoteTokenMessenger")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgAddRemoteTokenMessenger 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_MsgAddRemoteTokenMessenger) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.MsgAddRemoteTokenMessenger.from": + x.From = value.Interface().(string) + case "circle.cctp.v1.MsgAddRemoteTokenMessenger.domain_id": + x.DomainId = uint32(value.Uint()) + case "circle.cctp.v1.MsgAddRemoteTokenMessenger.address": + x.Address = value.Bytes() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgAddRemoteTokenMessenger")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgAddRemoteTokenMessenger 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_MsgAddRemoteTokenMessenger) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.MsgAddRemoteTokenMessenger.from": + panic(fmt.Errorf("field from of message circle.cctp.v1.MsgAddRemoteTokenMessenger is not mutable")) + case "circle.cctp.v1.MsgAddRemoteTokenMessenger.domain_id": + panic(fmt.Errorf("field domain_id of message circle.cctp.v1.MsgAddRemoteTokenMessenger is not mutable")) + case "circle.cctp.v1.MsgAddRemoteTokenMessenger.address": + panic(fmt.Errorf("field address of message circle.cctp.v1.MsgAddRemoteTokenMessenger is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgAddRemoteTokenMessenger")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgAddRemoteTokenMessenger 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_MsgAddRemoteTokenMessenger) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.MsgAddRemoteTokenMessenger.from": + return protoreflect.ValueOfString("") + case "circle.cctp.v1.MsgAddRemoteTokenMessenger.domain_id": + return protoreflect.ValueOfUint32(uint32(0)) + case "circle.cctp.v1.MsgAddRemoteTokenMessenger.address": + return protoreflect.ValueOfBytes(nil) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgAddRemoteTokenMessenger")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgAddRemoteTokenMessenger 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_MsgAddRemoteTokenMessenger) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.MsgAddRemoteTokenMessenger", 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_MsgAddRemoteTokenMessenger) 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_MsgAddRemoteTokenMessenger) 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_MsgAddRemoteTokenMessenger) 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_MsgAddRemoteTokenMessenger) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgAddRemoteTokenMessenger) + 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.From) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.DomainId != 0 { + n += 1 + runtime.Sov(uint64(x.DomainId)) + } + 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().(*MsgAddRemoteTokenMessenger) + 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] = 0x1a + } + if x.DomainId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.DomainId)) + i-- + dAtA[i] = 0x10 + } + if len(x.From) > 0 { + i -= len(x.From) + copy(dAtA[i:], x.From) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.From))) + 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().(*MsgAddRemoteTokenMessenger) + 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: MsgAddRemoteTokenMessenger: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgAddRemoteTokenMessenger: 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 From", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.From = 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 DomainId", wireType) + } + x.DomainId = 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.DomainId |= 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 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 + 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_MsgAddRemoteTokenMessengerResponse protoreflect.MessageDescriptor +) + +func init() { + file_circle_cctp_v1_tx_proto_init() + md_MsgAddRemoteTokenMessengerResponse = File_circle_cctp_v1_tx_proto.Messages().ByName("MsgAddRemoteTokenMessengerResponse") +} + +var _ protoreflect.Message = (*fastReflection_MsgAddRemoteTokenMessengerResponse)(nil) + +type fastReflection_MsgAddRemoteTokenMessengerResponse MsgAddRemoteTokenMessengerResponse + +func (x *MsgAddRemoteTokenMessengerResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgAddRemoteTokenMessengerResponse)(x) +} + +func (x *MsgAddRemoteTokenMessengerResponse) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_tx_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_MsgAddRemoteTokenMessengerResponse_messageType fastReflection_MsgAddRemoteTokenMessengerResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgAddRemoteTokenMessengerResponse_messageType{} + +type fastReflection_MsgAddRemoteTokenMessengerResponse_messageType struct{} + +func (x fastReflection_MsgAddRemoteTokenMessengerResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgAddRemoteTokenMessengerResponse)(nil) +} +func (x fastReflection_MsgAddRemoteTokenMessengerResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgAddRemoteTokenMessengerResponse) +} +func (x fastReflection_MsgAddRemoteTokenMessengerResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgAddRemoteTokenMessengerResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgAddRemoteTokenMessengerResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgAddRemoteTokenMessengerResponse +} + +// 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_MsgAddRemoteTokenMessengerResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgAddRemoteTokenMessengerResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgAddRemoteTokenMessengerResponse) New() protoreflect.Message { + return new(fastReflection_MsgAddRemoteTokenMessengerResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgAddRemoteTokenMessengerResponse) Interface() protoreflect.ProtoMessage { + return (*MsgAddRemoteTokenMessengerResponse)(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_MsgAddRemoteTokenMessengerResponse) 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_MsgAddRemoteTokenMessengerResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgAddRemoteTokenMessengerResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgAddRemoteTokenMessengerResponse 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_MsgAddRemoteTokenMessengerResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgAddRemoteTokenMessengerResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgAddRemoteTokenMessengerResponse 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_MsgAddRemoteTokenMessengerResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgAddRemoteTokenMessengerResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgAddRemoteTokenMessengerResponse 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_MsgAddRemoteTokenMessengerResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgAddRemoteTokenMessengerResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgAddRemoteTokenMessengerResponse 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_MsgAddRemoteTokenMessengerResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgAddRemoteTokenMessengerResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgAddRemoteTokenMessengerResponse 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_MsgAddRemoteTokenMessengerResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgAddRemoteTokenMessengerResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgAddRemoteTokenMessengerResponse 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_MsgAddRemoteTokenMessengerResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.MsgAddRemoteTokenMessengerResponse", 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_MsgAddRemoteTokenMessengerResponse) 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_MsgAddRemoteTokenMessengerResponse) 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_MsgAddRemoteTokenMessengerResponse) 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_MsgAddRemoteTokenMessengerResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgAddRemoteTokenMessengerResponse) + 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().(*MsgAddRemoteTokenMessengerResponse) + 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().(*MsgAddRemoteTokenMessengerResponse) + 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: MsgAddRemoteTokenMessengerResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgAddRemoteTokenMessengerResponse: 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_MsgRemoveRemoteTokenMessenger protoreflect.MessageDescriptor + fd_MsgRemoveRemoteTokenMessenger_from protoreflect.FieldDescriptor + fd_MsgRemoveRemoteTokenMessenger_domain_id protoreflect.FieldDescriptor +) + +func init() { + file_circle_cctp_v1_tx_proto_init() + md_MsgRemoveRemoteTokenMessenger = File_circle_cctp_v1_tx_proto.Messages().ByName("MsgRemoveRemoteTokenMessenger") + fd_MsgRemoveRemoteTokenMessenger_from = md_MsgRemoveRemoteTokenMessenger.Fields().ByName("from") + fd_MsgRemoveRemoteTokenMessenger_domain_id = md_MsgRemoveRemoteTokenMessenger.Fields().ByName("domain_id") +} + +var _ protoreflect.Message = (*fastReflection_MsgRemoveRemoteTokenMessenger)(nil) + +type fastReflection_MsgRemoveRemoteTokenMessenger MsgRemoveRemoteTokenMessenger + +func (x *MsgRemoveRemoteTokenMessenger) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgRemoveRemoteTokenMessenger)(x) +} + +func (x *MsgRemoveRemoteTokenMessenger) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_tx_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_MsgRemoveRemoteTokenMessenger_messageType fastReflection_MsgRemoveRemoteTokenMessenger_messageType +var _ protoreflect.MessageType = fastReflection_MsgRemoveRemoteTokenMessenger_messageType{} + +type fastReflection_MsgRemoveRemoteTokenMessenger_messageType struct{} + +func (x fastReflection_MsgRemoveRemoteTokenMessenger_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgRemoveRemoteTokenMessenger)(nil) +} +func (x fastReflection_MsgRemoveRemoteTokenMessenger_messageType) New() protoreflect.Message { + return new(fastReflection_MsgRemoveRemoteTokenMessenger) +} +func (x fastReflection_MsgRemoveRemoteTokenMessenger_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgRemoveRemoteTokenMessenger +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgRemoveRemoteTokenMessenger) Descriptor() protoreflect.MessageDescriptor { + return md_MsgRemoveRemoteTokenMessenger +} + +// 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_MsgRemoveRemoteTokenMessenger) Type() protoreflect.MessageType { + return _fastReflection_MsgRemoveRemoteTokenMessenger_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgRemoveRemoteTokenMessenger) New() protoreflect.Message { + return new(fastReflection_MsgRemoveRemoteTokenMessenger) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgRemoveRemoteTokenMessenger) Interface() protoreflect.ProtoMessage { + return (*MsgRemoveRemoteTokenMessenger)(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_MsgRemoveRemoteTokenMessenger) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.From != "" { + value := protoreflect.ValueOfString(x.From) + if !f(fd_MsgRemoveRemoteTokenMessenger_from, value) { + return + } + } + if x.DomainId != uint32(0) { + value := protoreflect.ValueOfUint32(x.DomainId) + if !f(fd_MsgRemoveRemoteTokenMessenger_domain_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_MsgRemoveRemoteTokenMessenger) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "circle.cctp.v1.MsgRemoveRemoteTokenMessenger.from": + return x.From != "" + case "circle.cctp.v1.MsgRemoveRemoteTokenMessenger.domain_id": + return x.DomainId != uint32(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgRemoveRemoteTokenMessenger")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgRemoveRemoteTokenMessenger 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_MsgRemoveRemoteTokenMessenger) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "circle.cctp.v1.MsgRemoveRemoteTokenMessenger.from": + x.From = "" + case "circle.cctp.v1.MsgRemoveRemoteTokenMessenger.domain_id": + x.DomainId = uint32(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgRemoveRemoteTokenMessenger")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgRemoveRemoteTokenMessenger 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_MsgRemoveRemoteTokenMessenger) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "circle.cctp.v1.MsgRemoveRemoteTokenMessenger.from": + value := x.From + return protoreflect.ValueOfString(value) + case "circle.cctp.v1.MsgRemoveRemoteTokenMessenger.domain_id": + value := x.DomainId + return protoreflect.ValueOfUint32(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgRemoveRemoteTokenMessenger")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgRemoveRemoteTokenMessenger 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_MsgRemoveRemoteTokenMessenger) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "circle.cctp.v1.MsgRemoveRemoteTokenMessenger.from": + x.From = value.Interface().(string) + case "circle.cctp.v1.MsgRemoveRemoteTokenMessenger.domain_id": + x.DomainId = uint32(value.Uint()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgRemoveRemoteTokenMessenger")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgRemoveRemoteTokenMessenger 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_MsgRemoveRemoteTokenMessenger) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.MsgRemoveRemoteTokenMessenger.from": + panic(fmt.Errorf("field from of message circle.cctp.v1.MsgRemoveRemoteTokenMessenger is not mutable")) + case "circle.cctp.v1.MsgRemoveRemoteTokenMessenger.domain_id": + panic(fmt.Errorf("field domain_id of message circle.cctp.v1.MsgRemoveRemoteTokenMessenger is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgRemoveRemoteTokenMessenger")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgRemoveRemoteTokenMessenger 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_MsgRemoveRemoteTokenMessenger) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "circle.cctp.v1.MsgRemoveRemoteTokenMessenger.from": + return protoreflect.ValueOfString("") + case "circle.cctp.v1.MsgRemoveRemoteTokenMessenger.domain_id": + return protoreflect.ValueOfUint32(uint32(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgRemoveRemoteTokenMessenger")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgRemoveRemoteTokenMessenger 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_MsgRemoveRemoteTokenMessenger) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.MsgRemoveRemoteTokenMessenger", 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_MsgRemoveRemoteTokenMessenger) 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_MsgRemoveRemoteTokenMessenger) 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_MsgRemoveRemoteTokenMessenger) 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_MsgRemoveRemoteTokenMessenger) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgRemoveRemoteTokenMessenger) + 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.From) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.DomainId != 0 { + n += 1 + runtime.Sov(uint64(x.DomainId)) + } + 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().(*MsgRemoveRemoteTokenMessenger) + 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.DomainId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.DomainId)) + i-- + dAtA[i] = 0x10 + } + if len(x.From) > 0 { + i -= len(x.From) + copy(dAtA[i:], x.From) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.From))) + 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().(*MsgRemoveRemoteTokenMessenger) + 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: MsgRemoveRemoteTokenMessenger: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRemoveRemoteTokenMessenger: 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 From", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.From = 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 DomainId", wireType) + } + x.DomainId = 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.DomainId |= 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_MsgRemoveRemoteTokenMessengerResponse protoreflect.MessageDescriptor +) + +func init() { + file_circle_cctp_v1_tx_proto_init() + md_MsgRemoveRemoteTokenMessengerResponse = File_circle_cctp_v1_tx_proto.Messages().ByName("MsgRemoveRemoteTokenMessengerResponse") +} + +var _ protoreflect.Message = (*fastReflection_MsgRemoveRemoteTokenMessengerResponse)(nil) + +type fastReflection_MsgRemoveRemoteTokenMessengerResponse MsgRemoveRemoteTokenMessengerResponse + +func (x *MsgRemoveRemoteTokenMessengerResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgRemoveRemoteTokenMessengerResponse)(x) +} + +func (x *MsgRemoveRemoteTokenMessengerResponse) slowProtoReflect() protoreflect.Message { + mi := &file_circle_cctp_v1_tx_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_MsgRemoveRemoteTokenMessengerResponse_messageType fastReflection_MsgRemoveRemoteTokenMessengerResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgRemoveRemoteTokenMessengerResponse_messageType{} + +type fastReflection_MsgRemoveRemoteTokenMessengerResponse_messageType struct{} + +func (x fastReflection_MsgRemoveRemoteTokenMessengerResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgRemoveRemoteTokenMessengerResponse)(nil) +} +func (x fastReflection_MsgRemoveRemoteTokenMessengerResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgRemoveRemoteTokenMessengerResponse) +} +func (x fastReflection_MsgRemoveRemoteTokenMessengerResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgRemoveRemoteTokenMessengerResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgRemoveRemoteTokenMessengerResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgRemoveRemoteTokenMessengerResponse +} + +// 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_MsgRemoveRemoteTokenMessengerResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgRemoveRemoteTokenMessengerResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgRemoveRemoteTokenMessengerResponse) New() protoreflect.Message { + return new(fastReflection_MsgRemoveRemoteTokenMessengerResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgRemoveRemoteTokenMessengerResponse) Interface() protoreflect.ProtoMessage { + return (*MsgRemoveRemoteTokenMessengerResponse)(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_MsgRemoveRemoteTokenMessengerResponse) 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_MsgRemoveRemoteTokenMessengerResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgRemoveRemoteTokenMessengerResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgRemoveRemoteTokenMessengerResponse 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_MsgRemoveRemoteTokenMessengerResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgRemoveRemoteTokenMessengerResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgRemoveRemoteTokenMessengerResponse 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_MsgRemoveRemoteTokenMessengerResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgRemoveRemoteTokenMessengerResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgRemoveRemoteTokenMessengerResponse 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_MsgRemoveRemoteTokenMessengerResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgRemoveRemoteTokenMessengerResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgRemoveRemoteTokenMessengerResponse 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_MsgRemoveRemoteTokenMessengerResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgRemoveRemoteTokenMessengerResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgRemoveRemoteTokenMessengerResponse 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_MsgRemoveRemoteTokenMessengerResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: circle.cctp.v1.MsgRemoveRemoteTokenMessengerResponse")) + } + panic(fmt.Errorf("message circle.cctp.v1.MsgRemoveRemoteTokenMessengerResponse 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_MsgRemoveRemoteTokenMessengerResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in circle.cctp.v1.MsgRemoveRemoteTokenMessengerResponse", 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_MsgRemoveRemoteTokenMessengerResponse) 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_MsgRemoveRemoteTokenMessengerResponse) 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_MsgRemoveRemoteTokenMessengerResponse) 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_MsgRemoveRemoteTokenMessengerResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgRemoveRemoteTokenMessengerResponse) + 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().(*MsgRemoveRemoteTokenMessengerResponse) + 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().(*MsgRemoveRemoteTokenMessengerResponse) + 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: MsgRemoveRemoteTokenMessengerResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRemoveRemoteTokenMessengerResponse: 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, + } +} + +// +// Copyright (c) 2024, Ā© Circle Internet Financial, LTD. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.0 +// protoc (unknown) +// source: circle/cctp/v1/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) +) + +type MsgUpdateOwner struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` + NewOwner string `protobuf:"bytes,2,opt,name=new_owner,json=newOwner,proto3" json:"new_owner,omitempty"` +} + +func (x *MsgUpdateOwner) Reset() { + *x = MsgUpdateOwner{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_tx_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgUpdateOwner) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgUpdateOwner) ProtoMessage() {} + +// Deprecated: Use MsgUpdateOwner.ProtoReflect.Descriptor instead. +func (*MsgUpdateOwner) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_tx_proto_rawDescGZIP(), []int{0} +} + +func (x *MsgUpdateOwner) GetFrom() string { + if x != nil { + return x.From + } + return "" +} + +func (x *MsgUpdateOwner) GetNewOwner() string { + if x != nil { + return x.NewOwner + } + return "" +} + +type MsgUpdateOwnerResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *MsgUpdateOwnerResponse) Reset() { + *x = MsgUpdateOwnerResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_tx_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgUpdateOwnerResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgUpdateOwnerResponse) ProtoMessage() {} + +// Deprecated: Use MsgUpdateOwnerResponse.ProtoReflect.Descriptor instead. +func (*MsgUpdateOwnerResponse) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_tx_proto_rawDescGZIP(), []int{1} +} + +type MsgUpdateAttesterManager struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` + NewAttesterManager string `protobuf:"bytes,2,opt,name=new_attester_manager,json=newAttesterManager,proto3" json:"new_attester_manager,omitempty"` +} + +func (x *MsgUpdateAttesterManager) Reset() { + *x = MsgUpdateAttesterManager{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_tx_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgUpdateAttesterManager) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgUpdateAttesterManager) ProtoMessage() {} + +// Deprecated: Use MsgUpdateAttesterManager.ProtoReflect.Descriptor instead. +func (*MsgUpdateAttesterManager) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_tx_proto_rawDescGZIP(), []int{2} +} + +func (x *MsgUpdateAttesterManager) GetFrom() string { + if x != nil { + return x.From + } + return "" +} + +func (x *MsgUpdateAttesterManager) GetNewAttesterManager() string { + if x != nil { + return x.NewAttesterManager + } + return "" +} + +type MsgUpdateAttesterManagerResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *MsgUpdateAttesterManagerResponse) Reset() { + *x = MsgUpdateAttesterManagerResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_tx_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgUpdateAttesterManagerResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgUpdateAttesterManagerResponse) ProtoMessage() {} + +// Deprecated: Use MsgUpdateAttesterManagerResponse.ProtoReflect.Descriptor instead. +func (*MsgUpdateAttesterManagerResponse) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_tx_proto_rawDescGZIP(), []int{3} +} + +type MsgUpdateTokenController struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` + NewTokenController string `protobuf:"bytes,2,opt,name=new_token_controller,json=newTokenController,proto3" json:"new_token_controller,omitempty"` +} + +func (x *MsgUpdateTokenController) Reset() { + *x = MsgUpdateTokenController{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_tx_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgUpdateTokenController) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgUpdateTokenController) ProtoMessage() {} + +// Deprecated: Use MsgUpdateTokenController.ProtoReflect.Descriptor instead. +func (*MsgUpdateTokenController) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_tx_proto_rawDescGZIP(), []int{4} +} + +func (x *MsgUpdateTokenController) GetFrom() string { + if x != nil { + return x.From + } + return "" +} + +func (x *MsgUpdateTokenController) GetNewTokenController() string { + if x != nil { + return x.NewTokenController + } + return "" +} + +type MsgUpdateTokenControllerResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *MsgUpdateTokenControllerResponse) Reset() { + *x = MsgUpdateTokenControllerResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_tx_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgUpdateTokenControllerResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgUpdateTokenControllerResponse) ProtoMessage() {} + +// Deprecated: Use MsgUpdateTokenControllerResponse.ProtoReflect.Descriptor instead. +func (*MsgUpdateTokenControllerResponse) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_tx_proto_rawDescGZIP(), []int{5} +} + +type MsgUpdatePauser struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` + NewPauser string `protobuf:"bytes,2,opt,name=new_pauser,json=newPauser,proto3" json:"new_pauser,omitempty"` +} + +func (x *MsgUpdatePauser) Reset() { + *x = MsgUpdatePauser{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_tx_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgUpdatePauser) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgUpdatePauser) ProtoMessage() {} + +// Deprecated: Use MsgUpdatePauser.ProtoReflect.Descriptor instead. +func (*MsgUpdatePauser) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_tx_proto_rawDescGZIP(), []int{6} +} + +func (x *MsgUpdatePauser) GetFrom() string { + if x != nil { + return x.From + } + return "" +} + +func (x *MsgUpdatePauser) GetNewPauser() string { + if x != nil { + return x.NewPauser + } + return "" +} + +type MsgUpdatePauserResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *MsgUpdatePauserResponse) Reset() { + *x = MsgUpdatePauserResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_tx_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgUpdatePauserResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgUpdatePauserResponse) ProtoMessage() {} + +// Deprecated: Use MsgUpdatePauserResponse.ProtoReflect.Descriptor instead. +func (*MsgUpdatePauserResponse) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_tx_proto_rawDescGZIP(), []int{7} +} + +type MsgAcceptOwner struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` +} + +func (x *MsgAcceptOwner) Reset() { + *x = MsgAcceptOwner{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_tx_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgAcceptOwner) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgAcceptOwner) ProtoMessage() {} + +// Deprecated: Use MsgAcceptOwner.ProtoReflect.Descriptor instead. +func (*MsgAcceptOwner) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_tx_proto_rawDescGZIP(), []int{8} +} + +func (x *MsgAcceptOwner) GetFrom() string { + if x != nil { + return x.From + } + return "" +} + +type MsgAcceptOwnerResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *MsgAcceptOwnerResponse) Reset() { + *x = MsgAcceptOwnerResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_tx_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgAcceptOwnerResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgAcceptOwnerResponse) ProtoMessage() {} + +// Deprecated: Use MsgAcceptOwnerResponse.ProtoReflect.Descriptor instead. +func (*MsgAcceptOwnerResponse) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_tx_proto_rawDescGZIP(), []int{9} +} + +type MsgEnableAttester struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` + Attester string `protobuf:"bytes,2,opt,name=attester,proto3" json:"attester,omitempty"` +} + +func (x *MsgEnableAttester) Reset() { + *x = MsgEnableAttester{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_tx_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgEnableAttester) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgEnableAttester) ProtoMessage() {} + +// Deprecated: Use MsgEnableAttester.ProtoReflect.Descriptor instead. +func (*MsgEnableAttester) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_tx_proto_rawDescGZIP(), []int{10} +} + +func (x *MsgEnableAttester) GetFrom() string { + if x != nil { + return x.From + } + return "" +} + +func (x *MsgEnableAttester) GetAttester() string { + if x != nil { + return x.Attester + } + return "" +} + +type MsgEnableAttesterResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *MsgEnableAttesterResponse) Reset() { + *x = MsgEnableAttesterResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_tx_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgEnableAttesterResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgEnableAttesterResponse) ProtoMessage() {} + +// Deprecated: Use MsgEnableAttesterResponse.ProtoReflect.Descriptor instead. +func (*MsgEnableAttesterResponse) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_tx_proto_rawDescGZIP(), []int{11} +} + +type MsgDisableAttester struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` + Attester string `protobuf:"bytes,2,opt,name=attester,proto3" json:"attester,omitempty"` +} + +func (x *MsgDisableAttester) Reset() { + *x = MsgDisableAttester{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_tx_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgDisableAttester) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgDisableAttester) ProtoMessage() {} + +// Deprecated: Use MsgDisableAttester.ProtoReflect.Descriptor instead. +func (*MsgDisableAttester) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_tx_proto_rawDescGZIP(), []int{12} +} + +func (x *MsgDisableAttester) GetFrom() string { + if x != nil { + return x.From + } + return "" +} + +func (x *MsgDisableAttester) GetAttester() string { + if x != nil { + return x.Attester + } + return "" +} + +type MsgDisableAttesterResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *MsgDisableAttesterResponse) Reset() { + *x = MsgDisableAttesterResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_tx_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgDisableAttesterResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgDisableAttesterResponse) ProtoMessage() {} + +// Deprecated: Use MsgDisableAttesterResponse.ProtoReflect.Descriptor instead. +func (*MsgDisableAttesterResponse) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_tx_proto_rawDescGZIP(), []int{13} +} + +type MsgPauseBurningAndMinting struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` +} + +func (x *MsgPauseBurningAndMinting) Reset() { + *x = MsgPauseBurningAndMinting{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_tx_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgPauseBurningAndMinting) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgPauseBurningAndMinting) ProtoMessage() {} + +// Deprecated: Use MsgPauseBurningAndMinting.ProtoReflect.Descriptor instead. +func (*MsgPauseBurningAndMinting) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_tx_proto_rawDescGZIP(), []int{14} +} + +func (x *MsgPauseBurningAndMinting) GetFrom() string { + if x != nil { + return x.From + } + return "" +} + +type MsgPauseBurningAndMintingResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *MsgPauseBurningAndMintingResponse) Reset() { + *x = MsgPauseBurningAndMintingResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_tx_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgPauseBurningAndMintingResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgPauseBurningAndMintingResponse) ProtoMessage() {} + +// Deprecated: Use MsgPauseBurningAndMintingResponse.ProtoReflect.Descriptor instead. +func (*MsgPauseBurningAndMintingResponse) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_tx_proto_rawDescGZIP(), []int{15} +} + +type MsgUnpauseBurningAndMinting struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` +} + +func (x *MsgUnpauseBurningAndMinting) Reset() { + *x = MsgUnpauseBurningAndMinting{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_tx_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgUnpauseBurningAndMinting) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgUnpauseBurningAndMinting) ProtoMessage() {} + +// Deprecated: Use MsgUnpauseBurningAndMinting.ProtoReflect.Descriptor instead. +func (*MsgUnpauseBurningAndMinting) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_tx_proto_rawDescGZIP(), []int{16} +} + +func (x *MsgUnpauseBurningAndMinting) GetFrom() string { + if x != nil { + return x.From + } + return "" +} + +type MsgUnpauseBurningAndMintingResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *MsgUnpauseBurningAndMintingResponse) Reset() { + *x = MsgUnpauseBurningAndMintingResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_tx_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgUnpauseBurningAndMintingResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgUnpauseBurningAndMintingResponse) ProtoMessage() {} + +// Deprecated: Use MsgUnpauseBurningAndMintingResponse.ProtoReflect.Descriptor instead. +func (*MsgUnpauseBurningAndMintingResponse) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_tx_proto_rawDescGZIP(), []int{17} +} + +type MsgPauseSendingAndReceivingMessages struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` +} + +func (x *MsgPauseSendingAndReceivingMessages) Reset() { + *x = MsgPauseSendingAndReceivingMessages{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_tx_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgPauseSendingAndReceivingMessages) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgPauseSendingAndReceivingMessages) ProtoMessage() {} + +// Deprecated: Use MsgPauseSendingAndReceivingMessages.ProtoReflect.Descriptor instead. +func (*MsgPauseSendingAndReceivingMessages) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_tx_proto_rawDescGZIP(), []int{18} +} + +func (x *MsgPauseSendingAndReceivingMessages) GetFrom() string { + if x != nil { + return x.From + } + return "" +} + +type MsgPauseSendingAndReceivingMessagesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *MsgPauseSendingAndReceivingMessagesResponse) Reset() { + *x = MsgPauseSendingAndReceivingMessagesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_tx_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgPauseSendingAndReceivingMessagesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgPauseSendingAndReceivingMessagesResponse) ProtoMessage() {} + +// Deprecated: Use MsgPauseSendingAndReceivingMessagesResponse.ProtoReflect.Descriptor instead. +func (*MsgPauseSendingAndReceivingMessagesResponse) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_tx_proto_rawDescGZIP(), []int{19} +} + +type MsgUnpauseSendingAndReceivingMessages struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` +} + +func (x *MsgUnpauseSendingAndReceivingMessages) Reset() { + *x = MsgUnpauseSendingAndReceivingMessages{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_tx_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgUnpauseSendingAndReceivingMessages) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgUnpauseSendingAndReceivingMessages) ProtoMessage() {} + +// Deprecated: Use MsgUnpauseSendingAndReceivingMessages.ProtoReflect.Descriptor instead. +func (*MsgUnpauseSendingAndReceivingMessages) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_tx_proto_rawDescGZIP(), []int{20} +} + +func (x *MsgUnpauseSendingAndReceivingMessages) GetFrom() string { + if x != nil { + return x.From + } + return "" +} + +type MsgUnpauseSendingAndReceivingMessagesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *MsgUnpauseSendingAndReceivingMessagesResponse) Reset() { + *x = MsgUnpauseSendingAndReceivingMessagesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_tx_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgUnpauseSendingAndReceivingMessagesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgUnpauseSendingAndReceivingMessagesResponse) ProtoMessage() {} + +// Deprecated: Use MsgUnpauseSendingAndReceivingMessagesResponse.ProtoReflect.Descriptor instead. +func (*MsgUnpauseSendingAndReceivingMessagesResponse) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_tx_proto_rawDescGZIP(), []int{21} +} + +type MsgUpdateMaxMessageBodySize struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` + MessageSize uint64 `protobuf:"varint,2,opt,name=message_size,json=messageSize,proto3" json:"message_size,omitempty"` +} + +func (x *MsgUpdateMaxMessageBodySize) Reset() { + *x = MsgUpdateMaxMessageBodySize{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_tx_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgUpdateMaxMessageBodySize) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgUpdateMaxMessageBodySize) ProtoMessage() {} + +// Deprecated: Use MsgUpdateMaxMessageBodySize.ProtoReflect.Descriptor instead. +func (*MsgUpdateMaxMessageBodySize) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_tx_proto_rawDescGZIP(), []int{22} +} + +func (x *MsgUpdateMaxMessageBodySize) GetFrom() string { + if x != nil { + return x.From + } + return "" +} + +func (x *MsgUpdateMaxMessageBodySize) GetMessageSize() uint64 { + if x != nil { + return x.MessageSize + } + return 0 +} + +type MsgUpdateMaxMessageBodySizeResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *MsgUpdateMaxMessageBodySizeResponse) Reset() { + *x = MsgUpdateMaxMessageBodySizeResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_tx_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgUpdateMaxMessageBodySizeResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgUpdateMaxMessageBodySizeResponse) ProtoMessage() {} + +// Deprecated: Use MsgUpdateMaxMessageBodySizeResponse.ProtoReflect.Descriptor instead. +func (*MsgUpdateMaxMessageBodySizeResponse) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_tx_proto_rawDescGZIP(), []int{23} +} + +type MsgSetMaxBurnAmountPerMessage struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` + LocalToken string `protobuf:"bytes,2,opt,name=local_token,json=localToken,proto3" json:"local_token,omitempty"` + Amount string `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"` +} + +func (x *MsgSetMaxBurnAmountPerMessage) Reset() { + *x = MsgSetMaxBurnAmountPerMessage{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_tx_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgSetMaxBurnAmountPerMessage) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgSetMaxBurnAmountPerMessage) ProtoMessage() {} + +// Deprecated: Use MsgSetMaxBurnAmountPerMessage.ProtoReflect.Descriptor instead. +func (*MsgSetMaxBurnAmountPerMessage) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_tx_proto_rawDescGZIP(), []int{24} +} + +func (x *MsgSetMaxBurnAmountPerMessage) GetFrom() string { + if x != nil { + return x.From + } + return "" +} + +func (x *MsgSetMaxBurnAmountPerMessage) GetLocalToken() string { + if x != nil { + return x.LocalToken + } + return "" +} + +func (x *MsgSetMaxBurnAmountPerMessage) GetAmount() string { + if x != nil { + return x.Amount + } + return "" +} + +type MsgSetMaxBurnAmountPerMessageResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *MsgSetMaxBurnAmountPerMessageResponse) Reset() { + *x = MsgSetMaxBurnAmountPerMessageResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_tx_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgSetMaxBurnAmountPerMessageResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgSetMaxBurnAmountPerMessageResponse) ProtoMessage() {} + +// Deprecated: Use MsgSetMaxBurnAmountPerMessageResponse.ProtoReflect.Descriptor instead. +func (*MsgSetMaxBurnAmountPerMessageResponse) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_tx_proto_rawDescGZIP(), []int{25} +} + +type MsgDepositForBurn struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` + Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"` + DestinationDomain uint32 `protobuf:"varint,3,opt,name=destination_domain,json=destinationDomain,proto3" json:"destination_domain,omitempty"` + MintRecipient []byte `protobuf:"bytes,4,opt,name=mint_recipient,json=mintRecipient,proto3" json:"mint_recipient,omitempty"` + BurnToken string `protobuf:"bytes,5,opt,name=burn_token,json=burnToken,proto3" json:"burn_token,omitempty"` +} + +func (x *MsgDepositForBurn) Reset() { + *x = MsgDepositForBurn{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_tx_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgDepositForBurn) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgDepositForBurn) ProtoMessage() {} + +// Deprecated: Use MsgDepositForBurn.ProtoReflect.Descriptor instead. +func (*MsgDepositForBurn) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_tx_proto_rawDescGZIP(), []int{26} +} + +func (x *MsgDepositForBurn) GetFrom() string { + if x != nil { + return x.From + } + return "" +} + +func (x *MsgDepositForBurn) GetAmount() string { + if x != nil { + return x.Amount + } + return "" +} + +func (x *MsgDepositForBurn) GetDestinationDomain() uint32 { + if x != nil { + return x.DestinationDomain + } + return 0 +} + +func (x *MsgDepositForBurn) GetMintRecipient() []byte { + if x != nil { + return x.MintRecipient + } + return nil +} + +func (x *MsgDepositForBurn) GetBurnToken() string { + if x != nil { + return x.BurnToken + } + return "" +} + +type MsgDepositForBurnResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Nonce uint64 `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"` +} + +func (x *MsgDepositForBurnResponse) Reset() { + *x = MsgDepositForBurnResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_tx_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgDepositForBurnResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgDepositForBurnResponse) ProtoMessage() {} + +// Deprecated: Use MsgDepositForBurnResponse.ProtoReflect.Descriptor instead. +func (*MsgDepositForBurnResponse) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_tx_proto_rawDescGZIP(), []int{27} +} + +func (x *MsgDepositForBurnResponse) GetNonce() uint64 { + if x != nil { + return x.Nonce + } + return 0 +} + +type MsgDepositForBurnWithCaller struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` + Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"` + DestinationDomain uint32 `protobuf:"varint,3,opt,name=destination_domain,json=destinationDomain,proto3" json:"destination_domain,omitempty"` + MintRecipient []byte `protobuf:"bytes,4,opt,name=mint_recipient,json=mintRecipient,proto3" json:"mint_recipient,omitempty"` + BurnToken string `protobuf:"bytes,5,opt,name=burn_token,json=burnToken,proto3" json:"burn_token,omitempty"` + DestinationCaller []byte `protobuf:"bytes,6,opt,name=destination_caller,json=destinationCaller,proto3" json:"destination_caller,omitempty"` +} + +func (x *MsgDepositForBurnWithCaller) Reset() { + *x = MsgDepositForBurnWithCaller{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_tx_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgDepositForBurnWithCaller) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgDepositForBurnWithCaller) ProtoMessage() {} + +// Deprecated: Use MsgDepositForBurnWithCaller.ProtoReflect.Descriptor instead. +func (*MsgDepositForBurnWithCaller) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_tx_proto_rawDescGZIP(), []int{28} +} + +func (x *MsgDepositForBurnWithCaller) GetFrom() string { + if x != nil { + return x.From + } + return "" +} + +func (x *MsgDepositForBurnWithCaller) GetAmount() string { + if x != nil { + return x.Amount + } + return "" +} + +func (x *MsgDepositForBurnWithCaller) GetDestinationDomain() uint32 { + if x != nil { + return x.DestinationDomain + } + return 0 +} + +func (x *MsgDepositForBurnWithCaller) GetMintRecipient() []byte { + if x != nil { + return x.MintRecipient + } + return nil +} + +func (x *MsgDepositForBurnWithCaller) GetBurnToken() string { + if x != nil { + return x.BurnToken + } + return "" +} + +func (x *MsgDepositForBurnWithCaller) GetDestinationCaller() []byte { + if x != nil { + return x.DestinationCaller + } + return nil +} + +type MsgDepositForBurnWithCallerResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Nonce uint64 `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"` +} + +func (x *MsgDepositForBurnWithCallerResponse) Reset() { + *x = MsgDepositForBurnWithCallerResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_tx_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgDepositForBurnWithCallerResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgDepositForBurnWithCallerResponse) ProtoMessage() {} + +// Deprecated: Use MsgDepositForBurnWithCallerResponse.ProtoReflect.Descriptor instead. +func (*MsgDepositForBurnWithCallerResponse) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_tx_proto_rawDescGZIP(), []int{29} +} + +func (x *MsgDepositForBurnWithCallerResponse) GetNonce() uint64 { + if x != nil { + return x.Nonce + } + return 0 +} + +type MsgReplaceDepositForBurn struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` + OriginalMessage []byte `protobuf:"bytes,2,opt,name=original_message,json=originalMessage,proto3" json:"original_message,omitempty"` + OriginalAttestation []byte `protobuf:"bytes,3,opt,name=original_attestation,json=originalAttestation,proto3" json:"original_attestation,omitempty"` + NewDestinationCaller []byte `protobuf:"bytes,4,opt,name=new_destination_caller,json=newDestinationCaller,proto3" json:"new_destination_caller,omitempty"` + NewMintRecipient []byte `protobuf:"bytes,5,opt,name=new_mint_recipient,json=newMintRecipient,proto3" json:"new_mint_recipient,omitempty"` +} + +func (x *MsgReplaceDepositForBurn) Reset() { + *x = MsgReplaceDepositForBurn{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_tx_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgReplaceDepositForBurn) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgReplaceDepositForBurn) ProtoMessage() {} + +// Deprecated: Use MsgReplaceDepositForBurn.ProtoReflect.Descriptor instead. +func (*MsgReplaceDepositForBurn) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_tx_proto_rawDescGZIP(), []int{30} +} + +func (x *MsgReplaceDepositForBurn) GetFrom() string { + if x != nil { + return x.From + } + return "" +} + +func (x *MsgReplaceDepositForBurn) GetOriginalMessage() []byte { + if x != nil { + return x.OriginalMessage + } + return nil +} + +func (x *MsgReplaceDepositForBurn) GetOriginalAttestation() []byte { + if x != nil { + return x.OriginalAttestation + } + return nil +} + +func (x *MsgReplaceDepositForBurn) GetNewDestinationCaller() []byte { + if x != nil { + return x.NewDestinationCaller + } + return nil +} + +func (x *MsgReplaceDepositForBurn) GetNewMintRecipient() []byte { + if x != nil { + return x.NewMintRecipient + } + return nil +} + +type MsgReplaceDepositForBurnResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *MsgReplaceDepositForBurnResponse) Reset() { + *x = MsgReplaceDepositForBurnResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_tx_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgReplaceDepositForBurnResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgReplaceDepositForBurnResponse) ProtoMessage() {} + +// Deprecated: Use MsgReplaceDepositForBurnResponse.ProtoReflect.Descriptor instead. +func (*MsgReplaceDepositForBurnResponse) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_tx_proto_rawDescGZIP(), []int{31} +} + +type MsgReceiveMessage struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` + Message []byte `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` + Attestation []byte `protobuf:"bytes,3,opt,name=attestation,proto3" json:"attestation,omitempty"` +} + +func (x *MsgReceiveMessage) Reset() { + *x = MsgReceiveMessage{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_tx_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgReceiveMessage) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgReceiveMessage) ProtoMessage() {} + +// Deprecated: Use MsgReceiveMessage.ProtoReflect.Descriptor instead. +func (*MsgReceiveMessage) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_tx_proto_rawDescGZIP(), []int{32} +} + +func (x *MsgReceiveMessage) GetFrom() string { + if x != nil { + return x.From + } + return "" +} + +func (x *MsgReceiveMessage) GetMessage() []byte { + if x != nil { + return x.Message + } + return nil +} + +func (x *MsgReceiveMessage) GetAttestation() []byte { + if x != nil { + return x.Attestation + } + return nil +} + +type MsgReceiveMessageResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` +} + +func (x *MsgReceiveMessageResponse) Reset() { + *x = MsgReceiveMessageResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_tx_proto_msgTypes[33] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgReceiveMessageResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgReceiveMessageResponse) ProtoMessage() {} + +// Deprecated: Use MsgReceiveMessageResponse.ProtoReflect.Descriptor instead. +func (*MsgReceiveMessageResponse) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_tx_proto_rawDescGZIP(), []int{33} +} + +func (x *MsgReceiveMessageResponse) GetSuccess() bool { + if x != nil { + return x.Success + } + return false +} + +type MsgSendMessage struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` + DestinationDomain uint32 `protobuf:"varint,2,opt,name=destination_domain,json=destinationDomain,proto3" json:"destination_domain,omitempty"` + Recipient []byte `protobuf:"bytes,3,opt,name=recipient,proto3" json:"recipient,omitempty"` + MessageBody []byte `protobuf:"bytes,4,opt,name=message_body,json=messageBody,proto3" json:"message_body,omitempty"` +} + +func (x *MsgSendMessage) Reset() { + *x = MsgSendMessage{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_tx_proto_msgTypes[34] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgSendMessage) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgSendMessage) ProtoMessage() {} + +// Deprecated: Use MsgSendMessage.ProtoReflect.Descriptor instead. +func (*MsgSendMessage) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_tx_proto_rawDescGZIP(), []int{34} +} + +func (x *MsgSendMessage) GetFrom() string { + if x != nil { + return x.From + } + return "" +} + +func (x *MsgSendMessage) GetDestinationDomain() uint32 { + if x != nil { + return x.DestinationDomain + } + return 0 +} + +func (x *MsgSendMessage) GetRecipient() []byte { + if x != nil { + return x.Recipient + } + return nil +} + +func (x *MsgSendMessage) GetMessageBody() []byte { + if x != nil { + return x.MessageBody + } + return nil +} + +type MsgSendMessageResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Nonce uint64 `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"` +} + +func (x *MsgSendMessageResponse) Reset() { + *x = MsgSendMessageResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_tx_proto_msgTypes[35] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgSendMessageResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgSendMessageResponse) ProtoMessage() {} + +// Deprecated: Use MsgSendMessageResponse.ProtoReflect.Descriptor instead. +func (*MsgSendMessageResponse) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_tx_proto_rawDescGZIP(), []int{35} +} + +func (x *MsgSendMessageResponse) GetNonce() uint64 { + if x != nil { + return x.Nonce + } + return 0 +} + +type MsgSendMessageWithCaller struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` + DestinationDomain uint32 `protobuf:"varint,2,opt,name=destination_domain,json=destinationDomain,proto3" json:"destination_domain,omitempty"` + Recipient []byte `protobuf:"bytes,3,opt,name=recipient,proto3" json:"recipient,omitempty"` + MessageBody []byte `protobuf:"bytes,4,opt,name=message_body,json=messageBody,proto3" json:"message_body,omitempty"` + DestinationCaller []byte `protobuf:"bytes,5,opt,name=destination_caller,json=destinationCaller,proto3" json:"destination_caller,omitempty"` +} + +func (x *MsgSendMessageWithCaller) Reset() { + *x = MsgSendMessageWithCaller{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_tx_proto_msgTypes[36] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgSendMessageWithCaller) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgSendMessageWithCaller) ProtoMessage() {} + +// Deprecated: Use MsgSendMessageWithCaller.ProtoReflect.Descriptor instead. +func (*MsgSendMessageWithCaller) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_tx_proto_rawDescGZIP(), []int{36} +} + +func (x *MsgSendMessageWithCaller) GetFrom() string { + if x != nil { + return x.From + } + return "" +} + +func (x *MsgSendMessageWithCaller) GetDestinationDomain() uint32 { + if x != nil { + return x.DestinationDomain + } + return 0 +} + +func (x *MsgSendMessageWithCaller) GetRecipient() []byte { + if x != nil { + return x.Recipient + } + return nil +} + +func (x *MsgSendMessageWithCaller) GetMessageBody() []byte { + if x != nil { + return x.MessageBody + } + return nil +} + +func (x *MsgSendMessageWithCaller) GetDestinationCaller() []byte { + if x != nil { + return x.DestinationCaller + } + return nil +} + +type MsgSendMessageWithCallerResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Nonce uint64 `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"` +} + +func (x *MsgSendMessageWithCallerResponse) Reset() { + *x = MsgSendMessageWithCallerResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_tx_proto_msgTypes[37] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgSendMessageWithCallerResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgSendMessageWithCallerResponse) ProtoMessage() {} + +// Deprecated: Use MsgSendMessageWithCallerResponse.ProtoReflect.Descriptor instead. +func (*MsgSendMessageWithCallerResponse) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_tx_proto_rawDescGZIP(), []int{37} +} + +func (x *MsgSendMessageWithCallerResponse) GetNonce() uint64 { + if x != nil { + return x.Nonce + } + return 0 +} + +type MsgReplaceMessage struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` + OriginalMessage []byte `protobuf:"bytes,2,opt,name=original_message,json=originalMessage,proto3" json:"original_message,omitempty"` + OriginalAttestation []byte `protobuf:"bytes,3,opt,name=original_attestation,json=originalAttestation,proto3" json:"original_attestation,omitempty"` + NewMessageBody []byte `protobuf:"bytes,4,opt,name=new_message_body,json=newMessageBody,proto3" json:"new_message_body,omitempty"` + NewDestinationCaller []byte `protobuf:"bytes,5,opt,name=new_destination_caller,json=newDestinationCaller,proto3" json:"new_destination_caller,omitempty"` +} + +func (x *MsgReplaceMessage) Reset() { + *x = MsgReplaceMessage{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_tx_proto_msgTypes[38] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgReplaceMessage) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgReplaceMessage) ProtoMessage() {} + +// Deprecated: Use MsgReplaceMessage.ProtoReflect.Descriptor instead. +func (*MsgReplaceMessage) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_tx_proto_rawDescGZIP(), []int{38} +} + +func (x *MsgReplaceMessage) GetFrom() string { + if x != nil { + return x.From + } + return "" +} + +func (x *MsgReplaceMessage) GetOriginalMessage() []byte { + if x != nil { + return x.OriginalMessage + } + return nil +} + +func (x *MsgReplaceMessage) GetOriginalAttestation() []byte { + if x != nil { + return x.OriginalAttestation + } + return nil +} + +func (x *MsgReplaceMessage) GetNewMessageBody() []byte { + if x != nil { + return x.NewMessageBody + } + return nil +} + +func (x *MsgReplaceMessage) GetNewDestinationCaller() []byte { + if x != nil { + return x.NewDestinationCaller + } + return nil +} + +type MsgReplaceMessageResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *MsgReplaceMessageResponse) Reset() { + *x = MsgReplaceMessageResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_tx_proto_msgTypes[39] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgReplaceMessageResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgReplaceMessageResponse) ProtoMessage() {} + +// Deprecated: Use MsgReplaceMessageResponse.ProtoReflect.Descriptor instead. +func (*MsgReplaceMessageResponse) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_tx_proto_rawDescGZIP(), []int{39} +} + +type MsgUpdateSignatureThreshold struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` + Amount uint32 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"` +} + +func (x *MsgUpdateSignatureThreshold) Reset() { + *x = MsgUpdateSignatureThreshold{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_tx_proto_msgTypes[40] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgUpdateSignatureThreshold) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgUpdateSignatureThreshold) ProtoMessage() {} + +// Deprecated: Use MsgUpdateSignatureThreshold.ProtoReflect.Descriptor instead. +func (*MsgUpdateSignatureThreshold) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_tx_proto_rawDescGZIP(), []int{40} +} + +func (x *MsgUpdateSignatureThreshold) GetFrom() string { + if x != nil { + return x.From + } + return "" +} + +func (x *MsgUpdateSignatureThreshold) GetAmount() uint32 { + if x != nil { + return x.Amount + } + return 0 +} + +type MsgUpdateSignatureThresholdResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *MsgUpdateSignatureThresholdResponse) Reset() { + *x = MsgUpdateSignatureThresholdResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_tx_proto_msgTypes[41] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgUpdateSignatureThresholdResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgUpdateSignatureThresholdResponse) ProtoMessage() {} + +// Deprecated: Use MsgUpdateSignatureThresholdResponse.ProtoReflect.Descriptor instead. +func (*MsgUpdateSignatureThresholdResponse) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_tx_proto_rawDescGZIP(), []int{41} +} + +type MsgLinkTokenPair struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` + RemoteDomain uint32 `protobuf:"varint,2,opt,name=remote_domain,json=remoteDomain,proto3" json:"remote_domain,omitempty"` + RemoteToken []byte `protobuf:"bytes,3,opt,name=remote_token,json=remoteToken,proto3" json:"remote_token,omitempty"` + LocalToken string `protobuf:"bytes,4,opt,name=local_token,json=localToken,proto3" json:"local_token,omitempty"` +} + +func (x *MsgLinkTokenPair) Reset() { + *x = MsgLinkTokenPair{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_tx_proto_msgTypes[42] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgLinkTokenPair) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgLinkTokenPair) ProtoMessage() {} + +// Deprecated: Use MsgLinkTokenPair.ProtoReflect.Descriptor instead. +func (*MsgLinkTokenPair) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_tx_proto_rawDescGZIP(), []int{42} +} + +func (x *MsgLinkTokenPair) GetFrom() string { + if x != nil { + return x.From + } + return "" +} + +func (x *MsgLinkTokenPair) GetRemoteDomain() uint32 { + if x != nil { + return x.RemoteDomain + } + return 0 +} + +func (x *MsgLinkTokenPair) GetRemoteToken() []byte { + if x != nil { + return x.RemoteToken + } + return nil +} + +func (x *MsgLinkTokenPair) GetLocalToken() string { + if x != nil { + return x.LocalToken + } + return "" +} + +type MsgLinkTokenPairResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *MsgLinkTokenPairResponse) Reset() { + *x = MsgLinkTokenPairResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_tx_proto_msgTypes[43] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgLinkTokenPairResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgLinkTokenPairResponse) ProtoMessage() {} + +// Deprecated: Use MsgLinkTokenPairResponse.ProtoReflect.Descriptor instead. +func (*MsgLinkTokenPairResponse) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_tx_proto_rawDescGZIP(), []int{43} +} + +type MsgUnlinkTokenPair struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` + RemoteDomain uint32 `protobuf:"varint,2,opt,name=remote_domain,json=remoteDomain,proto3" json:"remote_domain,omitempty"` + RemoteToken []byte `protobuf:"bytes,3,opt,name=remote_token,json=remoteToken,proto3" json:"remote_token,omitempty"` + LocalToken string `protobuf:"bytes,4,opt,name=local_token,json=localToken,proto3" json:"local_token,omitempty"` +} + +func (x *MsgUnlinkTokenPair) Reset() { + *x = MsgUnlinkTokenPair{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_tx_proto_msgTypes[44] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgUnlinkTokenPair) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgUnlinkTokenPair) ProtoMessage() {} + +// Deprecated: Use MsgUnlinkTokenPair.ProtoReflect.Descriptor instead. +func (*MsgUnlinkTokenPair) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_tx_proto_rawDescGZIP(), []int{44} +} + +func (x *MsgUnlinkTokenPair) GetFrom() string { + if x != nil { + return x.From + } + return "" +} + +func (x *MsgUnlinkTokenPair) GetRemoteDomain() uint32 { + if x != nil { + return x.RemoteDomain + } + return 0 +} + +func (x *MsgUnlinkTokenPair) GetRemoteToken() []byte { + if x != nil { + return x.RemoteToken + } + return nil +} + +func (x *MsgUnlinkTokenPair) GetLocalToken() string { + if x != nil { + return x.LocalToken + } + return "" +} + +type MsgUnlinkTokenPairResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *MsgUnlinkTokenPairResponse) Reset() { + *x = MsgUnlinkTokenPairResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_tx_proto_msgTypes[45] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgUnlinkTokenPairResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgUnlinkTokenPairResponse) ProtoMessage() {} + +// Deprecated: Use MsgUnlinkTokenPairResponse.ProtoReflect.Descriptor instead. +func (*MsgUnlinkTokenPairResponse) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_tx_proto_rawDescGZIP(), []int{45} +} + +type MsgAddRemoteTokenMessenger struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` + DomainId uint32 `protobuf:"varint,2,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"` + Address []byte `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"` +} + +func (x *MsgAddRemoteTokenMessenger) Reset() { + *x = MsgAddRemoteTokenMessenger{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_tx_proto_msgTypes[46] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgAddRemoteTokenMessenger) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgAddRemoteTokenMessenger) ProtoMessage() {} + +// Deprecated: Use MsgAddRemoteTokenMessenger.ProtoReflect.Descriptor instead. +func (*MsgAddRemoteTokenMessenger) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_tx_proto_rawDescGZIP(), []int{46} +} + +func (x *MsgAddRemoteTokenMessenger) GetFrom() string { + if x != nil { + return x.From + } + return "" +} + +func (x *MsgAddRemoteTokenMessenger) GetDomainId() uint32 { + if x != nil { + return x.DomainId + } + return 0 +} + +func (x *MsgAddRemoteTokenMessenger) GetAddress() []byte { + if x != nil { + return x.Address + } + return nil +} + +type MsgAddRemoteTokenMessengerResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *MsgAddRemoteTokenMessengerResponse) Reset() { + *x = MsgAddRemoteTokenMessengerResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_tx_proto_msgTypes[47] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgAddRemoteTokenMessengerResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgAddRemoteTokenMessengerResponse) ProtoMessage() {} + +// Deprecated: Use MsgAddRemoteTokenMessengerResponse.ProtoReflect.Descriptor instead. +func (*MsgAddRemoteTokenMessengerResponse) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_tx_proto_rawDescGZIP(), []int{47} +} + +type MsgRemoveRemoteTokenMessenger struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` + DomainId uint32 `protobuf:"varint,2,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"` +} + +func (x *MsgRemoveRemoteTokenMessenger) Reset() { + *x = MsgRemoveRemoteTokenMessenger{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_tx_proto_msgTypes[48] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgRemoveRemoteTokenMessenger) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgRemoveRemoteTokenMessenger) ProtoMessage() {} + +// Deprecated: Use MsgRemoveRemoteTokenMessenger.ProtoReflect.Descriptor instead. +func (*MsgRemoveRemoteTokenMessenger) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_tx_proto_rawDescGZIP(), []int{48} +} + +func (x *MsgRemoveRemoteTokenMessenger) GetFrom() string { + if x != nil { + return x.From + } + return "" +} + +func (x *MsgRemoveRemoteTokenMessenger) GetDomainId() uint32 { + if x != nil { + return x.DomainId + } + return 0 +} + +type MsgRemoveRemoteTokenMessengerResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *MsgRemoveRemoteTokenMessengerResponse) Reset() { + *x = MsgRemoveRemoteTokenMessengerResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_circle_cctp_v1_tx_proto_msgTypes[49] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgRemoveRemoteTokenMessengerResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgRemoveRemoteTokenMessengerResponse) ProtoMessage() {} + +// Deprecated: Use MsgRemoveRemoteTokenMessengerResponse.ProtoReflect.Descriptor instead. +func (*MsgRemoveRemoteTokenMessengerResponse) Descriptor() ([]byte, []int) { + return file_circle_cctp_v1_tx_proto_rawDescGZIP(), []int{49} +} + +var File_circle_cctp_v1_tx_proto protoreflect.FileDescriptor + +var file_circle_cctp_v1_tx_proto_rawDesc = []byte{ + 0x0a, 0x17, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2f, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x76, 0x31, + 0x2f, 0x74, 0x78, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x63, 0x69, 0x72, 0x63, 0x6c, + 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 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, 0x22, 0x9d, 0x01, 0x0a, 0x0e, 0x4d, 0x73, 0x67, 0x55, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x2c, 0x0a, 0x04, 0x66, 0x72, 0x6f, + 0x6d, 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, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x35, 0x0a, 0x09, 0x6e, 0x65, 0x77, 0x5f, 0x6f, + 0x77, 0x6e, 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, 0x08, 0x6e, 0x65, 0x77, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x3a, 0x26, + 0x88, 0xa0, 0x1f, 0x00, 0xe8, 0xa0, 0x1f, 0x00, 0x82, 0xe7, 0xb0, 0x2a, 0x04, 0x66, 0x72, 0x6f, + 0x6d, 0x8a, 0xe7, 0xb0, 0x2a, 0x10, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x22, 0x18, 0x0a, 0x16, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0xc6, 0x01, 0x0a, 0x18, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x74, + 0x74, 0x65, 0x73, 0x74, 0x65, 0x72, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x12, 0x2c, 0x0a, + 0x04, 0x66, 0x72, 0x6f, 0x6d, 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, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x4a, 0x0a, 0x14, 0x6e, + 0x65, 0x77, 0x5f, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x6d, 0x61, 0x6e, 0x61, + 0x67, 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, 0x12, 0x6e, 0x65, 0x77, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x65, 0x72, + 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x3a, 0x30, 0x88, 0xa0, 0x1f, 0x00, 0xe8, 0xa0, 0x1f, + 0x00, 0x82, 0xe7, 0xb0, 0x2a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x8a, 0xe7, 0xb0, 0x2a, 0x1a, 0x63, + 0x63, 0x74, 0x70, 0x2f, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, + 0x65, 0x72, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x22, 0x22, 0x0a, 0x20, 0x4d, 0x73, 0x67, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x65, 0x72, 0x4d, 0x61, + 0x6e, 0x61, 0x67, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xc6, 0x01, + 0x0a, 0x18, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, + 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x12, 0x2c, 0x0a, 0x04, 0x66, 0x72, + 0x6f, 0x6d, 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, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x4a, 0x0a, 0x14, 0x6e, 0x65, 0x77, 0x5f, + 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 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, 0x12, 0x6e, 0x65, 0x77, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, + 0x6c, 0x6c, 0x65, 0x72, 0x3a, 0x30, 0x88, 0xa0, 0x1f, 0x00, 0xe8, 0xa0, 0x1f, 0x00, 0x82, 0xe7, + 0xb0, 0x2a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x8a, 0xe7, 0xb0, 0x2a, 0x1a, 0x63, 0x63, 0x74, 0x70, + 0x2f, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x43, 0x6f, 0x6e, 0x74, + 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x22, 0x22, 0x0a, 0x20, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, + 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xa1, 0x01, 0x0a, 0x0f, 0x4d, + 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x75, 0x73, 0x65, 0x72, 0x12, 0x2c, + 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 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, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x37, 0x0a, 0x0a, + 0x6e, 0x65, 0x77, 0x5f, 0x70, 0x61, 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, 0x09, 0x6e, 0x65, 0x77, 0x50, + 0x61, 0x75, 0x73, 0x65, 0x72, 0x3a, 0x27, 0x88, 0xa0, 0x1f, 0x00, 0xe8, 0xa0, 0x1f, 0x00, 0x82, + 0xe7, 0xb0, 0x2a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x8a, 0xe7, 0xb0, 0x2a, 0x11, 0x63, 0x63, 0x74, + 0x70, 0x2f, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x75, 0x73, 0x65, 0x72, 0x22, 0x19, + 0x0a, 0x17, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x75, 0x73, 0x65, + 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x66, 0x0a, 0x0e, 0x4d, 0x73, 0x67, + 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x2c, 0x0a, 0x04, 0x66, + 0x72, 0x6f, 0x6d, 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, 0x66, 0x72, 0x6f, 0x6d, 0x3a, 0x26, 0x88, 0xa0, 0x1f, 0x00, 0xe8, + 0xa0, 0x1f, 0x00, 0x82, 0xe7, 0xb0, 0x2a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x8a, 0xe7, 0xb0, 0x2a, + 0x10, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x4f, 0x77, 0x6e, 0x65, + 0x72, 0x22, 0x18, 0x0a, 0x16, 0x4d, 0x73, 0x67, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x4f, 0x77, + 0x6e, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x88, 0x01, 0x0a, 0x11, + 0x4d, 0x73, 0x67, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x65, + 0x72, 0x12, 0x2c, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 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, 0x66, 0x72, 0x6f, 0x6d, 0x12, + 0x1a, 0x0a, 0x08, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x08, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x65, 0x72, 0x3a, 0x29, 0x88, 0xa0, 0x1f, + 0x00, 0xe8, 0xa0, 0x1f, 0x00, 0x82, 0xe7, 0xb0, 0x2a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x8a, 0xe7, + 0xb0, 0x2a, 0x13, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x74, + 0x74, 0x65, 0x73, 0x74, 0x65, 0x72, 0x22, 0x1b, 0x0a, 0x19, 0x4d, 0x73, 0x67, 0x45, 0x6e, 0x61, + 0x62, 0x6c, 0x65, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x8a, 0x01, 0x0a, 0x12, 0x4d, 0x73, 0x67, 0x44, 0x69, 0x73, 0x61, 0x62, + 0x6c, 0x65, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x65, 0x72, 0x12, 0x2c, 0x0a, 0x04, 0x66, 0x72, + 0x6f, 0x6d, 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, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x74, 0x74, 0x65, + 0x73, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x61, 0x74, 0x74, 0x65, + 0x73, 0x74, 0x65, 0x72, 0x3a, 0x2a, 0x88, 0xa0, 0x1f, 0x00, 0xe8, 0xa0, 0x1f, 0x00, 0x82, 0xe7, + 0xb0, 0x2a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x8a, 0xe7, 0xb0, 0x2a, 0x14, 0x63, 0x63, 0x74, 0x70, + 0x2f, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x65, 0x72, + 0x22, 0x1c, 0x0a, 0x1a, 0x4d, 0x73, 0x67, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x74, + 0x74, 0x65, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x7c, + 0x0a, 0x19, 0x4d, 0x73, 0x67, 0x50, 0x61, 0x75, 0x73, 0x65, 0x42, 0x75, 0x72, 0x6e, 0x69, 0x6e, + 0x67, 0x41, 0x6e, 0x64, 0x4d, 0x69, 0x6e, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x2c, 0x0a, 0x04, 0x66, + 0x72, 0x6f, 0x6d, 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, 0x66, 0x72, 0x6f, 0x6d, 0x3a, 0x31, 0x88, 0xa0, 0x1f, 0x00, 0xe8, + 0xa0, 0x1f, 0x00, 0x82, 0xe7, 0xb0, 0x2a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x8a, 0xe7, 0xb0, 0x2a, + 0x1b, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x50, 0x61, 0x75, 0x73, 0x65, 0x42, 0x75, 0x72, 0x6e, 0x69, + 0x6e, 0x67, 0x41, 0x6e, 0x64, 0x4d, 0x69, 0x6e, 0x74, 0x69, 0x6e, 0x67, 0x22, 0x23, 0x0a, 0x21, + 0x4d, 0x73, 0x67, 0x50, 0x61, 0x75, 0x73, 0x65, 0x42, 0x75, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x41, + 0x6e, 0x64, 0x4d, 0x69, 0x6e, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x80, 0x01, 0x0a, 0x1b, 0x4d, 0x73, 0x67, 0x55, 0x6e, 0x70, 0x61, 0x75, 0x73, 0x65, + 0x42, 0x75, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x41, 0x6e, 0x64, 0x4d, 0x69, 0x6e, 0x74, 0x69, 0x6e, + 0x67, 0x12, 0x2c, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 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, 0x66, 0x72, 0x6f, 0x6d, 0x3a, + 0x33, 0x88, 0xa0, 0x1f, 0x00, 0xe8, 0xa0, 0x1f, 0x00, 0x82, 0xe7, 0xb0, 0x2a, 0x04, 0x66, 0x72, + 0x6f, 0x6d, 0x8a, 0xe7, 0xb0, 0x2a, 0x1d, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x55, 0x6e, 0x70, 0x61, + 0x75, 0x73, 0x65, 0x42, 0x75, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x41, 0x6e, 0x64, 0x4d, 0x69, 0x6e, + 0x74, 0x69, 0x6e, 0x67, 0x22, 0x25, 0x0a, 0x23, 0x4d, 0x73, 0x67, 0x55, 0x6e, 0x70, 0x61, 0x75, + 0x73, 0x65, 0x42, 0x75, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x41, 0x6e, 0x64, 0x4d, 0x69, 0x6e, 0x74, + 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x90, 0x01, 0x0a, 0x23, + 0x4d, 0x73, 0x67, 0x50, 0x61, 0x75, 0x73, 0x65, 0x53, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x41, + 0x6e, 0x64, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x69, 0x6e, 0x67, 0x4d, 0x65, 0x73, 0x73, 0x61, + 0x67, 0x65, 0x73, 0x12, 0x2c, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 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, 0x66, 0x72, 0x6f, + 0x6d, 0x3a, 0x3b, 0x88, 0xa0, 0x1f, 0x00, 0xe8, 0xa0, 0x1f, 0x00, 0x82, 0xe7, 0xb0, 0x2a, 0x04, + 0x66, 0x72, 0x6f, 0x6d, 0x8a, 0xe7, 0xb0, 0x2a, 0x25, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x50, 0x61, + 0x75, 0x73, 0x65, 0x53, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x41, 0x6e, 0x64, 0x52, 0x65, 0x63, + 0x65, 0x69, 0x76, 0x69, 0x6e, 0x67, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x22, 0x2d, + 0x0a, 0x2b, 0x4d, 0x73, 0x67, 0x50, 0x61, 0x75, 0x73, 0x65, 0x53, 0x65, 0x6e, 0x64, 0x69, 0x6e, + 0x67, 0x41, 0x6e, 0x64, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x69, 0x6e, 0x67, 0x4d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x94, 0x01, + 0x0a, 0x25, 0x4d, 0x73, 0x67, 0x55, 0x6e, 0x70, 0x61, 0x75, 0x73, 0x65, 0x53, 0x65, 0x6e, 0x64, + 0x69, 0x6e, 0x67, 0x41, 0x6e, 0x64, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x69, 0x6e, 0x67, 0x4d, + 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x12, 0x2c, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 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, 0x66, 0x72, 0x6f, 0x6d, 0x3a, 0x3d, 0x88, 0xa0, 0x1f, 0x00, 0xe8, 0xa0, 0x1f, 0x00, 0x82, + 0xe7, 0xb0, 0x2a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x8a, 0xe7, 0xb0, 0x2a, 0x27, 0x63, 0x63, 0x74, + 0x70, 0x2f, 0x55, 0x6e, 0x70, 0x61, 0x75, 0x73, 0x65, 0x53, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, + 0x41, 0x6e, 0x64, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x69, 0x6e, 0x67, 0x4d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x73, 0x22, 0x2f, 0x0a, 0x2d, 0x4d, 0x73, 0x67, 0x55, 0x6e, 0x70, 0x61, 0x75, + 0x73, 0x65, 0x53, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x41, 0x6e, 0x64, 0x52, 0x65, 0x63, 0x65, + 0x69, 0x76, 0x69, 0x6e, 0x67, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xa3, 0x01, 0x0a, 0x1b, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x4d, 0x61, 0x78, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x42, 0x6f, 0x64, + 0x79, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x2c, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 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, 0x66, + 0x72, 0x6f, 0x6d, 0x12, 0x21, 0x0a, 0x0c, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x73, + 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x6d, 0x65, 0x73, 0x73, 0x61, + 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x3a, 0x33, 0x88, 0xa0, 0x1f, 0x00, 0xe8, 0xa0, 0x1f, 0x00, + 0x82, 0xe7, 0xb0, 0x2a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x8a, 0xe7, 0xb0, 0x2a, 0x1d, 0x63, 0x63, + 0x74, 0x70, 0x2f, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x78, 0x4d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x42, 0x6f, 0x64, 0x79, 0x53, 0x69, 0x7a, 0x65, 0x22, 0x25, 0x0a, 0x23, 0x4d, + 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x78, 0x4d, 0x65, 0x73, 0x73, 0x61, + 0x67, 0x65, 0x42, 0x6f, 0x64, 0x79, 0x53, 0x69, 0x7a, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0xdc, 0x01, 0x0a, 0x1d, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x4d, 0x61, 0x78, + 0x42, 0x75, 0x72, 0x6e, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x50, 0x65, 0x72, 0x4d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x12, 0x2c, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 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, 0x66, 0x72, + 0x6f, 0x6d, 0x12, 0x1f, 0x0a, 0x0b, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x5f, 0x74, 0x6f, 0x6b, 0x65, + 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x54, 0x6f, + 0x6b, 0x65, 0x6e, 0x12, 0x35, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x42, 0x1d, 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, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x3a, 0x35, 0x88, 0xa0, 0x1f, 0x00, + 0xe8, 0xa0, 0x1f, 0x00, 0x82, 0xe7, 0xb0, 0x2a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x8a, 0xe7, 0xb0, + 0x2a, 0x1f, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x53, 0x65, 0x74, 0x4d, 0x61, 0x78, 0x42, 0x75, 0x72, + 0x6e, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x50, 0x65, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, + 0x65, 0x22, 0x27, 0x0a, 0x25, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x4d, 0x61, 0x78, 0x42, 0x75, + 0x72, 0x6e, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x50, 0x65, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, + 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x98, 0x02, 0x0a, 0x11, 0x4d, + 0x73, 0x67, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x46, 0x6f, 0x72, 0x42, 0x75, 0x72, 0x6e, + 0x12, 0x2c, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 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, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x35, + 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x1d, + 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, 0x52, 0x06, 0x61, + 0x6d, 0x6f, 0x75, 0x6e, 0x74, 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, 0x25, 0x0a, 0x0e, 0x6d, 0x69, 0x6e, 0x74, 0x5f, 0x72, 0x65, 0x63, + 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, 0x6d, 0x69, + 0x6e, 0x74, 0x52, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x62, + 0x75, 0x72, 0x6e, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x09, 0x62, 0x75, 0x72, 0x6e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x3a, 0x29, 0x88, 0xa0, 0x1f, 0x00, + 0xe8, 0xa0, 0x1f, 0x00, 0x82, 0xe7, 0xb0, 0x2a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x8a, 0xe7, 0xb0, + 0x2a, 0x13, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x46, 0x6f, + 0x72, 0x42, 0x75, 0x72, 0x6e, 0x22, 0x31, 0x0a, 0x19, 0x4d, 0x73, 0x67, 0x44, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x46, 0x6f, 0x72, 0x42, 0x75, 0x72, 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, 0x22, 0xdb, 0x02, 0x0a, 0x1b, 0x4d, 0x73, 0x67, + 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x46, 0x6f, 0x72, 0x42, 0x75, 0x72, 0x6e, 0x57, 0x69, + 0x74, 0x68, 0x43, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x12, 0x2c, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, + 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, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x35, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x1d, 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, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 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, 0x25, 0x0a, 0x0e, + 0x6d, 0x69, 0x6e, 0x74, 0x5f, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, 0x6d, 0x69, 0x6e, 0x74, 0x52, 0x65, 0x63, 0x69, 0x70, 0x69, + 0x65, 0x6e, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x62, 0x75, 0x72, 0x6e, 0x5f, 0x74, 0x6f, 0x6b, 0x65, + 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x62, 0x75, 0x72, 0x6e, 0x54, 0x6f, 0x6b, + 0x65, 0x6e, 0x12, 0x2d, 0x0a, 0x12, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x5f, 0x63, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x11, + 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x61, 0x6c, 0x6c, 0x65, + 0x72, 0x3a, 0x33, 0x88, 0xa0, 0x1f, 0x00, 0xe8, 0xa0, 0x1f, 0x00, 0x82, 0xe7, 0xb0, 0x2a, 0x04, + 0x66, 0x72, 0x6f, 0x6d, 0x8a, 0xe7, 0xb0, 0x2a, 0x1d, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x44, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x46, 0x6f, 0x72, 0x42, 0x75, 0x72, 0x6e, 0x57, 0x69, 0x74, 0x68, + 0x43, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x22, 0x3b, 0x0a, 0x23, 0x4d, 0x73, 0x67, 0x44, 0x65, 0x70, + 0x6f, 0x73, 0x69, 0x74, 0x46, 0x6f, 0x72, 0x42, 0x75, 0x72, 0x6e, 0x57, 0x69, 0x74, 0x68, 0x43, + 0x61, 0x6c, 0x6c, 0x65, 0x72, 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, 0x22, 0xbc, 0x02, 0x0a, 0x18, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x70, 0x6c, 0x61, + 0x63, 0x65, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x46, 0x6f, 0x72, 0x42, 0x75, 0x72, 0x6e, + 0x12, 0x2c, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 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, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x29, + 0x0a, 0x10, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, + 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0f, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, + 0x61, 0x6c, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x31, 0x0a, 0x14, 0x6f, 0x72, 0x69, + 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x5f, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x13, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, + 0x6c, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x34, 0x0a, 0x16, + 0x6e, 0x65, 0x77, 0x5f, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, + 0x63, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x14, 0x6e, 0x65, + 0x77, 0x44, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x61, 0x6c, 0x6c, + 0x65, 0x72, 0x12, 0x2c, 0x0a, 0x12, 0x6e, 0x65, 0x77, 0x5f, 0x6d, 0x69, 0x6e, 0x74, 0x5f, 0x72, + 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x10, + 0x6e, 0x65, 0x77, 0x4d, 0x69, 0x6e, 0x74, 0x52, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, + 0x3a, 0x30, 0x88, 0xa0, 0x1f, 0x00, 0xe8, 0xa0, 0x1f, 0x00, 0x82, 0xe7, 0xb0, 0x2a, 0x04, 0x66, + 0x72, 0x6f, 0x6d, 0x8a, 0xe7, 0xb0, 0x2a, 0x1a, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x52, 0x65, 0x70, + 0x6c, 0x61, 0x63, 0x65, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x46, 0x6f, 0x72, 0x42, 0x75, + 0x72, 0x6e, 0x22, 0x22, 0x0a, 0x20, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x70, 0x6c, 0x61, 0x63, 0x65, + 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x46, 0x6f, 0x72, 0x42, 0x75, 0x72, 0x6e, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xa8, 0x01, 0x0a, 0x11, 0x4d, 0x73, 0x67, 0x52, 0x65, + 0x63, 0x65, 0x69, 0x76, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x2c, 0x0a, 0x04, + 0x66, 0x72, 0x6f, 0x6d, 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, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, + 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x6d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x61, 0x74, 0x74, 0x65, 0x73, + 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x29, 0x88, 0xa0, 0x1f, 0x00, 0xe8, 0xa0, 0x1f, 0x00, + 0x82, 0xe7, 0xb0, 0x2a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x8a, 0xe7, 0xb0, 0x2a, 0x13, 0x63, 0x63, + 0x74, 0x70, 0x2f, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, + 0x65, 0x22, 0x35, 0x0a, 0x19, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x4d, + 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, + 0x0a, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, + 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x22, 0xd6, 0x01, 0x0a, 0x0e, 0x4d, 0x73, 0x67, + 0x53, 0x65, 0x6e, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x2c, 0x0a, 0x04, 0x66, + 0x72, 0x6f, 0x6d, 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, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x2d, 0x0a, 0x12, 0x64, 0x65, 0x73, + 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x11, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x63, 0x69, + 0x70, 0x69, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x72, 0x65, 0x63, + 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, + 0x65, 0x5f, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x6d, 0x65, + 0x73, 0x73, 0x61, 0x67, 0x65, 0x42, 0x6f, 0x64, 0x79, 0x3a, 0x26, 0x88, 0xa0, 0x1f, 0x00, 0xe8, + 0xa0, 0x1f, 0x00, 0x82, 0xe7, 0xb0, 0x2a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x8a, 0xe7, 0xb0, 0x2a, + 0x10, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x53, 0x65, 0x6e, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, + 0x65, 0x22, 0x2e, 0x0a, 0x16, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x6e, 0x64, 0x4d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 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, 0x22, 0x99, 0x02, 0x0a, 0x18, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x6e, 0x64, 0x4d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x57, 0x69, 0x74, 0x68, 0x43, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x12, 0x2c, + 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 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, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x2d, 0x0a, 0x12, + 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x6f, 0x6d, 0x61, + 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x11, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x72, + 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, + 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x6d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x5f, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x0b, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x42, 0x6f, 0x64, 0x79, 0x12, 0x2d, 0x0a, 0x12, + 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x61, 0x6c, 0x6c, + 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x11, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x3a, 0x30, 0x88, 0xa0, 0x1f, + 0x00, 0xe8, 0xa0, 0x1f, 0x00, 0x82, 0xe7, 0xb0, 0x2a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x8a, 0xe7, + 0xb0, 0x2a, 0x1a, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x53, 0x65, 0x6e, 0x64, 0x4d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x57, 0x69, 0x74, 0x68, 0x43, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x22, 0x38, 0x0a, + 0x20, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x6e, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x57, + 0x69, 0x74, 0x68, 0x43, 0x61, 0x6c, 0x6c, 0x65, 0x72, 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, 0x22, 0xaa, 0x02, 0x0a, 0x11, 0x4d, 0x73, 0x67, 0x52, + 0x65, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x2c, 0x0a, + 0x04, 0x66, 0x72, 0x6f, 0x6d, 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, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x29, 0x0a, 0x10, 0x6f, + 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0f, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x4d, + 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x31, 0x0a, 0x14, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, + 0x61, 0x6c, 0x5f, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x13, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x41, 0x74, + 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x28, 0x0a, 0x10, 0x6e, 0x65, 0x77, + 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x0e, 0x6e, 0x65, 0x77, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x42, + 0x6f, 0x64, 0x79, 0x12, 0x34, 0x0a, 0x16, 0x6e, 0x65, 0x77, 0x5f, 0x64, 0x65, 0x73, 0x74, 0x69, + 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x14, 0x6e, 0x65, 0x77, 0x44, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x43, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x3a, 0x29, 0x88, 0xa0, 0x1f, 0x00, 0xe8, + 0xa0, 0x1f, 0x00, 0x82, 0xe7, 0xb0, 0x2a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x8a, 0xe7, 0xb0, 0x2a, + 0x13, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x52, 0x65, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x4d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x22, 0x1b, 0x0a, 0x19, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x70, 0x6c, 0x61, + 0x63, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x98, 0x01, 0x0a, 0x1b, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, + 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, + 0x64, 0x12, 0x2c, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 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, 0x66, 0x72, 0x6f, 0x6d, 0x12, + 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, + 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x3a, 0x33, 0x88, 0xa0, 0x1f, 0x00, 0xe8, 0xa0, 0x1f, + 0x00, 0x82, 0xe7, 0xb0, 0x2a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x8a, 0xe7, 0xb0, 0x2a, 0x1d, 0x63, + 0x63, 0x74, 0x70, 0x2f, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, + 0x75, 0x72, 0x65, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x22, 0x25, 0x0a, 0x23, + 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, + 0x72, 0x65, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0xd3, 0x01, 0x0a, 0x10, 0x4d, 0x73, 0x67, 0x4c, 0x69, 0x6e, 0x6b, 0x54, + 0x6f, 0x6b, 0x65, 0x6e, 0x50, 0x61, 0x69, 0x72, 0x12, 0x2c, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, + 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, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, + 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0c, 0x72, + 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x72, + 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x0b, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1f, + 0x0a, 0x0b, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x3a, + 0x28, 0x88, 0xa0, 0x1f, 0x00, 0xe8, 0xa0, 0x1f, 0x00, 0x82, 0xe7, 0xb0, 0x2a, 0x04, 0x66, 0x72, + 0x6f, 0x6d, 0x8a, 0xe7, 0xb0, 0x2a, 0x12, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x4c, 0x69, 0x6e, 0x6b, + 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x50, 0x61, 0x69, 0x72, 0x22, 0x1a, 0x0a, 0x18, 0x4d, 0x73, 0x67, + 0x4c, 0x69, 0x6e, 0x6b, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x50, 0x61, 0x69, 0x72, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xd7, 0x01, 0x0a, 0x12, 0x4d, 0x73, 0x67, 0x55, 0x6e, 0x6c, + 0x69, 0x6e, 0x6b, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x50, 0x61, 0x69, 0x72, 0x12, 0x2c, 0x0a, 0x04, + 0x66, 0x72, 0x6f, 0x6d, 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, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, + 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0d, 0x52, 0x0c, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, + 0x21, 0x0a, 0x0c, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x54, 0x6f, 0x6b, + 0x65, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x5f, 0x74, 0x6f, 0x6b, 0x65, + 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x54, 0x6f, + 0x6b, 0x65, 0x6e, 0x3a, 0x2a, 0x88, 0xa0, 0x1f, 0x00, 0xe8, 0xa0, 0x1f, 0x00, 0x82, 0xe7, 0xb0, + 0x2a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x8a, 0xe7, 0xb0, 0x2a, 0x14, 0x63, 0x63, 0x74, 0x70, 0x2f, + 0x55, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x50, 0x61, 0x69, 0x72, 0x22, + 0x1c, 0x0a, 0x1a, 0x4d, 0x73, 0x67, 0x55, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x54, 0x6f, 0x6b, 0x65, + 0x6e, 0x50, 0x61, 0x69, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xb5, 0x01, + 0x0a, 0x1a, 0x4d, 0x73, 0x67, 0x41, 0x64, 0x64, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x54, 0x6f, + 0x6b, 0x65, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x65, 0x6e, 0x67, 0x65, 0x72, 0x12, 0x2c, 0x0a, 0x04, + 0x66, 0x72, 0x6f, 0x6d, 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, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x6f, + 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x64, + 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x3a, 0x32, 0x88, 0xa0, 0x1f, 0x00, 0xe8, 0xa0, 0x1f, 0x00, 0x82, 0xe7, 0xb0, 0x2a, 0x04, + 0x66, 0x72, 0x6f, 0x6d, 0x8a, 0xe7, 0xb0, 0x2a, 0x1c, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x41, 0x64, + 0x64, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x4d, 0x65, 0x73, 0x73, + 0x65, 0x6e, 0x67, 0x65, 0x72, 0x22, 0x24, 0x0a, 0x22, 0x4d, 0x73, 0x67, 0x41, 0x64, 0x64, 0x52, + 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x65, 0x6e, + 0x67, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xa1, 0x01, 0x0a, 0x1d, + 0x4d, 0x73, 0x67, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x54, + 0x6f, 0x6b, 0x65, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x65, 0x6e, 0x67, 0x65, 0x72, 0x12, 0x2c, 0x0a, + 0x04, 0x66, 0x72, 0x6f, 0x6d, 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, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x1b, 0x0a, 0x09, 0x64, + 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, + 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x3a, 0x35, 0x88, 0xa0, 0x1f, 0x00, 0xe8, 0xa0, + 0x1f, 0x00, 0x82, 0xe7, 0xb0, 0x2a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x8a, 0xe7, 0xb0, 0x2a, 0x1f, + 0x63, 0x63, 0x74, 0x70, 0x2f, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x6d, 0x6f, 0x74, + 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x65, 0x6e, 0x67, 0x65, 0x72, 0x22, + 0x27, 0x0a, 0x25, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x6d, 0x6f, + 0x74, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x65, 0x6e, 0x67, 0x65, 0x72, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0x8b, 0x16, 0x0a, 0x03, 0x4d, 0x73, 0x67, + 0x12, 0x55, 0x0a, 0x0b, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x12, + 0x1e, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, + 0x2e, 0x4d, 0x73, 0x67, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x1a, + 0x26, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, + 0x2e, 0x4d, 0x73, 0x67, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x79, 0x0a, 0x17, 0x41, 0x64, 0x64, 0x52, 0x65, + 0x6d, 0x6f, 0x74, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x65, 0x6e, 0x67, + 0x65, 0x72, 0x12, 0x2a, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, + 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x41, 0x64, 0x64, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, + 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x65, 0x6e, 0x67, 0x65, 0x72, 0x1a, 0x32, + 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, + 0x4d, 0x73, 0x67, 0x41, 0x64, 0x64, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x54, 0x6f, 0x6b, 0x65, + 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x65, 0x6e, 0x67, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x5e, 0x0a, 0x0e, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x46, 0x6f, 0x72, + 0x42, 0x75, 0x72, 0x6e, 0x12, 0x21, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, + 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x46, 0x6f, 0x72, 0x42, 0x75, 0x72, 0x6e, 0x1a, 0x29, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, + 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x44, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x46, 0x6f, 0x72, 0x42, 0x75, 0x72, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x7c, 0x0a, 0x18, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x46, 0x6f, 0x72, + 0x42, 0x75, 0x72, 0x6e, 0x57, 0x69, 0x74, 0x68, 0x43, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x12, 0x2b, + 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, + 0x4d, 0x73, 0x67, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x46, 0x6f, 0x72, 0x42, 0x75, 0x72, + 0x6e, 0x57, 0x69, 0x74, 0x68, 0x43, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x1a, 0x33, 0x2e, 0x63, 0x69, + 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, + 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x46, 0x6f, 0x72, 0x42, 0x75, 0x72, 0x6e, 0x57, 0x69, + 0x74, 0x68, 0x43, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x61, 0x0a, 0x0f, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x74, 0x74, 0x65, 0x73, + 0x74, 0x65, 0x72, 0x12, 0x22, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, + 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x41, + 0x74, 0x74, 0x65, 0x73, 0x74, 0x65, 0x72, 0x1a, 0x2a, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, + 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x44, 0x69, 0x73, 0x61, + 0x62, 0x6c, 0x65, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x5e, 0x0a, 0x0e, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x74, 0x74, + 0x65, 0x73, 0x74, 0x65, 0x72, 0x12, 0x21, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, + 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, + 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x65, 0x72, 0x1a, 0x29, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, + 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x45, 0x6e, 0x61, + 0x62, 0x6c, 0x65, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x5b, 0x0a, 0x0d, 0x4c, 0x69, 0x6e, 0x6b, 0x54, 0x6f, 0x6b, 0x65, 0x6e, + 0x50, 0x61, 0x69, 0x72, 0x12, 0x20, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, + 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x4c, 0x69, 0x6e, 0x6b, 0x54, 0x6f, 0x6b, + 0x65, 0x6e, 0x50, 0x61, 0x69, 0x72, 0x1a, 0x28, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, + 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x4c, 0x69, 0x6e, 0x6b, 0x54, + 0x6f, 0x6b, 0x65, 0x6e, 0x50, 0x61, 0x69, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x76, 0x0a, 0x16, 0x50, 0x61, 0x75, 0x73, 0x65, 0x42, 0x75, 0x72, 0x6e, 0x69, 0x6e, 0x67, + 0x41, 0x6e, 0x64, 0x4d, 0x69, 0x6e, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x29, 0x2e, 0x63, 0x69, 0x72, + 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x50, + 0x61, 0x75, 0x73, 0x65, 0x42, 0x75, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x41, 0x6e, 0x64, 0x4d, 0x69, + 0x6e, 0x74, 0x69, 0x6e, 0x67, 0x1a, 0x31, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, + 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x50, 0x61, 0x75, 0x73, 0x65, 0x42, + 0x75, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x41, 0x6e, 0x64, 0x4d, 0x69, 0x6e, 0x74, 0x69, 0x6e, 0x67, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x94, 0x01, 0x0a, 0x20, 0x50, 0x61, 0x75, + 0x73, 0x65, 0x53, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x41, 0x6e, 0x64, 0x52, 0x65, 0x63, 0x65, + 0x69, 0x76, 0x69, 0x6e, 0x67, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x12, 0x33, 0x2e, + 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4d, + 0x73, 0x67, 0x50, 0x61, 0x75, 0x73, 0x65, 0x53, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x41, 0x6e, + 0x64, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x69, 0x6e, 0x67, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, + 0x65, 0x73, 0x1a, 0x3b, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, + 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x50, 0x61, 0x75, 0x73, 0x65, 0x53, 0x65, 0x6e, 0x64, + 0x69, 0x6e, 0x67, 0x41, 0x6e, 0x64, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x69, 0x6e, 0x67, 0x4d, + 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x5e, 0x0a, 0x0e, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, + 0x65, 0x12, 0x21, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, + 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x4d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x1a, 0x29, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, + 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, + 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x82, 0x01, 0x0a, 0x1a, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, + 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x65, 0x6e, 0x67, 0x65, 0x72, 0x12, 0x2d, + 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, + 0x4d, 0x73, 0x67, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x54, + 0x6f, 0x6b, 0x65, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x65, 0x6e, 0x67, 0x65, 0x72, 0x1a, 0x35, 0x2e, + 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4d, + 0x73, 0x67, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x54, 0x6f, + 0x6b, 0x65, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x65, 0x6e, 0x67, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x73, 0x0a, 0x15, 0x52, 0x65, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x44, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x46, 0x6f, 0x72, 0x42, 0x75, 0x72, 0x6e, 0x12, 0x28, 0x2e, + 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4d, + 0x73, 0x67, 0x52, 0x65, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x46, 0x6f, 0x72, 0x42, 0x75, 0x72, 0x6e, 0x1a, 0x30, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, + 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x70, 0x6c, + 0x61, 0x63, 0x65, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x46, 0x6f, 0x72, 0x42, 0x75, 0x72, + 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5e, 0x0a, 0x0e, 0x52, 0x65, 0x70, + 0x6c, 0x61, 0x63, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x21, 0x2e, 0x63, 0x69, + 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, + 0x52, 0x65, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x1a, 0x29, + 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, + 0x4d, 0x73, 0x67, 0x52, 0x65, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, + 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x55, 0x0a, 0x0b, 0x53, 0x65, 0x6e, + 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1e, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, + 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x6e, + 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x1a, 0x26, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, + 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x6e, + 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x73, 0x0a, 0x15, 0x53, 0x65, 0x6e, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x57, + 0x69, 0x74, 0x68, 0x43, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x12, 0x28, 0x2e, 0x63, 0x69, 0x72, 0x63, + 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, + 0x6e, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x57, 0x69, 0x74, 0x68, 0x43, 0x61, 0x6c, + 0x6c, 0x65, 0x72, 0x1a, 0x30, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, + 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x6e, 0x64, 0x4d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x57, 0x69, 0x74, 0x68, 0x43, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x61, 0x0a, 0x0f, 0x55, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x54, + 0x6f, 0x6b, 0x65, 0x6e, 0x50, 0x61, 0x69, 0x72, 0x12, 0x22, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, + 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x6e, 0x6c, + 0x69, 0x6e, 0x6b, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x50, 0x61, 0x69, 0x72, 0x1a, 0x2a, 0x2e, 0x63, + 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, + 0x67, 0x55, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x50, 0x61, 0x69, 0x72, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7c, 0x0a, 0x18, 0x55, 0x6e, 0x70, 0x61, + 0x75, 0x73, 0x65, 0x42, 0x75, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x41, 0x6e, 0x64, 0x4d, 0x69, 0x6e, + 0x74, 0x69, 0x6e, 0x67, 0x12, 0x2b, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, + 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x6e, 0x70, 0x61, 0x75, 0x73, 0x65, + 0x42, 0x75, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x41, 0x6e, 0x64, 0x4d, 0x69, 0x6e, 0x74, 0x69, 0x6e, + 0x67, 0x1a, 0x33, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, + 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x6e, 0x70, 0x61, 0x75, 0x73, 0x65, 0x42, 0x75, 0x72, + 0x6e, 0x69, 0x6e, 0x67, 0x41, 0x6e, 0x64, 0x4d, 0x69, 0x6e, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x9a, 0x01, 0x0a, 0x22, 0x55, 0x6e, 0x70, 0x61, 0x75, + 0x73, 0x65, 0x53, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x41, 0x6e, 0x64, 0x52, 0x65, 0x63, 0x65, + 0x69, 0x76, 0x69, 0x6e, 0x67, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x12, 0x35, 0x2e, + 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4d, + 0x73, 0x67, 0x55, 0x6e, 0x70, 0x61, 0x75, 0x73, 0x65, 0x53, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, + 0x41, 0x6e, 0x64, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x69, 0x6e, 0x67, 0x4d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x73, 0x1a, 0x3d, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, + 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x6e, 0x70, 0x61, 0x75, 0x73, 0x65, + 0x53, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x41, 0x6e, 0x64, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, + 0x69, 0x6e, 0x67, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x55, 0x0a, 0x0b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x77, 0x6e, + 0x65, 0x72, 0x12, 0x1e, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, + 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x77, 0x6e, + 0x65, 0x72, 0x1a, 0x26, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, + 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x77, 0x6e, + 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x73, 0x0a, 0x15, 0x55, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x65, 0x72, 0x4d, 0x61, 0x6e, 0x61, + 0x67, 0x65, 0x72, 0x12, 0x28, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, + 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x74, + 0x74, 0x65, 0x73, 0x74, 0x65, 0x72, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x1a, 0x30, 0x2e, + 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4d, + 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x65, 0x72, + 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x73, 0x0a, 0x15, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x43, 0x6f, + 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x12, 0x28, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, + 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, + 0x65, 0x72, 0x1a, 0x30, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, + 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x6f, 0x6b, + 0x65, 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x58, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, + 0x75, 0x73, 0x65, 0x72, 0x12, 0x1f, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, + 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, + 0x61, 0x75, 0x73, 0x65, 0x72, 0x1a, 0x27, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, + 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x50, 0x61, 0x75, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7c, + 0x0a, 0x18, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x78, 0x4d, 0x65, 0x73, 0x73, 0x61, + 0x67, 0x65, 0x42, 0x6f, 0x64, 0x79, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x2b, 0x2e, 0x63, 0x69, 0x72, + 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x78, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x42, + 0x6f, 0x64, 0x79, 0x53, 0x69, 0x7a, 0x65, 0x1a, 0x33, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, + 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x4d, 0x61, 0x78, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x42, 0x6f, 0x64, 0x79, + 0x53, 0x69, 0x7a, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x82, 0x01, 0x0a, + 0x1a, 0x53, 0x65, 0x74, 0x4d, 0x61, 0x78, 0x42, 0x75, 0x72, 0x6e, 0x41, 0x6d, 0x6f, 0x75, 0x6e, + 0x74, 0x50, 0x65, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x2d, 0x2e, 0x63, 0x69, + 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, + 0x53, 0x65, 0x74, 0x4d, 0x61, 0x78, 0x42, 0x75, 0x72, 0x6e, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, + 0x50, 0x65, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x1a, 0x35, 0x2e, 0x63, 0x69, 0x72, + 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x53, + 0x65, 0x74, 0x4d, 0x61, 0x78, 0x42, 0x75, 0x72, 0x6e, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x50, + 0x65, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x7c, 0x0a, 0x18, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x69, 0x67, 0x6e, 0x61, + 0x74, 0x75, 0x72, 0x65, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x12, 0x2b, 0x2e, + 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4d, + 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, + 0x65, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x1a, 0x33, 0x2e, 0x63, 0x69, 0x72, + 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x54, 0x68, + 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x1a, + 0x05, 0x80, 0xe7, 0xb0, 0x2a, 0x01, 0x42, 0xb2, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x63, + 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2e, 0x63, 0x63, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x42, 0x07, 0x54, + 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x39, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, + 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x66, 0x69, 0x6e, 0x2f, 0x6e, + 0x6f, 0x62, 0x6c, 0x65, 0x2d, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x69, + 0x72, 0x63, 0x6c, 0x65, 0x2f, 0x63, 0x63, 0x74, 0x70, 0x2f, 0x76, 0x31, 0x3b, 0x63, 0x63, 0x74, + 0x70, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x43, 0x58, 0xaa, 0x02, 0x0e, 0x43, 0x69, 0x72, 0x63, + 0x6c, 0x65, 0x2e, 0x43, 0x63, 0x74, 0x70, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0e, 0x43, 0x69, 0x72, + 0x63, 0x6c, 0x65, 0x5c, 0x43, 0x63, 0x74, 0x70, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1a, 0x43, 0x69, + 0x72, 0x63, 0x6c, 0x65, 0x5c, 0x43, 0x63, 0x74, 0x70, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x10, 0x43, 0x69, 0x72, 0x63, 0x6c, + 0x65, 0x3a, 0x3a, 0x43, 0x63, 0x74, 0x70, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, +} + +var ( + file_circle_cctp_v1_tx_proto_rawDescOnce sync.Once + file_circle_cctp_v1_tx_proto_rawDescData = file_circle_cctp_v1_tx_proto_rawDesc +) + +func file_circle_cctp_v1_tx_proto_rawDescGZIP() []byte { + file_circle_cctp_v1_tx_proto_rawDescOnce.Do(func() { + file_circle_cctp_v1_tx_proto_rawDescData = protoimpl.X.CompressGZIP(file_circle_cctp_v1_tx_proto_rawDescData) + }) + return file_circle_cctp_v1_tx_proto_rawDescData +} + +var file_circle_cctp_v1_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 50) +var file_circle_cctp_v1_tx_proto_goTypes = []interface{}{ + (*MsgUpdateOwner)(nil), // 0: circle.cctp.v1.MsgUpdateOwner + (*MsgUpdateOwnerResponse)(nil), // 1: circle.cctp.v1.MsgUpdateOwnerResponse + (*MsgUpdateAttesterManager)(nil), // 2: circle.cctp.v1.MsgUpdateAttesterManager + (*MsgUpdateAttesterManagerResponse)(nil), // 3: circle.cctp.v1.MsgUpdateAttesterManagerResponse + (*MsgUpdateTokenController)(nil), // 4: circle.cctp.v1.MsgUpdateTokenController + (*MsgUpdateTokenControllerResponse)(nil), // 5: circle.cctp.v1.MsgUpdateTokenControllerResponse + (*MsgUpdatePauser)(nil), // 6: circle.cctp.v1.MsgUpdatePauser + (*MsgUpdatePauserResponse)(nil), // 7: circle.cctp.v1.MsgUpdatePauserResponse + (*MsgAcceptOwner)(nil), // 8: circle.cctp.v1.MsgAcceptOwner + (*MsgAcceptOwnerResponse)(nil), // 9: circle.cctp.v1.MsgAcceptOwnerResponse + (*MsgEnableAttester)(nil), // 10: circle.cctp.v1.MsgEnableAttester + (*MsgEnableAttesterResponse)(nil), // 11: circle.cctp.v1.MsgEnableAttesterResponse + (*MsgDisableAttester)(nil), // 12: circle.cctp.v1.MsgDisableAttester + (*MsgDisableAttesterResponse)(nil), // 13: circle.cctp.v1.MsgDisableAttesterResponse + (*MsgPauseBurningAndMinting)(nil), // 14: circle.cctp.v1.MsgPauseBurningAndMinting + (*MsgPauseBurningAndMintingResponse)(nil), // 15: circle.cctp.v1.MsgPauseBurningAndMintingResponse + (*MsgUnpauseBurningAndMinting)(nil), // 16: circle.cctp.v1.MsgUnpauseBurningAndMinting + (*MsgUnpauseBurningAndMintingResponse)(nil), // 17: circle.cctp.v1.MsgUnpauseBurningAndMintingResponse + (*MsgPauseSendingAndReceivingMessages)(nil), // 18: circle.cctp.v1.MsgPauseSendingAndReceivingMessages + (*MsgPauseSendingAndReceivingMessagesResponse)(nil), // 19: circle.cctp.v1.MsgPauseSendingAndReceivingMessagesResponse + (*MsgUnpauseSendingAndReceivingMessages)(nil), // 20: circle.cctp.v1.MsgUnpauseSendingAndReceivingMessages + (*MsgUnpauseSendingAndReceivingMessagesResponse)(nil), // 21: circle.cctp.v1.MsgUnpauseSendingAndReceivingMessagesResponse + (*MsgUpdateMaxMessageBodySize)(nil), // 22: circle.cctp.v1.MsgUpdateMaxMessageBodySize + (*MsgUpdateMaxMessageBodySizeResponse)(nil), // 23: circle.cctp.v1.MsgUpdateMaxMessageBodySizeResponse + (*MsgSetMaxBurnAmountPerMessage)(nil), // 24: circle.cctp.v1.MsgSetMaxBurnAmountPerMessage + (*MsgSetMaxBurnAmountPerMessageResponse)(nil), // 25: circle.cctp.v1.MsgSetMaxBurnAmountPerMessageResponse + (*MsgDepositForBurn)(nil), // 26: circle.cctp.v1.MsgDepositForBurn + (*MsgDepositForBurnResponse)(nil), // 27: circle.cctp.v1.MsgDepositForBurnResponse + (*MsgDepositForBurnWithCaller)(nil), // 28: circle.cctp.v1.MsgDepositForBurnWithCaller + (*MsgDepositForBurnWithCallerResponse)(nil), // 29: circle.cctp.v1.MsgDepositForBurnWithCallerResponse + (*MsgReplaceDepositForBurn)(nil), // 30: circle.cctp.v1.MsgReplaceDepositForBurn + (*MsgReplaceDepositForBurnResponse)(nil), // 31: circle.cctp.v1.MsgReplaceDepositForBurnResponse + (*MsgReceiveMessage)(nil), // 32: circle.cctp.v1.MsgReceiveMessage + (*MsgReceiveMessageResponse)(nil), // 33: circle.cctp.v1.MsgReceiveMessageResponse + (*MsgSendMessage)(nil), // 34: circle.cctp.v1.MsgSendMessage + (*MsgSendMessageResponse)(nil), // 35: circle.cctp.v1.MsgSendMessageResponse + (*MsgSendMessageWithCaller)(nil), // 36: circle.cctp.v1.MsgSendMessageWithCaller + (*MsgSendMessageWithCallerResponse)(nil), // 37: circle.cctp.v1.MsgSendMessageWithCallerResponse + (*MsgReplaceMessage)(nil), // 38: circle.cctp.v1.MsgReplaceMessage + (*MsgReplaceMessageResponse)(nil), // 39: circle.cctp.v1.MsgReplaceMessageResponse + (*MsgUpdateSignatureThreshold)(nil), // 40: circle.cctp.v1.MsgUpdateSignatureThreshold + (*MsgUpdateSignatureThresholdResponse)(nil), // 41: circle.cctp.v1.MsgUpdateSignatureThresholdResponse + (*MsgLinkTokenPair)(nil), // 42: circle.cctp.v1.MsgLinkTokenPair + (*MsgLinkTokenPairResponse)(nil), // 43: circle.cctp.v1.MsgLinkTokenPairResponse + (*MsgUnlinkTokenPair)(nil), // 44: circle.cctp.v1.MsgUnlinkTokenPair + (*MsgUnlinkTokenPairResponse)(nil), // 45: circle.cctp.v1.MsgUnlinkTokenPairResponse + (*MsgAddRemoteTokenMessenger)(nil), // 46: circle.cctp.v1.MsgAddRemoteTokenMessenger + (*MsgAddRemoteTokenMessengerResponse)(nil), // 47: circle.cctp.v1.MsgAddRemoteTokenMessengerResponse + (*MsgRemoveRemoteTokenMessenger)(nil), // 48: circle.cctp.v1.MsgRemoveRemoteTokenMessenger + (*MsgRemoveRemoteTokenMessengerResponse)(nil), // 49: circle.cctp.v1.MsgRemoveRemoteTokenMessengerResponse +} +var file_circle_cctp_v1_tx_proto_depIdxs = []int32{ + 8, // 0: circle.cctp.v1.Msg.AcceptOwner:input_type -> circle.cctp.v1.MsgAcceptOwner + 46, // 1: circle.cctp.v1.Msg.AddRemoteTokenMessenger:input_type -> circle.cctp.v1.MsgAddRemoteTokenMessenger + 26, // 2: circle.cctp.v1.Msg.DepositForBurn:input_type -> circle.cctp.v1.MsgDepositForBurn + 28, // 3: circle.cctp.v1.Msg.DepositForBurnWithCaller:input_type -> circle.cctp.v1.MsgDepositForBurnWithCaller + 12, // 4: circle.cctp.v1.Msg.DisableAttester:input_type -> circle.cctp.v1.MsgDisableAttester + 10, // 5: circle.cctp.v1.Msg.EnableAttester:input_type -> circle.cctp.v1.MsgEnableAttester + 42, // 6: circle.cctp.v1.Msg.LinkTokenPair:input_type -> circle.cctp.v1.MsgLinkTokenPair + 14, // 7: circle.cctp.v1.Msg.PauseBurningAndMinting:input_type -> circle.cctp.v1.MsgPauseBurningAndMinting + 18, // 8: circle.cctp.v1.Msg.PauseSendingAndReceivingMessages:input_type -> circle.cctp.v1.MsgPauseSendingAndReceivingMessages + 32, // 9: circle.cctp.v1.Msg.ReceiveMessage:input_type -> circle.cctp.v1.MsgReceiveMessage + 48, // 10: circle.cctp.v1.Msg.RemoveRemoteTokenMessenger:input_type -> circle.cctp.v1.MsgRemoveRemoteTokenMessenger + 30, // 11: circle.cctp.v1.Msg.ReplaceDepositForBurn:input_type -> circle.cctp.v1.MsgReplaceDepositForBurn + 38, // 12: circle.cctp.v1.Msg.ReplaceMessage:input_type -> circle.cctp.v1.MsgReplaceMessage + 34, // 13: circle.cctp.v1.Msg.SendMessage:input_type -> circle.cctp.v1.MsgSendMessage + 36, // 14: circle.cctp.v1.Msg.SendMessageWithCaller:input_type -> circle.cctp.v1.MsgSendMessageWithCaller + 44, // 15: circle.cctp.v1.Msg.UnlinkTokenPair:input_type -> circle.cctp.v1.MsgUnlinkTokenPair + 16, // 16: circle.cctp.v1.Msg.UnpauseBurningAndMinting:input_type -> circle.cctp.v1.MsgUnpauseBurningAndMinting + 20, // 17: circle.cctp.v1.Msg.UnpauseSendingAndReceivingMessages:input_type -> circle.cctp.v1.MsgUnpauseSendingAndReceivingMessages + 0, // 18: circle.cctp.v1.Msg.UpdateOwner:input_type -> circle.cctp.v1.MsgUpdateOwner + 2, // 19: circle.cctp.v1.Msg.UpdateAttesterManager:input_type -> circle.cctp.v1.MsgUpdateAttesterManager + 4, // 20: circle.cctp.v1.Msg.UpdateTokenController:input_type -> circle.cctp.v1.MsgUpdateTokenController + 6, // 21: circle.cctp.v1.Msg.UpdatePauser:input_type -> circle.cctp.v1.MsgUpdatePauser + 22, // 22: circle.cctp.v1.Msg.UpdateMaxMessageBodySize:input_type -> circle.cctp.v1.MsgUpdateMaxMessageBodySize + 24, // 23: circle.cctp.v1.Msg.SetMaxBurnAmountPerMessage:input_type -> circle.cctp.v1.MsgSetMaxBurnAmountPerMessage + 40, // 24: circle.cctp.v1.Msg.UpdateSignatureThreshold:input_type -> circle.cctp.v1.MsgUpdateSignatureThreshold + 9, // 25: circle.cctp.v1.Msg.AcceptOwner:output_type -> circle.cctp.v1.MsgAcceptOwnerResponse + 47, // 26: circle.cctp.v1.Msg.AddRemoteTokenMessenger:output_type -> circle.cctp.v1.MsgAddRemoteTokenMessengerResponse + 27, // 27: circle.cctp.v1.Msg.DepositForBurn:output_type -> circle.cctp.v1.MsgDepositForBurnResponse + 29, // 28: circle.cctp.v1.Msg.DepositForBurnWithCaller:output_type -> circle.cctp.v1.MsgDepositForBurnWithCallerResponse + 13, // 29: circle.cctp.v1.Msg.DisableAttester:output_type -> circle.cctp.v1.MsgDisableAttesterResponse + 11, // 30: circle.cctp.v1.Msg.EnableAttester:output_type -> circle.cctp.v1.MsgEnableAttesterResponse + 43, // 31: circle.cctp.v1.Msg.LinkTokenPair:output_type -> circle.cctp.v1.MsgLinkTokenPairResponse + 15, // 32: circle.cctp.v1.Msg.PauseBurningAndMinting:output_type -> circle.cctp.v1.MsgPauseBurningAndMintingResponse + 19, // 33: circle.cctp.v1.Msg.PauseSendingAndReceivingMessages:output_type -> circle.cctp.v1.MsgPauseSendingAndReceivingMessagesResponse + 33, // 34: circle.cctp.v1.Msg.ReceiveMessage:output_type -> circle.cctp.v1.MsgReceiveMessageResponse + 49, // 35: circle.cctp.v1.Msg.RemoveRemoteTokenMessenger:output_type -> circle.cctp.v1.MsgRemoveRemoteTokenMessengerResponse + 31, // 36: circle.cctp.v1.Msg.ReplaceDepositForBurn:output_type -> circle.cctp.v1.MsgReplaceDepositForBurnResponse + 39, // 37: circle.cctp.v1.Msg.ReplaceMessage:output_type -> circle.cctp.v1.MsgReplaceMessageResponse + 35, // 38: circle.cctp.v1.Msg.SendMessage:output_type -> circle.cctp.v1.MsgSendMessageResponse + 37, // 39: circle.cctp.v1.Msg.SendMessageWithCaller:output_type -> circle.cctp.v1.MsgSendMessageWithCallerResponse + 45, // 40: circle.cctp.v1.Msg.UnlinkTokenPair:output_type -> circle.cctp.v1.MsgUnlinkTokenPairResponse + 17, // 41: circle.cctp.v1.Msg.UnpauseBurningAndMinting:output_type -> circle.cctp.v1.MsgUnpauseBurningAndMintingResponse + 21, // 42: circle.cctp.v1.Msg.UnpauseSendingAndReceivingMessages:output_type -> circle.cctp.v1.MsgUnpauseSendingAndReceivingMessagesResponse + 1, // 43: circle.cctp.v1.Msg.UpdateOwner:output_type -> circle.cctp.v1.MsgUpdateOwnerResponse + 3, // 44: circle.cctp.v1.Msg.UpdateAttesterManager:output_type -> circle.cctp.v1.MsgUpdateAttesterManagerResponse + 5, // 45: circle.cctp.v1.Msg.UpdateTokenController:output_type -> circle.cctp.v1.MsgUpdateTokenControllerResponse + 7, // 46: circle.cctp.v1.Msg.UpdatePauser:output_type -> circle.cctp.v1.MsgUpdatePauserResponse + 23, // 47: circle.cctp.v1.Msg.UpdateMaxMessageBodySize:output_type -> circle.cctp.v1.MsgUpdateMaxMessageBodySizeResponse + 25, // 48: circle.cctp.v1.Msg.SetMaxBurnAmountPerMessage:output_type -> circle.cctp.v1.MsgSetMaxBurnAmountPerMessageResponse + 41, // 49: circle.cctp.v1.Msg.UpdateSignatureThreshold:output_type -> circle.cctp.v1.MsgUpdateSignatureThresholdResponse + 25, // [25:50] is the sub-list for method output_type + 0, // [0:25] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_circle_cctp_v1_tx_proto_init() } +func file_circle_cctp_v1_tx_proto_init() { + if File_circle_cctp_v1_tx_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_circle_cctp_v1_tx_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgUpdateOwner); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_tx_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgUpdateOwnerResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_tx_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgUpdateAttesterManager); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_tx_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgUpdateAttesterManagerResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_tx_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgUpdateTokenController); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_tx_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgUpdateTokenControllerResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_tx_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgUpdatePauser); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_tx_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgUpdatePauserResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_tx_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgAcceptOwner); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_tx_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgAcceptOwnerResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_tx_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgEnableAttester); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_tx_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgEnableAttesterResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_tx_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgDisableAttester); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_tx_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgDisableAttesterResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_tx_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgPauseBurningAndMinting); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_tx_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgPauseBurningAndMintingResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_tx_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgUnpauseBurningAndMinting); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_tx_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgUnpauseBurningAndMintingResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_tx_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgPauseSendingAndReceivingMessages); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_tx_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgPauseSendingAndReceivingMessagesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_tx_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgUnpauseSendingAndReceivingMessages); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_tx_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgUnpauseSendingAndReceivingMessagesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_tx_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgUpdateMaxMessageBodySize); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_tx_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgUpdateMaxMessageBodySizeResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_tx_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgSetMaxBurnAmountPerMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_tx_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgSetMaxBurnAmountPerMessageResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_tx_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgDepositForBurn); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_tx_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgDepositForBurnResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_tx_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgDepositForBurnWithCaller); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_tx_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgDepositForBurnWithCallerResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_tx_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgReplaceDepositForBurn); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_tx_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgReplaceDepositForBurnResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_tx_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgReceiveMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_tx_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgReceiveMessageResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_tx_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgSendMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_tx_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgSendMessageResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_tx_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgSendMessageWithCaller); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_tx_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgSendMessageWithCallerResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_tx_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgReplaceMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_tx_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgReplaceMessageResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_tx_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgUpdateSignatureThreshold); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_tx_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgUpdateSignatureThresholdResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_tx_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgLinkTokenPair); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_tx_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgLinkTokenPairResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_tx_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgUnlinkTokenPair); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_tx_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgUnlinkTokenPairResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_tx_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgAddRemoteTokenMessenger); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_tx_proto_msgTypes[47].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgAddRemoteTokenMessengerResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_tx_proto_msgTypes[48].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgRemoveRemoteTokenMessenger); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_circle_cctp_v1_tx_proto_msgTypes[49].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgRemoveRemoteTokenMessengerResponse); 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_circle_cctp_v1_tx_proto_rawDesc, + NumEnums: 0, + NumMessages: 50, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_circle_cctp_v1_tx_proto_goTypes, + DependencyIndexes: file_circle_cctp_v1_tx_proto_depIdxs, + MessageInfos: file_circle_cctp_v1_tx_proto_msgTypes, + }.Build() + File_circle_cctp_v1_tx_proto = out.File + file_circle_cctp_v1_tx_proto_rawDesc = nil + file_circle_cctp_v1_tx_proto_goTypes = nil + file_circle_cctp_v1_tx_proto_depIdxs = nil +} diff --git a/api/circle/cctp/v1/tx_grpc.pb.go b/api/circle/cctp/v1/tx_grpc.pb.go new file mode 100644 index 0000000..500ddfa --- /dev/null +++ b/api/circle/cctp/v1/tx_grpc.pb.go @@ -0,0 +1,1012 @@ +// +// Copyright (c) 2024, Ā© Circle Internet Financial, LTD. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.3.0 +// - protoc (unknown) +// source: circle/cctp/v1/tx.proto + +package cctpv1 + +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.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +const ( + Msg_AcceptOwner_FullMethodName = "/circle.cctp.v1.Msg/AcceptOwner" + Msg_AddRemoteTokenMessenger_FullMethodName = "/circle.cctp.v1.Msg/AddRemoteTokenMessenger" + Msg_DepositForBurn_FullMethodName = "/circle.cctp.v1.Msg/DepositForBurn" + Msg_DepositForBurnWithCaller_FullMethodName = "/circle.cctp.v1.Msg/DepositForBurnWithCaller" + Msg_DisableAttester_FullMethodName = "/circle.cctp.v1.Msg/DisableAttester" + Msg_EnableAttester_FullMethodName = "/circle.cctp.v1.Msg/EnableAttester" + Msg_LinkTokenPair_FullMethodName = "/circle.cctp.v1.Msg/LinkTokenPair" + Msg_PauseBurningAndMinting_FullMethodName = "/circle.cctp.v1.Msg/PauseBurningAndMinting" + Msg_PauseSendingAndReceivingMessages_FullMethodName = "/circle.cctp.v1.Msg/PauseSendingAndReceivingMessages" + Msg_ReceiveMessage_FullMethodName = "/circle.cctp.v1.Msg/ReceiveMessage" + Msg_RemoveRemoteTokenMessenger_FullMethodName = "/circle.cctp.v1.Msg/RemoveRemoteTokenMessenger" + Msg_ReplaceDepositForBurn_FullMethodName = "/circle.cctp.v1.Msg/ReplaceDepositForBurn" + Msg_ReplaceMessage_FullMethodName = "/circle.cctp.v1.Msg/ReplaceMessage" + Msg_SendMessage_FullMethodName = "/circle.cctp.v1.Msg/SendMessage" + Msg_SendMessageWithCaller_FullMethodName = "/circle.cctp.v1.Msg/SendMessageWithCaller" + Msg_UnlinkTokenPair_FullMethodName = "/circle.cctp.v1.Msg/UnlinkTokenPair" + Msg_UnpauseBurningAndMinting_FullMethodName = "/circle.cctp.v1.Msg/UnpauseBurningAndMinting" + Msg_UnpauseSendingAndReceivingMessages_FullMethodName = "/circle.cctp.v1.Msg/UnpauseSendingAndReceivingMessages" + Msg_UpdateOwner_FullMethodName = "/circle.cctp.v1.Msg/UpdateOwner" + Msg_UpdateAttesterManager_FullMethodName = "/circle.cctp.v1.Msg/UpdateAttesterManager" + Msg_UpdateTokenController_FullMethodName = "/circle.cctp.v1.Msg/UpdateTokenController" + Msg_UpdatePauser_FullMethodName = "/circle.cctp.v1.Msg/UpdatePauser" + Msg_UpdateMaxMessageBodySize_FullMethodName = "/circle.cctp.v1.Msg/UpdateMaxMessageBodySize" + Msg_SetMaxBurnAmountPerMessage_FullMethodName = "/circle.cctp.v1.Msg/SetMaxBurnAmountPerMessage" + Msg_UpdateSignatureThreshold_FullMethodName = "/circle.cctp.v1.Msg/UpdateSignatureThreshold" +) + +// 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. +type MsgClient interface { + AcceptOwner(ctx context.Context, in *MsgAcceptOwner, opts ...grpc.CallOption) (*MsgAcceptOwnerResponse, error) + AddRemoteTokenMessenger(ctx context.Context, in *MsgAddRemoteTokenMessenger, opts ...grpc.CallOption) (*MsgAddRemoteTokenMessengerResponse, error) + DepositForBurn(ctx context.Context, in *MsgDepositForBurn, opts ...grpc.CallOption) (*MsgDepositForBurnResponse, error) + DepositForBurnWithCaller(ctx context.Context, in *MsgDepositForBurnWithCaller, opts ...grpc.CallOption) (*MsgDepositForBurnWithCallerResponse, error) + DisableAttester(ctx context.Context, in *MsgDisableAttester, opts ...grpc.CallOption) (*MsgDisableAttesterResponse, error) + EnableAttester(ctx context.Context, in *MsgEnableAttester, opts ...grpc.CallOption) (*MsgEnableAttesterResponse, error) + LinkTokenPair(ctx context.Context, in *MsgLinkTokenPair, opts ...grpc.CallOption) (*MsgLinkTokenPairResponse, error) + PauseBurningAndMinting(ctx context.Context, in *MsgPauseBurningAndMinting, opts ...grpc.CallOption) (*MsgPauseBurningAndMintingResponse, error) + PauseSendingAndReceivingMessages(ctx context.Context, in *MsgPauseSendingAndReceivingMessages, opts ...grpc.CallOption) (*MsgPauseSendingAndReceivingMessagesResponse, error) + ReceiveMessage(ctx context.Context, in *MsgReceiveMessage, opts ...grpc.CallOption) (*MsgReceiveMessageResponse, error) + RemoveRemoteTokenMessenger(ctx context.Context, in *MsgRemoveRemoteTokenMessenger, opts ...grpc.CallOption) (*MsgRemoveRemoteTokenMessengerResponse, error) + ReplaceDepositForBurn(ctx context.Context, in *MsgReplaceDepositForBurn, opts ...grpc.CallOption) (*MsgReplaceDepositForBurnResponse, error) + ReplaceMessage(ctx context.Context, in *MsgReplaceMessage, opts ...grpc.CallOption) (*MsgReplaceMessageResponse, error) + SendMessage(ctx context.Context, in *MsgSendMessage, opts ...grpc.CallOption) (*MsgSendMessageResponse, error) + SendMessageWithCaller(ctx context.Context, in *MsgSendMessageWithCaller, opts ...grpc.CallOption) (*MsgSendMessageWithCallerResponse, error) + UnlinkTokenPair(ctx context.Context, in *MsgUnlinkTokenPair, opts ...grpc.CallOption) (*MsgUnlinkTokenPairResponse, error) + UnpauseBurningAndMinting(ctx context.Context, in *MsgUnpauseBurningAndMinting, opts ...grpc.CallOption) (*MsgUnpauseBurningAndMintingResponse, error) + UnpauseSendingAndReceivingMessages(ctx context.Context, in *MsgUnpauseSendingAndReceivingMessages, opts ...grpc.CallOption) (*MsgUnpauseSendingAndReceivingMessagesResponse, error) + UpdateOwner(ctx context.Context, in *MsgUpdateOwner, opts ...grpc.CallOption) (*MsgUpdateOwnerResponse, error) + UpdateAttesterManager(ctx context.Context, in *MsgUpdateAttesterManager, opts ...grpc.CallOption) (*MsgUpdateAttesterManagerResponse, error) + UpdateTokenController(ctx context.Context, in *MsgUpdateTokenController, opts ...grpc.CallOption) (*MsgUpdateTokenControllerResponse, error) + UpdatePauser(ctx context.Context, in *MsgUpdatePauser, opts ...grpc.CallOption) (*MsgUpdatePauserResponse, error) + UpdateMaxMessageBodySize(ctx context.Context, in *MsgUpdateMaxMessageBodySize, opts ...grpc.CallOption) (*MsgUpdateMaxMessageBodySizeResponse, error) + SetMaxBurnAmountPerMessage(ctx context.Context, in *MsgSetMaxBurnAmountPerMessage, opts ...grpc.CallOption) (*MsgSetMaxBurnAmountPerMessageResponse, error) + UpdateSignatureThreshold(ctx context.Context, in *MsgUpdateSignatureThreshold, opts ...grpc.CallOption) (*MsgUpdateSignatureThresholdResponse, error) +} + +type msgClient struct { + cc grpc.ClientConnInterface +} + +func NewMsgClient(cc grpc.ClientConnInterface) MsgClient { + return &msgClient{cc} +} + +func (c *msgClient) AcceptOwner(ctx context.Context, in *MsgAcceptOwner, opts ...grpc.CallOption) (*MsgAcceptOwnerResponse, error) { + out := new(MsgAcceptOwnerResponse) + err := c.cc.Invoke(ctx, Msg_AcceptOwner_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) AddRemoteTokenMessenger(ctx context.Context, in *MsgAddRemoteTokenMessenger, opts ...grpc.CallOption) (*MsgAddRemoteTokenMessengerResponse, error) { + out := new(MsgAddRemoteTokenMessengerResponse) + err := c.cc.Invoke(ctx, Msg_AddRemoteTokenMessenger_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) DepositForBurn(ctx context.Context, in *MsgDepositForBurn, opts ...grpc.CallOption) (*MsgDepositForBurnResponse, error) { + out := new(MsgDepositForBurnResponse) + err := c.cc.Invoke(ctx, Msg_DepositForBurn_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) DepositForBurnWithCaller(ctx context.Context, in *MsgDepositForBurnWithCaller, opts ...grpc.CallOption) (*MsgDepositForBurnWithCallerResponse, error) { + out := new(MsgDepositForBurnWithCallerResponse) + err := c.cc.Invoke(ctx, Msg_DepositForBurnWithCaller_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) DisableAttester(ctx context.Context, in *MsgDisableAttester, opts ...grpc.CallOption) (*MsgDisableAttesterResponse, error) { + out := new(MsgDisableAttesterResponse) + err := c.cc.Invoke(ctx, Msg_DisableAttester_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) EnableAttester(ctx context.Context, in *MsgEnableAttester, opts ...grpc.CallOption) (*MsgEnableAttesterResponse, error) { + out := new(MsgEnableAttesterResponse) + err := c.cc.Invoke(ctx, Msg_EnableAttester_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) LinkTokenPair(ctx context.Context, in *MsgLinkTokenPair, opts ...grpc.CallOption) (*MsgLinkTokenPairResponse, error) { + out := new(MsgLinkTokenPairResponse) + err := c.cc.Invoke(ctx, Msg_LinkTokenPair_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) PauseBurningAndMinting(ctx context.Context, in *MsgPauseBurningAndMinting, opts ...grpc.CallOption) (*MsgPauseBurningAndMintingResponse, error) { + out := new(MsgPauseBurningAndMintingResponse) + err := c.cc.Invoke(ctx, Msg_PauseBurningAndMinting_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) PauseSendingAndReceivingMessages(ctx context.Context, in *MsgPauseSendingAndReceivingMessages, opts ...grpc.CallOption) (*MsgPauseSendingAndReceivingMessagesResponse, error) { + out := new(MsgPauseSendingAndReceivingMessagesResponse) + err := c.cc.Invoke(ctx, Msg_PauseSendingAndReceivingMessages_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) ReceiveMessage(ctx context.Context, in *MsgReceiveMessage, opts ...grpc.CallOption) (*MsgReceiveMessageResponse, error) { + out := new(MsgReceiveMessageResponse) + err := c.cc.Invoke(ctx, Msg_ReceiveMessage_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) RemoveRemoteTokenMessenger(ctx context.Context, in *MsgRemoveRemoteTokenMessenger, opts ...grpc.CallOption) (*MsgRemoveRemoteTokenMessengerResponse, error) { + out := new(MsgRemoveRemoteTokenMessengerResponse) + err := c.cc.Invoke(ctx, Msg_RemoveRemoteTokenMessenger_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) ReplaceDepositForBurn(ctx context.Context, in *MsgReplaceDepositForBurn, opts ...grpc.CallOption) (*MsgReplaceDepositForBurnResponse, error) { + out := new(MsgReplaceDepositForBurnResponse) + err := c.cc.Invoke(ctx, Msg_ReplaceDepositForBurn_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) ReplaceMessage(ctx context.Context, in *MsgReplaceMessage, opts ...grpc.CallOption) (*MsgReplaceMessageResponse, error) { + out := new(MsgReplaceMessageResponse) + err := c.cc.Invoke(ctx, Msg_ReplaceMessage_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) SendMessage(ctx context.Context, in *MsgSendMessage, opts ...grpc.CallOption) (*MsgSendMessageResponse, error) { + out := new(MsgSendMessageResponse) + err := c.cc.Invoke(ctx, Msg_SendMessage_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) SendMessageWithCaller(ctx context.Context, in *MsgSendMessageWithCaller, opts ...grpc.CallOption) (*MsgSendMessageWithCallerResponse, error) { + out := new(MsgSendMessageWithCallerResponse) + err := c.cc.Invoke(ctx, Msg_SendMessageWithCaller_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) UnlinkTokenPair(ctx context.Context, in *MsgUnlinkTokenPair, opts ...grpc.CallOption) (*MsgUnlinkTokenPairResponse, error) { + out := new(MsgUnlinkTokenPairResponse) + err := c.cc.Invoke(ctx, Msg_UnlinkTokenPair_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) UnpauseBurningAndMinting(ctx context.Context, in *MsgUnpauseBurningAndMinting, opts ...grpc.CallOption) (*MsgUnpauseBurningAndMintingResponse, error) { + out := new(MsgUnpauseBurningAndMintingResponse) + err := c.cc.Invoke(ctx, Msg_UnpauseBurningAndMinting_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) UnpauseSendingAndReceivingMessages(ctx context.Context, in *MsgUnpauseSendingAndReceivingMessages, opts ...grpc.CallOption) (*MsgUnpauseSendingAndReceivingMessagesResponse, error) { + out := new(MsgUnpauseSendingAndReceivingMessagesResponse) + err := c.cc.Invoke(ctx, Msg_UnpauseSendingAndReceivingMessages_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) UpdateOwner(ctx context.Context, in *MsgUpdateOwner, opts ...grpc.CallOption) (*MsgUpdateOwnerResponse, error) { + out := new(MsgUpdateOwnerResponse) + err := c.cc.Invoke(ctx, Msg_UpdateOwner_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) UpdateAttesterManager(ctx context.Context, in *MsgUpdateAttesterManager, opts ...grpc.CallOption) (*MsgUpdateAttesterManagerResponse, error) { + out := new(MsgUpdateAttesterManagerResponse) + err := c.cc.Invoke(ctx, Msg_UpdateAttesterManager_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) UpdateTokenController(ctx context.Context, in *MsgUpdateTokenController, opts ...grpc.CallOption) (*MsgUpdateTokenControllerResponse, error) { + out := new(MsgUpdateTokenControllerResponse) + err := c.cc.Invoke(ctx, Msg_UpdateTokenController_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) UpdatePauser(ctx context.Context, in *MsgUpdatePauser, opts ...grpc.CallOption) (*MsgUpdatePauserResponse, error) { + out := new(MsgUpdatePauserResponse) + err := c.cc.Invoke(ctx, Msg_UpdatePauser_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) UpdateMaxMessageBodySize(ctx context.Context, in *MsgUpdateMaxMessageBodySize, opts ...grpc.CallOption) (*MsgUpdateMaxMessageBodySizeResponse, error) { + out := new(MsgUpdateMaxMessageBodySizeResponse) + err := c.cc.Invoke(ctx, Msg_UpdateMaxMessageBodySize_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) SetMaxBurnAmountPerMessage(ctx context.Context, in *MsgSetMaxBurnAmountPerMessage, opts ...grpc.CallOption) (*MsgSetMaxBurnAmountPerMessageResponse, error) { + out := new(MsgSetMaxBurnAmountPerMessageResponse) + err := c.cc.Invoke(ctx, Msg_SetMaxBurnAmountPerMessage_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) UpdateSignatureThreshold(ctx context.Context, in *MsgUpdateSignatureThreshold, opts ...grpc.CallOption) (*MsgUpdateSignatureThresholdResponse, error) { + out := new(MsgUpdateSignatureThresholdResponse) + err := c.cc.Invoke(ctx, Msg_UpdateSignatureThreshold_FullMethodName, in, out, opts...) + 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 +type MsgServer interface { + AcceptOwner(context.Context, *MsgAcceptOwner) (*MsgAcceptOwnerResponse, error) + AddRemoteTokenMessenger(context.Context, *MsgAddRemoteTokenMessenger) (*MsgAddRemoteTokenMessengerResponse, error) + DepositForBurn(context.Context, *MsgDepositForBurn) (*MsgDepositForBurnResponse, error) + DepositForBurnWithCaller(context.Context, *MsgDepositForBurnWithCaller) (*MsgDepositForBurnWithCallerResponse, error) + DisableAttester(context.Context, *MsgDisableAttester) (*MsgDisableAttesterResponse, error) + EnableAttester(context.Context, *MsgEnableAttester) (*MsgEnableAttesterResponse, error) + LinkTokenPair(context.Context, *MsgLinkTokenPair) (*MsgLinkTokenPairResponse, error) + PauseBurningAndMinting(context.Context, *MsgPauseBurningAndMinting) (*MsgPauseBurningAndMintingResponse, error) + PauseSendingAndReceivingMessages(context.Context, *MsgPauseSendingAndReceivingMessages) (*MsgPauseSendingAndReceivingMessagesResponse, error) + ReceiveMessage(context.Context, *MsgReceiveMessage) (*MsgReceiveMessageResponse, error) + RemoveRemoteTokenMessenger(context.Context, *MsgRemoveRemoteTokenMessenger) (*MsgRemoveRemoteTokenMessengerResponse, error) + ReplaceDepositForBurn(context.Context, *MsgReplaceDepositForBurn) (*MsgReplaceDepositForBurnResponse, error) + ReplaceMessage(context.Context, *MsgReplaceMessage) (*MsgReplaceMessageResponse, error) + SendMessage(context.Context, *MsgSendMessage) (*MsgSendMessageResponse, error) + SendMessageWithCaller(context.Context, *MsgSendMessageWithCaller) (*MsgSendMessageWithCallerResponse, error) + UnlinkTokenPair(context.Context, *MsgUnlinkTokenPair) (*MsgUnlinkTokenPairResponse, error) + UnpauseBurningAndMinting(context.Context, *MsgUnpauseBurningAndMinting) (*MsgUnpauseBurningAndMintingResponse, error) + UnpauseSendingAndReceivingMessages(context.Context, *MsgUnpauseSendingAndReceivingMessages) (*MsgUnpauseSendingAndReceivingMessagesResponse, error) + UpdateOwner(context.Context, *MsgUpdateOwner) (*MsgUpdateOwnerResponse, error) + UpdateAttesterManager(context.Context, *MsgUpdateAttesterManager) (*MsgUpdateAttesterManagerResponse, error) + UpdateTokenController(context.Context, *MsgUpdateTokenController) (*MsgUpdateTokenControllerResponse, error) + UpdatePauser(context.Context, *MsgUpdatePauser) (*MsgUpdatePauserResponse, error) + UpdateMaxMessageBodySize(context.Context, *MsgUpdateMaxMessageBodySize) (*MsgUpdateMaxMessageBodySizeResponse, error) + SetMaxBurnAmountPerMessage(context.Context, *MsgSetMaxBurnAmountPerMessage) (*MsgSetMaxBurnAmountPerMessageResponse, error) + UpdateSignatureThreshold(context.Context, *MsgUpdateSignatureThreshold) (*MsgUpdateSignatureThresholdResponse, error) + mustEmbedUnimplementedMsgServer() +} + +// UnimplementedMsgServer must be embedded to have forward compatible implementations. +type UnimplementedMsgServer struct { +} + +func (UnimplementedMsgServer) AcceptOwner(context.Context, *MsgAcceptOwner) (*MsgAcceptOwnerResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AcceptOwner not implemented") +} +func (UnimplementedMsgServer) AddRemoteTokenMessenger(context.Context, *MsgAddRemoteTokenMessenger) (*MsgAddRemoteTokenMessengerResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AddRemoteTokenMessenger not implemented") +} +func (UnimplementedMsgServer) DepositForBurn(context.Context, *MsgDepositForBurn) (*MsgDepositForBurnResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DepositForBurn not implemented") +} +func (UnimplementedMsgServer) DepositForBurnWithCaller(context.Context, *MsgDepositForBurnWithCaller) (*MsgDepositForBurnWithCallerResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DepositForBurnWithCaller not implemented") +} +func (UnimplementedMsgServer) DisableAttester(context.Context, *MsgDisableAttester) (*MsgDisableAttesterResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DisableAttester not implemented") +} +func (UnimplementedMsgServer) EnableAttester(context.Context, *MsgEnableAttester) (*MsgEnableAttesterResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method EnableAttester not implemented") +} +func (UnimplementedMsgServer) LinkTokenPair(context.Context, *MsgLinkTokenPair) (*MsgLinkTokenPairResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method LinkTokenPair not implemented") +} +func (UnimplementedMsgServer) PauseBurningAndMinting(context.Context, *MsgPauseBurningAndMinting) (*MsgPauseBurningAndMintingResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method PauseBurningAndMinting not implemented") +} +func (UnimplementedMsgServer) PauseSendingAndReceivingMessages(context.Context, *MsgPauseSendingAndReceivingMessages) (*MsgPauseSendingAndReceivingMessagesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method PauseSendingAndReceivingMessages not implemented") +} +func (UnimplementedMsgServer) ReceiveMessage(context.Context, *MsgReceiveMessage) (*MsgReceiveMessageResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ReceiveMessage not implemented") +} +func (UnimplementedMsgServer) RemoveRemoteTokenMessenger(context.Context, *MsgRemoveRemoteTokenMessenger) (*MsgRemoveRemoteTokenMessengerResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RemoveRemoteTokenMessenger not implemented") +} +func (UnimplementedMsgServer) ReplaceDepositForBurn(context.Context, *MsgReplaceDepositForBurn) (*MsgReplaceDepositForBurnResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ReplaceDepositForBurn not implemented") +} +func (UnimplementedMsgServer) ReplaceMessage(context.Context, *MsgReplaceMessage) (*MsgReplaceMessageResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ReplaceMessage not implemented") +} +func (UnimplementedMsgServer) SendMessage(context.Context, *MsgSendMessage) (*MsgSendMessageResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SendMessage not implemented") +} +func (UnimplementedMsgServer) SendMessageWithCaller(context.Context, *MsgSendMessageWithCaller) (*MsgSendMessageWithCallerResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SendMessageWithCaller not implemented") +} +func (UnimplementedMsgServer) UnlinkTokenPair(context.Context, *MsgUnlinkTokenPair) (*MsgUnlinkTokenPairResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UnlinkTokenPair not implemented") +} +func (UnimplementedMsgServer) UnpauseBurningAndMinting(context.Context, *MsgUnpauseBurningAndMinting) (*MsgUnpauseBurningAndMintingResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UnpauseBurningAndMinting not implemented") +} +func (UnimplementedMsgServer) UnpauseSendingAndReceivingMessages(context.Context, *MsgUnpauseSendingAndReceivingMessages) (*MsgUnpauseSendingAndReceivingMessagesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UnpauseSendingAndReceivingMessages not implemented") +} +func (UnimplementedMsgServer) UpdateOwner(context.Context, *MsgUpdateOwner) (*MsgUpdateOwnerResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateOwner not implemented") +} +func (UnimplementedMsgServer) UpdateAttesterManager(context.Context, *MsgUpdateAttesterManager) (*MsgUpdateAttesterManagerResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateAttesterManager not implemented") +} +func (UnimplementedMsgServer) UpdateTokenController(context.Context, *MsgUpdateTokenController) (*MsgUpdateTokenControllerResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateTokenController not implemented") +} +func (UnimplementedMsgServer) UpdatePauser(context.Context, *MsgUpdatePauser) (*MsgUpdatePauserResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdatePauser not implemented") +} +func (UnimplementedMsgServer) UpdateMaxMessageBodySize(context.Context, *MsgUpdateMaxMessageBodySize) (*MsgUpdateMaxMessageBodySizeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateMaxMessageBodySize not implemented") +} +func (UnimplementedMsgServer) SetMaxBurnAmountPerMessage(context.Context, *MsgSetMaxBurnAmountPerMessage) (*MsgSetMaxBurnAmountPerMessageResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetMaxBurnAmountPerMessage not implemented") +} +func (UnimplementedMsgServer) UpdateSignatureThreshold(context.Context, *MsgUpdateSignatureThreshold) (*MsgUpdateSignatureThresholdResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateSignatureThreshold not implemented") +} +func (UnimplementedMsgServer) mustEmbedUnimplementedMsgServer() {} + +// 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) { + s.RegisterService(&Msg_ServiceDesc, srv) +} + +func _Msg_AcceptOwner_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgAcceptOwner) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).AcceptOwner(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_AcceptOwner_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).AcceptOwner(ctx, req.(*MsgAcceptOwner)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_AddRemoteTokenMessenger_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgAddRemoteTokenMessenger) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).AddRemoteTokenMessenger(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_AddRemoteTokenMessenger_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).AddRemoteTokenMessenger(ctx, req.(*MsgAddRemoteTokenMessenger)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_DepositForBurn_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgDepositForBurn) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).DepositForBurn(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_DepositForBurn_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).DepositForBurn(ctx, req.(*MsgDepositForBurn)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_DepositForBurnWithCaller_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgDepositForBurnWithCaller) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).DepositForBurnWithCaller(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_DepositForBurnWithCaller_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).DepositForBurnWithCaller(ctx, req.(*MsgDepositForBurnWithCaller)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_DisableAttester_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgDisableAttester) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).DisableAttester(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_DisableAttester_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).DisableAttester(ctx, req.(*MsgDisableAttester)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_EnableAttester_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgEnableAttester) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).EnableAttester(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_EnableAttester_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).EnableAttester(ctx, req.(*MsgEnableAttester)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_LinkTokenPair_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgLinkTokenPair) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).LinkTokenPair(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_LinkTokenPair_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).LinkTokenPair(ctx, req.(*MsgLinkTokenPair)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_PauseBurningAndMinting_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgPauseBurningAndMinting) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).PauseBurningAndMinting(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_PauseBurningAndMinting_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).PauseBurningAndMinting(ctx, req.(*MsgPauseBurningAndMinting)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_PauseSendingAndReceivingMessages_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgPauseSendingAndReceivingMessages) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).PauseSendingAndReceivingMessages(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_PauseSendingAndReceivingMessages_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).PauseSendingAndReceivingMessages(ctx, req.(*MsgPauseSendingAndReceivingMessages)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_ReceiveMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgReceiveMessage) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).ReceiveMessage(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_ReceiveMessage_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).ReceiveMessage(ctx, req.(*MsgReceiveMessage)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_RemoveRemoteTokenMessenger_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgRemoveRemoteTokenMessenger) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).RemoveRemoteTokenMessenger(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_RemoveRemoteTokenMessenger_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).RemoveRemoteTokenMessenger(ctx, req.(*MsgRemoveRemoteTokenMessenger)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_ReplaceDepositForBurn_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgReplaceDepositForBurn) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).ReplaceDepositForBurn(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_ReplaceDepositForBurn_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).ReplaceDepositForBurn(ctx, req.(*MsgReplaceDepositForBurn)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_ReplaceMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgReplaceMessage) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).ReplaceMessage(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_ReplaceMessage_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).ReplaceMessage(ctx, req.(*MsgReplaceMessage)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_SendMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgSendMessage) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).SendMessage(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_SendMessage_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).SendMessage(ctx, req.(*MsgSendMessage)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_SendMessageWithCaller_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgSendMessageWithCaller) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).SendMessageWithCaller(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_SendMessageWithCaller_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).SendMessageWithCaller(ctx, req.(*MsgSendMessageWithCaller)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_UnlinkTokenPair_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgUnlinkTokenPair) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).UnlinkTokenPair(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_UnlinkTokenPair_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).UnlinkTokenPair(ctx, req.(*MsgUnlinkTokenPair)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_UnpauseBurningAndMinting_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgUnpauseBurningAndMinting) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).UnpauseBurningAndMinting(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_UnpauseBurningAndMinting_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).UnpauseBurningAndMinting(ctx, req.(*MsgUnpauseBurningAndMinting)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_UnpauseSendingAndReceivingMessages_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgUnpauseSendingAndReceivingMessages) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).UnpauseSendingAndReceivingMessages(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_UnpauseSendingAndReceivingMessages_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).UnpauseSendingAndReceivingMessages(ctx, req.(*MsgUnpauseSendingAndReceivingMessages)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_UpdateOwner_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgUpdateOwner) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).UpdateOwner(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_UpdateOwner_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).UpdateOwner(ctx, req.(*MsgUpdateOwner)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_UpdateAttesterManager_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgUpdateAttesterManager) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).UpdateAttesterManager(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_UpdateAttesterManager_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).UpdateAttesterManager(ctx, req.(*MsgUpdateAttesterManager)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_UpdateTokenController_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgUpdateTokenController) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).UpdateTokenController(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_UpdateTokenController_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).UpdateTokenController(ctx, req.(*MsgUpdateTokenController)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_UpdatePauser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgUpdatePauser) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).UpdatePauser(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_UpdatePauser_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).UpdatePauser(ctx, req.(*MsgUpdatePauser)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_UpdateMaxMessageBodySize_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgUpdateMaxMessageBodySize) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).UpdateMaxMessageBodySize(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_UpdateMaxMessageBodySize_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).UpdateMaxMessageBodySize(ctx, req.(*MsgUpdateMaxMessageBodySize)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_SetMaxBurnAmountPerMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgSetMaxBurnAmountPerMessage) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).SetMaxBurnAmountPerMessage(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_SetMaxBurnAmountPerMessage_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).SetMaxBurnAmountPerMessage(ctx, req.(*MsgSetMaxBurnAmountPerMessage)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_UpdateSignatureThreshold_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgUpdateSignatureThreshold) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).UpdateSignatureThreshold(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_UpdateSignatureThreshold_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).UpdateSignatureThreshold(ctx, req.(*MsgUpdateSignatureThreshold)) + } + 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: "circle.cctp.v1.Msg", + HandlerType: (*MsgServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "AcceptOwner", + Handler: _Msg_AcceptOwner_Handler, + }, + { + MethodName: "AddRemoteTokenMessenger", + Handler: _Msg_AddRemoteTokenMessenger_Handler, + }, + { + MethodName: "DepositForBurn", + Handler: _Msg_DepositForBurn_Handler, + }, + { + MethodName: "DepositForBurnWithCaller", + Handler: _Msg_DepositForBurnWithCaller_Handler, + }, + { + MethodName: "DisableAttester", + Handler: _Msg_DisableAttester_Handler, + }, + { + MethodName: "EnableAttester", + Handler: _Msg_EnableAttester_Handler, + }, + { + MethodName: "LinkTokenPair", + Handler: _Msg_LinkTokenPair_Handler, + }, + { + MethodName: "PauseBurningAndMinting", + Handler: _Msg_PauseBurningAndMinting_Handler, + }, + { + MethodName: "PauseSendingAndReceivingMessages", + Handler: _Msg_PauseSendingAndReceivingMessages_Handler, + }, + { + MethodName: "ReceiveMessage", + Handler: _Msg_ReceiveMessage_Handler, + }, + { + MethodName: "RemoveRemoteTokenMessenger", + Handler: _Msg_RemoveRemoteTokenMessenger_Handler, + }, + { + MethodName: "ReplaceDepositForBurn", + Handler: _Msg_ReplaceDepositForBurn_Handler, + }, + { + MethodName: "ReplaceMessage", + Handler: _Msg_ReplaceMessage_Handler, + }, + { + MethodName: "SendMessage", + Handler: _Msg_SendMessage_Handler, + }, + { + MethodName: "SendMessageWithCaller", + Handler: _Msg_SendMessageWithCaller_Handler, + }, + { + MethodName: "UnlinkTokenPair", + Handler: _Msg_UnlinkTokenPair_Handler, + }, + { + MethodName: "UnpauseBurningAndMinting", + Handler: _Msg_UnpauseBurningAndMinting_Handler, + }, + { + MethodName: "UnpauseSendingAndReceivingMessages", + Handler: _Msg_UnpauseSendingAndReceivingMessages_Handler, + }, + { + MethodName: "UpdateOwner", + Handler: _Msg_UpdateOwner_Handler, + }, + { + MethodName: "UpdateAttesterManager", + Handler: _Msg_UpdateAttesterManager_Handler, + }, + { + MethodName: "UpdateTokenController", + Handler: _Msg_UpdateTokenController_Handler, + }, + { + MethodName: "UpdatePauser", + Handler: _Msg_UpdatePauser_Handler, + }, + { + MethodName: "UpdateMaxMessageBodySize", + Handler: _Msg_UpdateMaxMessageBodySize_Handler, + }, + { + MethodName: "SetMaxBurnAmountPerMessage", + Handler: _Msg_SetMaxBurnAmountPerMessage_Handler, + }, + { + MethodName: "UpdateSignatureThreshold", + Handler: _Msg_UpdateSignatureThreshold_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "circle/cctp/v1/tx.proto", +} diff --git a/api/go.mod b/api/go.mod new file mode 100644 index 0000000..9c5b8e8 --- /dev/null +++ b/api/go.mod @@ -0,0 +1,21 @@ +module github.com/circlefin/noble-cctp/api + +go 1.22.1 + +require ( + cosmossdk.io/api v0.7.5 + github.com/cosmos/cosmos-proto v1.0.0-beta.5 + github.com/cosmos/gogoproto v1.5.0 + google.golang.org/genproto/googleapis/api v0.0.0-20240805194559-2c9e96a0b5d4 + google.golang.org/grpc v1.65.0 + google.golang.org/protobuf v1.34.2 +) + +require ( + github.com/google/go-cmp v0.6.0 // indirect + golang.org/x/exp v0.0.0-20240404231335-c0f41cb1a7a0 // indirect + golang.org/x/net v0.26.0 // indirect + golang.org/x/sys v0.21.0 // indirect + golang.org/x/text v0.16.0 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20240730163845-b1a4ccb954bf // indirect +) diff --git a/api/go.sum b/api/go.sum new file mode 100644 index 0000000..f9efb9f --- /dev/null +++ b/api/go.sum @@ -0,0 +1,26 @@ +cosmossdk.io/api v0.7.5 h1:eMPTReoNmGUm8DeiQL9DyM8sYDjEhWzL1+nLbI9DqtQ= +cosmossdk.io/api v0.7.5/go.mod h1:IcxpYS5fMemZGqyYtErK7OqvdM0C8kdW3dq8Q/XIG38= +github.com/cosmos/cosmos-proto v1.0.0-beta.5 h1:eNcayDLpip+zVLRLYafhzLvQlSmyab+RC5W7ZfmxJLA= +github.com/cosmos/cosmos-proto v1.0.0-beta.5/go.mod h1:hQGLpiIUloJBMdQMMWb/4wRApmI9hjHH05nefC0Ojec= +github.com/cosmos/gogoproto v1.5.0 h1:SDVwzEqZDDBoslaeZg+dGE55hdzHfgUA40pEanMh52o= +github.com/cosmos/gogoproto v1.5.0/go.mod h1:iUM31aofn3ymidYG6bUR5ZFrk+Om8p5s754eMUcyp8I= +github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek= +github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps= +github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= +github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +golang.org/x/exp v0.0.0-20240404231335-c0f41cb1a7a0 h1:985EYyeCOxTpcgOTJpflJUwOeEz0CQOdPt73OzpE9F8= +golang.org/x/exp v0.0.0-20240404231335-c0f41cb1a7a0/go.mod h1:/lliqkxwWAhPjf5oSOIJup2XcqJaw8RGS6k3TGEc7GI= +golang.org/x/net v0.26.0 h1:soB7SVo0PWrY4vPW/+ay0jKDNScG2X9wFeYlXIvJsOQ= +golang.org/x/net v0.26.0/go.mod h1:5YKkiSynbBIh3p6iOc/vibscux0x38BZDkn8sCUPxHE= +golang.org/x/sys v0.21.0 h1:rF+pYz3DAGSQAxAu1CbC7catZg4ebC4UIeIhKxBZvws= +golang.org/x/sys v0.21.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/text v0.16.0 h1:a94ExnEXNtEwYLGJSIUxnWoxoRz/ZcCsV63ROupILh4= +golang.org/x/text v0.16.0/go.mod h1:GhwF1Be+LQoKShO3cGOHzqOgRrGaYc9AvblQOmPVHnI= +google.golang.org/genproto/googleapis/api v0.0.0-20240805194559-2c9e96a0b5d4 h1:ABEBT/sZ7We8zd7A5f3KO6zMQe+s3901H7l8Whhijt0= +google.golang.org/genproto/googleapis/api v0.0.0-20240805194559-2c9e96a0b5d4/go.mod h1:4+X6GvPs+25wZKbQq9qyAXrwIRExv7w0Ea6MgZLZiDM= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240730163845-b1a4ccb954bf h1:liao9UHurZLtiEwBgT9LMOnKYsHze6eA6w1KQCMVN2Q= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240730163845-b1a4ccb954bf/go.mod h1:Ue6ibwXGpU+dqIcODieyLOcgj7z8+IcskoNIgZxtrFY= +google.golang.org/grpc v1.65.0 h1:bs/cUb4lp1G5iImFFd3u5ixQzweKizoZJAwBNLR42lc= +google.golang.org/grpc v1.65.0/go.mod h1:WgYC2ypjlB0EiQi6wdKixMqukr6lBc0Vo+oOgjrM5ZQ= +google.golang.org/protobuf v1.34.2 h1:6xV6lTsCfpGD21XK49h7MhtcApnLqkfYgPcdHftf6hg= +google.golang.org/protobuf v1.34.2/go.mod h1:qYOHts0dSfpeUzUFpOMr/WGzszTmLH+DiWniOlNbLDw= diff --git a/buf.work.yaml b/buf.work.yaml index 1878b34..03a89eb 100644 --- a/buf.work.yaml +++ b/buf.work.yaml @@ -1,3 +1,19 @@ +# Copyright 2024 Circle Internet Group, Inc. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 + version: v1 directories: - proto diff --git a/examples/depositForBurn.ts b/examples/depositForBurn.ts index c2f872b..06ab798 100644 --- a/examples/depositForBurn.ts +++ b/examples/depositForBurn.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024, Circle Internet Financial LTD All rights reserved. + * Copyright (c) 2024, Circle Internet Group, Inc. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * diff --git a/examples/generated/tx.ts b/examples/generated/tx.ts index 9110b1a..1ca178d 100644 --- a/examples/generated/tx.ts +++ b/examples/generated/tx.ts @@ -1,3 +1,21 @@ +/** + * Copyright 2024 Circle Internet Group, Inc. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * SPDX-License-Identifier: Apache-2.0 + */ + /* eslint-disable */ import Long from "long"; import _m0 from "protobufjs/minimal"; diff --git a/examples/receiveMessage.ts b/examples/receiveMessage.ts index 1c92218..cd35aaa 100644 --- a/examples/receiveMessage.ts +++ b/examples/receiveMessage.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024, Circle Internet Financial LTD All rights reserved. + * Copyright (c) 2024, Circle Internet Group, Inc. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * diff --git a/go.mod b/go.mod index 3ec8a20..d9b86b6 100644 --- a/go.mod +++ b/go.mod @@ -1,284 +1,171 @@ module github.com/circlefin/noble-cctp -go 1.21 +go 1.22.1 require ( - cosmossdk.io/errors v1.0.0 - cosmossdk.io/math v1.0.0-beta.4 - github.com/circlefin/noble-fiattokenfactory v0.0.0-20231026180023-32fd993c1f60 + cosmossdk.io/api v0.7.5 + cosmossdk.io/core v0.11.0 + cosmossdk.io/depinject v1.0.0-alpha.4 + cosmossdk.io/errors v1.0.1 + cosmossdk.io/log v1.3.1 + cosmossdk.io/math v1.3.0 + cosmossdk.io/store v1.1.0 + github.com/circlefin/noble-cctp/api v0.0.0-00010101000000-000000000000 + github.com/circlefin/noble-fiattokenfactory v0.0.0-20241015182229-c20bd0c8442f + github.com/cometbft/cometbft v0.38.9 github.com/cosmos/btcutil v1.0.5 - github.com/cosmos/cosmos-sdk v0.45.16 + github.com/cosmos/cosmos-db v1.0.2 + github.com/cosmos/cosmos-proto v1.0.0-beta.5 + github.com/cosmos/cosmos-sdk v0.50.7 + github.com/cosmos/gogoproto v1.5.0 github.com/ethereum/go-ethereum v1.12.0 - github.com/gogo/protobuf v1.3.3 - github.com/golang/protobuf v1.5.3 - github.com/golangci/golangci-lint v1.55.0 - github.com/gorilla/mux v1.8.0 + github.com/golang/protobuf v1.5.4 github.com/grpc-ecosystem/grpc-gateway v1.16.0 - github.com/spf13/cobra v1.7.0 - github.com/stretchr/testify v1.8.4 - github.com/tendermint/tendermint v0.34.27 - github.com/tendermint/tm-db v0.6.7 - google.golang.org/genproto/googleapis/api v0.0.0-20230526203410-71b5a4ffd15e - google.golang.org/grpc v1.56.2 - gopkg.in/yaml.v2 v2.4.0 - mvdan.cc/gofumpt v0.5.0 + github.com/spf13/cobra v1.8.1 + github.com/stretchr/testify v1.9.0 + google.golang.org/genproto/googleapis/api v0.0.0-20240805194559-2c9e96a0b5d4 + google.golang.org/grpc v1.65.0 + mvdan.cc/gofumpt v0.6.0 ) require ( - 4d63.com/gocheckcompilerdirectives v1.2.1 // indirect - 4d63.com/gochecknoglobals v0.2.1 // indirect - cosmossdk.io/api v0.2.6 // indirect - cosmossdk.io/core v0.5.1 // indirect - cosmossdk.io/depinject v1.0.0-alpha.3 // indirect + cosmossdk.io/collections v0.4.0 // indirect + cosmossdk.io/x/tx v0.13.3 // indirect filippo.io/edwards25519 v1.0.0 // indirect - github.com/4meepo/tagalign v1.3.3 // indirect github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect github.com/99designs/keyring v1.2.2 // indirect - github.com/Abirdcfly/dupword v0.0.13 // indirect - github.com/Antonboom/errname v0.1.12 // indirect - github.com/Antonboom/nilnil v0.1.7 // indirect - github.com/Antonboom/testifylint v0.2.3 // indirect - github.com/BurntSushi/toml v1.3.2 // indirect - github.com/ChainSafe/go-schnorrkel v1.0.0 // indirect - github.com/DataDog/zstd v1.5.2 // indirect - github.com/Djarvur/go-err113 v0.0.0-20210108212216-aea10b59be24 // indirect - github.com/GaijinEntertainment/go-exhaustruct/v3 v3.1.0 // indirect - github.com/Masterminds/semver v1.5.0 // indirect - github.com/OpenPeeDeeP/depguard/v2 v2.1.0 // indirect - github.com/alecthomas/go-check-sumtype v0.1.3 // indirect - github.com/alexkohler/nakedret/v2 v2.0.2 // indirect - github.com/alexkohler/prealloc v1.0.0 // indirect - github.com/alingse/asasalint v0.0.11 // indirect - github.com/armon/go-metrics v0.4.1 // indirect - github.com/ashanbrown/forbidigo v1.6.0 // indirect - github.com/ashanbrown/makezero v1.1.1 // indirect + github.com/DataDog/datadog-go v3.2.0+incompatible // indirect + github.com/DataDog/zstd v1.5.5 // indirect github.com/beorn7/perks v1.0.1 // indirect github.com/bgentry/speakeasy v0.1.1-0.20220910012023-760eaf8b6816 // indirect - github.com/bkielbasa/cyclop v1.2.1 // indirect - github.com/blizzy78/varnamelen v0.8.0 // indirect - github.com/bombsimon/wsl/v3 v3.4.0 // indirect - github.com/breml/bidichk v0.2.7 // indirect - github.com/breml/errchkjson v0.3.6 // indirect github.com/btcsuite/btcd/btcec/v2 v2.3.2 // indirect - github.com/butuzov/ireturn v0.2.1 // indirect - github.com/butuzov/mirror v1.1.0 // indirect - github.com/catenacyber/perfsprint v0.2.0 // indirect - github.com/ccojocar/zxcvbn-go v1.0.1 // indirect + github.com/cenkalti/backoff/v4 v4.1.3 // indirect github.com/cespare/xxhash v1.1.0 // indirect - github.com/cespare/xxhash/v2 v2.2.0 // indirect - github.com/charithe/durationcheck v0.0.10 // indirect - github.com/chavacava/garif v0.1.0 // indirect - github.com/cockroachdb/errors v1.9.1 // indirect + github.com/cespare/xxhash/v2 v2.3.0 // indirect + github.com/cockroachdb/errors v1.11.3 // indirect + github.com/cockroachdb/fifo v0.0.0-20240606204812-0bbfbd93a7ce // indirect github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b // indirect - github.com/cockroachdb/pebble v0.0.0-20230209160836-829675f94811 // indirect - github.com/cockroachdb/redact v1.1.3 // indirect - github.com/confio/ics23/go v0.9.1 // indirect - github.com/cosmos/cosmos-db v0.0.0-20221226095112-f3c38ecb5e32 // indirect - github.com/cosmos/cosmos-proto v1.0.0-beta.2 // indirect + github.com/cockroachdb/pebble v1.1.1 // indirect + github.com/cockroachdb/redact v1.1.5 // indirect + github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06 // indirect + github.com/cometbft/cometbft-db v0.11.0 // indirect github.com/cosmos/go-bip39 v1.0.0 // indirect - github.com/cosmos/gorocksdb v1.2.0 // indirect - github.com/cosmos/iavl v0.19.5 // indirect - github.com/cosmos/ledger-cosmos-go v0.12.2 // indirect - github.com/curioswitch/go-reassign v0.2.0 // indirect - github.com/daixiang0/gci v0.11.2 // indirect + github.com/cosmos/gogogateway v1.2.0 // indirect + github.com/cosmos/iavl v1.1.2 // indirect + github.com/cosmos/ics23/go v0.10.0 // indirect + github.com/cosmos/ledger-cosmos-go v0.13.3 // indirect github.com/danieljoos/wincred v1.1.2 // indirect - github.com/davecgh/go-spew v1.1.1 // indirect - github.com/decred/dcrd/dcrec/secp256k1/v4 v4.1.0 // indirect - github.com/denis-tingaikin/go-header v0.4.3 // indirect + github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect + github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0 // indirect + github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f // indirect github.com/dgraph-io/badger/v2 v2.2007.4 // indirect github.com/dgraph-io/ristretto v0.1.1 // indirect github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13 // indirect github.com/dustin/go-humanize v1.0.1 // indirect - github.com/dvsekhvalnov/jose2go v1.5.0 // indirect - github.com/esimonov/ifshort v1.0.4 // indirect - github.com/ettle/strcase v0.1.1 // indirect - github.com/fatih/color v1.15.0 // indirect - github.com/fatih/structtag v1.2.0 // indirect - github.com/firefart/nonamedreturns v1.0.4 // indirect - github.com/fsnotify/fsnotify v1.6.0 // indirect - github.com/fzipp/gocyclo v0.6.0 // indirect - github.com/getsentry/sentry-go v0.18.0 // indirect - github.com/ghostiam/protogetter v0.2.3 // indirect - github.com/go-critic/go-critic v0.9.0 // indirect + github.com/dvsekhvalnov/jose2go v1.6.0 // indirect + github.com/emicklei/dot v1.6.1 // indirect + github.com/fatih/color v1.16.0 // indirect + github.com/felixge/httpsnoop v1.0.4 // indirect + github.com/fsnotify/fsnotify v1.7.0 // indirect + github.com/getsentry/sentry-go v0.27.0 // indirect github.com/go-kit/kit v0.12.0 // indirect github.com/go-kit/log v0.2.1 // indirect github.com/go-logfmt/logfmt v0.6.0 // indirect - github.com/go-toolsmith/astcast v1.1.0 // indirect - github.com/go-toolsmith/astcopy v1.1.0 // indirect - github.com/go-toolsmith/astequal v1.1.0 // indirect - github.com/go-toolsmith/astfmt v1.1.0 // indirect - github.com/go-toolsmith/astp v1.1.0 // indirect - github.com/go-toolsmith/strparse v1.1.0 // indirect - github.com/go-toolsmith/typep v1.1.0 // indirect - github.com/go-xmlfmt/xmlfmt v1.1.2 // indirect - github.com/gobwas/glob v0.2.3 // indirect github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect - github.com/gofrs/flock v0.8.1 // indirect - github.com/golang/glog v1.1.0 // indirect + github.com/gogo/googleapis v1.4.1 // indirect + github.com/gogo/protobuf v1.3.3 // indirect + github.com/golang/glog v1.2.1 // indirect github.com/golang/snappy v0.0.5-0.20220116011046-fa5810519dcb // indirect - github.com/golangci/check v0.0.0-20180506172741-cfe4005ccda2 // indirect - github.com/golangci/dupl v0.0.0-20180902072040-3e9179ac440a // indirect - github.com/golangci/go-misc v0.0.0-20220329215616-d24fe342adfe // indirect - github.com/golangci/gofmt v0.0.0-20231018234816-f50ced29576e // indirect - github.com/golangci/lint-1 v0.0.0-20191013205115-297bf364a8e0 // indirect - github.com/golangci/maligned v0.0.0-20180506175553-b1d89398deca // indirect - github.com/golangci/misspell v0.4.1 // indirect - github.com/golangci/revgrep v0.5.0 // indirect - github.com/golangci/unconvert v0.0.0-20180507085042-28b1c447d1f4 // indirect github.com/google/btree v1.1.2 // indirect - github.com/google/go-cmp v0.5.9 // indirect - github.com/google/gofuzz v1.2.0 // indirect - github.com/gordonklaus/ineffassign v0.0.0-20230610083614-0e73809eb601 // indirect + github.com/google/go-cmp v0.6.0 // indirect + github.com/google/orderedcode v0.0.1 // indirect + github.com/gorilla/handlers v1.5.2 // indirect + github.com/gorilla/mux v1.8.1 // indirect github.com/gorilla/websocket v1.5.0 // indirect - github.com/gostaticanalysis/analysisutil v0.7.1 // indirect - github.com/gostaticanalysis/comment v1.4.2 // indirect - github.com/gostaticanalysis/forcetypeassert v0.1.0 // indirect - github.com/gostaticanalysis/nilerr v0.1.1 // indirect - github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 // indirect + github.com/grpc-ecosystem/go-grpc-middleware v1.4.0 // indirect github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c // indirect - github.com/gtank/merlin v0.1.1 // indirect - github.com/gtank/ristretto255 v0.1.2 // indirect - github.com/hashicorp/errwrap v1.1.0 // indirect + github.com/hashicorp/go-hclog v1.5.0 // indirect github.com/hashicorp/go-immutable-radix v1.3.1 // indirect - github.com/hashicorp/go-multierror v1.1.1 // indirect - github.com/hashicorp/go-version v1.6.0 // indirect - github.com/hashicorp/golang-lru v0.5.5-0.20210104140557-80c98217689d // indirect + github.com/hashicorp/go-metrics v0.5.3 // indirect + github.com/hashicorp/go-plugin v1.5.2 // indirect + github.com/hashicorp/golang-lru v1.0.2 // indirect + github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect github.com/hashicorp/hcl v1.0.0 // indirect + github.com/hashicorp/yamux v0.1.1 // indirect github.com/hdevalence/ed25519consensus v0.1.0 // indirect - github.com/hexops/gotextdiff v1.0.3 // indirect github.com/holiman/uint256 v1.2.2-0.20230321075855-87b91420868c // indirect + github.com/huandu/skiplist v1.2.0 // indirect + github.com/iancoleman/strcase v0.3.0 // indirect + github.com/improbable-eng/grpc-web v0.15.0 // indirect github.com/inconshreveable/mousetrap v1.1.0 // indirect - github.com/jgautheron/goconst v1.6.0 // indirect - github.com/jingyugao/rowserrcheck v1.1.1 // indirect - github.com/jirfag/go-printf-func-name v0.0.0-20200119135958-7558a9eaa5af // indirect github.com/jmhodges/levigo v1.0.0 // indirect - github.com/julz/importas v0.1.0 // indirect - github.com/kisielk/errcheck v1.6.3 // indirect - github.com/kisielk/gotool v1.0.0 // indirect - github.com/kkHAIKE/contextcheck v1.1.4 // indirect - github.com/klauspost/compress v1.16.3 // indirect + github.com/klauspost/compress v1.17.7 // indirect github.com/kr/pretty v0.3.1 // indirect github.com/kr/text v0.2.0 // indirect - github.com/kulti/thelper v0.6.3 // indirect - github.com/kunwardeep/paralleltest v1.0.8 // indirect - github.com/kyoh86/exportloopref v0.1.11 // indirect - github.com/ldez/gomoddirectives v0.2.3 // indirect - github.com/ldez/tagliatelle v0.5.0 // indirect - github.com/leonklingele/grouper v1.1.1 // indirect + github.com/lib/pq v1.10.9 // indirect github.com/libp2p/go-buffer-pool v0.1.0 // indirect - github.com/linxGnu/grocksdb v1.7.10 // indirect - github.com/lufeee/execinquery v1.2.1 // indirect - github.com/macabu/inamedparam v0.1.2 // indirect + github.com/linxGnu/grocksdb v1.8.14 // indirect github.com/magiconair/properties v1.8.7 // indirect - github.com/maratori/testableexamples v1.0.0 // indirect - github.com/maratori/testpackage v1.1.1 // indirect - github.com/matoous/godox v0.0.0-20230222163458-006bad1f9d26 // indirect github.com/mattn/go-colorable v0.1.13 // indirect - github.com/mattn/go-isatty v0.0.18 // indirect - github.com/mattn/go-runewidth v0.0.14 // indirect - github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect - github.com/mbilski/exhaustivestruct v1.2.0 // indirect - github.com/mgechev/revive v1.3.4 // indirect - github.com/mimoo/StrobeGo v0.0.0-20220103164710-9a04d6ca976b // indirect - github.com/mitchellh/go-homedir v1.1.0 // indirect + github.com/mattn/go-isatty v0.0.20 // indirect + github.com/minio/highwayhash v1.0.2 // indirect + github.com/mitchellh/go-testing-interface v1.14.1 // indirect github.com/mitchellh/mapstructure v1.5.0 // indirect - github.com/moricho/tparallel v0.3.1 // indirect github.com/mtibben/percent v0.2.1 // indirect - github.com/nakabonne/nestif v0.3.1 // indirect - github.com/nishanths/exhaustive v0.11.0 // indirect - github.com/nishanths/predeclared v0.2.2 // indirect - github.com/nunnatsa/ginkgolinter v0.14.0 // indirect - github.com/olekukonko/tablewriter v0.0.5 // indirect - github.com/pelletier/go-toml/v2 v2.0.8 // indirect - github.com/petermattis/goid v0.0.0-20230317030725-371a4b8eda08 // indirect + github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a // indirect + github.com/oklog/run v1.1.0 // indirect + github.com/onsi/gomega v1.31.1 // indirect + github.com/pelletier/go-toml/v2 v2.2.2 // indirect + github.com/petermattis/goid v0.0.0-20231207134359-e60b3f734c67 // indirect github.com/pkg/errors v0.9.1 // indirect - github.com/pmezard/go-difflib v1.0.0 // indirect - github.com/polyfloyd/go-errorlint v1.4.5 // indirect - github.com/prometheus/client_golang v1.15.0 // indirect - github.com/prometheus/client_model v0.3.0 // indirect - github.com/prometheus/common v0.42.0 // indirect - github.com/prometheus/procfs v0.9.0 // indirect - github.com/quasilyte/go-ruleguard v0.4.0 // indirect - github.com/quasilyte/gogrep v0.5.0 // indirect - github.com/quasilyte/regex/syntax v0.0.0-20210819130434-b3f0c404a727 // indirect - github.com/quasilyte/stdinfo v0.0.0-20220114132959-f7386bf02567 // indirect + github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect + github.com/prometheus/client_golang v1.19.0 // indirect + github.com/prometheus/client_model v0.6.1 // indirect + github.com/prometheus/common v0.52.2 // indirect + github.com/prometheus/procfs v0.13.0 // indirect github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect - github.com/regen-network/cosmos-proto v0.3.1 // indirect - github.com/rivo/uniseg v0.4.3 // indirect - github.com/rogpeppe/go-internal v1.10.0 // indirect - github.com/ryancurrah/gomodguard v1.3.0 // indirect - github.com/ryanrolds/sqlclosecheck v0.5.1 // indirect - github.com/sanposhiho/wastedassign/v2 v2.0.7 // indirect + github.com/rogpeppe/go-internal v1.12.0 // indirect + github.com/rs/cors v1.8.3 // indirect + github.com/rs/zerolog v1.32.0 // indirect + github.com/sagikazarmark/locafero v0.4.0 // indirect + github.com/sagikazarmark/slog-shim v0.1.0 // indirect github.com/sasha-s/go-deadlock v0.3.1 // indirect - github.com/sashamelentyev/interfacebloat v1.1.0 // indirect - github.com/sashamelentyev/usestdlibvars v1.24.0 // indirect - github.com/securego/gosec/v2 v2.18.1 // indirect - github.com/shazow/go-diff v0.0.0-20160112020656-b6b7b6733b8c // indirect - github.com/sirupsen/logrus v1.9.3 // indirect - github.com/sivchari/containedctx v1.0.3 // indirect - github.com/sivchari/nosnakecase v1.7.0 // indirect - github.com/sivchari/tenv v1.7.1 // indirect - github.com/sonatard/noctx v0.0.2 // indirect - github.com/sourcegraph/go-diff v0.7.0 // indirect - github.com/spf13/afero v1.9.3 // indirect - github.com/spf13/cast v1.5.0 // indirect - github.com/spf13/jwalterweatherman v1.1.0 // indirect + github.com/sourcegraph/conc v0.3.0 // indirect + github.com/spf13/afero v1.11.0 // indirect + github.com/spf13/cast v1.6.0 // indirect github.com/spf13/pflag v1.0.5 // indirect - github.com/spf13/viper v1.15.0 // indirect - github.com/ssgreg/nlreturn/v2 v2.2.1 // indirect - github.com/stbenjam/no-sprintf-host-port v0.1.1 // indirect - github.com/stretchr/objx v0.5.0 // indirect - github.com/subosito/gotenv v1.4.2 // indirect + github.com/spf13/viper v1.18.2 // indirect + github.com/subosito/gotenv v1.6.0 // indirect github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d // indirect - github.com/t-yuki/gocover-cobertura v0.0.0-20180217150009-aaee18c8195c // indirect - github.com/tdakkota/asciicheck v0.2.0 // indirect github.com/tendermint/go-amino v0.16.0 // indirect - github.com/tetafro/godot v1.4.15 // indirect - github.com/tidwall/btree v1.5.0 // indirect - github.com/timakin/bodyclose v0.0.0-20230421092635-574207250966 // indirect - github.com/timonwong/loggercheck v0.9.4 // indirect - github.com/tomarrell/wrapcheck/v2 v2.8.1 // indirect - github.com/tommy-muehle/go-mnd/v2 v2.5.1 // indirect - github.com/ultraware/funlen v0.1.0 // indirect - github.com/ultraware/whitespace v0.0.5 // indirect - github.com/uudashr/gocognit v1.1.2 // indirect - github.com/xen0n/gosmopolitan v1.2.2 // indirect - github.com/yagipy/maintidx v1.0.0 // indirect - github.com/yeya24/promlinter v0.2.0 // indirect - github.com/ykadowak/zerologlint v0.1.3 // indirect - github.com/zondax/hid v0.9.1 // indirect - github.com/zondax/ledger-go v0.14.1 // indirect - gitlab.com/bosi/decorder v0.4.1 // indirect - go-simpler.org/sloglint v0.1.2 // indirect - go.etcd.io/bbolt v1.3.7 // indirect - go.tmz.dev/musttag v0.7.2 // indirect - go.uber.org/atomic v1.10.0 // indirect + github.com/tidwall/btree v1.7.0 // indirect + github.com/zondax/hid v0.9.2 // indirect + github.com/zondax/ledger-go v0.14.3 // indirect + go.etcd.io/bbolt v1.4.0-alpha.0.0.20240404170359-43604f3112c5 // indirect go.uber.org/multierr v1.11.0 // indirect - go.uber.org/zap v1.24.0 // indirect - golang.org/x/crypto v0.14.0 // indirect - golang.org/x/exp v0.0.0-20230515195305-f3d0a9c9a5cc // indirect - golang.org/x/exp/typeparams v0.0.0-20230307190834-24139beb5833 // indirect - golang.org/x/mod v0.13.0 // indirect - golang.org/x/net v0.17.0 // indirect - golang.org/x/sync v0.4.0 // indirect - golang.org/x/sys v0.13.0 // indirect - golang.org/x/term v0.13.0 // indirect - golang.org/x/text v0.13.0 // indirect - golang.org/x/tools v0.14.0 // indirect - google.golang.org/genproto v0.0.0-20230629202037-9506855d4529 // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20230706204954-ccb25ca9f130 // indirect - google.golang.org/protobuf v1.31.0 // indirect + golang.org/x/crypto v0.24.0 // indirect + golang.org/x/exp v0.0.0-20240404231335-c0f41cb1a7a0 // indirect + golang.org/x/mod v0.17.0 // indirect + golang.org/x/net v0.26.0 // indirect + golang.org/x/sync v0.7.0 // indirect + golang.org/x/sys v0.21.0 // indirect + golang.org/x/term v0.21.0 // indirect + golang.org/x/text v0.16.0 // indirect + golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d // indirect + google.golang.org/genproto v0.0.0-20240227224415-6ceb2ff114de // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20240730163845-b1a4ccb954bf // indirect + google.golang.org/protobuf v1.34.2 // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect - honnef.co/go/tools v0.4.6 // indirect - mvdan.cc/interfacer v0.0.0-20180901003855-c20040233aed // indirect - mvdan.cc/lint v0.0.0-20170908181259-adc824a0674b // indirect - mvdan.cc/unparam v0.0.0-20221223090309-7455f1af531d // indirect + gotest.tools/v3 v3.5.1 // indirect + nhooyr.io/websocket v1.8.7 // indirect + pgregory.net/rapid v1.1.0 // indirect + sigs.k8s.io/yaml v1.4.0 // indirect ) replace ( - // use cosmos compatible ChainSafe/go-schnorrkel - github.com/ChainSafe/go-schnorrkel => github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d + // use local version of circlefin/noble-cctp/api + github.com/circlefin/noble-cctp/api => ./api // use cosmos flavored gogo/protobuf // https://github.com/cosmos/cosmos-sdk/issues/8469 @@ -286,10 +173,4 @@ replace ( // use cosmos compatible syndtr/goleveldb github.com/syndtr/goleveldb => github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 - - // use cometbft - github.com/tendermint/tendermint => github.com/cometbft/cometbft v0.34.27 - - // use cosmos compatible google.golang.org/grpc - google.golang.org/grpc => google.golang.org/grpc v1.33.2 ) diff --git a/go.sum b/go.sum index 9cd0191..9f2cc6d 100644 --- a/go.sum +++ b/go.sum @@ -1,319 +1,246 @@ -4d63.com/gocheckcompilerdirectives v1.2.1 h1:AHcMYuw56NPjq/2y615IGg2kYkBdTvOaojYCBcRE7MA= -4d63.com/gocheckcompilerdirectives v1.2.1/go.mod h1:yjDJSxmDTtIHHCqX0ufRYZDL6vQtMG7tJdKVeWwsqvs= -4d63.com/gochecknoglobals v0.2.1 h1:1eiorGsgHOFOuoOiJDy2psSrQbRdIHrlge0IJIkUgDc= -4d63.com/gochecknoglobals v0.2.1/go.mod h1:KRE8wtJB3CXCsb1xy421JfTHIIbmT3U5ruxw2Qu8fSU= +cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= -cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= -cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU= -cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= -cloud.google.com/go v0.44.3/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= -cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc= -cloud.google.com/go v0.46.3/go.mod h1:a6bKKbmY7er1mI7TEI4lsAkts/mkhTSZK8w33B4RAg0= -cloud.google.com/go v0.50.0/go.mod h1:r9sluTvynVuxRIOHXQEHMFffphuXHOMZMycpNR5e6To= -cloud.google.com/go v0.52.0/go.mod h1:pXajvRH/6o3+F9jDHZWQ5PbGhn+o8w9qiu/CffaVdO4= -cloud.google.com/go v0.53.0/go.mod h1:fp/UouUEsRkN6ryDKNW/Upv/JBKnv6WDthjR6+vze6M= -cloud.google.com/go v0.54.0/go.mod h1:1rq2OEkV3YMf6n/9ZvGWI3GWw0VoqH/1x2nd8Is/bPc= -cloud.google.com/go v0.56.0/go.mod h1:jr7tqZxxKOVYizybht9+26Z/gUq7tiRzu+ACVAMbKVk= -cloud.google.com/go v0.57.0/go.mod h1:oXiQ6Rzq3RAkkY7N6t3TcE6jE+CIBBbA36lwQ1JyzZs= -cloud.google.com/go v0.62.0/go.mod h1:jmCYTdRCQuc1PHIIJ/maLInMho30T/Y0M4hTdTShOYc= -cloud.google.com/go v0.65.0/go.mod h1:O5N8zS7uWy9vkA9vayVHs65eM1ubvY4h553ofrNHObY= -cloud.google.com/go v0.72.0/go.mod h1:M+5Vjvlc2wnp6tjzE102Dw08nGShTscUx2nZMufOKPI= -cloud.google.com/go v0.74.0/go.mod h1:VV1xSbzvo+9QJOxLDaJfTjx5e+MePCpCWwvftOeQmWk= -cloud.google.com/go v0.75.0/go.mod h1:VGuuCn7PG0dwsd5XPVm2Mm3wlh3EL55/79EKB6hlPTY= -cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= -cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE= -cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc= -cloud.google.com/go/bigquery v1.5.0/go.mod h1:snEHRnqQbz117VIFhE8bmtwIDY80NLUZUMb4Nv6dBIg= -cloud.google.com/go/bigquery v1.7.0/go.mod h1://okPTzCYNXSlb24MZs83e2Do+h+VXtc4gLoIoXIAPc= -cloud.google.com/go/bigquery v1.8.0/go.mod h1:J5hqkt3O0uAFnINi6JXValWIb1v0goeZM77hZzJN/fQ= -cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= -cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk= -cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I= -cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw= -cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA= -cloud.google.com/go/pubsub v1.3.1/go.mod h1:i+ucay31+CNRpDW4Lu78I4xXG+O1r/MAHgjpRVR+TSU= -cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw= -cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0ZeosJ0Rtdos= -cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk= -cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs= -cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0= -cloud.google.com/go/storage v1.14.0/go.mod h1:GrKmX003DSIwi9o29oFT7YDnHYwZoctc3fOKtUw0Xmo= -cosmossdk.io/api v0.2.6 h1:AoNwaLLapcLsphhMK6+o0kZl+D6MMUaHVqSdwinASGU= -cosmossdk.io/api v0.2.6/go.mod h1:u/d+GAxil0nWpl1XnQL8nkziQDIWuBDhv8VnDm/s6dI= -cosmossdk.io/core v0.5.1 h1:vQVtFrIYOQJDV3f7rw4pjjVqc1id4+mE0L9hHP66pyI= -cosmossdk.io/core v0.5.1/go.mod h1:KZtwHCLjcFuo0nmDc24Xy6CRNEL9Vl/MeimQ2aC7NLE= -cosmossdk.io/depinject v1.0.0-alpha.3 h1:6evFIgj//Y3w09bqOUOzEpFj5tsxBqdc5CfkO7z+zfw= -cosmossdk.io/depinject v1.0.0-alpha.3/go.mod h1:eRbcdQ7MRpIPEM5YUJh8k97nxHpYbc3sMUnEtt8HPWU= -cosmossdk.io/errors v1.0.0 h1:nxF07lmlBbB8NKQhtJ+sJm6ef5uV1XkvPXG2bUntb04= -cosmossdk.io/errors v1.0.0/go.mod h1:+hJZLuhdDE0pYN8HkOrVNwrIOYvUGnn6+4fjnJs/oV0= -cosmossdk.io/math v1.0.0-beta.4 h1:JtKedVLGzA0vv84xjYmZ75RKG35Kf2WwcFu8IjRkIIw= -cosmossdk.io/math v1.0.0-beta.4/go.mod h1:An0MllWJY6PxibUpnwGk8jOm+a/qIxlKmL5Zyp9NnaM= +cosmossdk.io/api v0.7.5 h1:eMPTReoNmGUm8DeiQL9DyM8sYDjEhWzL1+nLbI9DqtQ= +cosmossdk.io/api v0.7.5/go.mod h1:IcxpYS5fMemZGqyYtErK7OqvdM0C8kdW3dq8Q/XIG38= +cosmossdk.io/collections v0.4.0 h1:PFmwj2W8szgpD5nOd8GWH6AbYNi1f2J6akWXJ7P5t9s= +cosmossdk.io/collections v0.4.0/go.mod h1:oa5lUING2dP+gdDquow+QjlF45eL1t4TJDypgGd+tv0= +cosmossdk.io/core v0.11.0 h1:vtIafqUi+1ZNAE/oxLOQQ7Oek2n4S48SWLG8h/+wdbo= +cosmossdk.io/core v0.11.0/go.mod h1:LaTtayWBSoacF5xNzoF8tmLhehqlA9z1SWiPuNC6X1w= +cosmossdk.io/depinject v1.0.0-alpha.4 h1:PLNp8ZYAMPTUKyG9IK2hsbciDWqna2z1Wsl98okJopc= +cosmossdk.io/depinject v1.0.0-alpha.4/go.mod h1:HeDk7IkR5ckZ3lMGs/o91AVUc7E596vMaOmslGFM3yU= +cosmossdk.io/errors v1.0.1 h1:bzu+Kcr0kS/1DuPBtUFdWjzLqyUuCiyHjyJB6srBV/0= +cosmossdk.io/errors v1.0.1/go.mod h1:MeelVSZThMi4bEakzhhhE/CKqVv3nOJDA25bIqRDu/U= +cosmossdk.io/log v1.3.1 h1:UZx8nWIkfbbNEWusZqzAx3ZGvu54TZacWib3EzUYmGI= +cosmossdk.io/log v1.3.1/go.mod h1:2/dIomt8mKdk6vl3OWJcPk2be3pGOS8OQaLUM/3/tCM= +cosmossdk.io/math v1.3.0 h1:RC+jryuKeytIiictDslBP9i1fhkVm6ZDmZEoNP316zE= +cosmossdk.io/math v1.3.0/go.mod h1:vnRTxewy+M7BtXBNFybkuhSH4WfedVAAnERHgVFhp3k= +cosmossdk.io/store v1.1.0 h1:LnKwgYMc9BInn9PhpTFEQVbL9UK475G2H911CGGnWHk= +cosmossdk.io/store v1.1.0/go.mod h1:oZfW/4Fc/zYqu3JmQcQdUJ3fqu5vnYTn3LZFFy8P8ng= +cosmossdk.io/x/tx v0.13.3 h1:Ha4mNaHmxBc6RMun9aKuqul8yHiL78EKJQ8g23Zf73g= +cosmossdk.io/x/tx v0.13.3/go.mod h1:I8xaHv0rhUdIvIdptKIqzYy27+n2+zBVaxO6fscFhys= dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= filippo.io/edwards25519 v1.0.0 h1:0wAIcmJUqRdI8IJ/3eGi5/HwXZWPujYXXlkrQogz0Ek= filippo.io/edwards25519 v1.0.0/go.mod h1:N1IkdkCkiLB6tki+MYJoSx2JTY9NUlxZE7eHn5EwJns= -github.com/4meepo/tagalign v1.3.3 h1:ZsOxcwGD/jP4U/aw7qeWu58i7dwYemfy5Y+IF1ACoNw= -github.com/4meepo/tagalign v1.3.3/go.mod h1:Q9c1rYMZJc9dPRkbQPpcBNCLEmY2njbAsXhQOZFE2dE= github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 h1:/vQbFIOMbk2FiG/kXiLl8BRyzTWDw7gX/Hz7Dd5eDMs= github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4/go.mod h1:hN7oaIRCjzsZ2dE+yG5k+rsdt3qcwykqK6HVGcKwsw4= github.com/99designs/keyring v1.2.2 h1:pZd3neh/EmUzWONb35LxQfvuY7kiSXAq3HQd97+XBn0= github.com/99designs/keyring v1.2.2/go.mod h1:wes/FrByc8j7lFOAGLGSNEg8f/PaI3cgTBqhFkHUrPk= -github.com/Abirdcfly/dupword v0.0.13 h1:SMS17YXypwP000fA7Lr+kfyBQyW14tTT+nRv9ASwUUo= -github.com/Abirdcfly/dupword v0.0.13/go.mod h1:Ut6Ue2KgF/kCOawpW4LnExT+xZLQviJPE4klBPMK/5Y= -github.com/AndreasBriese/bbloom v0.0.0-20190306092124-e2d15f34fcf9/go.mod h1:bOvUY6CB00SOBii9/FifXqc0awNKxLFCL/+pkDPuyl8= -github.com/Antonboom/errname v0.1.12 h1:oh9ak2zUtsLp5oaEd/erjB4GPu9w19NyoIskZClDcQY= -github.com/Antonboom/errname v0.1.12/go.mod h1:bK7todrzvlaZoQagP1orKzWXv59X/x0W0Io2XT1Ssro= -github.com/Antonboom/nilnil v0.1.7 h1:ofgL+BA7vlA1K2wNQOsHzLJ2Pw5B5DpWRLdDAVvvTow= -github.com/Antonboom/nilnil v0.1.7/go.mod h1:TP+ScQWVEq0eSIxqU8CbdT5DFWoHp0MbP+KMUO1BKYQ= -github.com/Antonboom/testifylint v0.2.3 h1:MFq9zyL+rIVpsvLX4vDPLojgN7qODzWsrnftNX2Qh60= -github.com/Antonboom/testifylint v0.2.3/go.mod h1:IYaXaOX9NbfAyO+Y04nfjGI8wDemC1rUyM/cYolz018= +github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161 h1:L/gRVlceqvL25UVaW/CKtUDjefjrs0SPonmDGUVOYP0= +github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161/go.mod h1:xomTg63KZ2rFqZQzSB4Vz2SUXa1BpHTVz9L5PTmPC4E= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= -github.com/BurntSushi/toml v1.3.2 h1:o7IhLm0Msx3BaB+n3Ag7L8EVlByGnpq14C4YWiu/gL8= -github.com/BurntSushi/toml v1.3.2/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ= github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= -github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d h1:nalkkPQcITbvhmL4+C4cKA87NW0tfm3Kl9VXRoPywFg= -github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d/go.mod h1:URdX5+vg25ts3aCh8H5IFZybJYKWhJHYMTnf+ULtoC4= -github.com/CloudyKit/fastprinter v0.0.0-20200109182630-33d98a066a53/go.mod h1:+3IMCy2vIlbG1XG/0ggNQv0SvxCAIpPM5b1nCz56Xno= -github.com/CloudyKit/jet/v3 v3.0.0/go.mod h1:HKQPgSJmdK8hdoAbKUUWajkHyHo4RaU5rMdUywE7VMo= +github.com/DataDog/datadog-go v3.2.0+incompatible h1:qSG2N4FghB1He/r2mFrWKCaL7dXCilEuNEeAn20fdD4= github.com/DataDog/datadog-go v3.2.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ= -github.com/DataDog/zstd v1.5.2 h1:vUG4lAyuPCXO0TLbXvPv7EB7cNK1QV/luu55UHLrrn8= -github.com/DataDog/zstd v1.5.2/go.mod h1:g4AWEaM3yOg3HYfnJ3YIawPnVdXJh9QME85blwSAmyw= -github.com/Djarvur/go-err113 v0.0.0-20210108212216-aea10b59be24 h1:sHglBQTwgx+rWPdisA5ynNEsoARbiCBOyGcJM4/OzsM= -github.com/Djarvur/go-err113 v0.0.0-20210108212216-aea10b59be24/go.mod h1:4UJr5HIiMZrwgkSPdsjy2uOQExX/WEILpIrO9UPGuXs= -github.com/GaijinEntertainment/go-exhaustruct/v3 v3.1.0 h1:3ZBs7LAezy8gh0uECsA6CGU43FF3zsx5f4eah5FxTMA= -github.com/GaijinEntertainment/go-exhaustruct/v3 v3.1.0/go.mod h1:rZLTje5A9kFBe0pzhpe2TdhRniBF++PRHQuRpR8esVc= -github.com/Joker/hpp v1.0.0/go.mod h1:8x5n+M1Hp5hC0g8okX3sR3vFQwynaX/UgSOM9MeBKzY= -github.com/Masterminds/semver v1.5.0 h1:H65muMkzWKEuNDnfl9d70GUjFniHKHRbFPGBuZ3QEww= -github.com/Masterminds/semver v1.5.0/go.mod h1:MB6lktGJrhw8PrUyiEoblNEGEQ+RzHPF078ddwwvV3Y= +github.com/DataDog/zstd v1.5.5 h1:oWf5W7GtOLgp6bciQYDmhHHjdhYkALu6S/5Ni9ZgSvQ= +github.com/DataDog/zstd v1.5.5/go.mod h1:g4AWEaM3yOg3HYfnJ3YIawPnVdXJh9QME85blwSAmyw= +github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible/go.mod h1:r7JcOSlj0wfOMncg0iLm8Leh48TZaKVeNIfJntJ2wa0= +github.com/Microsoft/go-winio v0.6.1 h1:9/kr64B9VUZrLm5YYwbGtUJnMgqWVOdUAXu6Migciow= +github.com/Microsoft/go-winio v0.6.1/go.mod h1:LRdKpFKfdobln8UmuiYcKPot9D2v6svN5+sAH+4kjUM= +github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5 h1:TngWCqHvy9oXAN6lEVMRuU21PR1EtLVZJmdB18Gu3Rw= +github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5/go.mod h1:lmUJ/7eu/Q8D7ML55dXQrVaamCz2vxCfdQBasLZfHKk= github.com/OneOfOne/xxhash v1.2.2 h1:KMrpdQIwFcEqXDklaen+P1axHaj9BSKzvpUUfnHldSE= github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU= -github.com/OpenPeeDeeP/depguard/v2 v2.1.0 h1:aQl70G173h/GZYhWf36aE5H0KaujXfVMnn/f1kSDVYY= -github.com/OpenPeeDeeP/depguard/v2 v2.1.0/go.mod h1:PUBgk35fX4i7JDmwzlJwJ+GMe6NfO1723wmJMgPThNQ= -github.com/Shopify/goreferrer v0.0.0-20181106222321-ec9c9a553398/go.mod h1:a1uqRtAwp2Xwc6WNPJEufxJ7fx3npB4UV/JOLmbu5I0= +github.com/Shopify/sarama v1.19.0/go.mod h1:FVkBWblsNy7DGZRfXLU0O9RCGt5g3g3yEuWXgklEdEo= +github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMxUHB2q5Ap20/P/eIdh4G0pI= github.com/VividCortex/gohistogram v1.0.0 h1:6+hBz+qvs0JOrrNhhmR7lFxo5sINxBCGXrdtl/UvroE= github.com/VividCortex/gohistogram v1.0.0/go.mod h1:Pf5mBqqDxYaXu3hDrrU+w6nw50o/4+TcAqDqk/vUH7g= -github.com/Workiva/go-datastructures v1.0.53 h1:J6Y/52yX10Xc5JjXmGtWoSSxs3mZnGSaq37xZZh7Yig= -github.com/Workiva/go-datastructures v1.0.53/go.mod h1:1yZL+zfsztete+ePzZz/Zb1/t5BnDuE2Ya2MMGhzP6A= -github.com/ajg/form v1.5.1/go.mod h1:uL1WgH+h2mgNtvBq0339dVnzXdBETtL2LeUXaIv25UY= -github.com/alecthomas/assert/v2 v2.2.2 h1:Z/iVC0xZfWTaFNE6bA3z07T86hd45Xe2eLt6WVy2bbk= -github.com/alecthomas/assert/v2 v2.2.2/go.mod h1:pXcQ2Asjp247dahGEmsZ6ru0UVwnkhktn7S0bBDLxvQ= -github.com/alecthomas/go-check-sumtype v0.1.3 h1:M+tqMxB68hcgccRXBMVCPI4UJ+QUfdSx0xdbypKCqA8= -github.com/alecthomas/go-check-sumtype v0.1.3/go.mod h1:WyYPfhfkdhyrdaligV6svFopZV8Lqdzn5pyVBaV6jhQ= -github.com/alecthomas/participle/v2 v2.0.0-alpha7 h1:cK4vjj0VSgb3lN1nuKA5F7dw+1s1pWBe5bx7nNCnN+c= -github.com/alecthomas/participle/v2 v2.0.0-alpha7/go.mod h1:NumScqsC42o9x+dGj8/YqsIfhrIQjFEOFovxotbBirA= -github.com/alecthomas/repr v0.2.0 h1:HAzS41CIzNW5syS8Mf9UwXhNH1J9aix/BvDRf1Ml2Yk= -github.com/alecthomas/repr v0.2.0/go.mod h1:Fr0507jx4eOXV7AlPV6AVZLYrLIuIeSOWtW57eE/O/4= +github.com/adlio/schema v1.3.3 h1:oBJn8I02PyTB466pZO1UZEn1TV5XLlifBSyMrmHl/1I= +github.com/adlio/schema v1.3.3/go.mod h1:1EsRssiv9/Ce2CMzq5DoL7RiMshhuigQxrR4DMV9fHg= +github.com/afex/hystrix-go v0.0.0-20180502004556-fa1af6a1f4f5/go.mod h1:SkGFH1ia65gfNATL8TAiHDNxPzPdmEL5uirI2Uyuz6c= github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho= -github.com/alexkohler/nakedret/v2 v2.0.2 h1:qnXuZNvv3/AxkAb22q/sEsEpcA99YxLFACDtEw9TPxE= -github.com/alexkohler/nakedret/v2 v2.0.2/go.mod h1:2b8Gkk0GsOrqQv/gPWjNLDSKwG8I5moSXG1K4VIBcTQ= -github.com/alexkohler/prealloc v1.0.0 h1:Hbq0/3fJPQhNkN0dR95AVrr6R7tou91y0uHG5pOcUuw= -github.com/alexkohler/prealloc v1.0.0/go.mod h1:VetnK3dIgFBBKmg0YnD9F9x6Icjd+9cvfHR56wJVlKE= -github.com/alingse/asasalint v0.0.11 h1:SFwnQXJ49Kx/1GghOFz1XGqHYKp21Kq1nHad/0WQRnw= -github.com/alingse/asasalint v0.0.11/go.mod h1:nCaoMhw7a9kSJObvQyVzNTPBDbNpdocqrSP7t/cW5+I= github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY= +github.com/apache/thrift v0.12.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ= +github.com/apache/thrift v0.13.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ= +github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o= github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8= -github.com/armon/go-metrics v0.4.1 h1:hR91U9KYmb6bLBYLQjyM+3j+rcd/UhE+G78SFnF8gJA= -github.com/armon/go-metrics v0.4.1/go.mod h1:E6amYzXo6aW1tqzoZGT755KkbgrJsSdpwZ+3JqfkOG4= -github.com/ashanbrown/forbidigo v1.6.0 h1:D3aewfM37Yb3pxHujIPSpTf6oQk9sc9WZi8gerOIVIY= -github.com/ashanbrown/forbidigo v1.6.0/go.mod h1:Y8j9jy9ZYAEHXdu723cUlraTqbzjKF1MUyfOKL+AjcU= -github.com/ashanbrown/makezero v1.1.1 h1:iCQ87C0V0vSyO+M9E/FZYbu65auqH0lnsOkf5FcB28s= -github.com/ashanbrown/makezero v1.1.1/go.mod h1:i1bJLCRSCHOcOa9Y6MyF2FTfMZMFdHvxKHxgO5Z1axI= -github.com/aymerick/raymond v2.0.3-0.20180322193309-b565731e1464+incompatible/go.mod h1:osfaiScAUVup+UC9Nfq76eWqDhXlp+4UYaA8uhTBO6g= -github.com/benbjohnson/clock v1.3.0 h1:ip6w0uFQkncKQ979AypyG0ER7mqUSBdKLOgAle/AT8A= -github.com/benbjohnson/clock v1.3.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= +github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY= +github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= +github.com/aryann/difflib v0.0.0-20170710044230-e206f873d14a/go.mod h1:DAHtR1m6lCRdSC2Tm3DSWRPvIPr6xNKyeHdqDQSQT+A= +github.com/aws/aws-lambda-go v1.13.3/go.mod h1:4UKl9IzQMoD+QF79YdCuzCwp8VbmG4VAQwij/eHl5CU= +github.com/aws/aws-sdk-go v1.27.0/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= +github.com/aws/aws-sdk-go-v2 v0.18.0/go.mod h1:JWVYvqSMppoMJC0x5wdwiImzgXTI9FuZwxzkQq9wy+g= +github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8= github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= +github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= github.com/bgentry/speakeasy v0.1.1-0.20220910012023-760eaf8b6816 h1:41iFGWnSlI2gVpmOtVTJZNodLdLQLn/KsJqFvXwnd/s= github.com/bgentry/speakeasy v0.1.1-0.20220910012023-760eaf8b6816/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= -github.com/bkielbasa/cyclop v1.2.1 h1:AeF71HZDob1P2/pRm1so9cd1alZnrpyc4q2uP2l0gJY= -github.com/bkielbasa/cyclop v1.2.1/go.mod h1:K/dT/M0FPAiYjBgQGau7tz+3TMh4FWAEqlMhzFWCrgM= -github.com/blizzy78/varnamelen v0.8.0 h1:oqSblyuQvFsW1hbBHh1zfwrKe3kcSj0rnXkKzsQ089M= -github.com/blizzy78/varnamelen v0.8.0/go.mod h1:V9TzQZ4fLJ1DSrjVDfl89H7aMnTvKkApdHeyESmyR7k= -github.com/bombsimon/wsl/v3 v3.4.0 h1:RkSxjT3tmlptwfgEgTgU+KYKLI35p/tviNXNXiL2aNU= -github.com/bombsimon/wsl/v3 v3.4.0/go.mod h1:KkIB+TXkqy6MvK9BDZVbZxKNYsE1/oLRJbIFtf14qqo= -github.com/breml/bidichk v0.2.7 h1:dAkKQPLl/Qrk7hnP6P+E0xOodrq8Us7+U0o4UBOAlQY= -github.com/breml/bidichk v0.2.7/go.mod h1:YodjipAGI9fGcYM7II6wFvGhdMYsC5pHDlGzqvEW3tQ= -github.com/breml/errchkjson v0.3.6 h1:VLhVkqSBH96AvXEyclMR37rZslRrY2kcyq+31HCsVrA= -github.com/breml/errchkjson v0.3.6/go.mod h1:jhSDoFheAF2RSDOlCfhHO9KqhZgAYLyvHe7bRCX8f/U= +github.com/bits-and-blooms/bitset v1.10.0 h1:ePXTeiPEazB5+opbv5fr8umg2R/1NlzgDsyepwsSr88= +github.com/bits-and-blooms/bitset v1.10.0/go.mod h1:7hO7Gc7Pp1vODcmWvKMRA9BNmbv6a/7QIWpPxHddWR8= github.com/btcsuite/btcd/btcec/v2 v2.3.2 h1:5n0X6hX0Zk+6omWcihdYvdAlGf2DfasC0GMf7DClJ3U= github.com/btcsuite/btcd/btcec/v2 v2.3.2/go.mod h1:zYzJ8etWJQIv1Ogk7OzpWjowwOdXY1W/17j2MW85J04= -github.com/btcsuite/btcd/btcutil v1.1.2 h1:XLMbX8JQEiwMcYft2EGi8zPUkoa0abKIU6/BJSRsjzQ= -github.com/btcsuite/btcd/btcutil v1.1.2/go.mod h1:UR7dsSJzJUfMmFiiLlIrMq1lS9jh9EdCV7FStZSnpi0= +github.com/btcsuite/btcd/btcutil v1.1.5 h1:+wER79R5670vs/ZusMTF1yTcRYE5GUsFbdjdisflzM8= +github.com/btcsuite/btcd/btcutil v1.1.5/go.mod h1:PSZZ4UitpLBWzxGd5VGOrLnmOjtPP/a6HaFo12zMs00= github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1 h1:q0rUy8C/TYNBQS1+CGKw68tLOFYSNEs0TFnxxnS9+4U= github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1/go.mod h1:7SFka0XMvUgj3hfZtydOrQY2mwhPclbT2snogU7SQQc= -github.com/butuzov/ireturn v0.2.1 h1:w5Ks4tnfeFDZskGJ2x1GAkx5gaQV+kdU3NKNr3NEBzY= -github.com/butuzov/ireturn v0.2.1/go.mod h1:RfGHUvvAuFFxoHKf4Z8Yxuh6OjlCw1KvR2zM1NFHeBk= -github.com/butuzov/mirror v1.1.0 h1:ZqX54gBVMXu78QLoiqdwpl2mgmoOJTk7s4p4o+0avZI= -github.com/butuzov/mirror v1.1.0/go.mod h1:8Q0BdQU6rC6WILDiBM60DBfvV78OLJmMmixe7GF45AE= -github.com/catenacyber/perfsprint v0.2.0 h1:azOocHLscPjqXVJ7Mf14Zjlkn4uNua0+Hcg1wTR6vUo= -github.com/catenacyber/perfsprint v0.2.0/go.mod h1:/wclWYompEyjUD2FuIIDVKNkqz7IgBIWXIH3V0Zol50= -github.com/ccojocar/zxcvbn-go v1.0.1 h1:+sxrANSCj6CdadkcMnvde/GWU1vZiiXRbqYSCalV4/4= -github.com/ccojocar/zxcvbn-go v1.0.1/go.mod h1:g1qkXtUSvHP8lhHp5GrSmTz6uWALGRMQdw6Qnz/hi60= +github.com/bufbuild/protocompile v0.6.0 h1:Uu7WiSQ6Yj9DbkdnOe7U4mNKp58y9WDMKDn28/ZlunY= +github.com/bufbuild/protocompile v0.6.0/go.mod h1:YNP35qEYoYGme7QMtz5SBCoN4kL4g12jTtjuzRNdjpE= +github.com/casbin/casbin/v2 v2.1.2/go.mod h1:YcPU1XXisHhLzuxH9coDNf2FbKpjGlbCg3n9yuLkIJQ= github.com/cenkalti/backoff v2.2.1+incompatible h1:tNowT99t7UNflLxfYYSlKYsBpXdEet03Pg2g16Swow4= -github.com/cenkalti/backoff/v4 v4.1.1 h1:G2HAfAmvm/GcKan2oOQpBXOd2tT2G57ZnZGWa1PxPBQ= +github.com/cenkalti/backoff v2.2.1+incompatible/go.mod h1:90ReRw6GdpyfrHakVjL/QHaoyV4aDUVVkXQJJJ3NXXM= github.com/cenkalti/backoff/v4 v4.1.1/go.mod h1:scbssz8iZGpm3xbr14ovlUdkxfGXNInqkPWOWmG2CLw= +github.com/cenkalti/backoff/v4 v4.1.3 h1:cFAlzYUlVYDysBEH2T5hyJZMh3+5+WCBvSnK6Q8UtC4= +github.com/cenkalti/backoff/v4 v4.1.3/go.mod h1:scbssz8iZGpm3xbr14ovlUdkxfGXNInqkPWOWmG2CLw= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= github.com/cespare/xxhash v1.1.0 h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko= github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= -github.com/cespare/xxhash/v2 v2.1.2/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= -github.com/cespare/xxhash/v2 v2.2.0 h1:DC2CZ1Ep5Y4k3ZQ899DldepgrayRUGE6BBZ/cd9Cj44= -github.com/cespare/xxhash/v2 v2.2.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= -github.com/charithe/durationcheck v0.0.10 h1:wgw73BiocdBDQPik+zcEoBG/ob8uyBHf2iyoHGPf5w4= -github.com/charithe/durationcheck v0.0.10/go.mod h1:bCWXb7gYRysD1CU3C+u4ceO49LoGOY1C1L6uouGNreQ= -github.com/chavacava/garif v0.1.0 h1:2JHa3hbYf5D9dsgseMKAmc/MZ109otzgNFk5s87H9Pc= -github.com/chavacava/garif v0.1.0/go.mod h1:XMyYCkEL58DF0oyW4qDjjnPWONs2HBqYKI+UIPD+Gww= -github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= -github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= -github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= -github.com/circlefin/noble-fiattokenfactory v0.0.0-20231026180023-32fd993c1f60 h1:jzokwZGplxSR9eQ231Sd83sAKo/08l4Ew8i+6qyJAKs= -github.com/circlefin/noble-fiattokenfactory v0.0.0-20231026180023-32fd993c1f60/go.mod h1:rcUYSPnkN4M+epaMh2Y31V16rMDFQiY+OjRF+dwHDxE= +github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs= +github.com/cespare/xxhash/v2 v2.3.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= +github.com/chzyer/readline v1.5.1 h1:upd/6fQk4src78LMRzh5vItIt361/o4uq553V8B5sGI= +github.com/chzyer/readline v1.5.1/go.mod h1:Eh+b79XXUwfKfcPLepksvw2tcLE/Ct21YObkaSkeBlk= +github.com/circlefin/noble-fiattokenfactory v0.0.0-20241015182229-c20bd0c8442f h1:OxjU1Ng1IFkj2LZcnKaMTuOzwzjkDCr4Hg9gKD8YKJk= +github.com/circlefin/noble-fiattokenfactory v0.0.0-20241015182229-c20bd0c8442f/go.mod h1:wPcg1YAYQknGHkGNKrIgHwzSVf/4wqW7MTpXdC4ciRQ= github.com/circonus-labs/circonus-gometrics v2.3.1+incompatible/go.mod h1:nmEj6Dob7S7YxXgwXpfOuvO54S+tGdZdw9fuRZt25Ag= github.com/circonus-labs/circonusllhist v0.1.3/go.mod h1:kMXHVDlOchFAehlya5ePtbp5jckzBHf4XRpQvBOLI+I= +github.com/clbanning/x2j v0.0.0-20191024224557-825249438eec/go.mod h1:jMjuTZXRI4dUb/I5gc9Hdhagfvm9+RyrPryS/auMzxE= +github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= -github.com/cockroachdb/apd/v3 v3.1.0 h1:MK3Ow7LH0W8zkd5GMKA1PvS9qG3bWFI95WaVNfyZJ/w= -github.com/cockroachdb/apd/v3 v3.1.0/go.mod h1:6qgPBMXjATAdD/VefbRP9NoSLKjbB4LCoA7gN4LpHs4= -github.com/cockroachdb/datadriven v1.0.2 h1:H9MtNqVoVhvd9nCBwOyDjUEdZCREqbIdCJD93PBm/jA= -github.com/cockroachdb/datadriven v1.0.2/go.mod h1:a9RdTaap04u637JoCzcUoIcDmvwSUtcUFtT/C3kJlTU= -github.com/cockroachdb/errors v1.9.1 h1:yFVvsI0VxmRShfawbt/laCIDy/mtTqqnvoNgiy5bEV8= -github.com/cockroachdb/errors v1.9.1/go.mod h1:2sxOtL2WIc096WSZqZ5h8fa17rdDq9HZOZLBCor4mBk= -github.com/cockroachdb/logtags v0.0.0-20211118104740-dabe8e521a4f/go.mod h1:Vz9DsVWQQhf3vs21MhPMZpMGSht7O/2vFW2xusFUVOs= +github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= +github.com/cncf/udpa/go v0.0.0-20210930031921-04548b0d99d4/go.mod h1:6pvJx4me5XPnfI9Z40ddWsdw2W/uZgQLFXToKeRcDiI= +github.com/cncf/xds/go v0.0.0-20210805033703-aa0b78936158/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= +github.com/cncf/xds/go v0.0.0-20210922020428-25de7278fc84/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= +github.com/cncf/xds/go v0.0.0-20211001041855-01bcc9b48dfe/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= +github.com/cncf/xds/go v0.0.0-20211011173535-cb28da3451f1/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= +github.com/cockroachdb/apd/v2 v2.0.2 h1:weh8u7Cneje73dDh+2tEVLUvyBc89iwepWCD8b8034E= +github.com/cockroachdb/apd/v2 v2.0.2/go.mod h1:DDxRlzC2lo3/vSlmSoS7JkqbbrARPuFOGr0B9pvN3Gw= +github.com/cockroachdb/datadriven v0.0.0-20190809214429-80d97fb3cbaa/go.mod h1:zn76sxSg3SzpJ0PPJaLDCu+Bu0Lg3sKTORVIj19EIF8= +github.com/cockroachdb/datadriven v1.0.3-0.20230801171734-e384cf455877 h1:1MLK4YpFtIEo3ZtMA5C795Wtv5VuUnrXX7mQG+aHg6o= +github.com/cockroachdb/datadriven v1.0.3-0.20230801171734-e384cf455877/go.mod h1:a9RdTaap04u637JoCzcUoIcDmvwSUtcUFtT/C3kJlTU= +github.com/cockroachdb/errors v1.11.3 h1:5bA+k2Y6r+oz/6Z/RFlNeVCesGARKuC6YymtcDrbC/I= +github.com/cockroachdb/errors v1.11.3/go.mod h1:m4UIW4CDjx+R5cybPsNrRbreomiFqt8o1h1wUVazSd8= +github.com/cockroachdb/fifo v0.0.0-20240606204812-0bbfbd93a7ce h1:giXvy4KSc/6g/esnpM7Geqxka4WSqI1SZc7sMJFd3y4= +github.com/cockroachdb/fifo v0.0.0-20240606204812-0bbfbd93a7ce/go.mod h1:9/y3cnZ5GKakj/H4y9r9GTjCvAFta7KLgSHPJJYc52M= github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b h1:r6VH0faHjZeQy818SGhaone5OnYfxFR/+AzdY3sf5aE= github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b/go.mod h1:Vz9DsVWQQhf3vs21MhPMZpMGSht7O/2vFW2xusFUVOs= -github.com/cockroachdb/pebble v0.0.0-20230209160836-829675f94811 h1:ytcWPaNPhNoGMWEhDvS3zToKcDpRsLuRolQJBVGdozk= -github.com/cockroachdb/pebble v0.0.0-20230209160836-829675f94811/go.mod h1:Nb5lgvnQ2+oGlE/EyZy4+2/CxRh9KfvCXnag1vtpxVM= -github.com/cockroachdb/redact v1.1.3 h1:AKZds10rFSIj7qADf0g46UixK8NNLwWTNdCIGS5wfSQ= -github.com/cockroachdb/redact v1.1.3/go.mod h1:BVNblN9mBWFyMyqK1k3AAiSxhvhfK2oOZZ2lK+dpvRg= -github.com/codegangsta/inject v0.0.0-20150114235600-33e0aa1cb7c0/go.mod h1:4Zcjuz89kmFXt9morQgcfYZAYZ5n8WHjt81YYWIwtTM= -github.com/coinbase/rosetta-sdk-go v0.7.9 h1:lqllBjMnazTjIqYrOGv8h8jxjg9+hJazIGZr9ZvoCcA= -github.com/coinbase/rosetta-sdk-go v0.7.9/go.mod h1:0/knutI7XGVqXmmH4OQD8OckFrbQ8yMsUZTG7FXCR2M= -github.com/cometbft/cometbft v0.34.27 h1:ri6BvmwjWR0gurYjywcBqRe4bbwc3QVs9KRcCzgh/J0= -github.com/cometbft/cometbft v0.34.27/go.mod h1:BcCbhKv7ieM0KEddnYXvQZR+pZykTKReJJYf7YC7qhw= -github.com/cometbft/cometbft-db v0.7.0 h1:uBjbrBx4QzU0zOEnU8KxoDl18dMNgDh+zZRUE0ucsbo= -github.com/cometbft/cometbft-db v0.7.0/go.mod h1:yiKJIm2WKrt6x8Cyxtq9YTEcIMPcEe4XPxhgX59Fzf0= -github.com/confio/ics23/go v0.9.1 h1:3MV46eeWwO3xCauKyAtuAdJYMyPnnchW4iLr2bTw6/U= -github.com/confio/ics23/go v0.9.1/go.mod h1:4LPZ2NYqnYIVRklaozjNR1FScgDJ2s5Xrp+e/mYVRak= +github.com/cockroachdb/pebble v1.1.1 h1:XnKU22oiCLy2Xn8vp1re67cXg4SAasg/WDt1NtcRFaw= +github.com/cockroachdb/pebble v1.1.1/go.mod h1:4exszw1r40423ZsmkG/09AFEG83I0uDgfujJdbL6kYU= +github.com/cockroachdb/redact v1.1.5 h1:u1PMllDkdFfPWaNGMyLD1+so+aq3uUItthCFqzwPJ30= +github.com/cockroachdb/redact v1.1.5/go.mod h1:BVNblN9mBWFyMyqK1k3AAiSxhvhfK2oOZZ2lK+dpvRg= +github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06 h1:zuQyyAKVxetITBuuhv3BI9cMrmStnpT18zmgmTxunpo= +github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06/go.mod h1:7nc4anLGjupUW/PeY5qiNYsdNXj7zopG+eqsS7To5IQ= +github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd/go.mod h1:sE/e/2PUdi/liOCUjSTXgM1o87ZssimdTWN964YiIeI= +github.com/cometbft/cometbft v0.38.9 h1:cJBJBG0mPKz+sqelCi/hlfZjadZQGdDNnu6YQ1ZsUHQ= +github.com/cometbft/cometbft v0.38.9/go.mod h1:xOoGZrtUT+A5izWfHSJgl0gYZUE7lu7Z2XIS1vWG/QQ= +github.com/cometbft/cometbft-db v0.11.0 h1:M3Lscmpogx5NTbb1EGyGDaFRdsoLWrUWimFEyf7jej8= +github.com/cometbft/cometbft-db v0.11.0/go.mod h1:GDPJAC/iFHNjmZZPN8V8C1yr/eyityhi2W1hz2MGKSc= +github.com/containerd/continuity v0.3.0 h1:nisirsYROK15TAMVukJOUyGJjz4BNQJBVsNvAXZJ/eg= +github.com/containerd/continuity v0.3.0/go.mod h1:wJEAIwKOm/pBZuBd0JmeTvnLquTB1Ag8espWhkykbPM= github.com/coreos/etcd v3.3.10+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE= github.com/coreos/go-etcd v2.0.0+incompatible/go.mod h1:Jez6KQU2B/sWsbdaef3ED8NzMklzPG4d5KIOhIy30Tk= github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= +github.com/coreos/go-systemd v0.0.0-20180511133405-39ca1b05acc7/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= +github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= +github.com/coreos/pkg v0.0.0-20160727233714-3ac0863d7acf/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= github.com/cosmos/btcutil v1.0.5 h1:t+ZFcX77LpKtDBhjucvnOH8C2l2ioGsBNEQ3jef8xFk= github.com/cosmos/btcutil v1.0.5/go.mod h1:IyB7iuqZMJlthe2tkIFL33xPyzbFYP0XVdS8P5lUPis= -github.com/cosmos/cosmos-db v0.0.0-20221226095112-f3c38ecb5e32 h1:zlCp9n3uwQieELltZWHRmwPmPaZ8+XoL2Sj+A2YJlr8= -github.com/cosmos/cosmos-db v0.0.0-20221226095112-f3c38ecb5e32/go.mod h1:kwMlEC4wWvB48zAShGKVqboJL6w4zCLesaNQ3YLU2BQ= -github.com/cosmos/cosmos-proto v1.0.0-beta.2 h1:X3OKvWgK9Gsejo0F1qs5l8Qn6xJV/AzgIWR2wZ8Nua8= -github.com/cosmos/cosmos-proto v1.0.0-beta.2/go.mod h1:+XRCLJ14pr5HFEHIUcn51IKXD1Fy3rkEQqt4WqmN4V0= -github.com/cosmos/cosmos-sdk v0.45.16 h1:5ba/Bh5/LE55IwHQuCU4fiG4eXeDKtSWzehXRpaKDcw= -github.com/cosmos/cosmos-sdk v0.45.16/go.mod h1:bScuNwWAP0TZJpUf+SHXRU3xGoUPp+X9nAzfeIXts40= -github.com/cosmos/go-bip39 v0.0.0-20180819234021-555e2067c45d/go.mod h1:tSxLoYXyBmiFeKpvmq4dzayMdCjCnu8uqmCysIGBT2Y= +github.com/cosmos/cosmos-db v1.0.2 h1:hwMjozuY1OlJs/uh6vddqnk9j7VamLv+0DBlbEXbAKs= +github.com/cosmos/cosmos-db v1.0.2/go.mod h1:Z8IXcFJ9PqKK6BIsVOB3QXtkKoqUOp1vRvPT39kOXEA= +github.com/cosmos/cosmos-proto v1.0.0-beta.5 h1:eNcayDLpip+zVLRLYafhzLvQlSmyab+RC5W7ZfmxJLA= +github.com/cosmos/cosmos-proto v1.0.0-beta.5/go.mod h1:hQGLpiIUloJBMdQMMWb/4wRApmI9hjHH05nefC0Ojec= +github.com/cosmos/cosmos-sdk v0.50.7 h1:LsBGKxifENR/DN4E1RZaitsyL93HU44x0p8EnMHp4V4= +github.com/cosmos/cosmos-sdk v0.50.7/go.mod h1:84xDDJEHttRT7NDGwBaUOLVOMN0JNE9x7NbsYIxXs1s= github.com/cosmos/go-bip39 v1.0.0 h1:pcomnQdrdH22njcAatO0yWojsUnCO3y2tNoV1cb6hHY= github.com/cosmos/go-bip39 v1.0.0/go.mod h1:RNJv0H/pOIVgxw6KS7QeX2a0Uo0aKUlfhZ4xuwvCdJw= -github.com/cosmos/gorocksdb v1.2.0 h1:d0l3jJG8M4hBouIZq0mDUHZ+zjOx044J3nGRskwTb4Y= -github.com/cosmos/gorocksdb v1.2.0/go.mod h1:aaKvKItm514hKfNJpUJXnnOWeBnk2GL4+Qw9NHizILw= -github.com/cosmos/iavl v0.19.5 h1:rGA3hOrgNxgRM5wYcSCxgQBap7fW82WZgY78V9po/iY= -github.com/cosmos/iavl v0.19.5/go.mod h1:X9PKD3J0iFxdmgNLa7b2LYWdsGd90ToV5cAONApkEPw= -github.com/cosmos/ledger-cosmos-go v0.12.2 h1:/XYaBlE2BJxtvpkHiBm97gFGSGmYGKunKyF3nNqAXZA= -github.com/cosmos/ledger-cosmos-go v0.12.2/go.mod h1:ZcqYgnfNJ6lAXe4HPtWgarNEY+B74i+2/8MhZw4ziiI= +github.com/cosmos/gogogateway v1.2.0 h1:Ae/OivNhp8DqBi/sh2A8a1D0y638GpL3tkmLQAiKxTE= +github.com/cosmos/gogogateway v1.2.0/go.mod h1:iQpLkGWxYcnCdz5iAdLcRBSw3h7NXeOkZ4GUkT+tbFI= +github.com/cosmos/gogoproto v1.4.2/go.mod h1:cLxOsn1ljAHSV527CHOtaIP91kK6cCrZETRBrkzItWU= +github.com/cosmos/gogoproto v1.5.0 h1:SDVwzEqZDDBoslaeZg+dGE55hdzHfgUA40pEanMh52o= +github.com/cosmos/gogoproto v1.5.0/go.mod h1:iUM31aofn3ymidYG6bUR5ZFrk+Om8p5s754eMUcyp8I= +github.com/cosmos/iavl v1.1.2 h1:zL9FK7C4L/P4IF1Dm5fIwz0WXCnn7Bp1M2FxH0ayM7Y= +github.com/cosmos/iavl v1.1.2/go.mod h1:jLeUvm6bGT1YutCaL2fIar/8vGUE8cPZvh/gXEWDaDM= +github.com/cosmos/ics23/go v0.10.0 h1:iXqLLgp2Lp+EdpIuwXTYIQU+AiHj9mOC2X9ab++bZDM= +github.com/cosmos/ics23/go v0.10.0/go.mod h1:ZfJSmng/TBNTBkFemHHHj5YY7VAU/MBU980F4VU1NG0= +github.com/cosmos/ledger-cosmos-go v0.13.3 h1:7ehuBGuyIytsXbd4MP43mLeoN2LTOEnk5nvue4rK+yM= +github.com/cosmos/ledger-cosmos-go v0.13.3/go.mod h1:HENcEP+VtahZFw38HZ3+LS3Iv5XV6svsnkk9vdJtLr8= github.com/cpuguy83/go-md2man v1.0.10/go.mod h1:SmD6nW6nTyfqj6ABTjUi3V3JVMnlJmwcJI5acqYI6dE= -github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= -github.com/creachadair/taskgroup v0.4.2 h1:jsBLdAJE42asreGss2xZGZ8fJra7WtwnHWeJFxv2Li8= -github.com/creachadair/taskgroup v0.4.2/go.mod h1:qiXUOSrbwAY3u0JPGTzObbE3yf9hcXHDKBZ2ZjpCbgM= +github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= +github.com/cpuguy83/go-md2man/v2 v2.0.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= +github.com/creack/pty v1.1.7/go.mod h1:lj5s0c3V2DBrqTV7llrYr5NG6My20zk30Fl46Y7DoTY= github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= -github.com/cucumber/common/gherkin/go/v22 v22.0.0 h1:4K8NqptbvdOrjL9DEea6HFjSpbdT9+Q5kgLpmmsHYl0= -github.com/cucumber/common/gherkin/go/v22 v22.0.0/go.mod h1:3mJT10B2GGn3MvVPd3FwR7m2u4tLhSRhWUqJU4KN4Fg= -github.com/cucumber/common/messages/go/v17 v17.1.1 h1:RNqopvIFyLWnKv0LfATh34SWBhXeoFTJnSrgm9cT/Ts= -github.com/cucumber/common/messages/go/v17 v17.1.1/go.mod h1:bpGxb57tDE385Rb2EohgUadLkAbhoC4IyCFi89u/JQI= -github.com/curioswitch/go-reassign v0.2.0 h1:G9UZyOcpk/d7Gd6mqYgd8XYWFMw/znxwGDUstnC9DIo= -github.com/curioswitch/go-reassign v0.2.0/go.mod h1:x6OpXuWvgfQaMGks2BZybTngWjT84hqJfKoO8Tt/Roc= -github.com/daixiang0/gci v0.11.2 h1:Oji+oPsp3bQ6bNNgX30NBAVT18P4uBH4sRZnlOlTj7Y= -github.com/daixiang0/gci v0.11.2/go.mod h1:xtHP9N7AHdNvtRNfcx9gwTDfw7FRJx4bZUsiEfiNNAI= github.com/danieljoos/wincred v1.1.2 h1:QLdCxFs1/Yl4zduvBdcHB8goaYk9RARS2SgLLRuAyr0= github.com/danieljoos/wincred v1.1.2/go.mod h1:GijpziifJoIBfYh+S7BbkdUTU4LfM+QnGqR5Vl2tAx0= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/decred/dcrd/crypto/blake256 v1.0.0 h1:/8DMNYp9SGi5f0w7uCm6d6M4OU2rGFK09Y2A4Xv7EE0= -github.com/decred/dcrd/crypto/blake256 v1.0.0/go.mod h1:sQl2p6Y26YV+ZOcSTP6thNdn47hh8kt6rqSlvmrXFAc= -github.com/decred/dcrd/dcrec/secp256k1/v4 v4.1.0 h1:HbphB4TFFXpv7MNrT52FGrrgVXF1owhMVTHFZIlnvd4= -github.com/decred/dcrd/dcrec/secp256k1/v4 v4.1.0/go.mod h1:DZGJHZMqrU4JJqFAWUS2UO1+lbSKsdiOoYi9Zzey7Fc= -github.com/denis-tingaikin/go-header v0.4.3 h1:tEaZKAlqql6SKCY++utLmkPLd6K8IBM20Ha7UVm+mtU= -github.com/denis-tingaikin/go-header v0.4.3/go.mod h1:0wOCWuN71D5qIgE2nz9KrKmuYBAC2Mra5RassOIQ2/c= +github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM= +github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/decred/dcrd/crypto/blake256 v1.0.1 h1:7PltbUIQB7u/FfZ39+DGa/ShuMyJ5ilcvdfma9wOH6Y= +github.com/decred/dcrd/crypto/blake256 v1.0.1/go.mod h1:2OfgNZ5wDpcsFmHmCK5gZTPcCXqlm2ArzUIkw9czNJo= +github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0 h1:8UrgZ3GkP4i/CLijOJx79Yu+etlyjdBU4sfcs2WYQMs= +github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0/go.mod h1:v57UDF4pDQJcEfFUCRop3lJL149eHGSe9Jvczhzjo/0= github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f h1:U5y3Y5UE0w7amNe7Z5G/twsBW0KEalRQXZzf8ufSh9I= github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f/go.mod h1:xH/i4TFMt8koVQZ6WFms69WAsDWr2XsYL3Hkl7jkoLE= -github.com/dgraph-io/badger v1.6.0/go.mod h1:zwt7syl517jmP8s94KqSxTlM6IMsdhYy6psNgSztDR4= github.com/dgraph-io/badger/v2 v2.2007.4 h1:TRWBQg8UrlUhaFdco01nO2uXwzKS7zd+HVdwV/GHc4o= github.com/dgraph-io/badger/v2 v2.2007.4/go.mod h1:vSw/ax2qojzbN6eXHIx6KPKtCSHJN/Uz0X0VPruTIhk= github.com/dgraph-io/ristretto v0.0.3-0.20200630154024-f66de99634de/go.mod h1:KPxhHT9ZxKefz+PCeOGsrHpl1qZ7i70dGTu2u+Ahh6E= github.com/dgraph-io/ristretto v0.1.1 h1:6CWw5tJNgpegArSHpNHJKldNeq03FQCwYvfMVWajOK8= github.com/dgraph-io/ristretto v0.1.1/go.mod h1:S1GPSBCYCIhmVNfcth17y2zZtQT6wzkzgwUve0VDWWA= +github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ= github.com/dgryski/go-farm v0.0.0-20190423205320-6a90982ecee2/go.mod h1:SqUrOPUnsFjfmXRMNPybcSiG0BgUW2AuFH8PAnS2iTw= github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13 h1:fAjc9m62+UWV/WAFKLNi6ZS0675eEUC9y3AlwSbQu1Y= github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13/go.mod h1:SqUrOPUnsFjfmXRMNPybcSiG0BgUW2AuFH8PAnS2iTw= +github.com/docker/go-connections v0.5.0 h1:USnMq7hx7gwdVZq1L49hLXaFtUdTADjXGp+uj1Br63c= +github.com/docker/go-connections v0.5.0/go.mod h1:ov60Kzw0kKElRwhNs9UlUHAE/F9Fe6GLaXnqyDdmEXc= +github.com/docker/go-units v0.5.0 h1:69rxXcBk27SvSaaxTtLh/8llcHD8vYHT7WSdRZ/jvr4= +github.com/docker/go-units v0.5.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= +github.com/dustin/go-humanize v0.0.0-20171111073723-bb3d318650d4/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= github.com/dustin/go-humanize v1.0.1 h1:GzkhY7T5VNhEkwH0PVJgjz+fX1rhBrR7pRT3mDkpeCY= github.com/dustin/go-humanize v1.0.1/go.mod h1:Mu1zIs6XwVuF/gI1OepvI0qD18qycQx+mFykh5fBlto= -github.com/dvsekhvalnov/jose2go v1.5.0 h1:3j8ya4Z4kMCwT5nXIKFSV84YS+HdqSSO0VsTQxaLAeM= -github.com/dvsekhvalnov/jose2go v1.5.0/go.mod h1:QsHjhyTlD/lAVqn/NSbVZmSCGeDehTB/mPZadG+mhXU= -github.com/eknkc/amber v0.0.0-20171010120322-cdade1c07385/go.mod h1:0vRUJqYpeSZifjYj7uP3BG/gKcuzL9xWVV/Y+cK33KM= +github.com/dvsekhvalnov/jose2go v1.6.0 h1:Y9gnSnP4qEI0+/uQkHvFXeD2PLPJeXEL+ySMEA2EjTY= +github.com/dvsekhvalnov/jose2go v1.6.0/go.mod h1:QsHjhyTlD/lAVqn/NSbVZmSCGeDehTB/mPZadG+mhXU= +github.com/eapache/go-resiliency v1.1.0/go.mod h1:kFI+JgMyC7bLPUVY133qvEBtVayf5mFgVsvEsIPBvNs= +github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21/go.mod h1:+020luEh2TKB4/GOp8oxxtq0Daoen/Cii55CzbTV6DU= +github.com/eapache/queue v1.1.0/go.mod h1:6eCeP0CKFpHLu8blIFXhExK/dRa7WDZfr6jVFPTqq+I= +github.com/edsrzf/mmap-go v1.0.0/go.mod h1:YO35OhQPt3KJa3ryjFM5Bs14WD66h8eGKpfaBNrHW5M= +github.com/emicklei/dot v1.6.1 h1:ujpDlBkkwgWUY+qPId5IwapRW/xEoligRSYjioR6DFI= +github.com/emicklei/dot v1.6.1/go.mod h1:DeV7GvQtIw4h2u73RKBkkFdvVAz0D9fzeJrgPW6gy/s= +github.com/envoyproxy/go-control-plane v0.6.9/go.mod h1:SBwIajubJHhxtWwsL9s8ss4safvEdbitLhGGK48rN6g= +github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= +github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= +github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= +github.com/envoyproxy/go-control-plane v0.9.10-0.20210907150352-cf90f659a021/go.mod h1:AFq3mo9L8Lqqiid3OhADV3RfLJnjiw63cSpi+fDTRC0= +github.com/envoyproxy/go-control-plane v0.10.2-0.20220325020618-49ff273808a1/go.mod h1:KJwIaB5Mv44NWtYuAOFCVOjcI94vtpEz2JU/D2v6IjE= github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= -github.com/esimonov/ifshort v1.0.4 h1:6SID4yGWfRae/M7hkVDVVyppy8q/v9OuxNdmjLQStBA= -github.com/esimonov/ifshort v1.0.4/go.mod h1:Pe8zjlRrJ80+q2CxHLfEOfTwxCZ4O+MuhcHcfgNWTk0= -github.com/etcd-io/bbolt v1.3.3/go.mod h1:ZF2nL25h33cCyBtcyWeZ2/I3HQOfTP+0PIEvHjkjCrw= github.com/ethereum/go-ethereum v1.12.0 h1:bdnhLPtqETd4m3mS8BGMNvBTf36bO5bx/hxE2zljOa0= github.com/ethereum/go-ethereum v1.12.0/go.mod h1:/oo2X/dZLJjf2mJ6YT9wcWxa4nNJDBKDBU6sFIpx1Gs= -github.com/ettle/strcase v0.1.1 h1:htFueZyVeE1XNnMEfbqp5r67qAN/4r6ya1ysq8Q+Zcw= -github.com/ettle/strcase v0.1.1/go.mod h1:hzDLsPC7/lwKyBOywSHEP89nt2pDgdy+No1NBA9o9VY= -github.com/facebookgo/ensure v0.0.0-20200202191622-63f1cf65ac4c h1:8ISkoahWXwZR41ois5lSJBSVw4D0OV19Ht/JSTzvSv0= -github.com/facebookgo/ensure v0.0.0-20200202191622-63f1cf65ac4c/go.mod h1:Yg+htXGokKKdzcwhuNDwVvN+uBxDGXJ7G/VN1d8fa64= -github.com/facebookgo/stack v0.0.0-20160209184415-751773369052 h1:JWuenKqqX8nojtoVVWjGfOF9635RETekkoH6Cc9SX0A= -github.com/facebookgo/stack v0.0.0-20160209184415-751773369052/go.mod h1:UbMTZqLaRiH3MsBH8va0n7s1pQYcu3uTb8G4tygF4Zg= -github.com/facebookgo/subset v0.0.0-20200203212716-c811ad88dec4 h1:7HZCaLC5+BZpmbhCOZJ293Lz68O7PYrF2EzeiFMwCLk= -github.com/facebookgo/subset v0.0.0-20200203212716-c811ad88dec4/go.mod h1:5tD+neXqOorC30/tWg0LCSkrqj/AR6gu8yY8/fpw1q0= -github.com/fasthttp-contrib/websocket v0.0.0-20160511215533-1f3b11f56072/go.mod h1:duJ4Jxv5lDcvg4QuQr0oowTf7dz4/CR8NtyCooz9HL8= -github.com/fatih/color v1.15.0 h1:kOqh6YHBtK8aywxGerMG2Eq3H6Qgoqeo13Bk2Mv/nBs= -github.com/fatih/color v1.15.0/go.mod h1:0h5ZqXfHYED7Bhv2ZJamyIOUej9KtShiJESRwBDUSsw= -github.com/fatih/structs v1.1.0/go.mod h1:9NiDSp5zOcgEDl+j00MP/WkGVPOlPRLejGD8Ga6PJ7M= -github.com/fatih/structtag v1.2.0 h1:/OdNE99OxoI/PqaW/SuSK9uxxT3f/tcSZgon/ssNSx4= -github.com/fatih/structtag v1.2.0/go.mod h1:mBJUNpUnHmRKrKlQQlmCrh5PuhftFbNv8Ys4/aAZl94= -github.com/felixge/httpsnoop v1.0.2 h1:+nS9g82KMXccJ/wp0zyRW9ZBHFETmMGtkk+2CTTrW4o= -github.com/felixge/httpsnoop v1.0.2/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= -github.com/firefart/nonamedreturns v1.0.4 h1:abzI1p7mAEPYuR4A+VLKn4eNDOycjYo2phmY9sfv40Y= -github.com/firefart/nonamedreturns v1.0.4/go.mod h1:TDhe/tjI1BXo48CmYbUduTV7BdIga8MAO/xbKdcVsGI= +github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= +github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= +github.com/fatih/color v1.16.0 h1:zmkK9Ngbjj+K0yRhTVONQh1p/HknKYSlNT+vZCzyokM= +github.com/fatih/color v1.16.0/go.mod h1:fL2Sau1YI5c0pdGEVCbKQbLXB6edEj1ZgiY4NijnWvE= +github.com/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2Wg= +github.com/felixge/httpsnoop v1.0.4/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= github.com/fortytw2/leaktest v1.3.0 h1:u8491cBMTQ8ft8aeV+adlcytMZylmA5nnwwkRZjI8vw= github.com/fortytw2/leaktest v1.3.0/go.mod h1:jDsjWgpAGjm2CA7WthBh/CdZYEPF31XHquHwclZch5g= -github.com/frankban/quicktest v1.14.4 h1:g2rn0vABPOOXmZUj+vbmUp0lPoXEMuhTpIluN0XL9UY= -github.com/frankban/quicktest v1.14.4/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0= +github.com/franela/goblin v0.0.0-20200105215937-c9ffbefa60db/go.mod h1:7dvUGVsVBjqR7JHJk0brhHOZYGmfBYOrK0ZhYMEtBr4= +github.com/franela/goreq v0.0.0-20171204163338-bcd34c9993f8/go.mod h1:ZhphrRTfi2rbfLwlschooIH4+wKKDR4Pdxhh+TRoA20= +github.com/frankban/quicktest v1.14.6 h1:7Xjx+VpznH+oBnejlPUj8oUpdxnVs4f8XU8WnHkI4W8= +github.com/frankban/quicktest v1.14.6/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0= github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= -github.com/fsnotify/fsnotify v1.6.0 h1:n+5WquG0fcWoWp6xPWfHdbskMCQaFnG6PfBrh1Ky4HY= -github.com/fsnotify/fsnotify v1.6.0/go.mod h1:sl3t1tCWJFWoRz9R8WJCbQihKKwmorjAbSClcnxKAGw= -github.com/fzipp/gocyclo v0.6.0 h1:lsblElZG7d3ALtGMx9fmxeTKZaLLpU8mET09yN4BBLo= -github.com/fzipp/gocyclo v0.6.0/go.mod h1:rXPyn8fnlpa0R2csP/31uerbiVBugk5whMdlyaLkLoA= -github.com/gavv/httpexpect v2.0.0+incompatible/go.mod h1:x+9tiU1YnrOvnB725RkpoLv1M62hOWzwo5OXotisrKc= -github.com/getsentry/sentry-go v0.12.0/go.mod h1:NSap0JBYWzHND8oMbyi0+XZhUalc1TBdRL1M71JZW2c= -github.com/getsentry/sentry-go v0.18.0 h1:MtBW5H9QgdcJabtZcuJG80BMOwaBpkRDZkxRkNC1sN0= -github.com/getsentry/sentry-go v0.18.0/go.mod h1:Kgon4Mby+FJ7ZWHFUAZgVaIa8sxHtnRJRLTXZr51aKQ= +github.com/fsnotify/fsnotify v1.7.0 h1:8JEhPFa5W2WU7YfeZzPNqzMP6Lwt7L2715Ggo0nosvA= +github.com/fsnotify/fsnotify v1.7.0/go.mod h1:40Bi/Hjc2AVfZrqy+aj+yEI+/bRxZnMJyTJwOpGvigM= +github.com/getsentry/sentry-go v0.27.0 h1:Pv98CIbtB3LkMWmXi4Joa5OOcwbmnX88sF5qbK3r3Ps= +github.com/getsentry/sentry-go v0.27.0/go.mod h1:lc76E2QywIyW8WuBnwl8Lc4bkmQH4+w1gwTf25trprY= github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= -github.com/ghostiam/protogetter v0.2.3 h1:qdv2pzo3BpLqezwqfGDLZ+nHEYmc5bUpIdsMbBVwMjw= -github.com/ghostiam/protogetter v0.2.3/go.mod h1:KmNLOsy1v04hKbvZs8EfGI1fk39AgTdRDxWNYPfXVc4= -github.com/gin-contrib/sse v0.0.0-20190301062529-5545eab6dad3/go.mod h1:VJ0WA2NBN22VlZ2dKZQPAPnyWw5XTlK1KymzLKsr59s= -github.com/gin-gonic/gin v1.4.0/go.mod h1:OW2EZn3DO8Ln9oIKOvM++LBO+5UPHJJDH72/q/3rZdM= -github.com/go-check/check v0.0.0-20180628173108-788fd7840127/go.mod h1:9ES+weclKsC9YodN5RgxqK/VD9HM9JsCSh7rNhMZE98= -github.com/go-critic/go-critic v0.9.0 h1:Pmys9qvU3pSML/3GEQ2Xd9RZ/ip+aXHKILuxczKGV/U= -github.com/go-critic/go-critic v0.9.0/go.mod h1:5P8tdXL7m/6qnyG6oRAlYLORvoXH0WDypYgAEmagT40= -github.com/go-errors/errors v1.0.1/go.mod h1:f4zRHt4oKfwPJE5k8C9vpYG+aDHdBFUsgrm6/TyX73Q= +github.com/gin-contrib/sse v0.1.0 h1:Y/yl/+YNO8GZSjAhjMsSuLt29uWRFHdHYUb5lYOV9qE= +github.com/gin-contrib/sse v0.1.0/go.mod h1:RHrZQHXnP2xjPF+u1gW/2HnVO7nvIa9PG3Gm+fLHvGI= +github.com/gin-gonic/gin v1.6.3/go.mod h1:75u5sXoLsGZoRN5Sgbi1eraJ4GU3++wFwWzhwvtwp4M= +github.com/gin-gonic/gin v1.8.1 h1:4+fr/el88TOO3ewCmQr8cx/CtZ/umlIRIs5M4NTNjf8= +github.com/gin-gonic/gin v1.8.1/go.mod h1:ji8BvRH1azfM+SYow9zQ6SZMvR8qOMZHmsCuWR9tTTk= github.com/go-errors/errors v1.4.2 h1:J6MZopCL4uSllY1OfXM374weqZFFItUbrImctkmUxIA= github.com/go-errors/errors v1.4.2/go.mod h1:sIVyrIiJhuEF+Pj9Ebtd6P/rEYROXFi3BopGUQ5a5Og= -github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= -github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= +github.com/go-kit/kit v0.10.0/go.mod h1:xUsJbQ/Fp4kEt7AFgCuvyX4a71u8h9jB8tj/ORgOZ7o= github.com/go-kit/kit v0.12.0 h1:e4o3o3IsBfAKQh5Qbbiqyfu97Ku7jrO/JbohvztANh4= github.com/go-kit/kit v0.12.0/go.mod h1:lHd+EkCZPIwYItmGDDRdhinkzX2A1sj+M9biaEaizzs= github.com/go-kit/log v0.1.0/go.mod h1:zbhenjAZHb184qTLMA9ZjW7ThYL0H2mk7Q6pNt4vbaY= @@ -324,61 +251,40 @@ github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A= github.com/go-logfmt/logfmt v0.6.0 h1:wGYYu3uicYdqXVgoYbvnkrPVXkuLM1p1ifugDMEdRi4= github.com/go-logfmt/logfmt v0.6.0/go.mod h1:WYhtIu8zTZfxdn5+rREduYbwxfcBr/Vr6KEVveWlfTs= -github.com/go-logr/logr v1.2.4 h1:g01GSCwiDw2xSZfjJ2/T9M+S6pFdcNtFYsp+Y43HYDQ= -github.com/go-logr/logr v1.2.4/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= -github.com/go-martini/martini v0.0.0-20170121215854-22fa46961aab/go.mod h1:/P9AEU963A2AYjv4d1V5eVL1CQbEJq6aCNHDDjibzu8= +github.com/go-playground/assert/v2 v2.0.1/go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4= +github.com/go-playground/locales v0.13.0/go.mod h1:taPMhCMXrRLJO55olJkUXHZBHCxTMfnGwq/HNwmWNS8= +github.com/go-playground/locales v0.14.0 h1:u50s323jtVGugKlcYeyzC0etD1HifMjqmJqb8WugfUU= +github.com/go-playground/locales v0.14.0/go.mod h1:sawfccIbzZTqEDETgFXqTho0QybSa7l++s0DH+LDiLs= +github.com/go-playground/universal-translator v0.17.0/go.mod h1:UkSxE5sNxxRwHyU+Scu5vgOQjsIJAF8j9muTVoKLVtA= +github.com/go-playground/universal-translator v0.18.0 h1:82dyy6p4OuJq4/CByFNOn/jYrnRPArHwAcmLoJZxyho= +github.com/go-playground/universal-translator v0.18.0/go.mod h1:UvRDBj+xPUEGrFYl+lu/H90nyDXpg0fqeB/AQUGNTVA= +github.com/go-playground/validator/v10 v10.2.0/go.mod h1:uOYAAleCW8F/7oMFd6aG0GOhaH6EGOAJShg8Id5JGkI= +github.com/go-playground/validator/v10 v10.11.1 h1:prmOlTVv+YjZjmRmNSF3VmspqJIxJWXmqUsHwfTRRkQ= +github.com/go-playground/validator/v10 v10.11.1/go.mod h1:i+3WkQ1FvaUjjxh1kSvIA4dMGDBiPU55YFDl0WbKdWU= +github.com/go-sql-driver/mysql v1.4.0/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w= github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= -github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572 h1:tfuBGBXKqDEevZMzYi5KSi8KkcZtzBcTgAUUtapy0OI= -github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572/go.mod h1:9Pwr4B2jHnOSGXyyzV8ROjYa2ojvAY6HCGYYfMoC3Ls= -github.com/go-toolsmith/astcast v1.1.0 h1:+JN9xZV1A+Re+95pgnMgDboWNVnIMMQXwfBwLRPgSC8= -github.com/go-toolsmith/astcast v1.1.0/go.mod h1:qdcuFWeGGS2xX5bLM/c3U9lewg7+Zu4mr+xPwZIB4ZU= -github.com/go-toolsmith/astcopy v1.1.0 h1:YGwBN0WM+ekI/6SS6+52zLDEf8Yvp3n2seZITCUBt5s= -github.com/go-toolsmith/astcopy v1.1.0/go.mod h1:hXM6gan18VA1T/daUEHCFcYiW8Ai1tIwIzHY6srfEAw= -github.com/go-toolsmith/astequal v1.0.3/go.mod h1:9Ai4UglvtR+4up+bAD4+hCj7iTo4m/OXVTSLnCyTAx4= -github.com/go-toolsmith/astequal v1.1.0 h1:kHKm1AWqClYn15R0K1KKE4RG614D46n+nqUQ06E1dTw= -github.com/go-toolsmith/astequal v1.1.0/go.mod h1:sedf7VIdCL22LD8qIvv7Nn9MuWJruQA/ysswh64lffQ= -github.com/go-toolsmith/astfmt v1.1.0 h1:iJVPDPp6/7AaeLJEruMsBUlOYCmvg0MoCfJprsOmcco= -github.com/go-toolsmith/astfmt v1.1.0/go.mod h1:OrcLlRwu0CuiIBp/8b5PYF9ktGVZUjlNMV634mhwuQ4= -github.com/go-toolsmith/astp v1.1.0 h1:dXPuCl6u2llURjdPLLDxJeZInAeZ0/eZwFJmqZMnpQA= -github.com/go-toolsmith/astp v1.1.0/go.mod h1:0T1xFGz9hicKs8Z5MfAqSUitoUYS30pDMsRVIDHs8CA= -github.com/go-toolsmith/pkgload v1.2.2 h1:0CtmHq/02QhxcF7E9N5LIFcYFsMR5rdovfqTtRKkgIk= -github.com/go-toolsmith/pkgload v1.2.2/go.mod h1:R2hxLNRKuAsiXCo2i5J6ZQPhnPMOVtU+f0arbFPWCus= -github.com/go-toolsmith/strparse v1.0.0/go.mod h1:YI2nUKP9YGZnL/L1/DLFBfixrcjslWct4wyljWhSRy8= -github.com/go-toolsmith/strparse v1.1.0 h1:GAioeZUK9TGxnLS+qfdqNbA4z0SSm5zVNtCQiyP2Bvw= -github.com/go-toolsmith/strparse v1.1.0/go.mod h1:7ksGy58fsaQkGQlY8WVoBFNyEPMGuJin1rfoPS4lBSQ= -github.com/go-toolsmith/typep v1.1.0 h1:fIRYDyF+JywLfqzyhdiHzRop/GQDxxNhLGQ6gFUNHus= -github.com/go-toolsmith/typep v1.1.0/go.mod h1:fVIw+7zjdsMxDA3ITWnH1yOiw1rnTQKCsF/sk2H/qig= -github.com/go-xmlfmt/xmlfmt v1.1.2 h1:Nea7b4icn8s57fTx1M5AI4qQT5HEM3rVUO8MuE6g80U= -github.com/go-xmlfmt/xmlfmt v1.1.2/go.mod h1:aUCEOzzezBEjDBbFBoSiya/gduyIiWYRP6CnSFIV8AM= -github.com/gobwas/glob v0.2.3 h1:A4xDbljILXROh+kObIiy5kIaPYD8e96x1tgBhUI5J+Y= -github.com/gobwas/glob v0.2.3/go.mod h1:d3Ez4x06l9bZtSvzIay5+Yzi0fmZzPgnTbPcKjJAkT8= +github.com/gobwas/httphead v0.0.0-20180130184737-2c6c146eadee h1:s+21KNqlpePfkah2I+gwHF8xmJWRjooY+5248k6m4A0= github.com/gobwas/httphead v0.0.0-20180130184737-2c6c146eadee/go.mod h1:L0fX3K22YWvt/FAX9NnzrNzcI4wNYi9Yku4O0LKYflo= +github.com/gobwas/pool v0.2.0 h1:QEmUOlnSjWtnpRGHF3SauEiOsy82Cup83Vf2LcMlnc8= github.com/gobwas/pool v0.2.0/go.mod h1:q8bcK0KcYlCgd9e7WYLm9LpyS+YeLd8JVDW6WezmKEw= github.com/gobwas/ws v1.0.2/go.mod h1:szmBTxLgaFppYjEmNtny/v3w89xOydFnnZMcgRRu/EM= +github.com/gobwas/ws v1.2.1 h1:F2aeBZrm2NDsc7vbovKrWSogd4wvfAxg0FQ89/iqOTk= +github.com/gobwas/ws v1.2.1/go.mod h1:hRKAFb8wOxFROYNsT1bqfWnhX+b5MFeJM9r2ZSwg/KY= +github.com/goccy/go-json v0.10.2 h1:CrxCmQqYDkv1z7lO7Wbh2HN93uovUHgrECaO5ZrCXAU= +github.com/goccy/go-json v0.10.2/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 h1:ZpnhV/YsD2/4cESfV5+Hoeu/iUR3ruzNvZ+yQfO03a0= github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2/go.mod h1:bBOAhwG1umN6/6ZUMtDFBMQR8jRg9O75tm9K00oMsK4= -github.com/gofrs/flock v0.8.1 h1:+gYjHKf32LDeiEEFhQaotPbLuUXjY5ZqxKgXy7n59aw= -github.com/gofrs/flock v0.8.1/go.mod h1:F1TvTiK9OcQqauNUHlbJvyl9Qa1QvF/gOUDKA14jxHU= -github.com/gofrs/uuid v4.3.0+incompatible h1:CaSVZxm5B+7o45rtab4jC2G37WGYX1zQfuU2i6DSvnc= -github.com/gofrs/uuid v4.3.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM= -github.com/gogo/gateway v1.1.0 h1:u0SuhL9+Il+UbjM9VIE3ntfRujKbvVpFvNB4HbjeVQ0= -github.com/gogo/gateway v1.1.0/go.mod h1:S7rR8FRQyG3QFESeSv4l2WnsyzlCLG0CzBbUUo/mbic= -github.com/gogo/googleapis v0.0.0-20180223154316-0cd9801be74a/go.mod h1:gf4bu3Q80BeJ6H1S1vYPm8/ELATdvryBaNFGgqEef3s= +github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= +github.com/gogo/googleapis v1.1.0/go.mod h1:gf4bu3Q80BeJ6H1S1vYPm8/ELATdvryBaNFGgqEef3s= +github.com/gogo/googleapis v1.4.1-0.20201022092350-68b0159b7869/go.mod h1:5YRNX2z1oM5gXdAkurHa942MDgEJyk02w4OecKY87+c= +github.com/gogo/googleapis v1.4.1 h1:1Yx4Myt7BxzvUr5ldGSbwYiZG6t9wGBZ+8/fX3Wvtq0= github.com/gogo/googleapis v1.4.1/go.mod h1:2lpHqI5OcWCtVElxXnPt+s8oJvMpySlOyM6xDCrzib4= -github.com/gogo/status v1.1.0/go.mod h1:BFv9nrluPLmrS0EmGVvLaPNmRosr9KapBYd5/hpY1WM= -github.com/golang-jwt/jwt v3.2.2+incompatible/go.mod h1:8pz2t5EyA70fFQQSrl6XZXzqecmYZeUEB8OUGHkxJ+I= github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= -github.com/golang/glog v1.1.0 h1:/d3pCKDPWNnvIWe0vVUpNP32qc8U3PDVxySP/y360qE= -github.com/golang/glog v1.1.0/go.mod h1:pfYeQZ3JWZoXTV5sFc986z3HTpwQs9At6P4ImfuP3NQ= +github.com/golang/glog v1.2.1 h1:OptwRhECazUx5ix5TTWC3EZhsZEHWcYWY4FQHTIubm4= +github.com/golang/glog v1.2.1/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= +github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= -github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= -github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= -github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= -github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y= -github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= -github.com/golang/mock v1.4.1/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= -github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= -github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4= +github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= github.com/golang/mock v1.6.0 h1:ErTB+efbowRARo13NNdxyJji2egdxLGQhRaY+DUumQc= github.com/golang/mock v1.6.0/go.mod h1:p6yTPP+5HYm5mzsMV8JkE6ZKdX+/wYM6Hr+LicevLPs= github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= @@ -386,7 +292,6 @@ github.com/golang/protobuf v1.3.0/go.mod h1:Qd/q+1AKNOZr9uGQzbzCmRO6sUih6GTPZv6a github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= -github.com/golang/protobuf v1.3.4/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= github.com/golang/protobuf v1.3.5/go.mod h1:6O5/vntMXwX2lRkT1hjjk0nAC1IDOTvTlVgjlRvqsdk= github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= @@ -398,33 +303,13 @@ github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= -github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= -github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= +github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek= +github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps= +github.com/golang/snappy v0.0.0-20180518054509-2e65f85255db/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/golang/snappy v0.0.3/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/golang/snappy v0.0.4/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/golang/snappy v0.0.5-0.20220116011046-fa5810519dcb h1:PBC98N2aIaM3XXiurYmW7fx4GZkL8feAMVq7nEjURHk= github.com/golang/snappy v0.0.5-0.20220116011046-fa5810519dcb/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= -github.com/golangci/check v0.0.0-20180506172741-cfe4005ccda2 h1:23T5iq8rbUYlhpt5DB4XJkc6BU31uODLD1o1gKvZmD0= -github.com/golangci/check v0.0.0-20180506172741-cfe4005ccda2/go.mod h1:k9Qvh+8juN+UKMCS/3jFtGICgW8O96FVaZsaxdzDkR4= -github.com/golangci/dupl v0.0.0-20180902072040-3e9179ac440a h1:w8hkcTqaFpzKqonE9uMCefW1WDie15eSP/4MssdenaM= -github.com/golangci/dupl v0.0.0-20180902072040-3e9179ac440a/go.mod h1:ryS0uhF+x9jgbj/N71xsEqODy9BN81/GonCZiOzirOk= -github.com/golangci/go-misc v0.0.0-20220329215616-d24fe342adfe h1:6RGUuS7EGotKx6J5HIP8ZtyMdiDscjMLfRBSPuzVVeo= -github.com/golangci/go-misc v0.0.0-20220329215616-d24fe342adfe/go.mod h1:gjqyPShc/m8pEMpk0a3SeagVb0kaqvhscv+i9jI5ZhQ= -github.com/golangci/gofmt v0.0.0-20231018234816-f50ced29576e h1:ULcKCDV1LOZPFxGZaA6TlQbiM3J2GCPnkx/bGF6sX/g= -github.com/golangci/gofmt v0.0.0-20231018234816-f50ced29576e/go.mod h1:Pm5KhLPA8gSnQwrQ6ukebRcapGb/BG9iUkdaiCcGHJM= -github.com/golangci/golangci-lint v1.55.0 h1:ePpc6YhM1ZV8kHU8dwmHDHAdeedZHdK8cmTXlkkRdi8= -github.com/golangci/golangci-lint v1.55.0/go.mod h1:Z/OawFQ4yqFo2/plDYlIjoZlJeVYkRcqS9dW55p0FXg= -github.com/golangci/lint-1 v0.0.0-20191013205115-297bf364a8e0 h1:MfyDlzVjl1hoaPzPD4Gpb/QgoRfSBR0jdhwGyAWwMSA= -github.com/golangci/lint-1 v0.0.0-20191013205115-297bf364a8e0/go.mod h1:66R6K6P6VWk9I95jvqGxkqJxVWGFy9XlDwLwVz1RCFg= -github.com/golangci/maligned v0.0.0-20180506175553-b1d89398deca h1:kNY3/svz5T29MYHubXix4aDDuE3RWHkPvopM/EDv/MA= -github.com/golangci/maligned v0.0.0-20180506175553-b1d89398deca/go.mod h1:tvlJhZqDe4LMs4ZHD0oMUlt9G2LWuDGoisJTBzLMV9o= -github.com/golangci/misspell v0.4.1 h1:+y73iSicVy2PqyX7kmUefHusENlrP9YwuHZHPLGQj/g= -github.com/golangci/misspell v0.4.1/go.mod h1:9mAN1quEo3DlpbaIKKyEvRxK1pwqR9s/Sea1bJCtlNI= -github.com/golangci/revgrep v0.5.0 h1:GGBqHFtFOeHiSUQtFVZXPJtVZYOGB4iVlAjaoFRBQvY= -github.com/golangci/revgrep v0.5.0/go.mod h1:bjAMA+Sh/QUfTDcHzxfyHxr4xKvllVr/0sCv2e7jJHA= -github.com/golangci/unconvert v0.0.0-20180507085042-28b1c447d1f4 h1:zwtduBRr5SSWhqsYNgcuWO2kFlpdOZbP0+yRjmvPGys= -github.com/golangci/unconvert v0.0.0-20180507085042-28b1c447d1f4/go.mod h1:Izgrg8RkN3rCIMLGE9CyYmU9pY2Jer6DgANEnZ/L/cQ= -github.com/gomodule/redigo v1.7.1-0.20190724094224-574c33c3df38/go.mod h1:B4C85qUVwatsJoIUNIfCRsp7qO0iAmpGFZ4EELWSbC4= github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= github.com/google/btree v1.1.2 h1:xf4v41cLI2Z6FxbKm+8Bu+m8ifhj15JuZ9sa0jZCMUU= @@ -433,299 +318,255 @@ github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5a github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= -github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= -github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck= +github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= +github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/gofuzz v0.0.0-20170612174753-24818f796faf/go.mod h1:HP5RmnzzSNb993RKQDq4+1A4ia9nllfqcQFTQJedwGI= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= github.com/google/gofuzz v1.2.0 h1:xRy4A+RhZaiKjJ1bPfwQ8sedCA+YS2YcCHW6ec7JMi0= github.com/google/gofuzz v1.2.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= -github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= -github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= -github.com/google/martian/v3 v3.1.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= github.com/google/orderedcode v0.0.1 h1:UzfcAexk9Vhv8+9pNOgRu41f16lHq725vPwnSeiG/Us= github.com/google/orderedcode v0.0.1/go.mod h1:iVyU4/qPKHY5h/wSd6rZZCDcLJNxiWO6dvsYES2Sb20= -github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= -github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= -github.com/google/pprof v0.0.0-20191218002539-d4f498aebedc/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= -github.com/google/pprof v0.0.0-20200212024743-f11f1df84d12/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= -github.com/google/pprof v0.0.0-20200229191704-1ebb73c60ed3/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= -github.com/google/pprof v0.0.0-20200430221834-fc25d7d30c6d/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= -github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= -github.com/google/pprof v0.0.0-20201023163331-3e6fc7fc9c4c/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= -github.com/google/pprof v0.0.0-20201203190320-1bf35d6f28c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= -github.com/google/pprof v0.0.0-20201218002935-b9804c9f04c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= -github.com/google/pprof v0.0.0-20221118152302-e6195bd50e26 h1:Xim43kblpZXfIBQsbuBVKCudVG457BR2GZFIz3uw3hQ= -github.com/google/pprof v0.0.0-20221118152302-e6195bd50e26/go.mod h1:dDKJzRmX4S37WGHujM7tX//fmj1uioxKzKxz3lo4HJo= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= +github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= -github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= -github.com/googleapis/google-cloud-go-testing v0.0.0-20200911160855-bcd43fbb19e8/go.mod h1:dvDLG8qkwmyD9a/MJJN3XJcT3xFxOKAvTZGvuZmac9g= github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= -github.com/gordonklaus/ineffassign v0.0.0-20230610083614-0e73809eb601 h1:mrEEilTAUmaAORhssPPkxj84TsHrPMLBGW2Z4SoTxm8= -github.com/gordonklaus/ineffassign v0.0.0-20230610083614-0e73809eb601/go.mod h1:Qcp2HIAYhR7mNUVSIxZww3Guk4it82ghYcEXIAk+QT0= -github.com/gorilla/handlers v1.5.1 h1:9lRY6j8DEeeBT10CvO9hGW0gmky0BprnvDI5vfhUHH4= -github.com/gorilla/handlers v1.5.1/go.mod h1:t8XrUpc4KVXb7HGyJ4/cEnwQiaxrX/hz1Zv/4g96P1Q= -github.com/gorilla/mux v1.8.0 h1:i40aqfkR1h2SlN9hojwV5ZA91wcXFOvkdNIeFDP5koI= -github.com/gorilla/mux v1.8.0/go.mod h1:DVbg23sWSpFRCP0SfiEN6jmj59UnW/n46BH5rLB71So= +github.com/gorilla/context v1.1.1/go.mod h1:kBGZzfjB9CEq2AlWe17Uuf7NDRt0dE0s8S51q0aT7Yg= +github.com/gorilla/handlers v1.5.2 h1:cLTUSsNkgcwhgRqvCNmdbRWG0A3N4F+M2nWKdScwyEE= +github.com/gorilla/handlers v1.5.2/go.mod h1:dX+xVpaxdSw+q0Qek8SSsl3dfMk3jNddUkMzo0GtH0w= +github.com/gorilla/mux v1.6.2/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs= +github.com/gorilla/mux v1.7.3/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs= +github.com/gorilla/mux v1.8.1 h1:TuBL49tXwgrFYWhqrNgrUNEY92u81SPhu7sTdzQEiWY= +github.com/gorilla/mux v1.8.1/go.mod h1:AKf9I4AEqPTmMytcMc0KkNouC66V3BtZ4qD5fmWSiMQ= +github.com/gorilla/websocket v0.0.0-20170926233335-4201258b820c/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= github.com/gorilla/websocket v1.4.1/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= github.com/gorilla/websocket v1.5.0 h1:PPwGk2jz7EePpoHN/+ClbZu8SPxiqlu12wZP/3sWmnc= github.com/gorilla/websocket v1.5.0/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= -github.com/gostaticanalysis/analysisutil v0.7.1 h1:ZMCjoue3DtDWQ5WyU16YbjbQEQ3VuzwxALrpYd+HeKk= -github.com/gostaticanalysis/analysisutil v0.7.1/go.mod h1:v21E3hY37WKMGSnbsw2S/ojApNWb6C1//mXO48CXbVc= -github.com/gostaticanalysis/comment v1.4.1/go.mod h1:ih6ZxzTHLdadaiSnF5WY3dxUoXfXAlTaRzuaNDlSado= -github.com/gostaticanalysis/comment v1.4.2 h1:hlnx5+S2fY9Zo9ePo4AhgYsYHbM2+eAv8m/s1JiCd6Q= -github.com/gostaticanalysis/comment v1.4.2/go.mod h1:KLUTGDv6HOCotCH8h2erHKmpci2ZoR8VPu34YA2uzdM= -github.com/gostaticanalysis/forcetypeassert v0.1.0 h1:6eUflI3DiGusXGK6X7cCcIgVCpZ2CiZ1Q7jl6ZxNV70= -github.com/gostaticanalysis/forcetypeassert v0.1.0/go.mod h1:qZEedyP/sY1lTGV1uJ3VhWZ2mqag3IkWsDHVbplHXak= -github.com/gostaticanalysis/nilerr v0.1.1 h1:ThE+hJP0fEp4zWLkWHWcRyI2Od0p7DlgYG3Uqrmrcpk= -github.com/gostaticanalysis/nilerr v0.1.1/go.mod h1:wZYb6YI5YAxxq0i1+VJbY0s2YONW0HU0GPE3+5PWN4A= -github.com/gostaticanalysis/testutil v0.3.1-0.20210208050101-bfb5c8eec0e4/go.mod h1:D+FIZ+7OahH3ePw/izIEeH5I06eKs1IKI4Xr64/Am3M= -github.com/gostaticanalysis/testutil v0.4.0 h1:nhdCmubdmDF6VEatUNjgUZBJKWRqugoISdUv3PPQgHY= -github.com/gostaticanalysis/testutil v0.4.0/go.mod h1:bLIoPefWXrRi/ssLFWX1dx7Repi5x3CuviD3dgAZaBU= -github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 h1:+9834+KizmvFV7pXQGSXQTsaWhq2GjuNUt0aUU0YBYw= -github.com/grpc-ecosystem/go-grpc-middleware v1.3.0/go.mod h1:z0ButlSOZa5vEBq9m2m2hlwIgKw+rp3sdCBRoJY+30Y= +github.com/grpc-ecosystem/go-grpc-middleware v1.0.1-0.20190118093823-f849b5445de4/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= +github.com/grpc-ecosystem/go-grpc-middleware v1.2.2/go.mod h1:EaizFBKfUKtMIF5iaDEhniwNedqGo9FuLFzppDr3uwI= +github.com/grpc-ecosystem/go-grpc-middleware v1.4.0 h1:UH//fgunKIs4JdUbpDl1VZCDaL56wXCB/5+wF6uHfaI= +github.com/grpc-ecosystem/go-grpc-middleware v1.4.0/go.mod h1:g5qyo/la0ALbONm6Vbp88Yd8NsDy6rZz+RcrMPxvld8= +github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk= +github.com/grpc-ecosystem/grpc-gateway v1.9.5/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= github.com/grpc-ecosystem/grpc-gateway v1.16.0 h1:gmcG1KaJ57LophUzW0Hy8NmPhnMZb4M0+kPpLofRdBo= github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c h1:6rhixN/i8ZofjG1Y75iExal34USq5p+wiN1tpie8IrU= github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c/go.mod h1:NMPJylDgVpX0MLRlPy15sqSwOFv/U1GZ2m21JhFfek0= -github.com/gtank/merlin v0.1.1-0.20191105220539-8318aed1a79f/go.mod h1:T86dnYJhcGOh5BjZFCJWTDeTK7XW8uE+E21Cy/bIQ+s= -github.com/gtank/merlin v0.1.1 h1:eQ90iG7K9pOhtereWsmyRJ6RAwcP4tHTDBHXNg+u5is= -github.com/gtank/merlin v0.1.1/go.mod h1:T86dnYJhcGOh5BjZFCJWTDeTK7XW8uE+E21Cy/bIQ+s= -github.com/gtank/ristretto255 v0.1.2 h1:JEqUCPA1NvLq5DwYtuzigd7ss8fwbYay9fi4/5uMzcc= -github.com/gtank/ristretto255 v0.1.2/go.mod h1:Ph5OpO6c7xKUGROZfWVLiJf9icMDwUeIvY4OmlYW69o= +github.com/hashicorp/consul/api v1.3.0/go.mod h1:MmDNSzIMUjNpY/mQ398R4bk2FnqQLoPndWW5VkKPlCE= +github.com/hashicorp/consul/sdk v0.3.0/go.mod h1:VKf9jXwCTEY1QZP2MOLRhb5i/I/ssyNV1vwHyQBF0x8= github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= -github.com/hashicorp/errwrap v1.1.0 h1:OxrOeh75EUXMY8TBjag2fzXGZ40LB6IKw45YeGUDY2I= -github.com/hashicorp/errwrap v1.1.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= github.com/hashicorp/go-cleanhttp v0.5.0/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= +github.com/hashicorp/go-cleanhttp v0.5.1/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= +github.com/hashicorp/go-hclog v1.5.0 h1:bI2ocEMgcVlz55Oj1xZNBsVi900c7II+fWDyV9o+13c= +github.com/hashicorp/go-hclog v1.5.0/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVHBcfoyhpF5M= github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= github.com/hashicorp/go-immutable-radix v1.3.1 h1:DKHmCUm2hRBK510BaiZlwvpD40f8bJFeZnpfm2KLowc= github.com/hashicorp/go-immutable-radix v1.3.1/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= -github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+lD48awMYo= -github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM= +github.com/hashicorp/go-metrics v0.5.3 h1:M5uADWMOGCTUNU1YuC4hfknOeHNaX54LDm4oYSucoNE= +github.com/hashicorp/go-metrics v0.5.3/go.mod h1:KEjodfebIOuBYSAe/bHTm+HChmKSxAOXPBieMLYozDE= +github.com/hashicorp/go-msgpack v0.5.3/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM= +github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk= +github.com/hashicorp/go-plugin v1.5.2 h1:aWv8eimFqWlsEiMrYZdPYl+FdHaBJSN4AWwGWfT1G2Y= +github.com/hashicorp/go-plugin v1.5.2/go.mod h1:w1sAEES3g3PuV/RzUrgow20W2uErMly84hhD3um1WL4= github.com/hashicorp/go-retryablehttp v0.5.3/go.mod h1:9B5zBasrRhHXnJnui7y6sL7es7NDiJgTc6Er0maI1Xs= +github.com/hashicorp/go-rootcerts v1.0.0/go.mod h1:K6zTfqpRlCUIjkwsN4Z+hiSfzSTQa6eBIzfwKfwNnHU= +github.com/hashicorp/go-sockaddr v1.0.0/go.mod h1:7Xibr9yA9JjQq1JpNB2Vw7kxv8xerXegt+ozgdvDeDU= +github.com/hashicorp/go-syslog v1.0.0/go.mod h1:qPfqrKkXGihmCqbJM2mZgkZGvKG1dFdvsLplgctolz4= github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= -github.com/hashicorp/go-uuid v1.0.2 h1:cfejS+Tpcp13yd5nYHWDI6qVCny6wyX2Mt5SGur2IGE= -github.com/hashicorp/go-uuid v1.0.2/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= +github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= +github.com/hashicorp/go-uuid v1.0.3 h1:2gKiV6YVmrJ1i2CKKa9obLvRieoRGviZFL26PcT/Co8= +github.com/hashicorp/go-uuid v1.0.3/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= github.com/hashicorp/go-version v1.2.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= -github.com/hashicorp/go-version v1.2.1/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= -github.com/hashicorp/go-version v1.6.0 h1:feTTfFNnjP967rlCxM/I9g701jU+RN74YKx2mOkIeek= -github.com/hashicorp/go-version v1.6.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= +github.com/hashicorp/go.net v0.0.1/go.mod h1:hjKkEWcCURg++eb33jQU7oqQcI9XDCnUzHA0oac0k90= github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= -github.com/hashicorp/golang-lru v0.5.5-0.20210104140557-80c98217689d h1:dg1dEPuWpEqDnvIw251EVy4zlP8gWbsGj4BsUKCRpYs= -github.com/hashicorp/golang-lru v0.5.5-0.20210104140557-80c98217689d/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= +github.com/hashicorp/golang-lru v1.0.2 h1:dV3g9Z/unq5DpblPpw+Oqcv4dU/1omnb4Ok8iPY6p1c= +github.com/hashicorp/golang-lru v1.0.2/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= +github.com/hashicorp/golang-lru/v2 v2.0.7 h1:a+bsQ5rvGLjzHuww6tVxozPZFVghXaHOwFs4luLUK2k= +github.com/hashicorp/golang-lru/v2 v2.0.7/go.mod h1:QeFd9opnmA6QUJc5vARoKUSoFhyfM2/ZepoAG6RGpeM= github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4= github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= +github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64= +github.com/hashicorp/mdns v1.0.0/go.mod h1:tL+uN++7HEJ6SQLQ2/p+z2pH24WQKWjBPkE0mNTz8vQ= +github.com/hashicorp/memberlist v0.1.3/go.mod h1:ajVTdAv/9Im8oMAAj5G31PhhMCZJV2pPBoIllUwCN7I= +github.com/hashicorp/serf v0.8.2/go.mod h1:6hOLApaqBFA1NXqRQAsxw9QxuDEvNxSQRwA/JwenrHc= +github.com/hashicorp/yamux v0.1.1 h1:yrQxtgseBDrq9Y652vSRDvsKCJKOUD+GzTS4Y0Y8pvE= +github.com/hashicorp/yamux v0.1.1/go.mod h1:CtWFDAQgb7dxtzFs4tWbplKIe2jSi3+5vKbgIO0SLnQ= github.com/hdevalence/ed25519consensus v0.1.0 h1:jtBwzzcHuTmFrQN6xQZn6CQEO/V9f7HsjsjeEZ6auqU= github.com/hdevalence/ed25519consensus v0.1.0/go.mod h1:w3BHWjwJbFU29IRHL1Iqkw3sus+7FctEyM4RqDxYNzo= -github.com/hexops/gotextdiff v1.0.3 h1:gitA9+qJrrTCsiCl7+kh75nPqQt1cx4ZkudSTLoUqJM= -github.com/hexops/gotextdiff v1.0.3/go.mod h1:pSWU5MAI3yDq+fZBTazCSJysOMbxWL1BSow5/V2vxeg= github.com/holiman/uint256 v1.2.2-0.20230321075855-87b91420868c h1:DZfsyhDK1hnSS5lH8l+JggqzEleHteTYfutAiVlSUM8= github.com/holiman/uint256 v1.2.2-0.20230321075855-87b91420868c/go.mod h1:SC8Ryt4n+UBbPbIBKaG9zbbDlp4jOru9xFZmPzLUTxw= github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= -github.com/hydrogen18/memlistener v0.0.0-20200120041712-dcc25e7acd91/go.mod h1:qEIFzExnS6016fRpRfxrExeVn2gbClQA99gQhnIcdhE= -github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= -github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= -github.com/imkira/go-interpol v1.1.0/go.mod h1:z0h2/2T3XF8kyEPpRgJ3kmNv+C43p+I/CoI+jC3w2iA= +github.com/huandu/go-assert v1.1.5 h1:fjemmA7sSfYHJD7CUqs9qTwwfdNAx7/j2/ZlHXzNB3c= +github.com/huandu/go-assert v1.1.5/go.mod h1:yOLvuqZwmcHIC5rIzrBhT7D3Q9c3GFnd0JrPVhn/06U= +github.com/huandu/skiplist v1.2.0 h1:gox56QD77HzSC0w+Ws3MH3iie755GBJU1OER3h5VsYw= +github.com/huandu/skiplist v1.2.0/go.mod h1:7v3iFjLcSAzO4fN5B8dvebvo/qsfumiLiDXMrPiHF9w= +github.com/hudl/fargo v1.3.0/go.mod h1:y3CKSmjA+wD2gak7sUSXTAoopbhU08POFhmITJgmKTg= +github.com/iancoleman/strcase v0.3.0 h1:nTXanmYxhfFAMjZL34Ov6gkzEsSJZ5DbhxWjvSASxEI= +github.com/iancoleman/strcase v0.3.0/go.mod h1:iwCmte+B7n89clKwxIoIXy/HfoL7AsD47ZCWhYzw7ho= github.com/improbable-eng/grpc-web v0.15.0 h1:BN+7z6uNXZ1tQGcNAuaU1YjsLTApzkjt2tzCixLaUPQ= github.com/improbable-eng/grpc-web v0.15.0/go.mod h1:1sy9HKV4Jt9aEs9JSnkWlRJPuPtwNr0l57L4f878wP8= github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= -github.com/iris-contrib/blackfriday v2.0.0+incompatible/go.mod h1:UzZ2bDEoaSGPbkg6SAB4att1aAwTmVIx/5gCVqeyUdI= -github.com/iris-contrib/go.uuid v2.0.0+incompatible/go.mod h1:iz2lgM/1UnEf1kP0L/+fafWORmlnuysV2EMP8MW+qe0= -github.com/iris-contrib/jade v1.1.3/go.mod h1:H/geBymxJhShH5kecoiOCSssPX7QWYH7UaeZTSWddIk= -github.com/iris-contrib/pongo2 v0.0.1/go.mod h1:Ssh+00+3GAZqSQb30AvBRNxBx7rf0GqwkjqxNd0u65g= -github.com/iris-contrib/schema v0.0.1/go.mod h1:urYA3uvUNG1TIIjOSCzHr9/LmbQo8LrOcOqfqxa4hXw= -github.com/jgautheron/goconst v1.6.0 h1:gbMLWKRMkzAc6kYsQL6/TxaoBUg3Jm9LSF/Ih1ADWGA= -github.com/jgautheron/goconst v1.6.0/go.mod h1:aAosetZ5zaeC/2EfMeRswtxUFBpe2Hr7HzkgX4fanO4= -github.com/jingyugao/rowserrcheck v1.1.1 h1:zibz55j/MJtLsjP1OF4bSdgXxwL1b+Vn7Tjzq7gFzUs= -github.com/jingyugao/rowserrcheck v1.1.1/go.mod h1:4yvlZSDb3IyDTUZJUmpZfm2Hwok+Dtp+nu2qOq+er9c= -github.com/jirfag/go-printf-func-name v0.0.0-20200119135958-7558a9eaa5af h1:KA9BjwUk7KlCh6S9EAGWBt1oExIUv9WyNCiRz5amv48= -github.com/jirfag/go-printf-func-name v0.0.0-20200119135958-7558a9eaa5af/go.mod h1:HEWGJkRDzjJY2sqdDwxccsGicWEf9BQOZsq2tV+xzM0= +github.com/influxdata/influxdb1-client v0.0.0-20191209144304-8bf82d3c094d/go.mod h1:qj24IKcXYK6Iy9ceXlo3Tc+vtHo9lIhSX5JddghvEPo= +github.com/jhump/protoreflect v1.15.3 h1:6SFRuqU45u9hIZPJAoZ8c28T3nK64BNdp9w6jFonzls= +github.com/jhump/protoreflect v1.15.3/go.mod h1:4ORHmSBmlCW8fh3xHmJMGyul1zNqZK4Elxc8qKP+p1k= +github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k= github.com/jmhodges/levigo v1.0.0 h1:q5EC36kV79HWeTBWsod3mG11EgStG3qArTKcvlksN1U= github.com/jmhodges/levigo v1.0.0/go.mod h1:Q6Qx+uH3RAqyK4rFQroq9RL7mdkABMcfhEI+nNuzMJQ= +github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo= github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4= github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= +github.com/json-iterator/go v1.1.7/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= +github.com/json-iterator/go v1.1.8/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= github.com/json-iterator/go v1.1.9/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= -github.com/json-iterator/go v1.1.11/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= +github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM= github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= -github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= -github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU= github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM= -github.com/julz/importas v0.1.0 h1:F78HnrsjY3cR7j0etXy5+TU1Zuy7Xt08X/1aJnH5xXY= -github.com/julz/importas v0.1.0/go.mod h1:oSFU2R4XK/P7kNBrnL/FEQlDGN1/6WoxXEjSSXO0DV0= -github.com/k0kubun/colorstring v0.0.0-20150214042306-9440f1994b88/go.mod h1:3w7q1U84EfirKl04SVQ/s7nPm1ZPhiXd34z40TNz36k= -github.com/kataras/golog v0.0.10/go.mod h1:yJ8YKCmyL+nWjERB90Qwn+bdyBZsaQwU3bTVFgkFIp8= -github.com/kataras/iris/v12 v12.1.8/go.mod h1:LMYy4VlP67TQ3Zgriz8RE2h2kMZV2SgMYbq3UhfoFmE= -github.com/kataras/neffos v0.0.14/go.mod h1:8lqADm8PnbeFfL7CLXh1WHw53dG27MC3pgi2R1rmoTE= -github.com/kataras/pio v0.0.2/go.mod h1:hAoW0t9UmXi4R5Oyq5Z4irTbaTsOemSrDGUtaTl7Dro= -github.com/kataras/sitemap v0.0.5/go.mod h1:KY2eugMKiPwsJgx7+U103YZehfvNGOXURubcGyk0Bz8= github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= -github.com/kisielk/errcheck v1.6.3 h1:dEKh+GLHcWm2oN34nMvDzn1sqI0i0WxPvrgiJA5JuM8= -github.com/kisielk/errcheck v1.6.3/go.mod h1:nXw/i/MfnvRHqXa7XXmQMUB0oNFGuBrNI8d8NLy0LPw= -github.com/kisielk/gotool v1.0.0 h1:AV2c/EiW3KqPNT9ZKl07ehoAGi4C5/01Cfbblndcapg= github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= -github.com/kkHAIKE/contextcheck v1.1.4 h1:B6zAaLhOEEcjvUgIYEqystmnFk1Oemn8bvJhbt0GMb8= -github.com/kkHAIKE/contextcheck v1.1.4/go.mod h1:1+i/gWqokIa+dm31mqGLZhZJ7Uh44DJGZVmr6QRBNJg= -github.com/klauspost/compress v1.8.2/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A= -github.com/klauspost/compress v1.9.7/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A= +github.com/klauspost/compress v1.10.3/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= +github.com/klauspost/compress v1.11.7/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= github.com/klauspost/compress v1.12.3/go.mod h1:8dP1Hq4DHOhN9w426knH3Rhby4rFm6D8eO+e+Dq5Gzg= -github.com/klauspost/compress v1.16.3 h1:XuJt9zzcnaz6a16/OU53ZjWp/v7/42WcR5t2a0PcNQY= -github.com/klauspost/compress v1.16.3/go.mod h1:ntbaceVETuRiXiv4DpjP66DpAtAGkEQskQzEyD//IeE= -github.com/klauspost/cpuid v1.2.1/go.mod h1:Pj4uuM528wm8OyEC2QMXAi2YiTZ96dNQPGgoMS4s3ek= +github.com/klauspost/compress v1.17.7 h1:ehO88t2UGzQK66LMdE8tibEd1ErmzZjNEqWkjLAKQQg= +github.com/klauspost/compress v1.17.7/go.mod h1:Di0epgTjJY877eYKx5yC51cX2A2Vl2ibi7bDH9ttBbw= github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= -github.com/kr/fs v0.1.0/go.mod h1:FFnZGqtBN9Gxj7eW1uZ42v5BccTP0vu6NEaFoC2HwRg= github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= -github.com/kr/pretty v0.3.0/go.mod h1:640gp4NfQd8pI5XOwp5fnNeVWj67G7CFk/SaSQn7NBk= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= -github.com/kulti/thelper v0.6.3 h1:ElhKf+AlItIu+xGnI990no4cE2+XaSu1ULymV2Yulxs= -github.com/kulti/thelper v0.6.3/go.mod h1:DsqKShOvP40epevkFrvIwkCMNYxMeTNjdWL4dqWHZ6I= -github.com/kunwardeep/paralleltest v1.0.8 h1:Ul2KsqtzFxTlSU7IP0JusWlLiNqQaloB9vguyjbE558= -github.com/kunwardeep/paralleltest v1.0.8/go.mod h1:2C7s65hONVqY7Q5Efj5aLzRCNLjw2h4eMc9EcypGjcY= -github.com/kyoh86/exportloopref v0.1.11 h1:1Z0bcmTypkL3Q4k+IDHMWTcnCliEZcaPiIe0/ymEyhQ= -github.com/kyoh86/exportloopref v0.1.11/go.mod h1:qkV4UF1zGl6EkF1ox8L5t9SwyeBAZ3qLMd6up458uqA= -github.com/labstack/echo/v4 v4.5.0/go.mod h1:czIriw4a0C1dFun+ObrXp7ok03xON0N1awStJ6ArI7Y= -github.com/labstack/gommon v0.3.0/go.mod h1:MULnywXg0yavhxWKc+lOruYdAhDwPK9wf0OL7NoOu+k= -github.com/ldez/gomoddirectives v0.2.3 h1:y7MBaisZVDYmKvt9/l1mjNCiSA1BVn34U0ObUcJwlhA= -github.com/ldez/gomoddirectives v0.2.3/go.mod h1:cpgBogWITnCfRq2qGoDkKMEVSaarhdBr6g8G04uz6d0= -github.com/ldez/tagliatelle v0.5.0 h1:epgfuYt9v0CG3fms0pEgIMNPuFf/LpPIfjk4kyqSioo= -github.com/ldez/tagliatelle v0.5.0/go.mod h1:rj1HmWiL1MiKQuOONhd09iySTEkUuE/8+5jtPYz9xa4= -github.com/leonklingele/grouper v1.1.1 h1:suWXRU57D4/Enn6pXR0QVqqWWrnJ9Osrz+5rjt8ivzU= -github.com/leonklingele/grouper v1.1.1/go.mod h1:uk3I3uDfi9B6PeUjsCKi6ndcf63Uy7snXgR4yDYQVDY= +github.com/leodido/go-urn v1.2.0/go.mod h1:+8+nEpDfqqsY+g338gtMEUOtuK+4dEMhiQEgxpxOKII= +github.com/leodido/go-urn v1.2.1 h1:BqpAaACuzVSgi/VLzGZIobT2z4v53pjosyNd9Yv6n/w= +github.com/leodido/go-urn v1.2.1/go.mod h1:zt4jvISO2HfUBqxjfIshjdMTYS56ZS/qv49ictyFfxY= github.com/lib/pq v1.10.9 h1:YXG7RB+JIjhP29X+OtkiDnYaXQwpS4JEWq7dtCCRUEw= github.com/lib/pq v1.10.9/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= github.com/libp2p/go-buffer-pool v0.1.0 h1:oK4mSFcQz7cTQIfqbe4MIj9gLW+mnanjyFtc6cdF0Y8= github.com/libp2p/go-buffer-pool v0.1.0/go.mod h1:N+vh8gMqimBzdKkSMVuydVDq+UV5QTWy5HSiZacSbPg= -github.com/linxGnu/grocksdb v1.7.10 h1:dz7RY7GnFUA+GJO6jodyxgkUeGMEkPp3ikt9hAcNGEw= -github.com/linxGnu/grocksdb v1.7.10/go.mod h1:0hTf+iA+GOr0jDX4CgIYyJZxqOH9XlBh6KVj8+zmF34= -github.com/lufeee/execinquery v1.2.1 h1:hf0Ems4SHcUGBxpGN7Jz78z1ppVkP/837ZlETPCEtOM= -github.com/lufeee/execinquery v1.2.1/go.mod h1:EC7DrEKView09ocscGHC+apXMIaorh4xqSxS/dy8SbM= -github.com/macabu/inamedparam v0.1.2 h1:RR5cnayM6Q7cDhQol32DE2BGAPGMnffJ31LFE+UklaU= -github.com/macabu/inamedparam v0.1.2/go.mod h1:Xg25QvY7IBRl1KLPV9Rbml8JOMZtF/iAkNkmV7eQgjw= +github.com/lightstep/lightstep-tracer-common/golang/gogo v0.0.0-20190605223551-bc2310a04743/go.mod h1:qklhhLq1aX+mtWk9cPHPzaBjWImj5ULL6C7HFJtXQMM= +github.com/lightstep/lightstep-tracer-go v0.18.1/go.mod h1:jlF1pusYV4pidLvZ+XD0UBX0ZE6WURAspgAczcDHrL4= +github.com/linxGnu/grocksdb v1.8.14 h1:HTgyYalNwBSG/1qCQUIott44wU5b2Y9Kr3z7SK5OfGQ= +github.com/linxGnu/grocksdb v1.8.14/go.mod h1:QYiYypR2d4v63Wj1adOOfzglnoII0gLj3PNh4fZkcFA= +github.com/lyft/protoc-gen-validate v0.0.13/go.mod h1:XbGvPuh87YZc5TdIa2/I4pLk0QoUACkjt2znoq26NVQ= github.com/magiconair/properties v1.8.0/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= github.com/magiconair/properties v1.8.7 h1:IeQXZAiQcpL9mgcAe1Nu6cX9LLw6ExEHKjN0VQdvPDY= github.com/magiconair/properties v1.8.7/go.mod h1:Dhd985XPs7jluiymwWYZ0G4Z61jb3vdS329zhj2hYo0= -github.com/maratori/testableexamples v1.0.0 h1:dU5alXRrD8WKSjOUnmJZuzdxWOEQ57+7s93SLMxb2vI= -github.com/maratori/testableexamples v1.0.0/go.mod h1:4rhjL1n20TUTT4vdh3RDqSizKLyXp7K2u6HgraZCGzE= -github.com/maratori/testpackage v1.1.1 h1:S58XVV5AD7HADMmD0fNnziNHqKvSdDuEKdPD1rNTU04= -github.com/maratori/testpackage v1.1.1/go.mod h1:s4gRK/ym6AMrqpOa/kEbQTV4Q4jb7WeLZzVhVVVOQMc= -github.com/matoous/godox v0.0.0-20230222163458-006bad1f9d26 h1:gWg6ZQ4JhDfJPqlo2srm/LN17lpybq15AryXIRcWYLE= -github.com/matoous/godox v0.0.0-20230222163458-006bad1f9d26/go.mod h1:1BELzlh859Sh1c6+90blK8lbYy0kwQf1bYlBhBysy1s= -github.com/matryer/is v1.4.0 h1:sosSmIWwkYITGrxZ25ULNDeKiMNzFSr4V/eqBQP0PeE= -github.com/matryer/is v1.4.0/go.mod h1:8I/i5uYgLzgsgEloJE1U6xx5HkBQpAZvepWuujKwMRU= -github.com/mattn/go-colorable v0.1.2/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= -github.com/mattn/go-colorable v0.1.8/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= -github.com/mattn/go-colorable v0.1.11/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= +github.com/manifoldco/promptui v0.9.0 h1:3V4HzJk1TtXW1MTZMP7mdlwbBpIinw3HztaIlYthEiA= +github.com/manifoldco/promptui v0.9.0/go.mod h1:ka04sppxSGFAtxX0qhlYQjISsg9mR4GWtQEhdbn6Pgg= +github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= +github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= +github.com/mattn/go-colorable v0.1.12/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA= github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg= -github.com/mattn/go-isatty v0.0.7/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= -github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= -github.com/mattn/go-isatty v0.0.9/go.mod h1:YNRxwqDuOph6SZLI9vUUz6OYw3QyUt7WiY2yME+cCiQ= +github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= +github.com/mattn/go-isatty v0.0.4/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94= github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= -github.com/mattn/go-isatty v0.0.18 h1:DOKFKCQ7FNG2L1rbrmstDN4QVRdS89Nkh85u68Uwp98= -github.com/mattn/go-isatty v0.0.18/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= -github.com/mattn/go-runewidth v0.0.9/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI= -github.com/mattn/go-runewidth v0.0.14 h1:+xnbZSEeDbOIg5/mE6JF0w6n9duR1l3/WmbinWVwUuU= -github.com/mattn/go-runewidth v0.0.14/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w= -github.com/mattn/goveralls v0.0.2/go.mod h1:8d1ZMHsd7fW6IRPKQh46F2WRpyib5/X4FOpevwGNQEw= +github.com/mattn/go-isatty v0.0.19/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= +github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY= +github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= +github.com/mattn/go-runewidth v0.0.2/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= -github.com/matttproud/golang_protobuf_extensions v1.0.4 h1:mmDVorXM7PCGKw94cs5zkfA9PSy5pEvNWRP0ET0TIVo= -github.com/matttproud/golang_protobuf_extensions v1.0.4/go.mod h1:BSXmuO+STAnVfrANrmjBb36TMTDstsz7MSK+HVaYKv4= -github.com/mbilski/exhaustivestruct v1.2.0 h1:wCBmUnSYufAHO6J4AVWY6ff+oxWxsVFrwgOdMUQePUo= -github.com/mbilski/exhaustivestruct v1.2.0/go.mod h1:OeTBVxQWoEmB2J2JCHmXWPJ0aksxSUOUy+nvtVEfzXc= -github.com/mediocregopher/radix/v3 v3.4.2/go.mod h1:8FL3F6UQRXHXIBSPUs5h0RybMF8i4n7wVopoX3x7Bv8= -github.com/mgechev/revive v1.3.4 h1:k/tO3XTaWY4DEHal9tWBkkUMJYO/dLDVyMmAQxmIMDc= -github.com/mgechev/revive v1.3.4/go.mod h1:W+pZCMu9qj8Uhfs1iJMQsEFLRozUfvwFwqVvRbSNLVw= -github.com/microcosm-cc/bluemonday v1.0.2/go.mod h1:iVP4YcDBq+n/5fb23BhYFvIMq/leAFZyRl6bYmGDlGc= -github.com/mimoo/StrobeGo v0.0.0-20181016162300-f8f6d4d2b643/go.mod h1:43+3pMjjKimDBf5Kr4ZFNGbLql1zKkbImw+fZbw3geM= -github.com/mimoo/StrobeGo v0.0.0-20220103164710-9a04d6ca976b h1:QrHweqAtyJ9EwCaGHBu1fghwxIPiopAHV06JlXrMHjk= -github.com/mimoo/StrobeGo v0.0.0-20220103164710-9a04d6ca976b/go.mod h1:xxLb2ip6sSUts3g1irPVHyk/DGslwQsNOo9I7smJfNU= +github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= github.com/minio/highwayhash v1.0.2 h1:Aak5U0nElisjDCfPSG79Tgzkn2gl66NxOMspRrKnA/g= github.com/minio/highwayhash v1.0.2/go.mod h1:BQskDq+xkJ12lmlUUi7U0M5Swg3EWR+dLTk+kldvVxY= -github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y= +github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc= +github.com/mitchellh/go-homedir v1.0.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= +github.com/mitchellh/go-testing-interface v1.0.0/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI= +github.com/mitchellh/go-testing-interface v1.14.1 h1:jrgshOhYAUVNMAJiKbEu7EqAwgJJ2JqpQmpLJOu07cU= +github.com/mitchellh/go-testing-interface v1.14.1/go.mod h1:gfgS7OtZj6MA4U1UrDRp04twqAjfvlZyCfX3sDjEym8= +github.com/mitchellh/gox v0.4.0/go.mod h1:Sd9lOJ0+aimLBi73mGofS1ycjY8lL3uZM3JPS42BGNg= +github.com/mitchellh/iochan v1.0.0/go.mod h1:JwYml1nuB7xOzsp52dPpHFffvOCDupsG0QubkSMEySY= +github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY= github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= +github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg= github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= +github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M= github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= -github.com/moricho/tparallel v0.3.1 h1:fQKD4U1wRMAYNngDonW5XupoB/ZGJHdpzrWqgyg9krA= -github.com/moricho/tparallel v0.3.1/go.mod h1:leENX2cUv7Sv2qDgdi0D0fCftN8fRC67Bcn8pqzeYNI= -github.com/moul/http2curl v1.0.0/go.mod h1:8UbvGypXm98wA/IqH45anm5Y2Z6ep6O31QGOAZ3H0fQ= github.com/mtibben/percent v0.2.1 h1:5gssi8Nqo8QU/r2pynCm+hBQHpkB/uNK7BJCFogWdzs= github.com/mtibben/percent v0.2.1/go.mod h1:KG9uO+SZkUp+VkRHsCdYQV3XSZrrSpR3O9ibNBTZrns= github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= +github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f h1:KUppIJq7/+SVif2QVs3tOP0zanoHgBEVAwHxUSIzRqU= github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= -github.com/nakabonne/nestif v0.3.1 h1:wm28nZjhQY5HyYPx+weN3Q65k6ilSBxDb8v5S81B81U= -github.com/nakabonne/nestif v0.3.1/go.mod h1:9EtoZochLn5iUprVDmDjqGKPofoUEBL8U4Ngq6aY7OE= +github.com/mwitkow/grpc-proxy v0.0.0-20181017164139-0f1106ef9c76/go.mod h1:x5OoJHDHqxHS801UIuhqGl6QdSAEJvtausosHSdazIo= github.com/nats-io/jwt v0.3.0/go.mod h1:fRYCDE99xlTsqUzISS1Bi75UBJ6ljOJQOAAu5VglpSg= +github.com/nats-io/jwt v0.3.2/go.mod h1:/euKqTS1ZD+zzjYrY7pseZrTtWQSjujC7xjPc8wL6eU= +github.com/nats-io/nats-server/v2 v2.1.2/go.mod h1:Afk+wRZqkMQs/p45uXdrVLuab3gwv3Z8C4HTBu8GD/k= github.com/nats-io/nats.go v1.9.1/go.mod h1:ZjDU1L/7fJ09jvUSRVBR2e7+RnLiiIQyqyzEE/Zbp4w= github.com/nats-io/nkeys v0.1.0/go.mod h1:xpnFELMwJABBLVhffcfd1MZx6VsNRFpEugbxziKVo7w= +github.com/nats-io/nkeys v0.1.3/go.mod h1:xpnFELMwJABBLVhffcfd1MZx6VsNRFpEugbxziKVo7w= github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OSON2c= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= -github.com/nishanths/exhaustive v0.11.0 h1:T3I8nUGhl/Cwu5Z2hfc92l0e04D2GEW6e0l8pzda2l0= -github.com/nishanths/exhaustive v0.11.0/go.mod h1:RqwDsZ1xY0dNdqHho2z6X+bgzizwbLYOWnZbbl2wLB4= -github.com/nishanths/predeclared v0.2.2 h1:V2EPdZPliZymNAn79T8RkNApBjMmVKh5XRpLm/w98Vk= -github.com/nishanths/predeclared v0.2.2/go.mod h1:RROzoN6TnGQupbC+lqggsOlcgysk3LMK/HI84Mp280c= -github.com/nunnatsa/ginkgolinter v0.14.0 h1:XQPNmw+kZz5cC/HbFK3mQutpjzAQv1dHregRA+4CGGg= -github.com/nunnatsa/ginkgolinter v0.14.0/go.mod h1:cm2xaqCUCRd7qcP4DqbVvpcyEMkuLM9CF0wY6VASohk= -github.com/nxadm/tail v1.4.4 h1:DQuhQpB1tVlglWS2hLQ5OV6B5r8aGxSrPc5Qo6uTN78= github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A= -github.com/olekukonko/tablewriter v0.0.5 h1:P2Ga83D34wi1o9J6Wh1mRuqd4mF/x/lgBS7N7AbDhec= -github.com/olekukonko/tablewriter v0.0.5/go.mod h1:hPp6KlRPjbx+hW8ykQs1w3UBbZlj6HuIJcUGPhkA7kY= +github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE= +github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU= +github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a h1:dlRvE5fWabOchtH7znfiFCcOvmIYgOeAS5ifBXBlh9Q= +github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a/go.mod h1:hVoHR2EVESiICEMbg137etN/Lx+lSrHPTD39Z/uE+2s= +github.com/oklog/oklog v0.3.2/go.mod h1:FCV+B7mhrz4o+ueLpx+KqkyXRGMWOYEvfiXtdGtbWGs= +github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA= +github.com/oklog/run v1.1.0 h1:GEenZ1cK0+q0+wsJew9qUg/DyD8k3JzYsZAi5gYi2mA= +github.com/oklog/run v1.1.0/go.mod h1:sVPdnTZT1zYwAJeCMu2Th4T21pA3FPOQRfWjQlk7DVU= +github.com/olekukonko/tablewriter v0.0.0-20170122224234-a0225b3f23b5/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo= github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= -github.com/onsi/ginkgo v1.10.3/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= +github.com/onsi/ginkgo v1.7.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108oapk= -github.com/onsi/ginkgo v1.14.0 h1:2mOpI4JVVPBN+WQRa0WKH2eXR+Ey+uK4n7Zj0aYpIQA= github.com/onsi/ginkgo v1.14.0/go.mod h1:iSB4RoI2tjJc9BBv4NKIKWKya62Rps+oPG/Lv9klQyY= -github.com/onsi/ginkgo/v2 v2.12.1 h1:uHNEO1RP2SpuZApSkel9nEh1/Mu+hmQe7Q+Pepg5OYA= -github.com/onsi/ginkgo/v2 v2.12.1/go.mod h1:TE309ZR8s5FsKKpuB1YAQYBzCaAfUgatB/xlT/ETL/o= +github.com/onsi/ginkgo v1.16.5 h1:8xi0RTUf59SOSfEtZMvwTvXYMzG4gV23XVHOZiXNtnE= +github.com/onsi/ginkgo v1.16.5/go.mod h1:+E8gABHa3K6zRBolWtd+ROzc/U5bkGt0FwiG042wbpU= +github.com/onsi/gomega v1.4.3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY= github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo= -github.com/onsi/gomega v1.28.0 h1:i2rg/p9n/UqIDAMFUJ6qIUUMcsqOuUHgbpbu235Vr1c= -github.com/onsi/gomega v1.28.0/go.mod h1:A1H2JE76sI14WIP57LMKj7FVfCHx3g3BcZVjJG8bjX8= +github.com/onsi/gomega v1.31.1 h1:KYppCUK+bUgAZwHOu7EXVBKyQA6ILvOESHkn/tgoqvo= +github.com/onsi/gomega v1.31.1/go.mod h1:y40C95dwAD1Nz36SsEnxvfFe8FFfNxzI5eJ0EYGyAy0= +github.com/op/go-logging v0.0.0-20160315200505-970db520ece7/go.mod h1:HzydrMdWErDVzsI23lYNej1Htcns9BCg93Dk0bBINWk= +github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U= +github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM= +github.com/opencontainers/image-spec v1.1.0-rc2 h1:2zx/Stx4Wc5pIPDvIxHXvXtQFW/7XWJGmnM7r3wg034= +github.com/opencontainers/image-spec v1.1.0-rc2/go.mod h1:3OVijpioIKYWTqjiG0zfF6wvoJ4fAXGbjdZuI2NgsRQ= +github.com/opencontainers/runc v1.1.3 h1:vIXrkId+0/J2Ymu2m7VjGvbSlAId9XNRPhn2p4b+d8w= +github.com/opencontainers/runc v1.1.3/go.mod h1:1J5XiS+vdZ3wCyZybsuxXZWGrgSr8fFJHLXuG2PsnNg= +github.com/opentracing-contrib/go-observer v0.0.0-20170622124052-a52f23424492/go.mod h1:Ngi6UdF0k5OKD5t5wlmGhe/EDKPoUM3BXZSSfIuJbis= +github.com/opentracing/basictracer-go v1.0.0/go.mod h1:QfBfYuafItcjQuMwinw9GhYKwFXS9KnPs5lxoYwgW74= +github.com/opentracing/opentracing-go v1.0.2/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= github.com/opentracing/opentracing-go v1.1.0/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= -github.com/otiai10/copy v1.2.0/go.mod h1:rrF5dJ5F0t/EWSYODDu4j9/vEeYHMkc8jt0zJChqQWw= -github.com/otiai10/copy v1.11.0 h1:OKBD80J/mLBrwnzXqGtFCzprFSGioo30JcmR4APsNwc= -github.com/otiai10/copy v1.11.0/go.mod h1:rSaLseMUsZFFbsFGc7wCJnnkTAvdc5L6VWxPE4308Ww= -github.com/otiai10/curr v0.0.0-20150429015615-9b4961190c95/go.mod h1:9qAhocn7zKJG+0mI8eUu6xqkFDYS2kb2saOteoSB3cE= -github.com/otiai10/curr v1.0.0/go.mod h1:LskTG5wDwr8Rs+nNQ+1LlxRjAtTZZjtJW4rMXl6j4vs= -github.com/otiai10/mint v1.3.0/go.mod h1:F5AjcsTsWUqX+Na9fpHb52P8pcRX2CI6A3ctIT91xUo= -github.com/otiai10/mint v1.3.1/go.mod h1:/yxELlJQ0ufhjUwhshSj+wFjZ78CnZ48/1wtmBH1OTc= +github.com/openzipkin-contrib/zipkin-go-opentracing v0.4.5/go.mod h1:/wsWhb9smxSfWAKL3wpBW7V8scJMt8N8gnaMCS9E/cA= +github.com/openzipkin/zipkin-go v0.1.6/go.mod h1:QgAqvLzwWbR/WpD4A3cGpPtJrZXNIiJc5AZX7/PBEpw= +github.com/openzipkin/zipkin-go v0.2.1/go.mod h1:NaW6tEwdmWMaCDZzg8sh+IBNOxHMPnhQw8ySjnjRyN4= +github.com/openzipkin/zipkin-go v0.2.2/go.mod h1:NaW6tEwdmWMaCDZzg8sh+IBNOxHMPnhQw8ySjnjRyN4= +github.com/ory/dockertest v3.3.5+incompatible h1:iLLK6SQwIhcbrG783Dghaaa3WPzGc+4Emza6EbVUUGA= +github.com/ory/dockertest v3.3.5+incompatible/go.mod h1:1vX4m9wsvi00u5bseYwXaSnhNrne+V0E6LAcBILJdPs= +github.com/pact-foundation/pact-go v1.0.4/go.mod h1:uExwJY4kCzNPcHRj+hCR/HBbOOIwwtUjcrb0b5/5kLM= +github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= github.com/pascaldekloe/goe v0.1.0 h1:cBOtyMzM9HTpWjXfbbunk26uA6nG3a8n06Wieeh0MwY= github.com/pascaldekloe/goe v0.1.0/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= +github.com/pborman/uuid v1.2.0/go.mod h1:X/NO0urCmaxf9VXbdlT7C2Yzkj2IKimNn4k+gtPdI/k= github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= -github.com/pelletier/go-toml/v2 v2.0.8 h1:0ctb6s9mE31h0/lhu+J6OPmVeDxJn+kYnJc2jZR9tGQ= -github.com/pelletier/go-toml/v2 v2.0.8/go.mod h1:vuYfssBdrU2XDZ9bYydBu6t+6a6PYNcZljzZR9VXg+4= +github.com/pelletier/go-toml/v2 v2.2.2 h1:aYUidT7k73Pcl9nb2gScu7NSrKCSHIDE89b3+6Wq+LM= +github.com/pelletier/go-toml/v2 v2.2.2/go.mod h1:1t835xjRzz80PqgE6HHgN2JOsmgYu/h4qDAS4n929Rs= +github.com/performancecopilot/speed v3.0.0+incompatible/go.mod h1:/CLtqpZ5gBg1M9iaPbIdPPGyKcA8hKdoy6hAWba7Yac= github.com/petermattis/goid v0.0.0-20180202154549-b0b1615b78e5/go.mod h1:jvVRKCrJTQWu0XVbaOlby/2lO20uSCHEMzzplHXte1o= -github.com/petermattis/goid v0.0.0-20230317030725-371a4b8eda08 h1:hDSdbBuw3Lefr6R18ax0tZ2BJeNB3NehB3trOwYBsdU= -github.com/petermattis/goid v0.0.0-20230317030725-371a4b8eda08/go.mod h1:pxMtw7cyUw6B2bRH0ZBANSPg+AoSud1I1iyJHI69jH4= +github.com/petermattis/goid v0.0.0-20231207134359-e60b3f734c67 h1:jik8PHtAIsPlCRJjJzl4udgEf7hawInF9texMeO2jrU= +github.com/petermattis/goid v0.0.0-20231207134359-e60b3f734c67/go.mod h1:pxMtw7cyUw6B2bRH0ZBANSPg+AoSud1I1iyJHI69jH4= +github.com/pierrec/lz4 v1.0.2-0.20190131084431-473cd7ce01a1/go.mod h1:3/3N9NVKO0jef7pBehbT1qWhCMrIgbYNnFAZCqQ5LRc= +github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= github.com/pingcap/errors v0.11.4 h1:lFuQV/oaUMGcD2tqt+01ROSmJs75VG1ToEOkZIZ4nE4= github.com/pingcap/errors v0.11.4/go.mod h1:Oi8TUi2kEtXXLMJk9l1cGmz20kV3TaQ0usTwv5KuLY8= github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA= @@ -733,143 +574,115 @@ github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINE github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= -github.com/pkg/sftp v1.13.1/go.mod h1:3HaPG6Dq1ILlpPZRO0HVMrsydcdLt6HRDccSgb87qRg= -github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= +github.com/pkg/profile v1.2.1/go.mod h1:hJw3o1OdXxsrSjjVksARp5W95eeEaEfptyVZyv6JUPA= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/polyfloyd/go-errorlint v1.4.5 h1:70YWmMy4FgRHehGNOUask3HtSFSOLKgmDn7ryNe7LqI= -github.com/polyfloyd/go-errorlint v1.4.5/go.mod h1:sIZEbFoDOCnTYYZoVkjc4hTnM459tuWA9H/EkdXwsKk= +github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U= +github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI= github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= +github.com/prometheus/client_golang v0.9.3-0.20190127221311-3c4408c8b829/go.mod h1:p2iRAGwDERtqlqzRXnrOVns+ignqQo//hLXqYxZYVNs= github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo= +github.com/prometheus/client_golang v1.3.0/go.mod h1:hJaj2vgQTGQmVCsAACORcieXFeDPbaTKGT+JTgUa3og= github.com/prometheus/client_golang v1.4.0/go.mod h1:e9GMxYsXl05ICDXkRhurwBS4Q3OK1iX/F2sw+iXX5zU= github.com/prometheus/client_golang v1.7.1/go.mod h1:PY5Wy2awLA44sXw4AOSfFBetzPP4j5+D6mVACh+pe2M= -github.com/prometheus/client_golang v1.11.0/go.mod h1:Z6t4BnS23TR94PD6BsDNk8yVqroYurpAkEiz0P2BEV0= -github.com/prometheus/client_golang v1.12.1/go.mod h1:3Z9XVyYiZYEO+YQWt3RD2R3jrbd179Rt297l4aS6nDY= -github.com/prometheus/client_golang v1.15.0 h1:5fCgGYogn0hFdhyhLbw7hEsWxufKtY9klyvdNfFlFhM= -github.com/prometheus/client_golang v1.15.0/go.mod h1:e9yaBhRPU2pPNsZwE+JdQl0KEt1N9XgF6zxWmaC0xOk= +github.com/prometheus/client_golang v1.19.0 h1:ygXvpU1AoN1MhdzckN+PyD9QJOSD4x7kmXYlnfbA6JU= +github.com/prometheus/client_golang v1.19.0/go.mod h1:ZRM9uEAypZakd+q/x7+gmsvXdURP+DABIEIjnmDdp+k= github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= +github.com/prometheus/client_model v0.0.0-20190115171406-56726106282f/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= +github.com/prometheus/client_model v0.1.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/prometheus/client_model v0.2.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= -github.com/prometheus/client_model v0.3.0 h1:UBgGFHqYdG/TPFD1B1ogZywDqEkwp3fBMvqdiQ7Xew4= -github.com/prometheus/client_model v0.3.0/go.mod h1:LDGWKZIo7rky3hgvBe+caln+Dr3dPggB5dvjtD7w9+w= +github.com/prometheus/client_model v0.6.1 h1:ZKSh/rekM+n3CeS952MLRAdFwIKqeY8b62p8ais2e9E= +github.com/prometheus/client_model v0.6.1/go.mod h1:OrxVMOVHjw3lKMa8+x6HeMGkHMQyHDk9E3jmP2AmGiY= +github.com/prometheus/common v0.2.0/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= +github.com/prometheus/common v0.7.0/go.mod h1:DjGbpBbp5NYNiECxcL/VnbXCCaQpKd3tt26CguLLsqA= github.com/prometheus/common v0.9.1/go.mod h1:yhUN8i9wzaXS3w1O07YhxHEBxD+W35wd8bs7vj7HSQ4= github.com/prometheus/common v0.10.0/go.mod h1:Tlit/dnDKsSWFlCLTWaA1cyBgKHSMdTB80sz/V91rCo= -github.com/prometheus/common v0.26.0/go.mod h1:M7rCNAaPfAosfx8veZJCuw84e35h3Cfd9VFqTh1DIvc= -github.com/prometheus/common v0.32.1/go.mod h1:vu+V0TpY+O6vW9J44gczi3Ap/oXXR10b+M/gUGO4Hls= -github.com/prometheus/common v0.42.0 h1:EKsfXEYo4JpWMHH5cg+KOUWeuJSov1Id8zGR8eeI1YM= -github.com/prometheus/common v0.42.0/go.mod h1:xBwqVerjNdUDjgODMpudtOMwlOwf2SaTr1yjz4b7Zbc= +github.com/prometheus/common v0.15.0/go.mod h1:U+gB1OBLb1lF3O42bTCL+FK18tX9Oar16Clt/msog/s= +github.com/prometheus/common v0.52.2 h1:LW8Vk7BccEdONfrJBDffQGRtpSzi5CQaRZGtboOO2ck= +github.com/prometheus/common v0.52.2/go.mod h1:lrWtQx+iDfn2mbH5GUzlH9TSHyfZpHkSiG1W7y3sF2Q= github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= +github.com/prometheus/procfs v0.0.0-20190117184657-bf6a532e95b1/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= github.com/prometheus/procfs v0.0.8/go.mod h1:7Qr8sr6344vo1JqZ6HhLceV9o3AJ1Ff+GxbHq6oeK9A= github.com/prometheus/procfs v0.1.3/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= -github.com/prometheus/procfs v0.6.0/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= -github.com/prometheus/procfs v0.7.3/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= -github.com/prometheus/procfs v0.9.0 h1:wzCHvIvM5SxWqYvwgVL7yJY8Lz3PKn49KQtpgMYJfhI= -github.com/prometheus/procfs v0.9.0/go.mod h1:+pB4zwohETzFnmlpe6yd2lSc+0/46IYZRB/chUwxUZY= -github.com/quasilyte/go-ruleguard v0.4.0 h1:DyM6r+TKL+xbKB4Nm7Afd1IQh9kEUKQs2pboWGKtvQo= -github.com/quasilyte/go-ruleguard v0.4.0/go.mod h1:Eu76Z/R8IXtViWUIHkE3p8gdH3/PKk1eh3YGfaEof10= -github.com/quasilyte/gogrep v0.5.0 h1:eTKODPXbI8ffJMN+W2aE0+oL0z/nh8/5eNdiO34SOAo= -github.com/quasilyte/gogrep v0.5.0/go.mod h1:Cm9lpz9NZjEoL1tgZ2OgeUKPIxL1meE7eo60Z6Sk+Ng= -github.com/quasilyte/regex/syntax v0.0.0-20210819130434-b3f0c404a727 h1:TCg2WBOl980XxGFEZSS6KlBGIV0diGdySzxATTWoqaU= -github.com/quasilyte/regex/syntax v0.0.0-20210819130434-b3f0c404a727/go.mod h1:rlzQ04UMyJXu/aOvhd8qT+hvDrFpiwqp8MRXDY9szc0= -github.com/quasilyte/stdinfo v0.0.0-20220114132959-f7386bf02567 h1:M8mH9eK4OUR4lu7Gd+PU1fV2/qnDNfzT635KRSObncs= -github.com/quasilyte/stdinfo v0.0.0-20220114132959-f7386bf02567/go.mod h1:DWNGW8A4Y+GyBgPuaQJuWiy0XYftx4Xm/y5Jqk9I6VQ= -github.com/rakyll/statik v0.1.7 h1:OF3QCZUuyPxuGEP7B4ypUa7sB/iHtqOTDYZXGM8KOdQ= -github.com/rakyll/statik v0.1.7/go.mod h1:AlZONWzMtEnMs7W4e/1LURLiI49pIMmp6V9Unghqrcc= +github.com/prometheus/procfs v0.3.0/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= +github.com/prometheus/procfs v0.13.0 h1:GqzLlQyfsPbaEHaQkO7tbDlriv/4o5Hudv6OXHGKX7o= +github.com/prometheus/procfs v0.13.0/go.mod h1:cd4PFCR54QLnGKPaKGA6l+cfuNXtht43ZKY6tow0Y1g= +github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 h1:N/ElC8H3+5XpJzTSTfLsJV/mx9Q9g7kxmchpfZyxgzM= github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= -github.com/regen-network/cosmos-proto v0.3.1 h1:rV7iM4SSFAagvy8RiyhiACbWEGotmqzywPxOvwMdxcg= -github.com/regen-network/cosmos-proto v0.3.1/go.mod h1:jO0sVX6a1B36nmE8C9xBFXpNwWejXC7QqCOnH3O0+YM= -github.com/regen-network/gocuke v0.6.2 h1:pHviZ0kKAq2U2hN2q3smKNxct6hS0mGByFMHGnWA97M= -github.com/regen-network/gocuke v0.6.2/go.mod h1:zYaqIHZobHyd0xOrHGPQjbhGJsuZ1oElx150u2o1xuk= github.com/regen-network/protobuf v1.3.3-alpha.regen.1 h1:OHEc+q5iIAXpqiqFKeLpu5NwTIkVXUs48vFMwzqpqY4= github.com/regen-network/protobuf v1.3.3-alpha.regen.1/go.mod h1:2DjTFR1HhMQhiWC5sZ4OhQ3+NtdbZ6oBDKQwq5Ou+FI= -github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= -github.com/rivo/uniseg v0.4.3 h1:utMvzDsuh3suAEnhH0RdHmoPbU648o6CvXxTx4SBMOw= -github.com/rivo/uniseg v0.4.3/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88= +github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg= github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= -github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc= -github.com/rogpeppe/go-internal v1.8.1/go.mod h1:JeRgkft04UBgHMgCIwADu4Pn6Mtm5d4nPKWu0nJ5d+o= github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs= -github.com/rogpeppe/go-internal v1.10.0 h1:TMyTOH3F/DB16zRVcYyreMH6GnZZrwQVAoYjRBZyWFQ= -github.com/rogpeppe/go-internal v1.10.0/go.mod h1:UQnix2H7Ngw/k4C5ijL5+65zddjncjaFoBhdsK/akog= +github.com/rogpeppe/go-internal v1.12.0 h1:exVL4IDcn6na9z1rAb56Vxr+CgyK3nn3O+epU5NdKM8= +github.com/rogpeppe/go-internal v1.12.0/go.mod h1:E+RYuTGaKKdloAfM02xzb0FW3Paa99yedzYV+kq4uf4= +github.com/rs/cors v1.7.0/go.mod h1:gFx+x8UowdsKA9AchylcLynDq+nNFfI8FkUZdN/jGCU= github.com/rs/cors v1.8.3 h1:O+qNyWn7Z+F9M0ILBHgMVPuB1xTOucVd5gtaYyXBpRo= github.com/rs/cors v1.8.3/go.mod h1:XyqrcTp5zjWr1wsJ8PIRZssZ8b/WMcMf71DJnit4EMU= -github.com/rs/zerolog v1.27.0 h1:1T7qCieN22GVc8S4Q2yuexzBb1EqjbgjSH9RohbMjKs= -github.com/rs/zerolog v1.27.0/go.mod h1:7frBqO0oezxmnO7GF86FY++uy8I0Tk/If5ni1G9Qc0U= +github.com/rs/xid v1.5.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg= +github.com/rs/zerolog v1.32.0 h1:keLypqrlIjaFsbmJOBdB/qvyF8KEtCWHwobLp5l/mQ0= +github.com/rs/zerolog v1.32.0/go.mod h1:/7mN4D5sKwJLZQ2b/znpjC3/GQWY/xaDXUM0kKWRHss= github.com/russross/blackfriday v1.5.2/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g= +github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= -github.com/ryancurrah/gomodguard v1.3.0 h1:q15RT/pd6UggBXVBuLps8BXRvl5GPBcwVA7BJHMLuTw= -github.com/ryancurrah/gomodguard v1.3.0/go.mod h1:ggBxb3luypPEzqVtq33ee7YSN35V28XeGnid8dnni50= -github.com/ryanrolds/sqlclosecheck v0.5.1 h1:dibWW826u0P8jNLsLN+En7+RqWWTYrjCB9fJfSfdyCU= -github.com/ryanrolds/sqlclosecheck v0.5.1/go.mod h1:2g3dUjoS6AL4huFdv6wn55WpLIDjY7ZgUR4J8HOO/XQ= -github.com/ryanuber/columnize v2.1.0+incompatible/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= -github.com/sanposhiho/wastedassign/v2 v2.0.7 h1:J+6nrY4VW+gC9xFzUc+XjPD3g3wF3je/NsJFwFK7Uxc= -github.com/sanposhiho/wastedassign/v2 v2.0.7/go.mod h1:KyZ0MWTwxxBmfwn33zh3k1dmsbF2ud9pAAGfoLfjhtI= +github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= +github.com/sagikazarmark/locafero v0.4.0 h1:HApY1R9zGo4DBgr7dqsTH/JJxLTTsOt7u6keLGt6kNQ= +github.com/sagikazarmark/locafero v0.4.0/go.mod h1:Pe1W6UlPYUk/+wc/6KFhbORCfqzgYEpgQ3O5fPuL3H4= +github.com/sagikazarmark/slog-shim v0.1.0 h1:diDBnUNK9N/354PgrxMywXnAwEr1QZcOr6gto+ugjYE= +github.com/sagikazarmark/slog-shim v0.1.0/go.mod h1:SrcSrq8aKtyuqEI1uvTDTK1arOWRIczQRv+GVI1AkeQ= +github.com/samuel/go-zookeeper v0.0.0-20190923202752-2cc03de413da/go.mod h1:gi+0XIa01GRL2eRQVjQkKGqKF3SF9vZR/HnPullcV2E= github.com/sasha-s/go-deadlock v0.3.1 h1:sqv7fDNShgjcaxkO0JNcOAlr8B9+cV5Ey/OB71efZx0= github.com/sasha-s/go-deadlock v0.3.1/go.mod h1:F73l+cr82YSh10GxyRI6qZiCgK64VaZjwesgfQ1/iLM= -github.com/sashamelentyev/interfacebloat v1.1.0 h1:xdRdJp0irL086OyW1H/RTZTr1h/tMEOsumirXcOJqAw= -github.com/sashamelentyev/interfacebloat v1.1.0/go.mod h1:+Y9yU5YdTkrNvoX0xHc84dxiN1iBi9+G8zZIhPVoNjQ= -github.com/sashamelentyev/usestdlibvars v1.24.0 h1:MKNzmXtGh5N0y74Z/CIaJh4GlB364l0K1RUT08WSWAc= -github.com/sashamelentyev/usestdlibvars v1.24.0/go.mod h1:9cYkq+gYJ+a5W2RPdhfaSCnTVUC1OQP/bSiiBhq3OZE= -github.com/schollz/closestmatch v2.1.0+incompatible/go.mod h1:RtP1ddjLong6gTkbtmuhtR2uUrrJOpYzYRvbcPAid+g= -github.com/securego/gosec/v2 v2.18.1 h1:xnnehWg7dIW8qrRPGm8ykY21zp2MueKyC99Vlcuj96I= -github.com/securego/gosec/v2 v2.18.1/go.mod h1:ZUTcKD9gAFip1lLGHWCjkoBQJyaEzePTNzjwlL2HHoE= -github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo= -github.com/shazow/go-diff v0.0.0-20160112020656-b6b7b6733b8c h1:W65qqJCIOVP4jpqPQ0YvHYKwcMEMVWIzWC5iNQQfBTU= -github.com/shazow/go-diff v0.0.0-20160112020656-b6b7b6733b8c/go.mod h1:/PevMnwAxekIXwN8qQyfc5gl2NlkB3CQlkizAbOkeBs= -github.com/shurcooL/go v0.0.0-20180423040247-9e1955d9fb6e/go.mod h1:TDJrrUr11Vxrven61rcy3hJMUqaf/CLWYhHNPmT14Lk= -github.com/shurcooL/go-goon v0.0.0-20170922171312-37c2f522c041/go.mod h1:N5mDOmsrJOB+vfqUK+7DmDyjhSLIIBnXo9lvZJj3MWQ= +github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc= github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc= github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE= github.com/sirupsen/logrus v1.6.0/go.mod h1:7uNnSEd1DgxDLC74fIahvMZmmYsHGZGEOFrfsX/uA88= +github.com/sirupsen/logrus v1.7.0/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ= github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= -github.com/sivchari/containedctx v1.0.3 h1:x+etemjbsh2fB5ewm5FeLNi5bUjK0V8n0RB+Wwfd0XE= -github.com/sivchari/containedctx v1.0.3/go.mod h1:c1RDvCbnJLtH4lLcYD/GqwiBSSf4F5Qk0xld2rBqzJ4= -github.com/sivchari/nosnakecase v1.7.0 h1:7QkpWIRMe8x25gckkFd2A5Pi6Ymo0qgr4JrhGt95do8= -github.com/sivchari/nosnakecase v1.7.0/go.mod h1:CwDzrzPea40/GB6uynrNLiorAlgFRvRbFSgJx2Gs+QY= -github.com/sivchari/tenv v1.7.1 h1:PSpuD4bu6fSmtWMxSGWcvqUUgIn7k3yOJhOIzVWn8Ak= -github.com/sivchari/tenv v1.7.1/go.mod h1:64yStXKSOxDfX47NlhVwND4dHwfZDdbp2Lyl018Icvg= github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc= github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA= -github.com/sonatard/noctx v0.0.2 h1:L7Dz4De2zDQhW8S0t+KUjY0MAQJd6SgVwhzNIc4ok00= -github.com/sonatard/noctx v0.0.2/go.mod h1:kzFz+CzWSjQ2OzIm46uJZoXuBpa2+0y3T36U18dWqIo= -github.com/sourcegraph/go-diff v0.7.0 h1:9uLlrd5T46OXs5qpp8L/MTltk0zikUGi0sNNyCpA8G0= -github.com/sourcegraph/go-diff v0.7.0/go.mod h1:iBszgVvyxdc8SFZ7gm69go2KDdt3ag071iBaWPF6cjs= +github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM= +github.com/sony/gobreaker v0.4.1/go.mod h1:ZKptC7FHNvhBz7dN2LGjPVBz2sZJmc0/PkyDJOjmxWY= +github.com/sourcegraph/conc v0.3.0 h1:OQTbbt6P72L20UqAkXXuLOj79LfEanQ+YQFNpLA9ySo= +github.com/sourcegraph/conc v0.3.0/go.mod h1:Sdozi7LEKbFPqYX2/J+iBAM6HpqSLTASQIKqDmF7Mt0= github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= github.com/spaolacci/murmur3 v1.1.0 h1:7c1g84S4BPRrfL5Xrdp6fOJ206sU9y293DDHaoy0bLI= github.com/spaolacci/murmur3 v1.1.0/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= github.com/spf13/afero v1.1.2/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B0CQ= -github.com/spf13/afero v1.9.3 h1:41FoI0fD7OR7mGcKE/aOiLkGreyf8ifIOQmJANWogMk= -github.com/spf13/afero v1.9.3/go.mod h1:iUV7ddyEEZPO5gA3zD4fJt6iStLlL+Lg4m2cihcDf8Y= +github.com/spf13/afero v1.11.0 h1:WJQKhtpdm3v2IzqG8VMqrr6Rf3UYpEF239Jy9wNepM8= +github.com/spf13/afero v1.11.0/go.mod h1:GH9Y3pIexgf1MTIWtNGyogA5MwRIDXGUr+hbWNoBjkY= github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= -github.com/spf13/cast v1.5.0 h1:rj3WzYc11XZaIZMPKmwP96zkFEnnAmV8s6XbB2aY32w= -github.com/spf13/cast v1.5.0/go.mod h1:SpXXQ5YoyJw6s3/6cMTQuxvgRl3PCJiyaX9p6b155UU= +github.com/spf13/cast v1.6.0 h1:GEiTHELF+vaR5dhz3VqZfFSzZjYbgeKDpBxQVS4GYJ0= +github.com/spf13/cast v1.6.0/go.mod h1:ancEpBxwJDODSW/UG4rDrAqiKolqNNh2DX3mk86cAdo= +github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ= github.com/spf13/cobra v0.0.5/go.mod h1:3K3wKZymM7VvHMDS9+Akkh4K60UwM26emMESw8tLCHU= -github.com/spf13/cobra v1.7.0 h1:hyqWnYt1ZQShIddO5kBpj3vu05/++x6tJ6dg8EC572I= -github.com/spf13/cobra v1.7.0/go.mod h1:uLxZILRyS/50WlhOIKD7W6V5bgeIt+4sICxh6uRMrb0= +github.com/spf13/cobra v1.8.1 h1:e5/vxKd/rZsfSJMUX1agtjeTDf+qv1/JdBF8gg5k9ZM= +github.com/spf13/cobra v1.8.1/go.mod h1:wHxEcudfqmLYa8iTfL+OuZPbBZkmvliBWKIezN3kD9Y= github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo= -github.com/spf13/jwalterweatherman v1.1.0 h1:ue6voC5bR5F8YxI5S67j9i582FU4Qvo2bmqnqMYADFk= -github.com/spf13/jwalterweatherman v1.1.0/go.mod h1:aNWZUN0dPAAO/Ljvb5BEdw96iTZ0EXowPYD95IqWIGo= +github.com/spf13/pflag v1.0.1/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= github.com/spf13/viper v1.3.2/go.mod h1:ZiWeW+zYFKm7srdB9IoDzzZXaJaI5eL9QjNiN/DMA2s= -github.com/spf13/viper v1.15.0 h1:js3yy885G8xwJa6iOISGFwd+qlUo5AvyXb7CiihdtiU= -github.com/spf13/viper v1.15.0/go.mod h1:fFcTBJxvhhzSJiZy8n+PeW6t8l+KeT/uTARa0jHOQLA= -github.com/ssgreg/nlreturn/v2 v2.2.1 h1:X4XDI7jstt3ySqGU86YGAURbxw3oTDPK9sPEi6YEwQ0= -github.com/ssgreg/nlreturn/v2 v2.2.1/go.mod h1:E/iiPB78hV7Szg2YfRgyIrk1AD6JVMTRkkxBiELzh2I= -github.com/stbenjam/no-sprintf-host-port v0.1.1 h1:tYugd/yrm1O0dV+ThCbaKZh195Dfm07ysF0U6JQXczc= -github.com/stbenjam/no-sprintf-host-port v0.1.1/go.mod h1:TLhvtIvONRzdmkFiio4O8LHsN9N74I+PhRquPsxpL0I= +github.com/spf13/viper v1.18.2 h1:LUXCnvUvSM6FXAsj6nnfc8Q2tp1dIgUfY9Kc8GsSOiQ= +github.com/spf13/viper v1.18.2/go.mod h1:EKmWIqdnk5lOcmR72yw6hS+8OPYcwD0jteitLMVB+yk= +github.com/streadway/amqp v0.0.0-20190404075320-75d898a42a94/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw= +github.com/streadway/amqp v0.0.0-20190827072141-edfb9018d271/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw= +github.com/streadway/handy v0.0.0-20190108123426-d5acb3125c2a/go.mod h1:qNTQ5P5JnDBl6z3cMAg/SywNDC5ABu5ApDIw6lUbRmI= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= -github.com/stretchr/objx v0.5.0 h1:1zr/of2m5FGMsad5YfcqgdqdWrIhu+EBEJRhR1U7z/c= github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= +github.com/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY= +github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA= github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= @@ -877,508 +690,265 @@ github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5 github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1FQKckRals= github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= -github.com/stretchr/testify v1.8.3/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= -github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= -github.com/subosito/gotenv v1.4.2 h1:X1TuBLAMDFbaTAChgCBLu3DU3UPyELpnF2jjJ2cz/S8= -github.com/subosito/gotenv v1.4.2/go.mod h1:ayKnFf/c6rvx/2iiLrJUk1e6plDbT3edrFNGqEflhK0= +github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= +github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= +github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8= +github.com/subosito/gotenv v1.6.0/go.mod h1:Dk4QP5c2W3ibzajGcXpNraDfq2IrhjMIvMSWPKKo0FU= github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 h1:epCh84lMvA70Z7CTTCmYQn2CKbY8j86K7/FAIr141uY= github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7/go.mod h1:q4W45IWZaF22tdD+VEXcAWRA037jwmWEB5VWYORlTpc= -github.com/t-yuki/gocover-cobertura v0.0.0-20180217150009-aaee18c8195c h1:+aPplBwWcHBo6q9xrfWdMrT9o4kltkmmvpemgIjep/8= -github.com/t-yuki/gocover-cobertura v0.0.0-20180217150009-aaee18c8195c/go.mod h1:SbErYREK7xXdsRiigaQiQkI9McGRzYMvlKYaP3Nimdk= -github.com/tdakkota/asciicheck v0.2.0 h1:o8jvnUANo0qXtnslk2d3nMKTFNlOnJjRrNcj0j9qkHM= -github.com/tdakkota/asciicheck v0.2.0/go.mod h1:Qb7Y9EgjCLJGup51gDHFzbI08/gbGhL/UVhYIPWG2rg= -github.com/tecbot/gorocksdb v0.0.0-20191217155057-f0fad39f321c h1:g+WoO5jjkqGAzHWCjJB1zZfXPIAaDpzXIEJ0eS6B5Ok= -github.com/tecbot/gorocksdb v0.0.0-20191217155057-f0fad39f321c/go.mod h1:ahpPrc7HpcfEWDQRZEmnXMzHY03mLDYMCxeDzy46i+8= github.com/tendermint/go-amino v0.16.0 h1:GyhmgQKvqF82e2oZeuMSp9JTN0N09emoSZlb2lyGa2E= github.com/tendermint/go-amino v0.16.0/go.mod h1:TQU0M1i/ImAo+tYpZi73AU3V/dKeCoMC9Sphe2ZwGME= -github.com/tendermint/tm-db v0.6.7 h1:fE00Cbl0jayAoqlExN6oyQJ7fR/ZtoVOmvPJ//+shu8= -github.com/tendermint/tm-db v0.6.7/go.mod h1:byQDzFkZV1syXr/ReXS808NxA2xvyuuVgXOJ/088L6I= -github.com/tenntenn/modver v1.0.1 h1:2klLppGhDgzJrScMpkj9Ujy3rXPUspSjAcev9tSEBgA= -github.com/tenntenn/modver v1.0.1/go.mod h1:bePIyQPb7UeioSRkw3Q0XeMhYZSMx9B8ePqg6SAMGH0= -github.com/tenntenn/text/transform v0.0.0-20200319021203-7eef512accb3 h1:f+jULpRQGxTSkNYKJ51yaw6ChIqO+Je8UqsTKN/cDag= -github.com/tenntenn/text/transform v0.0.0-20200319021203-7eef512accb3/go.mod h1:ON8b8w4BN/kE1EOhwT0o+d62W65a6aPw1nouo9LMgyY= -github.com/tetafro/godot v1.4.15 h1:QzdIs+XB8q+U1WmQEWKHQbKmCw06QuQM7gLx/dky2RM= -github.com/tetafro/godot v1.4.15/go.mod h1:2oVxTBSftRTh4+MVfUaUXR6bn2GDXCaMcOG4Dk3rfio= -github.com/tidwall/btree v1.5.0 h1:iV0yVY/frd7r6qGBXfEYs7DH0gTDgrKTrDjS7xt/IyQ= -github.com/tidwall/btree v1.5.0/go.mod h1:LGm8L/DZjPLmeWGjv5kFrY8dL4uVhMmzmmLYmsObdKE= -github.com/timakin/bodyclose v0.0.0-20230421092635-574207250966 h1:quvGphlmUVU+nhpFa4gg4yJyTRJ13reZMDHrKwYw53M= -github.com/timakin/bodyclose v0.0.0-20230421092635-574207250966/go.mod h1:27bSVNWSBOHm+qRp1T9qzaIpsWEP6TbUnei/43HK+PQ= -github.com/timonwong/loggercheck v0.9.4 h1:HKKhqrjcVj8sxL7K77beXh0adEm6DLjV/QOGeMXEVi4= -github.com/timonwong/loggercheck v0.9.4/go.mod h1:caz4zlPcgvpEkXgVnAJGowHAMW2NwHaNlpS8xDbVhTg= -github.com/tomarrell/wrapcheck/v2 v2.8.1 h1:HxSqDSN0sAt0yJYsrcYVoEeyM4aI9yAm3KQpIXDJRhQ= -github.com/tomarrell/wrapcheck/v2 v2.8.1/go.mod h1:/n2Q3NZ4XFT50ho6Hbxg+RV1uyo2Uow/Vdm9NQcl5SE= -github.com/tommy-muehle/go-mnd/v2 v2.5.1 h1:NowYhSdyE/1zwK9QCLeRb6USWdoif80Ie+v+yU8u1Zw= -github.com/tommy-muehle/go-mnd/v2 v2.5.1/go.mod h1:WsUAkMJMYww6l/ufffCD3m+P7LEvr8TnZn9lwVDlgzw= +github.com/tidwall/btree v1.7.0 h1:L1fkJH/AuEh5zBnnBbmTwQ5Lt+bRJ5A8EWecslvo9iI= +github.com/tidwall/btree v1.7.0/go.mod h1:twD9XRA5jj9VUQGELzDO4HPQTNJsoWWfYEL+EUQ2cKY= +github.com/tmc/grpc-websocket-proxy v0.0.0-20170815181823-89b8d40f7ca8/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= github.com/tv42/httpunix v0.0.0-20150427012821-b75d8614f926/go.mod h1:9ESjWnEqriFuLhtthL60Sar/7RFoluCcXsuvEwTV5KM= -github.com/ugorji/go v1.1.4/go.mod h1:uQMGLiO92mf5W77hV/PUCpI3pbzQx3CRekS0kk+RGrc= +github.com/ugorji/go v1.1.7 h1:/68gy2h+1mWMrwZFeD1kQialdSzAb432dtpeJ42ovdo= github.com/ugorji/go v1.1.7/go.mod h1:kZn38zHttfInRq0xu/PH0az30d+z6vm202qpg1oXVMw= github.com/ugorji/go/codec v0.0.0-20181204163529-d75b2dcb6bc8/go.mod h1:VFNgLljTbGfSG7qAOspJ7OScBnGdDN/yBr0sguwnwf0= github.com/ugorji/go/codec v1.1.7/go.mod h1:Ax+UKWsSmolVDwsd+7N3ZtXu+yMGCf907BLYF3GoBXY= -github.com/ultraware/funlen v0.1.0 h1:BuqclbkY6pO+cvxoq7OsktIXZpgBSkYTQtmwhAK81vI= -github.com/ultraware/funlen v0.1.0/go.mod h1:XJqmOQja6DpxarLj6Jj1U7JuoS8PvL4nEqDaQhy22p4= -github.com/ultraware/whitespace v0.0.5 h1:hh+/cpIcopyMYbZNVov9iSxvJU3OYQg78Sfaqzi/CzI= -github.com/ultraware/whitespace v0.0.5/go.mod h1:aVMh/gQve5Maj9hQ/hg+F75lr/X5A89uZnzAmWSineA= -github.com/urfave/negroni v1.0.0/go.mod h1:Meg73S6kFm/4PpbYdq35yYWoCZ9mS/YSx+lKnmiohz4= -github.com/uudashr/gocognit v1.1.2 h1:l6BAEKJqQH2UpKAPKdMfZf5kE4W/2xk8pfU1OVLvniI= -github.com/uudashr/gocognit v1.1.2/go.mod h1:aAVdLURqcanke8h3vg35BC++eseDm66Z7KmchI5et4k= -github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc= -github.com/valyala/fasthttp v1.6.0/go.mod h1:FstJa9V+Pj9vQ7OJie2qMHdwemEDaDiSdBnvPM1Su9w= -github.com/valyala/fasttemplate v1.0.1/go.mod h1:UQGH1tvbgY+Nz5t2n7tXsz52dQxojPUpymEIMZ47gx8= -github.com/valyala/fasttemplate v1.2.1/go.mod h1:KHLXt3tVN2HBp8eijSv/kGJopbvo7S+qRAEEKiv+SiQ= -github.com/valyala/tcplisten v0.0.0-20161114210144-ceec8f93295a/go.mod h1:v3UYOV9WzVtRmSR+PDvWpU/qWl4Wa5LApYYX4ZtKbio= -github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f/go.mod h1:N2zxlSyiKSe5eX1tZViRH5QA0qijqEDrYZiPEAiq3wU= -github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415/go.mod h1:GwrjFmJcFw6At/Gs6z4yjiIwzuJ1/+UwLxMQDVQXShQ= -github.com/xeipuuv/gojsonschema v1.2.0/go.mod h1:anYRn/JVcOK2ZgGU+IjEV4nwlhoK5sQluxsYJ78Id3Y= -github.com/xen0n/gosmopolitan v1.2.2 h1:/p2KTnMzwRexIW8GlKawsTWOxn7UHA+jCMF/V8HHtvU= -github.com/xen0n/gosmopolitan v1.2.2/go.mod h1:7XX7Mj61uLYrj0qmeN0zi7XDon9JRAEhYQqAPLVNTeg= +github.com/ugorji/go/codec v1.2.7 h1:YPXUKf7fYbp/y8xloBqZOw2qaVggbfwMlI8WM3wZUJ0= +github.com/ugorji/go/codec v1.2.7/go.mod h1:WGN1fab3R1fzQlVQTkfxVtIBhWDRqOviHU95kRgeqEY= +github.com/urfave/cli v1.20.0/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA= +github.com/urfave/cli v1.22.1/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= +github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU= github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:aYKd//L2LvnjZzWKhF00oedf4jCCReLcmhLdhm1A27Q= -github.com/yagipy/maintidx v1.0.0 h1:h5NvIsCz+nRDapQ0exNv4aJ0yXSI0420omVANTv3GJM= -github.com/yagipy/maintidx v1.0.0/go.mod h1:0qNf/I/CCZXSMhsRsrEPDZ+DkekpKLXAJfsTACwgXLk= -github.com/yalp/jsonpath v0.0.0-20180802001716-5cc68e5049a0/go.mod h1:/LWChgwKmvncFJFHJ7Gvn9wZArjbV5/FppcK2fKk/tI= -github.com/yeya24/promlinter v0.2.0 h1:xFKDQ82orCU5jQujdaD8stOHiv8UN68BSdn2a8u8Y3o= -github.com/yeya24/promlinter v0.2.0/go.mod h1:u54lkmBOZrpEbQQ6gox2zWKKLKu2SGe+2KOiextY+IA= -github.com/ykadowak/zerologlint v0.1.3 h1:TLy1dTW3Nuc+YE3bYRPToG1Q9Ej78b5UUN6bjbGdxPE= -github.com/ykadowak/zerologlint v0.1.3/go.mod h1:KaUskqF3e/v59oPmdq1U1DnKcuHokl2/K1U4pmIELKg= -github.com/yudai/gojsondiff v1.0.0/go.mod h1:AY32+k2cwILAkW1fbgxQ5mUmMiZFgLIV+FBNExI05xg= -github.com/yudai/golcs v0.0.0-20170316035057-ecda9a501e82/go.mod h1:lgjkn3NuSvDfVJdfcVVdX+jpBxNmX4rDAzaS45IcYoM= -github.com/yudai/pp v2.0.1+incompatible/go.mod h1:PuxR/8QJ7cyCkFp/aUDS+JY727OFEZkTdatxwunjIkc= -github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= -github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= -github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= -github.com/yuin/goldmark v1.4.1/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= -github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= -github.com/zondax/hid v0.9.1 h1:gQe66rtmyZ8VeGFcOpbuH3r7erYtNEAezCAYu8LdkJo= -github.com/zondax/hid v0.9.1/go.mod h1:l5wttcP0jwtdLjqjMMWFVEE7d1zO0jvSPA9OPZxWpEM= -github.com/zondax/ledger-go v0.14.1 h1:Pip65OOl4iJ84WTpA4BKChvOufMhhbxED3BaihoZN4c= -github.com/zondax/ledger-go v0.14.1/go.mod h1:fZ3Dqg6qcdXWSOJFKMG8GCTnD7slO/RL2feOQv8K320= -gitlab.com/bosi/decorder v0.4.1 h1:VdsdfxhstabyhZovHafFw+9eJ6eU0d2CkFNJcZz/NU4= -gitlab.com/bosi/decorder v0.4.1/go.mod h1:jecSqWUew6Yle1pCr2eLWTensJMmsxHsBwt+PVbkAqA= -go-simpler.org/assert v0.6.0 h1:QxSrXa4oRuo/1eHMXSBFHKvJIpWABayzKldqZyugG7E= -go-simpler.org/assert v0.6.0/go.mod h1:74Eqh5eI6vCK6Y5l3PI8ZYFXG4Sa+tkr70OIPJAUr28= -go-simpler.org/sloglint v0.1.2 h1:IjdhF8NPxyn0Ckn2+fuIof7ntSnVUAqBFcQRrnG9AiM= -go-simpler.org/sloglint v0.1.2/go.mod h1:2LL+QImPfTslD5muNPydAEYmpXIj6o/WYcqnJjLi4o4= -go.etcd.io/bbolt v1.3.7 h1:j+zJOnnEjF/kyHlDDgGnVL/AIqIJPq8UoB2GSNfkUfQ= -go.etcd.io/bbolt v1.3.7/go.mod h1:N9Mkw9X8x5fupy0IKsmuqVtoGDyxsaDlbk4Rd05IAQw= -go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= -go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= +github.com/zondax/hid v0.9.2 h1:WCJFnEDMiqGF64nlZz28E9qLVZ0KSJ7xpc5DLEyma2U= +github.com/zondax/hid v0.9.2/go.mod h1:l5wttcP0jwtdLjqjMMWFVEE7d1zO0jvSPA9OPZxWpEM= +github.com/zondax/ledger-go v0.14.3 h1:wEpJt2CEcBJ428md/5MgSLsXLBos98sBOyxNmCjfUCw= +github.com/zondax/ledger-go v0.14.3/go.mod h1:IKKaoxupuB43g4NxeQmbLXv7T9AlQyie1UpHb342ycI= +go.etcd.io/bbolt v1.3.3/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= +go.etcd.io/bbolt v1.4.0-alpha.0.0.20240404170359-43604f3112c5 h1:qxen9oVGzDdIRP6ejyAJc760RwW4SnVDiTYTzwnXuxo= +go.etcd.io/bbolt v1.4.0-alpha.0.0.20240404170359-43604f3112c5/go.mod h1:eW0HG9/oHQhvRCvb1/pIXW4cOvtDqeQK+XSi3TnwaXY= +go.etcd.io/etcd v0.0.0-20191023171146-3cf2f69b5738/go.mod h1:dnLIgRNXwCJa5e+c6mIZCrds/GIG4ncV9HhK5PX7jPg= +go.opencensus.io v0.20.1/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk= +go.opencensus.io v0.20.2/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk= go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= -go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= -go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= -go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk= -go.tmz.dev/musttag v0.7.2 h1:1J6S9ipDbalBSODNT5jCep8dhZyMr4ttnjQagmGYR5s= -go.tmz.dev/musttag v0.7.2/go.mod h1:m6q5NiiSKMnQYokefa2xGoyoXnrswCbJ0AWYzf4Zs28= +go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqeYNgFYFoEGnI= +go.uber.org/atomic v1.3.2/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= -go.uber.org/atomic v1.10.0 h1:9qC72Qh0+3MqyJbAn8YU5xVq1frD8bn3JtD2oXtafVQ= -go.uber.org/atomic v1.10.0/go.mod h1:LUxbIzbOniOlMKjJjyPfpl4v+PKK2cNJn91OQbhoJI0= -go.uber.org/goleak v1.1.11 h1:wy28qYRKZgnJTxGxvye5/wgWr1EKjmUDGYox5mGlRlI= -go.uber.org/goleak v1.1.11/go.mod h1:cwTWslyiVhfpKIDGSZEM2HlOvcqm+tG4zioyIeLoqMQ= +go.uber.org/atomic v1.5.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ= +go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= +go.uber.org/goleak v1.1.10/go.mod h1:8a7PlsEVH3e/a/GLqe5IIrQx6GzcnRmZEufDUTk4A7A= go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0= +go.uber.org/multierr v1.3.0/go.mod h1:VgVr7evmIr6uPjLBxg28wmKNXyqE9akIJ5XnfpiKl+4= +go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU= go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0= go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y= +go.uber.org/tools v0.0.0-20190618225709-2cfd321de3ee/go.mod h1:vJERXedbb3MVM5f9Ejo0C68/HhF8uaILCdgjnY+goOA= go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= -go.uber.org/zap v1.24.0 h1:FiJd5l1UOLj0wCgbSE0rwwXHzEdAZS6hiiSnxJN/D60= -go.uber.org/zap v1.24.0/go.mod h1:2kMP+WWQ8aoFoedH3T2sq6iJ2yDWpHbP0f6MQbS9Gkg= +go.uber.org/zap v1.13.0/go.mod h1:zwrFLgMcdUuIBviXEYEH1YKNaOBnKXsx2IPda5bBwHM= +go.uber.org/zap v1.18.1/go.mod h1:xg/QME4nWcxGxrpdeYfq7UvYrLh66cuVKdrbD1XF/NI= golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= +golang.org/x/crypto v0.0.0-20181029021203-45a5f77698d3/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20181203042331-505ab145d0a9/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20191206172530-e9b2fee46413/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20191227163750-53104e6ec876/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200728195943-123391ffb6de/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= -golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= -golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= -golang.org/x/crypto v0.0.0-20211108221036-ceb1ce70b4fa/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= -golang.org/x/crypto v0.1.0/go.mod h1:RecgLatLF4+eUMCP1PoPZQb+cVrJcOPbHkTkbkB9sbw= -golang.org/x/crypto v0.14.0 h1:wBqGXzWJW6m1XrIKlAH0Hs1JJ7+9KBwnIO8v66Q9cHc= -golang.org/x/crypto v0.14.0/go.mod h1:MVFd36DqK4CsrnJYDkBA3VC4m2GkXAM0PvzMCn4JQf4= +golang.org/x/crypto v0.24.0 h1:mnl8DM0o513X8fdIkmyFE/5hTYxbwYOjDS/+rK6qpRI= +golang.org/x/crypto v0.24.0/go.mod h1:Z1PMYSOR5nyMcyAVAIQSKCDwalqy85Aqn1x3Ws4L5DM= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= -golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= -golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek= -golang.org/x/exp v0.0.0-20191030013958-a1ab85dbe136/go.mod h1:JXzH8nQsPlswgeRAPE3MuO9GYsAcnJvJ4vnMwN/5qkY= -golang.org/x/exp v0.0.0-20191129062945-2f5052295587/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= -golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= -golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= -golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM= -golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU= -golang.org/x/exp v0.0.0-20230515195305-f3d0a9c9a5cc h1:mCRnTeVUjcrhlRmO0VK8a6k6Rrf6TF9htwo2pJVSjIU= -golang.org/x/exp v0.0.0-20230515195305-f3d0a9c9a5cc/go.mod h1:V1LtkGg67GoY2N1AnLN78QLrzxkLyJw7RJb1gzOOz9w= -golang.org/x/exp/typeparams v0.0.0-20220428152302-39d4317da171/go.mod h1:AbB0pIl9nAr9wVwH+Z2ZpaocVmF5I4GyWCDIsVjR0bk= -golang.org/x/exp/typeparams v0.0.0-20230203172020-98cc5a0785f9/go.mod h1:AbB0pIl9nAr9wVwH+Z2ZpaocVmF5I4GyWCDIsVjR0bk= -golang.org/x/exp/typeparams v0.0.0-20230307190834-24139beb5833 h1:jWGQJV4niP+CCmFW9ekjA9Zx8vYORzOUH2/Nl5WPuLQ= -golang.org/x/exp/typeparams v0.0.0-20230307190834-24139beb5833/go.mod h1:AbB0pIl9nAr9wVwH+Z2ZpaocVmF5I4GyWCDIsVjR0bk= +golang.org/x/exp v0.0.0-20200331195152-e8c3332aa8e5/go.mod h1:4M0jN8W1tt0AVLNr8HDosyJCDCDuyL9N9+3m7wDWgKw= +golang.org/x/exp v0.0.0-20240404231335-c0f41cb1a7a0 h1:985EYyeCOxTpcgOTJpflJUwOeEz0CQOdPt73OzpE9F8= +golang.org/x/exp v0.0.0-20240404231335-c0f41cb1a7a0/go.mod h1:/lliqkxwWAhPjf5oSOIJup2XcqJaw8RGS6k3TGEc7GI= golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= +golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/lint v0.0.0-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs= -golang.org/x/lint v0.0.0-20200130185559-910be7a94367/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= -golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= -golang.org/x/lint v0.0.0-20201208152925-83fdc39ff7b5/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= -golang.org/x/lint v0.0.0-20210508222113-6edffad5e616/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= -golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= -golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY= golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.5.1/go.mod h1:5OXOZSfqPIIbmVBIIKWRFfZjPR0E5r58TLhUjH0a2Ro= -golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3/go.mod h1:3p9vT2HGsQu2K1YbXdKPJLVgG5VJdoTa1poYQBtP1AY= -golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= -golang.org/x/mod v0.6.0/go.mod h1:4mET923SAdbXp2ki8ey+zGs1SLqsuM2Y0uvdZR/fUNI= -golang.org/x/mod v0.7.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= -golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= -golang.org/x/mod v0.13.0 h1:I/DsJXRlw/8l/0c24sM9yb0T4z9liZTduXvdAWYiysY= -golang.org/x/mod v0.13.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= +golang.org/x/mod v0.17.0 h1:zY54UmvipHiNd+pm+m0x9KhZ9hl1/7QNMyxXbc6ICqA= +golang.org/x/mod v0.17.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20181023162649-9b4f9f5ad519/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20181201002055-351d144fa1fc/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20181220203305-927f97764cc3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190125091013-d26f9f9a57f3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190327091125-710a502c58a2/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20190827160401-ba9fcec4b297/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200222125558-5a598a2470a0/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20190813141303-74dc4d7220e7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200301022130-244492dfa37a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200501053045-e0ff5e5a1de5/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200506145744-7e3656a0809f/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200513185701-a91f0712d120/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200421231249-e086a090c8fd/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= golang.org/x/net v0.0.0-20200520004742-59133d7f0dd7/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= -golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20200813134508-3edf25e44fcc/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.0.0-20201031054903-ff519b6c9102/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.0.0-20201209123823-ac852fbbde11/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= -golang.org/x/net v0.0.0-20201224014010-6772e930b67b/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= -golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= -golang.org/x/net v0.0.0-20210525063256-abc453219eb5/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20211008194852-3b03d305991f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.1.0/go.mod h1:Cx3nUiGt4eDBEyega/BKRp+/AlGL8hYe7U9odMt2Cco= -golang.org/x/net v0.2.0/go.mod h1:KqCZLdyyvdV855qA2rE3GC2aiw5xGR5TEjj8smXukLY= -golang.org/x/net v0.5.0/go.mod h1:DivGGAXEgPSlEBzxGzZI+ZLohi+xUj054jfeKui00ws= -golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= -golang.org/x/net v0.17.0 h1:pVaXccu2ozPjCXewfr1S7xza/zcXTity9cCdXQYSjIM= -golang.org/x/net v0.17.0/go.mod h1:NxSsAGuq816PNPmqtQdLE42eU2Fs7NoRIZrHJAlaCOE= +golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= +golang.org/x/net v0.26.0 h1:soB7SVo0PWrY4vPW/+ay0jKDNScG2X9wFeYlXIvJsOQ= +golang.org/x/net v0.26.0/go.mod h1:5YKkiSynbBIh3p6iOc/vibscux0x38BZDkn8sCUPxHE= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.0.0-20200902213428-5d25da1a8d43/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20201109201403-9fd604954f58/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20201208152858-08078c50e5b5/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20210218202405-ba52d332ba99/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20210514164344-f6687ab2804c/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.4.0 h1:zxkM55ReGkDlKSM+Fu41A+zmbZuaPVbGMzvvdUPznYQ= -golang.org/x/sync v0.4.0/go.mod h1:FU7BRWz2tNW+3quACPkgCx/L+uEAv1htQ0V83Z9Rj+Y= +golang.org/x/sync v0.7.0 h1:YsImfSBoP9QPYL0xyKJPq0gcaJdG3rInoqxTWbfQu9M= +golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20181026203630-95b1ffbd15a5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20181107165924-66b7b1311ac8/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20181122145206-62eef0e2fa9b/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20181205085412-a5c9d58dba9a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190130150945-aca44879d564/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190626221950-04f50cda93cb/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190826190057-c7b8b68b1456/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190904154756-749cb33beabd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191220142924-d4481acd189f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200106162015-b016eb3dc98e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200331124033-c3d80250170d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200501052902-10377860bb8e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200511232937-7e40ca221e25/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200515095857-1151b9dac4a9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200420163511-1957bb5e6d1f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200519105757-fe76b779f299/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200523222454-059865788121/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200615200032-f1bc736245b1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200814200057-3d37ad5750ed/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200905004654-be1d3432aa8f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20201201145000-ef89a241ccb3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210104204734-6f8348627aad/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210225134936-a50acf3fe073/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210403161142-5e06dd20ab57/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210423185535-09eb48e85fd7/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210603081109-ebe580a85c40/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210809222454-d867a43fc93e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210819135213-f52c844e1c1c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20211007075335-d3039528d8ac/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20211019181941-9d821ace8654/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20211105183446-c75c47738b0c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220114195835-da31bd327af9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220209214540-3681064d5158/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220702020025-31831981b65f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20211025201205-69cdffdb9359/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220315194320-039c03cc5b86/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220908164124-27713097b956/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20221010170243-090e33056c14/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.4.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.13.0 h1:Af8nKPmuFypiUBjVoU9V20FiaFXOcuZI21p0ycVYYGE= -golang.org/x/sys v0.13.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.21.0 h1:rF+pYz3DAGSQAxAu1CbC7catZg4ebC4UIeIhKxBZvws= +golang.org/x/sys v0.21.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= -golang.org/x/term v0.1.0/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= -golang.org/x/term v0.2.0/go.mod h1:TVmDHMZPmdnySmBfhjOoOdhjzdE1h4u1VwSiw2l1Nuc= -golang.org/x/term v0.4.0/go.mod h1:9P2UbLfCdcvo3p/nzKvsmas4TnlujnuoV9hGgYzW1lQ= -golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= -golang.org/x/term v0.13.0 h1:bb+I9cTfFazGW51MZqBVmZy7+JEJMouUHTUSKVQLBek= -golang.org/x/term v0.13.0/go.mod h1:LTmsnFJwVN6bCy1rVCoS+qHT1HhALEFxKncY3WNNh4U= -golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/term v0.21.0 h1:WVXCp+/EBEHOj53Rvu+7KiT/iElMrO8ACK16SMZ3jaA= +golang.org/x/term v0.21.0/go.mod h1:ooXLefLobQVslOqselCNF4SxFAaoS6KujMbsGzSDmX0= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= -golang.org/x/text v0.6.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= -golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= -golang.org/x/text v0.13.0 h1:ablQoSUd0tRdKxZewP80B+BaqeKJuVhuRxj/dkrun3k= -golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= -golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/text v0.16.0 h1:a94ExnEXNtEwYLGJSIUxnWoxoRz/ZcCsV63ROupILh4= +golang.org/x/text v0.16.0/go.mod h1:GhwF1Be+LQoKShO3cGOHzqOgRrGaYc9AvblQOmPVHnI= +golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/time v0.0.0-20201208040808-7e3f01d25324/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/tools v0.0.0-20180828015842-6cd1fcedba52/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20181221001348-537d06c36207/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190321232350-e250d351ecad/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190327201419-c70d86f8b7cf/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190328211700-ab21143f2384/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= -golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= -golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= -golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= -golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20190910044552-dd2b5c81c578/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191029041327-9cc4af7d6b2c/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191029190741-b9c20aec41a5/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191108193012-7d206e10da11/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191216173652-a0e659d51361/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200117161641-43d50277825c/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200122220014-bf1340f18c4a/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200204074204-1cc6d1ef6c74/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200103221440-774c71fcf114/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200207183749-b753a1ba74fa/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200212150539-ea181f53ac56/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200224181240-023911ca70b2/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200227222343-706bc42d1f0d/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200304193943-95d2e580d8eb/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= -golang.org/x/tools v0.0.0-20200312045724-11d5b4c81c7d/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= -golang.org/x/tools v0.0.0-20200324003944-a576cf524670/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8= -golang.org/x/tools v0.0.0-20200329025819-fd4102a86c65/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8= -golang.org/x/tools v0.0.0-20200331025713-a30bf2db82d4/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8= -golang.org/x/tools v0.0.0-20200501065659-ab2804fb9c9d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200512131952-2bc93b1c0c88/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200515010526-7d3b6ebf133d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200618134242-20370b0cb4b2/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200724022722-7017fd6b1305/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= -golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= -golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= -golang.org/x/tools v0.0.0-20200820010801-b793a1359eac/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= -golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= -golang.org/x/tools v0.0.0-20200904185747-39188db58858/go.mod h1:Cj7w3i3Rnn0Xh82ur9kSqwfTHTeVxaDqrfMjpcNT6bE= -golang.org/x/tools v0.0.0-20201001104356-43ebab892c4c/go.mod h1:z6u4i615ZeAfBE4XtMziQW1fSVJXACjjbWkB/mvPzlU= -golang.org/x/tools v0.0.0-20201023174141-c8cfbd0f21e6/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20201110124207-079ba7bd75cd/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20201201161351-ac6f37ff4c2a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20201208233053-a543418bbed2/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20210105154028-b0ab187a4818/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20210108195828-e2f9c7f1fc8e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0= -golang.org/x/tools v0.1.1-0.20210205202024-ef80cdb6ec6d/go.mod h1:9bzcO0MWcOuT0tm1iBGzDVPshzfwoVvREIui8C+MHqU= -golang.org/x/tools v0.1.1-0.20210302220138-2ac05c832e1a/go.mod h1:9bzcO0MWcOuT0tm1iBGzDVPshzfwoVvREIui8C+MHqU= -golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= -golang.org/x/tools v0.1.3/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= -golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= -golang.org/x/tools v0.1.9/go.mod h1:nABZi5QlRsZVlzPpHl034qft6wpY4eDcsTt5AaioBiU= -golang.org/x/tools v0.1.10/go.mod h1:Uh6Zz+xoGYZom868N8YTex3t7RhtHDBrE8Gzo9bV56E= -golang.org/x/tools v0.1.11/go.mod h1:SgwaegtQh8clINPpECJMqnxLv9I09HLqnW3RMqW0CA4= -golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= -golang.org/x/tools v0.2.0/go.mod h1:y4OqIKeOV/fWJetJ8bXPU1sEVniLMIyDAZWeHdV+NTA= -golang.org/x/tools v0.3.0/go.mod h1:/rWhSS2+zyEVwoJf8YAX6L2f0ntZ7Kn/mGgAWcipA5k= -golang.org/x/tools v0.5.0/go.mod h1:N+Kgy78s5I24c24dU8OfWNEotWjutIs8SnJvn5IDq+k= -golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= -golang.org/x/tools v0.14.0 h1:jvNa2pY0M4r62jkRQ6RwEZZyPcymeL9XZMLBbV7U2nc= -golang.org/x/tools v0.14.0/go.mod h1:uYBEerGOWcJyEORxN+Ek8+TT266gXkNlHdJBwexUsBg= +golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d h1:vU5i/LfpvrRCpgM/VPfJLg5KjxD3E+hfT1SH+d9zLwg= +golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d/go.mod h1:aiJjzUbINMkxbQROHiO6hDPo2LHcIPhhQsa9DLh0yGk= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= -google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= -google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= -google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= -google.golang.org/api v0.13.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= -google.golang.org/api v0.14.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= -google.golang.org/api v0.15.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= -google.golang.org/api v0.17.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= -google.golang.org/api v0.18.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= -google.golang.org/api v0.19.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= -google.golang.org/api v0.20.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= -google.golang.org/api v0.22.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= -google.golang.org/api v0.24.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= -google.golang.org/api v0.28.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= -google.golang.org/api v0.29.0/go.mod h1:Lcubydp8VUV7KeIHD9z2Bys/sm/vGKnG1UHuDBSrHWM= -google.golang.org/api v0.30.0/go.mod h1:QGmEvQ87FHZNiUVJkT14jQNYJ4ZJjdRF23ZXz5138Fc= -google.golang.org/api v0.35.0/go.mod h1:/XrVsuzM0rZmrsbjJutiuftIzeuTQcEeaYcSk/mQ1dg= -google.golang.org/api v0.36.0/go.mod h1:+z5ficQTmoYpPn8LCUNVpK5I7hwkpjbcgqA7I34qYtE= -google.golang.org/api v0.40.0/go.mod h1:fYKFpnQN0DsDSKRVRcQSDQNtqWPfM9i+zNPxepjRCQ8= +google.golang.org/api v0.3.1/go.mod h1:6wY9I6uQWHQ8EM57III9mq/AjF+i8G65rmVagqKMtkk= +google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= +google.golang.org/appengine v1.2.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= -google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= -google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= -google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= -google.golang.org/appengine v1.6.6/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= -google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= -google.golang.org/genproto v0.0.0-20180518175338-11a468237815/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= +google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= google.golang.org/genproto v0.0.0-20180831171423-11092d34479b/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= +google.golang.org/genproto v0.0.0-20190530194941-fb225487d101/go.mod h1:z3L6/3dTEVtUr6QSP8miRzeRqwQOioJ9I66odjN4I7s= google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= -google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8= -google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20191115194625-c23dd37a84c9/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20191216164720-4f79533eabd1/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20200115191322-ca5a22157cba/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20200122232147-0452cf42e150/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20200204135345-fa8e72b47b90/go.mod h1:GmwEX6Z4W5gMy59cAlVYjN9JhxgbQH6Gn+gFDQe2lzA= -google.golang.org/genproto v0.0.0-20200212174721-66ed5ce911ce/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200224152610-e50cd9704f63/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200228133532-8c2c7df3a383/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200305110556-506484158171/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200312145019-da6875a35672/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= google.golang.org/genproto v0.0.0-20200324203455-a04cca1dde73/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200331122359-1ee6d9798940/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= google.golang.org/genproto v0.0.0-20200423170343-7949de9c1215/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200430143042-b979b6f78d84/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200511104702-f5ebc3bea380/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200515170657-fc4c6c6a6587/go.mod h1:YsZOwe1myG/8QRHRsmBRE1LrgQY60beZKjly0O1fX9U= google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20200618031413-b414f8b61790/go.mod h1:jDfRM7FcilCzHH/e9qn6dsT145K34l5v+OpcnNgKAAA= -google.golang.org/genproto v0.0.0-20200729003335-053ba62fc06f/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20200804131852-c06518451d9c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20200825200019-8632dd797987/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20200904004341-0bd0a958aa1d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20201109203340-2640f1f9cdfb/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20201201144952-b05cb90ed32e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20201210142538-e3217bee35cc/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20201214200347-8c77b98c765d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20210108203827-ffc7fda8c3d7/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20210226172003-ab064af71705/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20210624195500-8bfb893ecb84/go.mod h1:SzzZ/N+nwJDaO1kznhnlzqS8ocJICar6hYhVyhi++24= -google.golang.org/genproto v0.0.0-20230629202037-9506855d4529 h1:9JucMWR7sPvCxUFd6UsOUNmA5kCcWOfORaT3tpAsKQs= -google.golang.org/genproto v0.0.0-20230629202037-9506855d4529/go.mod h1:xZnkP7mREFX5MORlOPEzLMr+90PPZQ2QWzrVTWfAq64= -google.golang.org/genproto/googleapis/api v0.0.0-20230526203410-71b5a4ffd15e h1:AZX1ra8YbFMSb7+1pI8S9v4rrgRR7jU1FmuFSSjTVcQ= -google.golang.org/genproto/googleapis/api v0.0.0-20230526203410-71b5a4ffd15e/go.mod h1:vHYtlOoi6TsQ3Uk2yxR7NI5z8uoV+3pZtR4jmHIkRig= -google.golang.org/genproto/googleapis/rpc v0.0.0-20230706204954-ccb25ca9f130 h1:2FZP5XuJY9zQyGM5N0rtovnoXjiMUEIUMvw0m9wlpLc= -google.golang.org/genproto/googleapis/rpc v0.0.0-20230706204954-ccb25ca9f130/go.mod h1:8mL13HKkDa+IuJ8yruA3ci0q+0vsUz4m//+ottjwS5o= -google.golang.org/grpc v1.33.2 h1:EQyQC3sa8M+p6Ulc8yy9SWSS2GVwyRc83gAbG8lrl4o= -google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv2fbc= +google.golang.org/genproto v0.0.0-20210126160654-44e461bb6506/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20220314164441-57ef72a4c106/go.mod h1:hAL49I2IFola2sVEjAn7MEwsja0xp51I0tlGAf9hz4E= +google.golang.org/genproto v0.0.0-20240227224415-6ceb2ff114de h1:F6qOa9AZTYJXOUEr4jDysRDLrm4PHePlge4v4TGAlxY= +google.golang.org/genproto v0.0.0-20240227224415-6ceb2ff114de/go.mod h1:VUhTRKeHn9wwcdrk73nvdC9gF178Tzhmt/qyaFcPLSo= +google.golang.org/genproto/googleapis/api v0.0.0-20240805194559-2c9e96a0b5d4 h1:ABEBT/sZ7We8zd7A5f3KO6zMQe+s3901H7l8Whhijt0= +google.golang.org/genproto/googleapis/api v0.0.0-20240805194559-2c9e96a0b5d4/go.mod h1:4+X6GvPs+25wZKbQq9qyAXrwIRExv7w0Ea6MgZLZiDM= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240730163845-b1a4ccb954bf h1:liao9UHurZLtiEwBgT9LMOnKYsHze6eA6w1KQCMVN2Q= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240730163845-b1a4ccb954bf/go.mod h1:Ue6ibwXGpU+dqIcODieyLOcgj7z8+IcskoNIgZxtrFY= +google.golang.org/grpc v1.17.0/go.mod h1:6QZJwpn2B+Zp71q/5VxRsJ6NXXVCE5NRUHRo+f3cWCs= +google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= +google.golang.org/grpc v1.20.0/go.mod h1:chYK+tFQF0nDUGJgXMSgLCQk3phJEuONr2DCgLDdAQM= +google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= +google.golang.org/grpc v1.21.0/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= +google.golang.org/grpc v1.22.1/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= +google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= +google.golang.org/grpc v1.23.1/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= +google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= +google.golang.org/grpc v1.26.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60= +google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk= +google.golang.org/grpc v1.32.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= +google.golang.org/grpc v1.33.1/go.mod h1:fr5YgcSWrqhRRxogOsw7RzIpsmvOZ6IcH4kBYTpR3n0= +google.golang.org/grpc v1.36.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= +google.golang.org/grpc v1.45.0/go.mod h1:lN7owxKUQEqMfSyQikvvk5tf/6zMPsrK+ONuO11+0rQ= +google.golang.org/grpc v1.49.0/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI= +google.golang.org/grpc v1.65.0 h1:bs/cUb4lp1G5iImFFd3u5ixQzweKizoZJAwBNLR42lc= +google.golang.org/grpc v1.65.0/go.mod h1:WgYC2ypjlB0EiQi6wdKixMqukr6lBc0Vo+oOgjrM5ZQ= google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= @@ -1391,8 +961,10 @@ google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGj google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= -google.golang.org/protobuf v1.31.0 h1:g0LDEJHgrBl9N9r17Ru3sqWhkIx2NB67okBHPwC7hs8= -google.golang.org/protobuf v1.31.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= +google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= +google.golang.org/protobuf v1.28.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= +google.golang.org/protobuf v1.34.2 h1:6xV6lTsCfpGD21XK49h7MhtcApnLqkfYgPcdHftf6hg= +google.golang.org/protobuf v1.34.2/go.mod h1:qYOHts0dSfpeUzUFpOMr/WGzszTmLH+DiWniOlNbLDw= gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= @@ -1400,54 +972,44 @@ gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8 gopkg.in/check.v1 v1.0.0-20200902074654-038fdea0a05b/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= +gopkg.in/cheggaaa/pb.v1 v1.0.25/go.mod h1:V/YB90LKu/1FcN3WVnfiiE5oMCibMjukxqG/qStrOgw= gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys= -gopkg.in/go-playground/assert.v1 v1.2.1/go.mod h1:9RXL0bg/zibRAgZUYszZSwO/z8Y/a8bDuhia5mkpMnE= -gopkg.in/go-playground/validator.v8 v8.18.2/go.mod h1:RX2a/7Ha8BgOhfk7j780h4/u/RRjR0eouCJSH80/M2Y= -gopkg.in/ini.v1 v1.51.1/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= +gopkg.in/gcfg.v1 v1.2.3/go.mod h1:yesOnuUOFQAhST5vPY4nbZsb/huCgGGXlipJsBn0b3o= gopkg.in/ini.v1 v1.67.0 h1:Dgnx+6+nfE+IfzjUEISNeydPJh9AXNNsWbGP9KzCsOA= gopkg.in/ini.v1 v1.67.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= -gopkg.in/mgo.v2 v2.0.0-20180705113604-9856a29383ce/go.mod h1:yeKp02qBN3iKW1OzL3MGk2IdtZzaj7SFntXj72NppTA= +gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= +gopkg.in/warnings.v0 v0.1.2/go.mod h1:jksf8JmL6Qr/oQM2OXTHunEvvTAsrWBLb6OOjuVWRNI= +gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74= gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.5/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= -gopkg.in/yaml.v3 v3.0.0-20191120175047-4206685974f2/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -gotest.tools/v3 v3.4.0 h1:ZazjZUfuVeZGLAmlKKuyv3IKP5orXcwtOwDQH6YVr6o= -gotest.tools/v3 v3.4.0/go.mod h1:CtbdzLSsqVhDgMtKsx03ird5YTGB3ar27v0u/yKBW5g= +gotest.tools/v3 v3.5.1 h1:EENdUnS3pdur5nybKYIh2Vfgc8IUNBjxDPSjtiJcOzU= +gotest.tools/v3 v3.5.1/go.mod h1:isy3WKz7GK6uNw/sbHzfKBLvlvXwUyV06n6brMxxopU= +honnef.co/go/tools v0.0.0-20180728063816-88497007e858/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= -honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= -honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= -honnef.co/go/tools v0.4.6 h1:oFEHCKeID7to/3autwsWfnuv69j3NsfcXbvJKuIcep8= -honnef.co/go/tools v0.4.6/go.mod h1:+rnGS1THNh8zMwnd2oVOTL9QF6vmfyG6ZXBULae2uc0= -mvdan.cc/gofumpt v0.5.0 h1:0EQ+Z56k8tXjj/6TQD25BFNKQXpCvT0rnansIc7Ug5E= -mvdan.cc/gofumpt v0.5.0/go.mod h1:HBeVDtMKRZpXyxFciAirzdKklDlGu8aAy1wEbH5Y9js= -mvdan.cc/interfacer v0.0.0-20180901003855-c20040233aed h1:WX1yoOaKQfddO/mLzdV4wptyWgoH/6hwLs7QHTixo0I= -mvdan.cc/interfacer v0.0.0-20180901003855-c20040233aed/go.mod h1:Xkxe497xwlCKkIaQYRfC7CSLworTXY9RMqwhhCm+8Nc= -mvdan.cc/lint v0.0.0-20170908181259-adc824a0674b h1:DxJ5nJdkhDlLok9K6qO+5290kphDJbHOQO1DFFFTeBo= -mvdan.cc/lint v0.0.0-20170908181259-adc824a0674b/go.mod h1:2odslEg/xrtNQqCYg2/jCoyKnw3vv5biOc3JnIcYfL4= -mvdan.cc/unparam v0.0.0-20221223090309-7455f1af531d h1:3rvTIIM22r9pvXk+q3swxUQAQOxksVMGK7sml4nG57w= -mvdan.cc/unparam v0.0.0-20221223090309-7455f1af531d/go.mod h1:IeHQjmn6TOD+e4Z3RFiZMMsLVL+A96Nvptar8Fj71is= -nhooyr.io/websocket v1.8.6 h1:s+C3xAMLwGmlI31Nyn/eAehUlZPwfYZu2JXM621Q5/k= +mvdan.cc/gofumpt v0.6.0 h1:G3QvahNDmpD+Aek/bNOLrFR2XC6ZAdo62dZu65gmwGo= +mvdan.cc/gofumpt v0.6.0/go.mod h1:4L0wf+kgIPZtcCWXynNS2e6bhmj73umwnuXSZarixzA= nhooyr.io/websocket v1.8.6/go.mod h1:B70DZP8IakI65RVQ51MsWP/8jndNma26DVA/nFSCgW0= -pgregory.net/rapid v0.5.5 h1:jkgx1TjbQPD/feRoK+S/mXw9e1uj6WilpHrXJowi6oA= -pgregory.net/rapid v0.5.5/go.mod h1:PY5XlDGj0+V1FCq0o192FdRhpKHGTRIWBgqjDBTrq04= -rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= -rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= -rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= -sigs.k8s.io/yaml v1.3.0 h1:a2VclLzOGrwOHDiV8EfBGhvjHvP46CtW5j6POvhYGGo= -sigs.k8s.io/yaml v1.3.0/go.mod h1:GeOyir5tyXNByN85N/dRIT9es5UQNerPYEKK56eTBm8= +nhooyr.io/websocket v1.8.7 h1:usjR2uOr/zjjkVMy0lW+PPohFok7PCow5sDjLgX4P4g= +nhooyr.io/websocket v1.8.7/go.mod h1:B70DZP8IakI65RVQ51MsWP/8jndNma26DVA/nFSCgW0= +pgregory.net/rapid v1.1.0 h1:CMa0sjHSru3puNx+J0MIAuiiEV4N0qj8/cMWGBBCsjw= +pgregory.net/rapid v1.1.0/go.mod h1:PY5XlDGj0+V1FCq0o192FdRhpKHGTRIWBgqjDBTrq04= +sigs.k8s.io/yaml v1.1.0/go.mod h1:UJmg0vDUVViEyp3mgSv9WPwZCDxu4rQW1olrI1uml+o= +sigs.k8s.io/yaml v1.4.0 h1:Mk1wCc2gy/F0THH0TAp1QYyJNzRm2KCLy3o5ASXVI5E= +sigs.k8s.io/yaml v1.4.0/go.mod h1:Ejl7/uTz7PSA4eKMyQCUTnhZYNmLIl+5c2lQPGR2BPY= +sourcegraph.com/sourcegraph/appdash v0.0.0-20190731080439-ebfcffb1b5c0/go.mod h1:hI742Nqp5OhwiqlzhgfbWU4mW4yO10fP+LoT9WOswdU= diff --git a/go.work b/go.work new file mode 100644 index 0000000..245fee1 --- /dev/null +++ b/go.work @@ -0,0 +1,6 @@ +go 1.22.1 + +use ( + . + ./api +) diff --git a/go.work.sum b/go.work.sum new file mode 100644 index 0000000..d9256ec --- /dev/null +++ b/go.work.sum @@ -0,0 +1,1316 @@ +cel.dev/expr v0.15.0/go.mod h1:TRSuuV7DlVCE/uwv5QbAiW/v8l5O8C4eEPHeu7gf7Sg= +cloud.google.com/go v0.0.0-20170206221025-ce650573d812/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +cloud.google.com/go v0.110.0/go.mod h1:SJnCLqQ0FCFGSZMUNUf84MV3Aia54kn7pi8st7tMzaY= +cloud.google.com/go v0.110.8/go.mod h1:Iz8AkXJf1qmxC3Oxoep8R1T36w8B92yU29PcBhHO5fk= +cloud.google.com/go v0.110.10/go.mod h1:v1OoFqYxiBkUrruItNM3eT4lLByNjxmJSV/xDKJNnic= +cloud.google.com/go v0.111.0/go.mod h1:0mibmpKP1TyOOFYQY5izo0LnT+ecvOQ0Sg3OdmMiNRU= +cloud.google.com/go v0.112.0/go.mod h1:3jEEVwZ/MHU4djK5t5RHuKOA/GbLddgTdVubX1qnPD4= +cloud.google.com/go v0.112.1/go.mod h1:+Vbu+Y1UU+I1rjmzeMOb/8RfkKJK2Gyxi1X6jJCZLo4= +cloud.google.com/go/accessapproval v1.7.1/go.mod h1:JYczztsHRMK7NTXb6Xw+dwbs/WnOJxbo/2mTI+Kgg68= +cloud.google.com/go/accessapproval v1.7.4/go.mod h1:/aTEh45LzplQgFYdQdwPMR9YdX0UlhBmvB84uAmQKUc= +cloud.google.com/go/accessapproval v1.7.5/go.mod h1:g88i1ok5dvQ9XJsxpUInWWvUBrIZhyPDPbk4T01OoJ0= +cloud.google.com/go/accesscontextmanager v1.8.1/go.mod h1:JFJHfvuaTC+++1iL1coPiG1eu5D24db2wXCDWDjIrxo= +cloud.google.com/go/accesscontextmanager v1.8.4/go.mod h1:ParU+WbMpD34s5JFEnGAnPBYAgUHozaTmDJU7aCU9+M= +cloud.google.com/go/accesscontextmanager v1.8.5/go.mod h1:TInEhcZ7V9jptGNqN3EzZ5XMhT6ijWxTGjzyETwmL0Q= +cloud.google.com/go/aiplatform v1.50.0/go.mod h1:IRc2b8XAMTa9ZmfJV1BCCQbieWWvDnP1A8znyz5N7y4= +cloud.google.com/go/aiplatform v1.58.0/go.mod h1:pwZMGvqe0JRkI1GWSZCtnAfrR4K1bv65IHILGA//VEU= +cloud.google.com/go/aiplatform v1.60.0/go.mod h1:eTlGuHOahHprZw3Hio5VKmtThIOak5/qy6pzdsqcQnM= +cloud.google.com/go/analytics v0.21.3/go.mod h1:U8dcUtmDmjrmUTnnnRnI4m6zKn/yaA5N9RlEkYFHpQo= +cloud.google.com/go/analytics v0.22.0/go.mod h1:eiROFQKosh4hMaNhF85Oc9WO97Cpa7RggD40e/RBy8w= +cloud.google.com/go/analytics v0.23.0/go.mod h1:YPd7Bvik3WS95KBok2gPXDqQPHy08TsCQG6CdUCb+u0= +cloud.google.com/go/apigateway v1.6.1/go.mod h1:ufAS3wpbRjqfZrzpvLC2oh0MFlpRJm2E/ts25yyqmXA= +cloud.google.com/go/apigateway v1.6.4/go.mod h1:0EpJlVGH5HwAN4VF4Iec8TAzGN1aQgbxAWGJsnPCGGY= +cloud.google.com/go/apigateway v1.6.5/go.mod h1:6wCwvYRckRQogyDDltpANi3zsCDl6kWi0b4Je+w2UiI= +cloud.google.com/go/apigeeconnect v1.6.1/go.mod h1:C4awq7x0JpLtrlQCr8AzVIzAaYgngRqWf9S5Uhg+wWs= +cloud.google.com/go/apigeeconnect v1.6.4/go.mod h1:CapQCWZ8TCjnU0d7PobxhpOdVz/OVJ2Hr/Zcuu1xFx0= +cloud.google.com/go/apigeeconnect v1.6.5/go.mod h1:MEKm3AiT7s11PqTfKE3KZluZA9O91FNysvd3E6SJ6Ow= +cloud.google.com/go/apigeeregistry v0.7.1/go.mod h1:1XgyjZye4Mqtw7T9TsY4NW10U7BojBvG4RMD+vRDrIw= +cloud.google.com/go/apigeeregistry v0.8.2/go.mod h1:h4v11TDGdeXJDJvImtgK2AFVvMIgGWjSb0HRnBSjcX8= +cloud.google.com/go/apigeeregistry v0.8.3/go.mod h1:aInOWnqF4yMQx8kTjDqHNXjZGh/mxeNlAf52YqtASUs= +cloud.google.com/go/apikeys v0.5.0/go.mod h1:5aQfwY4D+ewMMWScd3hm2en3hCj+BROlyrt3ytS7KLI= +cloud.google.com/go/apikeys v0.6.0/go.mod h1:kbpXu5upyiAlGkKrJgQl8A0rKNNJ7dQ377pdroRSSi8= +cloud.google.com/go/appengine v1.8.1/go.mod h1:6NJXGLVhZCN9aQ/AEDvmfzKEfoYBlfB80/BHiKVputY= +cloud.google.com/go/appengine v1.8.4/go.mod h1:TZ24v+wXBujtkK77CXCpjZbnuTvsFNT41MUaZ28D6vg= +cloud.google.com/go/appengine v1.8.5/go.mod h1:uHBgNoGLTS5di7BvU25NFDuKa82v0qQLjyMJLuPQrVo= +cloud.google.com/go/area120 v0.8.1/go.mod h1:BVfZpGpB7KFVNxPiQBuHkX6Ed0rS51xIgmGyjrAfzsg= +cloud.google.com/go/area120 v0.8.4/go.mod h1:jfawXjxf29wyBXr48+W+GyX/f8fflxp642D/bb9v68M= +cloud.google.com/go/area120 v0.8.5/go.mod h1:BcoFCbDLZjsfe4EkCnEq1LKvHSK0Ew/zk5UFu6GMyA0= +cloud.google.com/go/artifactregistry v1.14.1/go.mod h1:nxVdG19jTaSTu7yA7+VbWL346r3rIdkZ142BSQqhn5E= +cloud.google.com/go/artifactregistry v1.14.6/go.mod h1:np9LSFotNWHcjnOgh8UVK0RFPCTUGbO0ve3384xyHfE= +cloud.google.com/go/artifactregistry v1.14.7/go.mod h1:0AUKhzWQzfmeTvT4SjfI4zjot72EMfrkvL9g9aRjnnM= +cloud.google.com/go/asset v1.14.1/go.mod h1:4bEJ3dnHCqWCDbWJ/6Vn7GVI9LerSi7Rfdi03hd+WTQ= +cloud.google.com/go/asset v1.17.0/go.mod h1:yYLfUD4wL4X589A9tYrv4rFrba0QlDeag0CMcM5ggXU= +cloud.google.com/go/asset v1.17.2/go.mod h1:SVbzde67ehddSoKf5uebOD1sYw8Ab/jD/9EIeWg99q4= +cloud.google.com/go/assuredworkloads v1.11.1/go.mod h1:+F04I52Pgn5nmPG36CWFtxmav6+7Q+c5QyJoL18Lry0= +cloud.google.com/go/assuredworkloads v1.11.4/go.mod h1:4pwwGNwy1RP0m+y12ef3Q/8PaiWrIDQ6nD2E8kvWI9U= +cloud.google.com/go/assuredworkloads v1.11.5/go.mod h1:FKJ3g3ZvkL2D7qtqIGnDufFkHxwIpNM9vtmhvt+6wqk= +cloud.google.com/go/automl v1.13.1/go.mod h1:1aowgAHWYZU27MybSCFiukPO7xnyawv7pt3zK4bheQE= +cloud.google.com/go/automl v1.13.4/go.mod h1:ULqwX/OLZ4hBVfKQaMtxMSTlPx0GqGbWN8uA/1EqCP8= +cloud.google.com/go/automl v1.13.5/go.mod h1:MDw3vLem3yh+SvmSgeYUmUKqyls6NzSumDm9OJ3xJ1Y= +cloud.google.com/go/baremetalsolution v1.2.0/go.mod h1:68wi9AwPYkEWIUT4SvSGS9UJwKzNpshjHsH4lzk8iOw= +cloud.google.com/go/baremetalsolution v1.2.3/go.mod h1:/UAQ5xG3faDdy180rCUv47e0jvpp3BFxT+Cl0PFjw5g= +cloud.google.com/go/baremetalsolution v1.2.4/go.mod h1:BHCmxgpevw9IEryE99HbYEfxXkAEA3hkMJbYYsHtIuY= +cloud.google.com/go/batch v1.4.1/go.mod h1:KdBmDD61K0ovcxoRHGrN6GmOBWeAOyCgKD0Mugx4Fkk= +cloud.google.com/go/batch v1.7.0/go.mod h1:J64gD4vsNSA2O5TtDB5AAux3nJ9iV8U3ilg3JDBYejU= +cloud.google.com/go/batch v1.8.0/go.mod h1:k8V7f6VE2Suc0zUM4WtoibNrA6D3dqBpB+++e3vSGYc= +cloud.google.com/go/beyondcorp v1.0.0/go.mod h1:YhxDWw946SCbmcWo3fAhw3V4XZMSpQ/VYfcKGAEU8/4= +cloud.google.com/go/beyondcorp v1.0.3/go.mod h1:HcBvnEd7eYr+HGDd5ZbuVmBYX019C6CEXBonXbCVwJo= +cloud.google.com/go/beyondcorp v1.0.4/go.mod h1:Gx8/Rk2MxrvWfn4WIhHIG1NV7IBfg14pTKv1+EArVcc= +cloud.google.com/go/bigquery v1.55.0/go.mod h1:9Y5I3PN9kQWuid6183JFhOGOW3GcirA5LpsKCUn+2ec= +cloud.google.com/go/bigquery v1.57.1/go.mod h1:iYzC0tGVWt1jqSzBHqCr3lrRn0u13E8e+AqowBsDgug= +cloud.google.com/go/bigquery v1.59.1/go.mod h1:VP1UJYgevyTwsV7desjzNzDND5p6hZB+Z8gZJN1GQUc= +cloud.google.com/go/billing v1.17.0/go.mod h1:Z9+vZXEq+HwH7bhJkyI4OQcR6TSbeMrjlpEjO2vzY64= +cloud.google.com/go/billing v1.18.0/go.mod h1:5DOYQStCxquGprqfuid/7haD7th74kyMBHkjO/OvDtk= +cloud.google.com/go/billing v1.18.2/go.mod h1:PPIwVsOOQ7xzbADCwNe8nvK776QpfrOAUkvKjCUcpSE= +cloud.google.com/go/binaryauthorization v1.7.0/go.mod h1:Zn+S6QqTMn6odcMU1zDZCJxPjU2tZPV1oDl45lWY154= +cloud.google.com/go/binaryauthorization v1.8.0/go.mod h1:VQ/nUGRKhrStlGr+8GMS8f6/vznYLkdK5vaKfdCIpvU= +cloud.google.com/go/binaryauthorization v1.8.1/go.mod h1:1HVRyBerREA/nhI7yLang4Zn7vfNVA3okoAR9qYQJAQ= +cloud.google.com/go/certificatemanager v1.7.1/go.mod h1:iW8J3nG6SaRYImIa+wXQ0g8IgoofDFRp5UMzaNk1UqI= +cloud.google.com/go/certificatemanager v1.7.4/go.mod h1:FHAylPe/6IIKuaRmHbjbdLhGhVQ+CWHSD5Jq0k4+cCE= +cloud.google.com/go/certificatemanager v1.7.5/go.mod h1:uX+v7kWqy0Y3NG/ZhNvffh0kuqkKZIXdvlZRO7z0VtM= +cloud.google.com/go/channel v1.17.0/go.mod h1:RpbhJsGi/lXWAUM1eF4IbQGbsfVlg2o8Iiy2/YLfVT0= +cloud.google.com/go/channel v1.17.4/go.mod h1:QcEBuZLGGrUMm7kNj9IbU1ZfmJq2apotsV83hbxX7eE= +cloud.google.com/go/channel v1.17.5/go.mod h1:FlpaOSINDAXgEext0KMaBq/vwpLMkkPAw9b2mApQeHc= +cloud.google.com/go/cloudbuild v1.14.0/go.mod h1:lyJg7v97SUIPq4RC2sGsz/9tNczhyv2AjML/ci4ulzU= +cloud.google.com/go/cloudbuild v1.15.0/go.mod h1:eIXYWmRt3UtggLnFGx4JvXcMj4kShhVzGndL1LwleEM= +cloud.google.com/go/cloudbuild v1.15.1/go.mod h1:gIofXZSu+XD2Uy+qkOrGKEx45zd7s28u/k8f99qKals= +cloud.google.com/go/clouddms v1.7.0/go.mod h1:MW1dC6SOtI/tPNCciTsXtsGNEM0i0OccykPvv3hiYeM= +cloud.google.com/go/clouddms v1.7.3/go.mod h1:fkN2HQQNUYInAU3NQ3vRLkV2iWs8lIdmBKOx4nrL6Hc= +cloud.google.com/go/clouddms v1.7.4/go.mod h1:RdrVqoFG9RWI5AvZ81SxJ/xvxPdtcRhFotwdE79DieY= +cloud.google.com/go/cloudtasks v1.12.1/go.mod h1:a9udmnou9KO2iulGscKR0qBYjreuX8oHwpmFsKspEvM= +cloud.google.com/go/cloudtasks v1.12.4/go.mod h1:BEPu0Gtt2dU6FxZHNqqNdGqIG86qyWKBPGnsb7udGY0= +cloud.google.com/go/cloudtasks v1.12.6/go.mod h1:b7c7fe4+TJsFZfDyzO51F7cjq7HLUlRi/KZQLQjDsaY= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute v1.18.0/go.mod h1:1X7yHxec2Ga+Ss6jPyjxRxpu2uu7PLgsOVXvgU0yacs= +cloud.google.com/go/compute v1.20.1/go.mod h1:4tCnrn48xsqlwSAiLf1HXMQk8CONslYbdiEZc9FEIbM= +cloud.google.com/go/compute v1.23.0/go.mod h1:4tCnrn48xsqlwSAiLf1HXMQk8CONslYbdiEZc9FEIbM= +cloud.google.com/go/compute v1.23.1/go.mod h1:CqB3xpmPKKt3OJpW2ndFIXnA9A4xAy/F3Xp1ixncW78= +cloud.google.com/go/compute v1.23.3/go.mod h1:VCgBUoMnIVIR0CscqQiPJLAG25E3ZRZMzcFZeQ+h8CI= +cloud.google.com/go/compute v1.23.4/go.mod h1:/EJMj55asU6kAFnuZET8zqgwgJ9FvXWXOkkfQZa4ioI= +cloud.google.com/go/compute v1.24.0/go.mod h1:kw1/T+h/+tK2LJK0wiPPx1intgdAM3j/g3hFDlscY40= +cloud.google.com/go/compute v1.25.1/go.mod h1:oopOIR53ly6viBYxaDhBfJwzUAxf1zE//uf3IB011ls= +cloud.google.com/go/compute/metadata v0.2.0/go.mod h1:zFmK7XCadkQkj6TtorcaGlCW1hT1fIilQDwofLpJ20k= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= +cloud.google.com/go/compute/metadata v0.3.0/go.mod h1:zFmK7XCadkQkj6TtorcaGlCW1hT1fIilQDwofLpJ20k= +cloud.google.com/go/contactcenterinsights v1.10.0/go.mod h1:bsg/R7zGLYMVxFFzfh9ooLTruLRCG9fnzhH9KznHhbM= +cloud.google.com/go/contactcenterinsights v1.12.1/go.mod h1:HHX5wrz5LHVAwfI2smIotQG9x8Qd6gYilaHcLLLmNis= +cloud.google.com/go/contactcenterinsights v1.13.0/go.mod h1:ieq5d5EtHsu8vhe2y3amtZ+BE+AQwX5qAy7cpo0POsI= +cloud.google.com/go/container v1.26.0/go.mod h1:YJCmRet6+6jnYYRS000T6k0D0xUXQgBSaJ7VwI8FBj4= +cloud.google.com/go/container v1.29.0/go.mod h1:b1A1gJeTBXVLQ6GGw9/9M4FG94BEGsqJ5+t4d/3N7O4= +cloud.google.com/go/container v1.31.0/go.mod h1:7yABn5s3Iv3lmw7oMmyGbeV6tQj86njcTijkkGuvdZA= +cloud.google.com/go/containeranalysis v0.11.0/go.mod h1:4n2e99ZwpGxpNcz+YsFT1dfOHPQFGcAC8FN2M2/ne/U= +cloud.google.com/go/containeranalysis v0.11.3/go.mod h1:kMeST7yWFQMGjiG9K7Eov+fPNQcGhb8mXj/UcTiWw9U= +cloud.google.com/go/containeranalysis v0.11.4/go.mod h1:cVZT7rXYBS9NG1rhQbWL9pWbXCKHWJPYraE8/FTSYPE= +cloud.google.com/go/datacatalog v1.17.1/go.mod h1:nCSYFHgtxh2MiEktWIz71s/X+7ds/UT9kp0PC7waCzE= +cloud.google.com/go/datacatalog v1.19.0/go.mod h1:5FR6ZIF8RZrtml0VUao22FxhdjkoG+a0866rEnObryM= +cloud.google.com/go/datacatalog v1.19.3/go.mod h1:ra8V3UAsciBpJKQ+z9Whkxzxv7jmQg1hfODr3N3YPJ4= +cloud.google.com/go/dataflow v0.9.1/go.mod h1:Wp7s32QjYuQDWqJPFFlnBKhkAtiFpMTdg00qGbnIHVw= +cloud.google.com/go/dataflow v0.9.4/go.mod h1:4G8vAkHYCSzU8b/kmsoR2lWyHJD85oMJPHMtan40K8w= +cloud.google.com/go/dataflow v0.9.5/go.mod h1:udl6oi8pfUHnL0z6UN9Lf9chGqzDMVqcYTcZ1aPnCZQ= +cloud.google.com/go/dataform v0.8.1/go.mod h1:3BhPSiw8xmppbgzeBbmDvmSWlwouuJkXsXsb8UBih9M= +cloud.google.com/go/dataform v0.9.1/go.mod h1:pWTg+zGQ7i16pyn0bS1ruqIE91SdL2FDMvEYu/8oQxs= +cloud.google.com/go/dataform v0.9.2/go.mod h1:S8cQUwPNWXo7m/g3DhWHsLBoufRNn9EgFrMgne2j7cI= +cloud.google.com/go/datafusion v1.7.1/go.mod h1:KpoTBbFmoToDExJUso/fcCiguGDk7MEzOWXUsJo0wsI= +cloud.google.com/go/datafusion v1.7.4/go.mod h1:BBs78WTOLYkT4GVZIXQCZT3GFpkpDN4aBY4NDX/jVlM= +cloud.google.com/go/datafusion v1.7.5/go.mod h1:bYH53Oa5UiqahfbNK9YuYKteeD4RbQSNMx7JF7peGHc= +cloud.google.com/go/datalabeling v0.8.1/go.mod h1:XS62LBSVPbYR54GfYQsPXZjTW8UxCK2fkDciSrpRFdY= +cloud.google.com/go/datalabeling v0.8.4/go.mod h1:Z1z3E6LHtffBGrNUkKwbwbDxTiXEApLzIgmymj8A3S8= +cloud.google.com/go/datalabeling v0.8.5/go.mod h1:IABB2lxQnkdUbMnQaOl2prCOfms20mcPxDBm36lps+s= +cloud.google.com/go/dataplex v1.9.1/go.mod h1:7TyrDT6BCdI8/38Uvp0/ZxBslOslP2X2MPDucliyvSE= +cloud.google.com/go/dataplex v1.14.0/go.mod h1:mHJYQQ2VEJHsyoC0OdNyy988DvEbPhqFs5OOLffLX0c= +cloud.google.com/go/dataplex v1.14.2/go.mod h1:0oGOSFlEKef1cQeAHXy4GZPB/Ife0fz/PxBf+ZymA2U= +cloud.google.com/go/dataproc v1.12.0/go.mod h1:zrF3aX0uV3ikkMz6z4uBbIKyhRITnxvr4i3IjKsKrw4= +cloud.google.com/go/dataproc/v2 v2.2.0/go.mod h1:lZR7AQtwZPvmINx5J87DSOOpTfof9LVZju6/Qo4lmcY= +cloud.google.com/go/dataproc/v2 v2.3.0/go.mod h1:G5R6GBc9r36SXv/RtZIVfB8SipI+xVn0bX5SxUzVYbY= +cloud.google.com/go/dataproc/v2 v2.4.0/go.mod h1:3B1Ht2aRB8VZIteGxQS/iNSJGzt9+CA0WGnDVMEm7Z4= +cloud.google.com/go/dataqna v0.8.1/go.mod h1:zxZM0Bl6liMePWsHA8RMGAfmTG34vJMapbHAxQ5+WA8= +cloud.google.com/go/dataqna v0.8.4/go.mod h1:mySRKjKg5Lz784P6sCov3p1QD+RZQONRMRjzGNcFd0c= +cloud.google.com/go/dataqna v0.8.5/go.mod h1:vgihg1mz6n7pb5q2YJF7KlXve6tCglInd6XO0JGOlWM= +cloud.google.com/go/datastore v1.14.0/go.mod h1:GAeStMBIt9bPS7jMJA85kgkpsMkvseWWXiaHya9Jes8= +cloud.google.com/go/datastore v1.15.0/go.mod h1:GAeStMBIt9bPS7jMJA85kgkpsMkvseWWXiaHya9Jes8= +cloud.google.com/go/datastream v1.10.0/go.mod h1:hqnmr8kdUBmrnk65k5wNRoHSCYksvpdZIcZIEl8h43Q= +cloud.google.com/go/datastream v1.10.3/go.mod h1:YR0USzgjhqA/Id0Ycu1VvZe8hEWwrkjuXrGbzeDOSEA= +cloud.google.com/go/datastream v1.10.4/go.mod h1:7kRxPdxZxhPg3MFeCSulmAJnil8NJGGvSNdn4p1sRZo= +cloud.google.com/go/deploy v1.13.0/go.mod h1:tKuSUV5pXbn67KiubiUNUejqLs4f5cxxiCNCeyl0F2g= +cloud.google.com/go/deploy v1.16.0/go.mod h1:e5XOUI5D+YGldyLNZ21wbp9S8otJbBE4i88PtO9x/2g= +cloud.google.com/go/deploy v1.17.1/go.mod h1:SXQyfsXrk0fBmgBHRzBjQbZhMfKZ3hMQBw5ym7MN/50= +cloud.google.com/go/dialogflow v1.43.0/go.mod h1:pDUJdi4elL0MFmt1REMvFkdsUTYSHq+rTCS8wg0S3+M= +cloud.google.com/go/dialogflow v1.48.0/go.mod h1:mHly4vU7cPXVweuB5R0zsYKPMzy240aQdAu06SqBbAQ= +cloud.google.com/go/dialogflow v1.49.0/go.mod h1:dhVrXKETtdPlpPhE7+2/k4Z8FRNUp6kMV3EW3oz/fe0= +cloud.google.com/go/dlp v1.10.1/go.mod h1:IM8BWz1iJd8njcNcG0+Kyd9OPnqnRNkDV8j42VT5KOI= +cloud.google.com/go/dlp v1.11.1/go.mod h1:/PA2EnioBeXTL/0hInwgj0rfsQb3lpE3R8XUJxqUNKI= +cloud.google.com/go/dlp v1.11.2/go.mod h1:9Czi+8Y/FegpWzgSfkRlyz+jwW6Te9Rv26P3UfU/h/w= +cloud.google.com/go/documentai v1.22.1/go.mod h1:LKs22aDHbJv7ufXuPypzRO7rG3ALLJxzdCXDPutw4Qc= +cloud.google.com/go/documentai v1.23.7/go.mod h1:ghzBsyVTiVdkfKaUCum/9bGBEyBjDO4GfooEcYKhN+g= +cloud.google.com/go/documentai v1.25.0/go.mod h1:ftLnzw5VcXkLItp6pw1mFic91tMRyfv6hHEY5br4KzY= +cloud.google.com/go/domains v0.9.1/go.mod h1:aOp1c0MbejQQ2Pjf1iJvnVyT+z6R6s8pX66KaCSDYfE= +cloud.google.com/go/domains v0.9.4/go.mod h1:27jmJGShuXYdUNjyDG0SodTfT5RwLi7xmH334Gvi3fY= +cloud.google.com/go/domains v0.9.5/go.mod h1:dBzlxgepazdFhvG7u23XMhmMKBjrkoUNaw0A8AQB55Y= +cloud.google.com/go/edgecontainer v1.1.1/go.mod h1:O5bYcS//7MELQZs3+7mabRqoWQhXCzenBu0R8bz2rwk= +cloud.google.com/go/edgecontainer v1.1.4/go.mod h1:AvFdVuZuVGdgaE5YvlL1faAoa1ndRR/5XhXZvPBHbsE= +cloud.google.com/go/edgecontainer v1.1.5/go.mod h1:rgcjrba3DEDEQAidT4yuzaKWTbkTI5zAMu3yy6ZWS0M= +cloud.google.com/go/errorreporting v0.3.0/go.mod h1:xsP2yaAp+OAW4OIm60An2bbLpqIhKXdWR/tawvl7QzU= +cloud.google.com/go/essentialcontacts v1.6.2/go.mod h1:T2tB6tX+TRak7i88Fb2N9Ok3PvY3UNbUsMag9/BARh4= +cloud.google.com/go/essentialcontacts v1.6.5/go.mod h1:jjYbPzw0x+yglXC890l6ECJWdYeZ5dlYACTFL0U/VuM= +cloud.google.com/go/essentialcontacts v1.6.6/go.mod h1:XbqHJGaiH0v2UvtuucfOzFXN+rpL/aU5BCZLn4DYl1Q= +cloud.google.com/go/eventarc v1.13.0/go.mod h1:mAFCW6lukH5+IZjkvrEss+jmt2kOdYlN8aMx3sRJiAI= +cloud.google.com/go/eventarc v1.13.3/go.mod h1:RWH10IAZIRcj1s/vClXkBgMHwh59ts7hSWcqD3kaclg= +cloud.google.com/go/eventarc v1.13.4/go.mod h1:zV5sFVoAa9orc/52Q+OuYUG9xL2IIZTbbuTHC6JSY8s= +cloud.google.com/go/filestore v1.7.1/go.mod h1:y10jsorq40JJnjR/lQ8AfFbbcGlw3g+Dp8oN7i7FjV4= +cloud.google.com/go/filestore v1.8.0/go.mod h1:S5JCxIbFjeBhWMTfIYH2Jx24J6BqjwpkkPl+nBA5DlI= +cloud.google.com/go/filestore v1.8.1/go.mod h1:MbN9KcaM47DRTIuLfQhJEsjaocVebNtNQhSLhKCF5GM= +cloud.google.com/go/firestore v1.13.0/go.mod h1:QojqqOh8IntInDUSTAh0c8ZsPYAr68Ma8c5DWOy8xb8= +cloud.google.com/go/firestore v1.14.0/go.mod h1:96MVaHLsEhbvkBEdZgfN+AS/GIkco1LRpH9Xp9YZfzQ= +cloud.google.com/go/functions v1.15.1/go.mod h1:P5yNWUTkyU+LvW/S9O6V+V423VZooALQlqoXdoPz5AE= +cloud.google.com/go/functions v1.15.4/go.mod h1:CAsTc3VlRMVvx+XqXxKqVevguqJpnVip4DdonFsX28I= +cloud.google.com/go/functions v1.16.0/go.mod h1:nbNpfAG7SG7Duw/o1iZ6ohvL7mc6MapWQVpqtM29n8k= +cloud.google.com/go/gaming v1.9.0/go.mod h1:Fc7kEmCObylSWLO334NcO+O9QMDyz+TKC4v1D7X+Bc0= +cloud.google.com/go/gkebackup v1.3.1/go.mod h1:vUDOu++N0U5qs4IhG1pcOnD1Mac79xWy6GoBFlWCWBU= +cloud.google.com/go/gkebackup v1.3.4/go.mod h1:gLVlbM8h/nHIs09ns1qx3q3eaXcGSELgNu1DWXYz1HI= +cloud.google.com/go/gkebackup v1.3.5/go.mod h1:KJ77KkNN7Wm1LdMopOelV6OodM01pMuK2/5Zt1t4Tvc= +cloud.google.com/go/gkeconnect v0.8.1/go.mod h1:KWiK1g9sDLZqhxB2xEuPV8V9NYzrqTUmQR9shJHpOZw= +cloud.google.com/go/gkeconnect v0.8.4/go.mod h1:84hZz4UMlDCKl8ifVW8layK4WHlMAFeq8vbzjU0yJkw= +cloud.google.com/go/gkeconnect v0.8.5/go.mod h1:LC/rS7+CuJ5fgIbXv8tCD/mdfnlAadTaUufgOkmijuk= +cloud.google.com/go/gkehub v0.14.1/go.mod h1:VEXKIJZ2avzrbd7u+zeMtW00Y8ddk/4V9511C9CQGTY= +cloud.google.com/go/gkehub v0.14.4/go.mod h1:Xispfu2MqnnFt8rV/2/3o73SK1snL8s9dYJ9G2oQMfc= +cloud.google.com/go/gkehub v0.14.5/go.mod h1:6bzqxM+a+vEH/h8W8ec4OJl4r36laxTs3A/fMNHJ0wA= +cloud.google.com/go/gkemulticloud v1.0.0/go.mod h1:kbZ3HKyTsiwqKX7Yw56+wUGwwNZViRnxWK2DVknXWfw= +cloud.google.com/go/gkemulticloud v1.1.0/go.mod h1:7NpJBN94U6DY1xHIbsDqB2+TFZUfjLUKLjUX8NGLor0= +cloud.google.com/go/gkemulticloud v1.1.1/go.mod h1:C+a4vcHlWeEIf45IB5FFR5XGjTeYhF83+AYIpTy4i2Q= +cloud.google.com/go/grafeas v0.3.0/go.mod h1:P7hgN24EyONOTMyeJH6DxG4zD7fwiYa5Q6GUgyFSOU8= +cloud.google.com/go/grafeas v0.3.4/go.mod h1:A5m316hcG+AulafjAbPKXBO/+I5itU4LOdKO2R/uDIc= +cloud.google.com/go/gsuiteaddons v1.6.1/go.mod h1:CodrdOqRZcLp5WOwejHWYBjZvfY0kOphkAKpF/3qdZY= +cloud.google.com/go/gsuiteaddons v1.6.4/go.mod h1:rxtstw7Fx22uLOXBpsvb9DUbC+fiXs7rF4U29KHM/pE= +cloud.google.com/go/gsuiteaddons v1.6.5/go.mod h1:Lo4P2IvO8uZ9W+RaC6s1JVxo42vgy+TX5a6hfBZ0ubs= +cloud.google.com/go/iam v0.12.0/go.mod h1:knyHGviacl11zrtZUoDuYpDgLjvr28sLQaG0YB2GYAY= +cloud.google.com/go/iam v1.1.2/go.mod h1:A5avdyVL2tCppe4unb0951eI9jreack+RJ0/d+KUZOU= +cloud.google.com/go/iam v1.1.3/go.mod h1:3khUlaBXfPKKe7huYgEpDn6FtgRyMEqbkvBxrQyY5SE= +cloud.google.com/go/iam v1.1.5/go.mod h1:rB6P/Ic3mykPbFio+vo7403drjlgvoWfYpJhMXEbzv8= +cloud.google.com/go/iam v1.1.6/go.mod h1:O0zxdPeGBoFdWW3HWmBxJsk0pfvNM/p/qa82rWOGTwI= +cloud.google.com/go/iap v1.9.0/go.mod h1:01OFxd1R+NFrg78S+hoPV5PxEzv22HXaNqUUlmNHFuY= +cloud.google.com/go/iap v1.9.3/go.mod h1:DTdutSZBqkkOm2HEOTBzhZxh2mwwxshfD/h3yofAiCw= +cloud.google.com/go/iap v1.9.4/go.mod h1:vO4mSq0xNf/Pu6E5paORLASBwEmphXEjgCFg7aeNu1w= +cloud.google.com/go/ids v1.4.1/go.mod h1:np41ed8YMU8zOgv53MMMoCntLTn2lF+SUzlM+O3u/jw= +cloud.google.com/go/ids v1.4.4/go.mod h1:z+WUc2eEl6S/1aZWzwtVNWoSZslgzPxAboS0lZX0HjI= +cloud.google.com/go/ids v1.4.5/go.mod h1:p0ZnyzjMWxww6d2DvMGnFwCsSxDJM666Iir1bK1UuBo= +cloud.google.com/go/iot v1.7.1/go.mod h1:46Mgw7ev1k9KqK1ao0ayW9h0lI+3hxeanz+L1zmbbbk= +cloud.google.com/go/iot v1.7.4/go.mod h1:3TWqDVvsddYBG++nHSZmluoCAVGr1hAcabbWZNKEZLk= +cloud.google.com/go/iot v1.7.5/go.mod h1:nq3/sqTz3HGaWJi1xNiX7F41ThOzpud67vwk0YsSsqs= +cloud.google.com/go/kms v1.15.2/go.mod h1:3hopT4+7ooWRCjc2DxgnpESFxhIraaI2IpAVUEhbT/w= +cloud.google.com/go/kms v1.15.5/go.mod h1:cU2H5jnp6G2TDpUGZyqTCoy1n16fbubHZjmVXSMtwDI= +cloud.google.com/go/kms v1.15.7/go.mod h1:ub54lbsa6tDkUwnu4W7Yt1aAIFLnspgh0kPGToDukeI= +cloud.google.com/go/language v1.11.0/go.mod h1:uDx+pFDdAKTY8ehpWbiXyQdz8tDSYLJbQcXsCkjYyvQ= +cloud.google.com/go/language v1.12.2/go.mod h1:9idWapzr/JKXBBQ4lWqVX/hcadxB194ry20m/bTrhWc= +cloud.google.com/go/language v1.12.3/go.mod h1:evFX9wECX6mksEva8RbRnr/4wi/vKGYnAJrTRXU8+f8= +cloud.google.com/go/lifesciences v0.9.1/go.mod h1:hACAOd1fFbCGLr/+weUKRAJas82Y4vrL3O5326N//Wc= +cloud.google.com/go/lifesciences v0.9.4/go.mod h1:bhm64duKhMi7s9jR9WYJYvjAFJwRqNj+Nia7hF0Z7JA= +cloud.google.com/go/lifesciences v0.9.5/go.mod h1:OdBm0n7C0Osh5yZB7j9BXyrMnTRGBJIZonUMxo5CzPw= +cloud.google.com/go/logging v1.8.1/go.mod h1:TJjR+SimHwuC8MZ9cjByQulAMgni+RkXeI3wwctHJEI= +cloud.google.com/go/logging v1.9.0/go.mod h1:1Io0vnZv4onoUnsVUQY3HZ3Igb1nBchky0A0y7BBBhE= +cloud.google.com/go/longrunning v0.5.1/go.mod h1:spvimkwdz6SPWKEt/XBij79E9fiTkHSQl/fRUUQJYJc= +cloud.google.com/go/longrunning v0.5.2/go.mod h1:nqo6DQbNV2pXhGDbDMoN2bWz68MjZUzqv2YttZiveCs= +cloud.google.com/go/longrunning v0.5.4/go.mod h1:zqNVncI0BOP8ST6XQD1+VcvuShMmq7+xFSzOL++V0dI= +cloud.google.com/go/longrunning v0.5.5/go.mod h1:WV2LAxD8/rg5Z1cNW6FJ/ZpX4E4VnDnoTk0yawPBB7s= +cloud.google.com/go/managedidentities v1.6.1/go.mod h1:h/irGhTN2SkZ64F43tfGPMbHnypMbu4RB3yl8YcuEak= +cloud.google.com/go/managedidentities v1.6.4/go.mod h1:WgyaECfHmF00t/1Uk8Oun3CQ2PGUtjc3e9Alh79wyiM= +cloud.google.com/go/managedidentities v1.6.5/go.mod h1:fkFI2PwwyRQbjLxlm5bQ8SjtObFMW3ChBGNqaMcgZjI= +cloud.google.com/go/maps v1.4.0/go.mod h1:6mWTUv+WhnOwAgjVsSW2QPPECmW+s3PcRyOa9vgG/5s= +cloud.google.com/go/maps v1.6.2/go.mod h1:4+buOHhYXFBp58Zj/K+Lc1rCmJssxxF4pJ5CJnhdz18= +cloud.google.com/go/maps v1.6.4/go.mod h1:rhjqRy8NWmDJ53saCfsXQ0LKwBHfi6OSh5wkq6BaMhI= +cloud.google.com/go/mediatranslation v0.8.1/go.mod h1:L/7hBdEYbYHQJhX2sldtTO5SZZ1C1vkapubj0T2aGig= +cloud.google.com/go/mediatranslation v0.8.4/go.mod h1:9WstgtNVAdN53m6TQa5GjIjLqKQPXe74hwSCxUP6nj4= +cloud.google.com/go/mediatranslation v0.8.5/go.mod h1:y7kTHYIPCIfgyLbKncgqouXJtLsU+26hZhHEEy80fSs= +cloud.google.com/go/memcache v1.10.1/go.mod h1:47YRQIarv4I3QS5+hoETgKO40InqzLP6kpNLvyXuyaA= +cloud.google.com/go/memcache v1.10.4/go.mod h1:v/d8PuC8d1gD6Yn5+I3INzLR01IDn0N4Ym56RgikSI0= +cloud.google.com/go/memcache v1.10.5/go.mod h1:/FcblbNd0FdMsx4natdj+2GWzTq+cjZvMa1I+9QsuMA= +cloud.google.com/go/metastore v1.12.0/go.mod h1:uZuSo80U3Wd4zi6C22ZZliOUJ3XeM/MlYi/z5OAOWRA= +cloud.google.com/go/metastore v1.13.3/go.mod h1:K+wdjXdtkdk7AQg4+sXS8bRrQa9gcOr+foOMF2tqINE= +cloud.google.com/go/metastore v1.13.4/go.mod h1:FMv9bvPInEfX9Ac1cVcRXp8EBBQnBcqH6gz3KvJ9BAE= +cloud.google.com/go/monitoring v1.16.0/go.mod h1:Ptp15HgAyM1fNICAojDMoNc/wUmn67mLHQfyqbw+poY= +cloud.google.com/go/monitoring v1.17.0/go.mod h1:KwSsX5+8PnXv5NJnICZzW2R8pWTis8ypC4zmdRD63Tw= +cloud.google.com/go/monitoring v1.18.0/go.mod h1:c92vVBCeq/OB4Ioyo+NbN2U7tlg5ZH41PZcdvfc+Lcg= +cloud.google.com/go/networkconnectivity v1.13.0/go.mod h1:SAnGPes88pl7QRLUen2HmcBSE9AowVAcdug8c0RSBFk= +cloud.google.com/go/networkconnectivity v1.14.3/go.mod h1:4aoeFdrJpYEXNvrnfyD5kIzs8YtHg945Og4koAjHQek= +cloud.google.com/go/networkconnectivity v1.14.4/go.mod h1:PU12q++/IMnDJAB+3r+tJtuCXCfwfN+C6Niyj6ji1Po= +cloud.google.com/go/networkmanagement v1.9.0/go.mod h1:UTUaEU9YwbCAhhz3jEOHr+2/K/MrBk2XxOLS89LQzFw= +cloud.google.com/go/networkmanagement v1.9.3/go.mod h1:y7WMO1bRLaP5h3Obm4tey+NquUvB93Co1oh4wpL+XcU= +cloud.google.com/go/networkmanagement v1.9.4/go.mod h1:daWJAl0KTFytFL7ar33I6R/oNBH8eEOX/rBNHrC/8TA= +cloud.google.com/go/networksecurity v0.9.1/go.mod h1:MCMdxOKQ30wsBI1eI659f9kEp4wuuAueoC9AJKSPWZQ= +cloud.google.com/go/networksecurity v0.9.4/go.mod h1:E9CeMZ2zDsNBkr8axKSYm8XyTqNhiCHf1JO/Vb8mD1w= +cloud.google.com/go/networksecurity v0.9.5/go.mod h1:KNkjH/RsylSGyyZ8wXpue8xpCEK+bTtvof8SBfIhMG8= +cloud.google.com/go/notebooks v1.10.0/go.mod h1:SOPYMZnttHxqot0SGSFSkRrwE29eqnKPBJFqgWmiK2k= +cloud.google.com/go/notebooks v1.11.2/go.mod h1:z0tlHI/lREXC8BS2mIsUeR3agM1AkgLiS+Isov3SS70= +cloud.google.com/go/notebooks v1.11.3/go.mod h1:0wQyI2dQC3AZyQqWnRsp+yA+kY4gC7ZIVP4Qg3AQcgo= +cloud.google.com/go/optimization v1.5.0/go.mod h1:evo1OvTxeBRBu6ydPlrIRizKY/LJKo/drDMMRKqGEUU= +cloud.google.com/go/optimization v1.6.2/go.mod h1:mWNZ7B9/EyMCcwNl1frUGEuY6CPijSkz88Fz2vwKPOY= +cloud.google.com/go/optimization v1.6.3/go.mod h1:8ve3svp3W6NFcAEFr4SfJxrldzhUl4VMUJmhrqVKtYA= +cloud.google.com/go/orchestration v1.8.1/go.mod h1:4sluRF3wgbYVRqz7zJ1/EUNc90TTprliq9477fGobD8= +cloud.google.com/go/orchestration v1.8.4/go.mod h1:d0lywZSVYtIoSZXb0iFjv9SaL13PGyVOKDxqGxEf/qI= +cloud.google.com/go/orchestration v1.8.5/go.mod h1:C1J7HesE96Ba8/hZ71ISTV2UAat0bwN+pi85ky38Yq8= +cloud.google.com/go/orgpolicy v1.11.1/go.mod h1:8+E3jQcpZJQliP+zaFfayC2Pg5bmhuLK755wKhIIUCE= +cloud.google.com/go/orgpolicy v1.12.0/go.mod h1:0+aNV/nrfoTQ4Mytv+Aw+stBDBjNf4d8fYRA9herfJI= +cloud.google.com/go/orgpolicy v1.12.1/go.mod h1:aibX78RDl5pcK3jA8ysDQCFkVxLj3aOQqrbBaUL2V5I= +cloud.google.com/go/osconfig v1.12.1/go.mod h1:4CjBxND0gswz2gfYRCUoUzCm9zCABp91EeTtWXyz0tE= +cloud.google.com/go/osconfig v1.12.4/go.mod h1:B1qEwJ/jzqSRslvdOCI8Kdnp0gSng0xW4LOnIebQomA= +cloud.google.com/go/osconfig v1.12.5/go.mod h1:D9QFdxzfjgw3h/+ZaAb5NypM8bhOMqBzgmbhzWViiW8= +cloud.google.com/go/oslogin v1.10.1/go.mod h1:x692z7yAue5nE7CsSnoG0aaMbNoRJRXO4sn73R+ZqAs= +cloud.google.com/go/oslogin v1.12.2/go.mod h1:CQ3V8Jvw4Qo4WRhNPF0o+HAM4DiLuE27Ul9CX9g2QdY= +cloud.google.com/go/oslogin v1.13.1/go.mod h1:vS8Sr/jR7QvPWpCjNqy6LYZr5Zs1e8ZGW/KPn9gmhws= +cloud.google.com/go/phishingprotection v0.8.1/go.mod h1:AxonW7GovcA8qdEk13NfHq9hNx5KPtfxXNeUxTDxB6I= +cloud.google.com/go/phishingprotection v0.8.4/go.mod h1:6b3kNPAc2AQ6jZfFHioZKg9MQNybDg4ixFd4RPZZ2nE= +cloud.google.com/go/phishingprotection v0.8.5/go.mod h1:g1smd68F7mF1hgQPuYn3z8HDbNre8L6Z0b7XMYFmX7I= +cloud.google.com/go/policytroubleshooter v1.9.0/go.mod h1:+E2Lga7TycpeSTj2FsH4oXxTnrbHJGRlKhVZBLGgU64= +cloud.google.com/go/policytroubleshooter v1.10.2/go.mod h1:m4uF3f6LseVEnMV6nknlN2vYGRb+75ylQwJdnOXfnv0= +cloud.google.com/go/policytroubleshooter v1.10.3/go.mod h1:+ZqG3agHT7WPb4EBIRqUv4OyIwRTZvsVDHZ8GlZaoxk= +cloud.google.com/go/privatecatalog v0.9.1/go.mod h1:0XlDXW2unJXdf9zFz968Hp35gl/bhF4twwpXZAW50JA= +cloud.google.com/go/privatecatalog v0.9.4/go.mod h1:SOjm93f+5hp/U3PqMZAHTtBtluqLygrDrVO8X8tYtG0= +cloud.google.com/go/privatecatalog v0.9.5/go.mod h1:fVWeBOVe7uj2n3kWRGlUQqR/pOd450J9yZoOECcQqJk= +cloud.google.com/go/pubsub v1.33.0/go.mod h1:f+w71I33OMyxf9VpMVcZbnG5KSUkCOUHYpFd5U1GdRc= +cloud.google.com/go/pubsub v1.36.1/go.mod h1:iYjCa9EzWOoBiTdd4ps7QoMtMln5NwaZQpK1hbRfBDE= +cloud.google.com/go/pubsublite v1.8.1/go.mod h1:fOLdU4f5xldK4RGJrBMm+J7zMWNj/k4PxwEZXy39QS0= +cloud.google.com/go/recaptchaenterprise/v2 v2.7.2/go.mod h1:kR0KjsJS7Jt1YSyWFkseQ756D45kaYNTlDPPaRAvDBU= +cloud.google.com/go/recaptchaenterprise/v2 v2.9.0/go.mod h1:Dak54rw6lC2gBY8FBznpOCAR58wKf+R+ZSJRoeJok4w= +cloud.google.com/go/recaptchaenterprise/v2 v2.9.2/go.mod h1:trwwGkfhCmp05Ll5MSJPXY7yvnO0p4v3orGANAFHAuU= +cloud.google.com/go/recommendationengine v0.8.1/go.mod h1:MrZihWwtFYWDzE6Hz5nKcNz3gLizXVIDI/o3G1DLcrE= +cloud.google.com/go/recommendationengine v0.8.4/go.mod h1:GEteCf1PATl5v5ZsQ60sTClUE0phbWmo3rQ1Js8louU= +cloud.google.com/go/recommendationengine v0.8.5/go.mod h1:A38rIXHGFvoPvmy6pZLozr0g59NRNREz4cx7F58HAsQ= +cloud.google.com/go/recommender v1.11.0/go.mod h1:kPiRQhPyTJ9kyXPCG6u/dlPLbYfFlkwHNRwdzPVAoII= +cloud.google.com/go/recommender v1.12.0/go.mod h1:+FJosKKJSId1MBFeJ/TTyoGQZiEelQQIZMKYYD8ruK4= +cloud.google.com/go/recommender v1.12.1/go.mod h1:gf95SInWNND5aPas3yjwl0I572dtudMhMIG4ni8nr+0= +cloud.google.com/go/redis v1.13.1/go.mod h1:VP7DGLpE91M6bcsDdMuyCm2hIpB6Vp2hI090Mfd1tcg= +cloud.google.com/go/redis v1.14.1/go.mod h1:MbmBxN8bEnQI4doZPC1BzADU4HGocHBk2de3SbgOkqs= +cloud.google.com/go/redis v1.14.2/go.mod h1:g0Lu7RRRz46ENdFKQ2EcQZBAJ2PtJHJLuiiRuEXwyQw= +cloud.google.com/go/resourcemanager v1.9.1/go.mod h1:dVCuosgrh1tINZ/RwBufr8lULmWGOkPS8gL5gqyjdT8= +cloud.google.com/go/resourcemanager v1.9.4/go.mod h1:N1dhP9RFvo3lUfwtfLWVxfUWq8+KUQ+XLlHLH3BoFJ0= +cloud.google.com/go/resourcemanager v1.9.5/go.mod h1:hep6KjelHA+ToEjOfO3garMKi/CLYwTqeAw7YiEI9x8= +cloud.google.com/go/resourcesettings v1.6.1/go.mod h1:M7mk9PIZrC5Fgsu1kZJci6mpgN8o0IUzVx3eJU3y4Jw= +cloud.google.com/go/resourcesettings v1.6.4/go.mod h1:pYTTkWdv2lmQcjsthbZLNBP4QW140cs7wqA3DuqErVI= +cloud.google.com/go/resourcesettings v1.6.5/go.mod h1:WBOIWZraXZOGAgoR4ukNj0o0HiSMO62H9RpFi9WjP9I= +cloud.google.com/go/retail v1.14.1/go.mod h1:y3Wv3Vr2k54dLNIrCzenyKG8g8dhvhncT2NcNjb/6gE= +cloud.google.com/go/retail v1.14.4/go.mod h1:l/N7cMtY78yRnJqp5JW8emy7MB1nz8E4t2yfOmklYfg= +cloud.google.com/go/retail v1.16.0/go.mod h1:LW7tllVveZo4ReWt68VnldZFWJRzsh9np+01J9dYWzE= +cloud.google.com/go/run v1.2.0/go.mod h1:36V1IlDzQ0XxbQjUx6IYbw8H3TJnWvhii963WW3B/bo= +cloud.google.com/go/run v1.3.3/go.mod h1:WSM5pGyJ7cfYyYbONVQBN4buz42zFqwG67Q3ch07iK4= +cloud.google.com/go/run v1.3.4/go.mod h1:FGieuZvQ3tj1e9GnzXqrMABSuir38AJg5xhiYq+SF3o= +cloud.google.com/go/scheduler v1.10.1/go.mod h1:R63Ldltd47Bs4gnhQkmNDse5w8gBRrhObZ54PxgR2Oo= +cloud.google.com/go/scheduler v1.10.5/go.mod h1:MTuXcrJC9tqOHhixdbHDFSIuh7xZF2IysiINDuiq6NI= +cloud.google.com/go/scheduler v1.10.6/go.mod h1:pe2pNCtJ+R01E06XCDOJs1XvAMbv28ZsQEbqknxGOuE= +cloud.google.com/go/secretmanager v1.11.1/go.mod h1:znq9JlXgTNdBeQk9TBW/FnR/W4uChEKGeqQWAJ8SXFw= +cloud.google.com/go/secretmanager v1.11.4/go.mod h1:wreJlbS9Zdq21lMzWmJ0XhWW2ZxgPeahsqeV/vZoJ3w= +cloud.google.com/go/secretmanager v1.11.5/go.mod h1:eAGv+DaCHkeVyQi0BeXgAHOU0RdrMeZIASKc+S7VqH4= +cloud.google.com/go/security v1.15.1/go.mod h1:MvTnnbsWnehoizHi09zoiZob0iCHVcL4AUBj76h9fXA= +cloud.google.com/go/security v1.15.4/go.mod h1:oN7C2uIZKhxCLiAAijKUCuHLZbIt/ghYEo8MqwD/Ty4= +cloud.google.com/go/security v1.15.5/go.mod h1:KS6X2eG3ynWjqcIX976fuToN5juVkF6Ra6c7MPnldtc= +cloud.google.com/go/securitycenter v1.23.0/go.mod h1:8pwQ4n+Y9WCWM278R8W3nF65QtY172h4S8aXyI9/hsQ= +cloud.google.com/go/securitycenter v1.24.3/go.mod h1:l1XejOngggzqwr4Fa2Cn+iWZGf+aBLTXtB/vXjy5vXM= +cloud.google.com/go/securitycenter v1.24.4/go.mod h1:PSccin+o1EMYKcFQzz9HMMnZ2r9+7jbc+LvPjXhpwcU= +cloud.google.com/go/servicecontrol v1.10.0/go.mod h1:pQvyvSRh7YzUF2efw7H87V92mxU8FnFDawMClGCNuAA= +cloud.google.com/go/servicecontrol v1.11.0/go.mod h1:kFmTzYzTUIuZs0ycVqRHNaNhgR+UMUpw9n02l/pY+mc= +cloud.google.com/go/servicecontrol v1.11.1/go.mod h1:aSnNNlwEFBY+PWGQ2DoM0JJ/QUXqV5/ZD9DOLB7SnUk= +cloud.google.com/go/servicedirectory v1.11.0/go.mod h1:Xv0YVH8s4pVOwfM/1eMTl0XJ6bzIOSLDt8f8eLaGOxQ= +cloud.google.com/go/servicedirectory v1.11.3/go.mod h1:LV+cHkomRLr67YoQy3Xq2tUXBGOs5z5bPofdq7qtiAw= +cloud.google.com/go/servicedirectory v1.11.4/go.mod h1:Bz2T9t+/Ehg6x+Y7Ycq5xiShYLD96NfEsWNHyitj1qM= +cloud.google.com/go/servicemanagement v1.6.0/go.mod h1:aWns7EeeCOtGEX4OvZUWCCJONRZeFKiptqKf1D0l/Jc= +cloud.google.com/go/servicemanagement v1.8.0/go.mod h1:MSS2TDlIEQD/fzsSGfCdJItQveu9NXnUniTrq/L8LK4= +cloud.google.com/go/serviceusage v1.5.0/go.mod h1:w8U1JvqUqwJNPEOTQjrMHkw3IaIFLoLsPLvsE3xueec= +cloud.google.com/go/serviceusage v1.6.0/go.mod h1:R5wwQcbOWsyuOfbP9tGdAnCAc6B9DRwPG1xtWMDeuPA= +cloud.google.com/go/shell v1.7.1/go.mod h1:u1RaM+huXFaTojTbW4g9P5emOrrmLE69KrxqQahKn4g= +cloud.google.com/go/shell v1.7.4/go.mod h1:yLeXB8eKLxw0dpEmXQ/FjriYrBijNsONpwnWsdPqlKM= +cloud.google.com/go/shell v1.7.5/go.mod h1:hL2++7F47/IfpfTO53KYf1EC+F56k3ThfNEXd4zcuiE= +cloud.google.com/go/spanner v1.49.0/go.mod h1:eGj9mQGK8+hkgSVbHNQ06pQ4oS+cyc4tXXd6Dif1KoM= +cloud.google.com/go/spanner v1.54.0/go.mod h1:wZvSQVBgngF0Gq86fKup6KIYmN2be7uOKjtK97X+bQU= +cloud.google.com/go/spanner v1.57.0/go.mod h1:aXQ5QDdhPRIqVhYmnkAdwPYvj/DRN0FguclhEWw+jOo= +cloud.google.com/go/speech v1.19.0/go.mod h1:8rVNzU43tQvxDaGvqOhpDqgkJTFowBpDvCJ14kGlJYo= +cloud.google.com/go/speech v1.21.0/go.mod h1:wwolycgONvfz2EDU8rKuHRW3+wc9ILPsAWoikBEWavY= +cloud.google.com/go/speech v1.21.1/go.mod h1:E5GHZXYQlkqWQwY5xRSLHw2ci5NMQNG52FfMU1aZrIA= +cloud.google.com/go/storage v1.30.1/go.mod h1:NfxhC0UJE1aXSx7CIIbCf7y9HKT7BiccwkR7+P7gN8E= +cloud.google.com/go/storage v1.35.1/go.mod h1:M6M/3V/D3KpzMTJyPOR/HU6n2Si5QdaXYEsng2xgOs8= +cloud.google.com/go/storage v1.36.0/go.mod h1:M6M/3V/D3KpzMTJyPOR/HU6n2Si5QdaXYEsng2xgOs8= +cloud.google.com/go/storage v1.37.0/go.mod h1:i34TiT2IhiNDmcj65PqwCjcoUX7Z5pLzS8DEmoiFq1k= +cloud.google.com/go/storage v1.38.0/go.mod h1:tlUADB0mAb9BgYls9lq+8MGkfzOXuLrnHXlpHmvFJoY= +cloud.google.com/go/storagetransfer v1.10.0/go.mod h1:DM4sTlSmGiNczmV6iZyceIh2dbs+7z2Ayg6YAiQlYfA= +cloud.google.com/go/storagetransfer v1.10.3/go.mod h1:Up8LY2p6X68SZ+WToswpQbQHnJpOty/ACcMafuey8gc= +cloud.google.com/go/storagetransfer v1.10.4/go.mod h1:vef30rZKu5HSEf/x1tK3WfWrL0XVoUQN/EPDRGPzjZs= +cloud.google.com/go/talent v1.6.2/go.mod h1:CbGvmKCG61mkdjcqTcLOkb2ZN1SrQI8MDyma2l7VD24= +cloud.google.com/go/talent v1.6.5/go.mod h1:Mf5cma696HmE+P2BWJ/ZwYqeJXEeU0UqjHFXVLadEDI= +cloud.google.com/go/talent v1.6.6/go.mod h1:y/WQDKrhVz12WagoarpAIyKKMeKGKHWPoReZ0g8tseQ= +cloud.google.com/go/texttospeech v1.7.1/go.mod h1:m7QfG5IXxeneGqTapXNxv2ItxP/FS0hCZBwXYqucgSk= +cloud.google.com/go/texttospeech v1.7.4/go.mod h1:vgv0002WvR4liGuSd5BJbWy4nDn5Ozco0uJymY5+U74= +cloud.google.com/go/texttospeech v1.7.5/go.mod h1:tzpCuNWPwrNJnEa4Pu5taALuZL4QRRLcb+K9pbhXT6M= +cloud.google.com/go/tpu v1.6.1/go.mod h1:sOdcHVIgDEEOKuqUoi6Fq53MKHJAtOwtz0GuKsWSH3E= +cloud.google.com/go/tpu v1.6.4/go.mod h1:NAm9q3Rq2wIlGnOhpYICNI7+bpBebMJbh0yyp3aNw1Y= +cloud.google.com/go/tpu v1.6.5/go.mod h1:P9DFOEBIBhuEcZhXi+wPoVy/cji+0ICFi4TtTkMHSSs= +cloud.google.com/go/trace v1.10.1/go.mod h1:gbtL94KE5AJLH3y+WVpfWILmqgc6dXcqgNXdOPAQTYk= +cloud.google.com/go/trace v1.10.4/go.mod h1:Nso99EDIK8Mj5/zmB+iGr9dosS/bzWCJ8wGmE6TXNWY= +cloud.google.com/go/trace v1.10.5/go.mod h1:9hjCV1nGBCtXbAE4YK7OqJ8pmPYSxPA0I67JwRd5s3M= +cloud.google.com/go/translate v1.9.0/go.mod h1:d1ZH5aaOA0CNhWeXeC8ujd4tdCFw8XoNWRljklu5RHs= +cloud.google.com/go/translate v1.10.0/go.mod h1:Kbq9RggWsbqZ9W5YpM94Q1Xv4dshw/gr/SHfsl5yCZ0= +cloud.google.com/go/translate v1.10.1/go.mod h1:adGZcQNom/3ogU65N9UXHOnnSvjPwA/jKQUMnsYXOyk= +cloud.google.com/go/video v1.20.0/go.mod h1:U3G3FTnsvAGqglq9LxgqzOiBc/Nt8zis8S+850N2DUM= +cloud.google.com/go/video v1.20.3/go.mod h1:TnH/mNZKVHeNtpamsSPygSR0iHtvrR/cW1/GDjN5+GU= +cloud.google.com/go/video v1.20.4/go.mod h1:LyUVjyW+Bwj7dh3UJnUGZfyqjEto9DnrvTe1f/+QrW0= +cloud.google.com/go/videointelligence v1.11.1/go.mod h1:76xn/8InyQHarjTWsBR058SmlPCwQjgcvoW0aZykOvo= +cloud.google.com/go/videointelligence v1.11.4/go.mod h1:kPBMAYsTPFiQxMLmmjpcZUMklJp3nC9+ipJJtprccD8= +cloud.google.com/go/videointelligence v1.11.5/go.mod h1:/PkeQjpRponmOerPeJxNPuxvi12HlW7Em0lJO14FC3I= +cloud.google.com/go/vision/v2 v2.7.2/go.mod h1:jKa8oSYBWhYiXarHPvP4USxYANYUEdEsQrloLjrSwJU= +cloud.google.com/go/vision/v2 v2.7.5/go.mod h1:GcviprJLFfK9OLf0z8Gm6lQb6ZFUulvpZws+mm6yPLM= +cloud.google.com/go/vision/v2 v2.8.0/go.mod h1:ocqDiA2j97pvgogdyhoxiQp2ZkDCyr0HWpicywGGRhU= +cloud.google.com/go/vmmigration v1.7.1/go.mod h1:WD+5z7a/IpZ5bKK//YmT9E047AD+rjycCAvyMxGJbro= +cloud.google.com/go/vmmigration v1.7.4/go.mod h1:yBXCmiLaB99hEl/G9ZooNx2GyzgsjKnw5fWcINRgD70= +cloud.google.com/go/vmmigration v1.7.5/go.mod h1:pkvO6huVnVWzkFioxSghZxIGcsstDvYiVCxQ9ZH3eYI= +cloud.google.com/go/vmwareengine v1.0.0/go.mod h1:Px64x+BvjPZwWuc4HdmVhoygcXqEkGHXoa7uyfTgSI0= +cloud.google.com/go/vmwareengine v1.0.3/go.mod h1:QSpdZ1stlbfKtyt6Iu19M6XRxjmXO+vb5a/R6Fvy2y4= +cloud.google.com/go/vmwareengine v1.1.1/go.mod h1:nMpdsIVkUrSaX8UvmnBhzVzG7PPvNYc5BszcvIVudYs= +cloud.google.com/go/vpcaccess v1.7.1/go.mod h1:FogoD46/ZU+JUBX9D606X21EnxiszYi2tArQwLY4SXs= +cloud.google.com/go/vpcaccess v1.7.4/go.mod h1:lA0KTvhtEOb/VOdnH/gwPuOzGgM+CWsmGu6bb4IoMKk= +cloud.google.com/go/vpcaccess v1.7.5/go.mod h1:slc5ZRvvjP78c2dnL7m4l4R9GwL3wDLcpIWz6P/ziig= +cloud.google.com/go/webrisk v1.9.1/go.mod h1:4GCmXKcOa2BZcZPn6DCEvE7HypmEJcJkr4mtM+sqYPc= +cloud.google.com/go/webrisk v1.9.4/go.mod h1:w7m4Ib4C+OseSr2GL66m0zMBywdrVNTDKsdEsfMl7X0= +cloud.google.com/go/webrisk v1.9.5/go.mod h1:aako0Fzep1Q714cPEM5E+mtYX8/jsfegAuS8aivxy3U= +cloud.google.com/go/websecurityscanner v1.6.1/go.mod h1:Njgaw3rttgRHXzwCB8kgCYqv5/rGpFCsBOvPbYgszpg= +cloud.google.com/go/websecurityscanner v1.6.4/go.mod h1:mUiyMQ+dGpPPRkHgknIZeCzSHJ45+fY4F52nZFDHm2o= +cloud.google.com/go/websecurityscanner v1.6.5/go.mod h1:QR+DWaxAz2pWooylsBF854/Ijvuoa3FCyS1zBa1rAVQ= +cloud.google.com/go/workflows v1.12.0/go.mod h1:PYhSk2b6DhZ508tj8HXKaBh+OFe+xdl0dHF/tJdzPQM= +cloud.google.com/go/workflows v1.12.3/go.mod h1:fmOUeeqEwPzIU81foMjTRQIdwQHADi/vEr1cx9R1m5g= +cloud.google.com/go/workflows v1.12.4/go.mod h1:yQ7HUqOkdJK4duVtMeBCAOPiN1ZF1E9pAMX51vpwB/w= +cosmossdk.io/api v0.2.6/go.mod h1:u/d+GAxil0nWpl1XnQL8nkziQDIWuBDhv8VnDm/s6dI= +cosmossdk.io/api v0.7.0/go.mod h1:kJFAEMLN57y0viszHDPLMmieF0471o5QAwwApa+270M= +cosmossdk.io/core v0.5.1/go.mod h1:KZtwHCLjcFuo0nmDc24Xy6CRNEL9Vl/MeimQ2aC7NLE= +cosmossdk.io/depinject v1.0.0-alpha.3/go.mod h1:eRbcdQ7MRpIPEM5YUJh8k97nxHpYbc3sMUnEtt8HPWU= +cosmossdk.io/log v1.2.0/go.mod h1:GNSCc/6+DhFIj1aLn/j7Id7PaO8DzNylUZoOYBL9+I4= +cosmossdk.io/math v1.1.2/go.mod h1:l2Gnda87F0su8a/7FEKJfFdJrM0JZRXQaohlgJeyQh0= +cosmossdk.io/x/tx v0.13.3 h1:Ha4mNaHmxBc6RMun9aKuqul8yHiL78EKJQ8g23Zf73g= +cosmossdk.io/x/tx v0.13.3/go.mod h1:I8xaHv0rhUdIvIdptKIqzYy27+n2+zBVaxO6fscFhys= +cosmossdk.io/x/upgrade v0.1.0/go.mod h1:/6jjNGbiPCNtmA1N+rBtP601sr0g4ZXuj3yC6ClPCGY= +dario.cat/mergo v1.0.0/go.mod h1:uNxQE+84aUszobStD9th8a29P2fMDhsBdgRYvZOxGmk= +gioui.org v0.0.0-20210308172011-57750fc8a0a6/go.mod h1:RSH6KIUZ0p2xy5zHDxgAM4zumjgTw83q2ge/PI+yyw8= +git.sr.ht/~sbinet/gg v0.3.1/go.mod h1:KGYtlADtqsqANL9ueOFkWymvzUvLMQllU5Ixo+8v3pc= +github.com/Abirdcfly/dupword v0.0.13/go.mod h1:Ut6Ue2KgF/kCOawpW4LnExT+xZLQviJPE4klBPMK/5Y= +github.com/AndreasBriese/bbloom v0.0.0-20190306092124-e2d15f34fcf9/go.mod h1:bOvUY6CB00SOBii9/FifXqc0awNKxLFCL/+pkDPuyl8= +github.com/Antonboom/testifylint v0.2.3/go.mod h1:IYaXaOX9NbfAyO+Y04nfjGI8wDemC1rUyM/cYolz018= +github.com/Azure/azure-sdk-for-go/sdk/azcore v0.21.1/go.mod h1:fBF9PQNqB8scdgpZ3ufzaLntG0AG7C1WjPMsiFOmfHM= +github.com/Azure/azure-sdk-for-go/sdk/internal v0.8.3/go.mod h1:KLF4gFr6DcKFZwSuH8w8yEK6DpFl3LP5rhdvAb7Yz5I= +github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v0.3.0/go.mod h1:tPaiy8S5bQ+S5sOiDlINkp7+Ef339+Nz5L5XO+cnOHo= +github.com/BurntSushi/toml v1.2.1/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ= +github.com/ChainSafe/go-schnorrkel v1.0.0 h1:3aDA67lAykLaG1y3AOjs88dMxC88PgUuHRrLeDnvGIM= +github.com/ChainSafe/go-schnorrkel v1.0.0/go.mod h1:dpzHYVxLZcp8pjlV+O+UR8K0Hp/z7vcchBSbMBEhCw4= +github.com/CloudyKit/fastprinter v0.0.0-20170127035650-74b38d55f37a/go.mod h1:EFZQ978U7x8IRnstaskI3IysnWY5Ao3QgZUKOXlsAdw= +github.com/CloudyKit/fastprinter v0.0.0-20200109182630-33d98a066a53/go.mod h1:+3IMCy2vIlbG1XG/0ggNQv0SvxCAIpPM5b1nCz56Xno= +github.com/CloudyKit/jet v2.1.3-0.20180809161101-62edd43e4f88+incompatible/go.mod h1:HPYO+50pSWkPoj9Q/eq0aRGByCL6ScRlUmiEX5Zgm+w= +github.com/CloudyKit/jet/v3 v3.0.0/go.mod h1:HKQPgSJmdK8hdoAbKUUWajkHyHo4RaU5rMdUywE7VMo= +github.com/CloudyKit/jet/v6 v6.1.0/go.mod h1:d3ypHeIRNo2+XyqnGA8s+aphtcVpjP5hPwP/Lzo7Ro4= +github.com/CloudyKit/jet/v6 v6.2.0/go.mod h1:d3ypHeIRNo2+XyqnGA8s+aphtcVpjP5hPwP/Lzo7Ro4= +github.com/DATA-DOG/go-sqlmock v1.5.0 h1:Shsta01QNfFxHCfpW6YH2STWB0MudeXXEWMr20OEh60= +github.com/DataDog/zstd v1.4.5/go.mod h1:1jcaCB/ufaK+sKp1NBhlGmpz41jOoPQ35bpF36t7BBo= +github.com/DataDog/zstd v1.5.2/go.mod h1:g4AWEaM3yOg3HYfnJ3YIawPnVdXJh9QME85blwSAmyw= +github.com/GaijinEntertainment/go-exhaustruct/v2 v2.3.0/go.mod h1:b3g59n2Y+T5xmcxJL+UEG2f8cQploZm1mR/v6BW0mU0= +github.com/GaijinEntertainment/go-exhaustruct/v3 v3.1.0/go.mod h1:rZLTje5A9kFBe0pzhpe2TdhRniBF++PRHQuRpR8esVc= +github.com/GoogleCloudPlatform/cloudsql-proxy v0.0.0-20190129172621-c8b1d7a94ddf/go.mod h1:aJ4qN3TfrelA6NZ6AXsXRfmEVaYin3EDbSPJrKS8OXo= +github.com/HdrHistogram/hdrhistogram-go v1.1.2/go.mod h1:yDgFjdqOqDEKOvasDdhWNXYg9BVp4O+o5f6V/ehm6Oo= +github.com/Joker/hpp v1.0.0/go.mod h1:8x5n+M1Hp5hC0g8okX3sR3vFQwynaX/UgSOM9MeBKzY= +github.com/Joker/jade v1.0.1-0.20190614124447-d475f43051e7/go.mod h1:6E6s8o2AE4KhCrqr6GRJjdC/gNfTdxkIXvuGZZda2VM= +github.com/Joker/jade v1.1.3/go.mod h1:T+2WLyt7VH6Lp0TRxQrUYEs64nRc83wkMQrfeIQKduM= +github.com/Masterminds/semver/v3 v3.2.0/go.mod h1:qvl/7zhW3nngYb5+80sSMF+FG2BjYrf8m9wsX0PNOMQ= +github.com/Microsoft/go-winio v0.6.0/go.mod h1:cTAf44im0RAYeL23bpB+fzCyDH2MJiz2BO69KH/soAE= +github.com/OpenPeeDeeP/depguard v1.1.1 h1:TSUznLjvp/4IUP+OQ0t/4jF4QUyxIcVX8YnghZdunyA= +github.com/OpenPeeDeeP/depguard v1.1.1/go.mod h1:JtAMzWkmFEzDPyAd+W0NHl1lvpQKTvT9jnRVsohBKpc= +github.com/OpenPeeDeeP/depguard/v2 v2.1.0/go.mod h1:PUBgk35fX4i7JDmwzlJwJ+GMe6NfO1723wmJMgPThNQ= +github.com/ProtonMail/go-crypto v0.0.0-20221026131551-cf6655e29de4/go.mod h1:UBYPn8k0D56RtnR8RFQMjmh4KrZzWJ5o7Z9SYjossQ8= +github.com/ProtonMail/go-crypto v0.0.0-20230828082145-3c4c8a2d2371/go.mod h1:EjAoLdwvbIOoOQr3ihjnSoLZRtE8azugULFRteWMNc0= +github.com/Shopify/goreferrer v0.0.0-20181106222321-ec9c9a553398/go.mod h1:a1uqRtAwp2Xwc6WNPJEufxJ7fx3npB4UV/JOLmbu5I0= +github.com/Shopify/goreferrer v0.0.0-20220729165902-8cddb4f5de06/go.mod h1:7erjKLwalezA0k99cWs5L11HWOAPNjdUZ6RxH1BXbbM= +github.com/StackExchange/wmi v0.0.0-20180116203802-5d049714c4a6/go.mod h1:3eOhrUMpNV+6aFIbp5/iudMxNCF27Vw2OZgy4xEx0Fg= +github.com/VictoriaMetrics/fastcache v1.6.0/go.mod h1:0qHz5QP0GMX4pfmMA/zt5RgfNuXJrTP0zS7DqpHGGTw= +github.com/Workiva/go-datastructures v1.0.53 h1:J6Y/52yX10Xc5JjXmGtWoSSxs3mZnGSaq37xZZh7Yig= +github.com/aclements/go-gg v0.0.0-20170118225347-6dbb4e4fefb0/go.mod h1:55qNq4vcpkIuHowELi5C8e+1yUHtoLoOUR9QU5j7Tes= +github.com/aclements/go-moremath v0.0.0-20210112150236-f10218a38794/go.mod h1:7e+I0LQFUI9AXWxOfsQROs9xPhoJtbsyWcjJqDd4KPY= +github.com/acomagu/bufpipe v1.0.3/go.mod h1:mxdxdup/WdsKVreO5GpW4+M/1CE2sMG4jeGJ2sYmHc4= +github.com/ajg/form v1.5.1/go.mod h1:uL1WgH+h2mgNtvBq0339dVnzXdBETtL2LeUXaIv25UY= +github.com/ajstarks/deck v0.0.0-20200831202436-30c9fc6549a9/go.mod h1:JynElWSGnm/4RlzPXRlREEwqTHAN3T56Bv2ITsFT3gY= +github.com/ajstarks/deck/generate v0.0.0-20210309230005-c3f852c02e19/go.mod h1:T13YZdzov6OU0A1+RfKZiZN9ca6VeKdBdyDV+BY97Tk= +github.com/ajstarks/svgo v0.0.0-20210923152817-c3b6e2f0c527/go.mod h1:K08gAheRH3/J6wwsYMMT4xOr94bZjxIelGM0+d/wbFw= +github.com/ajstarks/svgo v0.0.0-20211024235047-1546f124cd8b/go.mod h1:1KcenG0jGWcpt8ov532z81sp/kMMUG485J2InIOyADM= +github.com/alecthomas/go-check-sumtype v0.1.3/go.mod h1:WyYPfhfkdhyrdaligV6svFopZV8Lqdzn5pyVBaV6jhQ= +github.com/alecthomas/kingpin/v2 v2.3.1/go.mod h1:oYL5vtsvEHZGHxU7DMp32Dvx+qL+ptGn6lWaot2vCNE= +github.com/alecthomas/kingpin/v2 v2.4.0/go.mod h1:0gyi0zQnjuFk8xrkNKamJoyUo382HRL7ATRpFZCw6tE= +github.com/alecthomas/participle/v2 v2.0.0-alpha7/go.mod h1:NumScqsC42o9x+dGj8/YqsIfhrIQjFEOFovxotbBirA= +github.com/alecthomas/units v0.0.0-20211218093645-b94a6e3cc137/go.mod h1:OMCwj8VM1Kc9e19TLln2VL61YJF0x1XFtfdL4JdbSyE= +github.com/alexkohler/nakedret/v2 v2.0.2/go.mod h1:2b8Gkk0GsOrqQv/gPWjNLDSKwG8I5moSXG1K4VIBcTQ= +github.com/andybalholm/brotli v1.0.4/go.mod h1:fO7iG3H7G2nSZ7m0zPUDn85XEX2GTukHGRSepvi9Eig= +github.com/andybalholm/brotli v1.0.5/go.mod h1:fO7iG3H7G2nSZ7m0zPUDn85XEX2GTukHGRSepvi9Eig= +github.com/apache/arrow/go/v12 v12.0.0/go.mod h1:d+tV/eHZZ7Dz7RPrFKtPK02tpr+c9/PEd/zm8mDS9Vg= +github.com/apache/arrow/go/v14 v14.0.2/go.mod h1:u3fgh3EdgN/YQ8cVQRguVW3R+seMybFg8QBQ5LU+eBY= +github.com/apache/thrift v0.16.0/go.mod h1:PHK3hniurgQaNMZYaCLEqXKsYK8upmhPbmdP2FXSqgU= +github.com/armon/go-metrics v0.4.1 h1:hR91U9KYmb6bLBYLQjyM+3j+rcd/UhE+G78SFnF8gJA= +github.com/armon/go-metrics v0.4.1/go.mod h1:E6amYzXo6aW1tqzoZGT755KkbgrJsSdpwZ+3JqfkOG4= +github.com/aws/aws-sdk-go v1.40.45/go.mod h1:585smgzpB/KqRA+K3y/NL/oYRqQvpNJYvLm+LY1U59Q= +github.com/aws/aws-sdk-go-v2 v1.9.1/go.mod h1:cK/D0BBs0b/oWPIcX/Z/obahJK1TT7IPVjy53i/mX/4= +github.com/aws/aws-sdk-go-v2/config v1.1.1/go.mod h1:0XsVy9lBI/BCXm+2Tuvt39YmdHwS5unDQmxZOYe8F5Y= +github.com/aws/aws-sdk-go-v2/credentials v1.1.1/go.mod h1:mM2iIjwl7LULWtS6JCACyInboHirisUUdkBPoTHMOUo= +github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.0.2/go.mod h1:3hGg3PpiEjHnrkrlasTfxFqUsZ2GCk/fMUn4CbKgSkM= +github.com/aws/aws-sdk-go-v2/service/cloudwatch v1.8.1/go.mod h1:CM+19rL1+4dFWnOQKwDc7H1KwXTz+h61oUSHyhV0b3o= +github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.0.2/go.mod h1:45MfaXZ0cNbeuT0KQ1XJylq8A6+OpVV2E5kvY/Kq+u8= +github.com/aws/aws-sdk-go-v2/service/route53 v1.1.1/go.mod h1:rLiOUrPLW/Er5kRcQ7NkwbjlijluLsrIbu/iyl35RO4= +github.com/aws/aws-sdk-go-v2/service/sso v1.1.1/go.mod h1:SuZJxklHxLAXgLTc1iFXbEWkXs7QRTQpCLGaKIprQW0= +github.com/aws/aws-sdk-go-v2/service/sts v1.1.1/go.mod h1:Wi0EBZwiz/K44YliU0EKxqTCJGUfYTWXrrBwkq736bM= +github.com/aws/smithy-go v1.8.0/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aymerick/douceur v0.2.0/go.mod h1:wlT5vV2O3h55X9m7iVYN0TBM0NH/MmbLnd30/FjWUq4= +github.com/aymerick/raymond v2.0.3-0.20180322193309-b565731e1464+incompatible/go.mod h1:osfaiScAUVup+UC9Nfq76eWqDhXlp+4UYaA8uhTBO6g= +github.com/bits-and-blooms/bitset v1.7.0/go.mod h1:gIdJ4wp64HaoK2YrL1Q5/N7Y16edYb8uY+O0FJTyyDA= +github.com/blang/semver/v4 v4.0.0/go.mod h1:IbckMUScFkM3pff0VJDNKRiT6TG/YpiHIM2yvyW5YoQ= +github.com/bombsimon/wsl/v3 v3.4.0 h1:RkSxjT3tmlptwfgEgTgU+KYKLI35p/tviNXNXiL2aNU= +github.com/bombsimon/wsl/v3 v3.4.0/go.mod h1:KkIB+TXkqy6MvK9BDZVbZxKNYsE1/oLRJbIFtf14qqo= +github.com/boombuler/barcode v1.0.0/go.mod h1:paBWMcWSl3LHKBqUq+rly7CNSldXjb2rDl3JlRe0mD8= +github.com/boombuler/barcode v1.0.1/go.mod h1:paBWMcWSl3LHKBqUq+rly7CNSldXjb2rDl3JlRe0mD8= +github.com/bufbuild/buf v1.9.0/go.mod h1:1Q+rMHiMVcfgScEF/GOldxmu4o9TrQ2sQQh58K6MscE= +github.com/bufbuild/buf v1.15.1/go.mod h1:TQeGKam1QMfHy/xsSnnMpxN3JK5HBb6aNvZj4m52gkE= +github.com/bufbuild/connect-go v1.0.0/go.mod h1:9iNvh/NOsfhNBUH5CtvXeVUskQO1xsrEviH7ZArwZ3I= +github.com/bufbuild/connect-go v1.5.2/go.mod h1:GmMJYR6orFqD0Y6ZgX8pwQ8j9baizDrIQMm1/a6LnHk= +github.com/bufbuild/protocompile v0.1.0/go.mod h1:ix/MMMdsT3fzxfw91dvbfzKW3fRRnuPCP47kpAm5m/4= +github.com/butuzov/ireturn v0.2.1/go.mod h1:RfGHUvvAuFFxoHKf4Z8Yxuh6OjlCw1KvR2zM1NFHeBk= +github.com/casbin/casbin/v2 v2.37.0/go.mod h1:vByNa/Fchek0KZUgG5wEsl7iFsiviAYKRtgrQfcJqHg= +github.com/catenacyber/perfsprint v0.2.0/go.mod h1:/wclWYompEyjUD2FuIIDVKNkqz7IgBIWXIH3V0Zol50= +github.com/ccojocar/zxcvbn-go v1.0.1/go.mod h1:g1qkXtUSvHP8lhHp5GrSmTz6uWALGRMQdw6Qnz/hi60= +github.com/census-instrumentation/opencensus-proto v0.4.1/go.mod h1:4T9NM4+4Vw91VeyqjLS6ao50K5bOcLKN6Q42XnYaRYw= +github.com/cespare/cp v0.1.0/go.mod h1:SOGHArjBr4JWaSDEVpWpo/hNg6RoKrls6Oh40hiwW+s= +github.com/cespare/xxhash/v2 v2.2.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= +github.com/cheekybits/is v0.0.0-20150225183255-68e9c0620927/go.mod h1:h/aW8ynjgkuj+NQRlZcDbAbM1ORAbXjXX77sX7T289U= +github.com/chigopher/pathlib v0.12.0/go.mod h1:EJ5UtJ/sK8Nt6q3VWN+EwZLZ3g0afJiG8NegYiQQ/gQ= +github.com/chzyer/logex v1.1.10 h1:Swpa1K6QvQznwJRcfTfQJmTE72DqScAa40E+fbHEXEE= +github.com/chzyer/logex v1.2.0/go.mod h1:9+9sk7u7pGNWYMkh0hdiL++6OeibzJccyQU4p4MedaY= +github.com/chzyer/logex v1.2.1 h1:XHDu3E6q+gdHgsdTPH6ImJMIp436vR6MPtH8gP05QzM= +github.com/chzyer/logex v1.2.1/go.mod h1:JLbx6lG2kDbNRFnfkgvh4eRJRPX1QCoOIWomwysCBrQ= +github.com/chzyer/readline v1.5.0/go.mod h1:x22KAscuvRqlLoK9CsoYsmxoXZMMFVyOl86cAH8qUic= +github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1 h1:q763qf9huN11kDQavWsoZXJNW3xEE4JJyHa5Q25/sd8= +github.com/chzyer/test v0.0.0-20210722231415-061457976a23/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= +github.com/chzyer/test v1.0.0 h1:p3BQDXSxOhOG0P9z6/hGnII4LGiEPOYBhs8asl/fC04= +github.com/chzyer/test v1.0.0/go.mod h1:2JlltgoNkt4TW/z9V/IzDdFaMTM2JPIi26O1pF38GC8= +github.com/circlefin/noble-fiattokenfactory v0.0.0-20231026180023-32fd993c1f60/go.mod h1:rcUYSPnkN4M+epaMh2Y31V16rMDFQiY+OjRF+dwHDxE= +github.com/clbanning/mxj v1.8.4/go.mod h1:BVjHeAH+rl9rs6f+QIpeRl0tfu10SXn1pUSa5PVGJng= +github.com/cloudflare/circl v1.3.1/go.mod h1:+CauBF6R70Jqcyl8N2hC8pAXYbWkGIezuSbuGLtRhnw= +github.com/cloudflare/circl v1.3.7/go.mod h1:sRTcRWXGLrKw6yIGJ+l7amYJFfAXbZG0kBSc8r4zxgA= +github.com/cloudflare/cloudflare-go v0.14.0/go.mod h1:EnwdgGMaFOruiPZRFSgn+TsQ3hQ7C/YWzIGLeu5c304= +github.com/cncf/udpa/go v0.0.0-20220112060539-c52dc94e7fbe/go.mod h1:6pvJx4me5XPnfI9Z40ddWsdw2W/uZgQLFXToKeRcDiI= +github.com/cncf/xds/go v0.0.0-20220314180256-7f1daf1720fc/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= +github.com/cncf/xds/go v0.0.0-20230428030218-4003588d1b74/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= +github.com/cncf/xds/go v0.0.0-20230607035331-e9ce68804cb4/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= +github.com/cncf/xds/go v0.0.0-20231109132714-523115ebc101/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= +github.com/cncf/xds/go v0.0.0-20240423153145-555b57ec207b/go.mod h1:W+zGtBO5Y1IgJhy4+A9GOqVhqLpfZi+vwmdNXUehLA8= +github.com/cockroachdb/apd/v3 v3.1.0/go.mod h1:6qgPBMXjATAdD/VefbRP9NoSLKjbB4LCoA7gN4LpHs4= +github.com/cockroachdb/datadriven v1.0.0/go.mod h1:5Ib8Meh+jk1RlHIXej6Pzevx/NLlNvQB9pmSBZErGA4= +github.com/cockroachdb/datadriven v1.0.2/go.mod h1:a9RdTaap04u637JoCzcUoIcDmvwSUtcUFtT/C3kJlTU= +github.com/cockroachdb/errors v1.6.1/go.mod h1:tm6FTP5G81vwJ5lC0SizQo374JNCOPrHyXGitRJoDqM= +github.com/cockroachdb/errors v1.8.1/go.mod h1:qGwQn6JmZ+oMjuLwjWzUNqblqk0xl4CVV3SQbGwK7Ac= +github.com/cockroachdb/errors v1.9.1/go.mod h1:2sxOtL2WIc096WSZqZ5h8fa17rdDq9HZOZLBCor4mBk= +github.com/cockroachdb/errors v1.10.0/go.mod h1:lknhIsEVQ9Ss/qKDBQS/UqFSvPQjOwNq2qyKAxtHRqE= +github.com/cockroachdb/logtags v0.0.0-20190617123548-eb05cc24525f/go.mod h1:i/u985jwjWRlyHXQbwatDASoW0RMlZ/3i9yJHE2xLkI= +github.com/cockroachdb/logtags v0.0.0-20211118104740-dabe8e521a4f/go.mod h1:Vz9DsVWQQhf3vs21MhPMZpMGSht7O/2vFW2xusFUVOs= +github.com/cockroachdb/pebble v0.0.0-20220817183557-09c6e030a677/go.mod h1:890yq1fUb9b6dGNwssgeUO5vQV9qfXnCPxAJhBQfXw0= +github.com/cockroachdb/pebble v0.0.0-20230209160836-829675f94811/go.mod h1:Nb5lgvnQ2+oGlE/EyZy4+2/CxRh9KfvCXnag1vtpxVM= +github.com/cockroachdb/pebble v0.0.0-20230525220056-bb4fc9527b3b/go.mod h1:TkdVsGYRqtULUppt2RbC+YaKtTHnHoWa2apfFrSKABw= +github.com/cockroachdb/redact v1.0.8/go.mod h1:BVNblN9mBWFyMyqK1k3AAiSxhvhfK2oOZZ2lK+dpvRg= +github.com/cockroachdb/redact v1.1.3/go.mod h1:BVNblN9mBWFyMyqK1k3AAiSxhvhfK2oOZZ2lK+dpvRg= +github.com/cockroachdb/sentry-go v0.6.1-cockroachdb.2/go.mod h1:8BT+cPK6xvFOcRlk0R8eg+OTkcqI6baNH4xAkpiYVvQ= +github.com/codegangsta/inject v0.0.0-20150114235600-33e0aa1cb7c0/go.mod h1:4Zcjuz89kmFXt9morQgcfYZAYZ5n8WHjt81YYWIwtTM= +github.com/cometbft/cometbft v0.38.7 h1:ULhIOJ9+LgSy6nLekhq9ae3juX3NnQUMMPyVdhZV6Hk= +github.com/cometbft/cometbft v0.38.7/go.mod h1:HIyf811dFMI73IE0F7RrnY/Fr+d1+HuJAgtkEpQjCMY= +github.com/cometbft/cometbft-db v0.14.0 h1:dKnK/tQL8BwciH6SgFEuZxwKupMokR4NlwYfJWy7C48= +github.com/cometbft/cometbft-db v0.14.0/go.mod h1:JOXKwjrxS/MW5qJ1xuVpELa8HGBVgHpgI+t8j0L0JEo= +github.com/confio/ics23/go v0.9.1/go.mod h1:4LPZ2NYqnYIVRklaozjNR1FScgDJ2s5Xrp+e/mYVRak= +github.com/consensys/bavard v0.1.13/go.mod h1:9ItSMtA/dXMAiL7BG6bqW2m3NdSEObYWoH223nGHukI= +github.com/consensys/gnark-crypto v0.10.0/go.mod h1:Iq/P3HHl0ElSjsg2E1gsMwhAyxnxoKK5nVyZKd+/KhU= +github.com/containerd/containerd v1.6.8/go.mod h1:By6p5KqPK0/7/CgO/A6t/Gz+CUYUu2zf1hUaaymVXB0= +github.com/containerd/typeurl v1.0.2/go.mod h1:9trJWW2sRlGub4wZJRTW83VtbOLS6hwcDZXTn6oPz9s= +github.com/coreos/bbolt v1.3.2/go.mod h1:iRUV2dpdMOn7Bo10OQBFzIJO9kkE559Wcmn+qkEiiKk= +github.com/coreos/go-semver v0.3.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= +github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= +github.com/cosmos/cosmos-db v0.0.0-20221226095112-f3c38ecb5e32/go.mod h1:kwMlEC4wWvB48zAShGKVqboJL6w4zCLesaNQ3YLU2BQ= +github.com/cosmos/cosmos-db v1.0.0/go.mod h1:iBvi1TtqaedwLdcrZVYRSSCb6eSy61NLj4UNmdIgs0U= +github.com/cosmos/cosmos-proto v1.0.0-beta.2/go.mod h1:+XRCLJ14pr5HFEHIUcn51IKXD1Fy3rkEQqt4WqmN4V0= +github.com/cosmos/cosmos-proto v1.0.0-beta.3/go.mod h1:t8IASdLaAq+bbHbjq4p960BvcTqtwuAxid3b/2rOD6I= +github.com/cosmos/cosmos-sdk v0.50.7 h1:LsBGKxifENR/DN4E1RZaitsyL93HU44x0p8EnMHp4V4= +github.com/cosmos/cosmos-sdk v0.50.7/go.mod h1:84xDDJEHttRT7NDGwBaUOLVOMN0JNE9x7NbsYIxXs1s= +github.com/cosmos/go-bip39 v0.0.0-20180819234021-555e2067c45d/go.mod h1:tSxLoYXyBmiFeKpvmq4dzayMdCjCnu8uqmCysIGBT2Y= +github.com/cosmos/gogoproto v1.4.3 h1:RP3yyVREh9snv/lsOvmsAPQt8f44LgL281X0IOIhhcI= +github.com/cosmos/gogoproto v1.4.3/go.mod h1:0hLIG5TR7IvV1fme1HCFKjfzW9X2x0Mo+RooWXCnOWU= +github.com/cosmos/gogoproto v1.4.11/go.mod h1:/g39Mh8m17X8Q/GDEs5zYTSNaNnInBSohtaxzQnYq1Y= +github.com/cosmos/iavl v0.19.5/go.mod h1:X9PKD3J0iFxdmgNLa7b2LYWdsGd90ToV5cAONApkEPw= +github.com/cosmos/ibc-go/modules/capability v1.0.0/go.mod h1:D81ZxzjZAe0ZO5ambnvn1qedsFQ8lOwtqicG6liLBco= +github.com/cosmos/ibc-go/v8 v8.2.0/go.mod h1:wj3qx75iC/XNnsMqbPDCIGs0G6Y3E/lo3bdqCyoCy+8= +github.com/cosmos/ledger-cosmos-go v0.12.2/go.mod h1:ZcqYgnfNJ6lAXe4HPtWgarNEY+B74i+2/8MhZw4ziiI= +github.com/crate-crypto/go-ipa v0.0.0-20220523130400-f11357ae11c7/go.mod h1:gFnFS95y8HstDP6P9pPwzrxOOC5TRDkwbM+ao15ChAI= +github.com/crate-crypto/go-kzg-4844 v0.2.0/go.mod h1:SBP7ikXEgDnUPONgm33HtuDZEDtWa3L4QtN1ocJSEQ4= +github.com/cristalhq/acmd v0.11.1/go.mod h1:LG5oa43pE/BbxtfMoImHCQN++0Su7dzipdgBjMCBVDQ= +github.com/cristalhq/acmd v0.11.2/go.mod h1:LG5oa43pE/BbxtfMoImHCQN++0Su7dzipdgBjMCBVDQ= +github.com/cucumber/common/gherkin/go/v22 v22.0.0/go.mod h1:3mJT10B2GGn3MvVPd3FwR7m2u4tLhSRhWUqJU4KN4Fg= +github.com/cucumber/common/messages/go/v17 v17.1.1/go.mod h1:bpGxb57tDE385Rb2EohgUadLkAbhoC4IyCFi89u/JQI= +github.com/cyphar/filepath-securejoin v0.2.4/go.mod h1:aPGpWjXOXUn2NCNjFvBE6aRxGGx79pTxQpKOJNYHHl4= +github.com/daixiang0/gci v0.11.2/go.mod h1:xtHP9N7AHdNvtRNfcx9gwTDfw7FRJx4bZUsiEfiNNAI= +github.com/deckarep/golang-set/v2 v2.1.0/go.mod h1:VAky9rY/yGXJOLEDv3OMci+7wtDpOF4IN+y82NBOac4= +github.com/decred/dcrd/crypto/blake256 v1.0.0/go.mod h1:sQl2p6Y26YV+ZOcSTP6thNdn47hh8kt6rqSlvmrXFAc= +github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.1/go.mod h1:hyedUtir6IdtD/7lIxGeCxkaw7y45JueMRL4DIyJDKs= +github.com/decred/dcrd/dcrec/secp256k1/v4 v4.1.0/go.mod h1:DZGJHZMqrU4JJqFAWUS2UO1+lbSKsdiOoYi9Zzey7Fc= +github.com/deepmap/oapi-codegen v1.8.2/go.mod h1:YLgSKSDv/bZQB7N4ws6luhozi3cEdRktEqrX88CvjIw= +github.com/dgraph-io/badger v1.6.0/go.mod h1:zwt7syl517jmP8s94KqSxTlM6IMsdhYy6psNgSztDR4= +github.com/dgraph-io/badger/v4 v4.2.0/go.mod h1:qfCqhPoWDFJRx1gp5QwwyGo8xk1lbHUxvK9nK0OGAak= +github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f/go.mod h1:cuUVRXasLTGF7a8hSLbxyZXjz+1KgoB3wDUb6vlszIc= +github.com/dgryski/go-sip13 v0.0.0-20181026042036-e10d5fee7954/go.mod h1:vAd38F8PWV+bWy6jNmig1y/TA+kYO4g3RSRF0IAv0no= +github.com/djherbis/atime v1.1.0/go.mod h1:28OF6Y8s3NQWwacXc5eZTsEsiMzp7LF8MbXE+XJPdBE= +github.com/dlclark/regexp2 v1.7.0/go.mod h1:DHkYz0B9wPfa6wondMfaivmHpzrQ3v9q8cnmRbL6yW8= +github.com/docker/cli v23.0.1+incompatible/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8= +github.com/docker/distribution v2.8.1+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w= +github.com/docker/docker v20.10.19+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= +github.com/docker/docker v23.0.1+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= +github.com/docker/docker-credential-helpers v0.7.0/go.mod h1:rETQfLdHNT3foU5kuNkFR1R1V12OJRRO5lzt2D1b5X0= +github.com/dop251/goja v0.0.0-20230122112309-96b1610dd4f7/go.mod h1:yRkwfj0CBpOGre+TwBsqPV0IH0Pk73e4PXJOeNDboGs= +github.com/dvsekhvalnov/jose2go v1.5.0/go.mod h1:QsHjhyTlD/lAVqn/NSbVZmSCGeDehTB/mPZadG+mhXU= +github.com/eknkc/amber v0.0.0-20171010120322-cdade1c07385/go.mod h1:0vRUJqYpeSZifjYj7uP3BG/gKcuzL9xWVV/Y+cK33KM= +github.com/emicklei/dot v1.4.2/go.mod h1:DeV7GvQtIw4h2u73RKBkkFdvVAz0D9fzeJrgPW6gy/s= +github.com/emirpasic/gods v1.18.1/go.mod h1:8tpGGwCnJ5H4r6BWwaV6OrWmMoPhUl5jm/FMNAnJvWQ= +github.com/envoyproxy/go-control-plane v0.11.1-0.20230524094728-9239064ad72f/go.mod h1:sfYdkwUW4BA3PbKjySwjJy+O4Pu0h62rlqCMHNk+K+Q= +github.com/envoyproxy/go-control-plane v0.11.1/go.mod h1:uhMcXKCQMEJHiAb0w+YGefQLaTEw+YhGluxZkrTmD0g= +github.com/envoyproxy/go-control-plane v0.12.0/go.mod h1:ZBTaoJ23lqITozF0M6G4/IragXCQKCnYbmlmtHvwRG0= +github.com/envoyproxy/protoc-gen-validate v0.9.1/go.mod h1:OKNgG7TCp5pF4d6XftA0++PMirau2/yoOwVac3AbF2w= +github.com/envoyproxy/protoc-gen-validate v0.10.1/go.mod h1:DRjgyB0I43LtJapqN6NiRwroiAU2PaFuvk/vjgh61ss= +github.com/envoyproxy/protoc-gen-validate v1.0.1/go.mod h1:0vj8bNkYbSTNS2PIyH87KZaeN4x9zpL9Qt8fQC7d+vs= +github.com/envoyproxy/protoc-gen-validate v1.0.2/go.mod h1:GpiZQP3dDbg4JouG/NNS7QWXpgx6x8QiMKdmN72jogE= +github.com/envoyproxy/protoc-gen-validate v1.0.4/go.mod h1:qys6tmnRsYrQqIhm2bvKZH4Blx/1gTIZ2UKVY1M+Yew= +github.com/esimonov/ifshort v1.0.4 h1:6SID4yGWfRae/M7hkVDVVyppy8q/v9OuxNdmjLQStBA= +github.com/esimonov/ifshort v1.0.4/go.mod h1:Pe8zjlRrJ80+q2CxHLfEOfTwxCZ4O+MuhcHcfgNWTk0= +github.com/etcd-io/bbolt v1.3.3/go.mod h1:ZF2nL25h33cCyBtcyWeZ2/I3HQOfTP+0PIEvHjkjCrw= +github.com/ethereum/c-kzg-4844 v0.2.0/go.mod h1:WI2Nd82DMZAAZI1wV2neKGost9EKjvbpQR9OqE5Qqa8= +github.com/facebookgo/ensure v0.0.0-20200202191622-63f1cf65ac4c/go.mod h1:Yg+htXGokKKdzcwhuNDwVvN+uBxDGXJ7G/VN1d8fa64= +github.com/facebookgo/stack v0.0.0-20160209184415-751773369052/go.mod h1:UbMTZqLaRiH3MsBH8va0n7s1pQYcu3uTb8G4tygF4Zg= +github.com/facebookgo/subset v0.0.0-20200203212716-c811ad88dec4/go.mod h1:5tD+neXqOorC30/tWg0LCSkrqj/AR6gu8yY8/fpw1q0= +github.com/fasthttp-contrib/websocket v0.0.0-20160511215533-1f3b11f56072/go.mod h1:duJ4Jxv5lDcvg4QuQr0oowTf7dz4/CR8NtyCooz9HL8= +github.com/fatih/color v1.14.1/go.mod h1:2oHN61fhTpgcxD3TSWCgKDiH1+x4OiDVVGH8WlgGZGg= +github.com/fatih/color v1.15.0/go.mod h1:0h5ZqXfHYED7Bhv2ZJamyIOUej9KtShiJESRwBDUSsw= +github.com/fatih/structs v1.1.0/go.mod h1:9NiDSp5zOcgEDl+j00MP/WkGVPOlPRLejGD8Ga6PJ7M= +github.com/felixge/fgprof v0.9.3/go.mod h1:RdbpDgzqYVh/T9fPELJyV7EYJuHB55UTEULNun8eiPw= +github.com/fjl/gencodec v0.0.0-20230517082657-f9840df7b83e/go.mod h1:AzA8Lj6YtixmJWL+wkKoBGsLWy9gFrAzi4g+5bCKwpY= +github.com/fjl/memsize v0.0.0-20190710130421-bcb5799ab5e5/go.mod h1:VvhXpOYNQvB+uIk2RvXzuaQtkQJzzIx6lSBe1xv7hi0= +github.com/flosch/pongo2 v0.0.0-20190707114632-bbf5a6c351f4/go.mod h1:T9YF2M40nIgbVgp3rreNmTged+9HrbNTIQf1PsaIiTA= +github.com/flosch/pongo2/v4 v4.0.2/go.mod h1:B5ObFANs/36VwxxlgKpdchIJHMvHB562PW+BWPhwZD8= +github.com/fogleman/gg v1.3.0/go.mod h1:R/bRT+9gY/C5z7JzPU0zXsXHKM4/ayA+zqcVNZzPa1k= +github.com/fsnotify/fsnotify v1.6.0/go.mod h1:sl3t1tCWJFWoRz9R8WJCbQihKKwmorjAbSClcnxKAGw= +github.com/garslo/gogen v0.0.0-20170306192744-1d203ffc1f61/go.mod h1:Q0X6pkwTILDlzrGEckF6HKjXe48EgsY/l7K7vhY4MW8= +github.com/gavv/httpexpect v2.0.0+incompatible/go.mod h1:x+9tiU1YnrOvnB725RkpoLv1M62hOWzwo5OXotisrKc= +github.com/gballet/go-libpcsclite v0.0.0-20190607065134-2772fd86a8ff/go.mod h1:x7DCsMOv1taUwEWCzT4cmDeAkigA5/QCwUodaVOe8Ww= +github.com/gballet/go-verkle v0.0.0-20220902153445-097bd83b7732/go.mod h1:o/XfIXWi4/GqbQirfRm5uTbXMG5NpqxkxblnbZ+QM9I= +github.com/getsentry/sentry-go v0.12.0/go.mod h1:NSap0JBYWzHND8oMbyi0+XZhUalc1TBdRL1M71JZW2c= +github.com/getsentry/sentry-go v0.18.0/go.mod h1:Kgon4Mby+FJ7ZWHFUAZgVaIa8sxHtnRJRLTXZr51aKQ= +github.com/getsentry/sentry-go v0.21.0/go.mod h1:lc76E2QywIyW8WuBnwl8Lc4bkmQH4+w1gwTf25trprY= +github.com/getsentry/sentry-go v0.23.0/go.mod h1:lc76E2QywIyW8WuBnwl8Lc4bkmQH4+w1gwTf25trprY= +github.com/ghemawat/stream v0.0.0-20171120220530-696b145b53b9/go.mod h1:106OIgooyS7OzLDOpUGgm9fA3bQENb/cFSyyBmMoJDs= +github.com/ghostiam/protogetter v0.2.3/go.mod h1:KmNLOsy1v04hKbvZs8EfGI1fk39AgTdRDxWNYPfXVc4= +github.com/gin-contrib/sse v0.0.0-20190301062529-5545eab6dad3/go.mod h1:VJ0WA2NBN22VlZ2dKZQPAPnyWw5XTlK1KymzLKsr59s= +github.com/gin-gonic/gin v1.4.0/go.mod h1:OW2EZn3DO8Ln9oIKOvM++LBO+5UPHJJDH72/q/3rZdM= +github.com/go-check/check v0.0.0-20180628173108-788fd7840127/go.mod h1:9ES+weclKsC9YodN5RgxqK/VD9HM9JsCSh7rNhMZE98= +github.com/go-chi/chi/v5 v5.0.7/go.mod h1:DslCQbL2OYiznFReuXYUmQ2hGd1aDpCnlMNITLSKoi8= +github.com/go-chi/chi/v5 v5.0.8/go.mod h1:DslCQbL2OYiznFReuXYUmQ2hGd1aDpCnlMNITLSKoi8= +github.com/go-critic/go-critic v0.9.0/go.mod h1:5P8tdXL7m/6qnyG6oRAlYLORvoXH0WDypYgAEmagT40= +github.com/go-errors/errors v1.0.1/go.mod h1:f4zRHt4oKfwPJE5k8C9vpYG+aDHdBFUsgrm6/TyX73Q= +github.com/go-fonts/dejavu v0.1.0/go.mod h1:4Wt4I4OU2Nq9asgDCteaAaWZOV24E+0/Pwo0gppep4g= +github.com/go-fonts/latin-modern v0.2.0/go.mod h1:rQVLdDMK+mK1xscDwsqM5J8U2jrRa3T0ecnM9pNujks= +github.com/go-fonts/liberation v0.1.1/go.mod h1:K6qoJYypsmfVjWg8KOVDQhLc8UDgIK2HYqyqAO9z7GY= +github.com/go-fonts/liberation v0.2.0/go.mod h1:K6qoJYypsmfVjWg8KOVDQhLc8UDgIK2HYqyqAO9z7GY= +github.com/go-fonts/stix v0.1.0/go.mod h1:w/c1f0ldAUlJmLBvlbkvVXLAD+tAMqobIIQpmnUIzUY= +github.com/go-git/gcfg v1.5.0/go.mod h1:5m20vg6GwYabIxaOonVkTdrILxQMpEShl1xiMF4ua+E= +github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376/go.mod h1:an3vInlBmSxCcxctByoQdvwPiA7DTK7jaaFDBTtu0ic= +github.com/go-git/go-billy/v5 v5.3.1/go.mod h1:pmpqyWchKfYfrkb/UVH4otLvyi/5gJlGI4Hb3ZqZ3W0= +github.com/go-git/go-billy/v5 v5.5.0/go.mod h1:hmexnoNsr2SJU1Ju67OaNz5ASJY3+sHgFRpCtpDCKow= +github.com/go-git/go-git/v5 v5.5.1/go.mod h1:uz5PQ3d0gz7mSgzZhSJToM6ALPaKCdSnl58/Xb5hzr8= +github.com/go-git/go-git/v5 v5.11.0/go.mod h1:6GFcX2P3NM7FPBfpePbpLd21XxsgdAt+lKqXmCUiUCY= +github.com/go-latex/latex v0.0.0-20210118124228-b3d85cf34e07/go.mod h1:CO1AlKB2CSIqUrmQPqA0gdRIlnLEY0gK5JGjh37zN5U= +github.com/go-latex/latex v0.0.0-20210823091927-c0d11ff05a81/go.mod h1:SX0U8uGpxhq9o2S/CELCSUxEWWAuoCUcVCQWv7G2OCk= +github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= +github.com/go-logr/logr v1.4.1/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= +github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= +github.com/go-martini/martini v0.0.0-20170121215854-22fa46961aab/go.mod h1:/P9AEU963A2AYjv4d1V5eVL1CQbEJq6aCNHDDjibzu8= +github.com/go-ole/go-ole v1.2.6/go.mod h1:pprOEPIfldk/42T2oK7lQ4v4JSDwmV0As9GaiUsvbm0= +github.com/go-pdf/fpdf v0.5.0/go.mod h1:HzcnA+A23uwogo0tp9yU+l3V+KXhiESpt1PMayhOh5M= +github.com/go-pdf/fpdf v0.6.0/go.mod h1:HzcnA+A23uwogo0tp9yU+l3V+KXhiESpt1PMayhOh5M= +github.com/go-playground/assert/v2 v2.0.1 h1:MsBgLAaY856+nPRTKrp3/OZK38U/wa0CcBYNjji3q3A= +github.com/go-redis/redis/v8 v8.11.5/go.mod h1:gREzHqY1hg6oD9ngVRbLStwAWKhA0FEgq8Jd4h5lpwo= +github.com/go-sourcemap/sourcemap v2.1.3+incompatible/go.mod h1:F8jJfvm2KbVjc5NqelyYJmf/v5J0dwNLS2mL4sNA1Jg= +github.com/go-sql-driver/mysql v1.4.1/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w= +github.com/go-sql-driver/mysql v1.7.1 h1:lUIinVbN1DY0xBg0eMOzmmtGoHwWBbvnWubQUrtU8EI= +github.com/go-sql-driver/mysql v1.7.1/go.mod h1:OXbVy3sEdcQ2Doequ6Z5BW6fXNQTmx+9S1MCJN5yJMI= +github.com/go-stack/stack v1.8.1/go.mod h1:dcoOX6HbPZSZptuspn9bctJ+N/CnF5gGygcUP3XYfe4= +github.com/go-toolsmith/astcopy v1.0.2/go.mod h1:4TcEdbElGc9twQEYpVo/aieIXfHhiuLh4aLAck6dO7Y= +github.com/go-toolsmith/astequal v1.0.2/go.mod h1:9Ai4UglvtR+4up+bAD4+hCj7iTo4m/OXVTSLnCyTAx4= +github.com/go-zookeeper/zk v1.0.2/go.mod h1:nOB03cncLtlp4t+UAkGSV+9beXP/akpekBwL+UX1Qcw= +github.com/gobwas/httphead v0.1.0/go.mod h1:O/RXo79gxV8G+RqlR/otEwx4Q36zl9rqC5u12GKvMCM= +github.com/gobwas/pool v0.2.1/go.mod h1:q8bcK0KcYlCgd9e7WYLm9LpyS+YeLd8JVDW6WezmKEw= +github.com/gobwas/ws v1.1.0/go.mod h1:nzvNcVha5eUziGrbxFCo6qFIojQHjJV5cLYIbezhfL0= +github.com/goccy/go-json v0.10.2/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= +github.com/gofrs/uuid v4.4.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM= +github.com/gofrs/uuid/v5 v5.0.0/go.mod h1:CDOjlDMVAtN56jqyRUZh58JT31Tiw7/oQyEXZV+9bD8= +github.com/gogo/googleapis v0.0.0-20180223154316-0cd9801be74a/go.mod h1:gf4bu3Q80BeJ6H1S1vYPm8/ELATdvryBaNFGgqEef3s= +github.com/gogo/status v1.1.0/go.mod h1:BFv9nrluPLmrS0EmGVvLaPNmRosr9KapBYd5/hpY1WM= +github.com/golang-jwt/jwt v3.2.2+incompatible/go.mod h1:8pz2t5EyA70fFQQSrl6XZXzqecmYZeUEB8OUGHkxJ+I= +github.com/golang-jwt/jwt/v4 v4.3.0/go.mod h1:/xlHOz8bRuivTWchD4jCa+NbatV+wEUSzwAxVc6locg= +github.com/golang/glog v1.0.0/go.mod h1:EWib/APOK0SL3dFbYqvxE3UYd8E6s1ouQ7iEp/0LWV4= +github.com/golang/glog v1.1.0/go.mod h1:pfYeQZ3JWZoXTV5sFc986z3HTpwQs9At6P4ImfuP3NQ= +github.com/golang/groupcache v0.0.0-20190129154638-5b532d6fd5ef/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= +github.com/golangci/check v0.0.0-20180506172741-cfe4005ccda2 h1:23T5iq8rbUYlhpt5DB4XJkc6BU31uODLD1o1gKvZmD0= +github.com/golangci/check v0.0.0-20180506172741-cfe4005ccda2/go.mod h1:k9Qvh+8juN+UKMCS/3jFtGICgW8O96FVaZsaxdzDkR4= +github.com/golangci/go-misc v0.0.0-20220329215616-d24fe342adfe h1:6RGUuS7EGotKx6J5HIP8ZtyMdiDscjMLfRBSPuzVVeo= +github.com/golangci/go-misc v0.0.0-20220329215616-d24fe342adfe/go.mod h1:gjqyPShc/m8pEMpk0a3SeagVb0kaqvhscv+i9jI5ZhQ= +github.com/golangci/lint-1 v0.0.0-20191013205115-297bf364a8e0 h1:MfyDlzVjl1hoaPzPD4Gpb/QgoRfSBR0jdhwGyAWwMSA= +github.com/golangci/lint-1 v0.0.0-20191013205115-297bf364a8e0/go.mod h1:66R6K6P6VWk9I95jvqGxkqJxVWGFy9XlDwLwVz1RCFg= +github.com/golangci/maligned v0.0.0-20180506175553-b1d89398deca h1:kNY3/svz5T29MYHubXix4aDDuE3RWHkPvopM/EDv/MA= +github.com/golangci/maligned v0.0.0-20180506175553-b1d89398deca/go.mod h1:tvlJhZqDe4LMs4ZHD0oMUlt9G2LWuDGoisJTBzLMV9o= +github.com/golangci/revgrep v0.5.0/go.mod h1:bjAMA+Sh/QUfTDcHzxfyHxr4xKvllVr/0sCv2e7jJHA= +github.com/gomodule/redigo v1.7.1-0.20190724094224-574c33c3df38/go.mod h1:B4C85qUVwatsJoIUNIfCRsp7qO0iAmpGFZ4EELWSbC4= +github.com/gonum/blas v0.0.0-20181208220705-f22b278b28ac/go.mod h1:P32wAyui1PQ58Oce/KYkOqQv8cVw1zAapXOl+dRFGbc= +github.com/gonum/floats v0.0.0-20181209220543-c233463c7e82/go.mod h1:PxC8OnwL11+aosOB5+iEPoV3picfs8tUpkVd0pDo+Kg= +github.com/gonum/internal v0.0.0-20181124074243-f884aa714029/go.mod h1:Pu4dmpkhSyOzRwuXkOgAvijx4o+4YMUJJo9OvPYMkks= +github.com/gonum/lapack v0.0.0-20181123203213-e4cdc5a0bff9/go.mod h1:XA3DeT6rxh2EAE789SSiSJNqxPaC0aE9J8NTOI0Jo/A= +github.com/gonum/matrix v0.0.0-20181209220409-c518dec07be9/go.mod h1:0EXg4mc1CNP0HCqCz+K4ts155PXIlUywf0wqN+GfPZw= +github.com/google/flatbuffers v1.12.1/go.mod h1:1AeVuKshWv4vARoZatz6mlQ0JxURH0Kv5+zNeJKJCa8= +github.com/google/flatbuffers v2.0.8+incompatible/go.mod h1:1AeVuKshWv4vARoZatz6mlQ0JxURH0Kv5+zNeJKJCa8= +github.com/google/flatbuffers v23.5.26+incompatible/go.mod h1:1AeVuKshWv4vARoZatz6mlQ0JxURH0Kv5+zNeJKJCa8= +github.com/google/go-containerregistry v0.13.0/go.mod h1:J9FQ+eSS4a1aC2GNZxvNpbWhgp0487v+cgiilB4FqDo= +github.com/google/go-pkcs11 v0.2.1-0.20230907215043-c6f79328ddf9/go.mod h1:6eQoGcuNJpa7jnd5pMGdkSaQpNDYvPlXWMcjXXThLlY= +github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck= +github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU= +github.com/google/martian/v3 v3.3.2/go.mod h1:oBOf6HBosgwRXnUGWUB05QECsc6uvmMiJ3+6W4l/CUk= +github.com/google/s2a-go v0.1.7/go.mod h1:50CgR4k1jNlWBu4UfS4AcfhVe1r6pdZPygJ3R8F0Qdw= +github.com/google/safehtml v0.0.2/go.mod h1:L4KWwDsUJdECRAEpZoBn3O64bQaywRscowZjJAzjHnU= +github.com/google/uuid v1.3.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.4.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.5.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/googleapis/enterprise-certificate-proxy v0.2.3/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= +github.com/googleapis/enterprise-certificate-proxy v0.3.2/go.mod h1:VLSiSSBs/ksPL8kq3OBOQ6WRI2QnaFynd1DCjZ62+V0= +github.com/googleapis/gax-go v0.0.0-20161107002406-da06d194a00e/go.mod h1:SFVmujtThgffbyetf+mdk2eWhX2bMyUtNHzFKcPA9HY= +github.com/googleapis/gax-go/v2 v2.7.1/go.mod h1:4orTrqY6hXxxaUL4LHIPl6lGo8vAE38/qKbhSAKP6QI= +github.com/googleapis/gax-go/v2 v2.12.0/go.mod h1:y+aIqrI5eb1YGMVJfuV3185Ts/D7qKpsEkdD5+I6QGU= +github.com/googleapis/gax-go/v2 v2.12.1/go.mod h1:61M8vcyyXR2kqKFxKrfA22jaA8JGF7Dc8App1U3H6jc= +github.com/googleapis/gax-go/v2 v2.12.2/go.mod h1:61M8vcyyXR2kqKFxKrfA22jaA8JGF7Dc8App1U3H6jc= +github.com/googleapis/google-cloud-go-testing v0.0.0-20210719221736-1c9a4c676720/go.mod h1:dvDLG8qkwmyD9a/MJJN3XJcT3xFxOKAvTZGvuZmac9g= +github.com/gookit/color v1.5.4/go.mod h1:pZJOeOS8DM43rXbp4AZo1n9zCU2qjpcRko0b6/QJi9w= +github.com/gordonklaus/ineffassign v0.0.0-20230610083614-0e73809eb601/go.mod h1:Qcp2HIAYhR7mNUVSIxZww3Guk4it82ghYcEXIAk+QT0= +github.com/gorilla/css v1.0.0/go.mod h1:Dn721qIggHpt4+EFCcTLTU/vk5ySda2ReITrtgBl60c= +github.com/gorilla/securecookie v1.1.1/go.mod h1:ra0sb63/xPlUeL+yeDciTfxMRAA+MP+HVt/4epWDjd4= +github.com/gorilla/websocket v1.4.0/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= +github.com/gotestyourself/gotestyourself v1.4.0 h1:CDSlSIuRL/Fsc72Ln5lMybtrCvSRDddsHsDRG/nP7Rg= +github.com/gotestyourself/gotestyourself v1.4.0/go.mod h1:zZKM6oeNM8k+FRljX1mnzVYeS8wiGgQyvST1/GafPbY= +github.com/gotestyourself/gotestyourself v2.2.0+incompatible h1:AQwinXlbQR2HvPjQZOmDhRqsv5mZf+Jb1RnSLxcqZcI= +github.com/gotestyourself/gotestyourself v2.2.0+incompatible/go.mod h1:zZKM6oeNM8k+FRljX1mnzVYeS8wiGgQyvST1/GafPbY= +github.com/graph-gophers/graphql-go v1.3.0/go.mod h1:9CQHMSxwO4MprSdzoIEobiHpoLtHm77vfxsvsIN5Vuc= +github.com/grpc-ecosystem/go-grpc-middleware v1.0.0/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= +github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 h1:Ovs26xHkKqVztRpIrF/92BcuyuQ/YW4NSIpoGtfXNho= +github.com/grpc-ecosystem/grpc-gateway v1.9.0/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= +github.com/grpc-ecosystem/grpc-gateway/v2 v2.7.0/go.mod h1:hgWBS7lorOAVIJEQMi4ZsPv9hVvWI6+ch50m39Pf2Ks= +github.com/grpc-ecosystem/grpc-gateway/v2 v2.11.3/go.mod h1:o//XUCC/F+yRGJoPO/VU0GSB0f8Nhgmxx0VIRUvaC0w= +github.com/gtank/merlin v0.1.1-0.20191105220539-8318aed1a79f/go.mod h1:T86dnYJhcGOh5BjZFCJWTDeTK7XW8uE+E21Cy/bIQ+s= +github.com/gtank/merlin v0.1.1/go.mod h1:T86dnYJhcGOh5BjZFCJWTDeTK7XW8uE+E21Cy/bIQ+s= +github.com/gtank/ristretto255 v0.1.2/go.mod h1:Ph5OpO6c7xKUGROZfWVLiJf9icMDwUeIvY4OmlYW69o= +github.com/guptarohit/asciigraph v0.5.5/go.mod h1:dYl5wwK4gNsnFf9Zp+l06rFiDZ5YtXM6x7SRWZ3KGag= +github.com/hashicorp/consul/api v1.18.0/go.mod h1:owRRGJ9M5xReDC5nfT8FTJrNAPbT4NM6p/k+d03q2v4= +github.com/hashicorp/consul/api v1.25.1/go.mod h1:iiLVwR/htV7mas/sy0O+XSuEnrdBUUydemjxcUrAt4g= +github.com/hashicorp/consul/sdk v0.14.1/go.mod h1:vFt03juSzocLRFo59NkeQHHmQa6+g7oU0pfzdI1mUhg= +github.com/hashicorp/errwrap v1.1.0 h1:OxrOeh75EUXMY8TBjag2fzXGZ40LB6IKw45YeGUDY2I= +github.com/hashicorp/errwrap v1.1.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= +github.com/hashicorp/go-bexpr v0.1.10/go.mod h1:oxlubA2vC/gFVfX1A6JGp7ls7uCDlfJn732ehYYg+g0= +github.com/hashicorp/go-cleanhttp v0.5.2/go.mod h1:kO/YDlP8L1346E6Sodw+PrpBSV4/SoxCXGY6BqNFT48= +github.com/hashicorp/go-msgpack v0.5.5/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM= +github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+lD48awMYo= +github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM= +github.com/hashicorp/go-rootcerts v1.0.2/go.mod h1:pqUvnprVnM5bf7AOirdbb01K4ccR319Vf4pU3K5EGc8= +github.com/hashicorp/go-sockaddr v1.0.2/go.mod h1:rB4wwRAUzs07qva3c5SdrY/NEtAUjGlgmH/UkBUC97A= +github.com/hashicorp/go-uuid v1.0.3/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= +github.com/hashicorp/golang-lru v0.5.5-0.20210104140557-80c98217689d/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= +github.com/hashicorp/memberlist v0.5.0/go.mod h1:yvyXLpo0QaGE59Y7hDTsTzDD25JYBZ4mHgHUZ8lrOI0= +github.com/hashicorp/serf v0.10.1/go.mod h1:yL2t6BqATOLGc5HF7qbFkTfXoPIY0WZdWHfEvMqbG+4= +github.com/holiman/bloomfilter/v2 v2.0.3/go.mod h1:zpoh+gs7qcpqrHr3dB55AMiJwo0iURXE7ZOP9L9hSkA= +github.com/hudl/fargo v1.4.0/go.mod h1:9Ai6uvFy5fQNq6VPKtg+Ceq1+eTY4nKUlR2JElEOcDo= +github.com/huin/goupnp v1.0.3/go.mod h1:ZxNlw5WqJj6wSsRK5+YfflQGXYfccj5VgQsMNixHM7Y= +github.com/hydrogen18/memlistener v0.0.0-20141126152155-54553eb933fb/go.mod h1:qEIFzExnS6016fRpRfxrExeVn2gbClQA99gQhnIcdhE= +github.com/hydrogen18/memlistener v0.0.0-20200120041712-dcc25e7acd91/go.mod h1:qEIFzExnS6016fRpRfxrExeVn2gbClQA99gQhnIcdhE= +github.com/hydrogen18/memlistener v1.0.0/go.mod h1:qEIFzExnS6016fRpRfxrExeVn2gbClQA99gQhnIcdhE= +github.com/ianlancetaylor/demangle v0.0.0-20220319035150-800ac71e25c2/go.mod h1:aYm2/VgdVmcIU8iMfdMvDMsRAQjcfZSKFby6HOFvi/w= +github.com/ianlancetaylor/demangle v0.0.0-20220517205856-0058ec4f073c/go.mod h1:aYm2/VgdVmcIU8iMfdMvDMsRAQjcfZSKFby6HOFvi/w= +github.com/imkira/go-interpol v1.1.0/go.mod h1:z0h2/2T3XF8kyEPpRgJ3kmNv+C43p+I/CoI+jC3w2iA= +github.com/inconshreveable/mousetrap v1.0.1/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= +github.com/influxdata/influxdb-client-go/v2 v2.4.0/go.mod h1:vLNHdxTJkIf2mSLvGrpj8TCcISApPoXkaxP8g9uRlW8= +github.com/influxdata/influxdb1-client v0.0.0-20220302092344-a9ab5670611c/go.mod h1:qj24IKcXYK6Iy9ceXlo3Tc+vtHo9lIhSX5JddghvEPo= +github.com/influxdata/line-protocol v0.0.0-20210311194329-9aa0e372d097/go.mod h1:xaLFMmpvUxqXtVkUJfg9QmT88cDaCJ3ZKgdZ78oO8Qo= +github.com/informalsystems/tm-load-test v1.3.0/go.mod h1:OQ5AQ9TbT5hKWBNIwsMjn6Bf4O0U4b1kRc+0qZlQJKw= +github.com/iris-contrib/blackfriday v2.0.0+incompatible/go.mod h1:UzZ2bDEoaSGPbkg6SAB4att1aAwTmVIx/5gCVqeyUdI= +github.com/iris-contrib/go.uuid v2.0.0+incompatible/go.mod h1:iz2lgM/1UnEf1kP0L/+fafWORmlnuysV2EMP8MW+qe0= +github.com/iris-contrib/httpexpect/v2 v2.12.1/go.mod h1:7+RB6W5oNClX7PTwJgJnsQP3ZuUUYB3u61KCqeSgZ88= +github.com/iris-contrib/i18n v0.0.0-20171121225848-987a633949d0/go.mod h1:pMCz62A0xJL6I+umB2YTlFRwWXaDFA0jy+5HzGiJjqI= +github.com/iris-contrib/jade v1.1.3/go.mod h1:H/geBymxJhShH5kecoiOCSssPX7QWYH7UaeZTSWddIk= +github.com/iris-contrib/jade v1.1.4/go.mod h1:EDqR+ur9piDl6DUgs6qRrlfzmlx/D5UybogqrXvJTBE= +github.com/iris-contrib/pongo2 v0.0.1/go.mod h1:Ssh+00+3GAZqSQb30AvBRNxBx7rf0GqwkjqxNd0u65g= +github.com/iris-contrib/schema v0.0.1/go.mod h1:urYA3uvUNG1TIIjOSCzHr9/LmbQo8LrOcOqfqxa4hXw= +github.com/iris-contrib/schema v0.0.6/go.mod h1:iYszG0IOsuIsfzjymw1kMzTL8YQcCWlm65f3wX8J5iA= +github.com/jackc/pgpassfile v1.0.0/go.mod h1:CEx0iS5ambNFdcRtxPj5JhEz+xB6uRky5eyVu/W2HEg= +github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a/go.mod h1:5TJZWKEWniPve33vlWYSoGYefn3gLQRzjfDlhSJ9ZKM= +github.com/jackc/pgx/v5 v5.4.3/go.mod h1:Ig06C2Vu0t5qXC60W8sqIthScaEnFvojjj9dSljmHRA= +github.com/jackc/puddle/v2 v2.2.1/go.mod h1:vriiEXHvEE654aYKXXjOvZM39qJ0q+azkZFrfEOc3H4= +github.com/jackpal/go-nat-pmp v1.0.2/go.mod h1:QPH045xvCAeXUZOxsnwmrtiCoxIr9eob+4orBN1SBKc= +github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99/go.mod h1:1lJo3i6rXxKeerYnT8Nvf0QmHCRC1n8sfWVwXF2Frvo= +github.com/jdxcode/netrc v0.0.0-20221124155335-4616370d1a84/go.mod h1:Zi/ZFkEqFHTm7qkjyNJjaWH4LQA9LQhGJyF0lTYGpxw= +github.com/jedisct1/go-minisign v0.0.0-20190909160543-45766022959e/go.mod h1:G1CVv03EnqU1wYL2dFwXxW2An0az9JTl/ZsqXQeBlkU= +github.com/jgautheron/goconst v1.6.0/go.mod h1:aAosetZ5zaeC/2EfMeRswtxUFBpe2Hr7HzkgX4fanO4= +github.com/jhump/protoreflect v1.13.1-0.20220928232736-101791cb1b4c/go.mod h1:JytZfP5d0r8pVNLZvai7U/MCuTWITgrI4tTg7puQFKI= +github.com/jinzhu/copier v0.3.5/go.mod h1:DfbEm0FYsaqBcKcFuvmOZb218JkPGtvSHsKg8S8hyyg= +github.com/jmespath/go-jmespath v0.4.0/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHWvzYPziyZiYoo= +github.com/jmoiron/sqlx v1.3.5/go.mod h1:nRVWtLre0KfCLJvgxzCsLVMogSvQ1zNJtpYr2Ccp0mQ= +github.com/josharian/intern v1.0.0/go.mod h1:5DoeVV0s6jJacbCEi61lwdGj/aVlrQvzHFFd8Hwg//Y= +github.com/juju/errors v0.0.0-20181118221551-089d3ea4e4d5/go.mod h1:W54LbzXuIE0boCoNJfwqpmkKJ1O4TCTZMetAt6jGk7Q= +github.com/juju/loggo v0.0.0-20180524022052-584905176618/go.mod h1:vgyd7OREkbtVEN/8IXZe5Ooef3LQePvuBm9UWj6ZL8U= +github.com/juju/testing v0.0.0-20180920084828-472a3e8b2073/go.mod h1:63prj8cnj0tU0S9OHjGJn+b1h0ZghCndfnbQolrYTwA= +github.com/jung-kurt/gofpdf v1.0.0/go.mod h1:7Id9E/uU8ce6rXgefFLlgrJj/GYY22cpxn+r32jIOes= +github.com/junk1tm/musttag v0.5.0/go.mod h1:PcR7BA+oREQYvHwgjIDmw3exJeds5JzRcvEJTfjrA0M= +github.com/karalabe/usb v0.0.2/go.mod h1:Od972xHfMJowv7NGVDiWVxk2zxnWgjLlJzE+F4F7AGU= +github.com/kataras/blocks v0.0.7/go.mod h1:UJIU97CluDo0f+zEjbnbkeMRlvYORtmc1304EeyXf4I= +github.com/kataras/golog v0.0.9/go.mod h1:12HJgwBIZFNGL0EJnMRhmvGA0PQGx8VFwrZtM4CqbAk= +github.com/kataras/golog v0.0.10/go.mod h1:yJ8YKCmyL+nWjERB90Qwn+bdyBZsaQwU3bTVFgkFIp8= +github.com/kataras/golog v0.1.7/go.mod h1:jOSQ+C5fUqsNSwurB/oAHq1IFSb0KI3l6GMa7xB6dZA= +github.com/kataras/golog v0.1.8/go.mod h1:rGPAin4hYROfk1qT9wZP6VY2rsb4zzc37QpdPjdkqVw= +github.com/kataras/iris/v12 v12.0.1/go.mod h1:udK4vLQKkdDqMGJJVd/msuMtN6hpYJhg/lSzuxjhO+U= +github.com/kataras/iris/v12 v12.1.8/go.mod h1:LMYy4VlP67TQ3Zgriz8RE2h2kMZV2SgMYbq3UhfoFmE= +github.com/kataras/iris/v12 v12.2.0-beta5/go.mod h1:q26aoWJ0Knx/00iPKg5iizDK7oQQSPjbD8np0XDh6dc= +github.com/kataras/iris/v12 v12.2.0/go.mod h1:BLzBpEunc41GbE68OUaQlqX4jzi791mx5HU04uPb90Y= +github.com/kataras/jwt v0.1.8/go.mod h1:Q5j2IkcIHnfwy+oNY3TVWuEBJNw0ADgCcXK9CaZwV4o= +github.com/kataras/neffos v0.0.10/go.mod h1:ZYmJC07hQPW67eKuzlfY7SO3bC0mw83A3j6im82hfqw= +github.com/kataras/neffos v0.0.14/go.mod h1:8lqADm8PnbeFfL7CLXh1WHw53dG27MC3pgi2R1rmoTE= +github.com/kataras/neffos v0.0.21/go.mod h1:FeGka8lu8cjD2H+0OpBvW8c6xXawy3fj5VX6xcIJ1Fg= +github.com/kataras/pio v0.0.0-20190103105442-ea782b38602d/go.mod h1:NV88laa9UiiDuX9AhMbDPkGYSPugBOV6yTZB1l2K9Z0= +github.com/kataras/pio v0.0.2/go.mod h1:hAoW0t9UmXi4R5Oyq5Z4irTbaTsOemSrDGUtaTl7Dro= +github.com/kataras/pio v0.0.11/go.mod h1:38hH6SWH6m4DKSYmRhlrCJ5WItwWgCVrTNU62XZyUvI= +github.com/kataras/sitemap v0.0.5/go.mod h1:KY2eugMKiPwsJgx7+U103YZehfvNGOXURubcGyk0Bz8= +github.com/kataras/sitemap v0.0.6/go.mod h1:dW4dOCNs896OR1HmG+dMLdT7JjDk7mYBzoIRwuj5jA4= +github.com/kataras/tunnel v0.0.4/go.mod h1:9FkU4LaeifdMWqZu7o20ojmW4B7hdhv2CMLwfnHGpYw= +github.com/kevinburke/ssh_config v1.2.0/go.mod h1:CT57kijsi8u/K/BOFA39wgDQJ9CxiF4nAY/ojJ6r6mM= +github.com/kilic/bls12-381 v0.1.0/go.mod h1:vDTTHJONJ6G+P2R74EhnyotQDTliQDnFEwhdmfzw1ig= +github.com/kisielk/errcheck v1.6.3/go.mod h1:nXw/i/MfnvRHqXa7XXmQMUB0oNFGuBrNI8d8NLy0LPw= +github.com/kisielk/gotool v1.0.0 h1:AV2c/EiW3KqPNT9ZKl07ehoAGi4C5/01Cfbblndcapg= +github.com/kkHAIKE/contextcheck v1.1.4/go.mod h1:1+i/gWqokIa+dm31mqGLZhZJ7Uh44DJGZVmr6QRBNJg= +github.com/klauspost/asmfmt v1.3.2/go.mod h1:AG8TuvYojzulgDAMCnYn50l/5QV3Bs/tp6j0HLHbNSE= +github.com/klauspost/compress v1.8.2/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A= +github.com/klauspost/compress v1.9.0/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A= +github.com/klauspost/compress v1.9.7/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A= +github.com/klauspost/compress v1.15.0/go.mod h1:/3/Vjq9QcHkK5uEr5lBEmyoZ1iFhe47etQ6QUkpK6sk= +github.com/klauspost/compress v1.15.9/go.mod h1:PhcZ0MbTNciWF3rruxRgKxI5NkcHHrHUDtV4Yw2GlzU= +github.com/klauspost/compress v1.15.15/go.mod h1:ZcK2JAFqKOpnBlxcLsJzYfrS9X1akm9fHZNnD9+Vo/4= +github.com/klauspost/compress v1.16.0/go.mod h1:ntbaceVETuRiXiv4DpjP66DpAtAGkEQskQzEyD//IeE= +github.com/klauspost/compress v1.16.3/go.mod h1:ntbaceVETuRiXiv4DpjP66DpAtAGkEQskQzEyD//IeE= +github.com/klauspost/compress v1.16.5/go.mod h1:ntbaceVETuRiXiv4DpjP66DpAtAGkEQskQzEyD//IeE= +github.com/klauspost/compress v1.17.0/go.mod h1:ntbaceVETuRiXiv4DpjP66DpAtAGkEQskQzEyD//IeE= +github.com/klauspost/cpuid v1.2.1/go.mod h1:Pj4uuM528wm8OyEC2QMXAi2YiTZ96dNQPGgoMS4s3ek= +github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg= +github.com/klauspost/cpuid/v2 v2.2.5/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= +github.com/klauspost/pgzip v1.2.5/go.mod h1:Ch1tH69qFZu15pkjo5kYi6mth2Zzwzt50oCQKQE9RUs= +github.com/kr/fs v0.1.0/go.mod h1:FFnZGqtBN9Gxj7eW1uZ42v5BccTP0vu6NEaFoC2HwRg= +github.com/kunwardeep/paralleltest v1.0.8/go.mod h1:2C7s65hONVqY7Q5Efj5aLzRCNLjw2h4eMc9EcypGjcY= +github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= +github.com/labstack/echo/v4 v4.1.11/go.mod h1:i541M3Fj6f76NZtHSj7TXnyM8n2gaodfvfxNnFqi74g= +github.com/labstack/echo/v4 v4.5.0/go.mod h1:czIriw4a0C1dFun+ObrXp7ok03xON0N1awStJ6ArI7Y= +github.com/labstack/echo/v4 v4.9.0/go.mod h1:xkCDAdFCIf8jsFQ5NnbK7oqaF/yU1A1X20Ltm0OvSks= +github.com/labstack/echo/v4 v4.10.0/go.mod h1:S/T/5fy/GigaXnHTkh0ZGe4LpkkQysvRjFMSUTkDRNQ= +github.com/labstack/gommon v0.3.0/go.mod h1:MULnywXg0yavhxWKc+lOruYdAhDwPK9wf0OL7NoOu+k= +github.com/labstack/gommon v0.3.1/go.mod h1:uW6kP17uPlLJsD3ijUYn3/M5bAxtlZhMI6m3MFxTMTM= +github.com/labstack/gommon v0.4.0/go.mod h1:uW6kP17uPlLJsD3ijUYn3/M5bAxtlZhMI6m3MFxTMTM= +github.com/linxGnu/grocksdb v1.7.10/go.mod h1:0hTf+iA+GOr0jDX4CgIYyJZxqOH9XlBh6KVj8+zmF34= +github.com/linxGnu/grocksdb v1.7.15/go.mod h1:pY55D0o+r8yUYLq70QmhdudxYvoDb9F+9puf4m3/W+U= +github.com/linxGnu/grocksdb v1.7.16/go.mod h1:JkS7pl5qWpGpuVb3bPqTz8nC12X3YtPZT+Xq7+QfQo4= +github.com/linxGnu/grocksdb v1.8.12/go.mod h1:xZCIb5Muw+nhbDK4Y5UJuOrin5MceOuiXkVUR7vp4WY= +github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0/go.mod h1:zJYVVT2jmtg6P3p1VtQj7WsuWi/y4VnjVBn7F8KPB3I= +github.com/lyft/protoc-gen-star v0.6.1/go.mod h1:TGAoBVkt8w7MPG72TrKIu85MIdXwDuzJYeZuUPFPNwA= +github.com/lyft/protoc-gen-star/v2 v2.0.1/go.mod h1:RcCdONR2ScXaYnQC5tUzxzlpA3WVYF7/opLeUgcQs/o= +github.com/lyft/protoc-gen-star/v2 v2.0.3/go.mod h1:amey7yeodaJhXSbf/TlLvWiqQfLOSpEk//mLlc+axEk= +github.com/macabu/inamedparam v0.1.2/go.mod h1:Xg25QvY7IBRl1KLPV9Rbml8JOMZtF/iAkNkmV7eQgjw= +github.com/magefile/mage v1.14.0/go.mod h1:z5UZb/iS3GoOSn0JgWuiw7dxlurVYTu+/jHXqQg881A= +github.com/mailgun/raymond/v2 v2.0.46/go.mod h1:lsgvL50kgt1ylcFJYZiULi5fjPBkkhNfj4KA0W54Z18= +github.com/mailgun/raymond/v2 v2.0.48/go.mod h1:lsgvL50kgt1ylcFJYZiULi5fjPBkkhNfj4KA0W54Z18= +github.com/mailru/easyjson v0.7.7/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc= +github.com/matryer/try v0.0.0-20161228173917-9ac251b645a2/go.mod h1:0KeJpeMD6o+O4hW7qJOT7vyQPKrWmj26uf5wMc/IiIs= +github.com/mattn/go-colorable v0.1.2/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= +github.com/mattn/go-colorable v0.1.11/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= +github.com/mattn/go-isatty v0.0.7/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= +github.com/mattn/go-isatty v0.0.9/go.mod h1:YNRxwqDuOph6SZLI9vUUz6OYw3QyUt7WiY2yME+cCiQ= +github.com/mattn/go-isatty v0.0.17/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= +github.com/mattn/go-isatty v0.0.18/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= +github.com/mattn/go-sqlite3 v1.14.5/go.mod h1:WVKg1VTActs4Qso6iwGbiFih2UIHo0ENGwNd0Lj+XmI= +github.com/mattn/goveralls v0.0.2/go.mod h1:8d1ZMHsd7fW6IRPKQh46F2WRpyib5/X4FOpevwGNQEw= +github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369/go.mod h1:BSXmuO+STAnVfrANrmjBb36TMTDstsz7MSK+HVaYKv4= +github.com/matttproud/golang_protobuf_extensions v1.0.4 h1:mmDVorXM7PCGKw94cs5zkfA9PSy5pEvNWRP0ET0TIVo= +github.com/matttproud/golang_protobuf_extensions v1.0.4/go.mod h1:BSXmuO+STAnVfrANrmjBb36TMTDstsz7MSK+HVaYKv4= +github.com/mbilski/exhaustivestruct v1.2.0 h1:wCBmUnSYufAHO6J4AVWY6ff+oxWxsVFrwgOdMUQePUo= +github.com/mbilski/exhaustivestruct v1.2.0/go.mod h1:OeTBVxQWoEmB2J2JCHmXWPJ0aksxSUOUy+nvtVEfzXc= +github.com/mediocregopher/mediocre-go-lib v0.0.0-20181029021733-cb65787f37ed/go.mod h1:dSsfyI2zABAdhcbvkXqgxOxrCsbYeHCPgrZkku60dSg= +github.com/mediocregopher/radix/v3 v3.3.0/go.mod h1:EmfVyvspXz1uZEyPBMyGK+kjWiKQGvsUt6O3Pj+LDCQ= +github.com/mediocregopher/radix/v3 v3.4.2/go.mod h1:8FL3F6UQRXHXIBSPUs5h0RybMF8i4n7wVopoX3x7Bv8= +github.com/mediocregopher/radix/v3 v3.8.1/go.mod h1:8FL3F6UQRXHXIBSPUs5h0RybMF8i4n7wVopoX3x7Bv8= +github.com/mgechev/dots v0.0.0-20210922191527-e955255bf517/go.mod h1:KQ7+USdGKfpPjXk4Ga+5XxQM4Lm4e3gAogrreFAYpOg= +github.com/mgechev/revive v1.3.4/go.mod h1:W+pZCMu9qj8Uhfs1iJMQsEFLRozUfvwFwqVvRbSNLVw= +github.com/microcosm-cc/bluemonday v1.0.2/go.mod h1:iVP4YcDBq+n/5fb23BhYFvIMq/leAFZyRl6bYmGDlGc= +github.com/microcosm-cc/bluemonday v1.0.21/go.mod h1:ytNkv4RrDrLJ2pqlsSI46O6IVXmZOBBD4SaJyDwwTkM= +github.com/microcosm-cc/bluemonday v1.0.23/go.mod h1:mN70sk7UkkF8TUr2IGBpNN0jAgStuPzlK76QuruE/z4= +github.com/miekg/dns v1.1.43/go.mod h1:+evo5L0630/F6ca/Z9+GAqzhjGyn8/c+TBaOyfEl0V4= +github.com/mimoo/StrobeGo v0.0.0-20181016162300-f8f6d4d2b643/go.mod h1:43+3pMjjKimDBf5Kr4ZFNGbLql1zKkbImw+fZbw3geM= +github.com/mimoo/StrobeGo v0.0.0-20220103164710-9a04d6ca976b/go.mod h1:xxLb2ip6sSUts3g1irPVHyk/DGslwQsNOo9I7smJfNU= +github.com/minio/asm2plan9s v0.0.0-20200509001527-cdd76441f9d8/go.mod h1:mC1jAcsrzbxHt8iiaC+zU4b1ylILSosueou12R++wfY= +github.com/minio/c2goasm v0.0.0-20190812172519-36a3d3bbc4f3/go.mod h1:RagcQ7I8IeTMnF8JTXieKnO4Z6JCsikNEzj0DwauVzE= +github.com/mitchellh/go-ps v1.0.0/go.mod h1:J4lOc8z8yJs6vUwklHw2XEIiT4z4C40KtWVN3nvg8Pg= +github.com/mitchellh/go-wordwrap v1.0.1/go.mod h1:R62XHJLzvMFRBbcrT7m7WgmE1eOyTSsCt+hzestvNj0= +github.com/mitchellh/pointerstructure v1.2.0/go.mod h1:BRAsLI5zgXmw97Lf6s25bs8ohIXc3tViBH44KcwB2g4= +github.com/mmcloughlin/addchain v0.4.0/go.mod h1:A86O+tHqZLMNO4w6ZZ4FlVQEadcoqkyU72HC5wJ4RlU= +github.com/moby/buildkit v0.10.4/go.mod h1:Yajz9vt1Zw5q9Pp4pdb3TCSUXJBIroIQGQ3TTs/sLug= +github.com/moby/term v0.0.0-20220808134915-39b0c02b01ae/go.mod h1:E2VnQOmVuvZB6UYnnDB0qG5Nq/1tD9acaOpo6xmt0Kw= +github.com/moby/term v0.0.0-20221205130635-1aeaba878587/go.mod h1:8FzsFHVUBGZdbDsJw/ot+X+d5HLUbvklYLJ9uGfcI3Y= +github.com/morikuni/aec v1.0.0/go.mod h1:BbKIizmSmc5MMPqRYbxO4ZU0S0+P200+tUnFx7PXmsc= +github.com/moul/http2curl v1.0.0/go.mod h1:8UbvGypXm98wA/IqH45anm5Y2Z6ep6O31QGOAZ3H0fQ= +github.com/mozilla/tls-observatory v0.0.0-20210609171429-7bc42856d2e5/go.mod h1:FUqVoUPHSEdDR0MnFM3Dh8AU0pZHLXUD127SAJGER/s= +github.com/naoina/go-stringutil v0.1.0/go.mod h1:XJ2SJL9jCtBh+P9q5btrd/Ylo8XwT/h1USek5+NqSA0= +github.com/naoina/toml v0.1.2-0.20170918210437-9fafd6967416/go.mod h1:NBIhNtsFMo3G2szEBne+bO4gS192HuIYRqfvOWb4i1E= +github.com/nats-io/jwt/v2 v2.0.3/go.mod h1:VRP+deawSXyhNjXmxPCHskrR6Mq50BqpEI5SEcNiGlY= +github.com/nats-io/jwt/v2 v2.3.0/go.mod h1:0tqz9Hlu6bCBFLWAASKhE5vUA4c24L9KPUUgvwumE/k= +github.com/nats-io/nats-server/v2 v2.5.0/go.mod h1:Kj86UtrXAL6LwYRA6H4RqzkHhK0Vcv2ZnKD5WbQ1t3g= +github.com/nats-io/nats.go v1.8.1/go.mod h1:BrFz9vVn0fU3AcH9Vn4Kd7W0NpJ651tD5omQ3M8LwxM= +github.com/nats-io/nats.go v1.31.0/go.mod h1:di3Bm5MLsoB4Bx61CBTsxuarI36WbhAwOm8QrW39+i8= +github.com/nats-io/nkeys v0.0.2/go.mod h1:dab7URMsZm6Z/jp9Z5UGa87Uutgc2mVpXLC4B7TDb/4= +github.com/nats-io/nkeys v0.4.6/go.mod h1:4DxZNzenSVd1cYQoAa8948QY3QDjrHfcfVADymtkpts= +github.com/nbutton23/zxcvbn-go v0.0.0-20210217022336-fa2cb2858354/go.mod h1:KSVJerMDfblTH7p5MZaTt+8zaT2iEk3AkVb9PQdZuE8= +github.com/nishanths/exhaustive v0.11.0/go.mod h1:RqwDsZ1xY0dNdqHho2z6X+bgzizwbLYOWnZbbl2wLB4= +github.com/nunnatsa/ginkgolinter v0.14.0/go.mod h1:cm2xaqCUCRd7qcP4DqbVvpcyEMkuLM9CF0wY6VASohk= +github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= +github.com/onsi/ginkgo v1.13.0/go.mod h1:+REjRxOmWfHCjfv9TTWB1jD1Frx4XydAD3zm1lskyM0= +github.com/onsi/ginkgo/v2 v2.12.0/go.mod h1:ZNEzXISYlqpb8S36iN71ifqLi3vVD1rVJGvWRCJOUpQ= +github.com/onsi/gomega v1.26.0/go.mod h1:r+zV744Re+DiYCIPRlYOTxn0YkOLcAnW8k1xXdMPGhM= +github.com/onsi/gomega v1.27.10/go.mod h1:RsS8tutOdbdgzbPtzzATp12yT7kM5I5aElG3evPbQ0M= +github.com/opentracing/opentracing-go v1.2.0/go.mod h1:GxEUsuufX4nBwe+T+Wl9TAgYrxe9dPLANfrWvHYVTgc= +github.com/openzipkin/zipkin-go v0.2.5/go.mod h1:KpXfKdgRDnnhsxw4pNIH9Md5lyFqKUa4YDFlwRYAMyE= +github.com/otiai10/curr v1.0.0 h1:TJIWdbX0B+kpNagQrjgq8bCMrbhiuX73M2XwgtDMoOI= +github.com/otiai10/mint v1.3.1 h1:BCmzIS3n71sGfHB5NMNDB3lHYPz8fWSkCAErHed//qc= +github.com/otiai10/mint v1.5.1/go.mod h1:MJm72SBthJjz8qhefc4z1PYEieWmy8Bku7CjcAqyUSM= +github.com/pelletier/go-toml v1.9.5 h1:4yBQzkHv+7BHq2PQUZF3Mx0IYxG7LsP222s7Agd3ve8= +github.com/pelletier/go-toml v1.9.5/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c= +github.com/pelletier/go-toml/v2 v2.0.5/go.mod h1:OMHamSCAODeSsVrwwvcJOaoN0LIUIaFVNZzmWyNfXas= +github.com/pelletier/go-toml/v2 v2.0.8/go.mod h1:vuYfssBdrU2XDZ9bYydBu6t+6a6PYNcZljzZR9VXg+4= +github.com/pelletier/go-toml/v2 v2.1.0 h1:FnwAJ4oYMvbT/34k9zzHuZNrhlz48GB3/s6at6/MHO4= +github.com/pelletier/go-toml/v2 v2.1.0/go.mod h1:tJU2Z3ZkXwnxa4DPO899bsyIoywizdUvyaeZurnPPDc= +github.com/performancecopilot/speed/v4 v4.0.0/go.mod h1:qxrSyuDGrTOWfV+uKRFhfxw6h/4HXRGUiZiufxo49BM= +github.com/peterh/liner v1.1.1-0.20190123174540-a2c9a5303de7/go.mod h1:CRroGNssyjTd/qIG2FyxByd2S8JEAZXBl4qUrZf8GS0= +github.com/petermattis/goid v0.0.0-20230317030725-371a4b8eda08/go.mod h1:pxMtw7cyUw6B2bRH0ZBANSPg+AoSud1I1iyJHI69jH4= +github.com/phayes/checkstyle v0.0.0-20170904204023-bfd46e6a821d/go.mod h1:3OzsM7FXDQlpCiw2j81fOmAwQLnZnLGXVKUzeKQXIAw= +github.com/phpdave11/gofpdf v1.4.2/go.mod h1:zpO6xFn9yxo3YLyMvW8HcKWVdbNqgIfOOp2dXMnm1mY= +github.com/phpdave11/gofpdi v1.0.12/go.mod h1:vBmVV0Do6hSBHC8uKUQ71JGW+ZGQq74llk/7bXwjDoI= +github.com/phpdave11/gofpdi v1.0.13/go.mod h1:vBmVV0Do6hSBHC8uKUQ71JGW+ZGQq74llk/7bXwjDoI= +github.com/pierrec/lz4/v4 v4.1.15/go.mod h1:gZWDp/Ze/IJXGXf23ltt2EXimqmTUXEy0GFuRQyBid4= +github.com/pierrec/lz4/v4 v4.1.18/go.mod h1:gZWDp/Ze/IJXGXf23ltt2EXimqmTUXEy0GFuRQyBid4= +github.com/pjbgf/sha1cd v0.2.3/go.mod h1:HOK9QrgzdHpbc2Kzip0Q1yi3M2MFGPADtR6HjG65m5M= +github.com/pjbgf/sha1cd v0.3.0/go.mod h1:nZ1rrWOcGJ5uZgEEVL1VUM9iRQiZvWdbZjkKyFzPPsI= +github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8/go.mod h1:HKlIX3XHQyzLZPlr7++PzdhaXEj94dEiJgZDTsxEqUI= +github.com/pkg/profile v1.7.0/go.mod h1:8Uer0jas47ZQMJ7VD+OHknK4YDY07LPUC6dEvqDjvNo= +github.com/pkg/sftp v1.13.6/go.mod h1:tz1ryNURKu77RL+GuCzmoJYxQczL3wLNNpPWagdg4Qk= +github.com/polyfloyd/go-errorlint v1.4.5/go.mod h1:sIZEbFoDOCnTYYZoVkjc4hTnM459tuWA9H/EkdXwsKk= +github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c/go.mod h1:OmDBASR4679mdNQnz2pUhc2G8CO2JrUAVFDRBDP/hJE= +github.com/prometheus/client_golang v0.9.3/go.mod h1:/TN21ttK/J9q6uSwhBd54HahCDft0ttaMvbicHlPoso= +github.com/prometheus/client_golang v1.12.0/go.mod h1:3Z9XVyYiZYEO+YQWt3RD2R3jrbd179Rt297l4aS6nDY= +github.com/prometheus/client_golang v1.15.0/go.mod h1:e9yaBhRPU2pPNsZwE+JdQl0KEt1N9XgF6zxWmaC0xOk= +github.com/prometheus/client_golang v1.16.0/go.mod h1:Zsulrv/L9oM40tJ7T815tM89lFEugiJ9HzIqaAx4LKc= +github.com/prometheus/client_model v0.2.1-0.20210607210712-147c58e9608a/go.mod h1:LDGWKZIo7rky3hgvBe+caln+Dr3dPggB5dvjtD7w9+w= +github.com/prometheus/client_model v0.3.0/go.mod h1:LDGWKZIo7rky3hgvBe+caln+Dr3dPggB5dvjtD7w9+w= +github.com/prometheus/client_model v0.4.0 h1:5lQXD3cAg1OXBf4Wq03gTrXHeaV0TQvGfUooCfx1yqY= +github.com/prometheus/client_model v0.4.0/go.mod h1:oMQmHW1/JoDwqLtg57MGgP/Fb1CJEYF2imWWhWtMkYU= +github.com/prometheus/client_model v0.5.0/go.mod h1:dTiFglRmd66nLR9Pv9f0mZi7B7fk5Pm3gvsjB5tr+kI= +github.com/prometheus/client_model v0.6.0/go.mod h1:NTQHnmxFpouOD0DpvP4XujX3CdOAGQPoaGhyTchlyt8= +github.com/prometheus/common v0.0.0-20181113130724-41aa239b4cce/go.mod h1:daVV7qP5qjZbuso7PdcryaAu0sAZbrN9i7WWcTMWvro= +github.com/prometheus/common v0.4.0/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= +github.com/prometheus/common v0.42.0/go.mod h1:xBwqVerjNdUDjgODMpudtOMwlOwf2SaTr1yjz4b7Zbc= +github.com/prometheus/common v0.44.0/go.mod h1:ofAIvZbQ1e/nugmZGz4/qCb9Ap1VoSTIO7x0VV9VvuY= +github.com/prometheus/common v0.48.0/go.mod h1:0/KsvlIEfPQCQ5I2iNSAWKPZziNCvRs5EC6ILDTlAPc= +github.com/prometheus/procfs v0.0.0-20190507164030-5867b95ac084/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= +github.com/prometheus/procfs v0.9.0/go.mod h1:+pB4zwohETzFnmlpe6yd2lSc+0/46IYZRB/chUwxUZY= +github.com/prometheus/procfs v0.10.1/go.mod h1:nwNm2aOCAYw8uTR/9bWRREkZFxAUcWzPHWJq+XBB/FM= +github.com/prometheus/procfs v0.12.0/go.mod h1:pcuDEFsWDnvcgNzo4EEweacyhjeA9Zk3cnaOZAZEfOo= +github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= +github.com/protolambda/bls12-381-util v0.0.0-20220416220906-d8552aa452c7/go.mod h1:IToEjHuttnUzwZI5KBSM/LOOW3qLbbrHOEfp3SbECGY= +github.com/quasilyte/go-ruleguard v0.4.0/go.mod h1:Eu76Z/R8IXtViWUIHkE3p8gdH3/PKk1eh3YGfaEof10= +github.com/quasilyte/go-ruleguard/dsl v0.3.22/go.mod h1:KeCP03KrjuSO0H1kTuZQCWlQPulDV6YMIXmpQss17rU= +github.com/quasilyte/go-ruleguard/rules v0.0.0-20211022131956-028d6511ab71/go.mod h1:4cgAphtvu7Ftv7vOT2ZOYhC6CvBxZixcasr8qIOTA50= +github.com/regen-network/cosmos-proto v0.3.1/go.mod h1:jO0sVX6a1B36nmE8C9xBFXpNwWejXC7QqCOnH3O0+YM= +github.com/regen-network/gocuke v0.6.2/go.mod h1:zYaqIHZobHyd0xOrHGPQjbhGJsuZ1oElx150u2o1xuk= +github.com/rogpeppe/go-internal v1.8.0/go.mod h1:WmiCO8CzOY8rg0OYDC4/i/2WRWAB6poM+XZ2dLUbcbE= +github.com/rogpeppe/go-internal v1.10.0/go.mod h1:UQnix2H7Ngw/k4C5ijL5+65zddjncjaFoBhdsK/akog= +github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUzkipdSkR5nkCZA= +github.com/rs/zerolog v1.30.0/go.mod h1:/tk+P47gFdPXq4QYjvCmT5/Gsug2nagsFWBWhAiSi1w= +github.com/ruudk/golang-pdf417 v0.0.0-20181029194003-1af4ab5afa58/go.mod h1:6lfFZQK844Gfx8o5WFuvpxWRwnSoipWe/p622j1v06w= +github.com/ruudk/golang-pdf417 v0.0.0-20201230142125-a7e3863a1245/go.mod h1:pQAZKsJ8yyVxGRWYNEm9oFB8ieLgKFnamEyDmSA0BRk= +github.com/ryancurrah/gomodguard v1.3.0/go.mod h1:ggBxb3luypPEzqVtq33ee7YSN35V28XeGnid8dnni50= +github.com/ryanuber/columnize v2.1.0+incompatible/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= +github.com/sagikazarmark/crypt v0.9.0/go.mod h1:RnH7sEhxfdnPm1z+XMgSLjWTEIjyK4z2dw6+4vHTMuo= +github.com/sagikazarmark/crypt v0.17.0/go.mod h1:SMtHTvdmsZMuY/bpZoqokSoChIrcJ/epOxZN58PbZDg= +github.com/sanity-io/litter v1.5.5/go.mod h1:9gzJgR2i4ZpjZHsKvUXIRQVk7P+yM3e+jAF7bU2UI5U= +github.com/sashamelentyev/usestdlibvars v1.24.0/go.mod h1:9cYkq+gYJ+a5W2RPdhfaSCnTVUC1OQP/bSiiBhq3OZE= +github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0= +github.com/schollz/closestmatch v2.1.0+incompatible/go.mod h1:RtP1ddjLong6gTkbtmuhtR2uUrrJOpYzYRvbcPAid+g= +github.com/sclevine/agouti v3.0.0+incompatible/go.mod h1:b4WX9W9L1sfQKXeJf1mUTLZKJ48R1S7H23Ji7oFO5Bw= +github.com/securego/gosec/v2 v2.18.1/go.mod h1:ZUTcKD9gAFip1lLGHWCjkoBQJyaEzePTNzjwlL2HHoE= +github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo= +github.com/sergi/go-diff v1.2.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM= +github.com/shirou/gopsutil v3.21.4-0.20210419000835-c7a38de76ee5+incompatible/go.mod h1:5b4v6he4MtMOwMlS0TUMTu2PcXUg8+E1lC7eC3UO/RA= +github.com/shirou/gopsutil/v3 v3.23.9/go.mod h1:x/NWSb71eMcjFIO0vhyGW5nZ7oSIgVjrCnADckb85GA= +github.com/shirou/gopsutil/v3 v3.24.2/go.mod h1:tSg/594BcA+8UdQU2XcW803GWYgdtauFFPgJCJKZlVk= +github.com/shoenig/go-m1cpu v0.1.6/go.mod h1:1JJMcUBvfNwpq05QDQVAnx3gUHr9IYF7GNg9SUEw2VQ= +github.com/sirupsen/logrus v1.9.0/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= +github.com/sivchari/nosnakecase v1.7.0 h1:7QkpWIRMe8x25gckkFd2A5Pi6Ymo0qgr4JrhGt95do8= +github.com/sivchari/nosnakecase v1.7.0/go.mod h1:CwDzrzPea40/GB6uynrNLiorAlgFRvRbFSgJx2Gs+QY= +github.com/skeema/knownhosts v1.1.0/go.mod h1:sKFq3RD6/TKZkSWn8boUbDC7Qkgcv+8XXijpFO6roag= +github.com/skeema/knownhosts v1.2.1/go.mod h1:xYbVRSPxqBZFrdmDyMmsOs+uX1UZC3nTN3ThzgDxUwo= +github.com/snikch/goodman v0.0.0-20171125024755-10e37e294daa/go.mod h1:oJyF+mSPHbB5mVY2iO9KV3pTt/QbIkGaO8gQ2WrDbP4= +github.com/spf13/afero v1.9.3/go.mod h1:iUV7ddyEEZPO5gA3zD4fJt6iStLlL+Lg4m2cihcDf8Y= +github.com/spf13/cast v1.5.1/go.mod h1:b9PdjNptOpzXr7Rq1q9gJML/2cdGQAo69NKzQ10KN48= +github.com/spf13/cobra v1.0.0/go.mod h1:/6GTrnGXV9HjY+aR4k0oJ5tcvakLuG6EuKReYlHNrgE= +github.com/spf13/cobra v1.6.1/go.mod h1:IOw/AERYS7UzyrGinqmz6HLUo219MORXGxhbaJUqzrY= +github.com/spf13/jwalterweatherman v1.1.0 h1:ue6voC5bR5F8YxI5S67j9i582FU4Qvo2bmqnqMYADFk= +github.com/spf13/jwalterweatherman v1.1.0/go.mod h1:aNWZUN0dPAAO/Ljvb5BEdw96iTZ0EXowPYD95IqWIGo= +github.com/spf13/viper v1.4.0/go.mod h1:PTJ7Z/lr49W6bUbkmS1V3by4uWynFiR9p7+dSq/yZzE= +github.com/spf13/viper v1.15.0/go.mod h1:fFcTBJxvhhzSJiZy8n+PeW6t8l+KeT/uTARa0jHOQLA= +github.com/status-im/keycard-go v0.2.0/go.mod h1:wlp8ZLbsmrF6g6WjugPAx+IzoLrkdf9+mHxBEeo3Hbg= +github.com/streadway/amqp v1.0.0/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw= +github.com/streadway/handy v0.0.0-20200128134331-0f66f006fb2e/go.mod h1:qNTQ5P5JnDBl6z3cMAg/SywNDC5ABu5ApDIw6lUbRmI= +github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= +github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= +github.com/stretchr/testify v1.8.3/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= +github.com/subosito/gotenv v1.4.2/go.mod h1:ayKnFf/c6rvx/2iiLrJUk1e6plDbT3edrFNGqEflhK0= +github.com/supranational/blst v0.3.11-0.20230406105308-e9dfc5ee724b/go.mod h1:jZJtfjgudtNl4en1tzwPIV3KjUnQUvG3/j+w+fVonLw= +github.com/tdewolff/minify/v2 v2.12.4/go.mod h1:h+SRvSIX3kwgwTFOpSckvSxgax3uy8kZTSF1Ojrr3bk= +github.com/tdewolff/parse/v2 v2.6.4/go.mod h1:woz0cgbLwFdtbjJu8PIKxhW05KplTFQkOdX78o+Jgrs= +github.com/tdewolff/test v1.0.7/go.mod h1:6DAvZliBAAnD7rhVgwaM7DE5/d9NMOAJ09SqYqeK4QE= +github.com/tecbot/gorocksdb v0.0.0-20191217155057-f0fad39f321c/go.mod h1:ahpPrc7HpcfEWDQRZEmnXMzHY03mLDYMCxeDzy46i+8= +github.com/tendermint/tendermint v0.34.20 h1:/pmvJhO3IqOxhbi8iRXudTjA2YKpaMqrLwFNkyxDSzw= +github.com/tendermint/tendermint v0.34.20/go.mod h1:KtOwCLYJcsS1ymtAfnjjAtXfXClbqcqjdqzFt2Em1Ac= +github.com/tendermint/tm-db v0.6.6 h1:EzhaOfR0bdKyATqcd5PNeyeq8r+V4bRPHBfyFdD9kGM= +github.com/tetafro/godot v1.4.15/go.mod h1:2oVxTBSftRTh4+MVfUaUXR6bn2GDXCaMcOG4Dk3rfio= +github.com/tidwall/btree v1.5.0/go.mod h1:LGm8L/DZjPLmeWGjv5kFrY8dL4uVhMmzmmLYmsObdKE= +github.com/tklauser/go-sysconf v0.3.12/go.mod h1:Ho14jnntGE1fpdOqQEEaiKRpvIavV0hSfmBq8nJbHYI= +github.com/tklauser/numcpus v0.6.1/go.mod h1:1XfjsgE2zo8GVw7POkMbHENHzVg3GzmoZ9fESEdAacY= +github.com/tomarrell/wrapcheck/v2 v2.8.1/go.mod h1:/n2Q3NZ4XFT50ho6Hbxg+RV1uyo2Uow/Vdm9NQcl5SE= +github.com/tyler-smith/go-bip39 v1.1.0/go.mod h1:gUYDtqQw1JS3ZJ8UWVcGTGqqr6YIN3CWg+kkNaLt55U= +github.com/ugorji/go v1.1.4/go.mod h1:uQMGLiO92mf5W77hV/PUCpI3pbzQx3CRekS0kk+RGrc= +github.com/ugorji/go v1.2.7/go.mod h1:nF9osbDWLy6bDVv/Rtoh6QgnvNDpmCalQV5urGCCS6M= +github.com/urfave/cli/v2 v2.17.2-0.20221006022127-8f469abc00aa/go.mod h1:1CNUng3PtjQMtRzJO4FMXBQvkGtuYRxxiR9xMa7jMwI= +github.com/urfave/negroni v1.0.0/go.mod h1:Meg73S6kFm/4PpbYdq35yYWoCZ9mS/YSx+lKnmiohz4= +github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc= +github.com/valyala/fasthttp v1.6.0/go.mod h1:FstJa9V+Pj9vQ7OJie2qMHdwemEDaDiSdBnvPM1Su9w= +github.com/valyala/fasthttp v1.40.0/go.mod h1:t/G+3rLek+CyY9bnIE+YlMRddxVAAGjhxndDB4i4C0I= +github.com/valyala/fasttemplate v1.0.1/go.mod h1:UQGH1tvbgY+Nz5t2n7tXsz52dQxojPUpymEIMZ47gx8= +github.com/valyala/fasttemplate v1.2.1/go.mod h1:KHLXt3tVN2HBp8eijSv/kGJopbvo7S+qRAEEKiv+SiQ= +github.com/valyala/fasttemplate v1.2.2/go.mod h1:KHLXt3tVN2HBp8eijSv/kGJopbvo7S+qRAEEKiv+SiQ= +github.com/valyala/quicktemplate v1.7.0/go.mod h1:sqKJnoaOF88V07vkO+9FL8fb9uZg/VPSJnLYn+LmLk8= +github.com/valyala/tcplisten v0.0.0-20161114210144-ceec8f93295a/go.mod h1:v3UYOV9WzVtRmSR+PDvWpU/qWl4Wa5LApYYX4ZtKbio= +github.com/vektra/mockery/v2 v2.23.1/go.mod h1:Zh3Kv1ckKs6FokhlVLcCu6UTyzfS3M8mpROz1lBNp+w= +github.com/vmihailenco/msgpack/v5 v5.3.5/go.mod h1:7xyJ9e+0+9SaZT0Wt1RGleJXzli6Q/V5KbhBonMG9jc= +github.com/vmihailenco/tagparser/v2 v2.0.0/go.mod h1:Wri+At7QHww0WTrCBeu4J6bNtoV6mEfg5OIWRZA9qds= +github.com/xanzy/ssh-agent v0.3.3/go.mod h1:6dzNDKs0J9rVPHPhaGCukekBHKqfl+L3KghI1Bc68Uw= +github.com/xhit/go-str2duration v1.2.0/go.mod h1:3cPSlfZlUHVlneIVfePFWcJZsuwf+P1v2SRTV4cUmp4= +github.com/xhit/go-str2duration/v2 v2.1.0/go.mod h1:ohY8p+0f07DiV6Em5LKB0s2YpLtXVyJfNt1+BlmyAsU= +github.com/xo/terminfo v0.0.0-20210125001918-ca9a967f8778/go.mod h1:2MuV+tbUrU1zIOPMxZ5EncGwgmMJsa+9ucAQZXxsObs= +github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673/go.mod h1:N3UwUGtsrSj3ccvlPHLoLsHnpR27oXr4ZE984MbSER8= +github.com/yalp/jsonpath v0.0.0-20180802001716-5cc68e5049a0/go.mod h1:/LWChgwKmvncFJFHJ7Gvn9wZArjbV5/FppcK2fKk/tI= +github.com/ykadowak/zerologlint v0.1.3/go.mod h1:KaUskqF3e/v59oPmdq1U1DnKcuHokl2/K1U4pmIELKg= +github.com/yosssi/ace v0.0.5/go.mod h1:ALfIzm2vT7t5ZE7uoIZqF3TQ7SAOyupFZnkrF5id+K0= +github.com/yusufpapurcu/wmi v1.2.3/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0= +github.com/yusufpapurcu/wmi v1.2.4/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0= +github.com/zeebo/xxh3 v1.0.2/go.mod h1:5NWz9Sef7zIDm2JHfFlcQvNekmcEl9ekUZQQKCYaDcA= +github.com/zondax/hid v0.9.1/go.mod h1:l5wttcP0jwtdLjqjMMWFVEE7d1zO0jvSPA9OPZxWpEM= +github.com/zondax/ledger-go v0.14.1/go.mod h1:fZ3Dqg6qcdXWSOJFKMG8GCTnD7slO/RL2feOQv8K320= +go-simpler.org/assert v0.6.0/go.mod h1:74Eqh5eI6vCK6Y5l3PI8ZYFXG4Sa+tkr70OIPJAUr28= +go-simpler.org/sloglint v0.1.2/go.mod h1:2LL+QImPfTslD5muNPydAEYmpXIj6o/WYcqnJjLi4o4= +go.einride.tech/aip v0.66.0/go.mod h1:qAhMsfT7plxBX+Oy7Huol6YUvZ0ZzdUz26yZsQwfl1M= +go.etcd.io/bbolt v1.3.2/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= +go.etcd.io/bbolt v1.3.7/go.mod h1:N9Mkw9X8x5fupy0IKsmuqVtoGDyxsaDlbk4Rd05IAQw= +go.etcd.io/etcd/api/v3 v3.5.6/go.mod h1:KFtNaxGDw4Yx/BA4iPPwevUTAuqcsPxzyX8PHydchN8= +go.etcd.io/etcd/api/v3 v3.5.10/go.mod h1:TidfmT4Uycad3NM/o25fG3J07odo4GBB9hoxaodFCtI= +go.etcd.io/etcd/client/pkg/v3 v3.5.6/go.mod h1:ggrwbk069qxpKPq8/FKkQ3Xq9y39kbFR4LnKszpRXeQ= +go.etcd.io/etcd/client/pkg/v3 v3.5.10/go.mod h1:DYivfIviIuQ8+/lCq4vcxuseg2P2XbHygkKwFo9fc8U= +go.etcd.io/etcd/client/v2 v2.305.6/go.mod h1:BHha8XJGe8vCIBfWBpbBLVZ4QjOIlfoouvOwydu63E0= +go.etcd.io/etcd/client/v2 v2.305.10/go.mod h1:m3CKZi69HzilhVqtPDcjhSGp+kA1OmbNn0qamH80xjA= +go.etcd.io/etcd/client/v3 v3.5.6/go.mod h1:f6GRinRMCsFVv9Ht42EyY7nfsVGwrNO0WEoS2pRKzQk= +go.etcd.io/etcd/client/v3 v3.5.10/go.mod h1:RVeBnDz2PUEZqTpgqwAtUd8nAPf5kjyFyND7P1VkOKc= +go.etcd.io/gofail v0.1.0/go.mod h1:VZBCXYGZhHAinaBiiqYvuDynvahNsAyLFwB3kEHKz1M= +go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= +go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.36.3/go.mod h1:Dts42MGkzZne2yCru741+bFiTMWkIj/LLRizad7b9tw= +go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.46.1/go.mod h1:4UoMYEZOC0yN/sPGH76KPkkU7zgiEWYWL9vwmbnTJPE= +go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.47.0/go.mod h1:r9vWsPS/3AQItv3OSlEJ/E4mbrhUbbw18meOjArPtKQ= +go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.48.0/go.mod h1:tIKj3DbO8N9Y2xo52og3irLsPI4GW02DSMtrVgNMgxg= +go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.49.0/go.mod h1:Mjt1i1INqiaoZOMGR1RIUJN+i3ChKoFRqzrRQhlkbs0= +go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.46.1/go.mod h1:sEGXWArGqc3tVa+ekntsN65DmVbVeW+7lTKTjZF3/Fo= +go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.47.0/go.mod h1:SK2UL73Zy1quvRPonmOmRDiWk1KBV3LyIeeIxcEApWw= +go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.48.0/go.mod h1:rdENBZMT2OE6Ne/KLwpiXudnAsbdrdBaqBvTN8M8BgA= +go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0/go.mod h1:p8pYQP+m5XfbZm9fxtSKAbM6oIllS7s2AfxrChvc7iw= +go.opentelemetry.io/otel v1.14.0/go.mod h1:o4buv+dJzx8rohcUeRmWUZhqupFvzWis188WlggnNeU= +go.opentelemetry.io/otel v1.19.0/go.mod h1:i0QyjOq3UPoTzff0PJB2N66fb4S0+rSbSB15/oyH9fY= +go.opentelemetry.io/otel v1.21.0/go.mod h1:QZzNPQPm1zLX4gZK4cMi+71eaorMSGT3A4znnUvNNEo= +go.opentelemetry.io/otel v1.22.0/go.mod h1:eoV4iAi3Ea8LkAEI9+GFT44O6T/D0GWAVFyZVCC6pMI= +go.opentelemetry.io/otel v1.23.0/go.mod h1:YCycw9ZeKhcJFrb34iVSkyT0iczq/zYDtZYFufObyB0= +go.opentelemetry.io/otel v1.24.0/go.mod h1:W7b9Ozg4nkF5tWI5zsXkaKKDjdVjpD4oAt9Qi/MArHo= +go.opentelemetry.io/otel/metric v1.19.0/go.mod h1:L5rUsV9kM1IxCj1MmSdS+JQAcVm319EUrDVLrt7jqt8= +go.opentelemetry.io/otel/metric v1.21.0/go.mod h1:o1p3CA8nNHW8j5yuQLdc1eeqEaPfzug24uvsyIEJRWM= +go.opentelemetry.io/otel/metric v1.22.0/go.mod h1:evJGjVpZv0mQ5QBRJoBF64yMuOf4xCWdXjK8pzFvliY= +go.opentelemetry.io/otel/metric v1.23.0/go.mod h1:MqUW2X2a6Q8RN96E2/nqNoT+z9BSms20Jb7Bbp+HiTo= +go.opentelemetry.io/otel/metric v1.24.0/go.mod h1:VYhLe1rFfxuTXLgj4CBiyz+9WYBA8pNGJgDcSFRKBco= +go.opentelemetry.io/otel/sdk v1.14.0/go.mod h1:bwIC5TjrNG6QDCHNWvW4HLHtUQ4I+VQDsnjhvyZCALM= +go.opentelemetry.io/otel/sdk v1.19.0/go.mod h1:NedEbbS4w3C6zElbLdPJKOpJQOrGUJ+GfzpjUvI0v1A= +go.opentelemetry.io/otel/sdk v1.21.0/go.mod h1:Nna6Yv7PWTdgJHVRD9hIYywQBRx7pbox6nwBnZIxl/E= +go.opentelemetry.io/otel/sdk v1.22.0/go.mod h1:iu7luyVGYovrRpe2fmj3CVKouQNdTOkxtLzPvPz1DOc= +go.opentelemetry.io/otel/trace v1.14.0/go.mod h1:8avnQLK+CG77yNLUae4ea2JDQ6iT+gozhnZjy/rw9G8= +go.opentelemetry.io/otel/trace v1.19.0/go.mod h1:mfaSyvGyEJEI0nyV2I4qhNQnbBOUUmYZpYojqMnX2vo= +go.opentelemetry.io/otel/trace v1.21.0/go.mod h1:LGbsEB0f9LGjN+OZaQQ26sohbOmiMR+BaslueVtS/qQ= +go.opentelemetry.io/otel/trace v1.22.0/go.mod h1:RbbHXVqKES9QhzZq/fE5UnOSILqRt40a21sPw2He1xo= +go.opentelemetry.io/otel/trace v1.23.0/go.mod h1:GSGTbIClEsuZrGIzoEHqsVfxgn5UkggkflQwDScNUsk= +go.opentelemetry.io/otel/trace v1.24.0/go.mod h1:HPc3Xr/cOApsBI154IU0OI0HJexz+aw5uPdbs3UCjNU= +go.opentelemetry.io/proto/otlp v0.19.0/go.mod h1:H7XAot3MsfNsj7EXtrA2q5xSNQ10UqI405h3+duxN4U= +go.opentelemetry.io/proto/otlp v1.0.0/go.mod h1:Sy6pihPLfYHkr3NkUbEhGHFhINUSI/v80hjKIs5JXpM= +go.tmz.dev/musttag v0.7.2/go.mod h1:m6q5NiiSKMnQYokefa2xGoyoXnrswCbJ0AWYzf4Zs28= +go.uber.org/multierr v1.9.0/go.mod h1:X2jQV1h+kxSjClGpnseKVIxpmcjrj7MNnI0bnlfKTVQ= +golang.org/x/crypto v0.0.0-20191206172530-e9b2fee46413/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20191227163750-53104e6ec876/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= +golang.org/x/crypto v0.0.0-20211215153901-e495a2d5b3d3/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= +golang.org/x/crypto v0.0.0-20220214200702-86341886e292/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= +golang.org/x/crypto v0.7.0/go.mod h1:pYwdfH91IfpZVANVyUOhSIPZaFoJGxTFbZhFTx+dXZU= +golang.org/x/crypto v0.12.0/go.mod h1:NF0Gs7EO5K4qLn+Ylc+fih8BSTeIjAP05siRnAh98yw= +golang.org/x/crypto v0.13.0/go.mod h1:y6Z2r+Rw4iayiXXAIxJIDAJ1zMW4yaTpebo8fPOliYc= +golang.org/x/crypto v0.14.0/go.mod h1:MVFd36DqK4CsrnJYDkBA3VC4m2GkXAM0PvzMCn4JQf4= +golang.org/x/crypto v0.16.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq4= +golang.org/x/crypto v0.17.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq4= +golang.org/x/crypto v0.18.0/go.mod h1:R0j02AL6hcrfOiy9T4ZYp/rcWeMxM3L6QYxlOuEG1mg= +golang.org/x/crypto v0.19.0/go.mod h1:Iy9bg/ha4yyC70EfRS8jz+B6ybOBKMaSxLj6P6oBDfU= +golang.org/x/exp v0.0.0-20191002040644-a1355ae1e2c3/go.mod h1:NOZ3BPKG0ec/BKJQgnvsSFpcKLM5xXVWnvZS97DWHgE= +golang.org/x/exp v0.0.0-20200513190911-00229845015e/go.mod h1:4M0jN8W1tt0AVLNr8HDosyJCDCDuyL9N9+3m7wDWgKw= +golang.org/x/exp v0.0.0-20220722155223-a9213eeb770e/go.mod h1:Kr81I6Kryrl9sr8s2FK3vxD90NdsKWRuOIl2O4CvYbA= +golang.org/x/exp v0.0.0-20221205204356-47842c84f3db/go.mod h1:CxIveKay+FTh1D0yPZemJVgC/95VzuuOLq5Qi4xnoYc= +golang.org/x/exp v0.0.0-20230515195305-f3d0a9c9a5cc/go.mod h1:V1LtkGg67GoY2N1AnLN78QLrzxkLyJw7RJb1gzOOz9w= +golang.org/x/exp v0.0.0-20230626212559-97b1e661b5df/go.mod h1:FXUEEKJgO7OQYeo8N01OfiKP8RXMtf6e8aTskBGqWdc= +golang.org/x/exp v0.0.0-20230811145659-89c5cff77bcb/go.mod h1:FXUEEKJgO7OQYeo8N01OfiKP8RXMtf6e8aTskBGqWdc= +golang.org/x/exp v0.0.0-20230817173708-d852ddb80c63/go.mod h1:0v4NqG35kSWCMzLaMeX+IQrlSnVE/bqGSyC2cz/9Le8= +golang.org/x/exp v0.0.0-20230905200255-921286631fa9/go.mod h1:S2oDrQGGwySpoQPVqRShND87VCbxmc6bL1Yd2oYrm6k= +golang.org/x/exp v0.0.0-20231006140011-7918f672742d/go.mod h1:ldy0pHrwJyGW56pPQzzkH36rKxoZW1tw7ZJpeKx+hdo= +golang.org/x/exp/typeparams v0.0.0-20221208152030-732eee02a75a/go.mod h1:AbB0pIl9nAr9wVwH+Z2ZpaocVmF5I4GyWCDIsVjR0bk= +golang.org/x/exp/typeparams v0.0.0-20230307190834-24139beb5833/go.mod h1:AbB0pIl9nAr9wVwH+Z2ZpaocVmF5I4GyWCDIsVjR0bk= +golang.org/x/exp/typeparams v0.0.0-20240213143201-ec583247a57a/go.mod h1:AbB0pIl9nAr9wVwH+Z2ZpaocVmF5I4GyWCDIsVjR0bk= +golang.org/x/image v0.0.0-20190910094157-69e4b8554b2a/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= +golang.org/x/image v0.0.0-20200119044424-58c23975cae1/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= +golang.org/x/image v0.0.0-20200430140353-33d19683fad8/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= +golang.org/x/image v0.0.0-20200618115811-c13761719519/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= +golang.org/x/image v0.0.0-20201208152932-35266b937fa6/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= +golang.org/x/image v0.0.0-20210216034530-4410531fe030/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= +golang.org/x/image v0.0.0-20210607152325-775e3b0c77b9/go.mod h1:023OzeP/+EPmXeapQh35lcL3II3LrY8Ic+EFFKVhULM= +golang.org/x/image v0.0.0-20210628002857-a66eb6448b8d/go.mod h1:023OzeP/+EPmXeapQh35lcL3II3LrY8Ic+EFFKVhULM= +golang.org/x/image v0.0.0-20211028202545-6944b10bf410/go.mod h1:023OzeP/+EPmXeapQh35lcL3II3LrY8Ic+EFFKVhULM= +golang.org/x/image v0.0.0-20220302094943-723b81ca9867/go.mod h1:023OzeP/+EPmXeapQh35lcL3II3LrY8Ic+EFFKVhULM= +golang.org/x/lint v0.0.0-20210508222113-6edffad5e616/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/mod v0.9.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= +golang.org/x/mod v0.11.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= +golang.org/x/mod v0.12.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= +golang.org/x/mod v0.13.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= +golang.org/x/mod v0.14.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= +golang.org/x/mod v0.15.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= +golang.org/x/mod v0.16.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= +golang.org/x/net v0.0.0-20190327091125-710a502c58a2/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190522155817-f3200d17e092/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= +golang.org/x/net v0.0.0-20190827160401-ba9fcec4b297/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20211008194852-3b03d305991f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.4.0/go.mod h1:MBQ8lrhLObU/6UmLb4fmbmk5OcyYmqtbGd/9yIeKjEE= +golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= +golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc= +golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg= +golang.org/x/net v0.11.0/go.mod h1:2L/ixqYpgIVXmeoSA/4Lu7BzTG4KIyPIryS4IsOd1oQ= +golang.org/x/net v0.14.0/go.mod h1:PpSgVXXLK0OxS0F31C1/tv6XNguvCrnXIDrFMspZIUI= +golang.org/x/net v0.15.0/go.mod h1:idbUs1IY1+zTqbi8yxTbhexhEEk5ur9LInksu6HrEpk= +golang.org/x/net v0.16.0/go.mod h1:NxSsAGuq816PNPmqtQdLE42eU2Fs7NoRIZrHJAlaCOE= +golang.org/x/net v0.17.0/go.mod h1:NxSsAGuq816PNPmqtQdLE42eU2Fs7NoRIZrHJAlaCOE= +golang.org/x/net v0.19.0/go.mod h1:CfAk/cbD4CthTvqiEl8NpboMuiuOYsAr/7NOjZJtv1U= +golang.org/x/net v0.20.0/go.mod h1:z8BVo6PvndSri0LbOE3hAn0apkU+1YvI6E70E9jsnvY= +golang.org/x/net v0.21.0/go.mod h1:bIjVDfnllIU7BJ2DNgfnXvpSvtn8VRwhlsaeUTyUS44= +golang.org/x/net v0.22.0/go.mod h1:JKghWKKOSdJwpW2GEx0Ja7fmaKnMsbu+MWVZTokSYmg= +golang.org/x/net v0.23.0/go.mod h1:JKghWKKOSdJwpW2GEx0Ja7fmaKnMsbu+MWVZTokSYmg= +golang.org/x/net v0.25.0/go.mod h1:JkAGAh7GEvH74S6FOH42FLoXpXbE/aqXSrIQjXgsiwM= +golang.org/x/oauth2 v0.0.0-20170207211851-4464e7848382/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= +golang.org/x/oauth2 v0.6.0/go.mod h1:ycmewcwgD4Rpr3eZJLSB4Kyyljb3qDh40vJ8STE5HKw= +golang.org/x/oauth2 v0.8.0/go.mod h1:yr7u4HXZRm1R1kBWqr/xKNqewf0plRYoB7sla+BCIXE= +golang.org/x/oauth2 v0.13.0/go.mod h1:/JMhi4ZRXAf4HG9LiNmxvk+45+96RUlVThiH8FzNBn0= +golang.org/x/oauth2 v0.15.0/go.mod h1:q48ptWNTY5XWf+JNten23lcvHpLJ0ZSxF5ttTHKVCAM= +golang.org/x/oauth2 v0.16.0/go.mod h1:hqZ+0LWXsiVoZpeld6jVt06P3adbS2Uu911W1SsJv2o= +golang.org/x/oauth2 v0.17.0/go.mod h1:OzPDGQiuQMguemayvdylqddI7qcD9lnSDb+1FiwQ5HA= +golang.org/x/oauth2 v0.18.0/go.mod h1:Wf7knwG0MPoWIMMBgFlEaSUDaKskp0dCfrlJRJXbBi8= +golang.org/x/oauth2 v0.20.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI= +golang.org/x/perf v0.0.0-20230113213139-801c7ef9e5c5/go.mod h1:UBKtEnL8aqnd+0JHqZ+2qoMDwtuy6cYhhKNoHLBiTQc= +golang.org/x/sync v0.3.0/go.mod h1:FU7BRWz2tNW+3quACPkgCx/L+uEAv1htQ0V83Z9Rj+Y= +golang.org/x/sync v0.4.0/go.mod h1:FU7BRWz2tNW+3quACPkgCx/L+uEAv1htQ0V83Z9Rj+Y= +golang.org/x/sync v0.5.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sync v0.6.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210304124612-50617c2ba197/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210909193231-528a39cd75f3/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20211103235746-7861aae1554b/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220310020820-b874c991c1a5/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220908164124-27713097b956/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.3.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.9.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.11.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.13.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.14.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.15.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.16.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.18.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.20.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/telemetry v0.0.0-20240228155512-f48c80bd79b2/go.mod h1:TeRTkGYfJXctD9OcfyVLyj2J3IxLnKwHJR8f4D8a3YE= +golang.org/x/term v0.13.0/go.mod h1:LTmsnFJwVN6bCy1rVCoS+qHT1HhALEFxKncY3WNNh4U= +golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= +golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= +golang.org/x/text v0.10.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= +golang.org/x/text v0.12.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= +golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= +golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= +golang.org/x/text v0.15.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= +golang.org/x/time v0.0.0-20201208040808-7e3f01d25324/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.3.0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.5.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM= +golang.org/x/tools v0.0.0-20181221001348-537d06c36207/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20190327201419-c70d86f8b7cf/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190927191325-030b2cf1153e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.7.0/go.mod h1:4pg6aUX35JBAogB10C9AtvVL+qowtN4pT3CGSQex14s= +golang.org/x/tools v0.10.0/go.mod h1:UJwyiVBsOA2uwvK/e5OY3GTpDUJriEd+/YlqAwLPmyM= +golang.org/x/tools v0.12.0/go.mod h1:Sc0INKfu04TlqNoRA1hgpFZbhYXHPr4V5DzpSBTPqQM= +golang.org/x/tools v0.12.1-0.20230825192346-2191a27a6dc5/go.mod h1:Sc0INKfu04TlqNoRA1hgpFZbhYXHPr4V5DzpSBTPqQM= +golang.org/x/tools v0.13.0/go.mod h1:HvlwmtVNQAhOuCjW7xxvovg8wbNq7LwfXh/k7wXUl58= +golang.org/x/tools v0.14.0/go.mod h1:uYBEerGOWcJyEORxN+Ek8+TT266gXkNlHdJBwexUsBg= +golang.org/x/tools v0.15.0/go.mod h1:hpksKq4dtpQWS1uQ61JkdqWM3LscIS6Slf+VVkm+wQk= +golang.org/x/tools v0.16.1/go.mod h1:kYVVN6I1mBNoB1OX+noeBjbRk4IUEPa7JJ+TJMEooJ0= +golang.org/x/tools v0.17.0/go.mod h1:xsh6VxdV005rRVaS6SSAf9oiAqljS7UZUacMZ8Bnsps= +golang.org/x/tools v0.18.0/go.mod h1:GL7B4CwcLLeo59yx/9UWWuNOW1n3VZ4f5axWfML7Lcg= +golang.org/x/tools v0.19.0/go.mod h1:qoJWxmGSIBmAeriMx19ogtrEPrGtDbPK634QFIcLAhc= +golang.org/x/tools v0.20.0/go.mod h1:WvitBU7JJf6A4jOdg4S1tviW9bhUxkgeCui/0JHctQg= +golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= +golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028/go.mod h1:NDW/Ps6MPRej6fsCIbMTohpP40sJ/P/vI1MoTEGwX90= +gonum.org/v1/gonum v0.9.3/go.mod h1:TZumC3NeyVQskjXqmyWt4S3bINhy7B4eYwW69EbyX+0= +gonum.org/v1/gonum v0.11.0/go.mod h1:fSG4YDCxxUZQJ7rKsQrj0gMOg00Il0Z96/qMA4bVQhA= +gonum.org/v1/gonum v0.12.0/go.mod h1:73TDxJfAAHeA8Mk9mf8NlIppyhQNo5GLTcYeqgo2lvY= +gonum.org/v1/plot v0.9.0/go.mod h1:3Pcqqmp6RHvJI72kgb8fThyUnav364FOsdDo2aGW5lY= +gonum.org/v1/plot v0.10.0/go.mod h1:JWIHJ7U20drSQb/aDpTetJzfC1KlAPldJLpkSy88dvQ= +gonum.org/v1/plot v0.10.1/go.mod h1:VZW5OlhkL1mysU9vaqNHnsy86inf6Ot+jB3r+BczCEo= +google.golang.org/api v0.0.0-20170206182103-3d017632ea10/go.mod h1:4mhQ8q/RsB7i+udVvVy5NUi08OU8ZlA0gRVgrF7VFY0= +google.golang.org/api v0.114.0/go.mod h1:ifYI2ZsFK6/uGddGfAD5BMxlnkBqCmqHSDUVi45N5Yg= +google.golang.org/api v0.128.0/go.mod h1:Y611qgqaE92On/7g65MQgxYul3c0rEB894kniWLY750= +google.golang.org/api v0.149.0/go.mod h1:Mwn1B7JTXrzXtnvmzQE2BD6bYZQ8DShKZDZbeN9I7qI= +google.golang.org/api v0.152.0/go.mod h1:3qNJX5eOmhiWYc67jRA/3GsDw97UFb5ivv7Y2PrriAY= +google.golang.org/api v0.153.0/go.mod h1:3qNJX5eOmhiWYc67jRA/3GsDw97UFb5ivv7Y2PrriAY= +google.golang.org/api v0.155.0/go.mod h1:GI5qK5f40kCpHfPn6+YzGAByIKWv8ujFnmoWm7Igduk= +google.golang.org/api v0.157.0/go.mod h1:+z4v4ufbZ1WEpld6yMGHyggs+PmAHiaLNj5ytP3N01g= +google.golang.org/api v0.160.0/go.mod h1:0mu0TpK33qnydLvWqbImq2b1eQ5FHRSDCBzAxX9ZHyw= +google.golang.org/api v0.162.0/go.mod h1:6SulDkfoBIg4NFmCuZ39XeeAgSHCPecfSUuDyYlAHs0= +google.golang.org/api v0.164.0/go.mod h1:2OatzO7ZDQsoS7IFf3rvsE17/TldiU3F/zxFHeqUB5o= +google.golang.org/api v0.166.0/go.mod h1:4FcBc686KFi7QI/U51/2GKKevfZMpM17sCdibqe/bSA= +google.golang.org/api v0.169.0/go.mod h1:gpNOiMA2tZ4mf5R9Iwf4rK/Dcz0fbdIgWYWVoxmsyLg= +google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= +google.golang.org/appengine v1.6.8/go.mod h1:1jJ3jBArFh5pcgW8gCtRJnepW8FzD1V44FJffLiz/Ds= +google.golang.org/genproto v0.0.0-20180518175338-11a468237815/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= +google.golang.org/genproto v0.0.0-20221118155620-16455021b5e6/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230227214838-9b19f0bdc514/go.mod h1:TvhZT5f700eVlTNwND1xoEZQeWTB2RY/65kplwl/bFA= +google.golang.org/genproto v0.0.0-20230320184635-7606e756e683/go.mod h1:NWraEVixdDnqcqQ30jipen1STv2r/n24Wb7twVTGR4s= +google.golang.org/genproto v0.0.0-20230410155749-daa745c078e1/go.mod h1:nKE/iIaLqn2bQwXBg8f1g2Ylh6r5MN5CmZvuzZCgsCU= +google.golang.org/genproto v0.0.0-20230526203410-71b5a4ffd15e/go.mod h1:zqTuNwFlFRsw5zIts5VnzLQxSRqh+CGOTVMlYbY0Eyk= +google.golang.org/genproto v0.0.0-20230530153820-e85fd2cbaebc/go.mod h1:xZnkP7mREFX5MORlOPEzLMr+90PPZQ2QWzrVTWfAq64= +google.golang.org/genproto v0.0.0-20230629202037-9506855d4529/go.mod h1:xZnkP7mREFX5MORlOPEzLMr+90PPZQ2QWzrVTWfAq64= +google.golang.org/genproto v0.0.0-20230803162519-f966b187b2e5/go.mod h1:oH/ZOT02u4kWEp7oYBGYFFkCdKS/uYR9Z7+0/xuuFp8= +google.golang.org/genproto v0.0.0-20231002182017-d307bd883b97/go.mod h1:t1VqOqqvce95G3hIDCT5FeO3YUc6Q4Oe24L/+rNMxRk= +google.golang.org/genproto v0.0.0-20231016165738-49dd2c1f3d0b/go.mod h1:CgAqfJo+Xmu0GwA0411Ht3OU3OntXwsGmrmjI8ioGXI= +google.golang.org/genproto v0.0.0-20231106174013-bbf56f31fb17/go.mod h1:J7XzRzVy1+IPwWHZUzoD0IccYZIrXILAQpc+Qy9CMhY= +google.golang.org/genproto v0.0.0-20231212172506-995d672761c0/go.mod h1:l/k7rMz0vFTBPy+tFSGvXEd3z+BcoG1k7EHbqm+YBsY= +google.golang.org/genproto v0.0.0-20240116215550-a9fa1716bcac h1:ZL/Teoy/ZGnzyrqK/Optxxp2pmVh+fmJ97slxSRyzUg= +google.golang.org/genproto v0.0.0-20240116215550-a9fa1716bcac/go.mod h1:+Rvu7ElI+aLzyDQhpHMFMMltsD6m7nqpuWDd2CwJw3k= +google.golang.org/genproto v0.0.0-20240125205218-1f4bbc51befe/go.mod h1:cc8bqMqtv9gMOr0zHg2Vzff5ULhhL2IXP4sbcn32Dro= +google.golang.org/genproto v0.0.0-20240205150955-31a09d347014/go.mod h1:xEgQu1e4stdSSsxPDK8Azkrk/ECl5HvdPf6nbZrTS5M= +google.golang.org/genproto v0.0.0-20240213162025-012b6fc9bca9/go.mod h1:mqHbVIp48Muh7Ywss/AD6I5kNVKZMmAa/QEW58Gxp2s= +google.golang.org/genproto/googleapis/api v0.0.0-20230530153820-e85fd2cbaebc/go.mod h1:vHYtlOoi6TsQ3Uk2yxR7NI5z8uoV+3pZtR4jmHIkRig= +google.golang.org/genproto/googleapis/api v0.0.0-20230726155614-23370e0ffb3e/go.mod h1:rsr7RhLuwsDKL7RmgDDCUc6yaGr1iqceVb5Wv6f6YvQ= +google.golang.org/genproto/googleapis/api v0.0.0-20230920204549-e6e6cdab5c13/go.mod h1:RdyHbowztCGQySiCvQPgWQWgWhGnouTdCflKoDBt32U= +google.golang.org/genproto/googleapis/api v0.0.0-20231016165738-49dd2c1f3d0b/go.mod h1:IBQ646DjkDkvUIsVq/cc03FUFQ9wbZu7yE396YcL870= +google.golang.org/genproto/googleapis/api v0.0.0-20231106174013-bbf56f31fb17/go.mod h1:0xJLfVdJqpAPl8tDg1ujOCGzx6LFLttXT5NhllGOXY4= +google.golang.org/genproto/googleapis/api v0.0.0-20240102182953-50ed04b92917/go.mod h1:CmlNWB9lSezaYELKS5Ym1r44VrrbPUa7JTvw+6MbpJ0= +google.golang.org/genproto/googleapis/api v0.0.0-20240122161410-6c6643bf1457/go.mod h1:4jWUdICTdgc3Ibxmr8nAJiiLHwQBY0UI0XZcEMaFKaA= +google.golang.org/genproto/googleapis/api v0.0.0-20240125205218-1f4bbc51befe/go.mod h1:4jWUdICTdgc3Ibxmr8nAJiiLHwQBY0UI0XZcEMaFKaA= +google.golang.org/genproto/googleapis/api v0.0.0-20240205150955-31a09d347014/go.mod h1:rbHMSEDyoYX62nRVLOCc4Qt1HbsdytAYoVwgjiOhF3I= +google.golang.org/genproto/googleapis/api v0.0.0-20240213162025-012b6fc9bca9/go.mod h1:PVreiBMirk8ypES6aw9d4p6iiBNSIfZEBqr3UGoAi2E= +google.golang.org/genproto/googleapis/api v0.0.0-20240221002015-b0ce06bbee7c/go.mod h1:5iCWqnniDlqZHrd3neWVTOwvh/v6s3232omMecelax8= +google.golang.org/genproto/googleapis/api v0.0.0-20240311132316-a219d84964c2/go.mod h1:O1cOfN1Cy6QEYr7VxtjOyP5AdAuR0aJ/MYZaaof623Y= +google.golang.org/genproto/googleapis/api v0.0.0-20240528184218-531527333157/go.mod h1:99sLkeliLXfdj2J75X3Ho+rrVCaJze0uwN7zDDkjPVU= +google.golang.org/genproto/googleapis/bytestream v0.0.0-20231030173426-d783a09b4405/go.mod h1:GRUCuLdzVqZte8+Dl/D4N25yLzcGqqWaYkeVOwulFqw= +google.golang.org/genproto/googleapis/bytestream v0.0.0-20240125205218-1f4bbc51befe/go.mod h1:SCz6T5xjNXM4QFPRwxHcfChp7V+9DcXR3ay2TkHR8Tg= +google.golang.org/genproto/googleapis/bytestream v0.0.0-20240304161311-37d4d3c04a78/go.mod h1:vh/N7795ftP0AkN1w8XKqN4w1OdUKXW5Eummda+ofv8= +google.golang.org/genproto/googleapis/rpc v0.0.0-20230526203410-71b5a4ffd15e/go.mod h1:66JfowdXAEgad5O9NnYcsNPLCPZJD++2L9X0PCMODrA= +google.golang.org/genproto/googleapis/rpc v0.0.0-20230530153820-e85fd2cbaebc/go.mod h1:66JfowdXAEgad5O9NnYcsNPLCPZJD++2L9X0PCMODrA= +google.golang.org/genproto/googleapis/rpc v0.0.0-20230706204954-ccb25ca9f130/go.mod h1:8mL13HKkDa+IuJ8yruA3ci0q+0vsUz4m//+ottjwS5o= +google.golang.org/genproto/googleapis/rpc v0.0.0-20230822172742-b8732ec3820d/go.mod h1:+Bk1OCOj40wS2hwAMA+aCW9ypzm63QTBBHp6lQ3p+9M= +google.golang.org/genproto/googleapis/rpc v0.0.0-20230920204549-e6e6cdab5c13/go.mod h1:KSqppvjFjtoCI+KGd4PELB0qLNxdJHRGqRI09mB6pQA= +google.golang.org/genproto/googleapis/rpc v0.0.0-20231002182017-d307bd883b97/go.mod h1:v7nGkzlmW8P3n/bKmWBn2WpBjpOEx8Q6gMueudAmKfY= +google.golang.org/genproto/googleapis/rpc v0.0.0-20231009173412-8bfb1ae86b6c/go.mod h1:4cYg8o5yUbm77w8ZX00LhMVNl/YVBFJRYWDc0uYWMs0= +google.golang.org/genproto/googleapis/rpc v0.0.0-20231016165738-49dd2c1f3d0b/go.mod h1:swOH3j0KzcDDgGUWr+SNpyTen5YrXjS3eyPzFYKc6lc= +google.golang.org/genproto/googleapis/rpc v0.0.0-20231106174013-bbf56f31fb17/go.mod h1:oQ5rr10WTTMvP4A36n8JpR1OrO1BEiV4f78CneXZxkA= +google.golang.org/genproto/googleapis/rpc v0.0.0-20231120223509-83a465c0220f/go.mod h1:L9KNLi232K1/xB6f7AlSX692koaRnKaWSR0stBki0Yc= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240102182953-50ed04b92917/go.mod h1:xtjpI3tXFPP051KaWnhvxkiubL/6dJ18vLVf7q2pTOU= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240116215550-a9fa1716bcac/go.mod h1:daQN87bsDqDoe316QbbvX60nMoJQa4r6Ds0ZuoAe5yA= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240123012728-ef4313101c80/go.mod h1:PAREbraiVEVGVdTZsVWjSbbTtSyGbAgIIvni8a8CD5s= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240125205218-1f4bbc51befe/go.mod h1:PAREbraiVEVGVdTZsVWjSbbTtSyGbAgIIvni8a8CD5s= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240205150955-31a09d347014/go.mod h1:SaPjaZGWb0lPqs6Ittu0spdfrOArqji4ZdeP5IC/9N4= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240213162025-012b6fc9bca9/go.mod h1:YUWgXUFRPfoYK1IHMuxH5K6nPEXSCzIMljnQ59lLRCk= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240221002015-b0ce06bbee7c/go.mod h1:H4O17MA/PE9BsGx3w+a+W2VOLLD1Qf7oJneAoU6WktY= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240304161311-37d4d3c04a78/go.mod h1:UCOku4NytXMJuLQE5VuqA5lX3PcHCBo8pxNyvkf4xBs= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240528184218-531527333157/go.mod h1:EfXuqaE1J41VCDicxHzUDm+8rk+7ZdXzHV0IhO/I6s0= +google.golang.org/grpc v0.0.0-20170208002647-2a6bf6142e96/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw= +google.golang.org/grpc v1.12.0/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw= +google.golang.org/grpc v1.50.1/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI= +google.golang.org/grpc v1.53.0/go.mod h1:OnIrk0ipVdj4N5d9IUoFUx72/VlD7+jUsHwZgwSMQpw= +google.golang.org/grpc v1.56.3/go.mod h1:I9bI3vqKfayGqPUAwGdOSu7kt6oIJLixfffKrpXqQ9s= +google.golang.org/grpc v1.58.0/go.mod h1:tgX3ZQDlNJGU96V6yHh1T/JeoBQ2TXdr43YbYSsCJk0= +google.golang.org/grpc v1.58.3/go.mod h1:tgX3ZQDlNJGU96V6yHh1T/JeoBQ2TXdr43YbYSsCJk0= +google.golang.org/grpc v1.59.0/go.mod h1:aUPDwccQo6OTjy7Hct4AfBPD1GptF4fyUjIkQ9YtF98= +google.golang.org/grpc v1.60.1/go.mod h1:OlCHIeLYqSSsLi6i49B5QGdzaMZK9+M7LXN2FKz4eGM= +google.golang.org/grpc v1.61.0/go.mod h1:VUbo7IFqmF1QtCAstipjG0GIoq49KvMe9+h1jFLBNJs= +google.golang.org/grpc v1.61.1/go.mod h1:VUbo7IFqmF1QtCAstipjG0GIoq49KvMe9+h1jFLBNJs= +google.golang.org/grpc v1.62.0/go.mod h1:IWTG0VlJLCh1SkC58F7np9ka9mx/WNkjl4PGJaiq+QE= +google.golang.org/grpc v1.62.1/go.mod h1:IWTG0VlJLCh1SkC58F7np9ka9mx/WNkjl4PGJaiq+QE= +google.golang.org/grpc v1.64.1/go.mod h1:hiQF4LFZelK2WKaP6W0L92zGHtiQdZxk8CrSdvyjeP0= +google.golang.org/protobuf v1.29.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= +google.golang.org/protobuf v1.30.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= +google.golang.org/protobuf v1.31.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= +google.golang.org/protobuf v1.32.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= +google.golang.org/protobuf v1.33.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= +google.golang.org/protobuf v1.34.1/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= +gopkg.in/go-playground/assert.v1 v1.2.1/go.mod h1:9RXL0bg/zibRAgZUYszZSwO/z8Y/a8bDuhia5mkpMnE= +gopkg.in/go-playground/validator.v8 v8.18.2/go.mod h1:RX2a/7Ha8BgOhfk7j780h4/u/RRjR0eouCJSH80/M2Y= +gopkg.in/ini.v1 v1.51.1/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= +gopkg.in/mgo.v2 v2.0.0-20180705113604-9856a29383ce/go.mod h1:yeKp02qBN3iKW1OzL3MGk2IdtZzaj7SFntXj72NppTA= +gopkg.in/natefinch/lumberjack.v2 v2.0.0/go.mod h1:l0ndWWf7gzL7RNwBG7wST/UCcT4T24xpD6X8LsfU/+k= +gopkg.in/natefinch/npipe.v2 v2.0.0-20160621034901-c1b8fa8bdcce/go.mod h1:5AcXVHNjg+BDxry382+8OKon8SEWiKktQR07RKPsv1c= +gopkg.in/yaml.v3 v3.0.0-20191120175047-4206685974f2/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gotest.tools v2.2.0+incompatible h1:VsBPFP1AI068pPrMxtb/S8Zkgf9xEmTLJjfM+P5UIEo= +gotest.tools v2.2.0+incompatible/go.mod h1:DsYFclhRJ6vuDpmuTbkuFWG+y2sxOXAzmJt81HFBacw= +gotest.tools/v3 v3.5.0/go.mod h1:isy3WKz7GK6uNw/sbHzfKBLvlvXwUyV06n6brMxxopU= +honnef.co/go/tools v0.1.3/go.mod h1:NgwopIslSNH47DimFoV78dnkksY2EFtX0ajyb3K/las= +honnef.co/go/tools v0.4.6/go.mod h1:+rnGS1THNh8zMwnd2oVOTL9QF6vmfyG6ZXBULae2uc0= +moul.io/http2curl/v2 v2.3.0/go.mod h1:RW4hyBjTWSYDOxapodpNEtX0g5Eb16sxklBqmd2RHcE= +mvdan.cc/interfacer v0.0.0-20180901003855-c20040233aed h1:WX1yoOaKQfddO/mLzdV4wptyWgoH/6hwLs7QHTixo0I= +mvdan.cc/interfacer v0.0.0-20180901003855-c20040233aed/go.mod h1:Xkxe497xwlCKkIaQYRfC7CSLworTXY9RMqwhhCm+8Nc= +mvdan.cc/lint v0.0.0-20170908181259-adc824a0674b h1:DxJ5nJdkhDlLok9K6qO+5290kphDJbHOQO1DFFFTeBo= +mvdan.cc/lint v0.0.0-20170908181259-adc824a0674b/go.mod h1:2odslEg/xrtNQqCYg2/jCoyKnw3vv5biOc3JnIcYfL4= +mvdan.cc/unparam v0.0.0-20221223090309-7455f1af531d/go.mod h1:IeHQjmn6TOD+e4Z3RFiZMMsLVL+A96Nvptar8Fj71is= +rsc.io/tmplfunc v0.0.3/go.mod h1:AG3sTPzElb1Io3Yg4voV9AGZJuleGAwaVRxL9M49PhA= +sigs.k8s.io/yaml v1.3.0/go.mod h1:GeOyir5tyXNByN85N/dRIT9es5UQNerPYEKK56eTBm8= diff --git a/proto/Dockerfile b/proto/Dockerfile deleted file mode 100644 index 516f702..0000000 --- a/proto/Dockerfile +++ /dev/null @@ -1,23 +0,0 @@ -FROM bufbuild/buf:1.27.1 as BUILDER -FROM golang:1.21-alpine - -RUN apk add --no-cache \ - nodejs \ - npm \ - git \ - make - -RUN go install github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway@latest - -RUN git clone https://github.com/regen-network/protobuf.git; \ - cd protobuf; \ - go mod download; \ - make install; \ - cd .. - -RUN git clone https://github.com/regen-network/cosmos-proto.git; \ - cd cosmos-proto/protoc-gen-gocosmos; \ - go install .; \ - cd .. - -COPY --from=BUILDER /usr/local/bin /usr/local/bin diff --git a/proto/buf.gen.gogo.yaml b/proto/buf.gen.gogo.yaml new file mode 100644 index 0000000..0c699df --- /dev/null +++ b/proto/buf.gen.gogo.yaml @@ -0,0 +1,24 @@ +# Copyright 2024 Circle Internet Group, Inc. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 + +version: v1 +plugins: + - name: gocosmos + out: .. + opt: plugins=grpc,Mgoogle/protobuf/any.proto=github.com/cosmos/cosmos-sdk/codec/types + - name: grpc-gateway + out: .. + opt: logtostderr=true,allow_colon_final_segments=true diff --git a/proto/buf.gen.pulsar.yaml b/proto/buf.gen.pulsar.yaml new file mode 100644 index 0000000..aac0e9c --- /dev/null +++ b/proto/buf.gen.pulsar.yaml @@ -0,0 +1,34 @@ +# Copyright 2024 Circle Internet Group, Inc. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 + +version: v1 +managed: + enabled: true + go_package_prefix: + default: github.com/circlefin/noble-cctp/api + except: + - buf.build/cosmos/cosmos-proto + - buf.build/cosmos/gogo-proto + - buf.build/googleapis/googleapis + override: + buf.build/cosmos/cosmos-sdk: cosmossdk.io/api +plugins: + - name: go-pulsar + out: ../api + opt: paths=source_relative + - name: go-grpc + out: ../api + opt: paths=source_relative diff --git a/proto/buf.gen.yaml b/proto/buf.gen.yaml deleted file mode 100644 index eab53cd..0000000 --- a/proto/buf.gen.yaml +++ /dev/null @@ -1,8 +0,0 @@ -version: v1 -plugins: - - name: gocosmos - out: .. - opt: - - plugins=grpc - - name: grpc-gateway - out: .. diff --git a/proto/buf.lock b/proto/buf.lock index bc3f9cf..33ee1fb 100644 --- a/proto/buf.lock +++ b/proto/buf.lock @@ -2,7 +2,22 @@ version: v1 deps: - remote: buf.build - owner: noble + owner: cosmos + repository: cosmos-proto + commit: 1935555c206d4afb9e94615dfd0fad31 + digest: shake256:c74d91a3ac7ae07d579e90eee33abf9b29664047ac8816500cf22c081fec0d72d62c89ce0bebafc1f6fec7aa5315be72606717740ca95007248425102c365377 + - remote: buf.build + owner: cosmos repository: cosmos-sdk - commit: b18b492ea3364d5fa88fe3ead0b57a95 - digest: shake256:ce3896962b4241dbaa0776fa00e661184b8bdba629722b9f38bc7e221e04d379b3ad18531f33e2552ba675cca39381dcf0df693ec146c14db719741510c24852 + commit: 5a6ab7bc14314acaa912d5e53aef1c2f + digest: shake256:02c00c73493720055f9b57553a35b5550023a3c1914123b247956288a78fb913aff70e66552777ae14d759467e119079d484af081264a5dd607a94d9fbc8116b + - remote: buf.build + owner: cosmos + repository: gogo-proto + commit: 5e5b9fdd01804356895f8f79a6f1ddc1 + digest: shake256:0b85da49e2e5f9ebc4806eae058e2f56096ff3b1c59d1fb7c190413dd15f45dd456f0b69ced9059341c80795d2b6c943de15b120a9e0308b499e43e4b5fc2952 + - remote: buf.build + owner: googleapis + repository: googleapis + commit: cc916c31859748a68fd229a3c8d7a2e8 + digest: shake256:469b049d0eb04203d5272062636c078decefc96fec69739159c25d85349c50c34c7706918a8b216c5c27f76939df48452148cff8c5c3ae77fa6ba5c25c1b8bf8 diff --git a/proto/buf.yaml b/proto/buf.yaml index 0810340..615b70b 100644 --- a/proto/buf.yaml +++ b/proto/buf.yaml @@ -1,6 +1,25 @@ +# Copyright 2024 Circle Internet Group, Inc. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 + version: v1 deps: - - buf.build/noble/cosmos-sdk:v0.45.16 + - buf.build/cosmos/cosmos-proto:1935555c206d4afb9e94615dfd0fad31 + - buf.build/cosmos/cosmos-sdk:v0.50.0 + - buf.build/cosmos/gogo-proto:5e5b9fdd01804356895f8f79a6f1ddc1 + - buf.build/googleapis/googleapis:cc916c31859748a68fd229a3c8d7a2e8 breaking: use: - FILE diff --git a/proto/circle/cctp/module/v1/module.proto b/proto/circle/cctp/module/v1/module.proto new file mode 100644 index 0000000..25fcaeb --- /dev/null +++ b/proto/circle/cctp/module/v1/module.proto @@ -0,0 +1,26 @@ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + +syntax = "proto3"; + +package circle.cctp.module.v1; + +import "cosmos/app/v1alpha1/module.proto"; + +// Module is the config object of the CCTP module. +message Module { + option (cosmos.app.v1alpha1.module) = {go_import: "github.com/circlefin/noble-cctp/x/cctp"}; +} diff --git a/proto/circle/cctp/v1/attester.proto b/proto/circle/cctp/v1/attester.proto index 6c14fa1..84e19de 100644 --- a/proto/circle/cctp/v1/attester.proto +++ b/proto/circle/cctp/v1/attester.proto @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + syntax = "proto3"; package circle.cctp.v1; diff --git a/proto/circle/cctp/v1/burn_message.proto b/proto/circle/cctp/v1/burn_message.proto index 2a0a483..1dfba36 100644 --- a/proto/circle/cctp/v1/burn_message.proto +++ b/proto/circle/cctp/v1/burn_message.proto @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + syntax = "proto3"; package circle.cctp.v1; diff --git a/proto/circle/cctp/v1/burning_and_minting_paused.proto b/proto/circle/cctp/v1/burning_and_minting_paused.proto index 0e7af70..750d910 100644 --- a/proto/circle/cctp/v1/burning_and_minting_paused.proto +++ b/proto/circle/cctp/v1/burning_and_minting_paused.proto @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + syntax = "proto3"; package circle.cctp.v1; diff --git a/proto/circle/cctp/v1/events.proto b/proto/circle/cctp/v1/events.proto index 51db120..4151746 100644 --- a/proto/circle/cctp/v1/events.proto +++ b/proto/circle/cctp/v1/events.proto @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + syntax = "proto3"; package circle.cctp.v1; diff --git a/proto/circle/cctp/v1/genesis.proto b/proto/circle/cctp/v1/genesis.proto index c31eb40..6b6fd61 100644 --- a/proto/circle/cctp/v1/genesis.proto +++ b/proto/circle/cctp/v1/genesis.proto @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + syntax = "proto3"; package circle.cctp.v1; diff --git a/proto/circle/cctp/v1/max_message_body_size.proto b/proto/circle/cctp/v1/max_message_body_size.proto index 53585f7..4142923 100644 --- a/proto/circle/cctp/v1/max_message_body_size.proto +++ b/proto/circle/cctp/v1/max_message_body_size.proto @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + syntax = "proto3"; package circle.cctp.v1; diff --git a/proto/circle/cctp/v1/message.proto b/proto/circle/cctp/v1/message.proto index c31ae78..5e88f8f 100644 --- a/proto/circle/cctp/v1/message.proto +++ b/proto/circle/cctp/v1/message.proto @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + syntax = "proto3"; package circle.cctp.v1; diff --git a/proto/circle/cctp/v1/nonce.proto b/proto/circle/cctp/v1/nonce.proto index d916098..621d9ca 100644 --- a/proto/circle/cctp/v1/nonce.proto +++ b/proto/circle/cctp/v1/nonce.proto @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + syntax = "proto3"; package circle.cctp.v1; diff --git a/proto/circle/cctp/v1/params.proto b/proto/circle/cctp/v1/params.proto deleted file mode 100644 index 88a36f8..0000000 --- a/proto/circle/cctp/v1/params.proto +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -syntax = "proto3"; - -package circle.cctp.v1; - -import "gogoproto/gogo.proto"; - -option go_package = "github.com/circlefin/noble-cctp/x/cctp/types"; - -/** - * Params defines the parameters for the module. - */ -message Params { - option (gogoproto.goproto_stringer) = false; -} diff --git a/proto/circle/cctp/v1/per_message_burn_limit.proto b/proto/circle/cctp/v1/per_message_burn_limit.proto index f41aac0..31c309c 100644 --- a/proto/circle/cctp/v1/per_message_burn_limit.proto +++ b/proto/circle/cctp/v1/per_message_burn_limit.proto @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + syntax = "proto3"; package circle.cctp.v1; diff --git a/proto/circle/cctp/v1/query.proto b/proto/circle/cctp/v1/query.proto index 442edf7..fc4c005 100644 --- a/proto/circle/cctp/v1/query.proto +++ b/proto/circle/cctp/v1/query.proto @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + syntax = "proto3"; package circle.cctp.v1; @@ -21,7 +22,6 @@ import "circle/cctp/v1/attester.proto"; import "circle/cctp/v1/burning_and_minting_paused.proto"; import "circle/cctp/v1/max_message_body_size.proto"; import "circle/cctp/v1/nonce.proto"; -import "circle/cctp/v1/params.proto"; import "circle/cctp/v1/per_message_burn_limit.proto"; import "circle/cctp/v1/remote_token_messenger.proto"; import "circle/cctp/v1/sending_and_receiving_messages_paused.proto"; @@ -35,11 +35,6 @@ option go_package = "github.com/circlefin/noble-cctp/x/cctp/types"; // Query defines the gRPC querier service. service Query { - // Parameters queries the parameters of the module. - // rpc Params(QueryParamsRequest) returns (QueryParamsResponse) { - // option (google.api.http).get = "/circle/cctp/v1/params"; - // } - rpc Roles(QueryRolesRequest) returns (QueryRolesResponse) { option (google.api.http).get = "/circle/cctp/v1/roles"; } @@ -118,15 +113,6 @@ service Query { } } -// QueryParamsRequest is the request type for the Query/Params RPC method. -message QueryParamsRequest {} - -// QueryParamsResponse is the response type for the Query/Params RPC method. -message QueryParamsResponse { - // params holds all the parameters of this module. - Params params = 1 [(gogoproto.nullable) = false]; -} - // QueryRolesRequest is the request type for the Query/Roles RPC method. message QueryRolesRequest {} diff --git a/proto/circle/cctp/v1/remote_token_messenger.proto b/proto/circle/cctp/v1/remote_token_messenger.proto index cf37aba..4b156d3 100644 --- a/proto/circle/cctp/v1/remote_token_messenger.proto +++ b/proto/circle/cctp/v1/remote_token_messenger.proto @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + syntax = "proto3"; package circle.cctp.v1; diff --git a/proto/circle/cctp/v1/sending_and_receiving_messages_paused.proto b/proto/circle/cctp/v1/sending_and_receiving_messages_paused.proto index 1236f25..53894fd 100644 --- a/proto/circle/cctp/v1/sending_and_receiving_messages_paused.proto +++ b/proto/circle/cctp/v1/sending_and_receiving_messages_paused.proto @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + syntax = "proto3"; package circle.cctp.v1; diff --git a/proto/circle/cctp/v1/signature_threshold.proto b/proto/circle/cctp/v1/signature_threshold.proto index fabe584..3c234c3 100644 --- a/proto/circle/cctp/v1/signature_threshold.proto +++ b/proto/circle/cctp/v1/signature_threshold.proto @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + syntax = "proto3"; package circle.cctp.v1; diff --git a/proto/circle/cctp/v1/token_pair.proto b/proto/circle/cctp/v1/token_pair.proto index 530b2ad..a6ca7ab 100644 --- a/proto/circle/cctp/v1/token_pair.proto +++ b/proto/circle/cctp/v1/token_pair.proto @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + syntax = "proto3"; package circle.cctp.v1; diff --git a/proto/circle/cctp/v1/tx.proto b/proto/circle/cctp/v1/tx.proto index 085780c..02e696c 100644 --- a/proto/circle/cctp/v1/tx.proto +++ b/proto/circle/cctp/v1/tx.proto @@ -1,28 +1,34 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + syntax = "proto3"; package circle.cctp.v1; +import "amino/amino.proto"; +import "cosmos/msg/v1/msg.proto"; +import "cosmos_proto/cosmos.proto"; import "gogoproto/gogo.proto"; option go_package = "github.com/circlefin/noble-cctp/x/cctp/types"; // Msg defines the Msg service. service Msg { + option (cosmos.msg.v1.service) = true; + rpc AcceptOwner(MsgAcceptOwner) returns (MsgAcceptOwnerResponse); rpc AddRemoteTokenMessenger(MsgAddRemoteTokenMessenger) returns (MsgAddRemoteTokenMessengerResponse); rpc DepositForBurn(MsgDepositForBurn) returns (MsgDepositForBurnResponse); @@ -50,88 +56,165 @@ service Msg { rpc UpdateSignatureThreshold(MsgUpdateSignatureThreshold) returns (MsgUpdateSignatureThresholdResponse); } -// TODO add comments message MsgUpdateOwner { - string from = 1; - string new_owner = 2; + option (cosmos.msg.v1.signer) = "from"; + option (amino.name) = "cctp/UpdateOwner"; + + option (gogoproto.equal) = false; + option (gogoproto.goproto_getters) = false; + + string from = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + string new_owner = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; } message MsgUpdateOwnerResponse {} message MsgUpdateAttesterManager { - string from = 1; - string new_attester_manager = 2; + option (cosmos.msg.v1.signer) = "from"; + option (amino.name) = "cctp/UpdateAttesterManager"; + + option (gogoproto.equal) = false; + option (gogoproto.goproto_getters) = false; + + string from = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + string new_attester_manager = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; } message MsgUpdateAttesterManagerResponse {} message MsgUpdateTokenController { - string from = 1; - string new_token_controller = 2; + option (cosmos.msg.v1.signer) = "from"; + option (amino.name) = "cctp/UpdateTokenController"; + + option (gogoproto.equal) = false; + option (gogoproto.goproto_getters) = false; + + string from = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + string new_token_controller = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; } message MsgUpdateTokenControllerResponse {} message MsgUpdatePauser { - string from = 1; - string new_pauser = 2; + option (cosmos.msg.v1.signer) = "from"; + option (amino.name) = "cctp/UpdatePauser"; + + option (gogoproto.equal) = false; + option (gogoproto.goproto_getters) = false; + + string from = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + string new_pauser = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; } message MsgUpdatePauserResponse {} message MsgAcceptOwner { - string from = 1; + option (cosmos.msg.v1.signer) = "from"; + option (amino.name) = "cctp/AcceptOwner"; + + option (gogoproto.equal) = false; + option (gogoproto.goproto_getters) = false; + + string from = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; } message MsgAcceptOwnerResponse {} message MsgEnableAttester { - string from = 1; + option (cosmos.msg.v1.signer) = "from"; + option (amino.name) = "cctp/EnableAttester"; + + option (gogoproto.equal) = false; + option (gogoproto.goproto_getters) = false; + + string from = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; string attester = 2; } message MsgEnableAttesterResponse {} message MsgDisableAttester { - string from = 1; + option (cosmos.msg.v1.signer) = "from"; + option (amino.name) = "cctp/DisableAttester"; + + option (gogoproto.equal) = false; + option (gogoproto.goproto_getters) = false; + + string from = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; string attester = 2; } message MsgDisableAttesterResponse {} message MsgPauseBurningAndMinting { - string from = 1; + option (cosmos.msg.v1.signer) = "from"; + option (amino.name) = "cctp/PauseBurningAndMinting"; + + option (gogoproto.equal) = false; + option (gogoproto.goproto_getters) = false; + + string from = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; } message MsgPauseBurningAndMintingResponse {} message MsgUnpauseBurningAndMinting { - string from = 1; + option (cosmos.msg.v1.signer) = "from"; + option (amino.name) = "cctp/UnpauseBurningAndMinting"; + + option (gogoproto.equal) = false; + option (gogoproto.goproto_getters) = false; + + string from = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; } message MsgUnpauseBurningAndMintingResponse {} message MsgPauseSendingAndReceivingMessages { - string from = 1; + option (cosmos.msg.v1.signer) = "from"; + option (amino.name) = "cctp/PauseSendingAndReceivingMessages"; + + option (gogoproto.equal) = false; + option (gogoproto.goproto_getters) = false; + + string from = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; } message MsgPauseSendingAndReceivingMessagesResponse {} message MsgUnpauseSendingAndReceivingMessages { - string from = 1; + option (cosmos.msg.v1.signer) = "from"; + option (amino.name) = "cctp/UnpauseSendingAndReceivingMessages"; + + option (gogoproto.equal) = false; + option (gogoproto.goproto_getters) = false; + + string from = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; } message MsgUnpauseSendingAndReceivingMessagesResponse {} message MsgUpdateMaxMessageBodySize { - string from = 1; + option (cosmos.msg.v1.signer) = "from"; + option (amino.name) = "cctp/UpdateMaxMessageBodySize"; + + option (gogoproto.equal) = false; + option (gogoproto.goproto_getters) = false; + + string from = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; uint64 message_size = 2; } message MsgUpdateMaxMessageBodySizeResponse {} message MsgSetMaxBurnAmountPerMessage { - string from = 1; + option (cosmos.msg.v1.signer) = "from"; + option (amino.name) = "cctp/SetMaxBurnAmountPerMessage"; + + option (gogoproto.equal) = false; + option (gogoproto.goproto_getters) = false; + + string from = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; string local_token = 2; string amount = 3 [ (gogoproto.customtype) = "cosmossdk.io/math.Int", @@ -142,7 +225,13 @@ message MsgSetMaxBurnAmountPerMessage { message MsgSetMaxBurnAmountPerMessageResponse {} message MsgDepositForBurn { - string from = 1; + option (cosmos.msg.v1.signer) = "from"; + option (amino.name) = "cctp/DepositForBurn"; + + option (gogoproto.equal) = false; + option (gogoproto.goproto_getters) = false; + + string from = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; string amount = 2 [ (gogoproto.customtype) = "cosmossdk.io/math.Int", (gogoproto.nullable) = false @@ -157,7 +246,13 @@ message MsgDepositForBurnResponse { } message MsgDepositForBurnWithCaller { - string from = 1; + option (cosmos.msg.v1.signer) = "from"; + option (amino.name) = "cctp/DepositForBurnWithCaller"; + + option (gogoproto.equal) = false; + option (gogoproto.goproto_getters) = false; + + string from = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; string amount = 2 [ (gogoproto.customtype) = "cosmossdk.io/math.Int", (gogoproto.nullable) = false @@ -173,7 +268,13 @@ message MsgDepositForBurnWithCallerResponse { } message MsgReplaceDepositForBurn { - string from = 1; + option (cosmos.msg.v1.signer) = "from"; + option (amino.name) = "cctp/ReplaceDepositForBurn"; + + option (gogoproto.equal) = false; + option (gogoproto.goproto_getters) = false; + + string from = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; bytes original_message = 2; bytes original_attestation = 3; bytes new_destination_caller = 4; @@ -183,7 +284,13 @@ message MsgReplaceDepositForBurn { message MsgReplaceDepositForBurnResponse {} message MsgReceiveMessage { - string from = 1; + option (cosmos.msg.v1.signer) = "from"; + option (amino.name) = "cctp/ReceiveMessage"; + + option (gogoproto.equal) = false; + option (gogoproto.goproto_getters) = false; + + string from = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; bytes message = 2; bytes attestation = 3; } @@ -193,7 +300,13 @@ message MsgReceiveMessageResponse { } message MsgSendMessage { - string from = 1; + option (cosmos.msg.v1.signer) = "from"; + option (amino.name) = "cctp/SendMessage"; + + option (gogoproto.equal) = false; + option (gogoproto.goproto_getters) = false; + + string from = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; uint32 destination_domain = 2; bytes recipient = 3; bytes message_body = 4; @@ -204,7 +317,13 @@ message MsgSendMessageResponse { } message MsgSendMessageWithCaller { - string from = 1; + option (cosmos.msg.v1.signer) = "from"; + option (amino.name) = "cctp/SendMessageWithCaller"; + + option (gogoproto.equal) = false; + option (gogoproto.goproto_getters) = false; + + string from = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; uint32 destination_domain = 2; bytes recipient = 3; bytes message_body = 4; @@ -216,7 +335,13 @@ message MsgSendMessageWithCallerResponse { } message MsgReplaceMessage { - string from = 1; + option (cosmos.msg.v1.signer) = "from"; + option (amino.name) = "cctp/ReplaceMessage"; + + option (gogoproto.equal) = false; + option (gogoproto.goproto_getters) = false; + + string from = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; bytes original_message = 2; bytes original_attestation = 3; bytes new_message_body = 4; @@ -226,14 +351,26 @@ message MsgReplaceMessage { message MsgReplaceMessageResponse {} message MsgUpdateSignatureThreshold { - string from = 1; + option (cosmos.msg.v1.signer) = "from"; + option (amino.name) = "cctp/UpdateSignatureThreshold"; + + option (gogoproto.equal) = false; + option (gogoproto.goproto_getters) = false; + + string from = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; uint32 amount = 2; } message MsgUpdateSignatureThresholdResponse {} message MsgLinkTokenPair { - string from = 1; + option (cosmos.msg.v1.signer) = "from"; + option (amino.name) = "cctp/LinkTokenPair"; + + option (gogoproto.equal) = false; + option (gogoproto.goproto_getters) = false; + + string from = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; uint32 remote_domain = 2; bytes remote_token = 3; string local_token = 4; @@ -242,7 +379,13 @@ message MsgLinkTokenPair { message MsgLinkTokenPairResponse {} message MsgUnlinkTokenPair { - string from = 1; + option (cosmos.msg.v1.signer) = "from"; + option (amino.name) = "cctp/UnlinkTokenPair"; + + option (gogoproto.equal) = false; + option (gogoproto.goproto_getters) = false; + + string from = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; uint32 remote_domain = 2; bytes remote_token = 3; string local_token = 4; @@ -251,7 +394,13 @@ message MsgUnlinkTokenPair { message MsgUnlinkTokenPairResponse {} message MsgAddRemoteTokenMessenger { - string from = 1; + option (cosmos.msg.v1.signer) = "from"; + option (amino.name) = "cctp/AddRemoteTokenMessenger"; + + option (gogoproto.equal) = false; + option (gogoproto.goproto_getters) = false; + + string from = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; uint32 domain_id = 2; bytes address = 3; } @@ -259,7 +408,13 @@ message MsgAddRemoteTokenMessenger { message MsgAddRemoteTokenMessengerResponse {} message MsgRemoveRemoteTokenMessenger { - string from = 1; + option (cosmos.msg.v1.signer) = "from"; + option (amino.name) = "cctp/RemoveRemoteTokenMessenger"; + + option (gogoproto.equal) = false; + option (gogoproto.goproto_getters) = false; + + string from = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; uint32 domain_id = 2; } diff --git a/proto/generate.sh b/proto/generate.sh index 0304695..b619968 100644 --- a/proto/generate.sh +++ b/proto/generate.sh @@ -1,6 +1,24 @@ +# Copyright 2024 Circle Internet Group, Inc. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 + cd proto -buf generate +buf generate --template buf.gen.gogo.yaml +buf generate --template buf.gen.pulsar.yaml cd .. cp -r github.com/circlefin/noble-cctp/* ./ rm -rf github.com +rm -rf circle diff --git a/testutil/keeper/bank.go b/testutil/keeper/bank.go index 406b99a..7699c07 100644 --- a/testutil/keeper/bank.go +++ b/testutil/keeper/bank.go @@ -1,91 +1,57 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper import ( + "context" "errors" + "cosmossdk.io/math" + + "github.com/circlefin/noble-cctp/x/cctp/types" sdk "github.com/cosmos/cosmos-sdk/types" - banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" ) type MockBankKeeper struct{} -func (MockBankKeeper) SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins { - return nil -} - -func (MockBankKeeper) MintCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error { - return nil -} - -func (MockBankKeeper) BurnCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error { - return nil -} - -func (MockBankKeeper) SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error { - return nil -} +var _ types.BankKeeper = MockBankKeeper{} -func (MockBankKeeper) SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error { +func (MockBankKeeper) SendCoinsFromAccountToModule(ctx context.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error { return nil } -func (MockBankKeeper) GetDenomMetaData(ctx sdk.Context, denom string) (banktypes.Metadata, bool) { - return banktypes.Metadata{}, true -} - -func (MockBankKeeper) GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin { +func (MockBankKeeper) GetBalance(ctx context.Context, addr sdk.AccAddress, denom string) sdk.Coin { return sdk.Coin{ Denom: "uusdc", - Amount: sdk.Int{}, + Amount: math.Int{}, } } -// +type MockErrBankKeeper struct{} -type ErrBankKeeper struct{} - -func (ErrBankKeeper) SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins { - return nil -} - -func (ErrBankKeeper) MintCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error { - return nil -} +var _ types.BankKeeper = MockErrBankKeeper{} -func (ErrBankKeeper) BurnCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error { - return nil -} - -func (ErrBankKeeper) SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error { - return nil -} - -func (ErrBankKeeper) SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error { +func (MockErrBankKeeper) SendCoinsFromAccountToModule(ctx context.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error { return errors.New("intentional error") } -func (ErrBankKeeper) GetDenomMetaData(ctx sdk.Context, denom string) (banktypes.Metadata, bool) { - return banktypes.Metadata{}, true -} - -func (ErrBankKeeper) GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin { +func (MockErrBankKeeper) GetBalance(ctx context.Context, addr sdk.AccAddress, denom string) sdk.Coin { return sdk.Coin{ Denom: "uusdc", - Amount: sdk.Int{}, + Amount: math.Int{}, } } diff --git a/testutil/keeper/cctp.go b/testutil/keeper/cctp.go index a1b6c39..bdc43e1 100644 --- a/testutil/keeper/cctp.go +++ b/testutil/keeper/cctp.go @@ -1,164 +1,110 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper import ( - "testing" + "context" + "cosmossdk.io/log" + "cosmossdk.io/store" + "cosmossdk.io/store/metrics" + storetypes "cosmossdk.io/store/types" "github.com/circlefin/noble-cctp/x/cctp/keeper" "github.com/circlefin/noble-cctp/x/cctp/types" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" + db "github.com/cosmos/cosmos-db" "github.com/cosmos/cosmos-sdk/codec" codectypes "github.com/cosmos/cosmos-sdk/codec/types" - "github.com/cosmos/cosmos-sdk/store" - storetypes "github.com/cosmos/cosmos-sdk/store/types" + "github.com/cosmos/cosmos-sdk/runtime" sdk "github.com/cosmos/cosmos-sdk/types" - typesparams "github.com/cosmos/cosmos-sdk/x/params/types" - "github.com/stretchr/testify/require" - "github.com/tendermint/tendermint/libs/log" - tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - tmdb "github.com/tendermint/tm-db" ) -func CctpKeeperWithKey(t testing.TB, storeKey sdk.StoreKey) (*keeper.Keeper, sdk.Context) { - db := tmdb.NewMemDB() - stateStore := store.NewCommitMultiStore(db) - stateStore.MountStoreWithDB(storeKey, storetypes.StoreTypeIAVL, db) - require.NoError(t, stateStore.LoadLatestVersion()) - - registry := codectypes.NewInterfaceRegistry() - cdc := codec.NewProtoCodec(registry) - - paramsSubspace := typesparams.NewSubspace(cdc, - codec.NewLegacyAmino(), - storeKey, - nil, - "CctpParams", - ) - k := keeper.NewKeeper( - cdc, - storeKey, - paramsSubspace, - MockBankKeeper{}, - MockFiatTokenfactoryKeeper{}, - ) - - ctx := sdk.NewContext(stateStore, tmproto.Header{}, false, log.NewNopLogger()) - - return k, ctx +func CctpKeeper() (*keeper.Keeper, context.Context) { + key := storetypes.NewKVStoreKey(types.StoreKey) + return CctpKeeperWithKey(key) } -func CctpKeeperWithErrBank(t testing.TB) (*keeper.Keeper, sdk.Context) { - storeKey := sdk.NewKVStoreKey(types.StoreKey) +func CctpKeeperWithKey(key *storetypes.KVStoreKey) (*keeper.Keeper, context.Context) { + logger := log.NewNopLogger() - db := tmdb.NewMemDB() - stateStore := store.NewCommitMultiStore(db) - stateStore.MountStoreWithDB(storeKey, storetypes.StoreTypeIAVL, db) - require.NoError(t, stateStore.LoadLatestVersion()) + stateStore := store.NewCommitMultiStore(db.NewMemDB(), logger, metrics.NewNoOpMetrics()) + stateStore.MountStoreWithDB(key, storetypes.StoreTypeIAVL, nil) + _ = stateStore.LoadLatestVersion() registry := codectypes.NewInterfaceRegistry() cdc := codec.NewProtoCodec(registry) - paramsSubspace := typesparams.NewSubspace(cdc, - codec.NewLegacyAmino(), - storeKey, - nil, - "CctpParams", - ) k := keeper.NewKeeper( cdc, - storeKey, - paramsSubspace, - ErrBankKeeper{}, + logger, + runtime.NewKVStoreService(key), + MockBankKeeper{}, MockFiatTokenfactoryKeeper{}, ) - ctx := sdk.NewContext(stateStore, tmproto.Header{}, false, log.NewNopLogger()) + ctx := sdk.NewContext(stateStore, cmtproto.Header{}, false, logger) return k, ctx } -func CctpKeeper(t testing.TB) (*keeper.Keeper, sdk.Context) { - storeKey := sdk.NewKVStoreKey(types.StoreKey) +func CctpKeeperWithErrBank() (*keeper.Keeper, context.Context) { + logger := log.NewNopLogger() - db := tmdb.NewMemDB() - stateStore := store.NewCommitMultiStore(db) - stateStore.MountStoreWithDB(storeKey, storetypes.StoreTypeIAVL, db) - require.NoError(t, stateStore.LoadLatestVersion()) + key := storetypes.NewKVStoreKey(types.StoreKey) + stateStore := store.NewCommitMultiStore(db.NewMemDB(), logger, metrics.NewNoOpMetrics()) + stateStore.MountStoreWithDB(key, storetypes.StoreTypeIAVL, nil) + _ = stateStore.LoadLatestVersion() registry := codectypes.NewInterfaceRegistry() cdc := codec.NewProtoCodec(registry) - paramsSubspace := typesparams.NewSubspace(cdc, - codec.NewLegacyAmino(), - storeKey, - nil, - "CctpParams", - ) k := keeper.NewKeeper( cdc, - storeKey, - paramsSubspace, - MockBankKeeper{}, + logger, + runtime.NewKVStoreService(key), + MockErrBankKeeper{}, MockFiatTokenfactoryKeeper{}, ) - ctx := sdk.NewContext(stateStore, tmproto.Header{}, false, log.NewNopLogger()) + ctx := sdk.NewContext(stateStore, cmtproto.Header{}, false, logger) return k, ctx } -type MockCctpKeeper struct{} - -func (k MockCctpKeeper) GetTokenPair(ctx sdk.Context, remoteDomain uint32, remoteToken string) (val types.TokenPair, found bool) { - return types.TokenPair{}, true -} - -func (MockCctpKeeper) GetAuthority(ctx sdk.Context) (val string, found bool) { - return "", true -} - -// ErrCctpKeeper is used for wrapping a MockErrFiatTokenfactoryKeeper, which fails on mint/burn -func ErrCctpKeeper(t testing.TB) (*keeper.Keeper, sdk.Context) { - storeKey := sdk.NewKVStoreKey(types.StoreKey) +func CctpKeeperWithErrFTF() (*keeper.Keeper, context.Context) { + logger := log.NewNopLogger() - db := tmdb.NewMemDB() - stateStore := store.NewCommitMultiStore(db) - stateStore.MountStoreWithDB(storeKey, storetypes.StoreTypeIAVL, db) - require.NoError(t, stateStore.LoadLatestVersion()) + key := storetypes.NewKVStoreKey(types.StoreKey) + stateStore := store.NewCommitMultiStore(db.NewMemDB(), logger, metrics.NewNoOpMetrics()) + stateStore.MountStoreWithDB(key, storetypes.StoreTypeIAVL, nil) + _ = stateStore.LoadLatestVersion() registry := codectypes.NewInterfaceRegistry() cdc := codec.NewProtoCodec(registry) - paramsSubspace := typesparams.NewSubspace(cdc, - codec.NewLegacyAmino(), - storeKey, - nil, - "CctpParams", - ) k := keeper.NewKeeper( cdc, - storeKey, - paramsSubspace, + logger, + runtime.NewKVStoreService(key), MockBankKeeper{}, MockErrFiatTokenfactoryKeeper{}, ) - ctx := sdk.NewContext(stateStore, tmproto.Header{}, false, log.NewNopLogger()) + ctx := sdk.NewContext(stateStore, cmtproto.Header{}, false, logger) return k, ctx } - -type MockErrCctpKeeper struct{} diff --git a/testutil/keeper/fiattokenfactory.go b/testutil/keeper/fiattokenfactory.go index 7ab6508..1a2a99a 100644 --- a/testutil/keeper/fiattokenfactory.go +++ b/testutil/keeper/fiattokenfactory.go @@ -1,128 +1,58 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper import ( - "testing" - - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "context" - "github.com/circlefin/noble-fiattokenfactory/x/fiattokenfactory/keeper" - "github.com/circlefin/noble-fiattokenfactory/x/fiattokenfactory/types" - "github.com/cosmos/cosmos-sdk/codec" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" - "github.com/cosmos/cosmos-sdk/store" - storetypes "github.com/cosmos/cosmos-sdk/store/types" + "cosmossdk.io/errors" + cctpTypes "github.com/circlefin/noble-cctp/x/cctp/types" + ftftypes "github.com/circlefin/noble-fiattokenfactory/x/fiattokenfactory/types" sdk "github.com/cosmos/cosmos-sdk/types" - typesparams "github.com/cosmos/cosmos-sdk/x/params/types" - "github.com/stretchr/testify/require" - "github.com/tendermint/tendermint/libs/log" - tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - tmdb "github.com/tendermint/tm-db" ) -func FiatTokenfactoryKeeper(t testing.TB) (*keeper.Keeper, sdk.Context) { - storeKey := sdk.NewKVStoreKey(types.StoreKey) - - db := tmdb.NewMemDB() - stateStore := store.NewCommitMultiStore(db) - stateStore.MountStoreWithDB(storeKey, storetypes.StoreTypeIAVL, db) - require.NoError(t, stateStore.LoadLatestVersion()) - - registry := codectypes.NewInterfaceRegistry() - cdc := codec.NewProtoCodec(registry) - - paramsSubspace := typesparams.NewSubspace(cdc, - codec.NewLegacyAmino(), - storeKey, - nil, - "TokenfactoryParams", - ) - k := keeper.NewKeeper( - cdc, - storeKey, - paramsSubspace, - MockBankKeeper{}, - ) - - ctx := sdk.NewContext(stateStore, tmproto.Header{}, false, log.NewNopLogger()) - - // Initialize params - k.SetParams(ctx, types.DefaultParams()) - - return k, ctx -} - type MockFiatTokenfactoryKeeper struct{} -func (MockFiatTokenfactoryKeeper) Mint(ctx sdk.Context, msg *types.MsgMint) (*types.MsgMintResponse, error) { - return &types.MsgMintResponse{}, nil -} +var _ cctpTypes.FiatTokenfactoryKeeper = MockFiatTokenfactoryKeeper{} -func (MockFiatTokenfactoryKeeper) Burn(ctx sdk.Context, msg *types.MsgBurn) (*types.MsgBurnResponse, error) { - return &types.MsgBurnResponse{}, nil +func (MockFiatTokenfactoryKeeper) Mint(ctx sdk.Context, msg *ftftypes.MsgMint) (*ftftypes.MsgMintResponse, error) { + return &ftftypes.MsgMintResponse{}, nil } -func (MockFiatTokenfactoryKeeper) GetMintingDenom(ctx sdk.Context) (val types.MintingDenom) { - return types.MintingDenom{Denom: "uusdc"} +func (MockFiatTokenfactoryKeeper) Burn(ctx sdk.Context, msg *ftftypes.MsgBurn) (*ftftypes.MsgBurnResponse, error) { + return &ftftypes.MsgBurnResponse{}, nil } -func ErrFiatTokenfactoryKeeper(t testing.TB) (*keeper.Keeper, sdk.Context) { - storeKey := sdk.NewKVStoreKey(types.StoreKey) - - db := tmdb.NewMemDB() - stateStore := store.NewCommitMultiStore(db) - stateStore.MountStoreWithDB(storeKey, storetypes.StoreTypeIAVL, db) - require.NoError(t, stateStore.LoadLatestVersion()) - - registry := codectypes.NewInterfaceRegistry() - cdc := codec.NewProtoCodec(registry) - - paramsSubspace := typesparams.NewSubspace(cdc, - codec.NewLegacyAmino(), - storeKey, - nil, - "TokenfactoryParams", - ) - k := keeper.NewKeeper( - cdc, - storeKey, - paramsSubspace, - MockBankKeeper{}, - ) - - ctx := sdk.NewContext(stateStore, tmproto.Header{}, false, log.NewNopLogger()) - - // Initialize params - k.SetParams(ctx, types.DefaultParams()) - - return k, ctx +func (MockFiatTokenfactoryKeeper) GetMintingDenom(ctx context.Context) (val ftftypes.MintingDenom) { + return ftftypes.MintingDenom{Denom: "uusdc"} } -// MockErrFiatTokenfactoryKeeper - all dependencies err type MockErrFiatTokenfactoryKeeper struct{} -func (k MockErrFiatTokenfactoryKeeper) Mint(ctx sdk.Context, msg *types.MsgMint) (*types.MsgMintResponse, error) { - return nil, sdkerrors.Wrap(types.ErrBurn, "error calling mint") +var _ cctpTypes.FiatTokenfactoryKeeper = MockErrFiatTokenfactoryKeeper{} + +func (MockErrFiatTokenfactoryKeeper) Burn(ctx sdk.Context, msg *ftftypes.MsgBurn) (*ftftypes.MsgBurnResponse, error) { + return &ftftypes.MsgBurnResponse{}, ftftypes.ErrBurn } -func (k MockErrFiatTokenfactoryKeeper) GetMintingDenom(ctx sdk.Context) (val types.MintingDenom) { - return types.MintingDenom{Denom: "uusdc"} +func (k MockErrFiatTokenfactoryKeeper) Mint(ctx sdk.Context, msg *ftftypes.MsgMint) (*ftftypes.MsgMintResponse, error) { + return nil, errors.Wrap(ftftypes.ErrBurn, "error calling mint") } -func (MockErrFiatTokenfactoryKeeper) Burn(ctx sdk.Context, msg *types.MsgBurn) (*types.MsgBurnResponse, error) { - return &types.MsgBurnResponse{}, types.ErrBurn +func (k MockErrFiatTokenfactoryKeeper) GetMintingDenom(ctx context.Context) (val ftftypes.MintingDenom) { + return ftftypes.MintingDenom{Denom: "uusdc"} } diff --git a/testutil/nullify/nullify.go b/testutil/nullify/nullify.go index b5c600c..a98222b 100644 --- a/testutil/nullify/nullify.go +++ b/testutil/nullify/nullify.go @@ -1,18 +1,18 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 // Package nullify provides methods to init nil values structs for test assertion. package nullify diff --git a/testutil/sample/sample.go b/testutil/sample/sample.go index 24a221c..c1d7ffe 100644 --- a/testutil/sample/sample.go +++ b/testutil/sample/sample.go @@ -1,18 +1,18 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 package sample @@ -29,14 +29,6 @@ func AccAddress() string { return sdk.AccAddress(addr).String() } -// AddressBz returns a slice of base64 encoded bytes representing an address. -func AddressBz() []byte { - pk := ed25519.GenPrivKey().PubKey() - address := sdk.AccAddress(pk.Address()).String() - _, bz, _ := bech32.DecodeAndConvert(address) - return bz -} - // Account represents a bech32 encoded address and the base64 encoded slice of bytes representing said address. type Account struct { Address string diff --git a/tools/tools.go b/tools/tools.go index 26ec736..d44902c 100644 --- a/tools/tools.go +++ b/tools/tools.go @@ -1,3 +1,19 @@ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + //go:build tools // This file uses the recommended method for tracking developer tools in a Go module. @@ -6,6 +22,5 @@ package tools import ( - _ "github.com/golangci/golangci-lint/cmd/golangci-lint" _ "mvdan.cc/gofumpt" ) diff --git a/x/cctp/client/cli/query.go b/x/cctp/client/cli/query.go index de09b5f..6319f9d 100644 --- a/x/cctp/client/cli/query.go +++ b/x/cctp/client/cli/query.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package cli import ( @@ -24,7 +25,7 @@ import ( ) // GetQueryCmd returns the cli query commands for this module -func GetQueryCmd(queryRoute string) *cobra.Command { +func GetQueryCmd() *cobra.Command { // Group cctp queries under a subcommand cmd := &cobra.Command{ Use: types.ModuleName, diff --git a/x/cctp/client/cli/query_attesters.go b/x/cctp/client/cli/query_attesters.go index d687e25..03d6115 100644 --- a/x/cctp/client/cli/query_attesters.go +++ b/x/cctp/client/cli/query_attesters.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package cli import ( diff --git a/x/cctp/client/cli/query_burn_message_version.go b/x/cctp/client/cli/query_burn_message_version.go index 8ee8c12..af58bfc 100644 --- a/x/cctp/client/cli/query_burn_message_version.go +++ b/x/cctp/client/cli/query_burn_message_version.go @@ -1,18 +1,18 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 package cli diff --git a/x/cctp/client/cli/query_burning_and_minting_paused.go b/x/cctp/client/cli/query_burning_and_minting_paused.go index 9a2886b..99fe765 100644 --- a/x/cctp/client/cli/query_burning_and_minting_paused.go +++ b/x/cctp/client/cli/query_burning_and_minting_paused.go @@ -1,18 +1,18 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 package cli diff --git a/x/cctp/client/cli/query_local_domain.go b/x/cctp/client/cli/query_local_domain.go index e881bc8..c833af8 100644 --- a/x/cctp/client/cli/query_local_domain.go +++ b/x/cctp/client/cli/query_local_domain.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package cli import ( diff --git a/x/cctp/client/cli/query_local_message_version.go b/x/cctp/client/cli/query_local_message_version.go index 1ce4403..c5b45c8 100644 --- a/x/cctp/client/cli/query_local_message_version.go +++ b/x/cctp/client/cli/query_local_message_version.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package cli import ( diff --git a/x/cctp/client/cli/query_max_message_body_size.go b/x/cctp/client/cli/query_max_message_body_size.go index c53983d..fe1ec6d 100644 --- a/x/cctp/client/cli/query_max_message_body_size.go +++ b/x/cctp/client/cli/query_max_message_body_size.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package cli import ( diff --git a/x/cctp/client/cli/query_next_available_nonce.go b/x/cctp/client/cli/query_next_available_nonce.go index 4a531c3..80d8100 100644 --- a/x/cctp/client/cli/query_next_available_nonce.go +++ b/x/cctp/client/cli/query_next_available_nonce.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package cli import ( diff --git a/x/cctp/client/cli/query_per_message_burn_limit.go b/x/cctp/client/cli/query_per_message_burn_limit.go index f01977a..36d7efe 100644 --- a/x/cctp/client/cli/query_per_message_burn_limit.go +++ b/x/cctp/client/cli/query_per_message_burn_limit.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package cli import ( diff --git a/x/cctp/client/cli/query_remote_token_messengers.go b/x/cctp/client/cli/query_remote_token_messengers.go index 175f751..3e57300 100644 --- a/x/cctp/client/cli/query_remote_token_messengers.go +++ b/x/cctp/client/cli/query_remote_token_messengers.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package cli import ( diff --git a/x/cctp/client/cli/query_roles.go b/x/cctp/client/cli/query_roles.go index 6674dd5..9e9316a 100644 --- a/x/cctp/client/cli/query_roles.go +++ b/x/cctp/client/cli/query_roles.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package cli import ( diff --git a/x/cctp/client/cli/query_sending_and_receiving_paused.go b/x/cctp/client/cli/query_sending_and_receiving_paused.go index 842cb5a..5d8f31b 100644 --- a/x/cctp/client/cli/query_sending_and_receiving_paused.go +++ b/x/cctp/client/cli/query_sending_and_receiving_paused.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package cli import ( diff --git a/x/cctp/client/cli/query_signature_threshold.go b/x/cctp/client/cli/query_signature_threshold.go index a430d62..8375602 100644 --- a/x/cctp/client/cli/query_signature_threshold.go +++ b/x/cctp/client/cli/query_signature_threshold.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package cli import ( diff --git a/x/cctp/client/cli/query_token_pairs.go b/x/cctp/client/cli/query_token_pairs.go index 713cd37..8bca3d3 100644 --- a/x/cctp/client/cli/query_token_pairs.go +++ b/x/cctp/client/cli/query_token_pairs.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package cli import ( diff --git a/x/cctp/client/cli/query_used_nonces.go b/x/cctp/client/cli/query_used_nonces.go index 045b127..724665f 100644 --- a/x/cctp/client/cli/query_used_nonces.go +++ b/x/cctp/client/cli/query_used_nonces.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package cli import ( diff --git a/x/cctp/client/cli/tx.go b/x/cctp/client/cli/tx.go index 461d764..12178ff 100644 --- a/x/cctp/client/cli/tx.go +++ b/x/cctp/client/cli/tx.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package cli import ( diff --git a/x/cctp/client/cli/tx_accept_owner.go b/x/cctp/client/cli/tx_accept_owner.go index d0181a3..1756934 100644 --- a/x/cctp/client/cli/tx_accept_owner.go +++ b/x/cctp/client/cli/tx_accept_owner.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package cli import ( @@ -34,9 +35,9 @@ func CmdAcceptOwner() *cobra.Command { return err } - msg := types.NewMsgAcceptOwner( - clientCtx.GetFromAddress().String(), - ) + msg := &types.MsgAcceptOwner{ + From: clientCtx.GetFromAddress().String(), + } return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg) }, diff --git a/x/cctp/client/cli/tx_add_remote_token_messenger.go b/x/cctp/client/cli/tx_add_remote_token_messenger.go index ec202d1..c6be05c 100644 --- a/x/cctp/client/cli/tx_add_remote_token_messenger.go +++ b/x/cctp/client/cli/tx_add_remote_token_messenger.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package cli import ( @@ -48,11 +49,11 @@ func CmdAddRemoteTokenMessenger() *cobra.Command { return err } - msg := types.NewMsgAddRemoteTokenMessenger( - clientCtx.GetFromAddress().String(), - uint32(domainId), - address, - ) + msg := &types.MsgAddRemoteTokenMessenger{ + From: clientCtx.GetFromAddress().String(), + DomainId: uint32(domainId), + Address: address, + } return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg) }, diff --git a/x/cctp/client/cli/tx_deposit_for_burn.go b/x/cctp/client/cli/tx_deposit_for_burn.go index 3299e43..9fa787c 100644 --- a/x/cctp/client/cli/tx_deposit_for_burn.go +++ b/x/cctp/client/cli/tx_deposit_for_burn.go @@ -1,30 +1,31 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package cli import ( "fmt" "strconv" + "cosmossdk.io/errors" "cosmossdk.io/math" "github.com/circlefin/noble-cctp/x/cctp/types" "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" "github.com/cosmos/cosmos-sdk/client/tx" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/spf13/cobra" ) @@ -37,7 +38,7 @@ func CmdDepositForBurn() *cobra.Command { RunE: func(cmd *cobra.Command, args []string) (err error) { amount, ok := math.NewIntFromString(args[0]) if !ok { - return sdkerrors.Wrapf(types.ErrInvalidAmount, "invalid amount") + return errors.Wrapf(types.ErrInvalidAmount, "invalid amount") } destinationDomain, err := strconv.ParseUint(args[1], types.BaseTen, types.DomainBitLen) @@ -55,13 +56,13 @@ func CmdDepositForBurn() *cobra.Command { return err } - msg := types.NewMsgDepositForBurn( - clientCtx.GetFromAddress().String(), - amount, - uint32(destinationDomain), - mintRecipient, - args[3], - ) + msg := &types.MsgDepositForBurn{ + From: clientCtx.GetFromAddress().String(), + Amount: amount, + DestinationDomain: uint32(destinationDomain), + MintRecipient: mintRecipient, + BurnToken: args[3], + } return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg) }, diff --git a/x/cctp/client/cli/tx_deposit_for_burn_with_caller.go b/x/cctp/client/cli/tx_deposit_for_burn_with_caller.go index fe8a567..c449531 100644 --- a/x/cctp/client/cli/tx_deposit_for_burn_with_caller.go +++ b/x/cctp/client/cli/tx_deposit_for_burn_with_caller.go @@ -1,30 +1,31 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package cli import ( "fmt" "strconv" + "cosmossdk.io/errors" "cosmossdk.io/math" "github.com/circlefin/noble-cctp/x/cctp/types" "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" "github.com/cosmos/cosmos-sdk/client/tx" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/spf13/cobra" ) @@ -37,7 +38,7 @@ func CmdDepositForBurnWithCaller() *cobra.Command { RunE: func(cmd *cobra.Command, args []string) (err error) { amount, ok := math.NewIntFromString(args[0]) if !ok { - return sdkerrors.Wrapf(types.ErrInvalidAmount, "invalid amount") + return errors.Wrapf(types.ErrInvalidAmount, "invalid amount") } destinationDomain, err := strconv.ParseUint(args[1], types.BaseTen, types.DomainBitLen) @@ -60,14 +61,14 @@ func CmdDepositForBurnWithCaller() *cobra.Command { return err } - msg := types.NewMsgDepositForBurnWithCaller( - clientCtx.GetFromAddress().String(), - amount, - uint32(destinationDomain), - mintRecipient, - args[3], - destinationCaller, - ) + msg := &types.MsgDepositForBurnWithCaller{ + From: clientCtx.GetFromAddress().String(), + Amount: amount, + DestinationDomain: uint32(destinationDomain), + MintRecipient: mintRecipient, + BurnToken: args[3], + DestinationCaller: destinationCaller, + } return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg) }, diff --git a/x/cctp/client/cli/tx_disable_attester.go b/x/cctp/client/cli/tx_disable_attester.go index bdb3bf1..17c2098 100644 --- a/x/cctp/client/cli/tx_disable_attester.go +++ b/x/cctp/client/cli/tx_disable_attester.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package cli import ( @@ -35,10 +36,10 @@ func CmdDisableAttester() *cobra.Command { return err } - msg := types.NewMsgDisableAttester( - clientCtx.GetFromAddress().String(), - args[0], - ) + msg := &types.MsgDisableAttester{ + From: clientCtx.GetFromAddress().String(), + Attester: args[0], + } return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg) }, diff --git a/x/cctp/client/cli/tx_enable_attester.go b/x/cctp/client/cli/tx_enable_attester.go index e2e7b17..d7cc241 100644 --- a/x/cctp/client/cli/tx_enable_attester.go +++ b/x/cctp/client/cli/tx_enable_attester.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package cli import ( @@ -35,10 +36,10 @@ func CmdEnableAttester() *cobra.Command { return err } - msg := types.NewMsgEnableAttester( - clientCtx.GetFromAddress().String(), - args[0], - ) + msg := &types.MsgEnableAttester{ + From: clientCtx.GetFromAddress().String(), + Attester: args[0], + } return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg) }, diff --git a/x/cctp/client/cli/tx_link_token_pair.go b/x/cctp/client/cli/tx_link_token_pair.go index 028ac37..f2feb4e 100644 --- a/x/cctp/client/cli/tx_link_token_pair.go +++ b/x/cctp/client/cli/tx_link_token_pair.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package cli import ( @@ -48,12 +49,12 @@ func CmdLinkTokenPair() *cobra.Command { return err } - msg := types.NewMsgLinkTokenPair( - clientCtx.GetFromAddress().String(), - args[0], - remoteToken, - uint32(remoteDomain), - ) + msg := &types.MsgLinkTokenPair{ + From: clientCtx.GetFromAddress().String(), + RemoteDomain: uint32(remoteDomain), + RemoteToken: remoteToken, + LocalToken: args[0], + } return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg) }, diff --git a/x/cctp/client/cli/tx_pause_burning_and_minting.go b/x/cctp/client/cli/tx_pause_burning_and_minting.go index 032ae67..c796018 100644 --- a/x/cctp/client/cli/tx_pause_burning_and_minting.go +++ b/x/cctp/client/cli/tx_pause_burning_and_minting.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package cli import ( @@ -35,9 +36,9 @@ func CmdPauseBurningAndMinting() *cobra.Command { return err } - msg := types.NewMsgPauseBurningAndMinting( - clientCtx.GetFromAddress().String(), - ) + msg := &types.MsgPauseBurningAndMinting{ + From: clientCtx.GetFromAddress().String(), + } return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg) }, diff --git a/x/cctp/client/cli/tx_pause_sending_and_receiving_messages.go b/x/cctp/client/cli/tx_pause_sending_and_receiving_messages.go index 08ba248..ca3d788 100644 --- a/x/cctp/client/cli/tx_pause_sending_and_receiving_messages.go +++ b/x/cctp/client/cli/tx_pause_sending_and_receiving_messages.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package cli import ( @@ -35,9 +36,9 @@ func CmdPauseSendingAndReceivingMessages() *cobra.Command { return err } - msg := types.NewMsgPauseSendingAndReceivingMessages( - clientCtx.GetFromAddress().String(), - ) + msg := &types.MsgPauseSendingAndReceivingMessages{ + From: clientCtx.GetFromAddress().String(), + } return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg) }, diff --git a/x/cctp/client/cli/tx_receive_message.go b/x/cctp/client/cli/tx_receive_message.go index 2bac6fd..28c2b80 100644 --- a/x/cctp/client/cli/tx_receive_message.go +++ b/x/cctp/client/cli/tx_receive_message.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package cli import ( @@ -36,11 +37,11 @@ func CmdReceiveMessage() *cobra.Command { return err } - msg := types.NewMsgReceiveMessage( - clientCtx.GetFromAddress().String(), - common.FromHex(args[0]), - common.FromHex(args[1]), - ) + msg := &types.MsgReceiveMessage{ + From: clientCtx.GetFromAddress().String(), + Message: common.FromHex(args[0]), + Attestation: common.FromHex(args[1]), + } return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg) }, diff --git a/x/cctp/client/cli/tx_remove_remote_token_messenger.go b/x/cctp/client/cli/tx_remove_remote_token_messenger.go index 4ff932b..6377414 100644 --- a/x/cctp/client/cli/tx_remove_remote_token_messenger.go +++ b/x/cctp/client/cli/tx_remove_remote_token_messenger.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package cli import ( @@ -42,10 +43,10 @@ func CmdRemoveRemoteTokenMessenger() *cobra.Command { return err } - msg := types.NewMsgRemoveRemoteTokenMessenger( - clientCtx.GetFromAddress().String(), - uint32(domainId), - ) + msg := &types.MsgRemoveRemoteTokenMessenger{ + From: clientCtx.GetFromAddress().String(), + DomainId: uint32(domainId), + } return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg) }, diff --git a/x/cctp/client/cli/tx_replace_deposit_for_burn.go b/x/cctp/client/cli/tx_replace_deposit_for_burn.go index 1990aba..b8f0779 100644 --- a/x/cctp/client/cli/tx_replace_deposit_for_burn.go +++ b/x/cctp/client/cli/tx_replace_deposit_for_burn.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package cli import ( @@ -35,13 +36,13 @@ func CmdReplaceDepositForBurn() *cobra.Command { return err } - msg := types.NewMsgReplaceDepositForBurn( - clientCtx.GetFromAddress().String(), - []byte(args[0]), - []byte(args[1]), - []byte(args[2]), - []byte(args[3]), - ) + msg := &types.MsgReplaceDepositForBurn{ + From: clientCtx.GetFromAddress().String(), + OriginalMessage: []byte(args[0]), + OriginalAttestation: []byte(args[1]), + NewDestinationCaller: []byte(args[2]), + NewMintRecipient: []byte(args[3]), + } return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg) }, diff --git a/x/cctp/client/cli/tx_replace_message.go b/x/cctp/client/cli/tx_replace_message.go index ae36cb1..78d7e57 100644 --- a/x/cctp/client/cli/tx_replace_message.go +++ b/x/cctp/client/cli/tx_replace_message.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package cli import ( @@ -35,13 +36,13 @@ func CmdReplaceMessage() *cobra.Command { return err } - msg := types.NewMsgReplaceMessage( - clientCtx.GetFromAddress().String(), - []byte(args[0]), - []byte(args[1]), - []byte(args[2]), - []byte(args[3]), - ) + msg := &types.MsgReplaceMessage{ + From: clientCtx.GetFromAddress().String(), + OriginalMessage: []byte(args[0]), + OriginalAttestation: []byte(args[1]), + NewMessageBody: []byte(args[2]), + NewDestinationCaller: []byte(args[3]), + } return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg) }, diff --git a/x/cctp/client/cli/tx_send_message.go b/x/cctp/client/cli/tx_send_message.go index fbb932e..5a98203 100644 --- a/x/cctp/client/cli/tx_send_message.go +++ b/x/cctp/client/cli/tx_send_message.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package cli import ( @@ -48,12 +49,12 @@ func CmdSendMessage() *cobra.Command { return err } - msg := types.NewMsgSendMessage( - clientCtx.GetFromAddress().String(), - uint32(destinationDomain), - recipient, - []byte(args[2]), - ) + msg := &types.MsgSendMessage{ + From: clientCtx.GetFromAddress().String(), + DestinationDomain: uint32(destinationDomain), + Recipient: recipient, + MessageBody: []byte(args[2]), + } return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg) }, diff --git a/x/cctp/client/cli/tx_send_message_with_caller.go b/x/cctp/client/cli/tx_send_message_with_caller.go index 00fbaaa..2a0f9c3 100644 --- a/x/cctp/client/cli/tx_send_message_with_caller.go +++ b/x/cctp/client/cli/tx_send_message_with_caller.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package cli import ( @@ -53,13 +54,13 @@ func CmdSendMessageWithCaller() *cobra.Command { return err } - msg := types.NewMsgSendMessageWithCaller( - clientCtx.GetFromAddress().String(), - uint32(destinationDomain), - recipient, - []byte(args[2]), - destinationCaller, - ) + msg := &types.MsgSendMessageWithCaller{ + From: clientCtx.GetFromAddress().String(), + DestinationDomain: uint32(destinationDomain), + Recipient: recipient, + MessageBody: []byte(args[2]), + DestinationCaller: destinationCaller, + } return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg) }, diff --git a/x/cctp/client/cli/tx_set_max_burn_amount_per_message.go b/x/cctp/client/cli/tx_set_max_burn_amount_per_message.go index 0459d18..f73d018 100644 --- a/x/cctp/client/cli/tx_set_max_burn_amount_per_message.go +++ b/x/cctp/client/cli/tx_set_max_burn_amount_per_message.go @@ -1,27 +1,28 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package cli import ( + "cosmossdk.io/errors" "cosmossdk.io/math" "github.com/circlefin/noble-cctp/x/cctp/types" "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" "github.com/cosmos/cosmos-sdk/client/tx" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/spf13/cobra" ) @@ -34,7 +35,7 @@ func CmdUpdateMaxBurnAmountPerMessage() *cobra.Command { RunE: func(cmd *cobra.Command, args []string) (err error) { amount, ok := math.NewIntFromString(args[1]) if !ok { - return sdkerrors.Wrapf(types.ErrInvalidAmount, "invalid amount") + return errors.Wrapf(types.ErrInvalidAmount, "invalid amount") } clientCtx, err := client.GetClientTxContext(cmd) @@ -42,11 +43,11 @@ func CmdUpdateMaxBurnAmountPerMessage() *cobra.Command { return err } - msg := types.NewMsgSetMaxBurnAmountPerMessage( - clientCtx.GetFromAddress().String(), - args[0], - amount, - ) + msg := &types.MsgSetMaxBurnAmountPerMessage{ + From: clientCtx.GetFromAddress().String(), + LocalToken: args[0], + Amount: amount, + } return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg) }, diff --git a/x/cctp/client/cli/tx_unlink_token_pair.go b/x/cctp/client/cli/tx_unlink_token_pair.go index 0272e93..0a0b95a 100644 --- a/x/cctp/client/cli/tx_unlink_token_pair.go +++ b/x/cctp/client/cli/tx_unlink_token_pair.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package cli import ( @@ -48,12 +49,12 @@ func CmdUnlinkTokenPair() *cobra.Command { return err } - msg := types.NewMsgUnlinkTokenPair( - clientCtx.GetFromAddress().String(), - args[0], - remoteToken, - uint32(remoteDomain), - ) + msg := &types.MsgUnlinkTokenPair{ + From: clientCtx.GetFromAddress().String(), + RemoteDomain: uint32(remoteDomain), + RemoteToken: remoteToken, + LocalToken: args[0], + } return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg) }, diff --git a/x/cctp/client/cli/tx_unpause_burning_and_minting.go b/x/cctp/client/cli/tx_unpause_burning_and_minting.go index 513cdc4..5b1a8a4 100644 --- a/x/cctp/client/cli/tx_unpause_burning_and_minting.go +++ b/x/cctp/client/cli/tx_unpause_burning_and_minting.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package cli import ( @@ -35,9 +36,9 @@ func CmdUnpauseBurningAndMinting() *cobra.Command { return err } - msg := types.NewMsgUnpauseBurningAndMinting( - clientCtx.GetFromAddress().String(), - ) + msg := &types.MsgUnpauseBurningAndMinting{ + From: clientCtx.GetFromAddress().String(), + } return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg) }, diff --git a/x/cctp/client/cli/tx_unpause_sending_and_receiving_messages.go b/x/cctp/client/cli/tx_unpause_sending_and_receiving_messages.go index 901fe7b..e73af55 100644 --- a/x/cctp/client/cli/tx_unpause_sending_and_receiving_messages.go +++ b/x/cctp/client/cli/tx_unpause_sending_and_receiving_messages.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package cli import ( @@ -35,9 +36,9 @@ func CmdUnpauseSendingAndReceivingMessages() *cobra.Command { return err } - msg := types.NewMsgUnpauseSendingAndReceivingMessages( - clientCtx.GetFromAddress().String(), - ) + msg := &types.MsgUnpauseSendingAndReceivingMessages{ + From: clientCtx.GetFromAddress().String(), + } return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg) }, diff --git a/x/cctp/client/cli/tx_update_attester_manager.go b/x/cctp/client/cli/tx_update_attester_manager.go index 058f16a..1ad411a 100644 --- a/x/cctp/client/cli/tx_update_attester_manager.go +++ b/x/cctp/client/cli/tx_update_attester_manager.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package cli import ( @@ -35,10 +36,10 @@ func CmdUpdateAttesterManager() *cobra.Command { return err } - msg := types.NewMsgUpdateAttesterManager( - clientCtx.GetFromAddress().String(), - args[0], - ) + msg := &types.MsgUpdateAttesterManager{ + From: clientCtx.GetFromAddress().String(), + NewAttesterManager: args[0], + } return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg) }, diff --git a/x/cctp/client/cli/tx_update_max_message_body_size.go b/x/cctp/client/cli/tx_update_max_message_body_size.go index cce5338..95a8bf7 100644 --- a/x/cctp/client/cli/tx_update_max_message_body_size.go +++ b/x/cctp/client/cli/tx_update_max_message_body_size.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package cli import ( @@ -42,10 +43,10 @@ func CmdUpdateMaxMessageBodySize() *cobra.Command { return err } - msg := types.NewMsgUpdateMaxMessageBodySize( - clientCtx.GetFromAddress().String(), - size, - ) + msg := &types.MsgUpdateMaxMessageBodySize{ + From: clientCtx.GetFromAddress().String(), + MessageSize: size, + } return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg) }, diff --git a/x/cctp/client/cli/tx_update_owner.go b/x/cctp/client/cli/tx_update_owner.go index 6c6f520..8d57349 100644 --- a/x/cctp/client/cli/tx_update_owner.go +++ b/x/cctp/client/cli/tx_update_owner.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package cli import ( @@ -35,10 +36,10 @@ func CmdUpdateOwner() *cobra.Command { return err } - msg := types.NewMsgUpdateOwner( - clientCtx.GetFromAddress().String(), - args[0], - ) + msg := &types.MsgUpdateOwner{ + From: clientCtx.GetFromAddress().String(), + NewOwner: args[0], + } return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg) }, diff --git a/x/cctp/client/cli/tx_update_pauser.go b/x/cctp/client/cli/tx_update_pauser.go index fe9fc20..bfb565d 100644 --- a/x/cctp/client/cli/tx_update_pauser.go +++ b/x/cctp/client/cli/tx_update_pauser.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package cli import ( @@ -35,10 +36,10 @@ func CmdUpdatePauser() *cobra.Command { return err } - msg := types.NewMsgUpdatePauser( - clientCtx.GetFromAddress().String(), - args[0], - ) + msg := &types.MsgUpdatePauser{ + From: clientCtx.GetFromAddress().String(), + NewPauser: args[0], + } return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg) }, diff --git a/x/cctp/client/cli/tx_update_signature_threshold.go b/x/cctp/client/cli/tx_update_signature_threshold.go index b8dce31..b6cb882 100644 --- a/x/cctp/client/cli/tx_update_signature_threshold.go +++ b/x/cctp/client/cli/tx_update_signature_threshold.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package cli import ( @@ -42,10 +43,10 @@ func CmdUpdateSignatureThreshold() *cobra.Command { return err } - msg := types.NewMsgUpdateSignatureThreshold( - clientCtx.GetFromAddress().String(), - uint32(amount), - ) + msg := &types.MsgUpdateSignatureThreshold{ + From: clientCtx.GetFromAddress().String(), + Amount: uint32(amount), + } return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg) }, diff --git a/x/cctp/client/cli/tx_update_token_controller.go b/x/cctp/client/cli/tx_update_token_controller.go index 6bcf5e6..c59f408 100644 --- a/x/cctp/client/cli/tx_update_token_controller.go +++ b/x/cctp/client/cli/tx_update_token_controller.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package cli import ( @@ -35,10 +36,10 @@ func CmdUpdateTokenController() *cobra.Command { return err } - msg := types.NewMsgUpdateTokenController( - clientCtx.GetFromAddress().String(), - args[0], - ) + msg := &types.MsgUpdateTokenController{ + From: clientCtx.GetFromAddress().String(), + NewTokenController: args[0], + } return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg) }, diff --git a/x/cctp/client/cli/util.go b/x/cctp/client/cli/util.go index 1df7353..dc0701c 100644 --- a/x/cctp/client/cli/util.go +++ b/x/cctp/client/cli/util.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package cli import ( diff --git a/x/cctp/genesis.go b/x/cctp/genesis.go index b0838c0..a3dff42 100644 --- a/x/cctp/genesis.go +++ b/x/cctp/genesis.go @@ -1,31 +1,31 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 package cctp import ( + "context" + "github.com/circlefin/noble-cctp/x/cctp/keeper" "github.com/circlefin/noble-cctp/x/cctp/types" _ "github.com/cosmos/cosmos-sdk/types/errors" // sdkerrors - - sdk "github.com/cosmos/cosmos-sdk/types" ) // InitGenesis initializes the module's state from a provided genesis state. -func InitGenesis(ctx sdk.Context, k *keeper.Keeper, genState types.GenesisState) { +func InitGenesis(ctx context.Context, k *keeper.Keeper, genState types.GenesisState) { k.SetOwner(ctx, genState.Owner) k.SetAttesterManager(ctx, genState.AttesterManager) k.SetPauser(ctx, genState.Pauser) @@ -86,7 +86,7 @@ func InitGenesis(ctx sdk.Context, k *keeper.Keeper, genState types.GenesisState) } // ExportGenesis returns the module's exported GenesisState -func ExportGenesis(ctx sdk.Context, k *keeper.Keeper) *types.GenesisState { +func ExportGenesis(ctx context.Context, k *keeper.Keeper) *types.GenesisState { genesis := types.DefaultGenesis() genesis.Owner = k.GetOwner(ctx) diff --git a/x/cctp/genesis_test.go b/x/cctp/genesis_test.go index 98365b1..d97765f 100644 --- a/x/cctp/genesis_test.go +++ b/x/cctp/genesis_test.go @@ -1,18 +1,18 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 package cctp_test @@ -101,7 +101,7 @@ func TestGenesisHappyPath(t *testing.T) { }, } - k, ctx := keepertest.CctpKeeper(t) + k, ctx := keepertest.CctpKeeper() cctp.InitGenesis(ctx, k, genesisState) got := cctp.ExportGenesis(ctx, k) require.NotNil(t, got) @@ -127,7 +127,7 @@ func TestGenesisHappyPath(t *testing.T) { func TestGenesisBurningAndMintingPausedDefault(t *testing.T) { genesisState := types.GenesisState{} - k, ctx := keepertest.CctpKeeper(t) + k, ctx := keepertest.CctpKeeper() cctp.InitGenesis(ctx, k, genesisState) got := cctp.ExportGenesis(ctx, k) @@ -139,7 +139,7 @@ func TestGenesisSendingAndReceivingMessagesPausedDefault(t *testing.T) { genesisState := types.GenesisState{ BurningAndMintingPaused: &types.BurningAndMintingPaused{Paused: true}, } - k, ctx := keepertest.CctpKeeper(t) + k, ctx := keepertest.CctpKeeper() cctp.InitGenesis(ctx, k, genesisState) got := cctp.ExportGenesis(ctx, k) @@ -152,7 +152,7 @@ func TestGenesisMaxMessageBodySizeIsDefault(t *testing.T) { BurningAndMintingPaused: &types.BurningAndMintingPaused{Paused: true}, SendingAndReceivingMessagesPaused: &types.SendingAndReceivingMessagesPaused{Paused: true}, } - k, ctx := keepertest.CctpKeeper(t) + k, ctx := keepertest.CctpKeeper() cctp.InitGenesis(ctx, k, genesisState) got := cctp.ExportGenesis(ctx, k) @@ -165,7 +165,7 @@ func TestGenesisNextAvailableNonceDefault(t *testing.T) { BurningAndMintingPaused: &types.BurningAndMintingPaused{Paused: true}, SendingAndReceivingMessagesPaused: &types.SendingAndReceivingMessagesPaused{Paused: true}, } - k, ctx := keepertest.CctpKeeper(t) + k, ctx := keepertest.CctpKeeper() cctp.InitGenesis(ctx, k, genesisState) got := cctp.ExportGenesis(ctx, k) @@ -179,7 +179,7 @@ func TestGenesisSignatureThresholdPanicsWhenZero(t *testing.T) { SendingAndReceivingMessagesPaused: &types.SendingAndReceivingMessagesPaused{Paused: true}, SignatureThreshold: &types.SignatureThreshold{Amount: uint32(0)}, } - k, ctx := keepertest.CctpKeeper(t) + k, ctx := keepertest.CctpKeeper() assert.Panics(t, func() { cctp.InitGenesis(ctx, k, genesisState) @@ -191,7 +191,7 @@ func TestGenesisSignatureThresholdDefault(t *testing.T) { BurningAndMintingPaused: &types.BurningAndMintingPaused{Paused: true}, SendingAndReceivingMessagesPaused: &types.SendingAndReceivingMessagesPaused{Paused: true}, } - k, ctx := keepertest.CctpKeeper(t) + k, ctx := keepertest.CctpKeeper() cctp.InitGenesis(ctx, k, genesisState) got := cctp.ExportGenesis(ctx, k) diff --git a/x/cctp/keeper/attestation.go b/x/cctp/keeper/attestation.go index ac71539..aa4c4e5 100644 --- a/x/cctp/keeper/attestation.go +++ b/x/cctp/keeper/attestation.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper import ( diff --git a/x/cctp/keeper/attestation_test.go b/x/cctp/keeper/attestation_test.go index 785226a..105b29a 100644 --- a/x/cctp/keeper/attestation_test.go +++ b/x/cctp/keeper/attestation_test.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper_test import ( diff --git a/x/cctp/keeper/attesters.go b/x/cctp/keeper/attesters.go index f838619..7ab243c 100644 --- a/x/cctp/keeper/attesters.go +++ b/x/cctp/keeper/attesters.go @@ -1,30 +1,34 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper import ( + "context" + + "cosmossdk.io/store/prefix" "github.com/circlefin/noble-cctp/x/cctp/types" - "github.com/cosmos/cosmos-sdk/store/prefix" - sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/runtime" ) // GetAttester returns an attester -func (k Keeper) GetAttester(ctx sdk.Context, key string) (val types.Attester, found bool) { - store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.AttesterKeyPrefix)) +func (k Keeper) GetAttester(ctx context.Context, key string) (val types.Attester, found bool) { + adapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) + store := prefix.NewStore(adapter, types.KeyPrefix(types.AttesterKeyPrefix)) b := store.Get(types.KeyPrefix(string(types.AttesterKey([]byte(key))))) if b == nil { @@ -36,22 +40,25 @@ func (k Keeper) GetAttester(ctx sdk.Context, key string) (val types.Attester, fo } // SetAttester sets an attester in the store -func (k Keeper) SetAttester(ctx sdk.Context, key types.Attester) { - store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.AttesterKeyPrefix)) +func (k Keeper) SetAttester(ctx context.Context, key types.Attester) { + adapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) + store := prefix.NewStore(adapter, types.KeyPrefix(types.AttesterKeyPrefix)) b := k.cdc.MustMarshal(&key) store.Set(types.KeyPrefix(string(types.AttesterKey([]byte(key.Attester)))), b) } // DeleteAttester removes an attester -func (k Keeper) DeleteAttester(ctx sdk.Context, key string) { - store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.AttesterKeyPrefix)) +func (k Keeper) DeleteAttester(ctx context.Context, key string) { + adapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) + store := prefix.NewStore(adapter, types.KeyPrefix(types.AttesterKeyPrefix)) store.Delete(types.AttesterKey([]byte(key))) } // GetAllAttesters returns all attesters -func (k Keeper) GetAllAttesters(ctx sdk.Context) (list []types.Attester) { - store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.AttesterKeyPrefix)) - iterator := sdk.KVStorePrefixIterator(store, []byte{}) +func (k Keeper) GetAllAttesters(ctx context.Context) (list []types.Attester) { + adapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) + store := prefix.NewStore(adapter, types.KeyPrefix(types.AttesterKeyPrefix)) + iterator := store.Iterator(nil, nil) defer iterator.Close() diff --git a/x/cctp/keeper/attesters_test.go b/x/cctp/keeper/attesters_test.go index a07252e..e7a1e00 100644 --- a/x/cctp/keeper/attesters_test.go +++ b/x/cctp/keeper/attesters_test.go @@ -1,35 +1,34 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper_test import ( + "context" "strconv" "testing" - "github.com/circlefin/noble-cctp/x/cctp/keeper" - keepertest "github.com/circlefin/noble-cctp/testutil/keeper" "github.com/circlefin/noble-cctp/testutil/nullify" - + "github.com/circlefin/noble-cctp/x/cctp/keeper" "github.com/circlefin/noble-cctp/x/cctp/types" - sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/require" ) -func createNAttesters(keeper *keeper.Keeper, ctx sdk.Context, n int) []types.Attester { +func createNAttesters(keeper *keeper.Keeper, ctx context.Context, n int) []types.Attester { items := make([]types.Attester, n) for i := range items { items[i].Attester = "Attester" + strconv.Itoa(i) @@ -39,7 +38,7 @@ func createNAttesters(keeper *keeper.Keeper, ctx sdk.Context, n int) []types.Att } func TestAttestersGet(t *testing.T) { - cctpKeeper, ctx := keepertest.CctpKeeper(t) + cctpKeeper, ctx := keepertest.CctpKeeper() items := createNAttesters(cctpKeeper, ctx, 10) for _, item := range items { attester, found := cctpKeeper.GetAttester(ctx, @@ -54,7 +53,7 @@ func TestAttestersGet(t *testing.T) { } func TestAttestersRemove(t *testing.T) { - cctpKeeper, ctx := keepertest.CctpKeeper(t) + cctpKeeper, ctx := keepertest.CctpKeeper() items := createNAttesters(cctpKeeper, ctx, 10) for _, item := range items { cctpKeeper.DeleteAttester(ctx, item.Attester) @@ -64,7 +63,7 @@ func TestAttestersRemove(t *testing.T) { } func TestAttestersGetAll(t *testing.T) { - cctpKeeper, ctx := keepertest.CctpKeeper(t) + cctpKeeper, ctx := keepertest.CctpKeeper() items := createNAttesters(cctpKeeper, ctx, 10) denom := make([]types.Attester, len(items)) copy(denom, items) diff --git a/x/cctp/keeper/burning_and_minting_paused.go b/x/cctp/keeper/burning_and_minting_paused.go index fd890b9..626f30d 100644 --- a/x/cctp/keeper/burning_and_minting_paused.go +++ b/x/cctp/keeper/burning_and_minting_paused.go @@ -1,30 +1,33 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper import ( - "github.com/circlefin/noble-cctp/x/cctp/types" - "github.com/cosmos/cosmos-sdk/store/prefix" + "context" - sdk "github.com/cosmos/cosmos-sdk/types" + "cosmossdk.io/store/prefix" + "github.com/circlefin/noble-cctp/x/cctp/types" + "github.com/cosmos/cosmos-sdk/runtime" ) // GetBurningAndMintingPaused returns BurningAndMintingPaused -func (k Keeper) GetBurningAndMintingPaused(ctx sdk.Context) (val types.BurningAndMintingPaused, found bool) { - store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.BurningAndMintingPausedKey)) +func (k Keeper) GetBurningAndMintingPaused(ctx context.Context) (val types.BurningAndMintingPaused, found bool) { + adapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) + store := prefix.NewStore(adapter, types.KeyPrefix(types.BurningAndMintingPausedKey)) b := store.Get(types.KeyPrefix(types.BurningAndMintingPausedKey)) if b == nil { return val, false @@ -35,8 +38,9 @@ func (k Keeper) GetBurningAndMintingPaused(ctx sdk.Context) (val types.BurningAn } // SetBurningAndMintingPaused set BurningAndMintingPaused in the store -func (k Keeper) SetBurningAndMintingPaused(ctx sdk.Context, paused types.BurningAndMintingPaused) { - store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.BurningAndMintingPausedKey)) +func (k Keeper) SetBurningAndMintingPaused(ctx context.Context, paused types.BurningAndMintingPaused) { + adapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) + store := prefix.NewStore(adapter, types.KeyPrefix(types.BurningAndMintingPausedKey)) b := k.cdc.MustMarshal(&paused) store.Set(types.KeyPrefix(types.BurningAndMintingPausedKey), b) } diff --git a/x/cctp/keeper/burning_and_minting_paused_test.go b/x/cctp/keeper/burning_and_minting_paused_test.go index d40cd7a..aee1410 100644 --- a/x/cctp/keeper/burning_and_minting_paused_test.go +++ b/x/cctp/keeper/burning_and_minting_paused_test.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper_test import ( @@ -25,7 +26,7 @@ import ( ) func TestBurningAndMintingPaused(t *testing.T) { - keeper, ctx := keepertest.CctpKeeper(t) + keeper, ctx := keepertest.CctpKeeper() paused := types.BurningAndMintingPaused{Paused: true} keeper.SetBurningAndMintingPaused(ctx, paused) diff --git a/x/cctp/keeper/grpc_query.go b/x/cctp/keeper/grpc_query.go index 3d61b40..56fee9d 100644 --- a/x/cctp/keeper/grpc_query.go +++ b/x/cctp/keeper/grpc_query.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper import ( diff --git a/x/cctp/keeper/grpc_query_attesters.go b/x/cctp/keeper/grpc_query_attesters.go index 6ad4d70..a53759a 100644 --- a/x/cctp/keeper/grpc_query_attesters.go +++ b/x/cctp/keeper/grpc_query_attesters.go @@ -1,28 +1,29 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper import ( "context" - "github.com/cosmos/cosmos-sdk/store/prefix" - "github.com/cosmos/cosmos-sdk/types/query" - + "cosmossdk.io/store/prefix" "github.com/circlefin/noble-cctp/x/cctp/types" + "github.com/cosmos/cosmos-sdk/runtime" sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/types/query" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" ) @@ -49,8 +50,8 @@ func (k Keeper) Attesters(c context.Context, req *types.QueryAllAttestersRequest var attesters []types.Attester ctx := sdk.UnwrapSDKContext(c) - store := ctx.KVStore(k.storeKey) - attestersStore := prefix.NewStore(store, types.KeyPrefix(types.AttesterKeyPrefix)) + adapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) + attestersStore := prefix.NewStore(adapter, types.KeyPrefix(types.AttesterKeyPrefix)) pageRes, err := query.Paginate(attestersStore, req.Pagination, func(key []byte, value []byte) error { var Attester types.Attester diff --git a/x/cctp/keeper/grpc_query_attesters_test.go b/x/cctp/keeper/grpc_query_attesters_test.go index 482d200..911644a 100644 --- a/x/cctp/keeper/grpc_query_attesters_test.go +++ b/x/cctp/keeper/grpc_query_attesters_test.go @@ -1,39 +1,38 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper_test import ( "testing" - "github.com/cosmos/cosmos-sdk/store/prefix" - - sdk "github.com/cosmos/cosmos-sdk/types" + "cosmossdk.io/store/prefix" + storetypes "cosmossdk.io/store/types" + keepertest "github.com/circlefin/noble-cctp/testutil/keeper" + "github.com/circlefin/noble-cctp/testutil/nullify" + "github.com/circlefin/noble-cctp/x/cctp/types" + "github.com/cosmos/cosmos-sdk/runtime" "github.com/cosmos/cosmos-sdk/types/query" "github.com/stretchr/testify/require" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - - keepertest "github.com/circlefin/noble-cctp/testutil/keeper" - "github.com/circlefin/noble-cctp/testutil/nullify" - "github.com/circlefin/noble-cctp/x/cctp/types" ) func TestAttesterQuerySingle(t *testing.T) { - keeper, ctx := keepertest.CctpKeeper(t) - wctx := sdk.WrapSDKContext(ctx) + keeper, ctx := keepertest.CctpKeeper() msgs := createNAttesters(keeper, ctx, 2) for _, tc := range []struct { desc string @@ -68,7 +67,7 @@ func TestAttesterQuerySingle(t *testing.T) { }, } { t.Run(tc.desc, func(t *testing.T) { - response, err := keeper.Attester(wctx, tc.request) + response, err := keeper.Attester(ctx, tc.request) if tc.err != nil { require.ErrorIs(t, err, tc.err) } else { @@ -83,8 +82,7 @@ func TestAttesterQuerySingle(t *testing.T) { } func TestAttesterQueryPaginated(t *testing.T) { - keeper, ctx := keepertest.CctpKeeper(t) - wctx := sdk.WrapSDKContext(ctx) + keeper, ctx := keepertest.CctpKeeper() msgs := createNAttesters(keeper, ctx, 5) Attester := make([]types.Attester, len(msgs)) copy(Attester, msgs) @@ -102,7 +100,7 @@ func TestAttesterQueryPaginated(t *testing.T) { t.Run("ByOffset", func(t *testing.T) { step := 2 for i := 0; i < len(Attester); i += step { - resp, err := keeper.Attesters(wctx, request(nil, uint64(i), uint64(step), false)) + resp, err := keeper.Attesters(ctx, request(nil, uint64(i), uint64(step), false)) require.NoError(t, err) require.LessOrEqual(t, len(resp.Attesters), step) require.Subset(t, @@ -115,7 +113,7 @@ func TestAttesterQueryPaginated(t *testing.T) { step := 2 var next []byte for i := 0; i < len(Attester); i += step { - resp, err := keeper.Attesters(wctx, request(next, 0, uint64(step), false)) + resp, err := keeper.Attesters(ctx, request(next, 0, uint64(step), false)) require.NoError(t, err) require.LessOrEqual(t, len(resp.Attesters), step) require.Subset(t, @@ -126,7 +124,7 @@ func TestAttesterQueryPaginated(t *testing.T) { } }) t.Run("Total", func(t *testing.T) { - resp, err := keeper.Attesters(wctx, request(nil, 0, 0, true)) + resp, err := keeper.Attesters(ctx, request(nil, 0, 0, true)) require.NoError(t, err) require.Equal(t, len(Attester), int(resp.Pagination.Total)) require.ElementsMatch(t, @@ -135,24 +133,24 @@ func TestAttesterQueryPaginated(t *testing.T) { ) }) t.Run("InvalidRequest", func(t *testing.T) { - _, err := keeper.Attesters(wctx, nil) + _, err := keeper.Attesters(ctx, nil) require.ErrorIs(t, err, status.Error(codes.InvalidArgument, "invalid request")) }) t.Run("PaginateError", func(t *testing.T) { - _, err := keeper.Attesters(wctx, request([]byte("key"), 1, 0, true)) + _, err := keeper.Attesters(ctx, request([]byte("key"), 1, 0, true)) require.Contains(t, err.Error(), "invalid request, either offset or key is expected, got both") }) } func TestAttesterQueryPaginatedInvalidState(t *testing.T) { - storeKey := sdk.NewKVStoreKey(types.StoreKey) - keeper, ctx := keepertest.CctpKeeperWithKey(t, storeKey) + storeKey := storetypes.NewKVStoreKey(types.StoreKey) + keeper, ctx := keepertest.CctpKeeperWithKey(storeKey) - store := prefix.NewStore(ctx.KVStore(storeKey), types.KeyPrefix(types.AttesterKeyPrefix)) + adapter := runtime.KVStoreAdapter(runtime.NewKVStoreService(storeKey).OpenKVStore(ctx)) + store := prefix.NewStore(adapter, types.KeyPrefix(types.AttesterKeyPrefix)) store.Set(types.KeyPrefix(string(types.AttesterKey([]byte("attester")))), []byte("invalid")) - goCtx := sdk.WrapSDKContext(ctx) - _, err := keeper.Attesters(goCtx, &types.QueryAllAttestersRequest{}) + _, err := keeper.Attesters(ctx, &types.QueryAllAttestersRequest{}) parsedErr, ok := status.FromError(err) require.True(t, ok) diff --git a/x/cctp/keeper/grpc_query_burn_message_version.go b/x/cctp/keeper/grpc_query_burn_message_version.go index 8dd03ff..d555387 100644 --- a/x/cctp/keeper/grpc_query_burn_message_version.go +++ b/x/cctp/keeper/grpc_query_burn_message_version.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper import ( diff --git a/x/cctp/keeper/grpc_query_burn_message_version_test.go b/x/cctp/keeper/grpc_query_burn_message_version_test.go index baaf659..f9ce860 100644 --- a/x/cctp/keeper/grpc_query_burn_message_version_test.go +++ b/x/cctp/keeper/grpc_query_burn_message_version_test.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper_test import ( @@ -20,15 +21,12 @@ import ( keepertest "github.com/circlefin/noble-cctp/testutil/keeper" "github.com/circlefin/noble-cctp/x/cctp/types" - sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/require" ) func TestBurnMessageVersionQuery(t *testing.T) { - keeper, ctx := keepertest.CctpKeeper(t) - goCtx := sdk.WrapSDKContext(ctx) - - res, err := keeper.BurnMessageVersion(goCtx, &types.QueryBurnMessageVersionRequest{}) + keeper, ctx := keepertest.CctpKeeper() + res, err := keeper.BurnMessageVersion(ctx, &types.QueryBurnMessageVersionRequest{}) require.NoError(t, err) require.Equal(t, res, &types.QueryBurnMessageVersionResponse{Version: types.MessageBodyVersion}) diff --git a/x/cctp/keeper/grpc_query_burning_and_minting_paused.go b/x/cctp/keeper/grpc_query_burning_and_minting_paused.go index 5351a67..9582fa0 100644 --- a/x/cctp/keeper/grpc_query_burning_and_minting_paused.go +++ b/x/cctp/keeper/grpc_query_burning_and_minting_paused.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper import ( diff --git a/x/cctp/keeper/grpc_query_burning_and_minting_paused_test.go b/x/cctp/keeper/grpc_query_burning_and_minting_paused_test.go index 1f29fa5..e072596 100644 --- a/x/cctp/keeper/grpc_query_burning_and_minting_paused_test.go +++ b/x/cctp/keeper/grpc_query_burning_and_minting_paused_test.go @@ -1,24 +1,24 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper_test import ( "testing" - sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/require" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" @@ -56,14 +56,13 @@ func TestBurningAndMintingPausedQuery(t *testing.T) { }, } { t.Run(tc.desc, func(t *testing.T) { - keeper, ctx := keepertest.CctpKeeper(t) - goCtx := sdk.WrapSDKContext(ctx) + keeper, ctx := keepertest.CctpKeeper() if tc.set { keeper.SetBurningAndMintingPaused(ctx, BurningAndMintingPaused) } - response, err := keeper.BurningAndMintingPaused(goCtx, tc.request) + response, err := keeper.BurningAndMintingPaused(ctx, tc.request) if tc.err != nil { require.ErrorIs(t, err, tc.err) diff --git a/x/cctp/keeper/grpc_query_local_domain.go b/x/cctp/keeper/grpc_query_local_domain.go index b18e597..c6b4142 100644 --- a/x/cctp/keeper/grpc_query_local_domain.go +++ b/x/cctp/keeper/grpc_query_local_domain.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper import ( diff --git a/x/cctp/keeper/grpc_query_local_domain_test.go b/x/cctp/keeper/grpc_query_local_domain_test.go index 26a33b7..e9d289a 100644 --- a/x/cctp/keeper/grpc_query_local_domain_test.go +++ b/x/cctp/keeper/grpc_query_local_domain_test.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper_test import ( @@ -20,15 +21,12 @@ import ( keepertest "github.com/circlefin/noble-cctp/testutil/keeper" "github.com/circlefin/noble-cctp/x/cctp/types" - sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/require" ) func TestLocalDomainQuery(t *testing.T) { - keeper, ctx := keepertest.CctpKeeper(t) - goCtx := sdk.WrapSDKContext(ctx) - - res, err := keeper.LocalDomain(goCtx, &types.QueryLocalDomainRequest{}) + keeper, ctx := keepertest.CctpKeeper() + res, err := keeper.LocalDomain(ctx, &types.QueryLocalDomainRequest{}) require.NoError(t, err) require.Equal(t, res, &types.QueryLocalDomainResponse{DomainId: types.NobleDomainId}) diff --git a/x/cctp/keeper/grpc_query_local_message_version.go b/x/cctp/keeper/grpc_query_local_message_version.go index e23b7bc..b5b35aa 100644 --- a/x/cctp/keeper/grpc_query_local_message_version.go +++ b/x/cctp/keeper/grpc_query_local_message_version.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper import ( diff --git a/x/cctp/keeper/grpc_query_local_message_version_test.go b/x/cctp/keeper/grpc_query_local_message_version_test.go index ff6d63d..3780ca1 100644 --- a/x/cctp/keeper/grpc_query_local_message_version_test.go +++ b/x/cctp/keeper/grpc_query_local_message_version_test.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper_test import ( @@ -20,15 +21,12 @@ import ( keepertest "github.com/circlefin/noble-cctp/testutil/keeper" "github.com/circlefin/noble-cctp/x/cctp/types" - sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/require" ) func TestLocalMessageVersionQuery(t *testing.T) { - keeper, ctx := keepertest.CctpKeeper(t) - goCtx := sdk.WrapSDKContext(ctx) - - res, err := keeper.LocalMessageVersion(goCtx, &types.QueryLocalMessageVersionRequest{}) + keeper, ctx := keepertest.CctpKeeper() + res, err := keeper.LocalMessageVersion(ctx, &types.QueryLocalMessageVersionRequest{}) require.NoError(t, err) require.Equal(t, res, &types.QueryLocalMessageVersionResponse{Version: types.NobleMessageVersion}) diff --git a/x/cctp/keeper/grpc_query_max_message_body_size.go b/x/cctp/keeper/grpc_query_max_message_body_size.go index 0d5ddcc..bc4f760 100644 --- a/x/cctp/keeper/grpc_query_max_message_body_size.go +++ b/x/cctp/keeper/grpc_query_max_message_body_size.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper import ( diff --git a/x/cctp/keeper/grpc_query_max_message_body_size_test.go b/x/cctp/keeper/grpc_query_max_message_body_size_test.go index 87ed34b..a89bbff 100644 --- a/x/cctp/keeper/grpc_query_max_message_body_size_test.go +++ b/x/cctp/keeper/grpc_query_max_message_body_size_test.go @@ -1,24 +1,24 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper_test import ( "testing" - sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/require" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" @@ -56,14 +56,12 @@ func TestMaxMessageBodySizeQuery(t *testing.T) { }, } { t.Run(tc.desc, func(t *testing.T) { - keeper, ctx := keepertest.CctpKeeper(t) - goCtx := sdk.WrapSDKContext(ctx) - + keeper, ctx := keepertest.CctpKeeper() if tc.set { keeper.SetMaxMessageBodySize(ctx, MaxMessageBodySize) } - response, err := keeper.MaxMessageBodySize(goCtx, tc.request) + response, err := keeper.MaxMessageBodySize(ctx, tc.request) if tc.err != nil { require.ErrorIs(t, err, tc.err) diff --git a/x/cctp/keeper/grpc_query_next_available_nonce.go b/x/cctp/keeper/grpc_query_next_available_nonce.go index b90b957..3134183 100644 --- a/x/cctp/keeper/grpc_query_next_available_nonce.go +++ b/x/cctp/keeper/grpc_query_next_available_nonce.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper import ( diff --git a/x/cctp/keeper/grpc_query_next_available_nonce_test.go b/x/cctp/keeper/grpc_query_next_available_nonce_test.go index 2e6b18d..5db6050 100644 --- a/x/cctp/keeper/grpc_query_next_available_nonce_test.go +++ b/x/cctp/keeper/grpc_query_next_available_nonce_test.go @@ -1,24 +1,24 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper_test import ( "testing" - sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/require" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" @@ -56,14 +56,13 @@ func TestNextAvailableNonceQuery(t *testing.T) { }, } { t.Run(tc.desc, func(t *testing.T) { - keeper, ctx := keepertest.CctpKeeper(t) - goCtx := sdk.WrapSDKContext(ctx) + keeper, ctx := keepertest.CctpKeeper() if tc.set { keeper.SetNextAvailableNonce(ctx, Nonce) } - response, err := keeper.NextAvailableNonce(goCtx, tc.request) + response, err := keeper.NextAvailableNonce(ctx, tc.request) if tc.err != nil { require.ErrorIs(t, err, tc.err) diff --git a/x/cctp/keeper/grpc_query_per_message_burn_limits.go b/x/cctp/keeper/grpc_query_per_message_burn_limits.go index 96379a7..dcef5a5 100644 --- a/x/cctp/keeper/grpc_query_per_message_burn_limits.go +++ b/x/cctp/keeper/grpc_query_per_message_burn_limits.go @@ -1,28 +1,29 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper import ( "context" - "github.com/cosmos/cosmos-sdk/store/prefix" - "github.com/cosmos/cosmos-sdk/types/query" - + "cosmossdk.io/store/prefix" "github.com/circlefin/noble-cctp/x/cctp/types" + "github.com/cosmos/cosmos-sdk/runtime" sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/types/query" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" ) @@ -49,8 +50,8 @@ func (k Keeper) PerMessageBurnLimits(c context.Context, req *types.QueryAllPerMe var perMessageBurnLimits []types.PerMessageBurnLimit ctx := sdk.UnwrapSDKContext(c) - store := ctx.KVStore(k.storeKey) - perMessageBurnLimitsStore := prefix.NewStore(store, types.KeyPrefix(types.PerMessageBurnLimitKeyPrefix)) + adapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) + perMessageBurnLimitsStore := prefix.NewStore(adapter, types.KeyPrefix(types.PerMessageBurnLimitKeyPrefix)) pageRes, err := query.Paginate(perMessageBurnLimitsStore, req.Pagination, func(key []byte, value []byte) error { var perMessageBurnLimit types.PerMessageBurnLimit diff --git a/x/cctp/keeper/grpc_query_per_message_burn_limits_test.go b/x/cctp/keeper/grpc_query_per_message_burn_limits_test.go index 53b7e76..6808170 100644 --- a/x/cctp/keeper/grpc_query_per_message_burn_limits_test.go +++ b/x/cctp/keeper/grpc_query_per_message_burn_limits_test.go @@ -1,27 +1,28 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper_test import ( "testing" - "github.com/cosmos/cosmos-sdk/store/prefix" - "cosmossdk.io/math" - sdk "github.com/cosmos/cosmos-sdk/types" + "cosmossdk.io/store/prefix" + storetypes "cosmossdk.io/store/types" + "github.com/cosmos/cosmos-sdk/runtime" "github.com/cosmos/cosmos-sdk/types/query" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" @@ -64,14 +65,13 @@ func TestPerMessageBurnLimitQuery(t *testing.T) { }, } { t.Run(tc.desc, func(t *testing.T) { - keeper, ctx := keepertest.CctpKeeper(t) - goCtx := sdk.WrapSDKContext(ctx) + keeper, ctx := keepertest.CctpKeeper() if tc.set { keeper.SetPerMessageBurnLimit(ctx, PerMessageBurnLimit) } - response, err := keeper.PerMessageBurnLimit(goCtx, tc.request) + response, err := keeper.PerMessageBurnLimit(ctx, tc.request) if tc.err != nil { require.ErrorIs(t, err, tc.err) @@ -87,8 +87,7 @@ func TestPerMessageBurnLimitQuery(t *testing.T) { } func TestPerMessageBurnLimitQueryPaginated(t *testing.T) { - keeper, ctx := keepertest.CctpKeeper(t) - wctx := sdk.WrapSDKContext(ctx) + keeper, ctx := keepertest.CctpKeeper() msgs := createNPerMessageBurnLimits(keeper, ctx, 5) perMessageBurnLimits := make([]types.PerMessageBurnLimit, len(msgs)) copy(perMessageBurnLimits, msgs) @@ -106,7 +105,7 @@ func TestPerMessageBurnLimitQueryPaginated(t *testing.T) { t.Run("ByOffset", func(t *testing.T) { step := 2 for i := 0; i < len(perMessageBurnLimits); i += step { - resp, err := keeper.PerMessageBurnLimits(wctx, request(nil, uint64(i), uint64(step), false)) + resp, err := keeper.PerMessageBurnLimits(ctx, request(nil, uint64(i), uint64(step), false)) require.NoError(t, err) require.LessOrEqual(t, len(resp.BurnLimits), step) require.Subset(t, @@ -119,7 +118,7 @@ func TestPerMessageBurnLimitQueryPaginated(t *testing.T) { step := 2 var next []byte for i := 0; i < len(perMessageBurnLimits); i += step { - resp, err := keeper.PerMessageBurnLimits(wctx, request(next, 0, uint64(step), false)) + resp, err := keeper.PerMessageBurnLimits(ctx, request(next, 0, uint64(step), false)) require.NoError(t, err) require.LessOrEqual(t, len(resp.BurnLimits), step) require.Subset(t, @@ -130,7 +129,7 @@ func TestPerMessageBurnLimitQueryPaginated(t *testing.T) { } }) t.Run("Total", func(t *testing.T) { - resp, err := keeper.PerMessageBurnLimits(wctx, request(nil, 0, 0, true)) + resp, err := keeper.PerMessageBurnLimits(ctx, request(nil, 0, 0, true)) require.NoError(t, err) require.Equal(t, len(perMessageBurnLimits), int(resp.Pagination.Total)) require.ElementsMatch(t, @@ -139,24 +138,24 @@ func TestPerMessageBurnLimitQueryPaginated(t *testing.T) { ) }) t.Run("InvalidRequest", func(t *testing.T) { - _, err := keeper.PerMessageBurnLimits(wctx, nil) + _, err := keeper.PerMessageBurnLimits(ctx, nil) require.ErrorIs(t, err, status.Error(codes.InvalidArgument, "invalid request")) }) t.Run("PaginateError", func(t *testing.T) { - _, err := keeper.PerMessageBurnLimits(wctx, request([]byte("key"), 1, 0, true)) + _, err := keeper.PerMessageBurnLimits(ctx, request([]byte("key"), 1, 0, true)) require.Contains(t, err.Error(), "invalid request, either offset or key is expected, got both") }) } func TestPerMessageBurnLimitQueryPaginatedInvalidState(t *testing.T) { - storeKey := sdk.NewKVStoreKey(types.StoreKey) - keeper, ctx := keepertest.CctpKeeperWithKey(t, storeKey) + storeKey := storetypes.NewKVStoreKey(types.StoreKey) + keeper, ctx := keepertest.CctpKeeperWithKey(storeKey) - store := prefix.NewStore(ctx.KVStore(storeKey), types.KeyPrefix(types.PerMessageBurnLimitKeyPrefix)) + adapter := runtime.KVStoreAdapter(runtime.NewKVStoreService(storeKey).OpenKVStore(ctx)) + store := prefix.NewStore(adapter, types.KeyPrefix(types.PerMessageBurnLimitKeyPrefix)) store.Set(types.KeyPrefix(string(types.PerMessageBurnLimitKey("denom"))), []byte("invalid")) - goCtx := sdk.WrapSDKContext(ctx) - _, err := keeper.PerMessageBurnLimits(goCtx, &types.QueryAllPerMessageBurnLimitsRequest{}) + _, err := keeper.PerMessageBurnLimits(ctx, &types.QueryAllPerMessageBurnLimitsRequest{}) parsedErr, ok := status.FromError(err) require.True(t, ok) diff --git a/x/cctp/keeper/grpc_query_remote_token_messengers.go b/x/cctp/keeper/grpc_query_remote_token_messengers.go index dea1744..47609ff 100644 --- a/x/cctp/keeper/grpc_query_remote_token_messengers.go +++ b/x/cctp/keeper/grpc_query_remote_token_messengers.go @@ -1,28 +1,29 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper import ( "context" - "github.com/cosmos/cosmos-sdk/store/prefix" - "github.com/cosmos/cosmos-sdk/types/query" - + "cosmossdk.io/store/prefix" "github.com/circlefin/noble-cctp/x/cctp/types" + "github.com/cosmos/cosmos-sdk/runtime" sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/types/query" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" ) @@ -49,8 +50,8 @@ func (k Keeper) RemoteTokenMessengers(c context.Context, req *types.QueryRemoteT var remoteTokenMessengers []types.RemoteTokenMessenger ctx := sdk.UnwrapSDKContext(c) - store := ctx.KVStore(k.storeKey) - remoteTokenMessengersStore := prefix.NewStore(store, types.KeyPrefix(types.RemoteTokenMessengerKeyPrefix)) + adapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) + remoteTokenMessengersStore := prefix.NewStore(adapter, types.KeyPrefix(types.RemoteTokenMessengerKeyPrefix)) pageRes, err := query.Paginate(remoteTokenMessengersStore, req.Pagination, func(key []byte, value []byte) error { var remoteTokenMessenger types.RemoteTokenMessenger diff --git a/x/cctp/keeper/grpc_query_remote_token_messengers_test.go b/x/cctp/keeper/grpc_query_remote_token_messengers_test.go index 17148f0..d50c03d 100644 --- a/x/cctp/keeper/grpc_query_remote_token_messengers_test.go +++ b/x/cctp/keeper/grpc_query_remote_token_messengers_test.go @@ -1,39 +1,38 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper_test import ( "testing" - "github.com/cosmos/cosmos-sdk/store/prefix" - - sdk "github.com/cosmos/cosmos-sdk/types" + "cosmossdk.io/store/prefix" + storetypes "cosmossdk.io/store/types" + keepertest "github.com/circlefin/noble-cctp/testutil/keeper" + "github.com/circlefin/noble-cctp/testutil/nullify" + "github.com/circlefin/noble-cctp/x/cctp/types" + "github.com/cosmos/cosmos-sdk/runtime" "github.com/cosmos/cosmos-sdk/types/query" "github.com/stretchr/testify/require" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - - keepertest "github.com/circlefin/noble-cctp/testutil/keeper" - "github.com/circlefin/noble-cctp/testutil/nullify" - "github.com/circlefin/noble-cctp/x/cctp/types" ) func TestRemoteTokenMessengerQuerySingle(t *testing.T) { - keeper, ctx := keepertest.CctpKeeper(t) - wctx := sdk.WrapSDKContext(ctx) + keeper, ctx := keepertest.CctpKeeper() msgs := createNRemoteTokenMessengers(keeper, ctx, 2) for _, tc := range []struct { desc string @@ -68,7 +67,7 @@ func TestRemoteTokenMessengerQuerySingle(t *testing.T) { }, } { t.Run(tc.desc, func(t *testing.T) { - response, err := keeper.RemoteTokenMessenger(wctx, tc.request) + response, err := keeper.RemoteTokenMessenger(ctx, tc.request) if tc.err != nil { require.ErrorIs(t, err, tc.err) } else { @@ -83,8 +82,7 @@ func TestRemoteTokenMessengerQuerySingle(t *testing.T) { } func TestRemoteTokenMessengerQueryPaginated(t *testing.T) { - keeper, ctx := keepertest.CctpKeeper(t) - wctx := sdk.WrapSDKContext(ctx) + keeper, ctx := keepertest.CctpKeeper() msgs := createNRemoteTokenMessengers(keeper, ctx, 5) RemoteTokenMessenger := make([]types.RemoteTokenMessenger, len(msgs)) copy(RemoteTokenMessenger, msgs) @@ -102,7 +100,7 @@ func TestRemoteTokenMessengerQueryPaginated(t *testing.T) { t.Run("ByOffset", func(t *testing.T) { step := 2 for i := 0; i < len(RemoteTokenMessenger); i += step { - resp, err := keeper.RemoteTokenMessengers(wctx, request(nil, uint64(i), uint64(step), false)) + resp, err := keeper.RemoteTokenMessengers(ctx, request(nil, uint64(i), uint64(step), false)) require.NoError(t, err) require.LessOrEqual(t, len(resp.RemoteTokenMessengers), step) require.Subset(t, @@ -115,7 +113,7 @@ func TestRemoteTokenMessengerQueryPaginated(t *testing.T) { step := 2 var next []byte for i := 0; i < len(RemoteTokenMessenger); i += step { - resp, err := keeper.RemoteTokenMessengers(wctx, request(next, 0, uint64(step), false)) + resp, err := keeper.RemoteTokenMessengers(ctx, request(next, 0, uint64(step), false)) require.NoError(t, err) require.LessOrEqual(t, len(resp.RemoteTokenMessengers), step) require.Subset(t, @@ -126,7 +124,7 @@ func TestRemoteTokenMessengerQueryPaginated(t *testing.T) { } }) t.Run("Total", func(t *testing.T) { - resp, err := keeper.RemoteTokenMessengers(wctx, request(nil, 0, 0, true)) + resp, err := keeper.RemoteTokenMessengers(ctx, request(nil, 0, 0, true)) require.NoError(t, err) require.Equal(t, len(RemoteTokenMessenger), int(resp.Pagination.Total)) require.ElementsMatch(t, @@ -135,24 +133,24 @@ func TestRemoteTokenMessengerQueryPaginated(t *testing.T) { ) }) t.Run("InvalidRequest", func(t *testing.T) { - _, err := keeper.RemoteTokenMessengers(wctx, nil) + _, err := keeper.RemoteTokenMessengers(ctx, nil) require.ErrorIs(t, err, status.Error(codes.InvalidArgument, "invalid request")) }) t.Run("PaginateError", func(t *testing.T) { - _, err := keeper.RemoteTokenMessengers(wctx, request([]byte("key"), 1, 0, true)) + _, err := keeper.RemoteTokenMessengers(ctx, request([]byte("key"), 1, 0, true)) require.Contains(t, err.Error(), "invalid request, either offset or key is expected, got both") }) } func TestRemoteTokenMessengerQueryPaginatedInvalidState(t *testing.T) { - storeKey := sdk.NewKVStoreKey(types.StoreKey) - keeper, ctx := keepertest.CctpKeeperWithKey(t, storeKey) + storeKey := storetypes.NewKVStoreKey(types.StoreKey) + keeper, ctx := keepertest.CctpKeeperWithKey(storeKey) - store := prefix.NewStore(ctx.KVStore(storeKey), types.KeyPrefix(types.RemoteTokenMessengerKeyPrefix)) + adapter := runtime.KVStoreAdapter(runtime.NewKVStoreService(storeKey).OpenKVStore(ctx)) + store := prefix.NewStore(adapter, types.KeyPrefix(types.RemoteTokenMessengerKeyPrefix)) store.Set(types.RemoteTokenMessengerKey(0), []byte("invalid")) - goCtx := sdk.WrapSDKContext(ctx) - _, err := keeper.RemoteTokenMessengers(goCtx, &types.QueryRemoteTokenMessengersRequest{}) + _, err := keeper.RemoteTokenMessengers(ctx, &types.QueryRemoteTokenMessengersRequest{}) parsedErr, ok := status.FromError(err) require.True(t, ok) diff --git a/x/cctp/keeper/grpc_query_roles.go b/x/cctp/keeper/grpc_query_roles.go index 23e5930..a3413c1 100644 --- a/x/cctp/keeper/grpc_query_roles.go +++ b/x/cctp/keeper/grpc_query_roles.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper import ( diff --git a/x/cctp/keeper/grpc_query_roles_test.go b/x/cctp/keeper/grpc_query_roles_test.go index 017b274..eeda3fb 100644 --- a/x/cctp/keeper/grpc_query_roles_test.go +++ b/x/cctp/keeper/grpc_query_roles_test.go @@ -1,24 +1,24 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper_test import ( "testing" - sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/require" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" @@ -29,8 +29,7 @@ import ( ) func TestRolesQuery(t *testing.T) { - keeper, ctx := keepertest.CctpKeeper(t) - goCtx := sdk.WrapSDKContext(ctx) + keeper, ctx := keepertest.CctpKeeper() owner := "test-owner" keeper.SetOwner(ctx, owner) @@ -63,7 +62,7 @@ func TestRolesQuery(t *testing.T) { }, } { t.Run(tc.desc, func(t *testing.T) { - response, err := keeper.Roles(goCtx, tc.request) + response, err := keeper.Roles(ctx, tc.request) if tc.err != nil { require.ErrorIs(t, err, tc.err) } else { diff --git a/x/cctp/keeper/grpc_query_sending_and_receiving_messages_paused.go b/x/cctp/keeper/grpc_query_sending_and_receiving_messages_paused.go index 11452a1..e80835d 100644 --- a/x/cctp/keeper/grpc_query_sending_and_receiving_messages_paused.go +++ b/x/cctp/keeper/grpc_query_sending_and_receiving_messages_paused.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper import ( diff --git a/x/cctp/keeper/grpc_query_sending_and_receiving_messages_paused_test.go b/x/cctp/keeper/grpc_query_sending_and_receiving_messages_paused_test.go index 4f4c159..1983d8a 100644 --- a/x/cctp/keeper/grpc_query_sending_and_receiving_messages_paused_test.go +++ b/x/cctp/keeper/grpc_query_sending_and_receiving_messages_paused_test.go @@ -1,24 +1,24 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper_test import ( "testing" - sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/require" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" @@ -56,14 +56,13 @@ func TestSendingAndReceivingMessagesPausedQuery(t *testing.T) { }, } { t.Run(tc.desc, func(t *testing.T) { - keeper, ctx := keepertest.CctpKeeper(t) - goCtx := sdk.WrapSDKContext(ctx) + keeper, ctx := keepertest.CctpKeeper() if tc.set { keeper.SetSendingAndReceivingMessagesPaused(ctx, SendingAndReceivingMessagesPaused) } - response, err := keeper.SendingAndReceivingMessagesPaused(goCtx, tc.request) + response, err := keeper.SendingAndReceivingMessagesPaused(ctx, tc.request) if tc.err != nil { require.ErrorIs(t, err, tc.err) diff --git a/x/cctp/keeper/grpc_query_signature_threshold.go b/x/cctp/keeper/grpc_query_signature_threshold.go index 2054eb3..7a434d8 100644 --- a/x/cctp/keeper/grpc_query_signature_threshold.go +++ b/x/cctp/keeper/grpc_query_signature_threshold.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper import ( diff --git a/x/cctp/keeper/grpc_query_signature_threshold_test.go b/x/cctp/keeper/grpc_query_signature_threshold_test.go index 6bc4345..5d42919 100644 --- a/x/cctp/keeper/grpc_query_signature_threshold_test.go +++ b/x/cctp/keeper/grpc_query_signature_threshold_test.go @@ -1,24 +1,24 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper_test import ( "testing" - sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/require" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" @@ -56,14 +56,13 @@ func TestSignatureThresholdQuery(t *testing.T) { }, } { t.Run(tc.desc, func(t *testing.T) { - keeper, ctx := keepertest.CctpKeeper(t) - goCtx := sdk.WrapSDKContext(ctx) + keeper, ctx := keepertest.CctpKeeper() if tc.set { keeper.SetSignatureThreshold(ctx, SignatureThreshold) } - response, err := keeper.SignatureThreshold(goCtx, tc.request) + response, err := keeper.SignatureThreshold(ctx, tc.request) if tc.err != nil { require.ErrorIs(t, err, tc.err) diff --git a/x/cctp/keeper/grpc_query_token_pairs.go b/x/cctp/keeper/grpc_query_token_pairs.go index e1be428..2d4a00c 100644 --- a/x/cctp/keeper/grpc_query_token_pairs.go +++ b/x/cctp/keeper/grpc_query_token_pairs.go @@ -1,24 +1,26 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper import ( "context" - "github.com/cosmos/cosmos-sdk/store/prefix" + "cosmossdk.io/store/prefix" + "github.com/cosmos/cosmos-sdk/runtime" "github.com/cosmos/cosmos-sdk/types/query" "github.com/circlefin/noble-cctp/x/cctp/types" @@ -49,8 +51,8 @@ func (k Keeper) TokenPairs(c context.Context, req *types.QueryAllTokenPairsReque var tokenPairs []types.TokenPair ctx := sdk.UnwrapSDKContext(c) - store := ctx.KVStore(k.storeKey) - TokenPairsStore := prefix.NewStore(store, types.KeyPrefix(types.TokenPairKeyPrefix)) + adapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) + TokenPairsStore := prefix.NewStore(adapter, types.KeyPrefix(types.TokenPairKeyPrefix)) pageRes, err := query.Paginate(TokenPairsStore, req.Pagination, func(key []byte, value []byte) error { var tokenPair types.TokenPair diff --git a/x/cctp/keeper/grpc_query_token_pairs_test.go b/x/cctp/keeper/grpc_query_token_pairs_test.go index 1b79e56..601636c 100644 --- a/x/cctp/keeper/grpc_query_token_pairs_test.go +++ b/x/cctp/keeper/grpc_query_token_pairs_test.go @@ -1,26 +1,28 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper_test import ( "testing" - "github.com/cosmos/cosmos-sdk/store/prefix" + "cosmossdk.io/store/prefix" + storetypes "cosmossdk.io/store/types" - sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/runtime" "github.com/cosmos/cosmos-sdk/types/query" "github.com/stretchr/testify/require" "google.golang.org/grpc/codes" @@ -32,8 +34,7 @@ import ( ) func TestTokenPairQuerySingle(t *testing.T) { - keeper, ctx := keepertest.CctpKeeper(t) - wctx := sdk.WrapSDKContext(ctx) + keeper, ctx := keepertest.CctpKeeper() msgs := createNTokenPairs(keeper, ctx, 2) for _, tc := range []struct { desc string @@ -71,7 +72,7 @@ func TestTokenPairQuerySingle(t *testing.T) { }, } { t.Run(tc.desc, func(t *testing.T) { - response, err := keeper.TokenPair(wctx, tc.request) + response, err := keeper.TokenPair(ctx, tc.request) if tc.err != nil { require.ErrorIs(t, err, tc.err) } else { @@ -86,8 +87,7 @@ func TestTokenPairQuerySingle(t *testing.T) { } func TestTokenPairQueryPaginated(t *testing.T) { - keeper, ctx := keepertest.CctpKeeper(t) - wctx := sdk.WrapSDKContext(ctx) + keeper, ctx := keepertest.CctpKeeper() msgs := createNTokenPairs(keeper, ctx, 5) TokenPair := make([]types.TokenPair, len(msgs)) copy(TokenPair, msgs) @@ -105,7 +105,7 @@ func TestTokenPairQueryPaginated(t *testing.T) { t.Run("ByOffset", func(t *testing.T) { step := 2 for i := 0; i < len(TokenPair); i += step { - resp, err := keeper.TokenPairs(wctx, request(nil, uint64(i), uint64(step), false)) + resp, err := keeper.TokenPairs(ctx, request(nil, uint64(i), uint64(step), false)) require.NoError(t, err) require.LessOrEqual(t, len(resp.TokenPairs), step) require.Subset(t, @@ -118,7 +118,7 @@ func TestTokenPairQueryPaginated(t *testing.T) { step := 2 var next []byte for i := 0; i < len(TokenPair); i += step { - resp, err := keeper.TokenPairs(wctx, request(next, 0, uint64(step), false)) + resp, err := keeper.TokenPairs(ctx, request(next, 0, uint64(step), false)) require.NoError(t, err) require.LessOrEqual(t, len(resp.TokenPairs), step) require.Subset(t, @@ -129,7 +129,7 @@ func TestTokenPairQueryPaginated(t *testing.T) { } }) t.Run("Total", func(t *testing.T) { - resp, err := keeper.TokenPairs(wctx, request(nil, 0, 0, true)) + resp, err := keeper.TokenPairs(ctx, request(nil, 0, 0, true)) require.NoError(t, err) require.Equal(t, len(TokenPair), int(resp.Pagination.Total)) require.ElementsMatch(t, @@ -138,24 +138,24 @@ func TestTokenPairQueryPaginated(t *testing.T) { ) }) t.Run("InvalidRequest", func(t *testing.T) { - _, err := keeper.TokenPairs(wctx, nil) + _, err := keeper.TokenPairs(ctx, nil) require.ErrorIs(t, err, status.Error(codes.InvalidArgument, "invalid request")) }) t.Run("PaginateError", func(t *testing.T) { - _, err := keeper.TokenPairs(wctx, request([]byte("key"), 1, 0, true)) + _, err := keeper.TokenPairs(ctx, request([]byte("key"), 1, 0, true)) require.Contains(t, err.Error(), "invalid request, either offset or key is expected, got both") }) } func TestTokenPairQueryPaginatedInvalidState(t *testing.T) { - storeKey := sdk.NewKVStoreKey(types.StoreKey) - keeper, ctx := keepertest.CctpKeeperWithKey(t, storeKey) + storeKey := storetypes.NewKVStoreKey(types.StoreKey) + keeper, ctx := keepertest.CctpKeeperWithKey(storeKey) - store := prefix.NewStore(ctx.KVStore(storeKey), types.KeyPrefix(types.TokenPairKeyPrefix)) + adapter := runtime.KVStoreAdapter(runtime.NewKVStoreService(storeKey).OpenKVStore(ctx)) + store := prefix.NewStore(adapter, types.KeyPrefix(types.TokenPairKeyPrefix)) store.Set(types.TokenPairKey(0, []byte("remoteToken")), []byte("invalid")) - goCtx := sdk.WrapSDKContext(ctx) - _, err := keeper.TokenPairs(goCtx, &types.QueryAllTokenPairsRequest{}) + _, err := keeper.TokenPairs(ctx, &types.QueryAllTokenPairsRequest{}) parsedErr, ok := status.FromError(err) require.True(t, ok) diff --git a/x/cctp/keeper/grpc_query_used_nonces.go b/x/cctp/keeper/grpc_query_used_nonces.go index 649f276..fd0b950 100644 --- a/x/cctp/keeper/grpc_query_used_nonces.go +++ b/x/cctp/keeper/grpc_query_used_nonces.go @@ -1,24 +1,26 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper import ( "context" - "github.com/cosmos/cosmos-sdk/store/prefix" + "cosmossdk.io/store/prefix" + "github.com/cosmos/cosmos-sdk/runtime" "github.com/cosmos/cosmos-sdk/types/query" "github.com/circlefin/noble-cctp/x/cctp/types" @@ -53,8 +55,8 @@ func (k Keeper) UsedNonces(c context.Context, req *types.QueryAllUsedNoncesReque var usedNonces []types.Nonce ctx := sdk.UnwrapSDKContext(c) - store := ctx.KVStore(k.storeKey) - usedNonceStore := prefix.NewStore(store, types.KeyPrefix(types.UsedNonceKeyPrefix)) + adapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) + usedNonceStore := prefix.NewStore(adapter, types.KeyPrefix(types.UsedNonceKeyPrefix)) pageRes, err := query.Paginate(usedNonceStore, req.Pagination, func(key []byte, value []byte) error { var usedNonce types.Nonce diff --git a/x/cctp/keeper/grpc_query_used_nonces_test.go b/x/cctp/keeper/grpc_query_used_nonces_test.go index 041defc..2cce608 100644 --- a/x/cctp/keeper/grpc_query_used_nonces_test.go +++ b/x/cctp/keeper/grpc_query_used_nonces_test.go @@ -1,29 +1,31 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper_test import ( "testing" - "github.com/cosmos/cosmos-sdk/store/prefix" + "cosmossdk.io/store/prefix" + storetypes "cosmossdk.io/store/types" keepertest "github.com/circlefin/noble-cctp/testutil/keeper" "github.com/circlefin/noble-cctp/testutil/nullify" "github.com/circlefin/noble-cctp/x/cctp/types" - sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/runtime" "github.com/cosmos/cosmos-sdk/types/query" "github.com/stretchr/testify/require" "google.golang.org/grpc/codes" @@ -31,8 +33,7 @@ import ( ) func TestUsedNonceQuerySingle(t *testing.T) { - keeper, ctx := keepertest.CctpKeeper(t) - wctx := sdk.WrapSDKContext(ctx) + keeper, ctx := keepertest.CctpKeeper() msgs := createNUsedNonces(keeper, ctx, 2) for _, tc := range []struct { desc string @@ -70,7 +71,7 @@ func TestUsedNonceQuerySingle(t *testing.T) { }, } { t.Run(tc.desc, func(t *testing.T) { - response, err := keeper.UsedNonce(wctx, tc.request) + response, err := keeper.UsedNonce(ctx, tc.request) if tc.err != nil { require.ErrorIs(t, err, tc.err) } else { @@ -85,8 +86,7 @@ func TestUsedNonceQuerySingle(t *testing.T) { } func TestUsedNonceQueryPaginated(t *testing.T) { - keeper, ctx := keepertest.CctpKeeper(t) - wctx := sdk.WrapSDKContext(ctx) + keeper, ctx := keepertest.CctpKeeper() msgs := createNUsedNonces(keeper, ctx, 5) usedNonce := make([]types.Nonce, len(msgs)) copy(usedNonce, msgs) @@ -104,7 +104,7 @@ func TestUsedNonceQueryPaginated(t *testing.T) { t.Run("ByOffset", func(t *testing.T) { step := 2 for i := 0; i < len(usedNonce); i += step { - resp, err := keeper.UsedNonces(wctx, request(nil, uint64(i), uint64(step), false)) + resp, err := keeper.UsedNonces(ctx, request(nil, uint64(i), uint64(step), false)) require.NoError(t, err) require.LessOrEqual(t, len(resp.UsedNonces), step) require.Subset(t, @@ -117,7 +117,7 @@ func TestUsedNonceQueryPaginated(t *testing.T) { step := 2 var next []byte for i := 0; i < len(usedNonce); i += step { - resp, err := keeper.UsedNonces(wctx, request(next, 0, uint64(step), false)) + resp, err := keeper.UsedNonces(ctx, request(next, 0, uint64(step), false)) require.NoError(t, err) require.LessOrEqual(t, len(resp.UsedNonces), step) require.Subset(t, @@ -128,7 +128,7 @@ func TestUsedNonceQueryPaginated(t *testing.T) { } }) t.Run("Total", func(t *testing.T) { - resp, err := keeper.UsedNonces(wctx, request(nil, 0, 0, true)) + resp, err := keeper.UsedNonces(ctx, request(nil, 0, 0, true)) require.NoError(t, err) require.Equal(t, len(usedNonce), int(resp.Pagination.Total)) require.ElementsMatch(t, @@ -137,24 +137,24 @@ func TestUsedNonceQueryPaginated(t *testing.T) { ) }) t.Run("InvalidRequest", func(t *testing.T) { - _, err := keeper.UsedNonces(wctx, nil) + _, err := keeper.UsedNonces(ctx, nil) require.ErrorIs(t, err, status.Error(codes.InvalidArgument, "invalid request")) }) t.Run("PaginateError", func(t *testing.T) { - _, err := keeper.UsedNonces(wctx, request([]byte("key"), 1, 0, true)) + _, err := keeper.UsedNonces(ctx, request([]byte("key"), 1, 0, true)) require.Contains(t, err.Error(), "invalid request, either offset or key is expected, got both") }) } func TestUsedNonceQueryPaginatedInvalidState(t *testing.T) { - storeKey := sdk.NewKVStoreKey(types.StoreKey) - keeper, ctx := keepertest.CctpKeeperWithKey(t, storeKey) + storeKey := storetypes.NewKVStoreKey(types.StoreKey) + keeper, ctx := keepertest.CctpKeeperWithKey(storeKey) - store := prefix.NewStore(ctx.KVStore(storeKey), types.KeyPrefix(types.UsedNonceKeyPrefix)) + adapter := runtime.KVStoreAdapter(runtime.NewKVStoreService(storeKey).OpenKVStore(ctx)) + store := prefix.NewStore(adapter, types.KeyPrefix(types.UsedNonceKeyPrefix)) store.Set(types.UsedNonceKey(0, 0), []byte("invalid")) - goCtx := sdk.WrapSDKContext(ctx) - _, err := keeper.UsedNonces(goCtx, &types.QueryAllUsedNoncesRequest{}) + _, err := keeper.UsedNonces(ctx, &types.QueryAllUsedNoncesRequest{}) parsedErr, ok := status.FromError(err) require.True(t, ok) diff --git a/x/cctp/keeper/keeper.go b/x/cctp/keeper/keeper.go index b0828a0..07ab142 100644 --- a/x/cctp/keeper/keeper.go +++ b/x/cctp/keeper/keeper.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper import ( @@ -20,18 +21,17 @@ import ( "github.com/circlefin/noble-cctp/x/cctp/types" + "cosmossdk.io/core/store" + "cosmossdk.io/log" "github.com/cosmos/cosmos-sdk/codec" - storetypes "github.com/cosmos/cosmos-sdk/store/types" - sdk "github.com/cosmos/cosmos-sdk/types" - paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" - "github.com/tendermint/tendermint/libs/log" ) type ( Keeper struct { - cdc codec.BinaryCodec - storeKey storetypes.StoreKey - paramstore paramtypes.Subspace + cdc codec.BinaryCodec + logger log.Logger + storeService store.KVStoreService + bank types.BankKeeper fiattokenfactory types.FiatTokenfactoryKeeper } @@ -39,25 +39,20 @@ type ( func NewKeeper( cdc codec.BinaryCodec, - storeKey storetypes.StoreKey, - ps paramtypes.Subspace, + logger log.Logger, + storeService store.KVStoreService, bank types.BankKeeper, fiattokenfactory types.FiatTokenfactoryKeeper, ) *Keeper { - // set KeyTable if it has not already been set - if !ps.HasKeyTable() { - ps = ps.WithKeyTable(types.ParamKeyTable()) - } - return &Keeper{ cdc: cdc, - storeKey: storeKey, - paramstore: ps, + logger: logger, + storeService: storeService, bank: bank, fiattokenfactory: fiattokenfactory, } } -func (k Keeper) Logger(ctx sdk.Context) log.Logger { - return ctx.Logger().With("module", fmt.Sprintf("x/%s", types.ModuleName)) +func (k Keeper) Logger() log.Logger { + return k.logger.With("module", fmt.Sprintf("x/%s", types.ModuleName)) } diff --git a/x/cctp/keeper/keeper_test.go b/x/cctp/keeper/keeper_test.go index 929bc65..9167892 100644 --- a/x/cctp/keeper/keeper_test.go +++ b/x/cctp/keeper/keeper_test.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper_test import ( @@ -22,6 +23,6 @@ import ( ) func TestLogger(t *testing.T) { - keeper, ctx := keepertest.CctpKeeper(t) - _ = keeper.Logger(ctx) + keeper, _ := keepertest.CctpKeeper() + _ = keeper.Logger() } diff --git a/x/cctp/keeper/max_message_body_size.go b/x/cctp/keeper/max_message_body_size.go index c56a66e..f96f3f2 100644 --- a/x/cctp/keeper/max_message_body_size.go +++ b/x/cctp/keeper/max_message_body_size.go @@ -1,30 +1,33 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper import ( - "github.com/circlefin/noble-cctp/x/cctp/types" - "github.com/cosmos/cosmos-sdk/store/prefix" + "context" - sdk "github.com/cosmos/cosmos-sdk/types" + "cosmossdk.io/store/prefix" + "github.com/circlefin/noble-cctp/x/cctp/types" + "github.com/cosmos/cosmos-sdk/runtime" ) // GetMaxMessageBodySize returns the MaxMessageBodySize -func (k Keeper) GetMaxMessageBodySize(ctx sdk.Context) (val types.MaxMessageBodySize, found bool) { - store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.MaxMessageBodySizeKey)) +func (k Keeper) GetMaxMessageBodySize(ctx context.Context) (val types.MaxMessageBodySize, found bool) { + adapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) + store := prefix.NewStore(adapter, types.KeyPrefix(types.MaxMessageBodySizeKey)) b := store.Get(types.KeyPrefix(types.MaxMessageBodySizeKey)) if b == nil { @@ -36,8 +39,9 @@ func (k Keeper) GetMaxMessageBodySize(ctx sdk.Context) (val types.MaxMessageBody } // SetMaxMessageBodySize sets MaxMessageBodySize in the store -func (k Keeper) SetMaxMessageBodySize(ctx sdk.Context, amount types.MaxMessageBodySize) { - store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.MaxMessageBodySizeKey)) +func (k Keeper) SetMaxMessageBodySize(ctx context.Context, amount types.MaxMessageBodySize) { + adapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) + store := prefix.NewStore(adapter, types.KeyPrefix(types.MaxMessageBodySizeKey)) b := k.cdc.MustMarshal(&amount) store.Set(types.KeyPrefix(types.MaxMessageBodySizeKey), b) } diff --git a/x/cctp/keeper/max_message_body_size_test.go b/x/cctp/keeper/max_message_body_size_test.go index c15eaae..d050b1c 100644 --- a/x/cctp/keeper/max_message_body_size_test.go +++ b/x/cctp/keeper/max_message_body_size_test.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper_test import ( @@ -26,7 +27,7 @@ import ( ) func TestMaxMessageBodySize(t *testing.T) { - keeper, ctx := keepertest.CctpKeeper(t) + keeper, ctx := keepertest.CctpKeeper() _, found := keeper.GetMaxMessageBodySize(ctx) require.False(t, found) diff --git a/x/cctp/keeper/msg_server.go b/x/cctp/keeper/msg_server.go index 7da0df6..337f421 100644 --- a/x/cctp/keeper/msg_server.go +++ b/x/cctp/keeper/msg_server.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper import ( diff --git a/x/cctp/keeper/msg_server_accept_owner.go b/x/cctp/keeper/msg_server_accept_owner.go index b0e918b..ded74f0 100644 --- a/x/cctp/keeper/msg_server_accept_owner.go +++ b/x/cctp/keeper/msg_server_accept_owner.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper import ( diff --git a/x/cctp/keeper/msg_server_accept_owner_test.go b/x/cctp/keeper/msg_server_accept_owner_test.go index b1d2d26..65f671d 100644 --- a/x/cctp/keeper/msg_server_accept_owner_test.go +++ b/x/cctp/keeper/msg_server_accept_owner_test.go @@ -1,3 +1,19 @@ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper_test import ( @@ -7,7 +23,6 @@ import ( "github.com/circlefin/noble-cctp/testutil/sample" "github.com/circlefin/noble-cctp/x/cctp/keeper" "github.com/circlefin/noble-cctp/x/cctp/types" - sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/require" ) @@ -19,7 +34,7 @@ import ( */ func TestAcceptOwnerHappyPath(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) owner := sample.AccAddress() @@ -31,7 +46,7 @@ func TestAcceptOwnerHappyPath(t *testing.T) { From: pendingOwner, } - _, err := server.AcceptOwner(sdk.WrapSDKContext(ctx), &message) + _, err := server.AcceptOwner(ctx, &message) require.Nil(t, err) newOwner := testkeeper.GetOwner(ctx) @@ -39,7 +54,7 @@ func TestAcceptOwnerHappyPath(t *testing.T) { } func TestAcceptOwnerOwnerNotSet(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) pendingOwner := sample.AccAddress() @@ -50,12 +65,12 @@ func TestAcceptOwnerOwnerNotSet(t *testing.T) { } require.Panicsf(t, func() { - _, _ = server.AcceptOwner(sdk.WrapSDKContext(ctx), &message) + _, _ = server.AcceptOwner(ctx, &message) }, "cctp owner not found in state") } func TestAcceptOwnerPendingOwnerNotSet(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) owner := sample.AccAddress() @@ -65,13 +80,13 @@ func TestAcceptOwnerPendingOwnerNotSet(t *testing.T) { From: sample.AccAddress(), } - _, err := server.AcceptOwner(sdk.WrapSDKContext(ctx), &message) + _, err := server.AcceptOwner(ctx, &message) require.ErrorIs(t, types.ErrUnauthorized, err) require.Contains(t, err.Error(), "pending owner is not set") } func TestAcceptOwnerInvalidPendingOwner(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) owner := sample.AccAddress() @@ -83,7 +98,7 @@ func TestAcceptOwnerInvalidPendingOwner(t *testing.T) { From: sample.AccAddress(), } - _, err := server.AcceptOwner(sdk.WrapSDKContext(ctx), &message) + _, err := server.AcceptOwner(ctx, &message) require.ErrorIs(t, types.ErrUnauthorized, err) require.Contains(t, err.Error(), "you are not the pending owner") } diff --git a/x/cctp/keeper/msg_server_add_remote_token_messenger.go b/x/cctp/keeper/msg_server_add_remote_token_messenger.go index 1db1547..4f34e5b 100644 --- a/x/cctp/keeper/msg_server_add_remote_token_messenger.go +++ b/x/cctp/keeper/msg_server_add_remote_token_messenger.go @@ -1,26 +1,27 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper import ( "context" + "cosmossdk.io/errors" "github.com/circlefin/noble-cctp/x/cctp/types" sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" ) func (k msgServer) AddRemoteTokenMessenger(goCtx context.Context, msg *types.MsgAddRemoteTokenMessenger) (*types.MsgAddRemoteTokenMessengerResponse, error) { @@ -28,16 +29,16 @@ func (k msgServer) AddRemoteTokenMessenger(goCtx context.Context, msg *types.Msg owner := k.GetOwner(ctx) if owner != msg.From { - return nil, sdkerrors.Wrapf(types.ErrUnauthorized, "this message sender cannot add remote token messengers") + return nil, errors.Wrapf(types.ErrUnauthorized, "this message sender cannot add remote token messengers") } _, found := k.GetRemoteTokenMessenger(ctx, msg.DomainId) if found { - return nil, sdkerrors.Wrapf(types.ErrRemoteTokenMessengerAlreadyFound, "a remote token messenger for this domain already exists") + return nil, errors.Wrapf(types.ErrRemoteTokenMessengerAlreadyFound, "a remote token messenger for this domain already exists") } if len(msg.Address) != 32 { - return nil, sdkerrors.ErrInvalidAddress + return nil, types.ErrInvalidAddress } newRemoteTokenMessenger := types.RemoteTokenMessenger{ diff --git a/x/cctp/keeper/msg_server_add_remote_token_messenger_test.go b/x/cctp/keeper/msg_server_add_remote_token_messenger_test.go index 5266580..9791f28 100644 --- a/x/cctp/keeper/msg_server_add_remote_token_messenger_test.go +++ b/x/cctp/keeper/msg_server_add_remote_token_messenger_test.go @@ -1,30 +1,28 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper_test import ( "testing" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - keepertest "github.com/circlefin/noble-cctp/testutil/keeper" "github.com/circlefin/noble-cctp/testutil/sample" "github.com/circlefin/noble-cctp/x/cctp/keeper" "github.com/circlefin/noble-cctp/x/cctp/types" - sdk "github.com/cosmos/cosmos-sdk/types" "github.com/ethereum/go-ethereum/common" "github.com/stretchr/testify/require" ) @@ -43,7 +41,7 @@ func init() { */ func TestAddRemoteTokenMessengerHappyPath(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) owner := sample.AccAddress() @@ -55,7 +53,7 @@ func TestAddRemoteTokenMessengerHappyPath(t *testing.T) { Address: tokenMessenger, } - _, err := server.AddRemoteTokenMessenger(sdk.WrapSDKContext(ctx), &message) + _, err := server.AddRemoteTokenMessenger(ctx, &message) require.Nil(t, err) actual, found := testkeeper.GetRemoteTokenMessenger(ctx, message.DomainId) @@ -66,7 +64,7 @@ func TestAddRemoteTokenMessengerHappyPath(t *testing.T) { } func TestAddRemoteTokenMessengerAuthorityNotSet(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) message := types.MsgAddRemoteTokenMessenger{ @@ -76,12 +74,12 @@ func TestAddRemoteTokenMessengerAuthorityNotSet(t *testing.T) { } require.PanicsWithValue(t, "cctp owner not found in state", func() { - _, _ = server.AddRemoteTokenMessenger(sdk.WrapSDKContext(ctx), &message) + _, _ = server.AddRemoteTokenMessenger(ctx, &message) }) } func TestAddRemoteTokenMessengerInvalidAuthority(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) owner := sample.AccAddress() @@ -93,13 +91,13 @@ func TestAddRemoteTokenMessengerInvalidAuthority(t *testing.T) { Address: tokenMessenger, } - _, err := server.AddRemoteTokenMessenger(sdk.WrapSDKContext(ctx), &message) + _, err := server.AddRemoteTokenMessenger(ctx, &message) require.ErrorIs(t, types.ErrUnauthorized, err) require.Contains(t, err.Error(), "this message sender cannot add remote token messengers") } func TestAddRemoteTokenMessengerTokenMessengerAlreadyFound(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) owner := sample.AccAddress() @@ -117,13 +115,13 @@ func TestAddRemoteTokenMessengerTokenMessengerAlreadyFound(t *testing.T) { Address: tokenMessenger, } - _, err := server.AddRemoteTokenMessenger(sdk.WrapSDKContext(ctx), &message) + _, err := server.AddRemoteTokenMessenger(ctx, &message) require.ErrorIs(t, types.ErrRemoteTokenMessengerAlreadyFound, err) require.Contains(t, err.Error(), "a remote token messenger for this domain already exists") } func TestAddRemoteTokenMessengerInvalidAddress(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) owner := sample.AccAddress() @@ -135,6 +133,6 @@ func TestAddRemoteTokenMessengerInvalidAddress(t *testing.T) { Address: common.FromHex("0xD0C3da58f55358142b8d3e06C1C30c5C6114EFE8"), } - _, err := server.AddRemoteTokenMessenger(sdk.WrapSDKContext(ctx), &message) - require.ErrorIs(t, err, sdkerrors.ErrInvalidAddress) + _, err := server.AddRemoteTokenMessenger(ctx, &message) + require.ErrorIs(t, err, types.ErrInvalidAddress) } diff --git a/x/cctp/keeper/msg_server_deposit_for_burn.go b/x/cctp/keeper/msg_server_deposit_for_burn.go index 9ba47dc..0b620bd 100644 --- a/x/cctp/keeper/msg_server_deposit_for_burn.go +++ b/x/cctp/keeper/msg_server_deposit_for_burn.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper import ( @@ -21,11 +22,10 @@ import ( "encoding/hex" "strings" + "cosmossdk.io/errors" "cosmossdk.io/math" - "github.com/ethereum/go-ethereum/crypto" - - sdkerrors "cosmossdk.io/errors" sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/ethereum/go-ethereum/crypto" "github.com/circlefin/noble-cctp/x/cctp/types" fiattokenfactorytypes "github.com/circlefin/noble-fiattokenfactory/x/fiattokenfactory/types" @@ -57,46 +57,52 @@ func (k msgServer) depositForBurn( burnToken string, destinationCaller []byte, ) (uint64, error) { + // check for valid `from` address + fromAccAddress, err := sdk.AccAddressFromBech32(from) + if err != nil { + return 0, errors.Wrapf(types.ErrInvalidAddress, "invalid from address (%s)", err) + } + if !amount.IsPositive() { - return 0, sdkerrors.Wrap(types.ErrDepositForBurn, "amount must be positive") + return 0, errors.Wrap(types.ErrDepositForBurn, "amount must be positive") } emptyByteArr := make([]byte, types.MintRecipientLen) if mintRecipient == nil || bytes.Equal(mintRecipient, emptyByteArr) { - return 0, sdkerrors.Wrap(types.ErrDepositForBurn, "mint recipient must be nonzero") + return 0, errors.Wrap(types.ErrDepositForBurn, "mint recipient must be nonzero") } tokenMessenger, found := k.GetRemoteTokenMessenger(ctx, destinationDomain) if !found { - return 0, sdkerrors.Wrap(types.ErrDepositForBurn, "unable to look up destination token messenger") + return 0, errors.Wrap(types.ErrDepositForBurn, "unable to look up destination token messenger") } // Note: fiat token factory only supports burning 1 token denom denom := k.fiattokenfactory.GetMintingDenom(ctx) if !strings.EqualFold(denom.Denom, burnToken) { - return 0, sdkerrors.Wrapf(types.ErrBurn, "burning denom: %s is not supported", burnToken) + return 0, errors.Wrapf(types.ErrBurn, "burning denom: %s is not supported", burnToken) } // check if burning/minting is paused paused, _ := k.GetBurningAndMintingPaused(ctx) if paused.Paused { - return 0, sdkerrors.Wrap(types.ErrBurn, "burning and minting are paused") + return 0, errors.Wrap(types.ErrBurn, "burning and minting are paused") } // check if amount is greater than configured PerMessageBurnLimit for this token perMessageBurnLimit, found := k.GetPerMessageBurnLimit(ctx, strings.ToLower(burnToken)) if found { if amount.GT(perMessageBurnLimit.Amount) { - return 0, sdkerrors.Wrap(types.ErrBurn, "cannot burn more than the maximum per message burn limit") + return 0, errors.Wrap(types.ErrBurn, "cannot burn more than the maximum per message burn limit") } } // burn coins - coin := sdk.NewCoin(burnToken, sdk.NewIntFromBigInt(amount.BigInt())) + coin := sdk.NewCoin(burnToken, math.NewIntFromBigInt(amount.BigInt())) - err := k.bank.SendCoinsFromAccountToModule(ctx, sdk.MustAccAddressFromBech32(from), types.ModuleName, sdk.NewCoins(coin)) + err = k.bank.SendCoinsFromAccountToModule(ctx, fromAccAddress, types.ModuleName, sdk.NewCoins(coin)) if err != nil { - return 0, sdkerrors.Wrap(err, "error during transfer") + return 0, errors.Wrap(err, "error during transfer") } fiatBurnMsg := fiattokenfactorytypes.MsgBurn{ @@ -105,11 +111,11 @@ func (k msgServer) depositForBurn( } _, err = k.fiattokenfactory.Burn(ctx, &fiatBurnMsg) if err != nil { - return 0, sdkerrors.Wrapf(err, "error during burn") + return 0, errors.Wrapf(err, "error during burn") } messageSender := make([]byte, 32) - copy(messageSender[12:], sdk.MustAccAddressFromBech32(from)) + copy(messageSender[12:], fromAccAddress) burnMessage := types.BurnMessage{ Version: types.MessageBodyVersion, @@ -123,7 +129,7 @@ func (k msgServer) depositForBurn( newMessageBodyBytes, err := burnMessage.Bytes() if err != nil { - return 0, sdkerrors.Wrapf(types.ErrParsingBurnMessage, "error parsing burn message into bytes") + return 0, errors.Wrapf(types.ErrParsingBurnMessage, "error parsing burn message into bytes") } if len(destinationCaller) == 0 { @@ -134,7 +140,7 @@ func (k msgServer) depositForBurn( MessageBody: newMessageBodyBytes, } - resp, err := k.SendMessage(sdk.WrapSDKContext(ctx), &message) + resp, err := k.SendMessage(ctx, &message) if err != nil { return 0, err } @@ -148,7 +154,7 @@ func (k msgServer) depositForBurn( DestinationCaller: destinationCaller, } - resp, err := k.SendMessageWithCaller(sdk.WrapSDKContext(ctx), &message) + resp, err := k.SendMessageWithCaller(ctx, &message) if err != nil { return 0, err } diff --git a/x/cctp/keeper/msg_server_deposit_for_burn_test.go b/x/cctp/keeper/msg_server_deposit_for_burn_test.go index fd558db..5f32abe 100644 --- a/x/cctp/keeper/msg_server_deposit_for_burn_test.go +++ b/x/cctp/keeper/msg_server_deposit_for_burn_test.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper_test import ( @@ -23,8 +24,6 @@ import ( "github.com/circlefin/noble-cctp/testutil/sample" "github.com/circlefin/noble-cctp/x/cctp/keeper" "github.com/circlefin/noble-cctp/x/cctp/types" - fiattokenfactorytypes "github.com/circlefin/noble-fiattokenfactory/x/fiattokenfactory/types" - sdk "github.com/cosmos/cosmos-sdk/types" "github.com/ethereum/go-ethereum/common" "github.com/stretchr/testify/require" ) @@ -40,11 +39,11 @@ import ( * Burning and Minting is paused * Amount is greater than per message burn limit * Burn fails +* Invalid from address */ func TestDepositForBurnHappyPath(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) - fiatfkeeper, fiatfctx := keepertest.FiatTokenfactoryKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) startingNonce := types.Nonce{Nonce: 1} @@ -56,8 +55,6 @@ func TestDepositForBurnHappyPath(t *testing.T) { } testkeeper.SetRemoteTokenMessenger(ctx, remoteTokenMessenger) - fiatfkeeper.SetMintingDenom(fiatfctx, fiattokenfactorytypes.MintingDenom{Denom: "uUsDC"}) - perMessageBurnLimit := types.PerMessageBurnLimit{ Denom: "uusdc", Amount: math.NewInt(800000), @@ -71,7 +68,7 @@ func TestDepositForBurnHappyPath(t *testing.T) { MintRecipient: []byte("12345678901234567890123456789012"), BurnToken: "uUsDC", } - resp, err := server.DepositForBurn(sdk.WrapSDKContext(ctx), &msg) + resp, err := server.DepositForBurn(ctx, &msg) require.Nil(t, err) require.Equal(t, startingNonce.Nonce, resp.Nonce) @@ -81,89 +78,89 @@ func TestDepositForBurnHappyPath(t *testing.T) { } func TestDepositForBurnZeroAmount(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) msg := types.MsgDepositForBurn{ - From: "sender-address567890123456789012", + From: sample.AccAddress(), Amount: math.NewInt(0), DestinationDomain: 0, MintRecipient: []byte("12345678901234567890123456789012"), BurnToken: "uUsDC", } - _, err := server.DepositForBurn(sdk.WrapSDKContext(ctx), &msg) + _, err := server.DepositForBurn(ctx, &msg) require.ErrorIs(t, types.ErrDepositForBurn, err) require.Contains(t, err.Error(), "amount must be positive") } func TestDepositForBurnNegativeAmount(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) msg := types.MsgDepositForBurn{ - From: "sender-address567890123456789012", + From: sample.AccAddress(), Amount: math.NewInt(-59), DestinationDomain: 0, MintRecipient: []byte("12345678901234567890123456789012"), BurnToken: "uUsDC", } - _, err := server.DepositForBurn(sdk.WrapSDKContext(ctx), &msg) + _, err := server.DepositForBurn(ctx, &msg) require.ErrorIs(t, types.ErrDepositForBurn, err) require.Contains(t, err.Error(), "amount must be positive") } func TestDepositForBurnEmptyMintRecipient(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) msg := types.MsgDepositForBurn{ - From: "sender-address567890123456789012", + From: sample.AccAddress(), Amount: math.NewInt(531), DestinationDomain: 0, MintRecipient: make([]byte, types.MintRecipientLen), BurnToken: "uUsDC", } - _, err := server.DepositForBurn(sdk.WrapSDKContext(ctx), &msg) + _, err := server.DepositForBurn(ctx, &msg) require.ErrorIs(t, types.ErrDepositForBurn, err) require.Contains(t, err.Error(), "mint recipient must be nonzero") } func TestDepositForBurnNilMintRecipient(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) msg := types.MsgDepositForBurn{ - From: "sender-address567890123456789012", + From: sample.AccAddress(), Amount: math.NewInt(531), DestinationDomain: 0, BurnToken: "uUsDC", } - _, err := server.DepositForBurn(sdk.WrapSDKContext(ctx), &msg) + _, err := server.DepositForBurn(ctx, &msg) require.ErrorIs(t, types.ErrDepositForBurn, err) require.Contains(t, err.Error(), "mint recipient must be nonzero") } func TestDepositForBurnTokenMessengerNotFound(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) startingNonce := types.Nonce{Nonce: 1} testkeeper.SetNextAvailableNonce(ctx, startingNonce) msg := types.MsgDepositForBurn{ - From: "sender address", + From: sample.AccAddress(), Amount: math.NewInt(531), DestinationDomain: 0, MintRecipient: []byte("12345678901234567890123456789012"), BurnToken: "uusdc", } - _, err := server.DepositForBurn(sdk.WrapSDKContext(ctx), &msg) + _, err := server.DepositForBurn(ctx, &msg) require.ErrorIs(t, types.ErrDepositForBurn, err) require.Contains(t, err.Error(), "unable to look up destination token messenger") } func TestDepositForBurnMintingDenomNotFound(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) startingNonce := types.Nonce{Nonce: 1} @@ -176,20 +173,20 @@ func TestDepositForBurnMintingDenomNotFound(t *testing.T) { testkeeper.SetRemoteTokenMessenger(ctx, remoteTokenMessenger) msg := types.MsgDepositForBurn{ - From: "sender-address567890123456789012", + From: sample.AccAddress(), Amount: math.NewInt(531), DestinationDomain: 0, MintRecipient: []byte("12345678901234567890123456789012"), BurnToken: "not usdc", } - _, err := server.DepositForBurn(sdk.WrapSDKContext(ctx), &msg) + _, err := server.DepositForBurn(ctx, &msg) require.ErrorIs(t, types.ErrBurn, err) require.Contains(t, err.Error(), "is not supported") } func TestDepositForBurnBurningAndMintingIsPaused(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) startingNonce := types.Nonce{Nonce: 1} @@ -204,20 +201,20 @@ func TestDepositForBurnBurningAndMintingIsPaused(t *testing.T) { testkeeper.SetBurningAndMintingPaused(ctx, types.BurningAndMintingPaused{Paused: true}) msg := types.MsgDepositForBurn{ - From: "sender-address567890123456789012", + From: sample.AccAddress(), Amount: math.NewInt(531), DestinationDomain: 0, MintRecipient: []byte("12345678901234567890123456789012"), BurnToken: "uusdc", } - _, err := server.DepositForBurn(sdk.WrapSDKContext(ctx), &msg) + _, err := server.DepositForBurn(ctx, &msg) require.ErrorIs(t, types.ErrBurn, err) require.Contains(t, err.Error(), "burning and minting are paused") } func TestDepositForBurnAmountIsGreaterThanPerMessageBurnLimit(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) startingNonce := types.Nonce{Nonce: 1} @@ -236,22 +233,20 @@ func TestDepositForBurnAmountIsGreaterThanPerMessageBurnLimit(t *testing.T) { testkeeper.SetPerMessageBurnLimit(ctx, perMessageBurnLimit) msg := types.MsgDepositForBurn{ - From: "sender-address567890123456789012", + From: sample.AccAddress(), Amount: math.NewInt(531), DestinationDomain: 0, MintRecipient: []byte("12345678901234567890123456789012"), BurnToken: "uusdc", } - _, err := server.DepositForBurn(sdk.WrapSDKContext(ctx), &msg) + _, err := server.DepositForBurn(ctx, &msg) require.ErrorIs(t, types.ErrBurn, err) require.Contains(t, err.Error(), "cannot burn more than the maximum per message burn limit") } func TestDepositForBurnBurnFails(t *testing.T) { - testkeeper, ctx := keepertest.ErrCctpKeeper(t) - fiattfkeeper, fiattfctx := keepertest.ErrFiatTokenfactoryKeeper(t) - + testkeeper, ctx := keepertest.CctpKeeperWithErrFTF() server := keeper.NewMsgServerImpl(testkeeper) startingNonce := types.Nonce{Nonce: 1} @@ -262,7 +257,6 @@ func TestDepositForBurnBurnFails(t *testing.T) { Address: tokenMessenger, } testkeeper.SetRemoteTokenMessenger(ctx, remoteTokenMessenger) - fiattfkeeper.SetMintingDenom(fiattfctx, fiattokenfactorytypes.MintingDenom{Denom: "uUsDC"}) perMessageBurnLimit := types.PerMessageBurnLimit{ Denom: "uusdc", @@ -277,12 +271,12 @@ func TestDepositForBurnBurnFails(t *testing.T) { MintRecipient: []byte("12345678901234567890123456789012"), BurnToken: "uUsDC", } - _, err := server.DepositForBurn(sdk.WrapSDKContext(ctx), &msg) + _, err := server.DepositForBurn(ctx, &msg) require.Contains(t, err.Error(), "tokens can not be burned") } func TestDepositForBurnTransferFails(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeperWithErrBank(t) + testkeeper, ctx := keepertest.CctpKeeperWithErrBank() server := keeper.NewMsgServerImpl(testkeeper) remoteTokenMessenger := types.RemoteTokenMessenger{ @@ -305,14 +299,12 @@ func TestDepositForBurnTransferFails(t *testing.T) { BurnToken: "uusdc", } - _, err := server.DepositForBurn(sdk.WrapSDKContext(ctx), &msg) + _, err := server.DepositForBurn(ctx, &msg) require.ErrorContains(t, err, "error during transfer: intentional error") } func TestDepositForBurnMessageFormatFails(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) - fiatfkeeper, fiatfctx := keepertest.FiatTokenfactoryKeeper(t) - + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) startingNonce := types.Nonce{Nonce: 1} @@ -323,7 +315,6 @@ func TestDepositForBurnMessageFormatFails(t *testing.T) { Address: tokenMessenger, } testkeeper.SetRemoteTokenMessenger(ctx, remoteTokenMessenger) - fiatfkeeper.SetMintingDenom(fiatfctx, fiattokenfactorytypes.MintingDenom{Denom: "uUsDC"}) perMessageBurnLimit := types.PerMessageBurnLimit{ Denom: "uusdc", @@ -339,14 +330,12 @@ func TestDepositForBurnMessageFormatFails(t *testing.T) { BurnToken: "uUsDC", } - _, err := server.DepositForBurn(sdk.WrapSDKContext(ctx), &msg) + _, err := server.DepositForBurn(ctx, &msg) require.ErrorIs(t, err, types.ErrParsingBurnMessage) } func TestDepositForBurnSendMessageFails(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) - fiatfkeeper, fiatfctx := keepertest.FiatTokenfactoryKeeper(t) - + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) startingNonce := types.Nonce{Nonce: 1} @@ -358,8 +347,6 @@ func TestDepositForBurnSendMessageFails(t *testing.T) { } testkeeper.SetRemoteTokenMessenger(ctx, remoteTokenMessenger) - fiatfkeeper.SetMintingDenom(fiatfctx, fiattokenfactorytypes.MintingDenom{Denom: "uUsDC"}) - perMessageBurnLimit := types.PerMessageBurnLimit{ Denom: "uusdc", Amount: math.NewInt(800000), @@ -376,6 +363,37 @@ func TestDepositForBurnSendMessageFails(t *testing.T) { BurnToken: "uUsDC", } - _, err := server.DepositForBurn(sdk.WrapSDKContext(ctx), &msg) + _, err := server.DepositForBurn(ctx, &msg) require.ErrorIs(t, types.ErrSendMessage, err) } + +func TestDepositForBurnInvalidFromAddress(t *testing.T) { + testkeeper, ctx := keepertest.CctpKeeper() + server := keeper.NewMsgServerImpl(testkeeper) + + startingNonce := types.Nonce{Nonce: 1} + testkeeper.SetNextAvailableNonce(ctx, startingNonce) + + remoteTokenMessenger := types.RemoteTokenMessenger{ + DomainId: 0, + Address: tokenMessenger, + } + testkeeper.SetRemoteTokenMessenger(ctx, remoteTokenMessenger) + + perMessageBurnLimit := types.PerMessageBurnLimit{ + Denom: "uusdc", + Amount: math.NewInt(800000), + } + testkeeper.SetPerMessageBurnLimit(ctx, perMessageBurnLimit) + + msg := types.MsgDepositForBurn{ + From: "invalid from address", + Amount: math.NewInt(531), + DestinationDomain: 0, + MintRecipient: []byte("12345678901234567890123456789012"), + BurnToken: "uUsDC", + } + _, err := server.DepositForBurn(ctx, &msg) + require.ErrorIs(t, err, types.ErrInvalidAddress) + require.Contains(t, err.Error(), "invalid from address") +} diff --git a/x/cctp/keeper/msg_server_deposit_for_burn_with_caller.go b/x/cctp/keeper/msg_server_deposit_for_burn_with_caller.go index 110b231..22e3159 100644 --- a/x/cctp/keeper/msg_server_deposit_for_burn_with_caller.go +++ b/x/cctp/keeper/msg_server_deposit_for_burn_with_caller.go @@ -1,27 +1,28 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper import ( "bytes" "context" + "cosmossdk.io/errors" "github.com/circlefin/noble-cctp/x/cctp/types" sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" ) func (k msgServer) DepositForBurnWithCaller(goCtx context.Context, msg *types.MsgDepositForBurnWithCaller) (*types.MsgDepositForBurnWithCallerResponse, error) { @@ -30,7 +31,7 @@ func (k msgServer) DepositForBurnWithCaller(goCtx context.Context, msg *types.Ms // Destination caller must be nonzero. To allow any destination caller, use DepositForBurn(). emptyByteArr := make([]byte, types.DestinationCallerLen) if len(msg.DestinationCaller) == 0 || bytes.Equal(msg.DestinationCaller, emptyByteArr) { - return nil, sdkerrors.Wrap(types.ErrInvalidDestinationCaller, "invalid destination caller") + return nil, errors.Wrap(types.ErrInvalidDestinationCaller, "invalid destination caller") } nonce, err := k.depositForBurn( diff --git a/x/cctp/keeper/msg_server_deposit_for_burn_with_caller_test.go b/x/cctp/keeper/msg_server_deposit_for_burn_with_caller_test.go index bb2d2d3..9c1453f 100644 --- a/x/cctp/keeper/msg_server_deposit_for_burn_with_caller_test.go +++ b/x/cctp/keeper/msg_server_deposit_for_burn_with_caller_test.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper_test import ( @@ -23,14 +24,13 @@ import ( "github.com/circlefin/noble-cctp/testutil/sample" "github.com/circlefin/noble-cctp/x/cctp/keeper" "github.com/circlefin/noble-cctp/x/cctp/types" - fiattokenfactorytypes "github.com/circlefin/noble-fiattokenfactory/x/fiattokenfactory/types" - sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/require" ) /* * Happy path * Invalid destination caller +* Invalid from address * 0 amount * Negative amount * Nil mint recipient @@ -42,8 +42,7 @@ import ( */ func TestDepositForBurnWithCallerHappyPath(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) - fiatfkeeper, fiatfctx := keepertest.FiatTokenfactoryKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) startingNonce := types.Nonce{Nonce: 1} @@ -55,8 +54,6 @@ func TestDepositForBurnWithCallerHappyPath(t *testing.T) { } testkeeper.SetRemoteTokenMessenger(ctx, remoteTokenMessenger) - fiatfkeeper.SetMintingDenom(fiatfctx, fiattokenfactorytypes.MintingDenom{Denom: "uUsDC"}) - perMessageBurnLimit := types.PerMessageBurnLimit{ Denom: "uusdc", Amount: math.NewInt(800000), @@ -71,7 +68,7 @@ func TestDepositForBurnWithCallerHappyPath(t *testing.T) { BurnToken: "uUsDC", DestinationCaller: []byte("12345678901234567890123456789012"), } - resp, err := server.DepositForBurnWithCaller(sdk.WrapSDKContext(ctx), &msg) + resp, err := server.DepositForBurnWithCaller(ctx, &msg) require.Nil(t, err) require.Equal(t, startingNonce.Nonce, resp.Nonce) @@ -81,111 +78,127 @@ func TestDepositForBurnWithCallerHappyPath(t *testing.T) { } func TestDepositForBurnWithCallerInvalidDestinationCaller(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) msg := types.MsgDepositForBurnWithCaller{ - From: "sender-address567890123456789012", + From: sample.AccAddress(), Amount: math.NewInt(0), DestinationDomain: 0, MintRecipient: []byte("12345678901234567890123456789012"), BurnToken: "uUsDC", DestinationCaller: make([]byte, types.DestinationCallerLen), } - _, err := server.DepositForBurnWithCaller(sdk.WrapSDKContext(ctx), &msg) + _, err := server.DepositForBurnWithCaller(ctx, &msg) require.ErrorIs(t, types.ErrInvalidDestinationCaller, err) require.Contains(t, err.Error(), "invalid destination caller") } +func TestDepositForBurnWithCallerInvalidFromAddress(t *testing.T) { + testkeeper, ctx := keepertest.CctpKeeper() + server := keeper.NewMsgServerImpl(testkeeper) + + msg := types.MsgDepositForBurnWithCaller{ + From: "invalid from address", + Amount: math.NewInt(0), + DestinationDomain: 0, + MintRecipient: []byte("12345678901234567890123456789012"), + BurnToken: "uUsDC", + DestinationCaller: []byte("12345678901234567890123456789012"), + } + _, err := server.DepositForBurnWithCaller(ctx, &msg) + require.ErrorIs(t, err, types.ErrInvalidAddress) + require.Contains(t, err.Error(), "invalid from address") +} func TestDepositForBurnWithCallerZeroAmount(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) msg := types.MsgDepositForBurnWithCaller{ - From: "sender-address567890123456789012", + From: sample.AccAddress(), Amount: math.NewInt(0), DestinationDomain: 0, MintRecipient: []byte("12345678901234567890123456789012"), BurnToken: "uUsDC", DestinationCaller: []byte("12345678901234567890123456789012"), } - _, err := server.DepositForBurnWithCaller(sdk.WrapSDKContext(ctx), &msg) + _, err := server.DepositForBurnWithCaller(ctx, &msg) require.ErrorIs(t, types.ErrDepositForBurn, err) require.Contains(t, err.Error(), "amount must be positive") } func TestDepositForBurnWithCallerNegativeAmount(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) msg := types.MsgDepositForBurnWithCaller{ - From: "sender-address567890123456789012", + From: sample.AccAddress(), Amount: math.NewInt(-4738), DestinationDomain: 0, MintRecipient: []byte("12345678901234567890123456789012"), BurnToken: "uUsDC", DestinationCaller: []byte("12345678901234567890123456789012"), } - _, err := server.DepositForBurnWithCaller(sdk.WrapSDKContext(ctx), &msg) + _, err := server.DepositForBurnWithCaller(ctx, &msg) require.ErrorIs(t, types.ErrDepositForBurn, err) require.Contains(t, err.Error(), "amount must be positive") } func TestDepositForBurnWithCallerNilMintRecipient(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) msg := types.MsgDepositForBurnWithCaller{ - From: "sender-address567890123456789012", + From: sample.AccAddress(), Amount: math.NewInt(531), DestinationDomain: 0, MintRecipient: make([]byte, types.MintRecipientLen), BurnToken: "uUsDC", DestinationCaller: []byte("12345678901234567890123456789012"), } - _, err := server.DepositForBurnWithCaller(sdk.WrapSDKContext(ctx), &msg) + _, err := server.DepositForBurnWithCaller(ctx, &msg) require.ErrorIs(t, types.ErrDepositForBurn, err) require.Contains(t, err.Error(), "mint recipient must be nonzero") } func TestDepositForBurnWithCallerEmptyMintRecipient(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) msg := types.MsgDepositForBurnWithCaller{ - From: "sender-address567890123456789012", + From: sample.AccAddress(), Amount: math.NewInt(531), DestinationDomain: 0, BurnToken: "uUsDC", DestinationCaller: []byte("12345678901234567890123456789012"), } - _, err := server.DepositForBurnWithCaller(sdk.WrapSDKContext(ctx), &msg) + _, err := server.DepositForBurnWithCaller(ctx, &msg) require.ErrorIs(t, types.ErrDepositForBurn, err) require.Contains(t, err.Error(), "mint recipient must be nonzero") } func TestDepositForBurnWithCallerTokenMessengerNotFound(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) startingNonce := types.Nonce{Nonce: 1} testkeeper.SetNextAvailableNonce(ctx, startingNonce) msg := types.MsgDepositForBurnWithCaller{ - From: "sender address", + From: sample.AccAddress(), Amount: math.NewInt(531), DestinationDomain: 0, MintRecipient: []byte("12345678901234567890123456789012"), BurnToken: "uusdc", DestinationCaller: []byte("12345678901234567890123456789012"), } - _, err := server.DepositForBurnWithCaller(sdk.WrapSDKContext(ctx), &msg) + _, err := server.DepositForBurnWithCaller(ctx, &msg) require.ErrorIs(t, types.ErrDepositForBurn, err) require.Contains(t, err.Error(), "unable to look up destination token messenger") } func TestDepositForBurnWithCallerMintingDenomNotFound(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) startingNonce := types.Nonce{Nonce: 1} @@ -198,7 +211,7 @@ func TestDepositForBurnWithCallerMintingDenomNotFound(t *testing.T) { testkeeper.SetRemoteTokenMessenger(ctx, remoteTokenMessenger) msg := types.MsgDepositForBurnWithCaller{ - From: "sender-address567890123456789012", + From: sample.AccAddress(), Amount: math.NewInt(531), DestinationDomain: 0, MintRecipient: []byte("12345678901234567890123456789012"), @@ -206,13 +219,13 @@ func TestDepositForBurnWithCallerMintingDenomNotFound(t *testing.T) { DestinationCaller: []byte("12345678901234567890123456789012"), } - _, err := server.DepositForBurnWithCaller(sdk.WrapSDKContext(ctx), &msg) + _, err := server.DepositForBurnWithCaller(ctx, &msg) require.ErrorIs(t, types.ErrBurn, err) require.Contains(t, err.Error(), "is not supported") } func TestDepositForBurnWithCallerBurningAndMintingIsPaused(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) startingNonce := types.Nonce{Nonce: 1} @@ -227,7 +240,7 @@ func TestDepositForBurnWithCallerBurningAndMintingIsPaused(t *testing.T) { testkeeper.SetBurningAndMintingPaused(ctx, types.BurningAndMintingPaused{Paused: true}) msg := types.MsgDepositForBurnWithCaller{ - From: "sender-address567890123456789012", + From: sample.AccAddress(), Amount: math.NewInt(531), DestinationDomain: 0, MintRecipient: []byte("12345678901234567890123456789012"), @@ -235,13 +248,13 @@ func TestDepositForBurnWithCallerBurningAndMintingIsPaused(t *testing.T) { DestinationCaller: []byte("12345678901234567890123456789012"), } - _, err := server.DepositForBurnWithCaller(sdk.WrapSDKContext(ctx), &msg) + _, err := server.DepositForBurnWithCaller(ctx, &msg) require.ErrorIs(t, types.ErrBurn, err) require.Contains(t, err.Error(), "burning and minting are paused") } func TestDepositForBurnWithCallerAmountIsGreaterThanPerMessageBurnLimit(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) startingNonce := types.Nonce{Nonce: 1} @@ -260,7 +273,7 @@ func TestDepositForBurnWithCallerAmountIsGreaterThanPerMessageBurnLimit(t *testi testkeeper.SetPerMessageBurnLimit(ctx, perMessageBurnLimit) msg := types.MsgDepositForBurnWithCaller{ - From: "sender-address567890123456789012", + From: sample.AccAddress(), Amount: math.NewInt(531), DestinationDomain: 0, MintRecipient: []byte("12345678901234567890123456789012"), @@ -268,15 +281,13 @@ func TestDepositForBurnWithCallerAmountIsGreaterThanPerMessageBurnLimit(t *testi DestinationCaller: []byte("12345678901234567890123456789012"), } - _, err := server.DepositForBurnWithCaller(sdk.WrapSDKContext(ctx), &msg) + _, err := server.DepositForBurnWithCaller(ctx, &msg) require.ErrorIs(t, types.ErrBurn, err) require.Contains(t, err.Error(), "cannot burn more than the maximum per message burn limit") } func TestDepositForBurnWithCallerSendMessageFails(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) - fiatfkeeper, fiatfctx := keepertest.FiatTokenfactoryKeeper(t) - + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) startingNonce := types.Nonce{Nonce: 1} @@ -288,8 +299,6 @@ func TestDepositForBurnWithCallerSendMessageFails(t *testing.T) { } testkeeper.SetRemoteTokenMessenger(ctx, remoteTokenMessenger) - fiatfkeeper.SetMintingDenom(fiatfctx, fiattokenfactorytypes.MintingDenom{Denom: "uUsDC"}) - perMessageBurnLimit := types.PerMessageBurnLimit{ Denom: "uusdc", Amount: math.NewInt(800000), @@ -307,6 +316,6 @@ func TestDepositForBurnWithCallerSendMessageFails(t *testing.T) { DestinationCaller: []byte("12345678901234567890123456789012"), } - _, err := server.DepositForBurnWithCaller(sdk.WrapSDKContext(ctx), &msg) + _, err := server.DepositForBurnWithCaller(ctx, &msg) require.ErrorIs(t, types.ErrSendMessage, err) } diff --git a/x/cctp/keeper/msg_server_disable_attester.go b/x/cctp/keeper/msg_server_disable_attester.go index 71d6faf..78486fb 100644 --- a/x/cctp/keeper/msg_server_disable_attester.go +++ b/x/cctp/keeper/msg_server_disable_attester.go @@ -1,27 +1,29 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper import ( "context" - sdkerrors "cosmossdk.io/errors" + "cosmossdk.io/errors" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/circlefin/noble-cctp/x/cctp/types" + "github.com/ethereum/go-ethereum/common" ) func (k msgServer) DisableAttester(goCtx context.Context, msg *types.MsgDisableAttester) (*types.MsgDisableAttesterResponse, error) { @@ -29,28 +31,32 @@ func (k msgServer) DisableAttester(goCtx context.Context, msg *types.MsgDisableA attesterManager := k.GetAttesterManager(ctx) if attesterManager != msg.From { - return nil, sdkerrors.Wrapf(types.ErrUnauthorized, "this message sender cannot disable attesters") + return nil, errors.Wrapf(types.ErrUnauthorized, "this message sender cannot disable attesters") + } + + if len(common.FromHex(msg.Attester)) == 0 { + return nil, errors.Wrapf(types.ErrInvalidAddress, "invalid attester") } _, found := k.GetAttester(ctx, msg.Attester) if !found { - return nil, sdkerrors.Wrapf(types.ErrDisableAttester, "attester not found") + return nil, errors.Wrapf(types.ErrDisableAttester, "attester not found") } // disallow removing public key if there is only 1 active public key storedAttesters := k.GetAllAttesters(ctx) if len(storedAttesters) == 1 { - return nil, sdkerrors.Wrap(types.ErrDisableAttester, "cannot disable the last attester") + return nil, errors.Wrap(types.ErrDisableAttester, "cannot disable the last attester") } // disallow removing public key if it causes the n in m/n multisig to fall below m (threshold # of signers) signatureThreshold, found := k.GetSignatureThreshold(ctx) if !found { - return nil, sdkerrors.Wrapf(types.ErrDisableAttester, "signature threshold not set") + return nil, errors.Wrapf(types.ErrDisableAttester, "signature threshold not set") } if uint32(len(storedAttesters)) <= signatureThreshold.Amount { - return nil, sdkerrors.Wrap(types.ErrDisableAttester, "signature threshold is too low") + return nil, errors.Wrap(types.ErrDisableAttester, "signature threshold is too low") } k.DeleteAttester(ctx, msg.Attester) diff --git a/x/cctp/keeper/msg_server_disable_attester_test.go b/x/cctp/keeper/msg_server_disable_attester_test.go index b8dd179..a18211d 100644 --- a/x/cctp/keeper/msg_server_disable_attester_test.go +++ b/x/cctp/keeper/msg_server_disable_attester_test.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper_test import ( @@ -22,7 +23,6 @@ import ( "github.com/circlefin/noble-cctp/testutil/sample" "github.com/circlefin/noble-cctp/x/cctp/keeper" "github.com/circlefin/noble-cctp/x/cctp/types" - sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/require" ) @@ -30,26 +30,27 @@ import ( * Happy path * Authority not set * Invalid authority + * Invalid attester * Attester not found * Fails when only 1 attester is left * Fails when signature threshold not found * Fails when signature threshold is too low */ func TestDisableAttesterHappyPath(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) attesterManager := sample.AccAddress() testkeeper.SetAttesterManager(ctx, attesterManager) existing := types.Attester{ - Attester: "attester", + Attester: "1234", } existing2 := types.Attester{ - Attester: "attester2", + Attester: "5678", } existing3 := types.Attester{ - Attester: "attester3", + Attester: "9012", } testkeeper.SetAttester(ctx, existing) testkeeper.SetAttester(ctx, existing2) @@ -60,10 +61,10 @@ func TestDisableAttesterHappyPath(t *testing.T) { message := types.MsgDisableAttester{ From: attesterManager, - Attester: "attester", + Attester: "1234", } - _, err := server.DisableAttester(sdk.WrapSDKContext(ctx), &message) + _, err := server.DisableAttester(ctx, &message) require.Nil(t, err) _, found := testkeeper.GetAttester(ctx, message.Attester) @@ -71,48 +72,65 @@ func TestDisableAttesterHappyPath(t *testing.T) { } func TestDisableAttesterAuthorityNotSet(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) existing := types.Attester{ - Attester: "attester", + Attester: "1234", } testkeeper.SetAttester(ctx, existing) message := types.MsgDisableAttester{ From: sample.AccAddress(), - Attester: "attester", + Attester: "1234", } require.PanicsWithValue(t, "cctp attester manager not found in state", func() { - _, _ = server.DisableAttester(sdk.WrapSDKContext(ctx), &message) + _, _ = server.DisableAttester(ctx, &message) }) } func TestDisableAttesterInvalidAuthority(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) attesterManager := sample.AccAddress() testkeeper.SetAttesterManager(ctx, attesterManager) existing := types.Attester{ - Attester: "attester", + Attester: "1234", } testkeeper.SetAttester(ctx, existing) message := types.MsgDisableAttester{ From: sample.AccAddress(), - Attester: "attester", + Attester: "1234", } - _, err := server.DisableAttester(sdk.WrapSDKContext(ctx), &message) + _, err := server.DisableAttester(ctx, &message) require.ErrorIs(t, types.ErrUnauthorized, err) require.Contains(t, err.Error(), "this message sender cannot disable attesters") } +func TestDisableAttesterInvalidAttester(t *testing.T) { + testkeeper, ctx := keepertest.CctpKeeper() + server := keeper.NewMsgServerImpl(testkeeper) + + attesterManager := sample.AccAddress() + testkeeper.SetAttesterManager(ctx, attesterManager) + + message := types.MsgDisableAttester{ + From: attesterManager, + Attester: "", + } + + _, err := server.DisableAttester(ctx, &message) + require.ErrorIs(t, err, types.ErrInvalidAddress) + require.Contains(t, err.Error(), "invalid attester") +} + func TestDisableAttesterAttesterNotFound(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) attesterManager := sample.AccAddress() @@ -120,32 +138,32 @@ func TestDisableAttesterAttesterNotFound(t *testing.T) { message := types.MsgDisableAttester{ From: attesterManager, - Attester: "attester", + Attester: "1234", } - _, err := server.DisableAttester(sdk.WrapSDKContext(ctx), &message) + _, err := server.DisableAttester(ctx, &message) require.ErrorIs(t, types.ErrDisableAttester, err) require.Contains(t, err.Error(), "attester not found") } func TestDisableAttesterFailsWhenOnly1AttesterIsLeft(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) attesterManager := sample.AccAddress() testkeeper.SetAttesterManager(ctx, attesterManager) existing := types.Attester{ - Attester: "attester", + Attester: "1234", } testkeeper.SetAttester(ctx, existing) message := types.MsgDisableAttester{ From: attesterManager, - Attester: "attester", + Attester: "1234", } - _, err := server.DisableAttester(sdk.WrapSDKContext(ctx), &message) + _, err := server.DisableAttester(ctx, &message) require.ErrorIs(t, types.ErrDisableAttester, err) require.Contains(t, err.Error(), "cannot disable the last attester") @@ -154,43 +172,43 @@ func TestDisableAttesterFailsWhenOnly1AttesterIsLeft(t *testing.T) { } func TestDisableAttesterFailsWhenSignatureThresholdNotFound(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) attesterManager := sample.AccAddress() testkeeper.SetAttesterManager(ctx, attesterManager) existing := types.Attester{ - Attester: "attester", + Attester: "1234", } existing2 := types.Attester{ - Attester: "attester2", + Attester: "5678", } testkeeper.SetAttester(ctx, existing) testkeeper.SetAttester(ctx, existing2) message := types.MsgDisableAttester{ From: attesterManager, - Attester: "attester", + Attester: "1234", } - _, err := server.DisableAttester(sdk.WrapSDKContext(ctx), &message) + _, err := server.DisableAttester(ctx, &message) require.ErrorIs(t, types.ErrDisableAttester, err) require.Contains(t, err.Error(), "signature threshold not set") } func TestDisableAttesterFailsWhenSignatureThresholdIsTooLow(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) attesterManager := sample.AccAddress() testkeeper.SetAttesterManager(ctx, attesterManager) existing1 := types.Attester{ - Attester: "attester1", + Attester: "1234", } existing2 := types.Attester{ - Attester: "attester2", + Attester: "5678", } testkeeper.SetAttester(ctx, existing1) testkeeper.SetAttester(ctx, existing2) @@ -200,10 +218,10 @@ func TestDisableAttesterFailsWhenSignatureThresholdIsTooLow(t *testing.T) { message := types.MsgDisableAttester{ From: attesterManager, - Attester: "attester1", + Attester: "1234", } - _, err := server.DisableAttester(sdk.WrapSDKContext(ctx), &message) + _, err := server.DisableAttester(ctx, &message) require.ErrorIs(t, types.ErrDisableAttester, err) require.Contains(t, err.Error(), "signature threshold is too low") } diff --git a/x/cctp/keeper/msg_server_enable_attester.go b/x/cctp/keeper/msg_server_enable_attester.go index cb4afd4..423c061 100644 --- a/x/cctp/keeper/msg_server_enable_attester.go +++ b/x/cctp/keeper/msg_server_enable_attester.go @@ -1,25 +1,27 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper import ( "context" + "cosmossdk.io/errors" sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "github.com/ethereum/go-ethereum/common" "github.com/circlefin/noble-cctp/x/cctp/types" ) @@ -29,12 +31,16 @@ func (k msgServer) EnableAttester(goCtx context.Context, msg *types.MsgEnableAtt attesterManager := k.GetAttesterManager(ctx) if attesterManager != msg.From { - return nil, sdkerrors.Wrapf(types.ErrUnauthorized, "this message sender cannot enable attesters") + return nil, errors.Wrapf(types.ErrUnauthorized, "this message sender cannot enable attesters") + } + + if len(common.FromHex(msg.Attester)) == 0 { + return nil, errors.Wrapf(types.ErrInvalidAddress, "invalid attester") } _, found := k.GetAttester(ctx, msg.Attester) if found { - return nil, sdkerrors.Wrapf(types.ErrAttesterAlreadyFound, "this attester already exists in the store") + return nil, errors.Wrapf(types.ErrAttesterAlreadyFound, "this attester already exists in the store") } newAttester := types.Attester{ diff --git a/x/cctp/keeper/msg_server_enable_attester_test.go b/x/cctp/keeper/msg_server_enable_attester_test.go index ef1b415..26e97fa 100644 --- a/x/cctp/keeper/msg_server_enable_attester_test.go +++ b/x/cctp/keeper/msg_server_enable_attester_test.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper_test import ( @@ -22,7 +23,6 @@ import ( "github.com/circlefin/noble-cctp/testutil/sample" "github.com/circlefin/noble-cctp/x/cctp/keeper" "github.com/circlefin/noble-cctp/x/cctp/types" - sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/require" ) @@ -30,10 +30,11 @@ import ( * Happy path * Authority not set * Invalid authority + * Invalid attester * Attester already found */ func TestEnableAttesterHappyPath(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) attesterManager := sample.AccAddress() @@ -41,10 +42,10 @@ func TestEnableAttesterHappyPath(t *testing.T) { message := types.MsgEnableAttester{ From: attesterManager, - Attester: "attester", + Attester: "1234", } - _, err := server.EnableAttester(sdk.WrapSDKContext(ctx), &message) + _, err := server.EnableAttester(ctx, &message) require.Nil(t, err) actual, found := testkeeper.GetAttester(ctx, message.Attester) @@ -53,21 +54,21 @@ func TestEnableAttesterHappyPath(t *testing.T) { } func TestEnableAttesterAuthorityNotSet(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) message := types.MsgEnableAttester{ From: sample.AccAddress(), - Attester: "attester", + Attester: "1234", } require.PanicsWithValue(t, "cctp attester manager not found in state", func() { - _, _ = server.EnableAttester(sdk.WrapSDKContext(ctx), &message) + _, _ = server.EnableAttester(ctx, &message) }) } func TestEnableAttesterInvalidAuthority(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) attesterManager := sample.AccAddress() @@ -75,30 +76,47 @@ func TestEnableAttesterInvalidAuthority(t *testing.T) { message := types.MsgEnableAttester{ From: sample.AccAddress(), - Attester: "attester", + Attester: "1234", } - _, err := server.EnableAttester(sdk.WrapSDKContext(ctx), &message) + _, err := server.EnableAttester(ctx, &message) require.ErrorIs(t, types.ErrUnauthorized, err) require.Contains(t, err.Error(), "this message sender cannot enable attesters") } +func TestEnableAttesterInvalidAttester(t *testing.T) { + testkeeper, ctx := keepertest.CctpKeeper() + server := keeper.NewMsgServerImpl(testkeeper) + + attesterManager := sample.AccAddress() + testkeeper.SetAttesterManager(ctx, attesterManager) + + message := types.MsgEnableAttester{ + From: attesterManager, + Attester: "invalid attester", + } + + _, err := server.EnableAttester(ctx, &message) + require.ErrorIs(t, types.ErrInvalidAddress, err) + require.Contains(t, err.Error(), "invalid attester") +} + func TestEnableAttesterAttesterAlreadyFound(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) attesterManager := sample.AccAddress() testkeeper.SetAttesterManager(ctx, attesterManager) - existingAttester := types.Attester{Attester: "attester"} + existingAttester := types.Attester{Attester: "1234"} testkeeper.SetAttester(ctx, existingAttester) message := types.MsgEnableAttester{ From: attesterManager, - Attester: "attester", + Attester: existingAttester.Attester, } - _, err := server.EnableAttester(sdk.WrapSDKContext(ctx), &message) + _, err := server.EnableAttester(ctx, &message) require.ErrorIs(t, types.ErrAttesterAlreadyFound, err) require.Contains(t, err.Error(), "this attester already exists in the store") } diff --git a/x/cctp/keeper/msg_server_link_token_pair.go b/x/cctp/keeper/msg_server_link_token_pair.go index a9329ee..7106c4f 100644 --- a/x/cctp/keeper/msg_server_link_token_pair.go +++ b/x/cctp/keeper/msg_server_link_token_pair.go @@ -1,42 +1,49 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper import ( "context" "strings" + "cosmossdk.io/errors" sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/circlefin/noble-cctp/x/cctp/types" ) +var remoteTokenNumBytes int = 32 + func (k msgServer) LinkTokenPair(goCtx context.Context, msg *types.MsgLinkTokenPair) (*types.MsgLinkTokenPairResponse, error) { ctx := sdk.UnwrapSDKContext(goCtx) tokenController := k.GetTokenController(ctx) if tokenController != msg.From { - return nil, sdkerrors.Wrapf(types.ErrUnauthorized, "this message sender cannot link token pairs") + return nil, errors.Wrapf(types.ErrUnauthorized, "this message sender cannot link token pairs") + } + + if len(msg.RemoteToken) != remoteTokenNumBytes { + return nil, errors.Wrapf(types.ErrInvalidRemoteToken, "must be a byte%d array", remoteTokenNumBytes) } // check whether there already exists a mapping for this remote domain/token _, found := k.GetTokenPair(ctx, msg.RemoteDomain, msg.RemoteToken) if found { - return nil, sdkerrors.Wrapf( + return nil, errors.Wrapf( types.ErrTokenPairAlreadyFound, "Local token for this remote domain + remote token mapping already exists in store") } diff --git a/x/cctp/keeper/msg_server_link_token_pair_test.go b/x/cctp/keeper/msg_server_link_token_pair_test.go index 86c0534..188d2cc 100644 --- a/x/cctp/keeper/msg_server_link_token_pair_test.go +++ b/x/cctp/keeper/msg_server_link_token_pair_test.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper_test import ( @@ -22,7 +23,6 @@ import ( "github.com/circlefin/noble-cctp/testutil/sample" "github.com/circlefin/noble-cctp/x/cctp/keeper" "github.com/circlefin/noble-cctp/x/cctp/types" - sdk "github.com/cosmos/cosmos-sdk/types" "github.com/ethereum/go-ethereum/common" "github.com/stretchr/testify/require" ) @@ -35,12 +35,13 @@ func init() { /* * Happy path + * Invalid remote token * Authority not set * Invalid authority * Existing token pair found */ func TestLinkTokenPairHappyPath(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) tokenController := sample.AccAddress() @@ -53,7 +54,7 @@ func TestLinkTokenPairHappyPath(t *testing.T) { LocalToken: "uusdc", } - _, err := server.LinkTokenPair(sdk.WrapSDKContext(ctx), &message) + _, err := server.LinkTokenPair(ctx, &message) require.NoError(t, err) actual, found := testkeeper.GetTokenPair(ctx, message.RemoteDomain, message.RemoteToken) @@ -63,8 +64,26 @@ func TestLinkTokenPairHappyPath(t *testing.T) { require.Equal(t, message.LocalToken, actual.LocalToken) } +func TestLinkTokenPairInvalidRemoteToken(t *testing.T) { + testkeeper, ctx := keepertest.CctpKeeper() + server := keeper.NewMsgServerImpl(testkeeper) + + tokenController := sample.AccAddress() + testkeeper.SetTokenController(ctx, tokenController) + + message := types.MsgLinkTokenPair{ + From: tokenController, + RemoteDomain: 0, + RemoteToken: make([]byte, 5), + LocalToken: "uusdc", + } + + _, err := server.LinkTokenPair(ctx, &message) + require.ErrorIs(t, err, types.ErrInvalidRemoteToken) +} + func TestLinkTokenPairAuthorityNotSet(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) message := types.MsgLinkTokenPair{ @@ -75,12 +94,12 @@ func TestLinkTokenPairAuthorityNotSet(t *testing.T) { } require.PanicsWithValue(t, "cctp token controller not found in state", func() { - _, _ = server.LinkTokenPair(sdk.WrapSDKContext(ctx), &message) + _, _ = server.LinkTokenPair(ctx, &message) }) } func TestLinkTokenPairInvalidAuthority(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) tokenController := sample.AccAddress() @@ -93,12 +112,12 @@ func TestLinkTokenPairInvalidAuthority(t *testing.T) { LocalToken: "uusdc", } - _, err := server.LinkTokenPair(sdk.WrapSDKContext(ctx), &message) + _, err := server.LinkTokenPair(ctx, &message) require.ErrorIs(t, types.ErrUnauthorized, err) } func TestLinkTokenPairExistingTokenPairFound(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) tokenController := sample.AccAddress() @@ -119,6 +138,6 @@ func TestLinkTokenPairExistingTokenPairFound(t *testing.T) { LocalToken: existingTokenPair.LocalToken, } - _, err := server.LinkTokenPair(sdk.WrapSDKContext(ctx), &message) + _, err := server.LinkTokenPair(ctx, &message) require.ErrorIs(t, types.ErrTokenPairAlreadyFound, err) } diff --git a/x/cctp/keeper/msg_server_pause_burning_and_minting.go b/x/cctp/keeper/msg_server_pause_burning_and_minting.go index 9abed97..865aa23 100644 --- a/x/cctp/keeper/msg_server_pause_burning_and_minting.go +++ b/x/cctp/keeper/msg_server_pause_burning_and_minting.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper import ( diff --git a/x/cctp/keeper/msg_server_pause_burning_and_minting_test.go b/x/cctp/keeper/msg_server_pause_burning_and_minting_test.go index acc6ffe..036ec6e 100644 --- a/x/cctp/keeper/msg_server_pause_burning_and_minting_test.go +++ b/x/cctp/keeper/msg_server_pause_burning_and_minting_test.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper_test import ( @@ -22,7 +23,6 @@ import ( "github.com/circlefin/noble-cctp/testutil/sample" "github.com/circlefin/noble-cctp/x/cctp/keeper" "github.com/circlefin/noble-cctp/x/cctp/types" - sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/require" ) @@ -32,7 +32,7 @@ import ( * Invalid authority */ func TestPauseBurningAndMintingHappyPath(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) pauser := sample.AccAddress() @@ -41,7 +41,7 @@ func TestPauseBurningAndMintingHappyPath(t *testing.T) { message := types.MsgPauseBurningAndMinting{ From: pauser, } - _, err := server.PauseBurningAndMinting(sdk.WrapSDKContext(ctx), &message) + _, err := server.PauseBurningAndMinting(ctx, &message) require.Nil(t, err) actual, found := testkeeper.GetBurningAndMintingPaused(ctx) @@ -50,7 +50,7 @@ func TestPauseBurningAndMintingHappyPath(t *testing.T) { } func TestPauseBurningAndMintingAuthorityNotSet(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) message := types.MsgPauseBurningAndMinting{ @@ -58,12 +58,12 @@ func TestPauseBurningAndMintingAuthorityNotSet(t *testing.T) { } require.PanicsWithValue(t, "cctp pauser not found in state", func() { - _, _ = server.PauseBurningAndMinting(sdk.WrapSDKContext(ctx), &message) + _, _ = server.PauseBurningAndMinting(ctx, &message) }) } func TestPauseBurningAndMintingInvalidAuthority(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) pauser := sample.AccAddress() @@ -72,7 +72,7 @@ func TestPauseBurningAndMintingInvalidAuthority(t *testing.T) { message := types.MsgPauseBurningAndMinting{ From: "not the authority", } - _, err := server.PauseBurningAndMinting(sdk.WrapSDKContext(ctx), &message) + _, err := server.PauseBurningAndMinting(ctx, &message) require.ErrorIs(t, types.ErrUnauthorized, err) require.Contains(t, err.Error(), "this message sender cannot pause burning and minting") } diff --git a/x/cctp/keeper/msg_server_pause_sending_and_receiving_messages.go b/x/cctp/keeper/msg_server_pause_sending_and_receiving_messages.go index 8e9aed0..6acec94 100644 --- a/x/cctp/keeper/msg_server_pause_sending_and_receiving_messages.go +++ b/x/cctp/keeper/msg_server_pause_sending_and_receiving_messages.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper import ( diff --git a/x/cctp/keeper/msg_server_pause_sending_and_receiving_messages_test.go b/x/cctp/keeper/msg_server_pause_sending_and_receiving_messages_test.go index 97b653c..52a778a 100644 --- a/x/cctp/keeper/msg_server_pause_sending_and_receiving_messages_test.go +++ b/x/cctp/keeper/msg_server_pause_sending_and_receiving_messages_test.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper_test import ( @@ -22,7 +23,6 @@ import ( "github.com/circlefin/noble-cctp/testutil/sample" "github.com/circlefin/noble-cctp/x/cctp/keeper" "github.com/circlefin/noble-cctp/x/cctp/types" - sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/require" ) @@ -32,7 +32,7 @@ import ( * Invalid authority */ func TestPauseSendingAndReceivingMessagesHappyPath(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) pauser := sample.AccAddress() @@ -41,7 +41,7 @@ func TestPauseSendingAndReceivingMessagesHappyPath(t *testing.T) { message := types.MsgPauseSendingAndReceivingMessages{ From: pauser, } - _, err := server.PauseSendingAndReceivingMessages(sdk.WrapSDKContext(ctx), &message) + _, err := server.PauseSendingAndReceivingMessages(ctx, &message) require.Nil(t, err) actual, found := testkeeper.GetSendingAndReceivingMessagesPaused(ctx) @@ -50,7 +50,7 @@ func TestPauseSendingAndReceivingMessagesHappyPath(t *testing.T) { } func TestPauseSendingAndReceivingMessagesAuthorityNotSet(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) message := types.MsgPauseSendingAndReceivingMessages{ @@ -58,12 +58,12 @@ func TestPauseSendingAndReceivingMessagesAuthorityNotSet(t *testing.T) { } require.PanicsWithValue(t, "cctp pauser not found in state", func() { - _, _ = server.PauseSendingAndReceivingMessages(sdk.WrapSDKContext(ctx), &message) + _, _ = server.PauseSendingAndReceivingMessages(ctx, &message) }) } func TestPauseSendingAndReceivingMessagesInvalidAuthority(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) pauser := sample.AccAddress() @@ -72,7 +72,7 @@ func TestPauseSendingAndReceivingMessagesInvalidAuthority(t *testing.T) { message := types.MsgPauseSendingAndReceivingMessages{ From: "not the authority", } - _, err := server.PauseSendingAndReceivingMessages(sdk.WrapSDKContext(ctx), &message) + _, err := server.PauseSendingAndReceivingMessages(ctx, &message) require.ErrorIs(t, types.ErrUnauthorized, err) require.Contains(t, err.Error(), "this message sender cannot pause sending and receiving") } diff --git a/x/cctp/keeper/msg_server_receive_message.go b/x/cctp/keeper/msg_server_receive_message.go index b55a1c3..63822a2 100644 --- a/x/cctp/keeper/msg_server_receive_message.go +++ b/x/cctp/keeper/msg_server_receive_message.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper import ( @@ -20,7 +21,8 @@ import ( "context" "strings" - sdkerrors "cosmossdk.io/errors" + "cosmossdk.io/errors" + "cosmossdk.io/math" "github.com/circlefin/noble-cctp/x/cctp/types" fiattokenfactorytypes "github.com/circlefin/noble-fiattokenfactory/x/fiattokenfactory/types" sdk "github.com/cosmos/cosmos-sdk/types" @@ -39,22 +41,22 @@ func (k msgServer) ReceiveMessage(goCtx context.Context, msg *types.MsgReceiveMe sendingReceivingPaused, found := k.GetSendingAndReceivingMessagesPaused(ctx) if found && sendingReceivingPaused.Paused { - return nil, sdkerrors.Wrap(types.ErrReceiveMessage, "sending and receiving messages are paused") + return nil, errors.Wrap(types.ErrReceiveMessage, "sending and receiving messages are paused") } // Validate each signature in the attestation publicKeys := k.GetAllAttesters(ctx) if len(publicKeys) == 0 { - return nil, sdkerrors.Wrap(types.ErrReceiveMessage, "no attesters found") + return nil, errors.Wrap(types.ErrReceiveMessage, "no attesters found") } signatureThreshold, found := k.GetSignatureThreshold(ctx) if !found { - return nil, sdkerrors.Wrap(types.ErrReceiveMessage, "signature threshold not found") + return nil, errors.Wrap(types.ErrReceiveMessage, "signature threshold not found") } if err := VerifyAttestationSignatures(msg.Message, msg.Attestation, publicKeys, signatureThreshold.Amount); err != nil { - return nil, sdkerrors.Wrapf(types.ErrReceiveMessage, "unable to verify signatures: %s", err) + return nil, errors.Wrapf(types.ErrReceiveMessage, "unable to verify signatures: %s", err) } // parse message @@ -65,7 +67,7 @@ func (k msgServer) ReceiveMessage(goCtx context.Context, msg *types.MsgReceiveMe // validate domain if message.DestinationDomain != types.NobleDomainId { - return nil, sdkerrors.Wrapf(types.ErrReceiveMessage, "incorrect destination domain: %d", message.DestinationDomain) + return nil, errors.Wrapf(types.ErrReceiveMessage, "incorrect destination domain: %d", message.DestinationDomain) } // validate destination caller @@ -73,17 +75,17 @@ func (k msgServer) ReceiveMessage(goCtx context.Context, msg *types.MsgReceiveMe bech32Prefix := sdk.GetConfig().GetBech32AccountAddrPrefix() destinationCaller, err := bech32.ConvertAndEncode(bech32Prefix, message.DestinationCaller[12:]) if err != nil { - return nil, sdkerrors.Wrapf(types.ErrReceiveMessage, "unable to encode destination caller %s: %s", msg.From, err) + return nil, errors.Wrapf(types.ErrReceiveMessage, "unable to encode destination caller %s: %s", msg.From, err) } if destinationCaller != msg.From { - return nil, sdkerrors.Wrapf(types.ErrReceiveMessage, "incorrect destination caller: %s, sender: %s", destinationCaller, msg.From) + return nil, errors.Wrapf(types.ErrReceiveMessage, "incorrect destination caller: %s, sender: %s", destinationCaller, msg.From) } } // validate version if message.Version != types.NobleMessageVersion { - return nil, sdkerrors.Wrapf(types.ErrReceiveMessage, "incorrect message version. expected: %d, found: %d", types.NobleMessageVersion, message.Version) + return nil, errors.Wrapf(types.ErrReceiveMessage, "incorrect message version. expected: %d, found: %d", types.NobleMessageVersion, message.Version) } // validate nonce is available @@ -91,7 +93,7 @@ func (k msgServer) ReceiveMessage(goCtx context.Context, msg *types.MsgReceiveMe usedNonce := types.Nonce{SourceDomain: message.SourceDomain, Nonce: message.Nonce} found = k.GetUsedNonce(ctx, usedNonce) if found { - return nil, sdkerrors.Wrapf(types.ErrReceiveMessage, "nonce already used") + return nil, errors.Wrapf(types.ErrReceiveMessage, "nonce already used") } // mark nonce as used @@ -101,7 +103,7 @@ func (k msgServer) ReceiveMessage(goCtx context.Context, msg *types.MsgReceiveMe if bytes.Equal(message.Recipient, types.PaddedModuleAddress) { // then mint burningMintingPaused, found := k.GetBurningAndMintingPaused(ctx) if found && burningMintingPaused.Paused { - return nil, sdkerrors.Wrap(types.ErrReceiveMessage, "cctp burning and minting is paused") + return nil, errors.Wrap(types.ErrReceiveMessage, "cctp burning and minting is paused") } burnMessage, err := new(types.BurnMessage).Parse(message.MessageBody) @@ -110,28 +112,28 @@ func (k msgServer) ReceiveMessage(goCtx context.Context, msg *types.MsgReceiveMe } if burnMessage.Version != types.MessageBodyVersion { - return nil, sdkerrors.Wrap(types.ErrReceiveMessage, "invalid message body version") + return nil, errors.Wrap(types.ErrReceiveMessage, "invalid message body version") } // look up Noble mint token from corresponding source domain/token tokenPair, found := k.GetTokenPair(ctx, message.SourceDomain, burnMessage.BurnToken) if !found { - return nil, sdkerrors.Wrap(types.ErrReceiveMessage, "corresponding noble mint token not found") + return nil, errors.Wrap(types.ErrReceiveMessage, "corresponding noble mint token not found") } remoteTokenMessenger, found := k.GetRemoteTokenMessenger(ctx, message.SourceDomain) if !found { - return nil, sdkerrors.Wrapf(types.ErrReceiveMessage, "could not retrieve remote token messenger for domain %d", message.SourceDomain) + return nil, errors.Wrapf(types.ErrReceiveMessage, "could not retrieve remote token messenger for domain %d", message.SourceDomain) } if !bytes.Equal(message.Sender, remoteTokenMessenger.Address) { - return nil, sdkerrors.Wrap(types.ErrReceiveMessage, "message sender is not the remote token messenger") + return nil, errors.Wrap(types.ErrReceiveMessage, "message sender is not the remote token messenger") } // get mint recipient as noble address bech32Prefix := sdk.GetConfig().GetBech32AccountAddrPrefix() mintRecipient, err := sdk.Bech32ifyAddressBytes(bech32Prefix, burnMessage.MintRecipient[12:]) if err != nil { - return nil, sdkerrors.Wrapf(types.ErrReceiveMessage, "error bech32 encoding mint recipient address: %s", err) + return nil, errors.Wrapf(types.ErrReceiveMessage, "error bech32 encoding mint recipient address: %s", err) } msgMint := fiattokenfactorytypes.MsgMint{ @@ -139,12 +141,12 @@ func (k msgServer) ReceiveMessage(goCtx context.Context, msg *types.MsgReceiveMe Address: mintRecipient, Amount: sdk.Coin{ Denom: strings.ToLower(tokenPair.LocalToken), - Amount: sdk.NewIntFromBigInt(burnMessage.Amount.BigInt()), + Amount: math.NewIntFromBigInt(burnMessage.Amount.BigInt()), }, } _, err = k.fiattokenfactory.Mint(ctx, &msgMint) if err != nil { - return nil, sdkerrors.Wrapf(err, "error during minting: %s", err) + return nil, errors.Wrapf(err, "error during minting: %s", err) } mintEvent := types.MintAndWithdraw{ @@ -154,7 +156,7 @@ func (k msgServer) ReceiveMessage(goCtx context.Context, msg *types.MsgReceiveMe } err = ctx.EventManager().EmitTypedEvent(&mintEvent) if err != nil { - return nil, sdkerrors.Wrapf(err, "error emitting mint event: %s", err) + return nil, errors.Wrapf(err, "error emitting mint event: %s", err) } } diff --git a/x/cctp/keeper/msg_server_receive_message_test.go b/x/cctp/keeper/msg_server_receive_message_test.go index b05d3a8..0d00c95 100644 --- a/x/cctp/keeper/msg_server_receive_message_test.go +++ b/x/cctp/keeper/msg_server_receive_message_test.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper_test import ( @@ -46,7 +47,7 @@ import ( */ func TestReceiveMessageHappyPath(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) burnMessage := types.BurnMessage{ @@ -101,13 +102,13 @@ func TestReceiveMessageHappyPath(t *testing.T) { Attestation: attestation, } - resp, err := server.ReceiveMessage(sdk.WrapSDKContext(ctx), &msg) + resp, err := server.ReceiveMessage(ctx, &msg) require.Nil(t, err) require.True(t, resp.Success) } func TestReceiveMessageWithoutTokenMessenger(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) burnMessage := types.BurnMessage{ @@ -157,12 +158,12 @@ func TestReceiveMessageWithoutTokenMessenger(t *testing.T) { Attestation: attestation, } - _, err = server.ReceiveMessage(sdk.WrapSDKContext(ctx), &msg) + _, err = server.ReceiveMessage(ctx, &msg) require.ErrorContains(t, err, "could not retrieve remote token messenger") } func TestReceiveMessageInvalidTokenMessenger(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) burnMessage := types.BurnMessage{ @@ -217,12 +218,12 @@ func TestReceiveMessageInvalidTokenMessenger(t *testing.T) { Attestation: attestation, } - _, err = server.ReceiveMessage(sdk.WrapSDKContext(ctx), &msg) + _, err = server.ReceiveMessage(ctx, &msg) require.ErrorContains(t, err, "message sender is not the remote token messenger") } func TestReceiveMessageWithDestinationCallerHappyPath(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) burnMessage := types.BurnMessage{ @@ -279,26 +280,26 @@ func TestReceiveMessageWithDestinationCallerHappyPath(t *testing.T) { Attestation: attestation, } - resp, err := server.ReceiveMessage(sdk.WrapSDKContext(ctx), &msg) + resp, err := server.ReceiveMessage(ctx, &msg) require.Nil(t, err) require.True(t, resp.Success) } func TestReceiveMessageSendingAndReceivingMessagesPaused(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) paused := types.SendingAndReceivingMessagesPaused{Paused: true} testkeeper.SetSendingAndReceivingMessagesPaused(ctx, paused) - _, err := server.ReceiveMessage(sdk.WrapSDKContext(ctx), &types.MsgReceiveMessage{}) + _, err := server.ReceiveMessage(ctx, &types.MsgReceiveMessage{}) require.ErrorIs(t, types.ErrReceiveMessage, err) require.Contains(t, err.Error(), "sending and receiving messages are paused") } func TestReceiveMessageBurningAndMintingPaused(t *testing.T) { // Initialize Keeper - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) // Link Token Pair. @@ -350,7 +351,7 @@ func TestReceiveMessageBurningAndMintingPaused(t *testing.T) { testkeeper.SetBurningAndMintingPaused(ctx, paused) // Receive Message -- this should fail! - _, err = server.ReceiveMessage(sdk.WrapSDKContext(ctx), &types.MsgReceiveMessage{ + _, err = server.ReceiveMessage(ctx, &types.MsgReceiveMessage{ From: sample.AccAddress(), Message: messageBytes, Attestation: attestation, @@ -361,19 +362,19 @@ func TestReceiveMessageBurningAndMintingPaused(t *testing.T) { } func TestReceiveMessageNoAttestersFound(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) paused := types.SendingAndReceivingMessagesPaused{Paused: false} testkeeper.SetSendingAndReceivingMessagesPaused(ctx, paused) - _, err := server.ReceiveMessage(sdk.WrapSDKContext(ctx), &types.MsgReceiveMessage{}) + _, err := server.ReceiveMessage(ctx, &types.MsgReceiveMessage{}) require.ErrorIs(t, types.ErrReceiveMessage, err) require.Contains(t, err.Error(), "no attesters found") } func TestReceiveMessageSignatureThresholdNotFound(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) paused := types.SendingAndReceivingMessagesPaused{Paused: false} @@ -387,13 +388,13 @@ func TestReceiveMessageSignatureThresholdNotFound(t *testing.T) { testkeeper.SetAttester(ctx, attester) } - _, err := server.ReceiveMessage(sdk.WrapSDKContext(ctx), &types.MsgReceiveMessage{}) + _, err := server.ReceiveMessage(ctx, &types.MsgReceiveMessage{}) require.ErrorIs(t, types.ErrReceiveMessage, err) require.Contains(t, err.Error(), "signature threshold not found") } func TestReceiveMessageUnableToVerifySignatures(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) paused := types.SendingAndReceivingMessagesPaused{Paused: false} @@ -408,13 +409,13 @@ func TestReceiveMessageUnableToVerifySignatures(t *testing.T) { } testkeeper.SetSignatureThreshold(ctx, types.SignatureThreshold{Amount: signatureThreshold}) - _, err := server.ReceiveMessage(sdk.WrapSDKContext(ctx), &types.MsgReceiveMessage{}) + _, err := server.ReceiveMessage(ctx, &types.MsgReceiveMessage{}) require.ErrorIs(t, types.ErrReceiveMessage, err) require.Contains(t, err.Error(), "unable to verify signatures") } func TestReceiveMessageInvalidMessageLength(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) messageBytes := []byte("too short") @@ -435,13 +436,13 @@ func TestReceiveMessageInvalidMessageLength(t *testing.T) { Attestation: attestation, } - _, err := server.ReceiveMessage(sdk.WrapSDKContext(ctx), &msg) + _, err := server.ReceiveMessage(ctx, &msg) require.ErrorIs(t, types.ErrParsingMessage, err) require.Contains(t, err.Error(), "cctp message must be at least 116 bytes, got 9: error while parsing message into bytes") } func TestReceiveMessageIncorrectDestinationDomain(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) burnMessage := types.BurnMessage{ @@ -491,13 +492,13 @@ func TestReceiveMessageIncorrectDestinationDomain(t *testing.T) { Attestation: attestation, } - _, err = server.ReceiveMessage(sdk.WrapSDKContext(ctx), &msg) + _, err = server.ReceiveMessage(ctx, &msg) require.ErrorIs(t, types.ErrReceiveMessage, err) require.Contains(t, err.Error(), "incorrect destination domain") } func TestReceiveMessageIncorrectDestinationCaller(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) burnMessage := types.BurnMessage{ @@ -547,13 +548,13 @@ func TestReceiveMessageIncorrectDestinationCaller(t *testing.T) { Attestation: attestation, } - _, err = server.ReceiveMessage(sdk.WrapSDKContext(ctx), &msg) + _, err = server.ReceiveMessage(ctx, &msg) require.ErrorIs(t, types.ErrReceiveMessage, err) require.Contains(t, err.Error(), "incorrect destination caller") } func TestReceiveMessageInvalidMessageVersion(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) burnMessage := types.BurnMessage{ @@ -603,13 +604,13 @@ func TestReceiveMessageInvalidMessageVersion(t *testing.T) { Attestation: attestation, } - _, err = server.ReceiveMessage(sdk.WrapSDKContext(ctx), &msg) + _, err = server.ReceiveMessage(ctx, &msg) require.ErrorIs(t, types.ErrReceiveMessage, err) require.Contains(t, err.Error(), "incorrect message version") } func TestReceiveMessageNonceAlreadyUsed(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) burnMessage := types.BurnMessage{ @@ -665,13 +666,13 @@ func TestReceiveMessageNonceAlreadyUsed(t *testing.T) { Attestation: attestation, } - _, err = server.ReceiveMessage(sdk.WrapSDKContext(ctx), &msg) + _, err = server.ReceiveMessage(ctx, &msg) require.ErrorIs(t, types.ErrReceiveMessage, err) require.Contains(t, err.Error(), "nonce already used") } func TestReceiveMessageInvalidMessageBodyVersion(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) burnMessage := types.BurnMessage{ @@ -721,13 +722,13 @@ func TestReceiveMessageInvalidMessageBodyVersion(t *testing.T) { Attestation: attestation, } - _, err = server.ReceiveMessage(sdk.WrapSDKContext(ctx), &msg) + _, err = server.ReceiveMessage(ctx, &msg) require.ErrorIs(t, types.ErrReceiveMessage, err) require.Contains(t, err.Error(), "invalid message body version") } func TestReceiveMessageTokenPairNotFound(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) burnMessage := types.BurnMessage{ @@ -770,13 +771,13 @@ func TestReceiveMessageTokenPairNotFound(t *testing.T) { Attestation: attestation, } - _, err = server.ReceiveMessage(sdk.WrapSDKContext(ctx), &msg) + _, err = server.ReceiveMessage(ctx, &msg) require.ErrorIs(t, types.ErrReceiveMessage, err) require.Contains(t, err.Error(), "corresponding noble mint token not found") } func TestReceiveMessageInvalidMessageBody(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) burnMessage := types.BurnMessage{ @@ -826,12 +827,12 @@ func TestReceiveMessageInvalidMessageBody(t *testing.T) { Attestation: attestation, } - _, err = server.ReceiveMessage(sdk.WrapSDKContext(ctx), &msg) + _, err = server.ReceiveMessage(ctx, &msg) require.ErrorIs(t, err, types.ErrParsingBurnMessage) } func TestReceiveMessageMintingFails(t *testing.T) { - testkeeper, ctx := keepertest.ErrCctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeperWithErrFTF() server := keeper.NewMsgServerImpl(testkeeper) burnMessage := types.BurnMessage{ @@ -886,12 +887,12 @@ func TestReceiveMessageMintingFails(t *testing.T) { Attestation: attestation, } - _, err = server.ReceiveMessage(sdk.WrapSDKContext(ctx), &msg) + _, err = server.ReceiveMessage(ctx, &msg) require.Contains(t, err.Error(), "error calling mint") } func TestReceiveMessageInvalidPrefixForMintRecipient(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) burnMessage := types.BurnMessage{ @@ -951,7 +952,7 @@ func TestReceiveMessageInvalidPrefixForMintRecipient(t *testing.T) { resetPubPrefix := config.GetBech32AccountPubPrefix() config.SetBech32PrefixForAccount("", "") // Empty bech32 prefix - _, err = server.ReceiveMessage(sdk.WrapSDKContext(ctx), &msg) + _, err = server.ReceiveMessage(ctx, &msg) require.ErrorIs(t, err, types.ErrReceiveMessage) require.ErrorContains(t, err, "error bech32 encoding mint recipient address") diff --git a/x/cctp/keeper/msg_server_remove_remote_token_messenger.go b/x/cctp/keeper/msg_server_remove_remote_token_messenger.go index 201bcd1..c5f307b 100644 --- a/x/cctp/keeper/msg_server_remove_remote_token_messenger.go +++ b/x/cctp/keeper/msg_server_remove_remote_token_messenger.go @@ -1,26 +1,27 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper import ( "context" + "cosmossdk.io/errors" "github.com/circlefin/noble-cctp/x/cctp/types" sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" ) func (k msgServer) RemoveRemoteTokenMessenger(goCtx context.Context, msg *types.MsgRemoveRemoteTokenMessenger) (*types.MsgRemoveRemoteTokenMessengerResponse, error) { @@ -28,12 +29,12 @@ func (k msgServer) RemoveRemoteTokenMessenger(goCtx context.Context, msg *types. owner := k.GetOwner(ctx) if owner != msg.From { - return nil, sdkerrors.Wrapf(types.ErrUnauthorized, "this message sender cannot remove remote token messengers") + return nil, errors.Wrapf(types.ErrUnauthorized, "this message sender cannot remove remote token messengers") } existingRemoteTokenMessenger, found := k.GetRemoteTokenMessenger(ctx, msg.DomainId) if !found { - return nil, sdkerrors.Wrapf(types.ErrRemoteTokenMessengerNotFound, "no remote token messenger was found for this domain") + return nil, errors.Wrapf(types.ErrRemoteTokenMessengerNotFound, "no remote token messenger was found for this domain") } k.DeleteRemoteTokenMessenger(ctx, msg.DomainId) diff --git a/x/cctp/keeper/msg_server_remove_remote_token_messenger_test.go b/x/cctp/keeper/msg_server_remove_remote_token_messenger_test.go index 748ae55..9a08066 100644 --- a/x/cctp/keeper/msg_server_remove_remote_token_messenger_test.go +++ b/x/cctp/keeper/msg_server_remove_remote_token_messenger_test.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper_test import ( @@ -22,7 +23,6 @@ import ( "github.com/circlefin/noble-cctp/testutil/sample" "github.com/circlefin/noble-cctp/x/cctp/keeper" "github.com/circlefin/noble-cctp/x/cctp/types" - sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/require" ) @@ -34,7 +34,7 @@ import ( */ func TestRemoveRemoteTokenMessengerHappyPath(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) owner := sample.AccAddress() @@ -46,7 +46,7 @@ func TestRemoveRemoteTokenMessengerHappyPath(t *testing.T) { Address: tokenMessenger, } - _, err := server.AddRemoteTokenMessenger(sdk.WrapSDKContext(ctx), &addMessage) + _, err := server.AddRemoteTokenMessenger(ctx, &addMessage) require.Nil(t, err) removeMessage := types.MsgRemoveRemoteTokenMessenger{ @@ -54,7 +54,7 @@ func TestRemoveRemoteTokenMessengerHappyPath(t *testing.T) { DomainId: addMessage.DomainId, } - _, err = server.RemoveRemoteTokenMessenger(sdk.WrapSDKContext(ctx), &removeMessage) + _, err = server.RemoveRemoteTokenMessenger(ctx, &removeMessage) require.Nil(t, err) _, found := testkeeper.GetRemoteTokenMessenger(ctx, removeMessage.DomainId) @@ -62,7 +62,7 @@ func TestRemoveRemoteTokenMessengerHappyPath(t *testing.T) { } func TestRemoveRemoteTokenMessengerAuthorityNotSet(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) message := types.MsgRemoveRemoteTokenMessenger{ @@ -71,12 +71,12 @@ func TestRemoveRemoteTokenMessengerAuthorityNotSet(t *testing.T) { } require.PanicsWithValue(t, "cctp owner not found in state", func() { - _, _ = server.RemoveRemoteTokenMessenger(sdk.WrapSDKContext(ctx), &message) + _, _ = server.RemoveRemoteTokenMessenger(ctx, &message) }) } func TestRemoveRemoteTokenMessengerInvalidAuthority(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) owner := sample.AccAddress() @@ -87,13 +87,13 @@ func TestRemoveRemoteTokenMessengerInvalidAuthority(t *testing.T) { DomainId: 0, } - _, err := server.RemoveRemoteTokenMessenger(sdk.WrapSDKContext(ctx), &message) + _, err := server.RemoveRemoteTokenMessenger(ctx, &message) require.ErrorIs(t, types.ErrUnauthorized, err) require.Contains(t, err.Error(), "this message sender cannot remove remote token messengers") } func TestRemoveRemoteTokenMessengerTokenMessengerNotFound(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) owner := sample.AccAddress() @@ -104,7 +104,7 @@ func TestRemoveRemoteTokenMessengerTokenMessengerNotFound(t *testing.T) { DomainId: 0, } - _, err := server.RemoveRemoteTokenMessenger(sdk.WrapSDKContext(ctx), &message) + _, err := server.RemoveRemoteTokenMessenger(ctx, &message) require.ErrorIs(t, types.ErrRemoteTokenMessengerNotFound, err) require.Contains(t, err.Error(), "no remote token messenger was found for this domain") } diff --git a/x/cctp/keeper/msg_server_replace_deposit_for_burn.go b/x/cctp/keeper/msg_server_replace_deposit_for_burn.go index eea3e51..067242c 100644 --- a/x/cctp/keeper/msg_server_replace_deposit_for_burn.go +++ b/x/cctp/keeper/msg_server_replace_deposit_for_burn.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper import ( @@ -20,7 +21,7 @@ import ( "context" "encoding/hex" - sdkerrors "cosmossdk.io/errors" + "cosmossdk.io/errors" "github.com/circlefin/noble-cctp/x/cctp/types" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/ethereum/go-ethereum/crypto" @@ -31,7 +32,7 @@ func (k msgServer) ReplaceDepositForBurn(goCtx context.Context, msg *types.MsgRe paused, found := k.GetBurningAndMintingPaused(ctx) if found && paused.Paused { - return nil, sdkerrors.Wrap(types.ErrDepositForBurn, "burning and minting are paused") + return nil, errors.Wrap(types.ErrDepositForBurn, "burning and minting are paused") } // verify and parse original originalMessage @@ -48,16 +49,19 @@ func (k msgServer) ReplaceDepositForBurn(goCtx context.Context, msg *types.MsgRe // validate originalMessage sender is the same as this message sender messageSender := make([]byte, 32) - copy(messageSender[12:], sdk.MustAccAddressFromBech32(msg.From)) - + fromAccAddress, err := sdk.AccAddressFromBech32(msg.From) + if err != nil { + return nil, errors.Wrapf(types.ErrInvalidAddress, "invalid from address (%s)", err) + } + copy(messageSender[12:], fromAccAddress) if !bytes.Equal(messageSender, burnMessage.MessageSender) { - return nil, sdkerrors.Wrap(types.ErrDepositForBurn, "invalid sender for message") + return nil, errors.Wrap(types.ErrDepositForBurn, "invalid sender for message") } // validate new mint recipient emptyByteArr := make([]byte, types.MintRecipientLen) if bytes.Equal(emptyByteArr, msg.NewMintRecipient) { - return nil, sdkerrors.Wrap(types.ErrDepositForBurn, "mint recipient must be nonzero") + return nil, errors.Wrap(types.ErrDepositForBurn, "mint recipient must be nonzero") } newMessageBody := types.BurnMessage{ @@ -70,7 +74,7 @@ func (k msgServer) ReplaceDepositForBurn(goCtx context.Context, msg *types.MsgRe newMessageBodyBytes, err := newMessageBody.Bytes() if err != nil { - return nil, sdkerrors.Wrapf(types.ErrParsingBurnMessage, "error parsing burn message") + return nil, errors.Wrapf(types.ErrParsingBurnMessage, "error parsing burn message") } replaceMessage := types.MsgReplaceMessage{ @@ -82,7 +86,7 @@ func (k msgServer) ReplaceDepositForBurn(goCtx context.Context, msg *types.MsgRe } _, err = k.ReplaceMessage(goCtx, &replaceMessage) if err != nil { - return nil, sdkerrors.Wrap(err, "error calling replace message") + return nil, errors.Wrap(err, "error calling replace message") } event := types.DepositForBurn{ diff --git a/x/cctp/keeper/msg_server_replace_deposit_for_burn_test.go b/x/cctp/keeper/msg_server_replace_deposit_for_burn_test.go index 03c5f93..0242182 100644 --- a/x/cctp/keeper/msg_server_replace_deposit_for_burn_test.go +++ b/x/cctp/keeper/msg_server_replace_deposit_for_burn_test.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper_test import ( @@ -32,12 +33,13 @@ import ( * Fails when paused * Outer message too short * Burn message invalid length - * Invalid sender + * Invalid sender - invalid from address + * Invalid sender - from address does not match original message sender * Invalid new mint recipient */ func TestReplaceDepositForBurnHappyPath(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) paused := types.BurningAndMintingPaused{Paused: false} @@ -90,12 +92,12 @@ func TestReplaceDepositForBurnHappyPath(t *testing.T) { NewMintRecipient: []byte("new mint recipient90123456789012"), } - _, err = server.ReplaceDepositForBurn(sdk.WrapSDKContext(ctx), &msg) + _, err = server.ReplaceDepositForBurn(ctx, &msg) require.Nil(t, err) } func TestReplaceDepositForBurnFailsWhenPaused(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) paused := types.BurningAndMintingPaused{Paused: true} @@ -143,25 +145,25 @@ func TestReplaceDepositForBurnFailsWhenPaused(t *testing.T) { NewMintRecipient: []byte("new mint recipient90123456789012"), } - _, err = server.ReplaceDepositForBurn(sdk.WrapSDKContext(ctx), &msg) + _, err = server.ReplaceDepositForBurn(ctx, &msg) require.ErrorIs(t, types.ErrDepositForBurn, err) require.Contains(t, err.Error(), "burning and minting are paused") } func TestReplaceDepositForBurnOuterMessageTooShort(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) paused := types.BurningAndMintingPaused{Paused: false} testkeeper.SetBurningAndMintingPaused(ctx, paused) - _, err := server.ReplaceDepositForBurn(sdk.WrapSDKContext(ctx), &types.MsgReplaceDepositForBurn{}) + _, err := server.ReplaceDepositForBurn(ctx, &types.MsgReplaceDepositForBurn{}) require.ErrorIs(t, types.ErrParsingMessage, err) require.Contains(t, err.Error(), "cctp message must be at least 116 bytes, got 0: error while parsing message into bytes") } func TestReplaceDepositForBurnBurnMessageInvalidLength(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) paused := types.BurningAndMintingPaused{Paused: false} @@ -200,13 +202,72 @@ func TestReplaceDepositForBurnBurnMessageInvalidLength(t *testing.T) { NewMintRecipient: []byte("new mint recipient90123456789012"), } - _, err = server.ReplaceDepositForBurn(sdk.WrapSDKContext(ctx), &msg) + _, err = server.ReplaceDepositForBurn(ctx, &msg) require.ErrorIs(t, types.ErrParsingBurnMessage, err) require.Contains(t, err.Error(), "burn message must be 132 bytes") } -func TestReplaceDepositForBurnInvalidSender(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) +func TestReplaceDepositForBurnInvalidSenderAddress(t *testing.T) { + testkeeper, ctx := keepertest.CctpKeeper() + server := keeper.NewMsgServerImpl(testkeeper) + + paused := types.BurningAndMintingPaused{Paused: false} + testkeeper.SetBurningAndMintingPaused(ctx, paused) + + burnMessage := types.BurnMessage{ + Version: 1, + BurnToken: make([]byte, 32), + MintRecipient: make([]byte, 32), + Amount: math.NewInt(123456), + MessageSender: make([]byte, 32), + } + + burnMessageBytes, err := burnMessage.Bytes() + require.NoError(t, err) + + // we encode the message sender when sending messages, so we must use an encoded message in the original message + sender := sample.AccAddress() + senderEncoded := make([]byte, 32) + copy(senderEncoded[12:], sdk.MustAccAddressFromBech32(sender)) + + originalMessage := types.Message{ + Version: 1, + SourceDomain: 4, // Noble domain id + DestinationDomain: 3, + Nonce: 2, + Sender: senderEncoded, // different sender than the replaceMessage sender + Recipient: []byte("recipient01234567890123456789012"), + DestinationCaller: []byte("destination caller90123456789012"), + MessageBody: burnMessageBytes, + } + originalMessageBytes, err := originalMessage.Bytes() + require.NoError(t, err) + + // generate attestation, set attesters, signature threshold + signatureThreshold := uint32(2) + privKeys := generateNPrivateKeys(int(signatureThreshold)) + attesters := getAttestersFromPrivateKeys(privKeys) + originalAttestation := generateAttestation(originalMessageBytes, privKeys) + for _, attester := range attesters { + testkeeper.SetAttester(ctx, attester) + } + testkeeper.SetSignatureThreshold(ctx, types.SignatureThreshold{Amount: signatureThreshold}) + + msg := types.MsgReplaceDepositForBurn{ + From: "invalid sender", // invalid sender + OriginalMessage: originalMessageBytes, + OriginalAttestation: originalAttestation, + NewDestinationCaller: []byte("new destination caller3456789012"), + NewMintRecipient: []byte("new mint recipient90123456789012"), + } + + _, err = server.ReplaceDepositForBurn(ctx, &msg) + require.ErrorIs(t, types.ErrInvalidAddress, err) + require.Contains(t, err.Error(), "invalid from address") +} + +func TestReplaceDepositForBurnSenderDoesNotMatchOriginalSender(t *testing.T) { + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) paused := types.BurningAndMintingPaused{Paused: false} @@ -259,13 +320,13 @@ func TestReplaceDepositForBurnInvalidSender(t *testing.T) { NewMintRecipient: []byte("new mint recipient90123456789012"), } - _, err = server.ReplaceDepositForBurn(sdk.WrapSDKContext(ctx), &msg) + _, err = server.ReplaceDepositForBurn(ctx, &msg) require.ErrorIs(t, types.ErrDepositForBurn, err) require.Contains(t, err.Error(), "invalid sender for message") } func TestReplaceDepositForBurnEmptyNewMintRecipient(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) paused := types.SendingAndReceivingMessagesPaused{Paused: false} @@ -318,13 +379,13 @@ func TestReplaceDepositForBurnEmptyNewMintRecipient(t *testing.T) { NewMintRecipient: make([]byte, types.MintRecipientLen), } - _, err = server.ReplaceDepositForBurn(sdk.WrapSDKContext(ctx), &msg) + _, err = server.ReplaceDepositForBurn(ctx, &msg) require.ErrorIs(t, types.ErrDepositForBurn, err) require.Contains(t, err.Error(), "mint recipient must be nonzero") } func TestReplaceDepositForBurnInvalidNewMintRecipient(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) paused := types.SendingAndReceivingMessagesPaused{Paused: false} @@ -377,13 +438,13 @@ func TestReplaceDepositForBurnInvalidNewMintRecipient(t *testing.T) { NewMintRecipient: []byte("INVALID RECIPIENT"), } - _, err = server.ReplaceDepositForBurn(sdk.WrapSDKContext(ctx), &msg) + _, err = server.ReplaceDepositForBurn(ctx, &msg) require.ErrorIs(t, types.ErrParsingBurnMessage, err) require.Contains(t, err.Error(), "error parsing burn message") } func TestReplaceDepositForBurnIncorrectSourceID(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) paused := types.BurningAndMintingPaused{Paused: false} @@ -436,7 +497,7 @@ func TestReplaceDepositForBurnIncorrectSourceID(t *testing.T) { NewMintRecipient: []byte("new mint recipient90123456789012"), } - _, err = server.ReplaceDepositForBurn(sdk.WrapSDKContext(ctx), &msg) + _, err = server.ReplaceDepositForBurn(ctx, &msg) require.Error(t, err) require.Contains(t, err.Error(), "message not originally sent from this domain") } diff --git a/x/cctp/keeper/msg_server_replace_message.go b/x/cctp/keeper/msg_server_replace_message.go index a909cf5..409fd5e 100644 --- a/x/cctp/keeper/msg_server_replace_message.go +++ b/x/cctp/keeper/msg_server_replace_message.go @@ -1,25 +1,26 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper import ( "bytes" "context" - sdkerrors "cosmossdk.io/errors" + "cosmossdk.io/errors" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/circlefin/noble-cctp/x/cctp/types" @@ -30,7 +31,7 @@ func (k msgServer) ReplaceMessage(goCtx context.Context, msg *types.MsgReplaceMe paused, found := k.GetSendingAndReceivingMessagesPaused(ctx) if found && paused.Paused { - return nil, sdkerrors.Wrap(types.ErrReplaceMessage, "sending and receiving messages are paused") + return nil, errors.Wrap(types.ErrReplaceMessage, "sending and receiving messages are paused") } // Validate each signature in the attestation @@ -38,11 +39,11 @@ func (k msgServer) ReplaceMessage(goCtx context.Context, msg *types.MsgReplaceMe attesters := k.GetAllAttesters(ctx) signatureThreshold, found := k.GetSignatureThreshold(ctx) if !found { - return nil, sdkerrors.Wrap(types.ErrReplaceMessage, "signature threshold not found") + return nil, errors.Wrap(types.ErrReplaceMessage, "signature threshold not found") } if err := VerifyAttestationSignatures(msg.OriginalMessage, msg.OriginalAttestation, attesters, signatureThreshold.Amount); err != nil { - return nil, sdkerrors.Wrapf(types.ErrSignatureVerification, "unable to verify signatures") + return nil, errors.Wrapf(types.ErrSignatureVerification, "unable to verify signatures") } // validate message format @@ -53,15 +54,18 @@ func (k msgServer) ReplaceMessage(goCtx context.Context, msg *types.MsgReplaceMe // validate that the original message sender is the same as this message sender messageSender := make([]byte, 32) - copy(messageSender[12:], sdk.MustAccAddressFromBech32(msg.From)) - + fromAccAddress, err := sdk.AccAddressFromBech32(msg.From) + if err != nil { + return nil, errors.Wrapf(types.ErrInvalidAddress, "invalid from address (%s)", err) + } + copy(messageSender[12:], fromAccAddress) if !bytes.Equal(messageSender, originalMessage.Sender) { - return nil, sdkerrors.Wrap(types.ErrReplaceMessage, "sender not permitted to use nonce") + return nil, errors.Wrap(types.ErrReplaceMessage, "sender not permitted to use nonce") } // validate source domain if originalMessage.SourceDomain != types.NobleDomainId { - return nil, sdkerrors.Wrap(types.ErrReplaceMessage, "message not originally sent from this domain") + return nil, errors.Wrap(types.ErrReplaceMessage, "message not originally sent from this domain") } err = k.sendMessage( diff --git a/x/cctp/keeper/msg_server_replace_message_test.go b/x/cctp/keeper/msg_server_replace_message_test.go index 58166d4..746bfd3 100644 --- a/x/cctp/keeper/msg_server_replace_message_test.go +++ b/x/cctp/keeper/msg_server_replace_message_test.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper_test import ( @@ -33,12 +34,13 @@ import ( * Signature threshold not found * Signature verification failed * Message body too short - * Invalid sender + * Invalid sender - does not match original sender + * Invalid sender - invalid from address * Message not originally sent from this domain */ func TestReplaceMessageHappyPath(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) paused := types.SendingAndReceivingMessagesPaused{Paused: false} @@ -90,24 +92,24 @@ func TestReplaceMessageHappyPath(t *testing.T) { NewDestinationCaller: []byte("new destination caller3456789012"), } - _, err = server.ReplaceMessage(sdk.WrapSDKContext(ctx), &msg) + _, err = server.ReplaceMessage(ctx, &msg) require.Nil(t, err) } func TestReplaceMessageFailsWhenPaused(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) paused := types.SendingAndReceivingMessagesPaused{Paused: true} testkeeper.SetSendingAndReceivingMessagesPaused(ctx, paused) - _, err := server.ReplaceMessage(sdk.WrapSDKContext(ctx), &types.MsgReplaceMessage{}) + _, err := server.ReplaceMessage(ctx, &types.MsgReplaceMessage{}) require.ErrorIs(t, types.ErrReplaceMessage, err) require.Contains(t, err.Error(), "sending and receiving messages are paused") } func TestReplaceMessageSignatureThresholdNotFound(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) paused := types.SendingAndReceivingMessagesPaused{Paused: false} @@ -153,13 +155,13 @@ func TestReplaceMessageSignatureThresholdNotFound(t *testing.T) { NewDestinationCaller: []byte("new destination caller3456789012"), } - _, err = server.ReplaceMessage(sdk.WrapSDKContext(ctx), &msg) + _, err = server.ReplaceMessage(ctx, &msg) require.ErrorIs(t, types.ErrReplaceMessage, err) require.Contains(t, err.Error(), "signature threshold not found") } func TestReplaceMessageSignatureVerificationFailed(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) paused := types.SendingAndReceivingMessagesPaused{Paused: false} @@ -209,13 +211,13 @@ func TestReplaceMessageSignatureVerificationFailed(t *testing.T) { NewDestinationCaller: []byte("new destination caller3456789012"), } - _, err = server.ReplaceMessage(sdk.WrapSDKContext(ctx), &msg) + _, err = server.ReplaceMessage(ctx, &msg) require.ErrorIs(t, types.ErrSignatureVerification, err) require.Contains(t, err.Error(), "unable to verify signatures") } func TestReplaceMessageMessageBodyTooShort(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) paused := types.SendingAndReceivingMessagesPaused{Paused: false} @@ -264,13 +266,13 @@ func TestReplaceMessageMessageBodyTooShort(t *testing.T) { NewDestinationCaller: []byte("new destination caller3456789012"), } - _, err = server.ReplaceMessage(sdk.WrapSDKContext(ctx), &msg) + _, err = server.ReplaceMessage(ctx, &msg) require.ErrorIs(t, types.ErrParsingMessage, err) require.Contains(t, err.Error(), "cctp message must be at least 116 bytes, got 115: error while parsing message into bytes") } -func TestReplaceMessageInvalidSender(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) +func TestReplaceMessageSenderDoesNotMatchOriginalSender(t *testing.T) { + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) paused := types.SendingAndReceivingMessagesPaused{Paused: false} @@ -322,13 +324,71 @@ func TestReplaceMessageInvalidSender(t *testing.T) { NewDestinationCaller: []byte("new destination caller3456789012"), } - _, err = server.ReplaceMessage(sdk.WrapSDKContext(ctx), &msg) + _, err = server.ReplaceMessage(ctx, &msg) require.ErrorIs(t, types.ErrReplaceMessage, err) require.Contains(t, err.Error(), "sender not permitted to use nonce") } +func TestReplaceMessageInvalidFromAddress(t *testing.T) { + testkeeper, ctx := keepertest.CctpKeeper() + server := keeper.NewMsgServerImpl(testkeeper) + + paused := types.SendingAndReceivingMessagesPaused{Paused: false} + testkeeper.SetSendingAndReceivingMessagesPaused(ctx, paused) + + burnMessage := types.BurnMessage{ + Version: 1, + BurnToken: make([]byte, 32), + MintRecipient: make([]byte, 32), + Amount: math.NewInt(123456), + MessageSender: make([]byte, 32), + } + + burnMessageBytes, err := burnMessage.Bytes() + require.Nil(t, err) + + // we encode the message sender when sending messages, so we must use an encoded message in the original message + sender := sample.AccAddress() + senderEncoded := make([]byte, 32) + copy(senderEncoded[12:], sdk.MustAccAddressFromBech32(sender)) + + originalMessage := types.Message{ + Version: 1, + SourceDomain: 4, // Noble domain id + DestinationDomain: 3, + Nonce: 2, + Sender: senderEncoded, + Recipient: []byte("recipient01234567890123456789012"), + DestinationCaller: []byte("destination caller90123456789012"), + MessageBody: burnMessageBytes, + } + originalMessageBytes, _ := originalMessage.Bytes() + + // generate attestation, set attesters, signature threshold + signatureThreshold := uint32(2) + privKeys := generateNPrivateKeys(int(signatureThreshold)) + attesters := getAttestersFromPrivateKeys(privKeys) + originalAttestation := generateAttestation(originalMessageBytes, privKeys) + for _, attester := range attesters { + testkeeper.SetAttester(ctx, attester) + } + testkeeper.SetSignatureThreshold(ctx, types.SignatureThreshold{Amount: signatureThreshold}) + + msg := types.MsgReplaceMessage{ + From: "invalid sender", + OriginalMessage: originalMessageBytes, + OriginalAttestation: originalAttestation, + NewMessageBody: []byte("123"), + NewDestinationCaller: []byte("new destination caller3456789012"), + } + + _, err = server.ReplaceMessage(ctx, &msg) + require.ErrorIs(t, err, types.ErrInvalidAddress) + require.Contains(t, err.Error(), "invalid from address") +} + func TestReplaceMessageMessageNotOriginallySentFromThisDomain(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) paused := types.SendingAndReceivingMessagesPaused{Paused: false} @@ -380,7 +440,7 @@ func TestReplaceMessageMessageNotOriginallySentFromThisDomain(t *testing.T) { NewDestinationCaller: []byte("new destination caller3456789012"), } - _, err = server.ReplaceMessage(sdk.WrapSDKContext(ctx), &msg) + _, err = server.ReplaceMessage(ctx, &msg) require.ErrorIs(t, types.ErrReplaceMessage, err) require.Contains(t, err.Error(), "message not originally sent from this domain") } diff --git a/x/cctp/keeper/msg_server_send_message.go b/x/cctp/keeper/msg_server_send_message.go index 7899e51..df5267e 100644 --- a/x/cctp/keeper/msg_server_send_message.go +++ b/x/cctp/keeper/msg_server_send_message.go @@ -1,25 +1,26 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper import ( "bytes" "context" - sdkerrors "cosmossdk.io/errors" + "cosmossdk.io/errors" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/circlefin/noble-cctp/x/cctp/types" @@ -28,12 +29,16 @@ import ( func (k msgServer) SendMessage(goCtx context.Context, msg *types.MsgSendMessage) (*types.MsgSendMessageResponse, error) { ctx := sdk.UnwrapSDKContext(goCtx) - nonce := k.ReserveAndIncrementNonce(ctx) - messageSender := make([]byte, 32) - copy(messageSender[12:], sdk.MustAccAddressFromBech32(msg.From)) + fromAccAddress, err := sdk.AccAddressFromBech32(msg.From) + if err != nil { + return nil, errors.Wrapf(types.ErrInvalidAddress, "invalid from address (%s)", err) + } + copy(messageSender[12:], fromAccAddress) + + nonce := k.ReserveAndIncrementNonce(ctx) - err := k.sendMessage( + err = k.sendMessage( ctx, msg.DestinationDomain, msg.Recipient, @@ -56,18 +61,18 @@ func (k msgServer) sendMessage( ) error { paused, found := k.GetSendingAndReceivingMessagesPaused(ctx) if found && paused.Paused { - return sdkerrors.Wrap(types.ErrSendMessage, "sending and receiving messages is paused") + return errors.Wrap(types.ErrSendMessage, "sending and receiving messages is paused") } // check if message body is too long, ignore if max length not found max, found := k.GetMaxMessageBodySize(ctx) if found && uint64(len(messageBody)) > max.Amount { - return sdkerrors.Wrap(types.ErrSendMessage, "message body exceeds max size") + return errors.Wrap(types.ErrSendMessage, "message body exceeds max size") } emptyByteArr := make([]byte, len(recipient)) if len(recipient) == 0 || bytes.Equal(recipient, emptyByteArr) { - return sdkerrors.Wrap(types.ErrSendMessage, "recipient must not be nonzero") + return errors.Wrap(types.ErrSendMessage, "recipient must not be nonzero") } // serialize message diff --git a/x/cctp/keeper/msg_server_send_message_test.go b/x/cctp/keeper/msg_server_send_message_test.go index 336764e..6efe358 100644 --- a/x/cctp/keeper/msg_server_send_message_test.go +++ b/x/cctp/keeper/msg_server_send_message_test.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper_test import ( @@ -22,7 +23,6 @@ import ( "github.com/circlefin/noble-cctp/testutil/sample" "github.com/circlefin/noble-cctp/x/cctp/keeper" "github.com/circlefin/noble-cctp/x/cctp/types" - sdk "github.com/cosmos/cosmos-sdk/types" "github.com/ethereum/go-ethereum/common" "github.com/stretchr/testify/require" ) @@ -32,9 +32,10 @@ import ( * Sending and receiving messages is paused * Message body is too long * Recipient is empty + * Invalid from address */ func TestSendMessageHappyPath(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) paused := types.SendingAndReceivingMessagesPaused{Paused: false} @@ -52,7 +53,7 @@ func TestSendMessageHappyPath(t *testing.T) { MessageBody: []byte("It's not about money, it's about sending a message"), } - resp, err := server.SendMessage(sdk.WrapSDKContext(ctx), &msg) + resp, err := server.SendMessage(ctx, &msg) require.Nil(t, err) require.Equal(t, nonce.Nonce, resp.Nonce) @@ -62,13 +63,13 @@ func TestSendMessageHappyPath(t *testing.T) { } func TestSendMessageSendingAndReceivingMessagesPaused(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) paused := types.SendingAndReceivingMessagesPaused{Paused: true} testkeeper.SetSendingAndReceivingMessagesPaused(ctx, paused) - _, err := server.SendMessage(sdk.WrapSDKContext(ctx), &types.MsgSendMessage{ + _, err := server.SendMessage(ctx, &types.MsgSendMessage{ From: sample.AccAddress(), }) require.ErrorIs(t, types.ErrSendMessage, err) @@ -76,7 +77,7 @@ func TestSendMessageSendingAndReceivingMessagesPaused(t *testing.T) { } func TestSendMessageMessageBodyTooLong(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) paused := types.SendingAndReceivingMessagesPaused{Paused: false} @@ -97,13 +98,13 @@ func TestSendMessageMessageBodyTooLong(t *testing.T) { MessageBody: []byte("It's not about money, it's about sending a message"), } - _, err := server.SendMessage(sdk.WrapSDKContext(ctx), &msg) + _, err := server.SendMessage(ctx, &msg) require.ErrorIs(t, types.ErrSendMessage, err) require.Contains(t, err.Error(), "message body exceeds max size") } func TestSendMessageRecipientEmpty(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) paused := types.SendingAndReceivingMessagesPaused{Paused: false} @@ -121,13 +122,13 @@ func TestSendMessageRecipientEmpty(t *testing.T) { MessageBody: []byte("It's not about money, it's about sending a message"), } - _, err := server.SendMessage(sdk.WrapSDKContext(ctx), &msg) + _, err := server.SendMessage(ctx, &msg) require.ErrorIs(t, types.ErrSendMessage, err) require.Contains(t, err.Error(), "recipient must not be nonzero") } func TestSendMessageRecipientInvalid(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) msg := types.MsgSendMessage{ @@ -135,6 +136,30 @@ func TestSendMessageRecipientInvalid(t *testing.T) { Recipient: common.FromHex("0xfCE4cE85e1F74C01e0ecccd8BbC4606f83D3FC90"), } - _, err := server.SendMessage(sdk.WrapSDKContext(ctx), &msg) + _, err := server.SendMessage(ctx, &msg) require.ErrorIs(t, err, types.ErrParsingMessage) } + +func TestSendMessageInvalidSenderAddress(t *testing.T) { + testkeeper, ctx := keepertest.CctpKeeper() + server := keeper.NewMsgServerImpl(testkeeper) + + paused := types.SendingAndReceivingMessagesPaused{Paused: false} + testkeeper.SetSendingAndReceivingMessagesPaused(ctx, paused) + + nonce := types.Nonce{ + Nonce: 5, + } + testkeeper.SetNextAvailableNonce(ctx, nonce) + + msg := types.MsgSendMessage{ + From: "invalid sender address", + DestinationDomain: 3, + Recipient: []byte("12345678901234567890123456789012"), + MessageBody: []byte("It's not about money, it's about sending a message"), + } + + _, err := server.SendMessage(ctx, &msg) + require.ErrorIs(t, err, types.ErrInvalidAddress) + require.Contains(t, err.Error(), "invalid from address") +} diff --git a/x/cctp/keeper/msg_server_send_message_with_caller.go b/x/cctp/keeper/msg_server_send_message_with_caller.go index 689f184..ab4fc9e 100644 --- a/x/cctp/keeper/msg_server_send_message_with_caller.go +++ b/x/cctp/keeper/msg_server_send_message_with_caller.go @@ -1,25 +1,26 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper import ( "bytes" "context" - sdkerrors "cosmossdk.io/errors" + "cosmossdk.io/errors" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/circlefin/noble-cctp/x/cctp/types" @@ -28,17 +29,21 @@ import ( func (k msgServer) SendMessageWithCaller(goCtx context.Context, msg *types.MsgSendMessageWithCaller) (*types.MsgSendMessageWithCallerResponse, error) { ctx := sdk.UnwrapSDKContext(goCtx) + messageSender := make([]byte, 32) + fromAccAddress, err := sdk.AccAddressFromBech32(msg.From) + if err != nil { + return nil, errors.Wrapf(types.ErrInvalidAddress, "invalid from address (%s)", err) + } + copy(messageSender[12:], fromAccAddress) + emptyByteArr := make([]byte, types.DestinationCallerLen) if len(msg.DestinationCaller) != types.DestinationCallerLen || bytes.Equal(msg.DestinationCaller, emptyByteArr) { - return nil, sdkerrors.Wrap(types.ErrSendMessage, "destination caller must be nonzero") + return nil, errors.Wrap(types.ErrSendMessage, "destination caller must be nonzero") } nonce := k.ReserveAndIncrementNonce(ctx) - messageSender := make([]byte, 32) - copy(messageSender[12:], sdk.MustAccAddressFromBech32(msg.From)) - - err := k.sendMessage( + err = k.sendMessage( ctx, msg.DestinationDomain, msg.Recipient, diff --git a/x/cctp/keeper/msg_server_send_message_with_caller_test.go b/x/cctp/keeper/msg_server_send_message_with_caller_test.go index f177ce7..9106c25 100644 --- a/x/cctp/keeper/msg_server_send_message_with_caller_test.go +++ b/x/cctp/keeper/msg_server_send_message_with_caller_test.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper_test import ( @@ -22,19 +23,19 @@ import ( "github.com/circlefin/noble-cctp/testutil/sample" "github.com/circlefin/noble-cctp/x/cctp/keeper" "github.com/circlefin/noble-cctp/x/cctp/types" - sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/require" ) /* * Happy path * Invalid destination caller + * Invalid from address * Sending and receiving messages is paused * Recipient is empty * Message body is too long */ func TestSendMessageWithCallerHappyPath(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) paused := types.SendingAndReceivingMessagesPaused{Paused: false} @@ -53,7 +54,7 @@ func TestSendMessageWithCallerHappyPath(t *testing.T) { DestinationCaller: []byte("12345678901234567890123456789012"), } - resp, err := server.SendMessageWithCaller(sdk.WrapSDKContext(ctx), &msg) + resp, err := server.SendMessageWithCaller(ctx, &msg) require.Nil(t, err) require.Equal(t, nonce.Nonce, resp.Nonce) @@ -63,7 +64,7 @@ func TestSendMessageWithCallerHappyPath(t *testing.T) { } func TestSendMessageWithCallerInvalidDestinationCaller(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) paused := types.SendingAndReceivingMessagesPaused{Paused: false} @@ -81,13 +82,37 @@ func TestSendMessageWithCallerInvalidDestinationCaller(t *testing.T) { MessageBody: []byte("It's not about money, it's about sending a message"), } - _, err := server.SendMessageWithCaller(sdk.WrapSDKContext(ctx), &msg) + _, err := server.SendMessageWithCaller(ctx, &msg) require.ErrorIs(t, types.ErrSendMessage, err) require.Contains(t, err.Error(), "destination caller must be nonzero") } +func TestSendMessageWithCallerInvalidFromAddress(t *testing.T) { + testkeeper, ctx := keepertest.CctpKeeper() + server := keeper.NewMsgServerImpl(testkeeper) + + paused := types.SendingAndReceivingMessagesPaused{Paused: false} + testkeeper.SetSendingAndReceivingMessagesPaused(ctx, paused) + + nonce := types.Nonce{ + Nonce: 5, + } + testkeeper.SetNextAvailableNonce(ctx, nonce) + + msg := types.MsgSendMessageWithCaller{ + From: "invalid sender address", + DestinationDomain: 3, + Recipient: []byte("12345678901234567890123456789012"), + MessageBody: []byte("It's not about money, it's about sending a message"), + } + + _, err := server.SendMessageWithCaller(ctx, &msg) + require.ErrorIs(t, err, types.ErrInvalidAddress) + require.Contains(t, err.Error(), "invalid from address") +} + func TestSendMessageWithCallerSendingAndReceivingMessagesPaused(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) paused := types.SendingAndReceivingMessagesPaused{Paused: true} @@ -101,13 +126,13 @@ func TestSendMessageWithCallerSendingAndReceivingMessagesPaused(t *testing.T) { DestinationCaller: []byte("12345678901234567890123456789012"), } - _, err := server.SendMessageWithCaller(sdk.WrapSDKContext(ctx), &msg) + _, err := server.SendMessageWithCaller(ctx, &msg) require.ErrorIs(t, types.ErrSendMessage, err) require.Contains(t, err.Error(), "sending and receiving messages is paused") } func TestSendMessageWithCallerRecipientEmpty(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) paused := types.SendingAndReceivingMessagesPaused{Paused: false} @@ -126,13 +151,13 @@ func TestSendMessageWithCallerRecipientEmpty(t *testing.T) { DestinationCaller: []byte("12345678901234567890123456789012"), } - _, err := server.SendMessageWithCaller(sdk.WrapSDKContext(ctx), &msg) + _, err := server.SendMessageWithCaller(ctx, &msg) require.ErrorIs(t, types.ErrSendMessage, err) require.Contains(t, err.Error(), "recipient must not be nonzero") } func TestSendMessageWithCallerMessageBodyTooLong(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) paused := types.SendingAndReceivingMessagesPaused{Paused: false} @@ -154,7 +179,7 @@ func TestSendMessageWithCallerMessageBodyTooLong(t *testing.T) { DestinationCaller: []byte("12345678901234567890123456789012"), } - _, err := server.SendMessageWithCaller(sdk.WrapSDKContext(ctx), &msg) + _, err := server.SendMessageWithCaller(ctx, &msg) require.ErrorIs(t, types.ErrSendMessage, err) require.Contains(t, err.Error(), "message body exceeds max size") } diff --git a/x/cctp/keeper/msg_server_set_max_burn_amount_per_message.go b/x/cctp/keeper/msg_server_set_max_burn_amount_per_message.go index 1834357..be68b2e 100644 --- a/x/cctp/keeper/msg_server_set_max_burn_amount_per_message.go +++ b/x/cctp/keeper/msg_server_set_max_burn_amount_per_message.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper import ( diff --git a/x/cctp/keeper/msg_server_set_max_burn_amount_per_message_test.go b/x/cctp/keeper/msg_server_set_max_burn_amount_per_message_test.go index ca52375..89c3f61 100644 --- a/x/cctp/keeper/msg_server_set_max_burn_amount_per_message_test.go +++ b/x/cctp/keeper/msg_server_set_max_burn_amount_per_message_test.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper_test import ( @@ -23,7 +24,6 @@ import ( "github.com/circlefin/noble-cctp/testutil/sample" "github.com/circlefin/noble-cctp/x/cctp/keeper" "github.com/circlefin/noble-cctp/x/cctp/types" - sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/require" ) @@ -34,7 +34,7 @@ import ( */ func TestSetMaxBurnAmountPerMessageHappyPath(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) tokenController := sample.AccAddress() @@ -46,7 +46,7 @@ func TestSetMaxBurnAmountPerMessageHappyPath(t *testing.T) { Amount: math.NewInt(123), } - _, err := server.SetMaxBurnAmountPerMessage(sdk.WrapSDKContext(ctx), &message) + _, err := server.SetMaxBurnAmountPerMessage(ctx, &message) require.Nil(t, err) actual, found := testkeeper.GetPerMessageBurnLimit(ctx, message.LocalToken) @@ -56,7 +56,7 @@ func TestSetMaxBurnAmountPerMessageHappyPath(t *testing.T) { } func TestSetMaxBurnAmountPerMessageAuthorityNotSet(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) message := types.MsgSetMaxBurnAmountPerMessage{ @@ -66,12 +66,12 @@ func TestSetMaxBurnAmountPerMessageAuthorityNotSet(t *testing.T) { } require.PanicsWithValue(t, "cctp token controller not found in state", func() { - _, _ = server.SetMaxBurnAmountPerMessage(sdk.WrapSDKContext(ctx), &message) + _, _ = server.SetMaxBurnAmountPerMessage(ctx, &message) }) } func TestSetMaxBurnAmountPerMessageInvalidAuthority(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) tokenController := sample.AccAddress() @@ -83,7 +83,7 @@ func TestSetMaxBurnAmountPerMessageInvalidAuthority(t *testing.T) { Amount: math.NewInt(123), } - _, err := server.SetMaxBurnAmountPerMessage(sdk.WrapSDKContext(ctx), &message) + _, err := server.SetMaxBurnAmountPerMessage(ctx, &message) require.ErrorIs(t, types.ErrUnauthorized, err) require.Contains(t, err.Error(), "this message sender cannot set the max burn amount per message") } diff --git a/x/cctp/keeper/msg_server_unlink_token_pair.go b/x/cctp/keeper/msg_server_unlink_token_pair.go index a1b827a..6de8f2a 100644 --- a/x/cctp/keeper/msg_server_unlink_token_pair.go +++ b/x/cctp/keeper/msg_server_unlink_token_pair.go @@ -1,25 +1,26 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper import ( "context" + "cosmossdk.io/errors" sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/circlefin/noble-cctp/x/cctp/types" ) @@ -29,12 +30,16 @@ func (k msgServer) UnlinkTokenPair(goCtx context.Context, msg *types.MsgUnlinkTo tokenController := k.GetTokenController(ctx) if tokenController != msg.From { - return nil, sdkerrors.Wrap(types.ErrUnauthorized, "this message sender cannot unlink token pairs") + return nil, errors.Wrap(types.ErrUnauthorized, "this message sender cannot unlink token pairs") + } + + if len(msg.RemoteToken) != remoteTokenNumBytes { + return nil, errors.Wrapf(types.ErrInvalidRemoteToken, "must be a byte%d array", remoteTokenNumBytes) } tokenPair, found := k.GetTokenPair(ctx, msg.RemoteDomain, msg.RemoteToken) if !found { - return nil, sdkerrors.Wrap(types.ErrTokenPairNotFound, "token pair doesn't exist in store") + return nil, errors.Wrap(types.ErrTokenPairNotFound, "token pair doesn't exist in store") } k.DeleteTokenPair(ctx, msg.RemoteDomain, tokenPair.RemoteToken) diff --git a/x/cctp/keeper/msg_server_unlink_token_pair_test.go b/x/cctp/keeper/msg_server_unlink_token_pair_test.go index ce5b51f..9251b0b 100644 --- a/x/cctp/keeper/msg_server_unlink_token_pair_test.go +++ b/x/cctp/keeper/msg_server_unlink_token_pair_test.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper_test import ( @@ -22,18 +23,18 @@ import ( "github.com/circlefin/noble-cctp/testutil/sample" "github.com/circlefin/noble-cctp/x/cctp/keeper" "github.com/circlefin/noble-cctp/x/cctp/types" - sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/require" ) /* * Happy path + * Invalid remote token * Authority not set * Invalid authority * Token pair not found */ func TestUnlinkTokenPairHappyPath(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) tokenController := sample.AccAddress() @@ -53,15 +54,40 @@ func TestUnlinkTokenPairHappyPath(t *testing.T) { LocalToken: tokenPair.LocalToken, } - _, err := server.UnlinkTokenPair(sdk.WrapSDKContext(ctx), &message) + _, err := server.UnlinkTokenPair(ctx, &message) require.Nil(t, err) _, found := testkeeper.GetTokenPair(ctx, message.RemoteDomain, message.RemoteToken) require.False(t, found) } +func TestUnlinkTokenPairInvalidRemoteToken(t *testing.T) { + testkeeper, ctx := keepertest.CctpKeeper() + server := keeper.NewMsgServerImpl(testkeeper) + + tokenController := sample.AccAddress() + testkeeper.SetTokenController(ctx, tokenController) + + tokenPair := types.TokenPair{ + RemoteDomain: 0, + RemoteToken: token, + LocalToken: "uusdc", + } + testkeeper.SetTokenPair(ctx, tokenPair) + + message := types.MsgUnlinkTokenPair{ + From: tokenController, + RemoteDomain: tokenPair.RemoteDomain, + RemoteToken: make([]byte, 5), + LocalToken: tokenPair.LocalToken, + } + + _, err := server.UnlinkTokenPair(ctx, &message) + require.ErrorIs(t, err, types.ErrInvalidRemoteToken) +} + func TestUnlinkTokenPairAuthorityNotSet(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) message := types.MsgUnlinkTokenPair{ @@ -72,12 +98,12 @@ func TestUnlinkTokenPairAuthorityNotSet(t *testing.T) { } require.PanicsWithValue(t, "cctp token controller not found in state", func() { - _, _ = server.UnlinkTokenPair(sdk.WrapSDKContext(ctx), &message) + _, _ = server.UnlinkTokenPair(ctx, &message) }) } func TestUnlinkTokenPairInvalidAuthority(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) tokenController := sample.AccAddress() @@ -90,13 +116,13 @@ func TestUnlinkTokenPairInvalidAuthority(t *testing.T) { LocalToken: "uusdc", } - _, err := server.UnlinkTokenPair(sdk.WrapSDKContext(ctx), &message) + _, err := server.UnlinkTokenPair(ctx, &message) require.ErrorIs(t, types.ErrUnauthorized, err) require.Contains(t, err.Error(), "this message sender cannot unlink token pairs") } func TestUnlinkTokenPairTokenPairNotFound(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) tokenController := sample.AccAddress() @@ -109,7 +135,7 @@ func TestUnlinkTokenPairTokenPairNotFound(t *testing.T) { LocalToken: "uusdc", } - _, err := server.UnlinkTokenPair(sdk.WrapSDKContext(ctx), &message) + _, err := server.UnlinkTokenPair(ctx, &message) require.ErrorIs(t, types.ErrTokenPairNotFound, err) require.Contains(t, err.Error(), "token pair doesn't exist in store") } diff --git a/x/cctp/keeper/msg_server_unpause_burning_and_minting.go b/x/cctp/keeper/msg_server_unpause_burning_and_minting.go index 8dd43a0..9f0ee06 100644 --- a/x/cctp/keeper/msg_server_unpause_burning_and_minting.go +++ b/x/cctp/keeper/msg_server_unpause_burning_and_minting.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper import ( diff --git a/x/cctp/keeper/msg_server_unpause_burning_and_minting_test.go b/x/cctp/keeper/msg_server_unpause_burning_and_minting_test.go index 4a3a8c5..57a02f4 100644 --- a/x/cctp/keeper/msg_server_unpause_burning_and_minting_test.go +++ b/x/cctp/keeper/msg_server_unpause_burning_and_minting_test.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper_test import ( @@ -22,7 +23,6 @@ import ( "github.com/circlefin/noble-cctp/testutil/sample" "github.com/circlefin/noble-cctp/x/cctp/keeper" "github.com/circlefin/noble-cctp/x/cctp/types" - sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/require" ) @@ -32,7 +32,7 @@ import ( * Invalid authority */ func TestUnpauseBurningAndMintingHappyPath(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) pauser := sample.AccAddress() @@ -41,7 +41,7 @@ func TestUnpauseBurningAndMintingHappyPath(t *testing.T) { message := types.MsgUnpauseBurningAndMinting{ From: pauser, } - _, err := server.UnpauseBurningAndMinting(sdk.WrapSDKContext(ctx), &message) + _, err := server.UnpauseBurningAndMinting(ctx, &message) require.Nil(t, err) actual, found := testkeeper.GetBurningAndMintingPaused(ctx) @@ -50,7 +50,7 @@ func TestUnpauseBurningAndMintingHappyPath(t *testing.T) { } func TestUnpauseBurningAndMintingAuthorityNotSet(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) message := types.MsgUnpauseBurningAndMinting{ @@ -58,12 +58,12 @@ func TestUnpauseBurningAndMintingAuthorityNotSet(t *testing.T) { } require.PanicsWithValue(t, "cctp pauser not found in state", func() { - _, _ = server.UnpauseBurningAndMinting(sdk.WrapSDKContext(ctx), &message) + _, _ = server.UnpauseBurningAndMinting(ctx, &message) }) } func TestUnpauseBurningAndMintingInvalidAuthority(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) pauser := sample.AccAddress() @@ -72,7 +72,7 @@ func TestUnpauseBurningAndMintingInvalidAuthority(t *testing.T) { message := types.MsgUnpauseBurningAndMinting{ From: "not the authority", } - _, err := server.UnpauseBurningAndMinting(sdk.WrapSDKContext(ctx), &message) + _, err := server.UnpauseBurningAndMinting(ctx, &message) require.ErrorIs(t, types.ErrUnauthorized, err) require.Contains(t, err.Error(), "this message sender cannot unpause burning and minting") } diff --git a/x/cctp/keeper/msg_server_unpause_sending_and_receiving_messages.go b/x/cctp/keeper/msg_server_unpause_sending_and_receiving_messages.go index 50de073..5e53eaf 100644 --- a/x/cctp/keeper/msg_server_unpause_sending_and_receiving_messages.go +++ b/x/cctp/keeper/msg_server_unpause_sending_and_receiving_messages.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper import ( diff --git a/x/cctp/keeper/msg_server_unpause_sending_and_receiving_messages_test.go b/x/cctp/keeper/msg_server_unpause_sending_and_receiving_messages_test.go index eb8b91e..0135333 100644 --- a/x/cctp/keeper/msg_server_unpause_sending_and_receiving_messages_test.go +++ b/x/cctp/keeper/msg_server_unpause_sending_and_receiving_messages_test.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper_test import ( @@ -22,7 +23,6 @@ import ( "github.com/circlefin/noble-cctp/testutil/sample" "github.com/circlefin/noble-cctp/x/cctp/keeper" "github.com/circlefin/noble-cctp/x/cctp/types" - sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/require" ) @@ -32,7 +32,7 @@ import ( * Invalid authority */ func TestUnpauseSendingAndReceivingMessagesHappyPath(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) pauser := sample.AccAddress() @@ -41,7 +41,7 @@ func TestUnpauseSendingAndReceivingMessagesHappyPath(t *testing.T) { message := types.MsgUnpauseSendingAndReceivingMessages{ From: pauser, } - _, err := server.UnpauseSendingAndReceivingMessages(sdk.WrapSDKContext(ctx), &message) + _, err := server.UnpauseSendingAndReceivingMessages(ctx, &message) require.Nil(t, err) actual, found := testkeeper.GetSendingAndReceivingMessagesPaused(ctx) @@ -50,7 +50,7 @@ func TestUnpauseSendingAndReceivingMessagesHappyPath(t *testing.T) { } func TestUnpauseSendingAndReceivingMessagesAuthorityNotSet(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) message := types.MsgUnpauseSendingAndReceivingMessages{ @@ -58,12 +58,12 @@ func TestUnpauseSendingAndReceivingMessagesAuthorityNotSet(t *testing.T) { } require.PanicsWithValue(t, "cctp pauser not found in state", func() { - _, _ = server.UnpauseSendingAndReceivingMessages(sdk.WrapSDKContext(ctx), &message) + _, _ = server.UnpauseSendingAndReceivingMessages(ctx, &message) }) } func TestUnpauseSendingAndReceivingMessagesInvalidAuthority(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) pauser := sample.AccAddress() @@ -72,7 +72,7 @@ func TestUnpauseSendingAndReceivingMessagesInvalidAuthority(t *testing.T) { message := types.MsgUnpauseSendingAndReceivingMessages{ From: "not the authority", } - _, err := server.UnpauseSendingAndReceivingMessages(sdk.WrapSDKContext(ctx), &message) + _, err := server.UnpauseSendingAndReceivingMessages(ctx, &message) require.ErrorIs(t, types.ErrUnauthorized, err) require.Contains(t, err.Error(), "this message sender cannot unpause sending and receiving messages") } diff --git a/x/cctp/keeper/msg_server_update_attester_manager.go b/x/cctp/keeper/msg_server_update_attester_manager.go index d8c2859..36621c2 100644 --- a/x/cctp/keeper/msg_server_update_attester_manager.go +++ b/x/cctp/keeper/msg_server_update_attester_manager.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper import ( @@ -20,7 +21,7 @@ import ( "github.com/circlefin/noble-cctp/x/cctp/types" - sdkerrors "cosmossdk.io/errors" + "cosmossdk.io/errors" sdk "github.com/cosmos/cosmos-sdk/types" ) @@ -29,7 +30,12 @@ func (k msgServer) UpdateAttesterManager(goCtx context.Context, msg *types.MsgUp currentOwner := k.GetOwner(ctx) if currentOwner != msg.From { - return nil, sdkerrors.Wrapf(types.ErrUnauthorized, "this message sender cannot update the attester manager") + return nil, errors.Wrapf(types.ErrUnauthorized, "this message sender cannot update the attester manager") + } + + _, err := sdk.AccAddressFromBech32(msg.NewAttesterManager) + if err != nil { + return nil, errors.Wrapf(types.ErrInvalidAddress, "invalid attester manager address (%s)", err) } currentAttesterManager := k.GetAttesterManager(ctx) @@ -39,7 +45,7 @@ func (k msgServer) UpdateAttesterManager(goCtx context.Context, msg *types.MsgUp PreviousAttesterManager: currentAttesterManager, NewAttesterManager: msg.NewAttesterManager, } - err := ctx.EventManager().EmitTypedEvent(&event) + err = ctx.EventManager().EmitTypedEvent(&event) return &types.MsgUpdateAttesterManagerResponse{}, err } diff --git a/x/cctp/keeper/msg_server_update_attester_manager_test.go b/x/cctp/keeper/msg_server_update_attester_manager_test.go index dcf279a..f493134 100644 --- a/x/cctp/keeper/msg_server_update_attester_manager_test.go +++ b/x/cctp/keeper/msg_server_update_attester_manager_test.go @@ -1,3 +1,19 @@ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper_test import ( @@ -7,7 +23,6 @@ import ( "github.com/circlefin/noble-cctp/testutil/sample" "github.com/circlefin/noble-cctp/x/cctp/keeper" "github.com/circlefin/noble-cctp/x/cctp/types" - sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/require" ) @@ -15,10 +30,11 @@ import ( * Happy path * Authority not set * Invalid authority + * Invalid attester manager address */ func TestUpdateAttesterManagerHappyPath(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) owner := sample.AccAddress() @@ -33,7 +49,7 @@ func TestUpdateAttesterManagerHappyPath(t *testing.T) { NewAttesterManager: newAttesterManager, } - _, err := server.UpdateAttesterManager(sdk.WrapSDKContext(ctx), &message) + _, err := server.UpdateAttesterManager(ctx, &message) require.Nil(t, err) actual := testkeeper.GetAttesterManager(ctx) @@ -41,7 +57,7 @@ func TestUpdateAttesterManagerHappyPath(t *testing.T) { } func TestUpdateAttesterManagerAuthorityIsNotSet(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) message := types.MsgUpdateAttesterManager{ @@ -49,12 +65,12 @@ func TestUpdateAttesterManagerAuthorityIsNotSet(t *testing.T) { NewAttesterManager: sample.AccAddress(), } require.Panicsf(t, func() { - _, _ = server.UpdateAttesterManager(sdk.WrapSDKContext(ctx), &message) + _, _ = server.UpdateAttesterManager(ctx, &message) }, "cctp owner not found in state") } func TestUpdateAttesterManagerInvalidAuthority(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) owner := sample.AccAddress() @@ -67,7 +83,26 @@ func TestUpdateAttesterManagerInvalidAuthority(t *testing.T) { NewAttesterManager: newAttesterManager, } - _, err := server.UpdateAttesterManager(sdk.WrapSDKContext(ctx), &message) + _, err := server.UpdateAttesterManager(ctx, &message) require.ErrorIs(t, types.ErrUnauthorized, err) require.Contains(t, err.Error(), "this message sender cannot update the attester manager") } + +func TestUpdateAttesterManagerInvalidAttesterManager(t *testing.T) { + testkeeper, ctx := keepertest.CctpKeeper() + server := keeper.NewMsgServerImpl(testkeeper) + + owner := sample.AccAddress() + testkeeper.SetOwner(ctx, owner) + attesterManager := sample.AccAddress() + testkeeper.SetAttesterManager(ctx, attesterManager) + + message := types.MsgUpdateAttesterManager{ + From: owner, + NewAttesterManager: "invalid attester manager", + } + + _, err := server.UpdateAttesterManager(ctx, &message) + require.ErrorIs(t, err, types.ErrInvalidAddress) + require.Contains(t, err.Error(), "invalid attester manager address") +} diff --git a/x/cctp/keeper/msg_server_update_max_message_body_size.go b/x/cctp/keeper/msg_server_update_max_message_body_size.go index 280696d..4838cf1 100644 --- a/x/cctp/keeper/msg_server_update_max_message_body_size.go +++ b/x/cctp/keeper/msg_server_update_max_message_body_size.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper import ( diff --git a/x/cctp/keeper/msg_server_update_max_message_body_size_test.go b/x/cctp/keeper/msg_server_update_max_message_body_size_test.go index 0da5bd9..5c44f51 100644 --- a/x/cctp/keeper/msg_server_update_max_message_body_size_test.go +++ b/x/cctp/keeper/msg_server_update_max_message_body_size_test.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper_test import ( @@ -22,7 +23,6 @@ import ( "github.com/circlefin/noble-cctp/testutil/sample" "github.com/circlefin/noble-cctp/x/cctp/keeper" "github.com/circlefin/noble-cctp/x/cctp/types" - sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/require" ) @@ -33,7 +33,7 @@ import ( */ func TestUpdateMaxMessageBodySizeHappyPath(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) owner := sample.AccAddress() @@ -43,7 +43,7 @@ func TestUpdateMaxMessageBodySizeHappyPath(t *testing.T) { From: owner, MessageSize: uint64(1023), } - _, err := server.UpdateMaxMessageBodySize(sdk.WrapSDKContext(ctx), &message) + _, err := server.UpdateMaxMessageBodySize(ctx, &message) require.Nil(t, err) actual, found := testkeeper.GetMaxMessageBodySize(ctx) @@ -52,7 +52,7 @@ func TestUpdateMaxMessageBodySizeHappyPath(t *testing.T) { } func TestUpdateMaxMessageBodySizeInvalidAuthority(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) owner := sample.AccAddress() @@ -62,7 +62,7 @@ func TestUpdateMaxMessageBodySizeInvalidAuthority(t *testing.T) { From: "not the authority", MessageSize: uint64(1023), } - _, err := server.UpdateMaxMessageBodySize(sdk.WrapSDKContext(ctx), &message) + _, err := server.UpdateMaxMessageBodySize(ctx, &message) require.ErrorIs(t, types.ErrUnauthorized, err) require.Contains(t, err.Error(), "this message sender cannot update the max message body size") } diff --git a/x/cctp/keeper/msg_server_update_owner.go b/x/cctp/keeper/msg_server_update_owner.go index a0e55de..1a88396 100644 --- a/x/cctp/keeper/msg_server_update_owner.go +++ b/x/cctp/keeper/msg_server_update_owner.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper import ( @@ -20,7 +21,7 @@ import ( "github.com/circlefin/noble-cctp/x/cctp/types" - sdkerrors "cosmossdk.io/errors" + "cosmossdk.io/errors" sdk "github.com/cosmos/cosmos-sdk/types" ) @@ -29,7 +30,12 @@ func (k msgServer) UpdateOwner(goCtx context.Context, msg *types.MsgUpdateOwner) previousOwner := k.GetOwner(ctx) if previousOwner != msg.From { - return nil, sdkerrors.Wrapf(types.ErrUnauthorized, "this message sender cannot update the authority") + return nil, errors.Wrapf(types.ErrUnauthorized, "this message sender cannot update the authority") + } + + _, err := sdk.AccAddressFromBech32(msg.NewOwner) + if err != nil { + return nil, errors.Wrapf(types.ErrInvalidAddress, "invalid new owner address (%s)", err) } k.SetPendingOwner(ctx, msg.NewOwner) @@ -39,7 +45,7 @@ func (k msgServer) UpdateOwner(goCtx context.Context, msg *types.MsgUpdateOwner) NewOwner: msg.NewOwner, } - err := ctx.EventManager().EmitTypedEvent(&event) + err = ctx.EventManager().EmitTypedEvent(&event) return &types.MsgUpdateOwnerResponse{}, err } diff --git a/x/cctp/keeper/msg_server_update_owner_test.go b/x/cctp/keeper/msg_server_update_owner_test.go index ca7c3ae..528a227 100644 --- a/x/cctp/keeper/msg_server_update_owner_test.go +++ b/x/cctp/keeper/msg_server_update_owner_test.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper_test import ( @@ -22,7 +23,6 @@ import ( "github.com/circlefin/noble-cctp/testutil/sample" "github.com/circlefin/noble-cctp/x/cctp/keeper" "github.com/circlefin/noble-cctp/x/cctp/types" - sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/require" ) @@ -30,20 +30,22 @@ import ( * Happy path * Authority not set * Invalid authority + * Invalid new owner */ func TestUpdateAuthorityHappyPath(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) owner := sample.AccAddress() + newOwner := sample.AccAddress() testkeeper.SetOwner(ctx, owner) message := types.MsgUpdateOwner{ From: owner, - NewOwner: "new address", + NewOwner: newOwner, } - _, err := server.UpdateOwner(sdk.WrapSDKContext(ctx), &message) + _, err := server.UpdateOwner(ctx, &message) require.Nil(t, err) actual, found := testkeeper.GetPendingOwner(ctx) @@ -52,7 +54,7 @@ func TestUpdateAuthorityHappyPath(t *testing.T) { } func TestUpdateAuthorityAuthorityNotSet(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) message := types.MsgUpdateOwner{ @@ -61,12 +63,12 @@ func TestUpdateAuthorityAuthorityNotSet(t *testing.T) { } require.PanicsWithValue(t, "cctp owner not found in state", func() { - _, _ = server.UpdateOwner(sdk.WrapSDKContext(ctx), &message) + _, _ = server.UpdateOwner(ctx, &message) }) } func TestUpdateAuthorityInvalidAuthority(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) owner := sample.AccAddress() @@ -76,7 +78,23 @@ func TestUpdateAuthorityInvalidAuthority(t *testing.T) { From: "not the authority", NewOwner: "new address", } - _, err := server.UpdateOwner(sdk.WrapSDKContext(ctx), &message) + _, err := server.UpdateOwner(ctx, &message) require.ErrorIs(t, types.ErrUnauthorized, err) require.Contains(t, err.Error(), "this message sender cannot update the authority") } + +func TestUpdateAuthorityInvalidNewOwner(t *testing.T) { + testkeeper, ctx := keepertest.CctpKeeper() + server := keeper.NewMsgServerImpl(testkeeper) + + owner := sample.AccAddress() + testkeeper.SetOwner(ctx, owner) + + message := types.MsgUpdateOwner{ + From: owner, + NewOwner: "invalid address", + } + _, err := server.UpdateOwner(ctx, &message) + require.ErrorIs(t, err, types.ErrInvalidAddress) + require.Contains(t, err.Error(), "invalid new owner address") +} diff --git a/x/cctp/keeper/msg_server_update_pauser.go b/x/cctp/keeper/msg_server_update_pauser.go index fc1682c..5076de3 100644 --- a/x/cctp/keeper/msg_server_update_pauser.go +++ b/x/cctp/keeper/msg_server_update_pauser.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper import ( @@ -20,7 +21,7 @@ import ( "github.com/circlefin/noble-cctp/x/cctp/types" - sdkerrors "cosmossdk.io/errors" + "cosmossdk.io/errors" sdk "github.com/cosmos/cosmos-sdk/types" ) @@ -29,7 +30,12 @@ func (k msgServer) UpdatePauser(goCtx context.Context, msg *types.MsgUpdatePause currentOwner := k.GetOwner(ctx) if currentOwner != msg.From { - return nil, sdkerrors.Wrapf(types.ErrUnauthorized, "this message sender cannot update the pauser") + return nil, errors.Wrapf(types.ErrUnauthorized, "this message sender cannot update the pauser") + } + + _, err := sdk.AccAddressFromBech32(msg.NewPauser) + if err != nil { + return nil, errors.Wrapf(types.ErrInvalidAddress, "invalid new pauser address (%s)", err) } currentPauser := k.GetPauser(ctx) @@ -39,7 +45,7 @@ func (k msgServer) UpdatePauser(goCtx context.Context, msg *types.MsgUpdatePause PreviousPauser: currentPauser, NewPauser: msg.NewPauser, } - err := ctx.EventManager().EmitTypedEvent(&event) + err = ctx.EventManager().EmitTypedEvent(&event) return &types.MsgUpdatePauserResponse{}, err } diff --git a/x/cctp/keeper/msg_server_update_pauser_test.go b/x/cctp/keeper/msg_server_update_pauser_test.go index 53dbdaf..14de0a1 100644 --- a/x/cctp/keeper/msg_server_update_pauser_test.go +++ b/x/cctp/keeper/msg_server_update_pauser_test.go @@ -1,3 +1,19 @@ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper_test import ( @@ -7,7 +23,6 @@ import ( "github.com/circlefin/noble-cctp/testutil/sample" "github.com/circlefin/noble-cctp/x/cctp/keeper" "github.com/circlefin/noble-cctp/x/cctp/types" - sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/require" ) @@ -15,10 +30,11 @@ import ( * Happy path * Authority not set * Invalid authority + * Invalid new pauser address */ func TestUpdatePauserHappyPath(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) owner := sample.AccAddress() @@ -33,7 +49,7 @@ func TestUpdatePauserHappyPath(t *testing.T) { NewPauser: newPauser, } - _, err := server.UpdatePauser(sdk.WrapSDKContext(ctx), &message) + _, err := server.UpdatePauser(ctx, &message) require.Nil(t, err) actual := testkeeper.GetPauser(ctx) @@ -41,7 +57,7 @@ func TestUpdatePauserHappyPath(t *testing.T) { } func TestUpdatePauserAuthorityIsNotSet(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) pauser := sample.AccAddress() @@ -52,12 +68,12 @@ func TestUpdatePauserAuthorityIsNotSet(t *testing.T) { NewPauser: sample.AccAddress(), } require.Panicsf(t, func() { - _, _ = server.UpdatePauser(sdk.WrapSDKContext(ctx), &message) + _, _ = server.UpdatePauser(ctx, &message) }, "cctp owner not found in state") } func TestUpdatePauserInvalidAuthority(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) owner := sample.AccAddress() @@ -72,7 +88,28 @@ func TestUpdatePauserInvalidAuthority(t *testing.T) { NewPauser: newPauser, } - _, err := server.UpdatePauser(sdk.WrapSDKContext(ctx), &message) + _, err := server.UpdatePauser(ctx, &message) require.ErrorIs(t, types.ErrUnauthorized, err) require.Contains(t, err.Error(), "this message sender cannot update the pauser") } + +func TestUpdatePauserInvalidNewPauser(t *testing.T) { + testkeeper, ctx := keepertest.CctpKeeper() + server := keeper.NewMsgServerImpl(testkeeper) + + owner := sample.AccAddress() + testkeeper.SetOwner(ctx, owner) + pauser := sample.AccAddress() + testkeeper.SetPauser(ctx, pauser) + + newPauser := "invalid new pauser" + + message := types.MsgUpdatePauser{ + From: owner, + NewPauser: newPauser, + } + + _, err := server.UpdatePauser(ctx, &message) + require.ErrorIs(t, err, types.ErrInvalidAddress) + require.Contains(t, err.Error(), "invalid new pauser address") +} diff --git a/x/cctp/keeper/msg_server_update_signature_threshold.go b/x/cctp/keeper/msg_server_update_signature_threshold.go index d39ab9e..5d51c75 100644 --- a/x/cctp/keeper/msg_server_update_signature_threshold.go +++ b/x/cctp/keeper/msg_server_update_signature_threshold.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper import ( diff --git a/x/cctp/keeper/msg_server_update_signature_threshold_test.go b/x/cctp/keeper/msg_server_update_signature_threshold_test.go index 195cf2c..973b7a8 100644 --- a/x/cctp/keeper/msg_server_update_signature_threshold_test.go +++ b/x/cctp/keeper/msg_server_update_signature_threshold_test.go @@ -1,21 +1,23 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper_test import ( + "context" "strconv" "testing" @@ -23,7 +25,6 @@ import ( "github.com/circlefin/noble-cctp/testutil/sample" "github.com/circlefin/noble-cctp/x/cctp/keeper" "github.com/circlefin/noble-cctp/x/cctp/types" - sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/require" ) @@ -36,7 +37,7 @@ import ( * Signature threshold is too high */ func TestUpdateSignatureThresholdHappyPath(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) attesterManager := sample.AccAddress() @@ -49,7 +50,7 @@ func TestUpdateSignatureThresholdHappyPath(t *testing.T) { Amount: 3, } - _, err := server.UpdateSignatureThreshold(sdk.WrapSDKContext(ctx), &message) + _, err := server.UpdateSignatureThreshold(ctx, &message) require.Nil(t, err) actual, found := testkeeper.GetSignatureThreshold(ctx) @@ -58,7 +59,7 @@ func TestUpdateSignatureThresholdHappyPath(t *testing.T) { } func TestUpdateSignatureThresholdAuthorityNotSet(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) message := types.MsgUpdateSignatureThreshold{ @@ -67,12 +68,12 @@ func TestUpdateSignatureThresholdAuthorityNotSet(t *testing.T) { } require.PanicsWithValue(t, "cctp attester manager not found in state", func() { - _, _ = server.UpdateSignatureThreshold(sdk.WrapSDKContext(ctx), &message) + _, _ = server.UpdateSignatureThreshold(ctx, &message) }) } func TestUpdateSignatureThresholdInvalidAuthority(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) attesterManager := sample.AccAddress() @@ -83,13 +84,13 @@ func TestUpdateSignatureThresholdInvalidAuthority(t *testing.T) { Amount: 3, } - _, err := server.UpdateSignatureThreshold(sdk.WrapSDKContext(ctx), &message) + _, err := server.UpdateSignatureThreshold(ctx, &message) require.ErrorIs(t, types.ErrUnauthorized, err) require.Contains(t, err.Error(), "this message sender cannot update the authority") } func TestUpdateSignatureThresholdAmountIs0(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) attesterManager := sample.AccAddress() @@ -102,13 +103,13 @@ func TestUpdateSignatureThresholdAmountIs0(t *testing.T) { Amount: 0, } - _, err := server.UpdateSignatureThreshold(sdk.WrapSDKContext(ctx), &message) + _, err := server.UpdateSignatureThreshold(ctx, &message) require.ErrorIs(t, types.ErrUpdateSignatureThreshold, err) require.Contains(t, err.Error(), "invalid signature threshold") } func TestUpdateSignatureThresholdSignatureThresholdAlreadySetToThisValue(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) attesterManager := sample.AccAddress() @@ -122,13 +123,13 @@ func TestUpdateSignatureThresholdSignatureThresholdAlreadySetToThisValue(t *test Amount: 3, } - _, err := server.UpdateSignatureThreshold(sdk.WrapSDKContext(ctx), &message) + _, err := server.UpdateSignatureThreshold(ctx, &message) require.ErrorIs(t, types.ErrUpdateSignatureThreshold, err) require.Contains(t, err.Error(), "signature threshold already set to this value") } func TestUpdateSignatureThresholdSignatureThresholdIsTooHigh(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) attesterManager := sample.AccAddress() @@ -141,12 +142,12 @@ func TestUpdateSignatureThresholdSignatureThresholdIsTooHigh(t *testing.T) { Amount: 4, } - _, err := server.UpdateSignatureThreshold(sdk.WrapSDKContext(ctx), &message) + _, err := server.UpdateSignatureThreshold(ctx, &message) require.ErrorIs(t, types.ErrUpdateSignatureThreshold, err) require.Contains(t, err.Error(), "new signature threshold is too high") } -func addNAttesters(ctx sdk.Context, n int, testkeeper *keeper.Keeper) { +func addNAttesters(ctx context.Context, n int, testkeeper *keeper.Keeper) { for i := 0; i < n; i++ { a := types.Attester{Attester: strconv.Itoa(i)} testkeeper.SetAttester(ctx, a) diff --git a/x/cctp/keeper/msg_server_update_token_controller.go b/x/cctp/keeper/msg_server_update_token_controller.go index 55fd7b8..60e6682 100644 --- a/x/cctp/keeper/msg_server_update_token_controller.go +++ b/x/cctp/keeper/msg_server_update_token_controller.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper import ( @@ -20,7 +21,7 @@ import ( "github.com/circlefin/noble-cctp/x/cctp/types" - sdkerrors "cosmossdk.io/errors" + "cosmossdk.io/errors" sdk "github.com/cosmos/cosmos-sdk/types" ) @@ -29,7 +30,12 @@ func (k msgServer) UpdateTokenController(goCtx context.Context, msg *types.MsgUp currentOwner := k.GetOwner(ctx) if currentOwner != msg.From { - return nil, sdkerrors.Wrapf(types.ErrUnauthorized, "this message sender cannot update the authority") + return nil, errors.Wrapf(types.ErrUnauthorized, "this message sender cannot update the authority") + } + + _, err := sdk.AccAddressFromBech32(msg.NewTokenController) + if err != nil { + return nil, errors.Wrapf(types.ErrInvalidAddress, "invalid new token controller address (%s)", err) } currentTokenController := k.GetTokenController(ctx) @@ -40,7 +46,7 @@ func (k msgServer) UpdateTokenController(goCtx context.Context, msg *types.MsgUp NewTokenController: msg.NewTokenController, } - err := ctx.EventManager().EmitTypedEvent(&event) + err = ctx.EventManager().EmitTypedEvent(&event) return &types.MsgUpdateTokenControllerResponse{}, err } diff --git a/x/cctp/keeper/msg_server_update_token_controller_test.go b/x/cctp/keeper/msg_server_update_token_controller_test.go index 7424162..6664854 100644 --- a/x/cctp/keeper/msg_server_update_token_controller_test.go +++ b/x/cctp/keeper/msg_server_update_token_controller_test.go @@ -1,3 +1,19 @@ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper_test import ( @@ -7,7 +23,6 @@ import ( "github.com/circlefin/noble-cctp/testutil/sample" "github.com/circlefin/noble-cctp/x/cctp/keeper" "github.com/circlefin/noble-cctp/x/cctp/types" - sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/require" ) @@ -15,10 +30,11 @@ import ( * Happy path * Authority not set * Invalid authority + * Invalid new token controller address */ func TestUpdateTokenControllerHappyPath(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) owner := sample.AccAddress() @@ -33,7 +49,7 @@ func TestUpdateTokenControllerHappyPath(t *testing.T) { NewTokenController: newTokenController, } - _, err := server.UpdateTokenController(sdk.WrapSDKContext(ctx), &message) + _, err := server.UpdateTokenController(ctx, &message) require.Nil(t, err) actual := testkeeper.GetTokenController(ctx) @@ -41,7 +57,7 @@ func TestUpdateTokenControllerHappyPath(t *testing.T) { } func TestUpdateTokenControllerAuthorityIsNotSet(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) tokenController := sample.AccAddress() @@ -52,12 +68,12 @@ func TestUpdateTokenControllerAuthorityIsNotSet(t *testing.T) { NewTokenController: sample.AccAddress(), } require.Panicsf(t, func() { - _, _ = server.UpdateTokenController(sdk.WrapSDKContext(ctx), &message) + _, _ = server.UpdateTokenController(ctx, &message) }, "cctp owner not found in state") } func TestUpdateTokenControllerInvalidAuthority(t *testing.T) { - testkeeper, ctx := keepertest.CctpKeeper(t) + testkeeper, ctx := keepertest.CctpKeeper() server := keeper.NewMsgServerImpl(testkeeper) owner := sample.AccAddress() @@ -72,7 +88,28 @@ func TestUpdateTokenControllerInvalidAuthority(t *testing.T) { NewTokenController: newTokenController, } - _, err := server.UpdateTokenController(sdk.WrapSDKContext(ctx), &message) + _, err := server.UpdateTokenController(ctx, &message) require.ErrorIs(t, types.ErrUnauthorized, err) require.Contains(t, err.Error(), "this message sender cannot update the authority") } + +func TestUpdateTokenControllerInvalidNewTokenController(t *testing.T) { + testkeeper, ctx := keepertest.CctpKeeper() + server := keeper.NewMsgServerImpl(testkeeper) + + owner := sample.AccAddress() + testkeeper.SetOwner(ctx, owner) + tokenController := sample.AccAddress() + testkeeper.SetTokenController(ctx, tokenController) + + newTokenController := "invalid new token controller" + + message := types.MsgUpdateTokenController{ + From: owner, + NewTokenController: newTokenController, + } + + _, err := server.UpdateTokenController(ctx, &message) + require.ErrorIs(t, err, types.ErrInvalidAddress) + require.Contains(t, err.Error(), "invalid new token controller address") +} diff --git a/x/cctp/keeper/next_available_nonce.go b/x/cctp/keeper/next_available_nonce.go index f2d2fa7..c1484f7 100644 --- a/x/cctp/keeper/next_available_nonce.go +++ b/x/cctp/keeper/next_available_nonce.go @@ -1,30 +1,33 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper import ( - "github.com/circlefin/noble-cctp/x/cctp/types" - "github.com/cosmos/cosmos-sdk/store/prefix" + "context" - sdk "github.com/cosmos/cosmos-sdk/types" + "cosmossdk.io/store/prefix" + "github.com/circlefin/noble-cctp/x/cctp/types" + "github.com/cosmos/cosmos-sdk/runtime" ) // GetNextAvailableNonce returns the next available nonce -func (k Keeper) GetNextAvailableNonce(ctx sdk.Context) (val types.Nonce, found bool) { - store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.NextAvailableNonceKey)) +func (k Keeper) GetNextAvailableNonce(ctx context.Context) (val types.Nonce, found bool) { + adapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) + store := prefix.NewStore(adapter, types.KeyPrefix(types.NextAvailableNonceKey)) b := store.Get(types.KeyPrefix(types.NextAvailableNonceKey)) if b == nil { @@ -36,14 +39,16 @@ func (k Keeper) GetNextAvailableNonce(ctx sdk.Context) (val types.Nonce, found b } // SetNextAvailableNonce sets the next available nonce in the store -func (k Keeper) SetNextAvailableNonce(ctx sdk.Context, key types.Nonce) { - store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.NextAvailableNonceKey)) +func (k Keeper) SetNextAvailableNonce(ctx context.Context, key types.Nonce) { + adapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) + store := prefix.NewStore(adapter, types.KeyPrefix(types.NextAvailableNonceKey)) b := k.cdc.MustMarshal(&key) store.Set(types.KeyPrefix(types.NextAvailableNonceKey), b) } -func (k Keeper) ReserveAndIncrementNonce(ctx sdk.Context) (val types.Nonce) { - store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.NextAvailableNonceKey)) +func (k Keeper) ReserveAndIncrementNonce(ctx context.Context) (val types.Nonce) { + adapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) + store := prefix.NewStore(adapter, types.KeyPrefix(types.NextAvailableNonceKey)) b := store.Get(types.KeyPrefix(types.NextAvailableNonceKey)) k.cdc.MustUnmarshal(b, &val) diff --git a/x/cctp/keeper/next_available_nonce_test.go b/x/cctp/keeper/next_available_nonce_test.go index bf33088..3f6f8a8 100644 --- a/x/cctp/keeper/next_available_nonce_test.go +++ b/x/cctp/keeper/next_available_nonce_test.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper_test import ( @@ -26,7 +27,7 @@ import ( ) func TestNextAvailableNonce(t *testing.T) { - keeper, ctx := keepertest.CctpKeeper(t) + keeper, ctx := keepertest.CctpKeeper() _, found := keeper.GetNextAvailableNonce(ctx) require.False(t, found) @@ -54,7 +55,7 @@ func TestNextAvailableNonce(t *testing.T) { } func TestNextAvailableNonceReserveAndIncrement(t *testing.T) { - keeper, ctx := keepertest.CctpKeeper(t) + keeper, ctx := keepertest.CctpKeeper() savedNonce := types.Nonce{Nonce: 21} keeper.SetNextAvailableNonce(ctx, savedNonce) diff --git a/x/cctp/keeper/per_message_burn_limits.go b/x/cctp/keeper/per_message_burn_limits.go index 6d03474..f5955ee 100644 --- a/x/cctp/keeper/per_message_burn_limits.go +++ b/x/cctp/keeper/per_message_burn_limits.go @@ -1,30 +1,34 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper import ( + "context" + + "cosmossdk.io/store/prefix" "github.com/circlefin/noble-cctp/x/cctp/types" - "github.com/cosmos/cosmos-sdk/store/prefix" - sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/runtime" ) // GetPerMessageBurnLimit returns a PerMessageBurnLimit -func (k Keeper) GetPerMessageBurnLimit(ctx sdk.Context, denom string) (val types.PerMessageBurnLimit, found bool) { - store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.PerMessageBurnLimitKeyPrefix)) +func (k Keeper) GetPerMessageBurnLimit(ctx context.Context, denom string) (val types.PerMessageBurnLimit, found bool) { + adapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) + store := prefix.NewStore(adapter, types.KeyPrefix(types.PerMessageBurnLimitKeyPrefix)) b := store.Get(types.KeyPrefix(string(types.PerMessageBurnLimitKey(denom)))) if b == nil { @@ -36,16 +40,18 @@ func (k Keeper) GetPerMessageBurnLimit(ctx sdk.Context, denom string) (val types } // SetPerMessageBurnLimit sets a PerMessageBurnLimit in the store -func (k Keeper) SetPerMessageBurnLimit(ctx sdk.Context, limit types.PerMessageBurnLimit) { - store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.PerMessageBurnLimitKeyPrefix)) +func (k Keeper) SetPerMessageBurnLimit(ctx context.Context, limit types.PerMessageBurnLimit) { + adapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) + store := prefix.NewStore(adapter, types.KeyPrefix(types.PerMessageBurnLimitKeyPrefix)) b := k.cdc.MustMarshal(&limit) store.Set(types.KeyPrefix(string(types.PerMessageBurnLimitKey(limit.Denom))), b) } // GetAllMessageBurnLimit gets all PerMessageBurnLimits from the store -func (k Keeper) GetAllPerMessageBurnLimits(ctx sdk.Context) (list []types.PerMessageBurnLimit) { - store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.PerMessageBurnLimitKeyPrefix)) - iterator := sdk.KVStorePrefixIterator(store, []byte{}) +func (k Keeper) GetAllPerMessageBurnLimits(ctx context.Context) (list []types.PerMessageBurnLimit) { + adapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) + store := prefix.NewStore(adapter, types.KeyPrefix(types.PerMessageBurnLimitKeyPrefix)) + iterator := store.Iterator(nil, nil) defer iterator.Close() diff --git a/x/cctp/keeper/per_message_burn_limits_test.go b/x/cctp/keeper/per_message_burn_limits_test.go index a824265..8315b7f 100644 --- a/x/cctp/keeper/per_message_burn_limits_test.go +++ b/x/cctp/keeper/per_message_burn_limits_test.go @@ -1,29 +1,29 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper_test import ( + "context" "strconv" "testing" "cosmossdk.io/math" "github.com/circlefin/noble-cctp/x/cctp/keeper" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/stretchr/testify/require" keepertest "github.com/circlefin/noble-cctp/testutil/keeper" @@ -31,7 +31,7 @@ import ( "github.com/circlefin/noble-cctp/x/cctp/types" ) -func createNPerMessageBurnLimits(keeper *keeper.Keeper, ctx sdk.Context, n int) []types.PerMessageBurnLimit { +func createNPerMessageBurnLimits(keeper *keeper.Keeper, ctx context.Context, n int) []types.PerMessageBurnLimit { items := make([]types.PerMessageBurnLimit, n) for i := range items { items[i].Denom = "amount" + strconv.Itoa(i) @@ -42,7 +42,7 @@ func createNPerMessageBurnLimits(keeper *keeper.Keeper, ctx sdk.Context, n int) } func TestPerMessageBurnLimit(t *testing.T) { - keeper, ctx := keepertest.CctpKeeper(t) + keeper, ctx := keepertest.CctpKeeper() _, found := keeper.GetPerMessageBurnLimit(ctx, "usdc") require.False(t, found) @@ -89,7 +89,7 @@ func TestPerMessageBurnLimit(t *testing.T) { } func TestPerMessageBurnLimitsGetAll(t *testing.T) { - cctpKeeper, ctx := keepertest.CctpKeeper(t) + cctpKeeper, ctx := keepertest.CctpKeeper() items := createNPerMessageBurnLimits(cctpKeeper, ctx, 10) denom := make([]types.PerMessageBurnLimit, len(items)) copy(denom, items) diff --git a/x/cctp/keeper/remote_token_messengers.go b/x/cctp/keeper/remote_token_messengers.go index e10d305..0f6a1b1 100644 --- a/x/cctp/keeper/remote_token_messengers.go +++ b/x/cctp/keeper/remote_token_messengers.go @@ -1,30 +1,34 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper import ( + "context" + + "cosmossdk.io/store/prefix" "github.com/circlefin/noble-cctp/x/cctp/types" - "github.com/cosmos/cosmos-sdk/store/prefix" - sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/runtime" ) // GetRemoteTokenMessenger returns a remote token messenger -func (k Keeper) GetRemoteTokenMessenger(ctx sdk.Context, remoteDomain uint32) (val types.RemoteTokenMessenger, found bool) { - store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.RemoteTokenMessengerKeyPrefix)) +func (k Keeper) GetRemoteTokenMessenger(ctx context.Context, remoteDomain uint32) (val types.RemoteTokenMessenger, found bool) { + adapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) + store := prefix.NewStore(adapter, types.KeyPrefix(types.RemoteTokenMessengerKeyPrefix)) b := store.Get(types.RemoteTokenMessengerKey(remoteDomain)) if b == nil { @@ -36,25 +40,29 @@ func (k Keeper) GetRemoteTokenMessenger(ctx sdk.Context, remoteDomain uint32) (v } // SetRemoteTokenMessenger sets a remote token messenger in the store -func (k Keeper) SetRemoteTokenMessenger(ctx sdk.Context, remoteTokenMessenger types.RemoteTokenMessenger) { - store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.RemoteTokenMessengerKeyPrefix)) +func (k Keeper) SetRemoteTokenMessenger(ctx context.Context, remoteTokenMessenger types.RemoteTokenMessenger) { + adapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) + store := prefix.NewStore(adapter, types.KeyPrefix(types.RemoteTokenMessengerKeyPrefix)) + b := k.cdc.MustMarshal(&remoteTokenMessenger) store.Set(types.RemoteTokenMessengerKey(remoteTokenMessenger.DomainId), b) } // DeleteRemoteTokenMessenger removes a remote token messenger func (k Keeper) DeleteRemoteTokenMessenger( - ctx sdk.Context, + ctx context.Context, remoteDomain uint32, ) { - store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.RemoteTokenMessengerKeyPrefix)) + adapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) + store := prefix.NewStore(adapter, types.KeyPrefix(types.RemoteTokenMessengerKeyPrefix)) store.Delete(types.RemoteTokenMessengerKey(remoteDomain)) } // GetRemoteTokenMessengers returns all remote token messengers -func (k Keeper) GetRemoteTokenMessengers(ctx sdk.Context) (list []types.RemoteTokenMessenger) { - store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.RemoteTokenMessengerKeyPrefix)) - iterator := sdk.KVStorePrefixIterator(store, []byte{}) +func (k Keeper) GetRemoteTokenMessengers(ctx context.Context) (list []types.RemoteTokenMessenger) { + adapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) + store := prefix.NewStore(adapter, types.KeyPrefix(types.RemoteTokenMessengerKeyPrefix)) + iterator := store.Iterator(nil, nil) defer iterator.Close() diff --git a/x/cctp/keeper/remote_token_messengers_test.go b/x/cctp/keeper/remote_token_messengers_test.go index d65f4af..221135b 100644 --- a/x/cctp/keeper/remote_token_messengers_test.go +++ b/x/cctp/keeper/remote_token_messengers_test.go @@ -1,21 +1,23 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper_test import ( + "context" "testing" "github.com/circlefin/noble-cctp/x/cctp/keeper" @@ -24,11 +26,10 @@ import ( "github.com/circlefin/noble-cctp/testutil/nullify" "github.com/circlefin/noble-cctp/x/cctp/types" - sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/require" ) -func createNRemoteTokenMessengers(keeper *keeper.Keeper, ctx sdk.Context, n int) []types.RemoteTokenMessenger { +func createNRemoteTokenMessengers(keeper *keeper.Keeper, ctx context.Context, n int) []types.RemoteTokenMessenger { items := make([]types.RemoteTokenMessenger, n) for i := range items { items[i].DomainId = uint32(i) @@ -40,7 +41,7 @@ func createNRemoteTokenMessengers(keeper *keeper.Keeper, ctx sdk.Context, n int) } func TestRemoteTokenMessengersGet(t *testing.T) { - cctpKeeper, ctx := keepertest.CctpKeeper(t) + cctpKeeper, ctx := keepertest.CctpKeeper() items := createNRemoteTokenMessengers(cctpKeeper, ctx, 10) for _, item := range items { tokenMessenger, found := cctpKeeper.GetRemoteTokenMessenger(ctx, item.DomainId) @@ -53,7 +54,7 @@ func TestRemoteTokenMessengersGet(t *testing.T) { } func TestRemoteTokenMessengersRemove(t *testing.T) { - cctpKeeper, ctx := keepertest.CctpKeeper(t) + cctpKeeper, ctx := keepertest.CctpKeeper() items := createNRemoteTokenMessengers(cctpKeeper, ctx, 10) for _, item := range items { cctpKeeper.DeleteRemoteTokenMessenger(ctx, item.DomainId) @@ -63,7 +64,7 @@ func TestRemoteTokenMessengersRemove(t *testing.T) { } func TestRemoteTokenMessengersGetAll(t *testing.T) { - cctpKeeper, ctx := keepertest.CctpKeeper(t) + cctpKeeper, ctx := keepertest.CctpKeeper() items := createNRemoteTokenMessengers(cctpKeeper, ctx, 10) denom := make([]types.RemoteTokenMessenger, len(items)) copy(denom, items) diff --git a/x/cctp/keeper/roles.go b/x/cctp/keeper/roles.go index 8107ab1..4191a2c 100644 --- a/x/cctp/keeper/roles.go +++ b/x/cctp/keeper/roles.go @@ -1,33 +1,36 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper import ( + "context" + "github.com/circlefin/noble-cctp/x/cctp/types" - sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/runtime" ) // DeletePendingOwner deletes the pending owner of the CCTP module from state. -func (k Keeper) DeletePendingOwner(ctx sdk.Context) { - ctx.KVStore(k.storeKey).Delete(types.PendingOwnerKey) +func (k Keeper) DeletePendingOwner(ctx context.Context) { + runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)).Delete(types.PendingOwnerKey) } // GetOwner returns the owner of the CCTP module from state. -func (k Keeper) GetOwner(ctx sdk.Context) (owner string) { - bz := ctx.KVStore(k.storeKey).Get(types.OwnerKey) +func (k Keeper) GetOwner(ctx context.Context) (owner string) { + bz := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)).Get(types.OwnerKey) if bz == nil { panic("cctp owner not found in state") } @@ -36,8 +39,8 @@ func (k Keeper) GetOwner(ctx sdk.Context) (owner string) { } // GetPendingOwner returns the pending owner of the CCTP module from state. -func (k Keeper) GetPendingOwner(ctx sdk.Context) (pendingOwner string, found bool) { - bz := ctx.KVStore(k.storeKey).Get(types.PendingOwnerKey) +func (k Keeper) GetPendingOwner(ctx context.Context) (pendingOwner string, found bool) { + bz := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)).Get(types.PendingOwnerKey) if bz == nil { return "", false } @@ -46,8 +49,8 @@ func (k Keeper) GetPendingOwner(ctx sdk.Context) (pendingOwner string, found boo } // GetAttesterManager returns the attester manager of the CCTP module from state. -func (k Keeper) GetAttesterManager(ctx sdk.Context) (attesterManager string) { - bz := ctx.KVStore(k.storeKey).Get(types.AttesterManagerKey) +func (k Keeper) GetAttesterManager(ctx context.Context) (attesterManager string) { + bz := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)).Get(types.AttesterManagerKey) if bz == nil { panic("cctp attester manager not found in state") } @@ -56,8 +59,8 @@ func (k Keeper) GetAttesterManager(ctx sdk.Context) (attesterManager string) { } // GetPauser returns the pauser of the CCTP module from state. -func (k Keeper) GetPauser(ctx sdk.Context) (pauser string) { - bz := ctx.KVStore(k.storeKey).Get(types.PauserKey) +func (k Keeper) GetPauser(ctx context.Context) (pauser string) { + bz := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)).Get(types.PauserKey) if bz == nil { panic("cctp pauser not found in state") } @@ -66,8 +69,8 @@ func (k Keeper) GetPauser(ctx sdk.Context) (pauser string) { } // GetTokenController returns the token controller of the CCTP module from state. -func (k Keeper) GetTokenController(ctx sdk.Context) (tokenController string) { - bz := ctx.KVStore(k.storeKey).Get(types.TokenControllerKey) +func (k Keeper) GetTokenController(ctx context.Context) (tokenController string) { + bz := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)).Get(types.TokenControllerKey) if bz == nil { panic("cctp token controller not found in state") } @@ -76,31 +79,31 @@ func (k Keeper) GetTokenController(ctx sdk.Context) (tokenController string) { } // SetOwner stores the owner of the CCTP module in state. -func (k Keeper) SetOwner(ctx sdk.Context, owner string) { +func (k Keeper) SetOwner(ctx context.Context, owner string) { bz := []byte(owner) - ctx.KVStore(k.storeKey).Set(types.OwnerKey, bz) + runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)).Set(types.OwnerKey, bz) } // SetPendingOwner stores the pending owner of the CCTP module in state. -func (k Keeper) SetPendingOwner(ctx sdk.Context, pendingOwner string) { +func (k Keeper) SetPendingOwner(ctx context.Context, pendingOwner string) { bz := []byte(pendingOwner) - ctx.KVStore(k.storeKey).Set(types.PendingOwnerKey, bz) + runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)).Set(types.PendingOwnerKey, bz) } // SetAttesterManager stores the attester manager of the CCTP module in state. -func (k Keeper) SetAttesterManager(ctx sdk.Context, attesterManager string) { +func (k Keeper) SetAttesterManager(ctx context.Context, attesterManager string) { bz := []byte(attesterManager) - ctx.KVStore(k.storeKey).Set(types.AttesterManagerKey, bz) + runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)).Set(types.AttesterManagerKey, bz) } // SetPauser stores the pauser of the CCTP module in state. -func (k Keeper) SetPauser(ctx sdk.Context, pauser string) { +func (k Keeper) SetPauser(ctx context.Context, pauser string) { bz := []byte(pauser) - ctx.KVStore(k.storeKey).Set(types.PauserKey, bz) + runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)).Set(types.PauserKey, bz) } // SetTokenController stores the token controller of the CCTP module in state. -func (k Keeper) SetTokenController(ctx sdk.Context, tokenController string) { +func (k Keeper) SetTokenController(ctx context.Context, tokenController string) { bz := []byte(tokenController) - ctx.KVStore(k.storeKey).Set(types.TokenControllerKey, bz) + runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)).Set(types.TokenControllerKey, bz) } diff --git a/x/cctp/keeper/roles_test.go b/x/cctp/keeper/roles_test.go index 5836b4a..cf6f23e 100644 --- a/x/cctp/keeper/roles_test.go +++ b/x/cctp/keeper/roles_test.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper_test import ( @@ -26,7 +27,7 @@ import ( ) func TestOwner(t *testing.T) { - keeper, ctx := keepertest.CctpKeeper(t) + keeper, ctx := keepertest.CctpKeeper() owner := sample.AccAddress() keeper.SetOwner(ctx, owner) diff --git a/x/cctp/keeper/sending_and_receiving_messages_paused.go b/x/cctp/keeper/sending_and_receiving_messages_paused.go index 370ec7a..2458e0b 100644 --- a/x/cctp/keeper/sending_and_receiving_messages_paused.go +++ b/x/cctp/keeper/sending_and_receiving_messages_paused.go @@ -1,30 +1,33 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper import ( - "github.com/circlefin/noble-cctp/x/cctp/types" - "github.com/cosmos/cosmos-sdk/store/prefix" + "context" - sdk "github.com/cosmos/cosmos-sdk/types" + "cosmossdk.io/store/prefix" + "github.com/circlefin/noble-cctp/x/cctp/types" + "github.com/cosmos/cosmos-sdk/runtime" ) // GetSendingAndReceivingMessagesPaused returns SendingAndReceivingMessagesPaused -func (k Keeper) GetSendingAndReceivingMessagesPaused(ctx sdk.Context) (val types.SendingAndReceivingMessagesPaused, found bool) { - store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.SendingAndReceivingMessagesPausedKey)) +func (k Keeper) GetSendingAndReceivingMessagesPaused(ctx context.Context) (val types.SendingAndReceivingMessagesPaused, found bool) { + adapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) + store := prefix.NewStore(adapter, types.KeyPrefix(types.SendingAndReceivingMessagesPausedKey)) b := store.Get(types.KeyPrefix(types.SendingAndReceivingMessagesPausedKey)) if b == nil { @@ -36,8 +39,9 @@ func (k Keeper) GetSendingAndReceivingMessagesPaused(ctx sdk.Context) (val types } // SetSendingAndReceivingMessagesPaused sets SendingAndReceivingMessagesPaused in the store -func (k Keeper) SetSendingAndReceivingMessagesPaused(ctx sdk.Context, paused types.SendingAndReceivingMessagesPaused) { - store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.SendingAndReceivingMessagesPausedKey)) +func (k Keeper) SetSendingAndReceivingMessagesPaused(ctx context.Context, paused types.SendingAndReceivingMessagesPaused) { + adapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) + store := prefix.NewStore(adapter, types.KeyPrefix(types.SendingAndReceivingMessagesPausedKey)) b := k.cdc.MustMarshal(&paused) store.Set(types.KeyPrefix(types.SendingAndReceivingMessagesPausedKey), b) } diff --git a/x/cctp/keeper/sending_and_receiving_messages_paused_test.go b/x/cctp/keeper/sending_and_receiving_messages_paused_test.go index 624a67d..b66bbf2 100644 --- a/x/cctp/keeper/sending_and_receiving_messages_paused_test.go +++ b/x/cctp/keeper/sending_and_receiving_messages_paused_test.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper_test import ( @@ -24,7 +25,7 @@ import ( ) func TestSendingAndReceivingMessagesPaused(t *testing.T) { - keeper, ctx := keepertest.CctpKeeper(t) + keeper, ctx := keepertest.CctpKeeper() _, found := keeper.GetSendingAndReceivingMessagesPaused(ctx) require.False(t, found) diff --git a/x/cctp/keeper/signature_threshold.go b/x/cctp/keeper/signature_threshold.go index 843087b..742c0ce 100644 --- a/x/cctp/keeper/signature_threshold.go +++ b/x/cctp/keeper/signature_threshold.go @@ -1,30 +1,33 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper import ( - "github.com/circlefin/noble-cctp/x/cctp/types" - "github.com/cosmos/cosmos-sdk/store/prefix" + "context" - sdk "github.com/cosmos/cosmos-sdk/types" + "cosmossdk.io/store/prefix" + "github.com/circlefin/noble-cctp/x/cctp/types" + "github.com/cosmos/cosmos-sdk/runtime" ) // GetSignatureThreshold returns the SignatureThreshold -func (k Keeper) GetSignatureThreshold(ctx sdk.Context) (val types.SignatureThreshold, found bool) { - store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.SignatureThresholdKey)) +func (k Keeper) GetSignatureThreshold(ctx context.Context) (val types.SignatureThreshold, found bool) { + adapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) + store := prefix.NewStore(adapter, types.KeyPrefix(types.SignatureThresholdKey)) b := store.Get(types.KeyPrefix(types.SignatureThresholdKey)) if b == nil { @@ -36,8 +39,9 @@ func (k Keeper) GetSignatureThreshold(ctx sdk.Context) (val types.SignatureThres } // SetSignatureThreshold sets a SignatureThreshold in the store -func (k Keeper) SetSignatureThreshold(ctx sdk.Context, key types.SignatureThreshold) { - store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.SignatureThresholdKey)) +func (k Keeper) SetSignatureThreshold(ctx context.Context, key types.SignatureThreshold) { + adapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) + store := prefix.NewStore(adapter, types.KeyPrefix(types.SignatureThresholdKey)) b := k.cdc.MustMarshal(&key) store.Set(types.KeyPrefix(types.SignatureThresholdKey), b) } diff --git a/x/cctp/keeper/signature_threshold_test.go b/x/cctp/keeper/signature_threshold_test.go index eb00b01..eacb525 100644 --- a/x/cctp/keeper/signature_threshold_test.go +++ b/x/cctp/keeper/signature_threshold_test.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper_test import ( @@ -26,7 +27,7 @@ import ( ) func TestSignatureThreshold(t *testing.T) { - keeper, ctx := keepertest.CctpKeeper(t) + keeper, ctx := keepertest.CctpKeeper() _, found := keeper.GetSignatureThreshold(ctx) require.False(t, found) diff --git a/x/cctp/keeper/token_pairs.go b/x/cctp/keeper/token_pairs.go index 906f12f..773a80e 100644 --- a/x/cctp/keeper/token_pairs.go +++ b/x/cctp/keeper/token_pairs.go @@ -1,29 +1,32 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper import ( + "context" + + "cosmossdk.io/store/prefix" "github.com/circlefin/noble-cctp/x/cctp/types" - "github.com/cosmos/cosmos-sdk/store/prefix" - sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/runtime" ) // GetTokenPair returns a token pair -func (k Keeper) GetTokenPairHex(ctx sdk.Context, remoteDomain uint32, remoteTokenHex string) (val types.TokenPair, found bool) { +func (k Keeper) GetTokenPairHex(ctx context.Context, remoteDomain uint32, remoteTokenHex string) (val types.TokenPair, found bool) { remoteTokenPadded, err := types.RemoteTokenPadded(remoteTokenHex) if err != nil { return val, false @@ -33,8 +36,9 @@ func (k Keeper) GetTokenPairHex(ctx sdk.Context, remoteDomain uint32, remoteToke } // GetTokenPair returns a token pair -func (k Keeper) GetTokenPair(ctx sdk.Context, remoteDomain uint32, remoteToken []byte) (val types.TokenPair, found bool) { - store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.TokenPairKeyPrefix)) +func (k Keeper) GetTokenPair(ctx context.Context, remoteDomain uint32, remoteToken []byte) (val types.TokenPair, found bool) { + adapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) + store := prefix.NewStore(adapter, types.KeyPrefix(types.TokenPairKeyPrefix)) b := store.Get(types.TokenPairKey(remoteDomain, remoteToken)) if b == nil { @@ -46,26 +50,29 @@ func (k Keeper) GetTokenPair(ctx sdk.Context, remoteDomain uint32, remoteToken [ } // SetTokenPair sets a token pair in the store -func (k Keeper) SetTokenPair(ctx sdk.Context, tokenPair types.TokenPair) { - store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.TokenPairKeyPrefix)) +func (k Keeper) SetTokenPair(ctx context.Context, tokenPair types.TokenPair) { + adapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) + store := prefix.NewStore(adapter, types.KeyPrefix(types.TokenPairKeyPrefix)) b := k.cdc.MustMarshal(&tokenPair) store.Set(types.TokenPairKey(tokenPair.RemoteDomain, tokenPair.RemoteToken), b) } // DeleteTokenPair removes a token pair func (k Keeper) DeleteTokenPair( - ctx sdk.Context, + ctx context.Context, remoteDomain uint32, remoteToken []byte, ) { - store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.TokenPairKeyPrefix)) + adapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) + store := prefix.NewStore(adapter, types.KeyPrefix(types.TokenPairKeyPrefix)) store.Delete(types.TokenPairKey(remoteDomain, remoteToken)) } // GetAllTokenPairs returns all token pairs -func (k Keeper) GetAllTokenPairs(ctx sdk.Context) (list []types.TokenPair) { - store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.TokenPairKeyPrefix)) - iterator := sdk.KVStorePrefixIterator(store, []byte{}) +func (k Keeper) GetAllTokenPairs(ctx context.Context) (list []types.TokenPair) { + adapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) + store := prefix.NewStore(adapter, types.KeyPrefix(types.TokenPairKeyPrefix)) + iterator := store.Iterator(nil, nil) defer iterator.Close() diff --git a/x/cctp/keeper/token_pairs_test.go b/x/cctp/keeper/token_pairs_test.go index 5ad8168..64cc1d6 100644 --- a/x/cctp/keeper/token_pairs_test.go +++ b/x/cctp/keeper/token_pairs_test.go @@ -1,21 +1,23 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper_test import ( + "context" "strconv" "testing" @@ -24,11 +26,10 @@ import ( keepertest "github.com/circlefin/noble-cctp/testutil/keeper" "github.com/circlefin/noble-cctp/testutil/nullify" "github.com/circlefin/noble-cctp/x/cctp/types" - sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/require" ) -func createNTokenPairs(keeper *keeper.Keeper, ctx sdk.Context, n int) []types.TokenPair { +func createNTokenPairs(keeper *keeper.Keeper, ctx context.Context, n int) []types.TokenPair { items := make([]types.TokenPair, n) for i := range items { items[i].RemoteDomain = uint32(i) @@ -41,7 +42,7 @@ func createNTokenPairs(keeper *keeper.Keeper, ctx sdk.Context, n int) []types.To } func TestTokenPairsGet(t *testing.T) { - cctpKeeper, ctx := keepertest.CctpKeeper(t) + cctpKeeper, ctx := keepertest.CctpKeeper() items := createNTokenPairs(cctpKeeper, ctx, 10) for _, item := range items { tokenPair, found := cctpKeeper.GetTokenPair(ctx, @@ -57,7 +58,7 @@ func TestTokenPairsGet(t *testing.T) { } func TestTokenPairsRemove(t *testing.T) { - cctpKeeper, ctx := keepertest.CctpKeeper(t) + cctpKeeper, ctx := keepertest.CctpKeeper() items := createNTokenPairs(cctpKeeper, ctx, 10) for _, item := range items { cctpKeeper.DeleteTokenPair( @@ -75,7 +76,7 @@ func TestTokenPairsRemove(t *testing.T) { } func TestTokenPairsGetAll(t *testing.T) { - cctpKeeper, ctx := keepertest.CctpKeeper(t) + cctpKeeper, ctx := keepertest.CctpKeeper() items := createNTokenPairs(cctpKeeper, ctx, 10) denom := make([]types.TokenPair, len(items)) copy(denom, items) diff --git a/x/cctp/keeper/used_nonces.go b/x/cctp/keeper/used_nonces.go index 55d5770..099ae46 100644 --- a/x/cctp/keeper/used_nonces.go +++ b/x/cctp/keeper/used_nonces.go @@ -1,44 +1,50 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper import ( + "context" + + "cosmossdk.io/store/prefix" "github.com/circlefin/noble-cctp/x/cctp/types" - "github.com/cosmos/cosmos-sdk/store/prefix" - sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/runtime" ) // GetUsedNonce returns a nonce -func (k Keeper) GetUsedNonce(ctx sdk.Context, nonce types.Nonce) (found bool) { - store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.UsedNonceKeyPrefix)) +func (k Keeper) GetUsedNonce(ctx context.Context, nonce types.Nonce) (found bool) { + adapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) + store := prefix.NewStore(adapter, types.KeyPrefix(types.UsedNonceKeyPrefix)) return store.Get(types.UsedNonceKey(nonce.Nonce, nonce.SourceDomain)) != nil } // SetUsedNonce sets a nonce in the store -func (k Keeper) SetUsedNonce(ctx sdk.Context, nonce types.Nonce) { - store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.UsedNonceKeyPrefix)) +func (k Keeper) SetUsedNonce(ctx context.Context, nonce types.Nonce) { + adapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) + store := prefix.NewStore(adapter, types.KeyPrefix(types.UsedNonceKeyPrefix)) b := k.cdc.MustMarshal(&nonce) store.Set(types.UsedNonceKey(nonce.Nonce, nonce.SourceDomain), b) } // GetAllUsedNonces returns all UsedNonces -func (k Keeper) GetAllUsedNonces(ctx sdk.Context) (list []types.Nonce) { - store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.UsedNonceKeyPrefix)) - iterator := sdk.KVStorePrefixIterator(store, []byte{}) +func (k Keeper) GetAllUsedNonces(ctx context.Context) (list []types.Nonce) { + adapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) + store := prefix.NewStore(adapter, types.KeyPrefix(types.UsedNonceKeyPrefix)) + iterator := store.Iterator(nil, nil) defer iterator.Close() diff --git a/x/cctp/keeper/used_nonces_test.go b/x/cctp/keeper/used_nonces_test.go index 32d5aeb..f0099e3 100644 --- a/x/cctp/keeper/used_nonces_test.go +++ b/x/cctp/keeper/used_nonces_test.go @@ -1,21 +1,23 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package keeper_test import ( + "context" "testing" "github.com/circlefin/noble-cctp/testutil/nullify" @@ -24,11 +26,10 @@ import ( keepertest "github.com/circlefin/noble-cctp/testutil/keeper" "github.com/circlefin/noble-cctp/x/cctp/types" - sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/require" ) -func createNUsedNonces(keeper *keeper.Keeper, ctx sdk.Context, n int) []types.Nonce { +func createNUsedNonces(keeper *keeper.Keeper, ctx context.Context, n int) []types.Nonce { items := make([]types.Nonce, n) for i := range items { items[i].SourceDomain = uint32(i) @@ -40,7 +41,7 @@ func createNUsedNonces(keeper *keeper.Keeper, ctx sdk.Context, n int) []types.No } func TestUsedNonceGet(t *testing.T) { - cctpKeeper, ctx := keepertest.CctpKeeper(t) + cctpKeeper, ctx := keepertest.CctpKeeper() items := createNUsedNonces(cctpKeeper, ctx, 10) for _, item := range items { found := cctpKeeper.GetUsedNonce(ctx, item) @@ -49,7 +50,7 @@ func TestUsedNonceGet(t *testing.T) { } func TestUsedNonceGetNotFound(t *testing.T) { - cctpKeeper, ctx := keepertest.CctpKeeper(t) + cctpKeeper, ctx := keepertest.CctpKeeper() found := cctpKeeper.GetUsedNonce(ctx, types.Nonce{ @@ -60,7 +61,7 @@ func TestUsedNonceGetNotFound(t *testing.T) { } func TestUsedNoncesGetAll(t *testing.T) { - cctpKeeper, ctx := keepertest.CctpKeeper(t) + cctpKeeper, ctx := keepertest.CctpKeeper() items := createNUsedNonces(cctpKeeper, ctx, 10) nonce := make([]types.Nonce, len(items)) copy(nonce, items) diff --git a/x/cctp/module.go b/x/cctp/module.go index e7dc4e1..0701761 100644 --- a/x/cctp/module.go +++ b/x/cctp/module.go @@ -1,18 +1,18 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 package cctp @@ -21,159 +21,181 @@ import ( "encoding/json" "fmt" - "github.com/gorilla/mux" - "github.com/grpc-ecosystem/grpc-gateway/runtime" - "github.com/spf13/cobra" - - abci "github.com/tendermint/tendermint/abci/types" + autocliv1 "cosmossdk.io/api/cosmos/autocli/v1" + "cosmossdk.io/core/appmodule" + "cosmossdk.io/core/store" + "cosmossdk.io/depinject" + "cosmossdk.io/log" + modulev1 "github.com/circlefin/noble-cctp/api/circle/cctp/module/v1" + cctpv1 "github.com/circlefin/noble-cctp/api/circle/cctp/v1" "github.com/circlefin/noble-cctp/x/cctp/client/cli" "github.com/circlefin/noble-cctp/x/cctp/keeper" "github.com/circlefin/noble-cctp/x/cctp/types" "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/codec" - cdctypes "github.com/cosmos/cosmos-sdk/codec/types" + codectypes "github.com/cosmos/cosmos-sdk/codec/types" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" + "github.com/grpc-ecosystem/grpc-gateway/runtime" + "github.com/spf13/cobra" ) +// ConsensusVersion defines the current x/cctp module consensus version. +const ConsensusVersion = 1 + var ( - _ module.AppModule = AppModule{} - _ module.AppModuleBasic = AppModuleBasic{} + _ module.AppModuleBasic = AppModule{} + _ appmodule.AppModule = AppModule{} + _ module.HasConsensusVersion = AppModule{} + _ module.HasGenesis = AppModule{} + _ module.HasServices = AppModule{} ) // ---------------------------------------------------------------------------- // AppModuleBasic // ---------------------------------------------------------------------------- - // AppModuleBasic implements the AppModuleBasic interface that defines the independent methods a Cosmos SDK module needs to implement. -type AppModuleBasic struct { - cdc codec.BinaryCodec -} -func NewAppModuleBasic(cdc codec.BinaryCodec) AppModuleBasic { - return AppModuleBasic{cdc: cdc} +type AppModuleBasic struct{} + +func NewAppModuleBasic() AppModuleBasic { + return AppModuleBasic{} } // Name returns the name of the module as a string -func (AppModuleBasic) Name() string { - return types.ModuleName -} +func (AppModuleBasic) Name() string { return types.ModuleName } -// RegisterLegacyAminoCodec registers the amino codec for the module, which is used to marshal and unmarshal structs to/from []byte in order to persist them in the module's KVStore func (AppModuleBasic) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) { types.RegisterLegacyAminoCodec(cdc) } // RegisterInterfaces registers a module's interface types and their concrete implementations as proto.Message -func (a AppModuleBasic) RegisterInterfaces(reg cdctypes.InterfaceRegistry) { +func (AppModuleBasic) RegisterInterfaces(reg codectypes.InterfaceRegistry) { types.RegisterInterfaces(reg) } -// DefaultGenesis returns a default GenesisState for the module, marshalled to json.RawMessage. The default GenesisState need to be defined by the module developer and is primarily used for testing +// RegisterGRPCGatewayRoutes registers the gRPC Gateway routes for the module +func (AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *runtime.ServeMux) { + if err := types.RegisterQueryHandlerClient(context.Background(), mux, types.NewQueryClient(clientCtx)); err != nil { + panic(err) + } +} + +// DefaultGenesis returns a default GenesisState for the module, marshalled to json.RawMessage. +// The default GenesisState need to be defined by the module developer and is primarily used for testing func (AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage { return cdc.MustMarshalJSON(types.DefaultGenesis()) } // ValidateGenesis used to validate the GenesisState, given in its json.RawMessage form -func (AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, config client.TxEncodingConfig, bz json.RawMessage) error { - var genState types.GenesisState - if err := cdc.UnmarshalJSON(bz, &genState); err != nil { +func (AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, cfg client.TxEncodingConfig, bz json.RawMessage) error { + var genesis types.GenesisState + if err := cdc.UnmarshalJSON(bz, &genesis); err != nil { return fmt.Errorf("failed to unmarshal %s genesis state: %w", types.ModuleName, err) } - return genState.Validate() -} - -// RegisterRESTRoutes registers the capability module's REST service handlers. -func (AppModuleBasic) RegisterRESTRoutes(clientCtx client.Context, rtr *mux.Router) { -} - -// RegisterGRPCGatewayRoutes registers the gRPC Gateway routes for the module -func (AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *runtime.ServeMux) { - _ = types.RegisterQueryHandlerClient(context.Background(), mux, types.NewQueryClient(clientCtx)) -} - -// GetTxCmd returns the root Tx command for the module. The subcommands of this root command are used by end-users to generate new transactions containing messages defined in the module -func (a AppModuleBasic) GetTxCmd() *cobra.Command { - return cli.GetTxCmd() -} -// GetQueryCmd returns the root query command for the module. The subcommands of this root command are used by end-users to generate new queries to the subset of the state defined by the module -func (AppModuleBasic) GetQueryCmd() *cobra.Command { - return cli.GetQueryCmd(types.StoreKey) + return genesis.Validate() } // ---------------------------------------------------------------------------- // AppModule // ---------------------------------------------------------------------------- -// AppModule implements the AppModule interface that defines the inter-dependent methods that modules need to implement type AppModule struct { AppModuleBasic - accountKeeper types.AccountKeeper - bankKeeper types.BankKeeper - keeper *keeper.Keeper + keeper *keeper.Keeper } -func NewAppModule( - cdc codec.Codec, - accountKeeper types.AccountKeeper, - bankKeeper types.BankKeeper, - keeper *keeper.Keeper, -) AppModule { +func NewAppModule(keeper *keeper.Keeper) AppModule { return AppModule{ - AppModuleBasic: NewAppModuleBasic(cdc), - accountKeeper: accountKeeper, - bankKeeper: bankKeeper, + AppModuleBasic: NewAppModuleBasic(), keeper: keeper, } } -// Deprecated: use RegisterServices -func (am AppModule) Route() sdk.Route { return sdk.Route{} } +func (AppModule) IsOnePerModuleType() {} + +func (AppModule) IsAppModule() {} + +func (AppModule) ConsensusVersion() uint64 { return ConsensusVersion } -// Deprecated: use RegisterServices -func (AppModule) QuerierRoute() string { return types.RouterKey } +func (m AppModule) InitGenesis(ctx sdk.Context, cdc codec.JSONCodec, bz json.RawMessage) { + var genesis types.GenesisState + cdc.MustUnmarshalJSON(bz, &genesis) -// Deprecated: use RegisterServices -func (am AppModule) LegacyQuerierHandler(_ *codec.LegacyAmino) sdk.Querier { - return nil + InitGenesis(ctx, m.keeper, genesis) } -// RegisterServices registers a gRPC query service to respond to the module-specific gRPC queries -func (am AppModule) RegisterServices(cfg module.Configurator) { - types.RegisterMsgServer(cfg.MsgServer(), keeper.NewMsgServerImpl(am.keeper)) - types.RegisterQueryServer(cfg.QueryServer(), am.keeper) +func (m AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.RawMessage { + genesis := ExportGenesis(ctx, m.keeper) + return cdc.MustMarshalJSON(genesis) } -// RegisterInvariants registers the invariants of the module. If an invariant deviates from its predicted value, the InvariantRegistry triggers appropriate logic (most often the chain will be halted) -func (am AppModule) RegisterInvariants(_ sdk.InvariantRegistry) {} +// RegisterServices registers a gRPC query service to respond to the module-specific gRPC queries +func (m AppModule) RegisterServices(cfg module.Configurator) { + types.RegisterMsgServer(cfg.MsgServer(), keeper.NewMsgServerImpl(m.keeper)) + types.RegisterQueryServer(cfg.QueryServer(), m.keeper) +} + +func (AppModule) AutoCLIOptions() *autocliv1.ModuleOptions { + return &autocliv1.ModuleOptions{ + Tx: &autocliv1.ServiceCommandDescriptor{ + Service: cctpv1.Msg_ServiceDesc.ServiceName, + RpcCommandOptions: []*autocliv1.RpcCommandOptions{}, + EnhanceCustomCommand: true, + }, + Query: &autocliv1.ServiceCommandDescriptor{ + Service: cctpv1.Query_ServiceDesc.ServiceName, + RpcCommandOptions: []*autocliv1.RpcCommandOptions{}, + EnhanceCustomCommand: true, + }, + } +} -// InitGenesis performs the module's genesis initialization. It returns no validator updates. -func (am AppModule) InitGenesis(ctx sdk.Context, cdc codec.JSONCodec, gs json.RawMessage) []abci.ValidatorUpdate { - var genState types.GenesisState - // Initialize global index to index in genesis state - cdc.MustUnmarshalJSON(gs, &genState) +func (AppModule) GetTxCmd() *cobra.Command { + return cli.GetTxCmd() +} - InitGenesis(ctx, am.keeper, genState) +func (AppModule) GetQueryCmd() *cobra.Command { + return cli.GetQueryCmd() +} - return []abci.ValidatorUpdate{} +func init() { + appmodule.Register(&modulev1.Module{}, + appmodule.Provide(ProvideModule), + ) } -// ExportGenesis returns the module's exported genesis state as raw JSON bytes. -func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.RawMessage { - genState := ExportGenesis(ctx, am.keeper) - return cdc.MustMarshalJSON(genState) +type ModuleInputs struct { + depinject.In + + Config *modulev1.Module + Cdc codec.Codec + StoreService store.KVStoreService + Logger log.Logger + + BankKeeper types.BankKeeper + FiatTokenFactoryKeeper types.FiatTokenfactoryKeeper } -// ConsensusVersion is a sequence number for state-breaking change of the module. It should be incremented on each consensus-breaking change introduced by the module. To avoid wrong/empty versions, the initial version should be set to 1 -func (AppModule) ConsensusVersion() uint64 { return 1 } +type ModuleOutputs struct { + depinject.Out + + Keeper *keeper.Keeper + Module appmodule.AppModule +} -// BeginBlock contains the logic that is automatically triggered at the beginning of each block -func (am AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock) {} +func ProvideModule(in ModuleInputs) ModuleOutputs { + k := keeper.NewKeeper( + in.Cdc, + in.Logger, + in.StoreService, + in.BankKeeper, + in.FiatTokenFactoryKeeper, + ) + m := NewAppModule(k) -// EndBlock contains the logic that is automatically triggered at the end of each block -func (am AppModule) EndBlock(_ sdk.Context, _ abci.RequestEndBlock) []abci.ValidatorUpdate { - return []abci.ValidatorUpdate{} + return ModuleOutputs{Keeper: k, Module: m} } diff --git a/x/cctp/module_simulation.go b/x/cctp/module_simulation.go deleted file mode 100644 index eb3742c..0000000 --- a/x/cctp/module_simulation.go +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package cctp - -import ( - "math/rand" - - "github.com/circlefin/noble-cctp/x/cctp/simulation" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/module" - simTypes "github.com/cosmos/cosmos-sdk/types/simulation" -) - -var _ module.AppModuleSimulation = AppModule{} - -func (am AppModule) GenerateGenesisState(input *module.SimulationState) { - simulation.GenerateGenesisState(input) -} - -func (am AppModule) ProposalContents(_ module.SimulationState) []simTypes.WeightedProposalContent { - // We don't have any governance proposals in the CCTP module. - return nil -} - -func (am AppModule) RandomizedParams(_ *rand.Rand) []simTypes.ParamChange { - // We don't have any parameters in the CCTP module. - return nil -} - -func (am AppModule) RegisterStoreDecoder(_ sdk.StoreDecoderRegistry) {} - -func (am AppModule) WeightedOperations(simState module.SimulationState) []simTypes.WeightedOperation { - return simulation.WeightedOperations(simState.Cdc, am.accountKeeper, am.bankKeeper, am.keeper) -} diff --git a/x/cctp/simulation/genesis.go b/x/cctp/simulation/genesis.go deleted file mode 100644 index c3ce32f..0000000 --- a/x/cctp/simulation/genesis.go +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - package simulation - -import ( - "github.com/circlefin/noble-cctp/x/cctp/types" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/module" - "github.com/cosmos/cosmos-sdk/types/simulation" - bankTypes "github.com/cosmos/cosmos-sdk/x/bank/types" -) - -func GenerateGenesisState(simState *module.SimulationState) { - owner, _ := simulation.RandomAcc(simState.Rand, simState.Accounts) - attesterManager, _ := simulation.RandomAcc(simState.Rand, simState.Accounts) - pauser, _ := simulation.RandomAcc(simState.Rand, simState.Accounts) - tokenController, _ := simulation.RandomAcc(simState.Rand, simState.Accounts) - - genesis := types.GenesisState{ - Owner: owner.Address.String(), - AttesterManager: attesterManager.Address.String(), - Pauser: pauser.Address.String(), - TokenController: tokenController.Address.String(), - - BurningAndMintingPaused: &types.BurningAndMintingPaused{Paused: simState.Rand.Int63n(101) <= 50}, - SendingAndReceivingMessagesPaused: &types.SendingAndReceivingMessagesPaused{Paused: simState.Rand.Int63n(101) > 50}, - } - - simState.GenState[types.ModuleName] = simState.Cdc.MustMarshalJSON(&genesis) - - // Give the first account some USDC for testing. - user := simState.Accounts[0] - - var bankGenesis bankTypes.GenesisState - simState.Cdc.MustUnmarshalJSON(simState.GenState[bankTypes.ModuleName], &bankGenesis) - - for i := 0; i < len(bankGenesis.Balances); i++ { - balance := bankGenesis.Balances[i] - if balance.Address == user.Address.String() { - coin := sdk.NewCoin("uusdc", sdk.NewInt(simState.Rand.Int63())) - balance.Coins = balance.Coins.Add(coin) - - bankGenesis.Balances[i] = balance - bankGenesis.Supply = bankGenesis.Supply.Add(coin) - } - } - - simState.GenState[bankTypes.ModuleName] = simState.Cdc.MustMarshalJSON(&bankGenesis) -} diff --git a/x/cctp/simulation/operations.go b/x/cctp/simulation/operations.go deleted file mode 100644 index 1d0e811..0000000 --- a/x/cctp/simulation/operations.go +++ /dev/null @@ -1,1146 +0,0 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - package simulation - -import ( - "crypto/elliptic" - "math/rand" - - "cosmossdk.io/math" - - "github.com/circlefin/noble-cctp/x/cctp/keeper" - "github.com/circlefin/noble-cctp/x/cctp/types" - "github.com/cosmos/cosmos-sdk/baseapp" - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/simapp/params" - sdk "github.com/cosmos/cosmos-sdk/types" - simTypes "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/cosmos/cosmos-sdk/x/simulation" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/crypto" -) - -func WeightedOperations(_ codec.JSONCodec, accountKeeper types.AccountKeeper, bankKeeper types.BankKeeper, keeper *keeper.Keeper) simulation.WeightedOperations { - return simulation.WeightedOperations{ - simulation.NewWeightedOperation( - 1, SimulateAcceptOwner(accountKeeper, keeper), - ), - simulation.NewWeightedOperation( - 1, SimulateAddRemoteTokenMessenger(accountKeeper, keeper), - ), - simulation.NewWeightedOperation( - 1, SimulateDepositForBurn(accountKeeper, bankKeeper, keeper), - ), - simulation.NewWeightedOperation( - 1, SimulateDepositForBurnWithCaller(accountKeeper, bankKeeper, keeper), - ), - simulation.NewWeightedOperation( - 1, SimulateDisableAttester(accountKeeper, keeper), - ), - simulation.NewWeightedOperation( - 1, SimulateEnableAttester(accountKeeper, keeper), - ), - simulation.NewWeightedOperation( - 1, SimulateLinkTokenPair(accountKeeper, keeper), - ), - simulation.NewWeightedOperation( - 1, SimulatePausingOfBurningAndMinting(accountKeeper, keeper), - ), - simulation.NewWeightedOperation( - 1, SimulatePausingOfSendingAndReceiving(accountKeeper, keeper), - ), - simulation.NewWeightedOperation( - 1, SimulateReceiveMessage(accountKeeper, keeper), - ), - simulation.NewWeightedOperation( - 1, SimulateRemoveRemoteTokenMessenger(accountKeeper, keeper), - ), - simulation.NewWeightedOperation( - 1, SimulateReplaceDepositForBurn(accountKeeper, bankKeeper, keeper), - ), - simulation.NewWeightedOperation( - 1, SimulateReplaceMessage(accountKeeper, keeper), - ), - simulation.NewWeightedOperation( - 1, SimulateSendMessage(accountKeeper, keeper), - ), - simulation.NewWeightedOperation( - 1, SimulateSendMessageWithCaller(accountKeeper, keeper), - ), - simulation.NewWeightedOperation( - 1, SimulateSetMaxBurnAmountPerMessage(accountKeeper, keeper), - ), - simulation.NewWeightedOperation( - 1, SimulateUnlinkTokenPair(accountKeeper, keeper), - ), - simulation.NewWeightedOperation( - 1, SimulateUpdateAttesterManager(accountKeeper, keeper), - ), - simulation.NewWeightedOperation( - 1, SimulateUpdateMaxMessageBodySize(accountKeeper, keeper), - ), - simulation.NewWeightedOperation( - 1, SimulateUpdateOwner(accountKeeper, keeper), - ), - simulation.NewWeightedOperation( - 1, SimulateUpdatePauser(accountKeeper, keeper), - ), - simulation.NewWeightedOperation( - 1, SimulateUpdateSignatureThreshold(accountKeeper, keeper), - ), - simulation.NewWeightedOperation( - 1, SimulateUpdateTokenController(accountKeeper, keeper), - ), - } -} - -func SimulateAcceptOwner(accountKeeper types.AccountKeeper, keeper *keeper.Keeper) simTypes.Operation { - return func(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accounts []simTypes.Account, _ string) (simTypes.OperationMsg, []simTypes.FutureOperation, error) { - owner, ok := simTypes.FindAccount(accounts, sdk.MustAccAddressFromBech32(keeper.GetOwner(ctx))) - if !ok { - return simTypes.NoOpMsg(types.ModuleName, "", ""), nil, nil - } - - newOwner, _ := simTypes.RandomAcc(r, accounts) - - updateMsg := &types.MsgUpdateOwner{ - From: owner.Address.String(), - NewOwner: newOwner.Address.String(), - } - acceptMsg := &types.MsgAcceptOwner{From: newOwner.Address.String()} - - updateTx := simulation.OperationInput{ - R: r, - App: app, - TxGen: params.MakeTestEncodingConfig().TxConfig, - Cdc: nil, - Msg: updateMsg, - MsgType: updateMsg.Type(), - Context: ctx, - SimAccount: owner, - AccountKeeper: accountKeeper, - ModuleName: types.ModuleName, - } - acceptTx := simulation.OperationInput{ - R: r, - App: app, - TxGen: params.MakeTestEncodingConfig().TxConfig, - Cdc: nil, - Msg: acceptMsg, - MsgType: acceptMsg.Type(), - Context: ctx, - SimAccount: newOwner, - AccountKeeper: accountKeeper, - ModuleName: types.ModuleName, - } - - if operationMsg, futureOperations, err := simulation.GenAndDeliverTx(updateTx, sdk.NewCoins()); err != nil { - return operationMsg, futureOperations, err - } - return simulation.GenAndDeliverTx(acceptTx, sdk.NewCoins()) - } -} - -func SimulateAddRemoteTokenMessenger(accountKeeper types.AccountKeeper, keeper *keeper.Keeper) simTypes.Operation { - return func(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accounts []simTypes.Account, _ string) (simTypes.OperationMsg, []simTypes.FutureOperation, error) { - domain := r.Uint32() - tokenMessenger := make([]byte, 32) - r.Read(tokenMessenger) - - owner, ok := simTypes.FindAccount(accounts, sdk.MustAccAddressFromBech32(keeper.GetOwner(ctx))) - if !ok { - return simTypes.NoOpMsg(types.ModuleName, "", ""), nil, nil - } - - msg := &types.MsgAddRemoteTokenMessenger{ - From: owner.Address.String(), - DomainId: domain, - Address: tokenMessenger, - } - - tx := simulation.OperationInput{ - R: r, - App: app, - TxGen: params.MakeTestEncodingConfig().TxConfig, - Cdc: nil, - Msg: msg, - MsgType: msg.Type(), - Context: ctx, - SimAccount: owner, - AccountKeeper: accountKeeper, - ModuleName: types.ModuleName, - } - - return simulation.GenAndDeliverTx(tx, sdk.NewCoins()) - } -} - -func SimulateDepositForBurn(accountKeeper types.AccountKeeper, bankKeeper types.BankKeeper, keeper *keeper.Keeper) simTypes.Operation { - return func(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accounts []simTypes.Account, _ string) (simTypes.OperationMsg, []simTypes.FutureOperation, error) { - if paused, _ := keeper.GetBurningAndMintingPaused(ctx); paused.Paused { - return simTypes.NoOpMsg(types.ModuleName, "", ""), nil, nil - } - - caller := accounts[0] - - balance := bankKeeper.GetBalance(ctx, caller.Address, "uusdc") - keeper.SetPerMessageBurnLimit(ctx, types.PerMessageBurnLimit{ - Denom: "uusdc", - Amount: math.NewInt(balance.Amount.Int64()), - }) - amount := r.Int63n(balance.Amount.Int64()) - - domain := r.Uint32() - mintRecipient := make([]byte, 32) - r.Read(mintRecipient) - tokenMessenger := make([]byte, 32) - r.Read(tokenMessenger) - - keeper.SetRemoteTokenMessenger(ctx, types.RemoteTokenMessenger{ - DomainId: domain, - Address: tokenMessenger, - }) - - burn := &types.MsgDepositForBurn{ - From: caller.Address.String(), - Amount: math.NewInt(amount), - DestinationDomain: domain, - MintRecipient: mintRecipient, - BurnToken: "uusdc", - } - - tx := simulation.OperationInput{ - R: r, - App: app, - TxGen: params.MakeTestEncodingConfig().TxConfig, - Cdc: nil, - Msg: burn, - MsgType: burn.Type(), - Context: ctx, - SimAccount: caller, - AccountKeeper: accountKeeper, - ModuleName: types.ModuleName, - } - - return simulation.GenAndDeliverTx(tx, sdk.NewCoins()) - } -} - -func SimulateDepositForBurnWithCaller(accountKeeper types.AccountKeeper, bankKeeper types.BankKeeper, keeper *keeper.Keeper) simTypes.Operation { - return func(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accounts []simTypes.Account, _ string) (simTypes.OperationMsg, []simTypes.FutureOperation, error) { - if paused, _ := keeper.GetBurningAndMintingPaused(ctx); paused.Paused { - return simTypes.NoOpMsg(types.ModuleName, "", ""), nil, nil - } - - caller := accounts[0] - - balance := bankKeeper.GetBalance(ctx, caller.Address, "uusdc") - keeper.SetPerMessageBurnLimit(ctx, types.PerMessageBurnLimit{ - Denom: "uusdc", - Amount: math.NewInt(balance.Amount.Int64()), - }) - amount := r.Int63n(balance.Amount.Int64()) - - domain := r.Uint32() - mintRecipient := make([]byte, 32) - r.Read(mintRecipient) - destinationCaller := make([]byte, 32) - r.Read(destinationCaller) - tokenMessenger := make([]byte, 32) - r.Read(tokenMessenger) - - keeper.SetRemoteTokenMessenger(ctx, types.RemoteTokenMessenger{ - DomainId: domain, - Address: tokenMessenger, - }) - - msg := &types.MsgDepositForBurnWithCaller{ - From: caller.Address.String(), - Amount: math.NewInt(amount), - DestinationDomain: domain, - MintRecipient: mintRecipient, - BurnToken: "uusdc", - DestinationCaller: destinationCaller, - } - - tx := simulation.OperationInput{ - R: r, - App: app, - TxGen: params.MakeTestEncodingConfig().TxConfig, - Cdc: nil, - Msg: msg, - MsgType: msg.Type(), - Context: ctx, - SimAccount: caller, - AccountKeeper: accountKeeper, - ModuleName: types.ModuleName, - } - - return simulation.GenAndDeliverTx(tx, sdk.NewCoins()) - } -} - -func SimulateDisableAttester(accountKeeper types.AccountKeeper, keeper *keeper.Keeper) simTypes.Operation { - return func(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accounts []simTypes.Account, chainID string) (simTypes.OperationMsg, []simTypes.FutureOperation, error) { - for i := 0; i < r.Intn(101); i++ { - enableFunc := SimulateEnableAttester(accountKeeper, keeper) - if operationMsg, futureOperations, err := enableFunc(r, app, ctx, accounts, chainID); err != nil { - return operationMsg, futureOperations, err - } - } - - attesters := keeper.GetAllAttesters(ctx) - attester := attesters[r.Intn(len(attesters))] - - attesterManager, ok := simTypes.FindAccount(accounts, sdk.MustAccAddressFromBech32(keeper.GetAttesterManager(ctx))) - if !ok { - return simTypes.NoOpMsg(types.ModuleName, "", ""), nil, nil - } - - msg := &types.MsgDisableAttester{ - From: attesterManager.Address.String(), - Attester: attester.Attester, - } - - tx := simulation.OperationInput{ - R: r, - App: app, - TxGen: params.MakeTestEncodingConfig().TxConfig, - Cdc: nil, - Msg: msg, - MsgType: msg.Type(), - Context: ctx, - SimAccount: attesterManager, - AccountKeeper: accountKeeper, - ModuleName: types.ModuleName, - } - - return simulation.GenAndDeliverTx(tx, sdk.NewCoins()) - } -} - -func SimulateEnableAttester(accountKeeper types.AccountKeeper, keeper *keeper.Keeper) simTypes.Operation { - return func(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accounts []simTypes.Account, _ string) (simTypes.OperationMsg, []simTypes.FutureOperation, error) { - key, _ := crypto.GenerateKey() - attester := "0x" + common.Bytes2Hex( - elliptic.Marshal(key.PublicKey, key.PublicKey.X, key.PublicKey.Y), //nolint:staticcheck - ) - - attesterManager, ok := simTypes.FindAccount(accounts, sdk.MustAccAddressFromBech32(keeper.GetAttesterManager(ctx))) - if !ok { - return simTypes.NoOpMsg(types.ModuleName, "", ""), nil, nil - } - - msg := &types.MsgEnableAttester{ - From: attesterManager.Address.String(), - Attester: attester, - } - - tx := simulation.OperationInput{ - R: r, - App: app, - TxGen: params.MakeTestEncodingConfig().TxConfig, - Cdc: nil, - Msg: msg, - MsgType: msg.Type(), - Context: ctx, - SimAccount: attesterManager, - AccountKeeper: accountKeeper, - ModuleName: types.ModuleName, - } - - return simulation.GenAndDeliverTx(tx, sdk.NewCoins()) - } -} - -func SimulateLinkTokenPair(accountKeeper types.AccountKeeper, keeper *keeper.Keeper) simTypes.Operation { - return func(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accounts []simTypes.Account, _ string) (simTypes.OperationMsg, []simTypes.FutureOperation, error) { - domain := r.Uint32() - token := make([]byte, 32) - r.Read(token) - - tokenController, ok := simTypes.FindAccount(accounts, sdk.MustAccAddressFromBech32(keeper.GetTokenController(ctx))) - if !ok { - return simTypes.NoOpMsg(types.ModuleName, "", ""), nil, nil - } - - msg := &types.MsgLinkTokenPair{ - From: tokenController.Address.String(), - RemoteDomain: domain, - RemoteToken: token, - LocalToken: "uusdc", - } - - tx := simulation.OperationInput{ - R: r, - App: app, - TxGen: params.MakeTestEncodingConfig().TxConfig, - Cdc: nil, - Msg: msg, - MsgType: msg.Type(), - Context: ctx, - SimAccount: tokenController, - AccountKeeper: accountKeeper, - ModuleName: types.ModuleName, - } - - return simulation.GenAndDeliverTx(tx, sdk.NewCoins()) - } -} - -func SimulatePausingOfBurningAndMinting(accountKeeper types.AccountKeeper, keeper *keeper.Keeper) simTypes.Operation { - return func(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accounts []simTypes.Account, _ string) (simTypes.OperationMsg, []simTypes.FutureOperation, error) { - paused, ok := keeper.GetBurningAndMintingPaused(ctx) - if !ok { - return simTypes.NoOpMsg(types.ModuleName, "", ""), nil, nil - } - - pauser, ok := simTypes.FindAccount(accounts, sdk.MustAccAddressFromBech32(keeper.GetPauser(ctx))) - if !ok { - return simTypes.NoOpMsg(types.ModuleName, "", ""), nil, nil - } - - var msg sdk.Msg - if paused.Paused { - // Then we need to unpause. - msg = &types.MsgUnpauseBurningAndMinting{ - From: pauser.Address.String(), - } - } else { - // Then we need to pause. - msg = &types.MsgPauseBurningAndMinting{ - From: pauser.Address.String(), - } - } - - tx := simulation.OperationInput{ - R: r, - App: app, - TxGen: params.MakeTestEncodingConfig().TxConfig, - Cdc: nil, - Msg: msg, - MsgType: sdk.MsgTypeURL(msg), - Context: ctx, - SimAccount: pauser, - AccountKeeper: accountKeeper, - ModuleName: types.ModuleName, - } - - return simulation.GenAndDeliverTx(tx, sdk.NewCoins()) - } -} - -func SimulatePausingOfSendingAndReceiving(accountKeeper types.AccountKeeper, keeper *keeper.Keeper) simTypes.Operation { - return func(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accounts []simTypes.Account, _ string) (simTypes.OperationMsg, []simTypes.FutureOperation, error) { - paused, ok := keeper.GetSendingAndReceivingMessagesPaused(ctx) - if !ok { - return simTypes.NoOpMsg(types.ModuleName, "", ""), nil, nil - } - - pauser, ok := simTypes.FindAccount(accounts, sdk.MustAccAddressFromBech32(keeper.GetPauser(ctx))) - if !ok { - return simTypes.NoOpMsg(types.ModuleName, "", ""), nil, nil - } - - var msg sdk.Msg - if paused.Paused { - // Then we need to unpause. - msg = &types.MsgUnpauseSendingAndReceivingMessages{ - From: pauser.Address.String(), - } - } else { - // Then we need to pause. - msg = &types.MsgPauseSendingAndReceivingMessages{ - From: pauser.Address.String(), - } - } - - tx := simulation.OperationInput{ - R: r, - App: app, - TxGen: params.MakeTestEncodingConfig().TxConfig, - Cdc: nil, - Msg: msg, - MsgType: sdk.MsgTypeURL(msg), - Context: ctx, - SimAccount: pauser, - AccountKeeper: accountKeeper, - ModuleName: types.ModuleName, - } - - return simulation.GenAndDeliverTx(tx, sdk.NewCoins()) - } -} - -func SimulateReceiveMessage(accountKeeper types.AccountKeeper, keeper *keeper.Keeper) simTypes.Operation { - return func(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accounts []simTypes.Account, _ string) (simTypes.OperationMsg, []simTypes.FutureOperation, error) { - if paused, _ := keeper.GetSendingAndReceivingMessagesPaused(ctx); paused.Paused { - return simTypes.NoOpMsg(types.ModuleName, "", ""), nil, nil - } - - maxBodySize, _ := keeper.GetMaxMessageBodySize(ctx) - bodySize := r.Intn(int(maxBodySize.Amount)) - - sender := make([]byte, 32) - r.Read(sender) - recipient := make([]byte, 32) - r.Read(recipient) - body := make([]byte, bodySize) - r.Read(body) - - rawMessage := types.Message{ - Version: 0, - SourceDomain: r.Uint32(), - DestinationDomain: 4, - Nonce: 0, - Sender: sender, - Recipient: recipient, - DestinationCaller: make([]byte, 32), - MessageBody: body, - } - message, _ := rawMessage.Bytes() - - key, _ := crypto.GenerateKey() - attester := "0x" + common.Bytes2Hex( - elliptic.Marshal(key.PublicKey, key.PublicKey.X, key.PublicKey.Y), //nolint:staticcheck - ) - - keeper.SetAttester(ctx, types.Attester{Attester: attester}) - keeper.SetSignatureThreshold(ctx, types.SignatureThreshold{Amount: 1}) - - digest := crypto.Keccak256(message) - attestation, _ := crypto.Sign(digest, key) - - caller, _ := simTypes.RandomAcc(r, accounts) - - msg := &types.MsgReceiveMessage{ - From: caller.Address.String(), - Message: message, - Attestation: attestation, - } - - tx := simulation.OperationInput{ - R: r, - App: app, - TxGen: params.MakeTestEncodingConfig().TxConfig, - Cdc: nil, - Msg: msg, - MsgType: sdk.MsgTypeURL(msg), - Context: ctx, - SimAccount: caller, - AccountKeeper: accountKeeper, - ModuleName: types.ModuleName, - } - - return simulation.GenAndDeliverTx(tx, sdk.NewCoins()) - } -} - -func SimulateRemoveRemoteTokenMessenger(accountKeeper types.AccountKeeper, keeper *keeper.Keeper) simTypes.Operation { - return func(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accounts []simTypes.Account, chainID string) (simTypes.OperationMsg, []simTypes.FutureOperation, error) { - for i := 0; i < r.Intn(101); i++ { - addFunc := SimulateAddRemoteTokenMessenger(accountKeeper, keeper) - if operationMsg, futureOperations, err := addFunc(r, app, ctx, accounts, chainID); err != nil { - return operationMsg, futureOperations, err - } - } - - tokenMessengers := keeper.GetRemoteTokenMessengers(ctx) - domain := tokenMessengers[r.Intn(len(tokenMessengers))].DomainId - - owner, ok := simTypes.FindAccount(accounts, sdk.MustAccAddressFromBech32(keeper.GetOwner(ctx))) - if !ok { - return simTypes.NoOpMsg(types.ModuleName, "", ""), nil, nil - } - - msg := &types.MsgRemoveRemoteTokenMessenger{ - From: owner.Address.String(), - DomainId: domain, - } - - tx := simulation.OperationInput{ - R: r, - App: app, - TxGen: params.MakeTestEncodingConfig().TxConfig, - Cdc: nil, - Msg: msg, - MsgType: msg.Type(), - Context: ctx, - SimAccount: owner, - AccountKeeper: accountKeeper, - ModuleName: types.ModuleName, - } - - return simulation.GenAndDeliverTx(tx, sdk.NewCoins()) - } -} - -func SimulateReplaceDepositForBurn(accountKeeper types.AccountKeeper, bankKeeper types.BankKeeper, keeper *keeper.Keeper) simTypes.Operation { - return func(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accounts []simTypes.Account, chainID string) (simTypes.OperationMsg, []simTypes.FutureOperation, error) { - if paused, _ := keeper.GetSendingAndReceivingMessagesPaused(ctx); paused.Paused { - return simTypes.NoOpMsg(types.ModuleName, "", ""), nil, nil - } - - nonce, _ := keeper.GetNextAvailableNonce(ctx) - - caller := accounts[0] - - balance := bankKeeper.GetBalance(ctx, caller.Address, "uusdc") - keeper.SetPerMessageBurnLimit(ctx, types.PerMessageBurnLimit{ - Denom: "uusdc", - Amount: math.NewInt(balance.Amount.Int64()), - }) - amount := r.Int63n(balance.Amount.Int64()) - - domain := r.Uint32() - sender := make([]byte, 32) - copy(sender[12:], caller.Address) - mintRecipient := make([]byte, 32) - r.Read(mintRecipient) - newMintRecipient := make([]byte, 32) - r.Read(newMintRecipient) - newDestinationCaller := make([]byte, 32) - r.Read(newDestinationCaller) - tokenMessenger := make([]byte, 32) - r.Read(tokenMessenger) - - keeper.SetRemoteTokenMessenger(ctx, types.RemoteTokenMessenger{ - DomainId: domain, - Address: tokenMessenger, - }) - - rawBody := types.BurnMessage{ - Version: 0, - BurnToken: crypto.Keccak256([]byte("uusdc")), - MintRecipient: mintRecipient, - Amount: math.NewInt(amount), - MessageSender: sender, - } - body, _ := rawBody.Bytes() - - rawMessage := types.Message{ - Version: 0, - SourceDomain: 4, - DestinationDomain: domain, - Nonce: nonce.Nonce, - Sender: types.PaddedModuleAddress, - Recipient: tokenMessenger, - DestinationCaller: make([]byte, 32), - MessageBody: body, - } - message, _ := rawMessage.Bytes() - - key, _ := crypto.GenerateKey() - attester := "0x" + common.Bytes2Hex( - elliptic.Marshal(key.PublicKey, key.PublicKey.X, key.PublicKey.Y), //nolint:staticcheck - ) - - keeper.SetAttester(ctx, types.Attester{Attester: attester}) - keeper.SetSignatureThreshold(ctx, types.SignatureThreshold{Amount: 1}) - - digest := crypto.Keccak256(message) - attestation, _ := crypto.Sign(digest, key) - - sendMsg := &types.MsgDepositForBurn{ - From: caller.Address.String(), - Amount: math.NewInt(amount), - DestinationDomain: domain, - MintRecipient: mintRecipient, - BurnToken: "uusdc", - } - replaceMsg := &types.MsgReplaceDepositForBurn{ - From: caller.Address.String(), - OriginalMessage: message, - OriginalAttestation: attestation, - NewDestinationCaller: newDestinationCaller, - NewMintRecipient: newMintRecipient, - } - - sendTx := simulation.OperationInput{ - R: r, - App: app, - TxGen: params.MakeTestEncodingConfig().TxConfig, - Cdc: nil, - Msg: sendMsg, - MsgType: sendMsg.Type(), - Context: ctx, - SimAccount: caller, - AccountKeeper: accountKeeper, - ModuleName: types.ModuleName, - } - replaceTx := simulation.OperationInput{ - R: r, - App: app, - TxGen: params.MakeTestEncodingConfig().TxConfig, - Cdc: nil, - Msg: replaceMsg, - MsgType: replaceMsg.Type(), - Context: ctx, - SimAccount: caller, - AccountKeeper: accountKeeper, - ModuleName: types.ModuleName, - } - - if operationMsg, futureOperations, err := simulation.GenAndDeliverTx(sendTx, sdk.NewCoins()); err != nil { - return operationMsg, futureOperations, err - } - return simulation.GenAndDeliverTx(replaceTx, sdk.NewCoins()) - } -} - -func SimulateReplaceMessage(accountKeeper types.AccountKeeper, keeper *keeper.Keeper) simTypes.Operation { - return func(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accounts []simTypes.Account, chainID string) (simTypes.OperationMsg, []simTypes.FutureOperation, error) { - if paused, _ := keeper.GetSendingAndReceivingMessagesPaused(ctx); paused.Paused { - return simTypes.NoOpMsg(types.ModuleName, "", ""), nil, nil - } - - maxBodySize, _ := keeper.GetMaxMessageBodySize(ctx) - bodySize := r.Intn(int(maxBodySize.Amount)) - - nonce, _ := keeper.GetNextAvailableNonce(ctx) - - caller, _ := simTypes.RandomAcc(r, accounts) - - domain := r.Uint32() - sender := make([]byte, 32) - copy(sender[12:], caller.Address) - recipient := make([]byte, 32) - r.Read(recipient) - body := make([]byte, bodySize) - r.Read(body) - newBody := make([]byte, bodySize) - r.Read(newBody) - newDestinationCaller := make([]byte, 32) - r.Read(newDestinationCaller) - - rawMessage := types.Message{ - Version: 0, - SourceDomain: 4, - DestinationDomain: domain, - Nonce: nonce.Nonce, - Sender: sender, - Recipient: recipient, - DestinationCaller: make([]byte, 32), - MessageBody: body, - } - message, _ := rawMessage.Bytes() - - key, _ := crypto.GenerateKey() - attester := "0x" + common.Bytes2Hex( - elliptic.Marshal(key.PublicKey, key.PublicKey.X, key.PublicKey.Y), //nolint:staticcheck - ) - - keeper.SetAttester(ctx, types.Attester{Attester: attester}) - keeper.SetSignatureThreshold(ctx, types.SignatureThreshold{Amount: 1}) - - digest := crypto.Keccak256(message) - attestation, _ := crypto.Sign(digest, key) - - sendMsg := &types.MsgSendMessage{ - From: caller.Address.String(), - DestinationDomain: domain, - Recipient: recipient, - MessageBody: body, - } - replaceMsg := &types.MsgReplaceMessage{ - From: caller.Address.String(), - OriginalMessage: message, - OriginalAttestation: attestation, - NewMessageBody: newBody, - NewDestinationCaller: newDestinationCaller, - } - - sendTx := simulation.OperationInput{ - R: r, - App: app, - TxGen: params.MakeTestEncodingConfig().TxConfig, - Cdc: nil, - Msg: sendMsg, - MsgType: sendMsg.Type(), - Context: ctx, - SimAccount: caller, - AccountKeeper: accountKeeper, - ModuleName: types.ModuleName, - } - replaceTx := simulation.OperationInput{ - R: r, - App: app, - TxGen: params.MakeTestEncodingConfig().TxConfig, - Cdc: nil, - Msg: replaceMsg, - MsgType: replaceMsg.Type(), - Context: ctx, - SimAccount: caller, - AccountKeeper: accountKeeper, - ModuleName: types.ModuleName, - } - - if operationMsg, futureOperations, err := simulation.GenAndDeliverTx(sendTx, sdk.NewCoins()); err != nil { - return operationMsg, futureOperations, err - } - return simulation.GenAndDeliverTx(replaceTx, sdk.NewCoins()) - } -} - -func SimulateSendMessage(accountKeeper types.AccountKeeper, keeper *keeper.Keeper) simTypes.Operation { - return func(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accounts []simTypes.Account, chainID string) (simTypes.OperationMsg, []simTypes.FutureOperation, error) { - if paused, _ := keeper.GetSendingAndReceivingMessagesPaused(ctx); paused.Paused { - return simTypes.NoOpMsg(types.ModuleName, "", ""), nil, nil - } - - maxBodySize, _ := keeper.GetMaxMessageBodySize(ctx) - bodySize := r.Intn(int(maxBodySize.Amount)) - - domain := r.Uint32() - recipient := make([]byte, 32) - r.Read(recipient) - body := make([]byte, bodySize) - r.Read(body) - - caller, _ := simTypes.RandomAcc(r, accounts) - - msg := &types.MsgSendMessage{ - From: caller.Address.String(), - DestinationDomain: domain, - Recipient: recipient, - MessageBody: body, - } - - tx := simulation.OperationInput{ - R: r, - App: app, - TxGen: params.MakeTestEncodingConfig().TxConfig, - Cdc: nil, - Msg: msg, - MsgType: msg.Type(), - Context: ctx, - SimAccount: caller, - AccountKeeper: accountKeeper, - ModuleName: types.ModuleName, - } - - return simulation.GenAndDeliverTx(tx, sdk.NewCoins()) - } -} - -func SimulateSendMessageWithCaller(accountKeeper types.AccountKeeper, keeper *keeper.Keeper) simTypes.Operation { - return func(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accounts []simTypes.Account, chainID string) (simTypes.OperationMsg, []simTypes.FutureOperation, error) { - if paused, _ := keeper.GetSendingAndReceivingMessagesPaused(ctx); paused.Paused { - return simTypes.NoOpMsg(types.ModuleName, "", ""), nil, nil - } - - maxBodySize, _ := keeper.GetMaxMessageBodySize(ctx) - bodySize := r.Intn(int(maxBodySize.Amount)) - - domain := r.Uint32() - recipient := make([]byte, 32) - r.Read(recipient) - body := make([]byte, bodySize) - r.Read(body) - destCaller := make([]byte, 32) - r.Read(destCaller) - - caller, _ := simTypes.RandomAcc(r, accounts) - - msg := &types.MsgSendMessageWithCaller{ - From: caller.Address.String(), - DestinationDomain: domain, - Recipient: recipient, - MessageBody: body, - DestinationCaller: destCaller, - } - - tx := simulation.OperationInput{ - R: r, - App: app, - TxGen: params.MakeTestEncodingConfig().TxConfig, - Cdc: nil, - Msg: msg, - MsgType: msg.Type(), - Context: ctx, - SimAccount: caller, - AccountKeeper: accountKeeper, - ModuleName: types.ModuleName, - } - - return simulation.GenAndDeliverTx(tx, sdk.NewCoins()) - } -} - -func SimulateUnlinkTokenPair(accountKeeper types.AccountKeeper, keeper *keeper.Keeper) simTypes.Operation { - return func(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accounts []simTypes.Account, chainID string) (simTypes.OperationMsg, []simTypes.FutureOperation, error) { - linkFunc := SimulateLinkTokenPair(accountKeeper, keeper) - if operationMsg, futureOperations, err := linkFunc(r, app, ctx, accounts, chainID); err != nil { - return operationMsg, futureOperations, err - } - - tokenPairs := keeper.GetAllTokenPairs(ctx) - tokenPair := tokenPairs[0] - - tokenController, ok := simTypes.FindAccount(accounts, sdk.MustAccAddressFromBech32(keeper.GetTokenController(ctx))) - if !ok { - return simTypes.NoOpMsg(types.ModuleName, "", ""), nil, nil - } - - msg := &types.MsgUnlinkTokenPair{ - From: tokenController.Address.String(), - RemoteDomain: tokenPair.RemoteDomain, - RemoteToken: tokenPair.RemoteToken, - LocalToken: tokenPair.LocalToken, - } - - tx := simulation.OperationInput{ - R: r, - App: app, - TxGen: params.MakeTestEncodingConfig().TxConfig, - Cdc: nil, - Msg: msg, - MsgType: msg.Type(), - Context: ctx, - SimAccount: tokenController, - AccountKeeper: accountKeeper, - ModuleName: types.ModuleName, - } - - return simulation.GenAndDeliverTx(tx, sdk.NewCoins()) - } -} - -func SimulateUpdateOwner(accountKeeper types.AccountKeeper, keeper *keeper.Keeper) simTypes.Operation { - return func(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accounts []simTypes.Account, _ string) (simTypes.OperationMsg, []simTypes.FutureOperation, error) { - owner, ok := simTypes.FindAccount(accounts, sdk.MustAccAddressFromBech32(keeper.GetOwner(ctx))) - if !ok { - return simTypes.NoOpMsg(types.ModuleName, "", ""), nil, nil - } - - newOwner, _ := simTypes.RandomAcc(r, accounts) - - updateMsg := &types.MsgUpdateOwner{ - From: owner.Address.String(), - NewOwner: newOwner.Address.String(), - } - - updateTx := simulation.OperationInput{ - R: r, - App: app, - TxGen: params.MakeTestEncodingConfig().TxConfig, - Cdc: nil, - Msg: updateMsg, - MsgType: updateMsg.Type(), - Context: ctx, - SimAccount: owner, - AccountKeeper: accountKeeper, - ModuleName: types.ModuleName, - } - - return simulation.GenAndDeliverTx(updateTx, sdk.NewCoins()) - } -} - -func SimulateUpdateAttesterManager(accountKeeper types.AccountKeeper, keeper *keeper.Keeper) simTypes.Operation { - return func(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accounts []simTypes.Account, _ string) (simTypes.OperationMsg, []simTypes.FutureOperation, error) { - owner, ok := simTypes.FindAccount(accounts, sdk.MustAccAddressFromBech32(keeper.GetOwner(ctx))) - if !ok { - return simTypes.NoOpMsg(types.ModuleName, "", ""), nil, nil - } - - newAttesterManager, _ := simTypes.RandomAcc(r, accounts) - - msg := &types.MsgUpdateAttesterManager{ - From: owner.Address.String(), - NewAttesterManager: newAttesterManager.Address.String(), - } - - tx := simulation.OperationInput{ - R: r, - App: app, - TxGen: params.MakeTestEncodingConfig().TxConfig, - Cdc: nil, - Msg: msg, - MsgType: msg.Type(), - Context: ctx, - SimAccount: owner, - AccountKeeper: accountKeeper, - ModuleName: types.ModuleName, - } - - return simulation.GenAndDeliverTx(tx, sdk.NewCoins()) - } -} - -func SimulateUpdateTokenController(accountKeeper types.AccountKeeper, keeper *keeper.Keeper) simTypes.Operation { - return func(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accounts []simTypes.Account, _ string) (simTypes.OperationMsg, []simTypes.FutureOperation, error) { - owner, ok := simTypes.FindAccount(accounts, sdk.MustAccAddressFromBech32(keeper.GetOwner(ctx))) - if !ok { - return simTypes.NoOpMsg(types.ModuleName, "", ""), nil, nil - } - - newTokenController, _ := simTypes.RandomAcc(r, accounts) - - msg := &types.MsgUpdateTokenController{ - From: owner.Address.String(), - NewTokenController: newTokenController.Address.String(), - } - - tx := simulation.OperationInput{ - R: r, - App: app, - TxGen: params.MakeTestEncodingConfig().TxConfig, - Cdc: nil, - Msg: msg, - MsgType: msg.Type(), - Context: ctx, - SimAccount: owner, - AccountKeeper: accountKeeper, - ModuleName: types.ModuleName, - } - - return simulation.GenAndDeliverTx(tx, sdk.NewCoins()) - } -} - -func SimulateUpdatePauser(accountKeeper types.AccountKeeper, keeper *keeper.Keeper) simTypes.Operation { - return func(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accounts []simTypes.Account, _ string) (simTypes.OperationMsg, []simTypes.FutureOperation, error) { - owner, ok := simTypes.FindAccount(accounts, sdk.MustAccAddressFromBech32(keeper.GetOwner(ctx))) - if !ok { - return simTypes.NoOpMsg(types.ModuleName, "", ""), nil, nil - } - - newPauser, _ := simTypes.RandomAcc(r, accounts) - - msg := &types.MsgUpdatePauser{ - From: owner.Address.String(), - NewPauser: newPauser.Address.String(), - } - - tx := simulation.OperationInput{ - R: r, - App: app, - TxGen: params.MakeTestEncodingConfig().TxConfig, - Cdc: nil, - Msg: msg, - MsgType: msg.Type(), - Context: ctx, - SimAccount: owner, - AccountKeeper: accountKeeper, - ModuleName: types.ModuleName, - } - - return simulation.GenAndDeliverTx(tx, sdk.NewCoins()) - } -} - -func SimulateUpdateMaxMessageBodySize(accountKeeper types.AccountKeeper, keeper *keeper.Keeper) simTypes.Operation { - return func(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accounts []simTypes.Account, _ string) (simTypes.OperationMsg, []simTypes.FutureOperation, error) { - size := r.Int63n(10_000) // up to 10KB - - owner, ok := simTypes.FindAccount(accounts, sdk.MustAccAddressFromBech32(keeper.GetOwner(ctx))) - if !ok { - return simTypes.NoOpMsg(types.ModuleName, "", ""), nil, nil - } - - msg := &types.MsgUpdateMaxMessageBodySize{ - From: owner.Address.String(), - MessageSize: uint64(size), - } - - tx := simulation.OperationInput{ - R: r, - App: app, - TxGen: params.MakeTestEncodingConfig().TxConfig, - Cdc: nil, - Msg: msg, - MsgType: msg.Type(), - Context: ctx, - SimAccount: owner, - AccountKeeper: accountKeeper, - ModuleName: types.ModuleName, - } - - return simulation.GenAndDeliverTx(tx, sdk.NewCoins()) - } -} - -func SimulateSetMaxBurnAmountPerMessage(accountKeeper types.AccountKeeper, keeper *keeper.Keeper) simTypes.Operation { - return func(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accounts []simTypes.Account, _ string) (simTypes.OperationMsg, []simTypes.FutureOperation, error) { - tokenController, ok := simTypes.FindAccount(accounts, sdk.MustAccAddressFromBech32(keeper.GetTokenController(ctx))) - if !ok { - return simTypes.NoOpMsg(types.ModuleName, "", ""), nil, nil - } - - msg := &types.MsgSetMaxBurnAmountPerMessage{ - From: tokenController.Address.String(), - LocalToken: "uusdc", - Amount: math.NewInt(r.Int63()), - } - - tx := simulation.OperationInput{ - R: r, - App: app, - TxGen: params.MakeTestEncodingConfig().TxConfig, - Cdc: nil, - Msg: msg, - MsgType: msg.Type(), - Context: ctx, - SimAccount: tokenController, - AccountKeeper: accountKeeper, - ModuleName: types.ModuleName, - } - - return simulation.GenAndDeliverTx(tx, sdk.NewCoins()) - } -} - -func SimulateUpdateSignatureThreshold(accountKeeper types.AccountKeeper, keeper *keeper.Keeper) simTypes.Operation { - return func(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accounts []simTypes.Account, chainID string) (simTypes.OperationMsg, []simTypes.FutureOperation, error) { - for i := 0; i < r.Intn(101); i++ { - enableFunc := SimulateEnableAttester(accountKeeper, keeper) - if operationMsg, futureOperations, err := enableFunc(r, app, ctx, accounts, chainID); err != nil { - return operationMsg, futureOperations, err - } - } - amount := simTypes.RandIntBetween(r, 1, len(keeper.GetAllAttesters(ctx))) - - if signatureThreshold, _ := keeper.GetSignatureThreshold(ctx); signatureThreshold.Amount == uint32(amount) { - return simTypes.NoOpMsg(types.ModuleName, "", ""), nil, nil - } - - attesterManager, ok := simTypes.FindAccount(accounts, sdk.MustAccAddressFromBech32(keeper.GetAttesterManager(ctx))) - if !ok { - return simTypes.NoOpMsg(types.ModuleName, "", ""), nil, nil - } - - msg := &types.MsgUpdateSignatureThreshold{ - From: attesterManager.Address.String(), - Amount: uint32(amount), - } - - tx := simulation.OperationInput{ - R: r, - App: app, - TxGen: params.MakeTestEncodingConfig().TxConfig, - Cdc: nil, - Msg: msg, - MsgType: msg.Type(), - Context: ctx, - SimAccount: attesterManager, - AccountKeeper: accountKeeper, - ModuleName: types.ModuleName, - } - - return simulation.GenAndDeliverTx(tx, sdk.NewCoins()) - } -} diff --git a/x/cctp/types/attester.pb.go b/x/cctp/types/attester.pb.go index 4a5a4cb..2c01670 100644 --- a/x/cctp/types/attester.pb.go +++ b/x/cctp/types/attester.pb.go @@ -5,7 +5,7 @@ package types import ( fmt "fmt" - proto "github.com/gogo/protobuf/proto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" diff --git a/x/cctp/types/burn_message.go b/x/cctp/types/burn_message.go index 825ca5e..4d71926 100644 --- a/x/cctp/types/burn_message.go +++ b/x/cctp/types/burn_message.go @@ -1,33 +1,34 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package types import ( "encoding/binary" "math/big" + "cosmossdk.io/errors" "cosmossdk.io/math" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" ) // Parse parses a byte array into a BurnMessage struct // https://developers.circle.com/stablecoin/docs/cctp-technical-reference#burnmessage func (msg *BurnMessage) Parse(bz []byte) (*BurnMessage, error) { if len(bz) != BurnMessageLen { - return nil, sdkerrors.Wrapf(ErrParsingBurnMessage, "burn message must be %d bytes, got %d", BurnMessageLen, len(msg.BurnToken)) + return nil, errors.Wrapf(ErrParsingBurnMessage, "burn message must be %d bytes, got %d", BurnMessageLen, len(msg.BurnToken)) } msg.Version = binary.BigEndian.Uint32(bz[BurnMsgVersionIndex:BurnTokenIndex]) @@ -43,13 +44,13 @@ func (msg *BurnMessage) Parse(bz []byte) (*BurnMessage, error) { // burn token, mint recipient, and message sender must be 32 bytes func (msg *BurnMessage) Bytes() ([]byte, error) { if len(msg.BurnToken) != BurnTokenLen { - return nil, sdkerrors.Wrapf(ErrParsingBurnMessage, "burn token must be 32 bytes, got %d", len(msg.BurnToken)) + return nil, errors.Wrapf(ErrParsingBurnMessage, "burn token must be 32 bytes, got %d", len(msg.BurnToken)) } if len(msg.MintRecipient) != MintRecipientLen { - return nil, sdkerrors.Wrapf(ErrParsingBurnMessage, "mint recipient must be 32 bytes, got %d", len(msg.MintRecipient)) + return nil, errors.Wrapf(ErrParsingBurnMessage, "mint recipient must be 32 bytes, got %d", len(msg.MintRecipient)) } if len(msg.MessageSender) != AddressBytesLen { - return nil, sdkerrors.Wrapf(ErrParsingBurnMessage, "message sender must be 32 bytes, got %d", len(msg.MessageSender)) + return nil, errors.Wrapf(ErrParsingBurnMessage, "message sender must be 32 bytes, got %d", len(msg.MessageSender)) } result := make([]byte, BurnMessageLen) diff --git a/x/cctp/types/burn_message.pb.go b/x/cctp/types/burn_message.pb.go index 81bde58..af6bf44 100644 --- a/x/cctp/types/burn_message.pb.go +++ b/x/cctp/types/burn_message.pb.go @@ -6,8 +6,8 @@ package types import ( cosmossdk_io_math "cosmossdk.io/math" fmt "fmt" - _ "github.com/gogo/protobuf/gogoproto" - proto "github.com/gogo/protobuf/proto" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" diff --git a/x/cctp/types/burn_message_test.go b/x/cctp/types/burn_message_test.go index 8c8d17a..847e3cc 100644 --- a/x/cctp/types/burn_message_test.go +++ b/x/cctp/types/burn_message_test.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package types_test import ( diff --git a/x/cctp/types/burning_and_minting_paused.pb.go b/x/cctp/types/burning_and_minting_paused.pb.go index ead9d99..95a3af6 100644 --- a/x/cctp/types/burning_and_minting_paused.pb.go +++ b/x/cctp/types/burning_and_minting_paused.pb.go @@ -5,7 +5,7 @@ package types import ( fmt "fmt" - proto "github.com/gogo/protobuf/proto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" diff --git a/x/cctp/types/codec.go b/x/cctp/types/codec.go index fd5e785..a5c1f1c 100644 --- a/x/cctp/types/codec.go +++ b/x/cctp/types/codec.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package types import ( diff --git a/x/cctp/types/constants.go b/x/cctp/types/constants.go index 9af356e..26f466b 100644 --- a/x/cctp/types/constants.go +++ b/x/cctp/types/constants.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package types const ( diff --git a/x/cctp/types/errors.go b/x/cctp/types/errors.go index 8c061cd..a9a46a8 100644 --- a/x/cctp/types/errors.go +++ b/x/cctp/types/errors.go @@ -1,52 +1,55 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package types // DONTCOVER import ( - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "cosmossdk.io/errors" ) // x/cctp module sentinel errors var ( - ErrUnauthorized = sdkerrors.Register(ModuleName, 30, "unauthorized") - ErrMint = sdkerrors.Register(ModuleName, 31, "tokens can not be minted") - ErrBurn = sdkerrors.Register(ModuleName, 32, "tokens can not be burned") - ErrAttesterAlreadyFound = sdkerrors.Register(ModuleName, 33, "attester is already present") - ErrAuthorityNotSet = sdkerrors.Register(ModuleName, 34, "authority not set") - ErrMalformedField = sdkerrors.Register(ModuleName, 35, "field cannot be empty or nil") - ErrReceiveMessage = sdkerrors.Register(ModuleName, 36, "err in receive message") - ErrDisableAttester = sdkerrors.Register(ModuleName, 37, "err in disable attester") - ErrUpdateSignatureThreshold = sdkerrors.Register(ModuleName, 38, "err in update signature threshold") - ErrMinterAllowanceNotFound = sdkerrors.Register(ModuleName, 39, "minter allowance not found") - ErrTokenPairAlreadyFound = sdkerrors.Register(ModuleName, 40, "token pair already exists") - ErrTokenPairNotFound = sdkerrors.Register(ModuleName, 41, "token pair not found") - ErrSendMessage = sdkerrors.Register(ModuleName, 42, "error in send message") - ErrSendMessageWithCaller = sdkerrors.Register(ModuleName, 43, "error in send message with caller") - ErrDepositForBurn = sdkerrors.Register(ModuleName, 44, "error in deposit for burn") - ErrInvalidDestinationCaller = sdkerrors.Register(ModuleName, 45, "malformed destination caller") - ErrSignatureVerification = sdkerrors.Register(ModuleName, 46, "unable to verify signature") - ErrReplaceMessage = sdkerrors.Register(ModuleName, 47, "error in replace message") - ErrDuringPause = sdkerrors.Register(ModuleName, 48, "error while trying to pause or unpause") - ErrInvalidAmount = sdkerrors.Register(ModuleName, 49, "invalid amount") - ErrNextAvailableNonce = sdkerrors.Register(ModuleName, 50, "error while retrieving next available nonce") - ErrRemoteTokenMessengerAlreadyFound = sdkerrors.Register(ModuleName, 51, "this remote token messenger mapping already exists") - ErrRemoteTokenMessengerNotFound = sdkerrors.Register(ModuleName, 53, "remote token messenger not found") - ErrParsingMessage = sdkerrors.Register(ModuleName, 54, "error while parsing message into bytes") - ErrParsingBurnMessage = sdkerrors.Register(ModuleName, 55, "error while parsing burn message into bytes") - ErrInvalidRemoteToken = sdkerrors.Register(ModuleName, 56, "invalid remote token") + ErrUnauthorized = errors.Register(ModuleName, 30, "unauthorized") + ErrMint = errors.Register(ModuleName, 31, "tokens can not be minted") + ErrBurn = errors.Register(ModuleName, 32, "tokens can not be burned") + ErrAttesterAlreadyFound = errors.Register(ModuleName, 33, "attester is already present") + ErrAuthorityNotSet = errors.Register(ModuleName, 34, "authority not set") + ErrMalformedField = errors.Register(ModuleName, 35, "field cannot be empty or nil") + ErrReceiveMessage = errors.Register(ModuleName, 36, "err in receive message") + ErrDisableAttester = errors.Register(ModuleName, 37, "err in disable attester") + ErrUpdateSignatureThreshold = errors.Register(ModuleName, 38, "err in update signature threshold") + ErrMinterAllowanceNotFound = errors.Register(ModuleName, 39, "minter allowance not found") + ErrTokenPairAlreadyFound = errors.Register(ModuleName, 40, "token pair already exists") + ErrTokenPairNotFound = errors.Register(ModuleName, 41, "token pair not found") + ErrSendMessage = errors.Register(ModuleName, 42, "error in send message") + ErrSendMessageWithCaller = errors.Register(ModuleName, 43, "error in send message with caller") + ErrDepositForBurn = errors.Register(ModuleName, 44, "error in deposit for burn") + ErrInvalidDestinationCaller = errors.Register(ModuleName, 45, "malformed destination caller") + ErrSignatureVerification = errors.Register(ModuleName, 46, "unable to verify signature") + ErrReplaceMessage = errors.Register(ModuleName, 47, "error in replace message") + ErrDuringPause = errors.Register(ModuleName, 48, "error while trying to pause or unpause") + ErrInvalidAmount = errors.Register(ModuleName, 49, "invalid amount") + ErrNextAvailableNonce = errors.Register(ModuleName, 50, "error while retrieving next available nonce") + ErrRemoteTokenMessengerAlreadyFound = errors.Register(ModuleName, 51, "this remote token messenger mapping already exists") + ErrRemoteTokenMessengerNotFound = errors.Register(ModuleName, 53, "remote token messenger not found") + ErrParsingMessage = errors.Register(ModuleName, 54, "error while parsing message into bytes") + ErrParsingBurnMessage = errors.Register(ModuleName, 55, "error while parsing burn message into bytes") + ErrInvalidRemoteToken = errors.Register(ModuleName, 56, "invalid remote token") + + ErrInvalidAddress = errors.Register(ModuleName, 100, "invalid address") ) diff --git a/x/cctp/types/events.pb.go b/x/cctp/types/events.pb.go index 20e9deb..564e7ae 100644 --- a/x/cctp/types/events.pb.go +++ b/x/cctp/types/events.pb.go @@ -6,8 +6,8 @@ package types import ( cosmossdk_io_math "cosmossdk.io/math" fmt "fmt" - _ "github.com/gogo/protobuf/gogoproto" - proto "github.com/gogo/protobuf/proto" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" diff --git a/x/cctp/types/expected_keepers.go b/x/cctp/types/expected_keepers.go index 500bb62..f2066cb 100644 --- a/x/cctp/types/expected_keepers.go +++ b/x/cctp/types/expected_keepers.go @@ -1,39 +1,41 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package types import ( + "context" + fiattokenfactorytypes "github.com/circlefin/noble-fiattokenfactory/x/fiattokenfactory/types" sdk "github.com/cosmos/cosmos-sdk/types" - authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" ) // AccountKeeper defines the expected account keeper used for simulations (noalias) type AccountKeeper interface { - GetAccount(ctx sdk.Context, addr sdk.AccAddress) authtypes.AccountI + GetAccount(ctx context.Context, addr sdk.AccAddress) sdk.AccountI // Methods imported from account should be defined here } type BankKeeper interface { - GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin - SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error + GetBalance(ctx context.Context, addr sdk.AccAddress, denom string) sdk.Coin + SendCoinsFromAccountToModule(ctx context.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error } type FiatTokenfactoryKeeper interface { Burn(ctx sdk.Context, msg *fiattokenfactorytypes.MsgBurn) (*fiattokenfactorytypes.MsgBurnResponse, error) Mint(ctx sdk.Context, msg *fiattokenfactorytypes.MsgMint) (*fiattokenfactorytypes.MsgMintResponse, error) - GetMintingDenom(ctx sdk.Context) (val fiattokenfactorytypes.MintingDenom) + GetMintingDenom(ctx context.Context) (val fiattokenfactorytypes.MintingDenom) } diff --git a/x/cctp/types/genesis.go b/x/cctp/types/genesis.go index a1a7a25..fb64284 100644 --- a/x/cctp/types/genesis.go +++ b/x/cctp/types/genesis.go @@ -1,25 +1,26 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package types import ( "fmt" + "cosmossdk.io/errors" sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" ) // DefaultGenesis returns the default genesis state @@ -47,25 +48,25 @@ func DefaultGenesis() *GenesisState { func (gs GenesisState) Validate() error { if gs.Owner != "" { if _, err := sdk.AccAddressFromBech32(gs.Owner); err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid owner address (%s)", err) + return errors.Wrapf(ErrInvalidAddress, "invalid owner address (%s)", err) } } if gs.AttesterManager != "" { if _, err := sdk.AccAddressFromBech32(gs.AttesterManager); err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid attester manager address (%s)", err) + return errors.Wrapf(ErrInvalidAddress, "invalid attester manager address (%s)", err) } } if gs.Pauser != "" { if _, err := sdk.AccAddressFromBech32(gs.Pauser); err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid pauser address (%s)", err) + return errors.Wrapf(ErrInvalidAddress, "invalid pauser address (%s)", err) } } if gs.TokenController != "" { if _, err := sdk.AccAddressFromBech32(gs.TokenController); err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid token controller address (%s)", err) + return errors.Wrapf(ErrInvalidAddress, "invalid token controller address (%s)", err) } } diff --git a/x/cctp/types/genesis.pb.go b/x/cctp/types/genesis.pb.go index 5a5a608..b7e5f00 100644 --- a/x/cctp/types/genesis.pb.go +++ b/x/cctp/types/genesis.pb.go @@ -5,8 +5,8 @@ package types import ( fmt "fmt" - _ "github.com/gogo/protobuf/gogoproto" - proto "github.com/gogo/protobuf/proto" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" diff --git a/x/cctp/types/keys.go b/x/cctp/types/keys.go index c116391..bf7d280 100644 --- a/x/cctp/types/keys.go +++ b/x/cctp/types/keys.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package types import ( diff --git a/x/cctp/types/keys_test.go b/x/cctp/types/keys_test.go index ac57332..88b9928 100644 --- a/x/cctp/types/keys_test.go +++ b/x/cctp/types/keys_test.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package types import ( diff --git a/x/cctp/types/max_message_body_size.pb.go b/x/cctp/types/max_message_body_size.pb.go index bae4775..8894108 100644 --- a/x/cctp/types/max_message_body_size.pb.go +++ b/x/cctp/types/max_message_body_size.pb.go @@ -5,7 +5,7 @@ package types import ( fmt "fmt" - proto "github.com/gogo/protobuf/proto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" diff --git a/x/cctp/types/message.go b/x/cctp/types/message.go index 26e66e8..c6a0b6c 100644 --- a/x/cctp/types/message.go +++ b/x/cctp/types/message.go @@ -1,31 +1,32 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package types import ( "encoding/binary" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "cosmossdk.io/errors" ) // Parse parses a byte array into a Message struct // https://developers.circle.com/stablecoin/docs/cctp-technical-reference#message func (msg *Message) Parse(bz []byte) (*Message, error) { if len(bz) < MessageBodyIndex { - return nil, sdkerrors.Wrapf(ErrParsingMessage, "cctp message must be at least %d bytes, got %d", MessageBodyIndex, len(bz)) + return nil, errors.Wrapf(ErrParsingMessage, "cctp message must be at least %d bytes, got %d", MessageBodyIndex, len(bz)) } msg.Version = binary.BigEndian.Uint32(bz[VersionIndex:SourceDomainIndex]) @@ -44,13 +45,13 @@ func (msg *Message) Parse(bz []byte) (*Message, error) { // sender, recipient, destination caller must be 32 bytes func (msg *Message) Bytes() ([]byte, error) { if len(msg.Sender) != AddressBytesLen { - return nil, sdkerrors.Wrapf(ErrParsingMessage, "sender must be %d bytes, got %d", AddressBytesLen, len(msg.Sender)) + return nil, errors.Wrapf(ErrParsingMessage, "sender must be %d bytes, got %d", AddressBytesLen, len(msg.Sender)) } if len(msg.Recipient) != AddressBytesLen { - return nil, sdkerrors.Wrapf(ErrParsingMessage, "recipient must be %d bytes, got %d", AddressBytesLen, len(msg.Recipient)) + return nil, errors.Wrapf(ErrParsingMessage, "recipient must be %d bytes, got %d", AddressBytesLen, len(msg.Recipient)) } if len(msg.DestinationCaller) != AddressBytesLen { - return nil, sdkerrors.Wrapf(ErrParsingMessage, "destination caller must be %d bytes, got %d", AddressBytesLen, len(msg.DestinationCaller)) + return nil, errors.Wrapf(ErrParsingMessage, "destination caller must be %d bytes, got %d", AddressBytesLen, len(msg.DestinationCaller)) } result := make([]byte, MessageBodyIndex+len(msg.MessageBody)) diff --git a/x/cctp/types/message.pb.go b/x/cctp/types/message.pb.go index d41be3a..816beba 100644 --- a/x/cctp/types/message.pb.go +++ b/x/cctp/types/message.pb.go @@ -5,7 +5,7 @@ package types import ( fmt "fmt" - proto "github.com/gogo/protobuf/proto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" diff --git a/x/cctp/types/message_accept_owner.go b/x/cctp/types/message_accept_owner.go deleted file mode 100644 index 42453a1..0000000 --- a/x/cctp/types/message_accept_owner.go +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package types - -import ( - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -const TypeMsgAcceptOwner = "accept_owner" - -var _ sdk.Msg = &MsgAcceptOwner{} - -func NewMsgAcceptOwner(from string) *MsgAcceptOwner { - return &MsgAcceptOwner{ - From: from, - } -} - -func (msg *MsgAcceptOwner) Route() string { - return RouterKey -} - -func (msg *MsgAcceptOwner) Type() string { - return TypeMsgAcceptOwner -} - -func (msg *MsgAcceptOwner) GetSigners() []sdk.AccAddress { - from, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - panic(err) - } - return []sdk.AccAddress{from} -} - -func (msg *MsgAcceptOwner) GetSignBytes() []byte { - bz := ModuleCdc.MustMarshalJSON(msg) - return sdk.MustSortJSON(bz) -} - -func (msg *MsgAcceptOwner) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid from address (%s)", err) - } - return nil -} diff --git a/x/cctp/types/message_accept_owner_test.go b/x/cctp/types/message_accept_owner_test.go deleted file mode 100644 index 9f83279..0000000 --- a/x/cctp/types/message_accept_owner_test.go +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package types - -import ( - "testing" - - "github.com/circlefin/noble-cctp/testutil/sample" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/stretchr/testify/require" -) - -func TestMsgAcceptOwner_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgAcceptOwner - err error - }{ - { - name: "invalid from", - msg: MsgAcceptOwner{ - From: "invalid_address", - }, - err: sdkerrors.ErrInvalidAddress, - }, - { - name: "valid from", - msg: MsgAcceptOwner{ - From: sample.AccAddress(), - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/cctp/types/message_add_remote_token_messenger.go b/x/cctp/types/message_add_remote_token_messenger.go deleted file mode 100644 index 46d3903..0000000 --- a/x/cctp/types/message_add_remote_token_messenger.go +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package types - -import ( - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -const TypeMsgAddRemoteTokenMessenger = "add_remote_token_messenger" - -var _ sdk.Msg = &MsgAddRemoteTokenMessenger{} - -func NewMsgAddRemoteTokenMessenger(from string, domainId uint32, address []byte) *MsgAddRemoteTokenMessenger { - return &MsgAddRemoteTokenMessenger{ - From: from, - DomainId: domainId, - Address: address, - } -} - -func (msg *MsgAddRemoteTokenMessenger) Route() string { - return RouterKey -} - -func (msg *MsgAddRemoteTokenMessenger) Type() string { - return TypeMsgAddRemoteTokenMessenger -} - -func (msg *MsgAddRemoteTokenMessenger) GetSigners() []sdk.AccAddress { - from, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - panic(err) - } - return []sdk.AccAddress{from} -} - -func (msg *MsgAddRemoteTokenMessenger) GetSignBytes() []byte { - bz := ModuleCdc.MustMarshalJSON(msg) - return sdk.MustSortJSON(bz) -} - -func (msg *MsgAddRemoteTokenMessenger) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid from address (%s)", err) - } - return nil -} diff --git a/x/cctp/types/message_add_remote_token_messenger_test.go b/x/cctp/types/message_add_remote_token_messenger_test.go deleted file mode 100644 index f15bc2e..0000000 --- a/x/cctp/types/message_add_remote_token_messenger_test.go +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package types - -import ( - "testing" - - "github.com/circlefin/noble-cctp/testutil/sample" - - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/stretchr/testify/require" -) - -func TestAddRemoteTokenMessenger_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgAddRemoteTokenMessenger - err error - }{ - { - name: "invalid from", - msg: MsgAddRemoteTokenMessenger{ - From: "invalid_address", - DomainId: uint32(123), - Address: make([]byte, 32), - }, - err: sdkerrors.ErrInvalidAddress, - }, - { - name: "valid from", - msg: MsgAddRemoteTokenMessenger{ - From: sample.AccAddress(), - DomainId: uint32(123), - Address: make([]byte, 32), - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/cctp/types/message_deposit_for_burn.go b/x/cctp/types/message_deposit_for_burn.go deleted file mode 100644 index 56482c7..0000000 --- a/x/cctp/types/message_deposit_for_burn.go +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package types - -import ( - "cosmossdk.io/math" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -const TypeMsgDepositForBurn = "deposit_for_burn" - -var _ sdk.Msg = &MsgDepositForBurn{} - -func NewMsgDepositForBurn(from string, amount math.Int, destinationDomain uint32, mintRecipient []byte, burnToken string) *MsgDepositForBurn { - return &MsgDepositForBurn{ - From: from, - Amount: amount, - DestinationDomain: destinationDomain, - MintRecipient: mintRecipient, - BurnToken: burnToken, - } -} - -func (msg *MsgDepositForBurn) Route() string { - return RouterKey -} - -func (msg *MsgDepositForBurn) Type() string { - return TypeMsgDepositForBurn -} - -func (msg *MsgDepositForBurn) GetSigners() []sdk.AccAddress { - from, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - panic(err) - } - return []sdk.AccAddress{from} -} - -func (msg *MsgDepositForBurn) GetSignBytes() []byte { - bz := ModuleCdc.MustMarshalJSON(msg) - return sdk.MustSortJSON(bz) -} - -func (msg *MsgDepositForBurn) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid from address (%s)", err) - } - return nil -} diff --git a/x/cctp/types/message_deposit_for_burn_test.go b/x/cctp/types/message_deposit_for_burn_test.go deleted file mode 100644 index b0852a1..0000000 --- a/x/cctp/types/message_deposit_for_burn_test.go +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package types - -import ( - "testing" - - "cosmossdk.io/math" - "github.com/circlefin/noble-cctp/testutil/sample" - - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/stretchr/testify/require" -) - -func TestMsgDepositForBurn_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgDepositForBurn - err error - }{ - { - name: "invalid from", - msg: MsgDepositForBurn{ - From: "invalid_address", - Amount: math.NewInt(123), - DestinationDomain: 123, - MintRecipient: []byte{1, 2, 3}, - BurnToken: "utoken", - }, - err: sdkerrors.ErrInvalidAddress, - }, - { - name: "valid from", - msg: MsgDepositForBurn{ - From: sample.AccAddress(), - Amount: math.NewInt(123), - DestinationDomain: 123, - MintRecipient: []byte{1, 2, 3}, - BurnToken: "utoken", - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/cctp/types/message_deposit_for_burn_with_caller.go b/x/cctp/types/message_deposit_for_burn_with_caller.go deleted file mode 100644 index dc036d7..0000000 --- a/x/cctp/types/message_deposit_for_burn_with_caller.go +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package types - -import ( - "cosmossdk.io/math" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -const TypeMsgDepositForBurnWithCaller = "deposit_for_burn_with_caller" - -var _ sdk.Msg = &MsgDepositForBurnWithCaller{} - -func NewMsgDepositForBurnWithCaller(from string, amount math.Int, destinationDomain uint32, mintRecipient []byte, burnToken string, destinationCaller []byte) *MsgDepositForBurnWithCaller { - return &MsgDepositForBurnWithCaller{ - From: from, - Amount: amount, - DestinationDomain: destinationDomain, - MintRecipient: mintRecipient, - BurnToken: burnToken, - DestinationCaller: destinationCaller, - } -} - -func (msg *MsgDepositForBurnWithCaller) Route() string { - return RouterKey -} - -func (msg *MsgDepositForBurnWithCaller) Type() string { - return TypeMsgDepositForBurnWithCaller -} - -func (msg *MsgDepositForBurnWithCaller) GetSigners() []sdk.AccAddress { - from, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - panic(err) - } - return []sdk.AccAddress{from} -} - -func (msg *MsgDepositForBurnWithCaller) GetSignBytes() []byte { - bz := ModuleCdc.MustMarshalJSON(msg) - return sdk.MustSortJSON(bz) -} - -func (msg *MsgDepositForBurnWithCaller) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid from address (%s)", err) - } - return nil -} diff --git a/x/cctp/types/message_deposit_for_burn_with_caller_test.go b/x/cctp/types/message_deposit_for_burn_with_caller_test.go deleted file mode 100644 index 0f03501..0000000 --- a/x/cctp/types/message_deposit_for_burn_with_caller_test.go +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package types - -import ( - "testing" - - "cosmossdk.io/math" - "github.com/circlefin/noble-cctp/testutil/sample" - - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/stretchr/testify/require" -) - -func TestMsgDepositForBurnWithCaller_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgDepositForBurnWithCaller - err error - }{ - { - name: "invalid from", - msg: MsgDepositForBurnWithCaller{ - From: "invalid_address", - Amount: math.NewInt(123), - DestinationDomain: 123, - MintRecipient: []byte{1, 2, 3}, - BurnToken: "utoken", - DestinationCaller: []byte{1, 2, 3}, - }, - err: sdkerrors.ErrInvalidAddress, - }, - { - name: "valid from", - msg: MsgDepositForBurnWithCaller{ - From: sample.AccAddress(), - Amount: math.NewInt(123), - DestinationDomain: 123, - MintRecipient: []byte{1, 2, 3}, - BurnToken: "utoken", - DestinationCaller: []byte{1, 2, 3}, - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/cctp/types/message_disable_attester.go b/x/cctp/types/message_disable_attester.go deleted file mode 100644 index 89a3f3e..0000000 --- a/x/cctp/types/message_disable_attester.go +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package types - -import ( - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/ethereum/go-ethereum/common" -) - -const TypeMsgDisableAttester = "disable_attester" - -var _ sdk.Msg = &MsgDisableAttester{} - -func NewMsgDisableAttester(from string, attester string) *MsgDisableAttester { - return &MsgDisableAttester{ - From: from, - Attester: attester, - } -} - -func (msg *MsgDisableAttester) Route() string { - return RouterKey -} - -func (msg *MsgDisableAttester) Type() string { - return TypeMsgDisableAttester -} - -func (msg *MsgDisableAttester) GetSigners() []sdk.AccAddress { - from, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - panic(err) - } - return []sdk.AccAddress{from} -} - -func (msg *MsgDisableAttester) GetSignBytes() []byte { - bz := ModuleCdc.MustMarshalJSON(msg) - return sdk.MustSortJSON(bz) -} - -func (msg *MsgDisableAttester) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid from address (%s)", err) - } - - attester := common.FromHex(msg.Attester) - if len(attester) == 0 { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid attester") - } - - return nil -} diff --git a/x/cctp/types/message_disable_attester_test.go b/x/cctp/types/message_disable_attester_test.go deleted file mode 100644 index 433c66c..0000000 --- a/x/cctp/types/message_disable_attester_test.go +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package types - -import ( - "testing" - - "github.com/circlefin/noble-cctp/testutil/sample" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/stretchr/testify/require" -) - -func TestMsgDisableAttester_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgDisableAttester - err error - }{ - { - name: "invalid from", - msg: MsgDisableAttester{ - From: "invalid_address", - Attester: "", - }, - err: sdkerrors.ErrInvalidAddress, - }, - { - name: "valid from", - msg: MsgDisableAttester{ - From: sample.AccAddress(), - Attester: "1234", - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/cctp/types/message_enable_attester.go b/x/cctp/types/message_enable_attester.go deleted file mode 100644 index c32f38b..0000000 --- a/x/cctp/types/message_enable_attester.go +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package types - -import ( - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/ethereum/go-ethereum/common" -) - -const TypeMsgEnableAttester = "enable_attester" - -var _ sdk.Msg = &MsgEnableAttester{} - -func NewMsgEnableAttester(from string, attester string) *MsgEnableAttester { - return &MsgEnableAttester{ - From: from, - Attester: attester, - } -} - -func (msg *MsgEnableAttester) Route() string { - return RouterKey -} - -func (msg *MsgEnableAttester) Type() string { - return TypeMsgEnableAttester -} - -func (msg *MsgEnableAttester) GetSigners() []sdk.AccAddress { - from, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - panic(err) - } - return []sdk.AccAddress{from} -} - -func (msg *MsgEnableAttester) GetSignBytes() []byte { - bz := ModuleCdc.MustMarshalJSON(msg) - return sdk.MustSortJSON(bz) -} - -func (msg *MsgEnableAttester) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid from address (%s)", err) - } - - attester := common.FromHex(msg.Attester) - if len(attester) == 0 { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid attester") - } - - return nil -} diff --git a/x/cctp/types/message_enable_attester_test.go b/x/cctp/types/message_enable_attester_test.go deleted file mode 100644 index beb0f64..0000000 --- a/x/cctp/types/message_enable_attester_test.go +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package types - -import ( - "testing" - - "github.com/circlefin/noble-cctp/testutil/sample" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/stretchr/testify/require" -) - -func TestMsgEnableAttester_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgEnableAttester - err error - }{ - { - name: "invalid from", - msg: MsgEnableAttester{ - From: "invalid_address", - Attester: "", - }, - err: sdkerrors.ErrInvalidAddress, - }, - { - name: "valid from", - msg: MsgEnableAttester{ - From: sample.AccAddress(), - Attester: "1234", - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/cctp/types/message_link_token_pair.go b/x/cctp/types/message_link_token_pair.go deleted file mode 100644 index 239a21e..0000000 --- a/x/cctp/types/message_link_token_pair.go +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package types - -import ( - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -const TypeMsgLinkTokenPair = "link_token_pair" - -var _ sdk.Msg = &MsgLinkTokenPair{} - -func NewMsgLinkTokenPair(from string, localToken string, remoteToken []byte, remoteDomain uint32) *MsgLinkTokenPair { - return &MsgLinkTokenPair{ - From: from, - LocalToken: localToken, - RemoteToken: remoteToken, - RemoteDomain: remoteDomain, - } -} - -func (msg *MsgLinkTokenPair) Route() string { - return RouterKey -} - -func (msg *MsgLinkTokenPair) Type() string { - return TypeMsgLinkTokenPair -} - -func (msg *MsgLinkTokenPair) GetSigners() []sdk.AccAddress { - from, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - panic(err) - } - return []sdk.AccAddress{from} -} - -func (msg *MsgLinkTokenPair) GetSignBytes() []byte { - bz := ModuleCdc.MustMarshalJSON(msg) - return sdk.MustSortJSON(bz) -} - -func (msg *MsgLinkTokenPair) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid from address: %s", err) - } - - if len(msg.RemoteToken) != 32 { - return sdkerrors.Wrapf(ErrInvalidRemoteToken, "must be a byte32 array: %s", err) - } - - return nil -} diff --git a/x/cctp/types/message_link_token_pair_test.go b/x/cctp/types/message_link_token_pair_test.go deleted file mode 100644 index b9ffcb4..0000000 --- a/x/cctp/types/message_link_token_pair_test.go +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package types - -import ( - "testing" - - "github.com/circlefin/noble-cctp/testutil/sample" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/stretchr/testify/require" -) - -func TestMsgLinkTokenPair_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgLinkTokenPair - err error - }{ - { - name: "invalid from", - msg: MsgLinkTokenPair{ - From: "invalid_address", - RemoteDomain: 1, - RemoteToken: make([]byte, 32), - LocalToken: "uusdc", - }, - err: sdkerrors.ErrInvalidAddress, - }, - { - name: "valid from", - msg: MsgLinkTokenPair{ - From: sample.AccAddress(), - RemoteDomain: 1, - RemoteToken: make([]byte, 32), - LocalToken: "uusdc", - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/cctp/types/message_pause_burning_and_minting.go b/x/cctp/types/message_pause_burning_and_minting.go deleted file mode 100644 index ee11e47..0000000 --- a/x/cctp/types/message_pause_burning_and_minting.go +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package types - -import ( - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -const TypeMsgPauseBurningAndMinting = "pause_burning_and_minting" - -var _ sdk.Msg = &MsgPauseBurningAndMinting{} - -func NewMsgPauseBurningAndMinting(from string) *MsgPauseBurningAndMinting { - return &MsgPauseBurningAndMinting{ - From: from, - } -} - -func (msg *MsgPauseBurningAndMinting) Route() string { - return RouterKey -} - -func (msg *MsgPauseBurningAndMinting) Type() string { - return TypeMsgPauseBurningAndMinting -} - -func (msg *MsgPauseBurningAndMinting) GetSigners() []sdk.AccAddress { - from, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - panic(err) - } - return []sdk.AccAddress{from} -} - -func (msg *MsgPauseBurningAndMinting) GetSignBytes() []byte { - bz := ModuleCdc.MustMarshalJSON(msg) - return sdk.MustSortJSON(bz) -} - -func (msg *MsgPauseBurningAndMinting) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid from address (%s)", err) - } - return nil -} diff --git a/x/cctp/types/message_pause_burning_and_minting_test.go b/x/cctp/types/message_pause_burning_and_minting_test.go deleted file mode 100644 index 904d1c2..0000000 --- a/x/cctp/types/message_pause_burning_and_minting_test.go +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package types - -import ( - "testing" - - "github.com/circlefin/noble-cctp/testutil/sample" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/stretchr/testify/require" -) - -func TestMsgPauseBurningAndMinting_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgPauseBurningAndMinting - err error - }{ - { - name: "invalid from", - msg: MsgPauseBurningAndMinting{ - From: "invalid_address", - }, - err: sdkerrors.ErrInvalidAddress, - }, { - name: "valid from", - msg: MsgPauseBurningAndMinting{ - From: sample.AccAddress(), - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/cctp/types/message_pause_sending_and_receiving_messages.go b/x/cctp/types/message_pause_sending_and_receiving_messages.go deleted file mode 100644 index d0822c9..0000000 --- a/x/cctp/types/message_pause_sending_and_receiving_messages.go +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package types - -import ( - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -const TypeMsgPauseSendingAndReceivingMessages = "pause_sending_and_receiving_messages" - -var _ sdk.Msg = &MsgPauseSendingAndReceivingMessages{} - -func NewMsgPauseSendingAndReceivingMessages(from string) *MsgPauseSendingAndReceivingMessages { - return &MsgPauseSendingAndReceivingMessages{ - From: from, - } -} - -func (msg *MsgPauseSendingAndReceivingMessages) Route() string { - return RouterKey -} - -func (msg *MsgPauseSendingAndReceivingMessages) Type() string { - return TypeMsgPauseSendingAndReceivingMessages -} - -func (msg *MsgPauseSendingAndReceivingMessages) GetSigners() []sdk.AccAddress { - from, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - panic(err) - } - return []sdk.AccAddress{from} -} - -func (msg *MsgPauseSendingAndReceivingMessages) GetSignBytes() []byte { - bz := ModuleCdc.MustMarshalJSON(msg) - return sdk.MustSortJSON(bz) -} - -func (msg *MsgPauseSendingAndReceivingMessages) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid from address (%s)", err) - } - return nil -} diff --git a/x/cctp/types/message_pause_sending_and_receiving_messages_test.go b/x/cctp/types/message_pause_sending_and_receiving_messages_test.go deleted file mode 100644 index e24e3c0..0000000 --- a/x/cctp/types/message_pause_sending_and_receiving_messages_test.go +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package types - -import ( - "testing" - - "github.com/circlefin/noble-cctp/testutil/sample" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/stretchr/testify/require" -) - -func TestMsgPauseSendingAndReceivingMessages_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgPauseSendingAndReceivingMessages - err error - }{ - { - name: "invalid from", - msg: MsgPauseSendingAndReceivingMessages{ - From: "invalid_address", - }, - err: sdkerrors.ErrInvalidAddress, - }, { - name: "valid from", - msg: MsgPauseSendingAndReceivingMessages{ - From: sample.AccAddress(), - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/cctp/types/message_receive_message.go b/x/cctp/types/message_receive_message.go deleted file mode 100644 index 7dc36a2..0000000 --- a/x/cctp/types/message_receive_message.go +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package types - -import ( - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -const TypeMsgReceiveMessage = "receive_message" - -var _ sdk.Msg = &MsgReceiveMessage{} - -func NewMsgReceiveMessage(from string, message []byte, attestation []byte) *MsgReceiveMessage { - return &MsgReceiveMessage{ - From: from, - Message: message, - Attestation: attestation, - } -} - -func (msg *MsgReceiveMessage) Route() string { - return RouterKey -} - -func (msg *MsgReceiveMessage) Type() string { - return TypeMsgReceiveMessage -} - -func (msg *MsgReceiveMessage) GetSigners() []sdk.AccAddress { - from, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - panic(err) - } - return []sdk.AccAddress{from} -} - -func (msg *MsgReceiveMessage) GetSignBytes() []byte { - bz := ModuleCdc.MustMarshalJSON(msg) - return sdk.MustSortJSON(bz) -} - -func (msg *MsgReceiveMessage) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid from address (%s)", err) - } - return nil -} diff --git a/x/cctp/types/message_receive_message_test.go b/x/cctp/types/message_receive_message_test.go deleted file mode 100644 index a282722..0000000 --- a/x/cctp/types/message_receive_message_test.go +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package types - -import ( - "testing" - - "github.com/circlefin/noble-cctp/testutil/sample" - - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/stretchr/testify/require" -) - -func TestMsgReceiveMessage_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgReceiveMessage - err error - }{ - { - name: "invalid from", - msg: MsgReceiveMessage{ - From: "invalid_address", - Message: []byte{1, 2, 3}, - Attestation: []byte{1, 2, 3}, - }, - err: sdkerrors.ErrInvalidAddress, - }, - { - name: "valid from", - msg: MsgReceiveMessage{ - From: sample.AccAddress(), - Message: []byte{1, 2, 3}, - Attestation: []byte{1, 2, 3}, - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/cctp/types/message_remove_remote_token_messenger.go b/x/cctp/types/message_remove_remote_token_messenger.go deleted file mode 100644 index f2eafb3..0000000 --- a/x/cctp/types/message_remove_remote_token_messenger.go +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package types - -import ( - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -const TypeMsgRemoveRemoteTokenMessenger = "remove_remote_token_messenger" - -var _ sdk.Msg = &MsgRemoveRemoteTokenMessenger{} - -func NewMsgRemoveRemoteTokenMessenger(from string, domainId uint32) *MsgRemoveRemoteTokenMessenger { - return &MsgRemoveRemoteTokenMessenger{ - From: from, - DomainId: domainId, - } -} - -func (msg *MsgRemoveRemoteTokenMessenger) Route() string { - return RouterKey -} - -func (msg *MsgRemoveRemoteTokenMessenger) Type() string { - return TypeMsgRemoveRemoteTokenMessenger -} - -func (msg *MsgRemoveRemoteTokenMessenger) GetSigners() []sdk.AccAddress { - from, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - panic(err) - } - return []sdk.AccAddress{from} -} - -func (msg *MsgRemoveRemoteTokenMessenger) GetSignBytes() []byte { - bz := ModuleCdc.MustMarshalJSON(msg) - return sdk.MustSortJSON(bz) -} - -func (msg *MsgRemoveRemoteTokenMessenger) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid from address (%s)", err) - } - return nil -} diff --git a/x/cctp/types/message_remove_remote_token_messenger_test.go b/x/cctp/types/message_remove_remote_token_messenger_test.go deleted file mode 100644 index 291fbf8..0000000 --- a/x/cctp/types/message_remove_remote_token_messenger_test.go +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package types - -import ( - "testing" - - "github.com/circlefin/noble-cctp/testutil/sample" - - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/stretchr/testify/require" -) - -func TestMsgRemoveRemoteTokenMessenger_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgRemoveRemoteTokenMessenger - err error - }{ - { - name: "invalid from", - msg: MsgRemoveRemoteTokenMessenger{ - From: "invalid_address", - DomainId: uint32(1), - }, - err: sdkerrors.ErrInvalidAddress, - }, - { - name: "valid from", - msg: MsgRemoveRemoteTokenMessenger{ - From: sample.AccAddress(), - DomainId: uint32(123), - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/cctp/types/message_replace_deposit_for_burn.go b/x/cctp/types/message_replace_deposit_for_burn.go deleted file mode 100644 index ac6844c..0000000 --- a/x/cctp/types/message_replace_deposit_for_burn.go +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package types - -import ( - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -const TypeMsgReplaceDepositForBurn = "replace_deposit_for_burn" - -var _ sdk.Msg = &MsgReplaceDepositForBurn{} - -func NewMsgReplaceDepositForBurn(from string, originalMessage []byte, originalAttestation []byte, newDestinationCaller []byte, newMintRecipient []byte) *MsgReplaceDepositForBurn { - return &MsgReplaceDepositForBurn{ - From: from, - OriginalMessage: originalMessage, - OriginalAttestation: originalAttestation, - NewDestinationCaller: newDestinationCaller, - NewMintRecipient: newMintRecipient, - } -} - -func (msg *MsgReplaceDepositForBurn) Route() string { - return RouterKey -} - -func (msg *MsgReplaceDepositForBurn) Type() string { - return TypeMsgReplaceDepositForBurn -} - -func (msg *MsgReplaceDepositForBurn) GetSigners() []sdk.AccAddress { - from, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - panic(err) - } - return []sdk.AccAddress{from} -} - -func (msg *MsgReplaceDepositForBurn) GetSignBytes() []byte { - bz := ModuleCdc.MustMarshalJSON(msg) - return sdk.MustSortJSON(bz) -} - -func (msg *MsgReplaceDepositForBurn) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid from address (%s)", err) - } - return nil -} diff --git a/x/cctp/types/message_replace_deposit_for_burn_test.go b/x/cctp/types/message_replace_deposit_for_burn_test.go deleted file mode 100644 index b21c460..0000000 --- a/x/cctp/types/message_replace_deposit_for_burn_test.go +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package types - -import ( - "testing" - - "github.com/circlefin/noble-cctp/testutil/sample" - - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/stretchr/testify/require" -) - -func TestMsgReplaceDepositForBurn_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgReplaceDepositForBurn - err error - }{ - { - name: "invalid from", - msg: MsgReplaceDepositForBurn{ - From: "invalid_address", - OriginalMessage: []byte{1, 2, 3}, - OriginalAttestation: []byte{1, 2, 3}, - NewDestinationCaller: []byte{1, 2, 3}, - NewMintRecipient: []byte{1, 2, 3}, - }, - err: sdkerrors.ErrInvalidAddress, - }, - { - name: "valid from", - msg: MsgReplaceDepositForBurn{ - From: sample.AccAddress(), - OriginalMessage: []byte{1, 2, 3}, - OriginalAttestation: []byte{1, 2, 3}, - NewDestinationCaller: []byte{1, 2, 3}, - NewMintRecipient: []byte{1, 2, 3}, - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/cctp/types/message_replace_message.go b/x/cctp/types/message_replace_message.go deleted file mode 100644 index cc7d3ad..0000000 --- a/x/cctp/types/message_replace_message.go +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package types - -import ( - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -const TypeMsgReplaceMessage = "replace_message" - -var _ sdk.Msg = &MsgReplaceMessage{} - -func NewMsgReplaceMessage(from string, originalMessage []byte, originalAttestation []byte, newMessageBody []byte, newDestinationCaller []byte) *MsgReplaceMessage { - return &MsgReplaceMessage{ - From: from, - OriginalMessage: originalMessage, - OriginalAttestation: originalAttestation, - NewMessageBody: newMessageBody, - NewDestinationCaller: newDestinationCaller, - } -} - -func (msg *MsgReplaceMessage) Route() string { - return RouterKey -} - -func (msg *MsgReplaceMessage) Type() string { - return TypeMsgReplaceMessage -} - -func (msg *MsgReplaceMessage) GetSigners() []sdk.AccAddress { - from, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - panic(err) - } - return []sdk.AccAddress{from} -} - -func (msg *MsgReplaceMessage) GetSignBytes() []byte { - bz := ModuleCdc.MustMarshalJSON(msg) - return sdk.MustSortJSON(bz) -} - -func (msg *MsgReplaceMessage) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid from address (%s)", err) - } - return nil -} diff --git a/x/cctp/types/message_replace_message_test.go b/x/cctp/types/message_replace_message_test.go deleted file mode 100644 index 36a8d39..0000000 --- a/x/cctp/types/message_replace_message_test.go +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package types - -import ( - "testing" - - "github.com/circlefin/noble-cctp/testutil/sample" - - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/stretchr/testify/require" -) - -func TestMsgReplaceMessage_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgReplaceMessage - err error - }{ - { - name: "invalid from", - msg: MsgReplaceMessage{ - From: "invalid_address", - OriginalMessage: []byte{1, 2, 3}, - OriginalAttestation: []byte{1, 2, 3}, - NewMessageBody: []byte{1, 2, 3}, - NewDestinationCaller: []byte{1, 2, 3}, - }, - err: sdkerrors.ErrInvalidAddress, - }, - { - name: "valid from", - msg: MsgReplaceMessage{ - From: sample.AccAddress(), - OriginalMessage: []byte{1, 2, 3}, - OriginalAttestation: []byte{1, 2, 3}, - NewMessageBody: []byte{1, 2, 3}, - NewDestinationCaller: []byte{1, 2, 3}, - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/cctp/types/message_send_message.go b/x/cctp/types/message_send_message.go deleted file mode 100644 index 02f50c3..0000000 --- a/x/cctp/types/message_send_message.go +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package types - -import ( - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -const TypeMsgSendMessage = "send_message" - -var _ sdk.Msg = &MsgSendMessage{} - -func NewMsgSendMessage(from string, destinationDomain uint32, recipient []byte, messageBody []byte) *MsgSendMessage { - return &MsgSendMessage{ - From: from, - DestinationDomain: destinationDomain, - Recipient: recipient, - MessageBody: messageBody, - } -} - -func (msg *MsgSendMessage) Route() string { - return RouterKey -} - -func (msg *MsgSendMessage) Type() string { - return TypeMsgSendMessage -} - -func (msg *MsgSendMessage) GetSigners() []sdk.AccAddress { - from, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - panic(err) - } - return []sdk.AccAddress{from} -} - -func (msg *MsgSendMessage) GetSignBytes() []byte { - bz := ModuleCdc.MustMarshalJSON(msg) - return sdk.MustSortJSON(bz) -} - -func (msg *MsgSendMessage) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid from address (%s)", err) - } - return nil -} diff --git a/x/cctp/types/message_send_message_test.go b/x/cctp/types/message_send_message_test.go deleted file mode 100644 index d3e190e..0000000 --- a/x/cctp/types/message_send_message_test.go +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package types - -import ( - "testing" - - "github.com/circlefin/noble-cctp/testutil/sample" - - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/stretchr/testify/require" -) - -func TestMsgSendMessage_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgSendMessage - err error - }{ - { - name: "invalid from", - msg: MsgSendMessage{ - From: "invalid_address", - DestinationDomain: 123, - Recipient: []byte{2, 3, 4}, - MessageBody: []byte{2, 3, 4}, - }, - err: sdkerrors.ErrInvalidAddress, - }, - { - name: "valid from", - msg: MsgSendMessage{ - From: sample.AccAddress(), - DestinationDomain: 123, - Recipient: []byte{2, 3, 4}, - MessageBody: []byte{2, 3, 4}, - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/cctp/types/message_send_message_with_caller.go b/x/cctp/types/message_send_message_with_caller.go deleted file mode 100644 index 5b1e8b3..0000000 --- a/x/cctp/types/message_send_message_with_caller.go +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package types - -import ( - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -const TypeMsgSendMessageWithCaller = "send_message_with_caller" - -var _ sdk.Msg = &MsgSendMessageWithCaller{} - -func NewMsgSendMessageWithCaller(from string, destinationDomain uint32, recipient []byte, messageBody []byte, destinationCaller []byte) *MsgSendMessageWithCaller { - return &MsgSendMessageWithCaller{ - From: from, - DestinationDomain: destinationDomain, - Recipient: recipient, - MessageBody: messageBody, - DestinationCaller: destinationCaller, - } -} - -func (msg *MsgSendMessageWithCaller) Route() string { - return RouterKey -} - -func (msg *MsgSendMessageWithCaller) Type() string { - return TypeMsgSendMessageWithCaller -} - -func (msg *MsgSendMessageWithCaller) GetSigners() []sdk.AccAddress { - from, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - panic(err) - } - return []sdk.AccAddress{from} -} - -func (msg *MsgSendMessageWithCaller) GetSignBytes() []byte { - bz := ModuleCdc.MustMarshalJSON(msg) - return sdk.MustSortJSON(bz) -} - -func (msg *MsgSendMessageWithCaller) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid from address (%s)", err) - } - return nil -} diff --git a/x/cctp/types/message_send_message_with_caller_test.go b/x/cctp/types/message_send_message_with_caller_test.go deleted file mode 100644 index 32d4e6e..0000000 --- a/x/cctp/types/message_send_message_with_caller_test.go +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package types - -import ( - "testing" - - "github.com/circlefin/noble-cctp/testutil/sample" - - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/stretchr/testify/require" -) - -func TestMsgSendMessageWithCaller_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgSendMessageWithCaller - err error - }{ - { - name: "invalid from", - msg: MsgSendMessageWithCaller{ - From: "invalid_address", - DestinationDomain: 123, - Recipient: []byte{2, 3, 4}, - MessageBody: []byte{2, 3, 4}, - DestinationCaller: []byte{2, 3, 4}, - }, - err: sdkerrors.ErrInvalidAddress, - }, - { - name: "valid from", - msg: MsgSendMessageWithCaller{ - From: sample.AccAddress(), - DestinationDomain: 123, - Recipient: []byte{2, 3, 4}, - MessageBody: []byte{2, 3, 4}, - DestinationCaller: []byte{2, 3, 4}, - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/cctp/types/message_set_max_burn_amount_per_message.go b/x/cctp/types/message_set_max_burn_amount_per_message.go deleted file mode 100644 index 3115218..0000000 --- a/x/cctp/types/message_set_max_burn_amount_per_message.go +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package types - -import ( - "cosmossdk.io/math" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -const TypeMsgSetMaxBurnAmountPerMessage = "set_max_burn_amount_per_message" - -var _ sdk.Msg = &MsgSetMaxBurnAmountPerMessage{} - -func NewMsgSetMaxBurnAmountPerMessage(from string, localToken string, amount math.Int) *MsgSetMaxBurnAmountPerMessage { - return &MsgSetMaxBurnAmountPerMessage{ - From: from, - LocalToken: localToken, - Amount: amount, - } -} - -func (msg *MsgSetMaxBurnAmountPerMessage) Route() string { - return RouterKey -} - -func (msg *MsgSetMaxBurnAmountPerMessage) Type() string { - return TypeMsgSetMaxBurnAmountPerMessage -} - -func (msg *MsgSetMaxBurnAmountPerMessage) GetSigners() []sdk.AccAddress { - from, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - panic(err) - } - return []sdk.AccAddress{from} -} - -func (msg *MsgSetMaxBurnAmountPerMessage) GetSignBytes() []byte { - bz := ModuleCdc.MustMarshalJSON(msg) - return sdk.MustSortJSON(bz) -} - -func (msg *MsgSetMaxBurnAmountPerMessage) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid from address (%s)", err) - } - return nil -} diff --git a/x/cctp/types/message_set_max_burn_amount_per_message_test.go b/x/cctp/types/message_set_max_burn_amount_per_message_test.go deleted file mode 100644 index ac588a3..0000000 --- a/x/cctp/types/message_set_max_burn_amount_per_message_test.go +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package types - -import ( - "testing" - - "github.com/circlefin/noble-cctp/testutil/sample" - - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/stretchr/testify/require" -) - -func TestMsgSetMaxBurnAmountPerMessage_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgSetMaxBurnAmountPerMessage - err error - }{ - { - name: "invalid from", - msg: MsgSetMaxBurnAmountPerMessage{ - From: "invalid_address", - }, - err: sdkerrors.ErrInvalidAddress, - }, - { - name: "valid from", - msg: MsgSetMaxBurnAmountPerMessage{ - From: sample.AccAddress(), - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/cctp/types/message_test.go b/x/cctp/types/message_test.go index 0b8b4e4..9c0d3a9 100644 --- a/x/cctp/types/message_test.go +++ b/x/cctp/types/message_test.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package types_test import ( diff --git a/x/cctp/types/message_unlink_token_pair.go b/x/cctp/types/message_unlink_token_pair.go deleted file mode 100644 index d15b67f..0000000 --- a/x/cctp/types/message_unlink_token_pair.go +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package types - -import ( - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -const TypeMsgUnlinkTokenPair = "unlink_token_pair" - -var _ sdk.Msg = &MsgUnlinkTokenPair{} - -func NewMsgUnlinkTokenPair(from string, localToken string, remoteToken []byte, remoteDomain uint32) *MsgUnlinkTokenPair { - return &MsgUnlinkTokenPair{ - From: from, - LocalToken: localToken, - RemoteDomain: remoteDomain, - RemoteToken: remoteToken, - } -} - -func (msg *MsgUnlinkTokenPair) Route() string { - return RouterKey -} - -func (msg *MsgUnlinkTokenPair) Type() string { - return TypeMsgUnlinkTokenPair -} - -func (msg *MsgUnlinkTokenPair) GetSigners() []sdk.AccAddress { - from, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - panic(err) - } - return []sdk.AccAddress{from} -} - -func (msg *MsgUnlinkTokenPair) GetSignBytes() []byte { - bz := ModuleCdc.MustMarshalJSON(msg) - return sdk.MustSortJSON(bz) -} - -func (msg *MsgUnlinkTokenPair) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid from address: %s", err) - } - - if len(msg.RemoteToken) != 32 { - return sdkerrors.Wrapf(ErrInvalidRemoteToken, "must be a byte32 array: %s", err) - } - - return nil -} diff --git a/x/cctp/types/message_unlink_token_pair_test.go b/x/cctp/types/message_unlink_token_pair_test.go deleted file mode 100644 index b92f486..0000000 --- a/x/cctp/types/message_unlink_token_pair_test.go +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package types - -import ( - "testing" - - "github.com/circlefin/noble-cctp/testutil/sample" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/stretchr/testify/require" -) - -func TestMsgUnlinkTokenPair_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgUnlinkTokenPair - err error - }{ - { - name: "invalid from", - msg: MsgUnlinkTokenPair{ - From: "invalid_address", - RemoteDomain: 1, - RemoteToken: make([]byte, 32), - LocalToken: "uusdc", - }, - err: sdkerrors.ErrInvalidAddress, - }, - { - name: "valid from", - msg: MsgUnlinkTokenPair{ - From: sample.AccAddress(), - RemoteDomain: 1, - RemoteToken: make([]byte, 32), - LocalToken: "uusdc", - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/cctp/types/message_unpause_burning_and_minting.go b/x/cctp/types/message_unpause_burning_and_minting.go deleted file mode 100644 index 917c011..0000000 --- a/x/cctp/types/message_unpause_burning_and_minting.go +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package types - -import ( - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -const TypeMsgUnpauseBurningAndMinting = "unpause_burning_and_minting" - -var _ sdk.Msg = &MsgUnpauseBurningAndMinting{} - -func NewMsgUnpauseBurningAndMinting(from string) *MsgUnpauseBurningAndMinting { - return &MsgUnpauseBurningAndMinting{ - From: from, - } -} - -func (msg *MsgUnpauseBurningAndMinting) Route() string { - return RouterKey -} - -func (msg *MsgUnpauseBurningAndMinting) Type() string { - return TypeMsgUnpauseBurningAndMinting -} - -func (msg *MsgUnpauseBurningAndMinting) GetSigners() []sdk.AccAddress { - from, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - panic(err) - } - return []sdk.AccAddress{from} -} - -func (msg *MsgUnpauseBurningAndMinting) GetSignBytes() []byte { - bz := ModuleCdc.MustMarshalJSON(msg) - return sdk.MustSortJSON(bz) -} - -func (msg *MsgUnpauseBurningAndMinting) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid from address (%s)", err) - } - return nil -} diff --git a/x/cctp/types/message_unpause_burning_and_minting_test.go b/x/cctp/types/message_unpause_burning_and_minting_test.go deleted file mode 100644 index 9c36168..0000000 --- a/x/cctp/types/message_unpause_burning_and_minting_test.go +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package types - -import ( - "testing" - - "github.com/circlefin/noble-cctp/testutil/sample" - - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/stretchr/testify/require" -) - -func TestMsgUnpauseBurningAndMinting_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgUnpauseBurningAndMinting - err error - }{ - { - name: "invalid from", - msg: MsgUnpauseBurningAndMinting{ - From: "invalid_address", - }, - err: sdkerrors.ErrInvalidAddress, - }, { - name: "valid from", - msg: MsgUnpauseBurningAndMinting{ - From: sample.AccAddress(), - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/cctp/types/message_unpause_sending_and_receiving_messages.go b/x/cctp/types/message_unpause_sending_and_receiving_messages.go deleted file mode 100644 index c0a60a7..0000000 --- a/x/cctp/types/message_unpause_sending_and_receiving_messages.go +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package types - -import ( - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -const TypeMsgUnpauseSendingAndReceivingMessages = "unpause_sending_and_receiving_messages" - -var _ sdk.Msg = &MsgUnpauseSendingAndReceivingMessages{} - -func NewMsgUnpauseSendingAndReceivingMessages(from string) *MsgUnpauseSendingAndReceivingMessages { - return &MsgUnpauseSendingAndReceivingMessages{ - From: from, - } -} - -func (msg *MsgUnpauseSendingAndReceivingMessages) Route() string { - return RouterKey -} - -func (msg *MsgUnpauseSendingAndReceivingMessages) Type() string { - return TypeMsgUnpauseSendingAndReceivingMessages -} - -func (msg *MsgUnpauseSendingAndReceivingMessages) GetSigners() []sdk.AccAddress { - from, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - panic(err) - } - return []sdk.AccAddress{from} -} - -func (msg *MsgUnpauseSendingAndReceivingMessages) GetSignBytes() []byte { - bz := ModuleCdc.MustMarshalJSON(msg) - return sdk.MustSortJSON(bz) -} - -func (msg *MsgUnpauseSendingAndReceivingMessages) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid from address (%s)", err) - } - return nil -} diff --git a/x/cctp/types/message_unpause_sending_and_receiving_messages_test.go b/x/cctp/types/message_unpause_sending_and_receiving_messages_test.go deleted file mode 100644 index 8082bdc..0000000 --- a/x/cctp/types/message_unpause_sending_and_receiving_messages_test.go +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package types - -import ( - "testing" - - "github.com/circlefin/noble-cctp/testutil/sample" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/stretchr/testify/require" -) - -func TestMsgUnpauseSendingAndReceivingMessages_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgUnpauseSendingAndReceivingMessages - err error - }{ - { - name: "invalid from", - msg: MsgUnpauseSendingAndReceivingMessages{ - From: "invalid_address", - }, - err: sdkerrors.ErrInvalidAddress, - }, { - name: "valid from", - msg: MsgUnpauseSendingAndReceivingMessages{ - From: sample.AccAddress(), - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/cctp/types/message_update_attester_manager.go b/x/cctp/types/message_update_attester_manager.go deleted file mode 100644 index ab8f29c..0000000 --- a/x/cctp/types/message_update_attester_manager.go +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package types - -import ( - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -const TypeMsgUpdateAttesterManager = "update_attester_manager" - -var _ sdk.Msg = &MsgUpdateAttesterManager{} - -func NewMsgUpdateAttesterManager(from string, newAttesterManager string) *MsgUpdateAttesterManager { - return &MsgUpdateAttesterManager{ - From: from, - NewAttesterManager: newAttesterManager, - } -} - -func (msg *MsgUpdateAttesterManager) Route() string { - return RouterKey -} - -func (msg *MsgUpdateAttesterManager) Type() string { - return TypeMsgUpdateAttesterManager -} - -func (msg *MsgUpdateAttesterManager) GetSigners() []sdk.AccAddress { - from, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - panic(err) - } - return []sdk.AccAddress{from} -} - -func (msg *MsgUpdateAttesterManager) GetSignBytes() []byte { - bz := ModuleCdc.MustMarshalJSON(msg) - return sdk.MustSortJSON(bz) -} - -func (msg *MsgUpdateAttesterManager) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid from address (%s)", err) - } - _, err = sdk.AccAddressFromBech32(msg.NewAttesterManager) - if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid attester manager address (%s)", err) - } - return nil -} diff --git a/x/cctp/types/message_update_max_message_body_size.go b/x/cctp/types/message_update_max_message_body_size.go deleted file mode 100644 index 552b492..0000000 --- a/x/cctp/types/message_update_max_message_body_size.go +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package types - -import ( - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -const TypeMsgUpdateMaxMessageBodySize = "update_max_message_body_size" - -var _ sdk.Msg = &MsgUpdateMaxMessageBodySize{} - -func NewMsgUpdateMaxMessageBodySize(from string, messageSize uint64) *MsgUpdateMaxMessageBodySize { - return &MsgUpdateMaxMessageBodySize{ - From: from, - MessageSize: messageSize, - } -} - -func (msg *MsgUpdateMaxMessageBodySize) Route() string { - return RouterKey -} - -func (msg *MsgUpdateMaxMessageBodySize) Type() string { - return TypeMsgUpdateMaxMessageBodySize -} - -func (msg *MsgUpdateMaxMessageBodySize) GetSigners() []sdk.AccAddress { - from, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - panic(err) - } - return []sdk.AccAddress{from} -} - -func (msg *MsgUpdateMaxMessageBodySize) GetSignBytes() []byte { - bz := ModuleCdc.MustMarshalJSON(msg) - return sdk.MustSortJSON(bz) -} - -func (msg *MsgUpdateMaxMessageBodySize) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid from address (%s)", err) - } - return nil -} diff --git a/x/cctp/types/message_update_max_message_body_size_test.go b/x/cctp/types/message_update_max_message_body_size_test.go deleted file mode 100644 index c58eabe..0000000 --- a/x/cctp/types/message_update_max_message_body_size_test.go +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package types - -import ( - "testing" - - "github.com/circlefin/noble-cctp/testutil/sample" - - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/stretchr/testify/require" -) - -func TestMsgUpdateMaxMessageBodyMessageSizeValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgUpdateMaxMessageBodySize - err error - }{ - { - name: "invalid from", - msg: MsgUpdateMaxMessageBodySize{ - From: "invalid_address", - MessageSize: 8000, - }, - err: sdkerrors.ErrInvalidAddress, - }, - { - name: "valid from", - msg: MsgUpdateMaxMessageBodySize{ - From: sample.AccAddress(), - MessageSize: 8000, - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/cctp/types/message_update_owner.go b/x/cctp/types/message_update_owner.go deleted file mode 100644 index de3aae8..0000000 --- a/x/cctp/types/message_update_owner.go +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package types - -import ( - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -const TypeMsgUpdateOwner = "update_owner" - -var _ sdk.Msg = &MsgUpdateOwner{} - -func NewMsgUpdateOwner(from string, newOwner string) *MsgUpdateOwner { - return &MsgUpdateOwner{ - From: from, - NewOwner: newOwner, - } -} - -func (msg *MsgUpdateOwner) Route() string { - return RouterKey -} - -func (msg *MsgUpdateOwner) Type() string { - return TypeMsgUpdateOwner -} - -func (msg *MsgUpdateOwner) GetSigners() []sdk.AccAddress { - from, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - panic(err) - } - return []sdk.AccAddress{from} -} - -func (msg *MsgUpdateOwner) GetSignBytes() []byte { - bz := ModuleCdc.MustMarshalJSON(msg) - return sdk.MustSortJSON(bz) -} - -func (msg *MsgUpdateOwner) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid from address (%s)", err) - } - _, err = sdk.AccAddressFromBech32(msg.NewOwner) - if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid owner address (%s)", err) - } - return nil -} diff --git a/x/cctp/types/message_update_owner_test.go b/x/cctp/types/message_update_owner_test.go deleted file mode 100644 index adb4b1f..0000000 --- a/x/cctp/types/message_update_owner_test.go +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package types - -import ( - "testing" - - "github.com/circlefin/noble-cctp/testutil/sample" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/stretchr/testify/require" -) - -func TestMsgUpdateOwner_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgUpdateOwner - err error - }{ - { - name: "invalid from", - msg: MsgUpdateOwner{ - From: "invalid_address", - NewOwner: sample.AccAddress(), - }, - err: sdkerrors.ErrInvalidAddress, - }, - { - name: "valid from", - msg: MsgUpdateOwner{ - From: sample.AccAddress(), - NewOwner: sample.AccAddress(), - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/cctp/types/message_update_pauser.go b/x/cctp/types/message_update_pauser.go deleted file mode 100644 index 2ca3fe1..0000000 --- a/x/cctp/types/message_update_pauser.go +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package types - -import ( - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -const TypeMsgUpdatePauser = "update_pauser" - -var _ sdk.Msg = &MsgUpdatePauser{} - -func NewMsgUpdatePauser(from string, newPauser string) *MsgUpdatePauser { - return &MsgUpdatePauser{ - From: from, - NewPauser: newPauser, - } -} - -func (msg *MsgUpdatePauser) Route() string { - return RouterKey -} - -func (msg *MsgUpdatePauser) Type() string { - return TypeMsgUpdatePauser -} - -func (msg *MsgUpdatePauser) GetSigners() []sdk.AccAddress { - from, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - panic(err) - } - return []sdk.AccAddress{from} -} - -func (msg *MsgUpdatePauser) GetSignBytes() []byte { - bz := ModuleCdc.MustMarshalJSON(msg) - return sdk.MustSortJSON(bz) -} - -func (msg *MsgUpdatePauser) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid from address (%s)", err) - } - _, err = sdk.AccAddressFromBech32(msg.NewPauser) - if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid pauser address (%s)", err) - } - return nil -} diff --git a/x/cctp/types/message_update_pauser_test.go b/x/cctp/types/message_update_pauser_test.go deleted file mode 100644 index 8ea6d86..0000000 --- a/x/cctp/types/message_update_pauser_test.go +++ /dev/null @@ -1,43 +0,0 @@ -package types - -import ( - "testing" - - "github.com/circlefin/noble-cctp/testutil/sample" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/stretchr/testify/require" -) - -func TestMsgUpdatePauser_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgUpdatePauser - err error - }{ - { - name: "invalid from", - msg: MsgUpdatePauser{ - From: "invalid_address", - NewPauser: sample.AccAddress(), - }, - err: sdkerrors.ErrInvalidAddress, - }, - { - name: "valid from", - msg: MsgUpdatePauser{ - From: sample.AccAddress(), - NewPauser: sample.AccAddress(), - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/cctp/types/message_update_signature_threshold.go b/x/cctp/types/message_update_signature_threshold.go deleted file mode 100644 index 6f821a9..0000000 --- a/x/cctp/types/message_update_signature_threshold.go +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package types - -import ( - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -const TypeMsgUpdateSignatureThreshold = "update_signature_threshold" - -var _ sdk.Msg = &MsgUpdateSignatureThreshold{} - -func NewMsgUpdateSignatureThreshold(from string, amount uint32) *MsgUpdateSignatureThreshold { - return &MsgUpdateSignatureThreshold{ - From: from, - Amount: amount, - } -} - -func (msg *MsgUpdateSignatureThreshold) Route() string { - return RouterKey -} - -func (msg *MsgUpdateSignatureThreshold) Type() string { - return TypeMsgUpdateSignatureThreshold -} - -func (msg *MsgUpdateSignatureThreshold) GetSigners() []sdk.AccAddress { - from, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - panic(err) - } - return []sdk.AccAddress{from} -} - -func (msg *MsgUpdateSignatureThreshold) GetSignBytes() []byte { - bz := ModuleCdc.MustMarshalJSON(msg) - return sdk.MustSortJSON(bz) -} - -func (msg *MsgUpdateSignatureThreshold) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid from address (%s)", err) - } - return nil -} diff --git a/x/cctp/types/message_update_signature_threshold_test.go b/x/cctp/types/message_update_signature_threshold_test.go deleted file mode 100644 index 864d478..0000000 --- a/x/cctp/types/message_update_signature_threshold_test.go +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package types - -import ( - "testing" - - "github.com/circlefin/noble-cctp/testutil/sample" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/stretchr/testify/require" -) - -func TestMsgUpdateSignatureThreshold_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgUpdateSignatureThreshold - err error - }{ - { - name: "invalid from", - msg: MsgUpdateSignatureThreshold{ - From: "invalid_address", - Amount: 1, - }, - err: sdkerrors.ErrInvalidAddress, - }, - { - name: "valid from", - msg: MsgUpdateSignatureThreshold{ - From: sample.AccAddress(), - Amount: 1, - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/cctp/types/message_update_token_controller.go b/x/cctp/types/message_update_token_controller.go deleted file mode 100644 index ec75ed7..0000000 --- a/x/cctp/types/message_update_token_controller.go +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package types - -import ( - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -const TypeMsgUpdateTokenController = "update_token_controller" - -var _ sdk.Msg = &MsgUpdateTokenController{} - -func NewMsgUpdateTokenController(from string, newTokenController string) *MsgUpdateTokenController { - return &MsgUpdateTokenController{ - From: from, - NewTokenController: newTokenController, - } -} - -func (msg *MsgUpdateTokenController) Route() string { - return RouterKey -} - -func (msg *MsgUpdateTokenController) Type() string { - return TypeMsgUpdateTokenController -} - -func (msg *MsgUpdateTokenController) GetSigners() []sdk.AccAddress { - from, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - panic(err) - } - return []sdk.AccAddress{from} -} - -func (msg *MsgUpdateTokenController) GetSignBytes() []byte { - bz := ModuleCdc.MustMarshalJSON(msg) - return sdk.MustSortJSON(bz) -} - -func (msg *MsgUpdateTokenController) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid from address (%s)", err) - } - _, err = sdk.AccAddressFromBech32(msg.NewTokenController) - if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid token controller address (%s)", err) - } - return nil -} diff --git a/x/cctp/types/message_update_token_controller_test.go b/x/cctp/types/message_update_token_controller_test.go deleted file mode 100644 index cfed477..0000000 --- a/x/cctp/types/message_update_token_controller_test.go +++ /dev/null @@ -1,43 +0,0 @@ -package types - -import ( - "testing" - - "github.com/circlefin/noble-cctp/testutil/sample" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/stretchr/testify/require" -) - -func TestMsgUpdateTokenController_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgUpdateTokenController - err error - }{ - { - name: "invalid from", - msg: MsgUpdateTokenController{ - From: "invalid_address", - NewTokenController: sample.AccAddress(), - }, - err: sdkerrors.ErrInvalidAddress, - }, - { - name: "valid from", - msg: MsgUpdateTokenController{ - From: sample.AccAddress(), - NewTokenController: sample.AccAddress(), - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/cctp/types/nonce.pb.go b/x/cctp/types/nonce.pb.go index 684e55a..ea5f57b 100644 --- a/x/cctp/types/nonce.pb.go +++ b/x/cctp/types/nonce.pb.go @@ -5,7 +5,7 @@ package types import ( fmt "fmt" - proto "github.com/gogo/protobuf/proto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" diff --git a/x/cctp/types/params.go b/x/cctp/types/params.go deleted file mode 100644 index 09c1aa7..0000000 --- a/x/cctp/types/params.go +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package types - -import ( - paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" - "gopkg.in/yaml.v2" -) - -var _ paramtypes.ParamSet = (*Params)(nil) - -// ParamKeyTable the param key table for launch module -func ParamKeyTable() paramtypes.KeyTable { - return paramtypes.NewKeyTable().RegisterParamSet(&Params{}) -} - -// NewParams creates a new Params instance -func NewParams() Params { - return Params{} -} - -// DefaultParams returns a default set of parameters -func DefaultParams() Params { - return NewParams() -} - -// ParamSetPairs get the params.ParamSet -func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs { - return paramtypes.ParamSetPairs{} -} - -// Validate validates the set of params -func (p Params) Validate() error { - return nil -} - -// String implements the Stringer interface. -func (p Params) String() string { - out, _ := yaml.Marshal(p) - return string(out) -} diff --git a/x/cctp/types/params.pb.go b/x/cctp/types/params.pb.go deleted file mode 100644 index d7b7cbe..0000000 --- a/x/cctp/types/params.pb.go +++ /dev/null @@ -1,265 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: circle/cctp/v1/params.proto - -package types - -import ( - fmt "fmt" - _ "github.com/gogo/protobuf/gogoproto" - proto "github.com/gogo/protobuf/proto" - io "io" - math "math" - math_bits "math/bits" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package - -// * -// Params defines the parameters for the module. -type Params struct { -} - -func (m *Params) Reset() { *m = Params{} } -func (*Params) ProtoMessage() {} -func (*Params) Descriptor() ([]byte, []int) { - return fileDescriptor_78605ac84643ba7c, []int{0} -} -func (m *Params) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Params.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Params) XXX_Merge(src proto.Message) { - xxx_messageInfo_Params.Merge(m, src) -} -func (m *Params) XXX_Size() int { - return m.Size() -} -func (m *Params) XXX_DiscardUnknown() { - xxx_messageInfo_Params.DiscardUnknown(m) -} - -var xxx_messageInfo_Params proto.InternalMessageInfo - -func init() { - proto.RegisterType((*Params)(nil), "circle.cctp.v1.Params") -} - -func init() { proto.RegisterFile("circle/cctp/v1/params.proto", fileDescriptor_78605ac84643ba7c) } - -var fileDescriptor_78605ac84643ba7c = []byte{ - // 157 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4e, 0xce, 0x2c, 0x4a, - 0xce, 0x49, 0xd5, 0x4f, 0x4e, 0x2e, 0x29, 0xd0, 0x2f, 0x33, 0xd4, 0x2f, 0x48, 0x2c, 0x4a, 0xcc, - 0x2d, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x83, 0x48, 0xea, 0x81, 0x24, 0xf5, 0xca, - 0x0c, 0xa5, 0x44, 0xd2, 0xf3, 0xd3, 0xf3, 0xc1, 0x52, 0xfa, 0x20, 0x16, 0x44, 0x95, 0x12, 0x1f, - 0x17, 0x5b, 0x00, 0x58, 0x97, 0x15, 0xcb, 0x8c, 0x05, 0xf2, 0x0c, 0x4e, 0x6e, 0x27, 0x1e, 0xc9, - 0x31, 0x5e, 0x78, 0x24, 0xc7, 0xf8, 0xe0, 0x91, 0x1c, 0xe3, 0x84, 0xc7, 0x72, 0x0c, 0x17, 0x1e, - 0xcb, 0x31, 0xdc, 0x78, 0x2c, 0xc7, 0x10, 0xa5, 0x93, 0x9e, 0x59, 0x92, 0x51, 0x9a, 0xa4, 0x97, - 0x9c, 0x9f, 0xab, 0x0f, 0x31, 0x3a, 0x2d, 0x33, 0x4f, 0x3f, 0x2f, 0x3f, 0x29, 0x27, 0x55, 0x17, - 0xec, 0x80, 0x0a, 0x88, 0x3b, 0x4a, 0x2a, 0x0b, 0x52, 0x8b, 0x93, 0xd8, 0xc0, 0xc6, 0x1b, 0x03, - 0x02, 0x00, 0x00, 0xff, 0xff, 0xd2, 0x33, 0xe0, 0xbc, 0xa3, 0x00, 0x00, 0x00, -} - -func (m *Params) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Params) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func encodeVarintParams(dAtA []byte, offset int, v uint64) int { - offset -= sovParams(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *Params) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func sovParams(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozParams(x uint64) (n int) { - return sovParams(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *Params) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowParams - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Params: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipParams(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthParams - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipParams(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowParams - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowParams - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowParams - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthParams - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupParams - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthParams - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/cctp/types/per_message_burn_limit.pb.go b/x/cctp/types/per_message_burn_limit.pb.go index 465d5c7..339b08e 100644 --- a/x/cctp/types/per_message_burn_limit.pb.go +++ b/x/cctp/types/per_message_burn_limit.pb.go @@ -6,8 +6,8 @@ package types import ( cosmossdk_io_math "cosmossdk.io/math" fmt "fmt" - _ "github.com/gogo/protobuf/gogoproto" - proto "github.com/gogo/protobuf/proto" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" diff --git a/x/cctp/types/query.pb.go b/x/cctp/types/query.pb.go index 6c53d6f..bcb470f 100644 --- a/x/cctp/types/query.pb.go +++ b/x/cctp/types/query.pb.go @@ -7,9 +7,9 @@ import ( context "context" fmt "fmt" query "github.com/cosmos/cosmos-sdk/types/query" - _ "github.com/gogo/protobuf/gogoproto" - grpc1 "github.com/gogo/protobuf/grpc" - proto "github.com/gogo/protobuf/proto" + _ "github.com/cosmos/gogoproto/gogoproto" + grpc1 "github.com/cosmos/gogoproto/grpc" + proto "github.com/cosmos/gogoproto/proto" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" @@ -30,89 +30,6 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package -// QueryParamsRequest is the request type for the Query/Params RPC method. -type QueryParamsRequest struct { -} - -func (m *QueryParamsRequest) Reset() { *m = QueryParamsRequest{} } -func (m *QueryParamsRequest) String() string { return proto.CompactTextString(m) } -func (*QueryParamsRequest) ProtoMessage() {} -func (*QueryParamsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e7468ed27f019b2f, []int{0} -} -func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryParamsRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryParamsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryParamsRequest.Merge(m, src) -} -func (m *QueryParamsRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryParamsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryParamsRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryParamsRequest proto.InternalMessageInfo - -// QueryParamsResponse is the response type for the Query/Params RPC method. -type QueryParamsResponse struct { - // params holds all the parameters of this module. - Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` -} - -func (m *QueryParamsResponse) Reset() { *m = QueryParamsResponse{} } -func (m *QueryParamsResponse) String() string { return proto.CompactTextString(m) } -func (*QueryParamsResponse) ProtoMessage() {} -func (*QueryParamsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e7468ed27f019b2f, []int{1} -} -func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryParamsResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryParamsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryParamsResponse.Merge(m, src) -} -func (m *QueryParamsResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryParamsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryParamsResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryParamsResponse proto.InternalMessageInfo - -func (m *QueryParamsResponse) GetParams() Params { - if m != nil { - return m.Params - } - return Params{} -} - // QueryRolesRequest is the request type for the Query/Roles RPC method. type QueryRolesRequest struct { } @@ -121,7 +38,7 @@ func (m *QueryRolesRequest) Reset() { *m = QueryRolesRequest{} } func (m *QueryRolesRequest) String() string { return proto.CompactTextString(m) } func (*QueryRolesRequest) ProtoMessage() {} func (*QueryRolesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e7468ed27f019b2f, []int{2} + return fileDescriptor_e7468ed27f019b2f, []int{0} } func (m *QueryRolesRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -162,7 +79,7 @@ func (m *QueryRolesResponse) Reset() { *m = QueryRolesResponse{} } func (m *QueryRolesResponse) String() string { return proto.CompactTextString(m) } func (*QueryRolesResponse) ProtoMessage() {} func (*QueryRolesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e7468ed27f019b2f, []int{3} + return fileDescriptor_e7468ed27f019b2f, []int{1} } func (m *QueryRolesResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -228,7 +145,7 @@ func (m *QueryGetAttesterRequest) Reset() { *m = QueryGetAttesterRequest func (m *QueryGetAttesterRequest) String() string { return proto.CompactTextString(m) } func (*QueryGetAttesterRequest) ProtoMessage() {} func (*QueryGetAttesterRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e7468ed27f019b2f, []int{4} + return fileDescriptor_e7468ed27f019b2f, []int{2} } func (m *QueryGetAttesterRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -274,7 +191,7 @@ func (m *QueryGetAttesterResponse) Reset() { *m = QueryGetAttesterRespon func (m *QueryGetAttesterResponse) String() string { return proto.CompactTextString(m) } func (*QueryGetAttesterResponse) ProtoMessage() {} func (*QueryGetAttesterResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e7468ed27f019b2f, []int{5} + return fileDescriptor_e7468ed27f019b2f, []int{3} } func (m *QueryGetAttesterResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -320,7 +237,7 @@ func (m *QueryAllAttestersRequest) Reset() { *m = QueryAllAttestersReque func (m *QueryAllAttestersRequest) String() string { return proto.CompactTextString(m) } func (*QueryAllAttestersRequest) ProtoMessage() {} func (*QueryAllAttestersRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e7468ed27f019b2f, []int{6} + return fileDescriptor_e7468ed27f019b2f, []int{4} } func (m *QueryAllAttestersRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -367,7 +284,7 @@ func (m *QueryAllAttestersResponse) Reset() { *m = QueryAllAttestersResp func (m *QueryAllAttestersResponse) String() string { return proto.CompactTextString(m) } func (*QueryAllAttestersResponse) ProtoMessage() {} func (*QueryAllAttestersResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e7468ed27f019b2f, []int{7} + return fileDescriptor_e7468ed27f019b2f, []int{5} } func (m *QueryAllAttestersResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -420,7 +337,7 @@ func (m *QueryGetPerMessageBurnLimitRequest) Reset() { *m = QueryGetPerM func (m *QueryGetPerMessageBurnLimitRequest) String() string { return proto.CompactTextString(m) } func (*QueryGetPerMessageBurnLimitRequest) ProtoMessage() {} func (*QueryGetPerMessageBurnLimitRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e7468ed27f019b2f, []int{8} + return fileDescriptor_e7468ed27f019b2f, []int{6} } func (m *QueryGetPerMessageBurnLimitRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -466,7 +383,7 @@ func (m *QueryGetPerMessageBurnLimitResponse) Reset() { *m = QueryGetPer func (m *QueryGetPerMessageBurnLimitResponse) String() string { return proto.CompactTextString(m) } func (*QueryGetPerMessageBurnLimitResponse) ProtoMessage() {} func (*QueryGetPerMessageBurnLimitResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e7468ed27f019b2f, []int{9} + return fileDescriptor_e7468ed27f019b2f, []int{7} } func (m *QueryGetPerMessageBurnLimitResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -512,7 +429,7 @@ func (m *QueryAllPerMessageBurnLimitsRequest) Reset() { *m = QueryAllPer func (m *QueryAllPerMessageBurnLimitsRequest) String() string { return proto.CompactTextString(m) } func (*QueryAllPerMessageBurnLimitsRequest) ProtoMessage() {} func (*QueryAllPerMessageBurnLimitsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e7468ed27f019b2f, []int{10} + return fileDescriptor_e7468ed27f019b2f, []int{8} } func (m *QueryAllPerMessageBurnLimitsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -559,7 +476,7 @@ func (m *QueryAllPerMessageBurnLimitsResponse) Reset() { *m = QueryAllPe func (m *QueryAllPerMessageBurnLimitsResponse) String() string { return proto.CompactTextString(m) } func (*QueryAllPerMessageBurnLimitsResponse) ProtoMessage() {} func (*QueryAllPerMessageBurnLimitsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e7468ed27f019b2f, []int{11} + return fileDescriptor_e7468ed27f019b2f, []int{9} } func (m *QueryAllPerMessageBurnLimitsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -613,7 +530,7 @@ func (m *QueryGetBurningAndMintingPausedRequest) Reset() { func (m *QueryGetBurningAndMintingPausedRequest) String() string { return proto.CompactTextString(m) } func (*QueryGetBurningAndMintingPausedRequest) ProtoMessage() {} func (*QueryGetBurningAndMintingPausedRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e7468ed27f019b2f, []int{12} + return fileDescriptor_e7468ed27f019b2f, []int{10} } func (m *QueryGetBurningAndMintingPausedRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -654,7 +571,7 @@ func (m *QueryGetBurningAndMintingPausedResponse) Reset() { func (m *QueryGetBurningAndMintingPausedResponse) String() string { return proto.CompactTextString(m) } func (*QueryGetBurningAndMintingPausedResponse) ProtoMessage() {} func (*QueryGetBurningAndMintingPausedResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e7468ed27f019b2f, []int{13} + return fileDescriptor_e7468ed27f019b2f, []int{11} } func (m *QueryGetBurningAndMintingPausedResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -703,7 +620,7 @@ func (m *QueryGetSendingAndReceivingMessagesPausedRequest) String() string { } func (*QueryGetSendingAndReceivingMessagesPausedRequest) ProtoMessage() {} func (*QueryGetSendingAndReceivingMessagesPausedRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e7468ed27f019b2f, []int{14} + return fileDescriptor_e7468ed27f019b2f, []int{12} } func (m *QueryGetSendingAndReceivingMessagesPausedRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -746,7 +663,7 @@ func (m *QueryGetSendingAndReceivingMessagesPausedResponse) String() string { } func (*QueryGetSendingAndReceivingMessagesPausedResponse) ProtoMessage() {} func (*QueryGetSendingAndReceivingMessagesPausedResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e7468ed27f019b2f, []int{15} + return fileDescriptor_e7468ed27f019b2f, []int{13} } func (m *QueryGetSendingAndReceivingMessagesPausedResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -791,7 +708,7 @@ func (m *QueryGetMaxMessageBodySizeRequest) Reset() { *m = QueryGetMaxMe func (m *QueryGetMaxMessageBodySizeRequest) String() string { return proto.CompactTextString(m) } func (*QueryGetMaxMessageBodySizeRequest) ProtoMessage() {} func (*QueryGetMaxMessageBodySizeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e7468ed27f019b2f, []int{16} + return fileDescriptor_e7468ed27f019b2f, []int{14} } func (m *QueryGetMaxMessageBodySizeRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -830,7 +747,7 @@ func (m *QueryGetMaxMessageBodySizeResponse) Reset() { *m = QueryGetMaxM func (m *QueryGetMaxMessageBodySizeResponse) String() string { return proto.CompactTextString(m) } func (*QueryGetMaxMessageBodySizeResponse) ProtoMessage() {} func (*QueryGetMaxMessageBodySizeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e7468ed27f019b2f, []int{17} + return fileDescriptor_e7468ed27f019b2f, []int{15} } func (m *QueryGetMaxMessageBodySizeResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -875,7 +792,7 @@ func (m *QueryGetNextAvailableNonceRequest) Reset() { *m = QueryGetNextA func (m *QueryGetNextAvailableNonceRequest) String() string { return proto.CompactTextString(m) } func (*QueryGetNextAvailableNonceRequest) ProtoMessage() {} func (*QueryGetNextAvailableNonceRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e7468ed27f019b2f, []int{18} + return fileDescriptor_e7468ed27f019b2f, []int{16} } func (m *QueryGetNextAvailableNonceRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -914,7 +831,7 @@ func (m *QueryGetNextAvailableNonceResponse) Reset() { *m = QueryGetNext func (m *QueryGetNextAvailableNonceResponse) String() string { return proto.CompactTextString(m) } func (*QueryGetNextAvailableNonceResponse) ProtoMessage() {} func (*QueryGetNextAvailableNonceResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e7468ed27f019b2f, []int{19} + return fileDescriptor_e7468ed27f019b2f, []int{17} } func (m *QueryGetNextAvailableNonceResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -959,7 +876,7 @@ func (m *QueryGetSignatureThresholdRequest) Reset() { *m = QueryGetSigna func (m *QueryGetSignatureThresholdRequest) String() string { return proto.CompactTextString(m) } func (*QueryGetSignatureThresholdRequest) ProtoMessage() {} func (*QueryGetSignatureThresholdRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e7468ed27f019b2f, []int{20} + return fileDescriptor_e7468ed27f019b2f, []int{18} } func (m *QueryGetSignatureThresholdRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -998,7 +915,7 @@ func (m *QueryGetSignatureThresholdResponse) Reset() { *m = QueryGetSign func (m *QueryGetSignatureThresholdResponse) String() string { return proto.CompactTextString(m) } func (*QueryGetSignatureThresholdResponse) ProtoMessage() {} func (*QueryGetSignatureThresholdResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e7468ed27f019b2f, []int{21} + return fileDescriptor_e7468ed27f019b2f, []int{19} } func (m *QueryGetSignatureThresholdResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1045,7 +962,7 @@ func (m *QueryGetTokenPairRequest) Reset() { *m = QueryGetTokenPairReque func (m *QueryGetTokenPairRequest) String() string { return proto.CompactTextString(m) } func (*QueryGetTokenPairRequest) ProtoMessage() {} func (*QueryGetTokenPairRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e7468ed27f019b2f, []int{22} + return fileDescriptor_e7468ed27f019b2f, []int{20} } func (m *QueryGetTokenPairRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1098,7 +1015,7 @@ func (m *QueryGetTokenPairResponse) Reset() { *m = QueryGetTokenPairResp func (m *QueryGetTokenPairResponse) String() string { return proto.CompactTextString(m) } func (*QueryGetTokenPairResponse) ProtoMessage() {} func (*QueryGetTokenPairResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e7468ed27f019b2f, []int{23} + return fileDescriptor_e7468ed27f019b2f, []int{21} } func (m *QueryGetTokenPairResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1144,7 +1061,7 @@ func (m *QueryAllTokenPairsRequest) Reset() { *m = QueryAllTokenPairsReq func (m *QueryAllTokenPairsRequest) String() string { return proto.CompactTextString(m) } func (*QueryAllTokenPairsRequest) ProtoMessage() {} func (*QueryAllTokenPairsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e7468ed27f019b2f, []int{24} + return fileDescriptor_e7468ed27f019b2f, []int{22} } func (m *QueryAllTokenPairsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1191,7 +1108,7 @@ func (m *QueryAllTokenPairsResponse) Reset() { *m = QueryAllTokenPairsRe func (m *QueryAllTokenPairsResponse) String() string { return proto.CompactTextString(m) } func (*QueryAllTokenPairsResponse) ProtoMessage() {} func (*QueryAllTokenPairsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e7468ed27f019b2f, []int{25} + return fileDescriptor_e7468ed27f019b2f, []int{23} } func (m *QueryAllTokenPairsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1245,7 +1162,7 @@ func (m *QueryGetUsedNonceRequest) Reset() { *m = QueryGetUsedNonceReque func (m *QueryGetUsedNonceRequest) String() string { return proto.CompactTextString(m) } func (*QueryGetUsedNonceRequest) ProtoMessage() {} func (*QueryGetUsedNonceRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e7468ed27f019b2f, []int{26} + return fileDescriptor_e7468ed27f019b2f, []int{24} } func (m *QueryGetUsedNonceRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1298,7 +1215,7 @@ func (m *QueryGetUsedNonceResponse) Reset() { *m = QueryGetUsedNonceResp func (m *QueryGetUsedNonceResponse) String() string { return proto.CompactTextString(m) } func (*QueryGetUsedNonceResponse) ProtoMessage() {} func (*QueryGetUsedNonceResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e7468ed27f019b2f, []int{27} + return fileDescriptor_e7468ed27f019b2f, []int{25} } func (m *QueryGetUsedNonceResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1344,7 +1261,7 @@ func (m *QueryAllUsedNoncesRequest) Reset() { *m = QueryAllUsedNoncesReq func (m *QueryAllUsedNoncesRequest) String() string { return proto.CompactTextString(m) } func (*QueryAllUsedNoncesRequest) ProtoMessage() {} func (*QueryAllUsedNoncesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e7468ed27f019b2f, []int{28} + return fileDescriptor_e7468ed27f019b2f, []int{26} } func (m *QueryAllUsedNoncesRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1391,7 +1308,7 @@ func (m *QueryAllUsedNoncesResponse) Reset() { *m = QueryAllUsedNoncesRe func (m *QueryAllUsedNoncesResponse) String() string { return proto.CompactTextString(m) } func (*QueryAllUsedNoncesResponse) ProtoMessage() {} func (*QueryAllUsedNoncesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e7468ed27f019b2f, []int{29} + return fileDescriptor_e7468ed27f019b2f, []int{27} } func (m *QueryAllUsedNoncesResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1444,7 +1361,7 @@ func (m *QueryRemoteTokenMessengerRequest) Reset() { *m = QueryRemoteTok func (m *QueryRemoteTokenMessengerRequest) String() string { return proto.CompactTextString(m) } func (*QueryRemoteTokenMessengerRequest) ProtoMessage() {} func (*QueryRemoteTokenMessengerRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e7468ed27f019b2f, []int{30} + return fileDescriptor_e7468ed27f019b2f, []int{28} } func (m *QueryRemoteTokenMessengerRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1490,7 +1407,7 @@ func (m *QueryRemoteTokenMessengerResponse) Reset() { *m = QueryRemoteTo func (m *QueryRemoteTokenMessengerResponse) String() string { return proto.CompactTextString(m) } func (*QueryRemoteTokenMessengerResponse) ProtoMessage() {} func (*QueryRemoteTokenMessengerResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e7468ed27f019b2f, []int{31} + return fileDescriptor_e7468ed27f019b2f, []int{29} } func (m *QueryRemoteTokenMessengerResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1536,7 +1453,7 @@ func (m *QueryRemoteTokenMessengersRequest) Reset() { *m = QueryRemoteTo func (m *QueryRemoteTokenMessengersRequest) String() string { return proto.CompactTextString(m) } func (*QueryRemoteTokenMessengersRequest) ProtoMessage() {} func (*QueryRemoteTokenMessengersRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e7468ed27f019b2f, []int{32} + return fileDescriptor_e7468ed27f019b2f, []int{30} } func (m *QueryRemoteTokenMessengersRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1583,7 +1500,7 @@ func (m *QueryRemoteTokenMessengersResponse) Reset() { *m = QueryRemoteT func (m *QueryRemoteTokenMessengersResponse) String() string { return proto.CompactTextString(m) } func (*QueryRemoteTokenMessengersResponse) ProtoMessage() {} func (*QueryRemoteTokenMessengersResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e7468ed27f019b2f, []int{33} + return fileDescriptor_e7468ed27f019b2f, []int{31} } func (m *QueryRemoteTokenMessengersResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1635,7 +1552,7 @@ func (m *QueryBurnMessageVersionRequest) Reset() { *m = QueryBurnMessage func (m *QueryBurnMessageVersionRequest) String() string { return proto.CompactTextString(m) } func (*QueryBurnMessageVersionRequest) ProtoMessage() {} func (*QueryBurnMessageVersionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e7468ed27f019b2f, []int{34} + return fileDescriptor_e7468ed27f019b2f, []int{32} } func (m *QueryBurnMessageVersionRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1675,7 +1592,7 @@ func (m *QueryBurnMessageVersionResponse) Reset() { *m = QueryBurnMessag func (m *QueryBurnMessageVersionResponse) String() string { return proto.CompactTextString(m) } func (*QueryBurnMessageVersionResponse) ProtoMessage() {} func (*QueryBurnMessageVersionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e7468ed27f019b2f, []int{35} + return fileDescriptor_e7468ed27f019b2f, []int{33} } func (m *QueryBurnMessageVersionResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1720,7 +1637,7 @@ func (m *QueryLocalMessageVersionRequest) Reset() { *m = QueryLocalMessa func (m *QueryLocalMessageVersionRequest) String() string { return proto.CompactTextString(m) } func (*QueryLocalMessageVersionRequest) ProtoMessage() {} func (*QueryLocalMessageVersionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e7468ed27f019b2f, []int{36} + return fileDescriptor_e7468ed27f019b2f, []int{34} } func (m *QueryLocalMessageVersionRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1760,7 +1677,7 @@ func (m *QueryLocalMessageVersionResponse) Reset() { *m = QueryLocalMess func (m *QueryLocalMessageVersionResponse) String() string { return proto.CompactTextString(m) } func (*QueryLocalMessageVersionResponse) ProtoMessage() {} func (*QueryLocalMessageVersionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e7468ed27f019b2f, []int{37} + return fileDescriptor_e7468ed27f019b2f, []int{35} } func (m *QueryLocalMessageVersionResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1805,7 +1722,7 @@ func (m *QueryLocalDomainRequest) Reset() { *m = QueryLocalDomainRequest func (m *QueryLocalDomainRequest) String() string { return proto.CompactTextString(m) } func (*QueryLocalDomainRequest) ProtoMessage() {} func (*QueryLocalDomainRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e7468ed27f019b2f, []int{38} + return fileDescriptor_e7468ed27f019b2f, []int{36} } func (m *QueryLocalDomainRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1845,7 +1762,7 @@ func (m *QueryLocalDomainResponse) Reset() { *m = QueryLocalDomainRespon func (m *QueryLocalDomainResponse) String() string { return proto.CompactTextString(m) } func (*QueryLocalDomainResponse) ProtoMessage() {} func (*QueryLocalDomainResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e7468ed27f019b2f, []int{39} + return fileDescriptor_e7468ed27f019b2f, []int{37} } func (m *QueryLocalDomainResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1882,8 +1799,6 @@ func (m *QueryLocalDomainResponse) GetDomainId() uint32 { } func init() { - proto.RegisterType((*QueryParamsRequest)(nil), "circle.cctp.v1.QueryParamsRequest") - proto.RegisterType((*QueryParamsResponse)(nil), "circle.cctp.v1.QueryParamsResponse") proto.RegisterType((*QueryRolesRequest)(nil), "circle.cctp.v1.QueryRolesRequest") proto.RegisterType((*QueryRolesResponse)(nil), "circle.cctp.v1.QueryRolesResponse") proto.RegisterType((*QueryGetAttesterRequest)(nil), "circle.cctp.v1.QueryGetAttesterRequest") @@ -1927,119 +1842,117 @@ func init() { func init() { proto.RegisterFile("circle/cctp/v1/query.proto", fileDescriptor_e7468ed27f019b2f) } var fileDescriptor_e7468ed27f019b2f = []byte{ - // 1788 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x59, 0xcb, 0x6f, 0xdc, 0x54, - 0x17, 0x8f, 0xdb, 0xa4, 0x5f, 0x73, 0xd2, 0x7e, 0xc0, 0xcd, 0xa4, 0x99, 0x38, 0xed, 0xb4, 0x71, - 0xd2, 0x26, 0x7d, 0x8d, 0x3b, 0x49, 0x4b, 0xa4, 0xb4, 0x88, 0x26, 0x40, 0xcb, 0xa3, 0x29, 0x21, - 0x7d, 0x20, 0xb1, 0x19, 0x3c, 0x33, 0xb7, 0x53, 0xab, 0x1e, 0x7b, 0x6a, 0x7b, 0x42, 0xd2, 0x28, - 0x1b, 0x5e, 0x42, 0x62, 0x83, 0xc4, 0x86, 0x0d, 0x1b, 0x8a, 0x54, 0x60, 0x83, 0xc4, 0x06, 0x24, - 0x24, 0xd6, 0x95, 0xd8, 0x14, 0xb1, 0x61, 0x85, 0x50, 0x8b, 0xc4, 0xbf, 0x81, 0x7c, 0xef, 0xb9, - 0xf6, 0x8c, 0xed, 0x3b, 0x8f, 0x32, 0xbb, 0xf1, 0xbd, 0xe7, 0xf1, 0x3b, 0xe7, 0x5c, 0x9f, 0x7b, - 0x7e, 0x1e, 0x50, 0xcb, 0xa6, 0x5b, 0xb6, 0xa8, 0x5e, 0x2e, 0xfb, 0x75, 0x7d, 0xa3, 0xa0, 0xdf, - 0x6d, 0x50, 0x77, 0x2b, 0x5f, 0x77, 0x1d, 0xdf, 0x21, 0xff, 0xe7, 0x7b, 0xf9, 0x60, 0x2f, 0xbf, - 0x51, 0x50, 0x0f, 0xc5, 0x64, 0x0d, 0xdf, 0xa7, 0x9e, 0x4f, 0x5d, 0x2e, 0xae, 0xea, 0xb1, 0xed, - 0x52, 0xc3, 0xb5, 0x4d, 0xbb, 0x5a, 0x34, 0xec, 0x4a, 0xb1, 0x66, 0xda, 0x7e, 0xf0, 0xbb, 0x6e, - 0x34, 0x3c, 0x5a, 0x41, 0x85, 0x13, 0x31, 0x85, 0x9a, 0xb1, 0x59, 0xac, 0x51, 0xcf, 0x33, 0xaa, - 0xb4, 0x58, 0x72, 0x2a, 0x5b, 0x45, 0xcf, 0xbc, 0x47, 0x51, 0x36, 0x8e, 0xd3, 0x76, 0xec, 0xb2, - 0xd8, 0x9b, 0x8c, 0xed, 0xd5, 0x0d, 0xd7, 0xa8, 0x79, 0xb8, 0x79, 0x32, 0xbe, 0x49, 0xdd, 0xc8, - 0x49, 0xc3, 0xb5, 0x8b, 0x96, 0x59, 0x33, 0x7d, 0x89, 0xb0, 0x4b, 0x6b, 0x8e, 0x4f, 0x8b, 0xbe, - 0x73, 0x87, 0xda, 0x4c, 0x8b, 0xda, 0xd5, 0x30, 0xde, 0xa5, 0x98, 0xb0, 0x47, 0xed, 0x8a, 0x88, - 0xd7, 0xa5, 0x65, 0x6a, 0x6e, 0x04, 0x4f, 0xe8, 0xcb, 0x6b, 0x0d, 0x7d, 0x2e, 0xae, 0x6b, 0x56, - 0x6d, 0xc3, 0x6f, 0xb8, 0xb4, 0xe8, 0xdf, 0x76, 0xa9, 0x77, 0xdb, 0xb1, 0x84, 0xe4, 0xe1, 0x98, - 0x24, 0xc7, 0x52, 0x37, 0x4c, 0x37, 0xcc, 0xa2, 0xe3, 0xd5, 0x1c, 0x4f, 0x2f, 0x19, 0x1e, 0xe5, - 0xe5, 0xd3, 0x37, 0x0a, 0x25, 0xea, 0x1b, 0x41, 0x22, 0xaa, 0xa6, 0x6d, 0xf8, 0xa6, 0x63, 0xa3, - 0x6c, 0xa6, 0xea, 0x54, 0x1d, 0xf6, 0x53, 0x0f, 0x7e, 0xe1, 0xea, 0xc1, 0xaa, 0xe3, 0x54, 0x2d, - 0xaa, 0x1b, 0x75, 0x53, 0x37, 0x6c, 0xdb, 0xf1, 0x99, 0x0a, 0x26, 0x50, 0xcb, 0x00, 0x79, 0x2b, - 0xb0, 0xba, 0xc6, 0xb2, 0xba, 0x4e, 0xef, 0x36, 0xa8, 0xe7, 0x6b, 0x6f, 0xc0, 0x68, 0xcb, 0xaa, - 0x57, 0x77, 0x6c, 0x8f, 0x92, 0xb3, 0xb0, 0x87, 0x67, 0x3f, 0xab, 0x1c, 0x51, 0xe6, 0x46, 0xe6, - 0x0f, 0xe4, 0x5b, 0xcf, 0x50, 0x9e, 0xcb, 0xaf, 0x0c, 0x3e, 0xfc, 0xf3, 0xf0, 0xc0, 0x3a, 0xca, - 0x6a, 0xa3, 0xf0, 0x1c, 0x33, 0xb6, 0xee, 0x58, 0x34, 0xf4, 0xf0, 0x85, 0x82, 0x8e, 0x71, 0x15, - 0x3d, 0x64, 0x60, 0xc8, 0x79, 0xcf, 0xa6, 0x2e, 0x73, 0x30, 0xbc, 0xce, 0x1f, 0xc8, 0x71, 0x78, - 0x56, 0x9c, 0xc6, 0x62, 0xcd, 0xb0, 0x8d, 0x2a, 0x75, 0xb3, 0xbb, 0x98, 0xc0, 0x33, 0x62, 0x7d, - 0x95, 0x2f, 0x93, 0x03, 0x01, 0xc4, 0x86, 0x47, 0xdd, 0xec, 0x6e, 0x26, 0x80, 0x4f, 0x81, 0x09, - 0x9e, 0xdb, 0xb2, 0x63, 0xfb, 0xae, 0x63, 0x59, 0xd4, 0xcd, 0x0e, 0x72, 0x13, 0x6c, 0xfd, 0xa5, - 0x70, 0x59, 0x3b, 0x07, 0xe3, 0x0c, 0xd9, 0x65, 0xea, 0x2f, 0xa3, 0x75, 0x44, 0x4d, 0x54, 0xd8, - 0x2b, 0x1c, 0x22, 0xc2, 0xf0, 0x59, 0xbb, 0x09, 0xd9, 0xa4, 0x1a, 0x86, 0xb5, 0x14, 0xd3, 0x1b, - 0x99, 0xcf, 0xc6, 0x53, 0x27, 0x74, 0x30, 0x79, 0x91, 0xdd, 0x12, 0xda, 0x5d, 0xb6, 0x2c, 0x21, - 0x23, 0xb2, 0x48, 0x2e, 0x01, 0x44, 0xa7, 0x00, 0x2d, 0x1f, 0xcb, 0xf3, 0x23, 0x93, 0x0f, 0x8e, - 0x4c, 0x9e, 0xbf, 0xf1, 0x78, 0x64, 0xf2, 0x6b, 0x46, 0x95, 0xa2, 0xee, 0x7a, 0x93, 0xa6, 0xf6, - 0x95, 0x02, 0x13, 0x29, 0x4e, 0x10, 0xfd, 0x05, 0x18, 0x16, 0x68, 0x82, 0xca, 0xef, 0xee, 0x02, - 0x7e, 0xa4, 0x40, 0x2e, 0xb7, 0x60, 0xdc, 0xc5, 0x30, 0xce, 0x76, 0xc4, 0xc8, 0x5d, 0xb7, 0x80, - 0x5c, 0x02, 0x4d, 0x24, 0x78, 0x8d, 0xba, 0xab, 0xfc, 0xcd, 0x5b, 0x69, 0xb8, 0xf6, 0x95, 0xe0, - 0x1d, 0x17, 0x29, 0xc9, 0xc0, 0x50, 0x85, 0xda, 0x4e, 0x4d, 0x9c, 0x20, 0xf6, 0xa0, 0x39, 0x30, - 0xdd, 0x56, 0x17, 0x23, 0x7d, 0x15, 0x20, 0xea, 0x1a, 0x98, 0xcf, 0xe9, 0xc4, 0x21, 0x4f, 0x1a, - 0x10, 0x51, 0x97, 0xc4, 0x82, 0x56, 0x43, 0x87, 0xcb, 0x96, 0x95, 0x22, 0xdf, 0xf7, 0x02, 0xfe, - 0xac, 0xc0, 0x4c, 0x7b, 0x7f, 0x18, 0xe1, 0xeb, 0x30, 0x12, 0x45, 0x28, 0xaa, 0xd9, 0x43, 0x88, - 0x10, 0x86, 0xd8, 0xc7, 0xca, 0xce, 0xc1, 0x31, 0x51, 0x9d, 0x15, 0x7e, 0xad, 0x2c, 0xdb, 0x95, - 0x55, 0x7e, 0xa9, 0xac, 0xb1, 0xc6, 0x2a, 0xda, 0x46, 0x1d, 0x66, 0x3b, 0x4a, 0x62, 0xa4, 0xaf, - 0x60, 0x27, 0xa8, 0x60, 0x5a, 0x67, 0xe3, 0x41, 0x4a, 0x0c, 0x44, 0xdd, 0x2b, 0x78, 0xd2, 0xe6, - 0xe1, 0x8c, 0xf0, 0x78, 0x8d, 0x5f, 0x01, 0xcb, 0x76, 0x65, 0x5d, 0x5c, 0x00, 0x98, 0x25, 0xaf, - 0x15, 0xe5, 0x87, 0x0a, 0x14, 0x7a, 0x50, 0x42, 0xc0, 0x6f, 0xc6, 0x00, 0x17, 0xe2, 0x80, 0x3b, - 0x9a, 0x8a, 0x41, 0x9f, 0x86, 0x29, 0x81, 0x62, 0xd5, 0xd8, 0x14, 0x05, 0x75, 0x2a, 0x5b, 0xd7, - 0xcc, 0x7b, 0xe2, 0x14, 0x69, 0xb7, 0xa2, 0xb7, 0x2a, 0x4d, 0x08, 0xb1, 0x5d, 0x84, 0x3d, 0x46, - 0xcd, 0x69, 0xd8, 0xe2, 0xa5, 0xd0, 0xe2, 0xd8, 0x92, 0xba, 0x02, 0x0c, 0xd7, 0x6b, 0x06, 0x73, - 0x95, 0x6e, 0xfa, 0xcb, 0x1b, 0x86, 0x69, 0x19, 0x25, 0x8b, 0x5e, 0x0d, 0xae, 0x7a, 0x01, 0xe6, - 0xed, 0x08, 0x4c, 0x9a, 0x10, 0x82, 0x29, 0xc0, 0x10, 0x1b, 0x10, 0x10, 0xcb, 0x58, 0x1c, 0x0b, - 0x93, 0x46, 0xf7, 0x5c, 0xb2, 0xd9, 0xfb, 0x35, 0x71, 0x19, 0x5f, 0x17, 0x77, 0x71, 0x4a, 0x2a, - 0xd2, 0x84, 0xba, 0x4d, 0x45, 0x52, 0x37, 0x96, 0x8a, 0x52, 0x74, 0x53, 0x5c, 0x0f, 0xee, 0x9e, - 0x35, 0xc3, 0x0c, 0x6f, 0x98, 0x69, 0xd8, 0x8f, 0x63, 0x49, 0xc5, 0xa9, 0x19, 0x26, 0xef, 0x09, - 0xfb, 0xd7, 0xf7, 0xf1, 0xc5, 0x97, 0xd9, 0x1a, 0x99, 0x82, 0x7d, 0xcd, 0xb3, 0x0b, 0xde, 0x85, - 0x23, 0x7c, 0x8d, 0x99, 0xd4, 0xd6, 0xb0, 0xa1, 0xb7, 0xfa, 0xc0, 0x10, 0x16, 0x60, 0x30, 0x18, - 0x31, 0x30, 0x80, 0x89, 0x78, 0x00, 0xa1, 0x02, 0xe2, 0x66, 0xc2, 0x5a, 0x39, 0xba, 0x22, 0x42, - 0x81, 0xbe, 0xf7, 0xb1, 0x07, 0x0a, 0xa8, 0x69, 0x5e, 0xc2, 0xdc, 0x8f, 0x44, 0x13, 0x92, 0xe8, - 0x5e, 0x1d, 0xf1, 0x83, 0x1f, 0x5a, 0xea, 0x5f, 0xcf, 0xba, 0x11, 0x15, 0xf1, 0x86, 0x47, 0x2b, - 0xcd, 0xc7, 0x38, 0x28, 0xa2, 0xe7, 0x34, 0xdc, 0x72, 0xbc, 0x88, 0x7c, 0x11, 0x8b, 0x98, 0x11, - 0xa7, 0x38, 0x00, 0x31, 0x28, 0x0e, 0xea, 0xd5, 0xa8, 0x6e, 0x4d, 0x66, 0x9f, 0xfe, 0xe0, 0x37, - 0x55, 0x2d, 0xb4, 0xd7, 0xf7, 0xaa, 0xdd, 0x6f, 0xaa, 0x5a, 0xb3, 0x97, 0x70, 0x7e, 0x18, 0x09, - 0xfa, 0x51, 0x91, 0x21, 0x12, 0x55, 0x6b, 0x0b, 0x1e, 0x1a, 0xa1, 0x95, 0xfe, 0x55, 0xec, 0x45, - 0x38, 0xc2, 0x27, 0xce, 0xe8, 0x35, 0x59, 0x15, 0x43, 0xbf, 0xc8, 0xc8, 0x24, 0x0c, 0xf3, 0x92, - 0x15, 0xcd, 0x0a, 0x56, 0x6d, 0x2f, 0x5f, 0x78, 0xad, 0xa2, 0x7d, 0xa4, 0x60, 0x17, 0x49, 0xb7, - 0x80, 0xd1, 0xbe, 0x0b, 0x07, 0xd2, 0x89, 0x05, 0x26, 0x78, 0x26, 0x1e, 0x78, 0x9a, 0x35, 0xcc, - 0x43, 0xc6, 0x4d, 0xd9, 0xd3, 0xee, 0xb4, 0x81, 0xd1, 0xf7, 0xda, 0xfe, 0xa6, 0x60, 0x57, 0x94, - 0x78, 0xc3, 0xa8, 0x4b, 0x30, 0x9e, 0x1e, 0xb5, 0xa8, 0x77, 0x2f, 0x61, 0x8f, 0xa5, 0x85, 0xdd, - 0xc7, 0x93, 0x70, 0x04, 0x72, 0x2c, 0xa4, 0x60, 0x02, 0xc0, 0x5b, 0xeb, 0x26, 0x75, 0x3d, 0xd3, - 0xb1, 0xc5, 0x55, 0x70, 0x1e, 0x0e, 0x4b, 0x25, 0x30, 0xe2, 0x2c, 0xfc, 0x6f, 0x83, 0x2f, 0xe1, - 0x41, 0x11, 0x8f, 0xda, 0x14, 0x2a, 0x5f, 0x71, 0xca, 0x86, 0x95, 0x6e, 0xff, 0x02, 0x9e, 0xc5, - 0x54, 0x91, 0x8e, 0x0e, 0x26, 0x90, 0xa1, 0x30, 0x6d, 0xde, 0x4e, 0x84, 0xe1, 0x45, 0x6c, 0x4b, - 0x2d, 0x5b, 0x68, 0xb0, 0xdd, 0xe1, 0x9e, 0xff, 0x35, 0x0b, 0x43, 0x4c, 0x93, 0xd4, 0x60, 0x88, - 0x91, 0x32, 0x32, 0x15, 0x2f, 0x59, 0x82, 0xc6, 0xa9, 0x5a, 0x3b, 0x11, 0xee, 0x56, 0x3b, 0xf4, - 0xfe, 0xef, 0x7f, 0x7f, 0xbe, 0x6b, 0x9c, 0x8c, 0xc5, 0x3f, 0x21, 0xb8, 0xcc, 0xcb, 0xa7, 0x0a, - 0xec, 0x15, 0xec, 0x81, 0xcc, 0xa6, 0xda, 0x4b, 0x32, 0x31, 0x75, 0xae, 0xb3, 0x20, 0xba, 0x3f, - 0xc5, 0xdc, 0x1f, 0x23, 0x33, 0xba, 0xe4, 0x03, 0x87, 0xa7, 0x6f, 0x8b, 0x9f, 0x3b, 0xe4, 0x03, - 0x05, 0x86, 0x43, 0x06, 0x44, 0xd2, 0xbd, 0xa4, 0x30, 0x31, 0xf5, 0x78, 0x17, 0x92, 0x08, 0x68, - 0x8a, 0x01, 0x9a, 0x24, 0x13, 0x52, 0x40, 0xe4, 0x47, 0x05, 0x46, 0x53, 0x66, 0x70, 0x32, 0x2f, - 0x8b, 0x5a, 0x4e, 0x88, 0xd4, 0x85, 0x9e, 0x74, 0x10, 0xe3, 0x22, 0xc3, 0x58, 0x20, 0xba, 0xde, - 0xd5, 0x07, 0x16, 0x4f, 0xdf, 0x66, 0x3c, 0x6b, 0x87, 0xfc, 0xa0, 0x40, 0x26, 0x8d, 0x80, 0x90, - 0x05, 0x59, 0x82, 0xda, 0xd0, 0x23, 0xf5, 0x6c, 0x6f, 0x4a, 0x08, 0x5e, 0x67, 0xe0, 0x8f, 0x93, - 0xd9, 0x2e, 0xc1, 0x93, 0x5f, 0x14, 0x18, 0x97, 0xb0, 0x01, 0xf2, 0xbc, 0x2c, 0x7d, 0xed, 0x99, - 0x8a, 0xba, 0xd8, 0xb3, 0x1e, 0xa2, 0x9f, 0x67, 0xe8, 0x4f, 0x91, 0x13, 0xdd, 0x7f, 0x71, 0x23, - 0xff, 0x28, 0x30, 0xd5, 0x91, 0x1d, 0x90, 0x8b, 0x32, 0x48, 0xdd, 0x12, 0x1b, 0x75, 0xf9, 0x3f, - 0x58, 0xc0, 0xf0, 0x5e, 0x60, 0xe1, 0x2d, 0x92, 0x73, 0xfa, 0xd3, 0x7c, 0x60, 0x23, 0xdf, 0x29, - 0x40, 0x92, 0x5c, 0x83, 0x14, 0x64, 0xc0, 0xa4, 0xc4, 0x47, 0x9d, 0xef, 0x45, 0x05, 0xc1, 0x9f, - 0x66, 0xe0, 0x67, 0xc9, 0x51, 0xbd, 0x9b, 0x8f, 0x9b, 0xe4, 0x5b, 0x05, 0x48, 0x92, 0xc7, 0xc8, - 0xc1, 0x4a, 0x89, 0x91, 0x1c, 0xac, 0x9c, 0x26, 0xc9, 0x1b, 0x9f, 0x4d, 0x37, 0xfd, 0xa2, 0x21, - 0x94, 0xf8, 0x58, 0x46, 0xbe, 0x51, 0x80, 0x24, 0x99, 0x8b, 0x1c, 0xab, 0x94, 0x46, 0xc9, 0xb1, - 0xca, 0x49, 0x95, 0x76, 0x92, 0x61, 0x3d, 0x4a, 0xa6, 0xf5, 0xce, 0x9f, 0x4e, 0xc9, 0xd7, 0x0a, - 0x0c, 0x87, 0x33, 0x3e, 0x91, 0xde, 0x04, 0x71, 0x6e, 0x25, 0xe9, 0xd1, 0x69, 0x0c, 0x49, 0x5b, - 0x61, 0x78, 0x2e, 0x90, 0x25, 0x5d, 0xfa, 0x81, 0xd6, 0xd3, 0xb7, 0x5b, 0x98, 0xda, 0x4e, 0xf8, - 0xcc, 0x64, 0x76, 0xc8, 0x27, 0x0a, 0x40, 0xc4, 0x61, 0x88, 0xf4, 0x86, 0x48, 0xb0, 0x29, 0xf5, - 0x44, 0x37, 0xa2, 0x88, 0x74, 0x9a, 0x21, 0x3d, 0x44, 0x26, 0xdb, 0x20, 0x25, 0x5f, 0x2a, 0x30, - 0x1c, 0x0e, 0xe6, 0xf2, 0x8c, 0xc5, 0x89, 0x8c, 0x3c, 0x63, 0x09, 0x6e, 0xa2, 0x9d, 0x67, 0x38, - 0xce, 0x91, 0x85, 0x38, 0x8e, 0xa6, 0xd1, 0x5f, 0xdf, 0x6e, 0xa1, 0x45, 0x3b, 0xfa, 0x36, 0x5b, - 0xe7, 0xa9, 0x8a, 0x88, 0x83, 0x3c, 0x55, 0x09, 0x0a, 0x23, 0x4f, 0x55, 0x92, 0x87, 0xc8, 0x53, - 0xd5, 0x04, 0x91, 0xfc, 0xa4, 0x40, 0x26, 0x6d, 0x34, 0x25, 0x67, 0xd2, 0x47, 0x1d, 0x39, 0x99, - 0x50, 0x0b, 0x3d, 0x68, 0x74, 0xca, 0xa2, 0x64, 0xb8, 0xd6, 0xb7, 0xc3, 0x89, 0x6e, 0x87, 0x7c, - 0xaf, 0xc0, 0x58, 0xea, 0x94, 0x4e, 0xba, 0x47, 0xe2, 0xb5, 0x7f, 0x8b, 0xdb, 0x92, 0x00, 0xf9, - 0xc5, 0x2b, 0x41, 0x4f, 0xee, 0x2b, 0x40, 0x92, 0x23, 0x36, 0xc9, 0xa7, 0xfa, 0x96, 0x4e, 0xeb, - 0xaa, 0xde, 0xb5, 0x7c, 0xa7, 0xd6, 0xc8, 0xa6, 0x02, 0xd1, 0xc8, 0x71, 0xdc, 0x26, 0x0f, 0x14, - 0x18, 0x4d, 0x19, 0xd4, 0x49, 0xba, 0x5b, 0xf9, 0xd4, 0xaf, 0x9e, 0xe9, 0x5e, 0xa1, 0xd3, 0x85, - 0x63, 0x05, 0x4a, 0x09, 0xa4, 0x1f, 0x2b, 0x30, 0xd2, 0x34, 0xf9, 0x4b, 0xc6, 0xe9, 0x24, 0x6d, - 0x90, 0x8c, 0xd3, 0x29, 0x24, 0x42, 0x9b, 0x61, 0x88, 0x72, 0xe4, 0x60, 0x3a, 0x22, 0x7e, 0x1c, - 0x57, 0x2e, 0x3d, 0x7c, 0x9c, 0x53, 0x1e, 0x3d, 0xce, 0x29, 0x7f, 0x3d, 0xce, 0x29, 0x9f, 0x3d, - 0xc9, 0x0d, 0x3c, 0x7a, 0x92, 0x1b, 0xf8, 0xe3, 0x49, 0x6e, 0xe0, 0x9d, 0x53, 0x55, 0xd3, 0xbf, - 0xdd, 0x28, 0xe5, 0xcb, 0x4e, 0x0d, 0x2d, 0xdc, 0x32, 0x6d, 0xdd, 0x76, 0x4a, 0x16, 0x3d, 0xcd, - 0x4c, 0x6d, 0x72, 0x8b, 0xfe, 0x56, 0x9d, 0x7a, 0xa5, 0x3d, 0xec, 0x5f, 0xaa, 0x85, 0x7f, 0x03, - 0x00, 0x00, 0xff, 0xff, 0x6c, 0x39, 0xf2, 0x3e, 0xc9, 0x1c, 0x00, 0x00, + // 1746 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x59, 0xcb, 0x6f, 0x1b, 0x55, + 0x17, 0xcf, 0xb4, 0x49, 0xbf, 0xe6, 0xa4, 0xfd, 0x80, 0xdb, 0xa4, 0x71, 0xa6, 0xad, 0x9b, 0x4c, + 0xd2, 0x26, 0x7d, 0x79, 0xea, 0x84, 0x12, 0x29, 0x2d, 0xa2, 0x09, 0xd0, 0x02, 0x6a, 0x4a, 0x48, + 0x1f, 0x48, 0x6c, 0xcc, 0xd8, 0xbe, 0x75, 0x47, 0x1d, 0xcf, 0xb8, 0x33, 0xe3, 0x90, 0x34, 0xca, + 0x86, 0x97, 0x90, 0xd8, 0x20, 0xb1, 0x61, 0xc3, 0x86, 0x22, 0x15, 0xd8, 0x20, 0xb1, 0x01, 0x09, + 0x89, 0x75, 0x25, 0x36, 0x45, 0x6c, 0x58, 0x21, 0xd4, 0x22, 0xf1, 0x6f, 0xa0, 0xb9, 0xf7, 0xdc, + 0xb1, 0x3d, 0x73, 0xaf, 0x1f, 0xc5, 0x3b, 0xcf, 0x9d, 0xf3, 0xf8, 0x9d, 0x73, 0xee, 0x3d, 0xf7, + 0xfc, 0xc6, 0xa0, 0x97, 0x6c, 0xbf, 0xe4, 0x50, 0xb3, 0x54, 0x0a, 0x6b, 0xe6, 0x46, 0xde, 0xbc, + 0x5b, 0xa7, 0xfe, 0x56, 0xae, 0xe6, 0x7b, 0xa1, 0x47, 0xfe, 0xcf, 0xdf, 0xe5, 0xa2, 0x77, 0xb9, + 0x8d, 0xbc, 0x7e, 0x24, 0x21, 0x6b, 0x85, 0x21, 0x0d, 0x42, 0xea, 0x73, 0x71, 0xdd, 0x4c, 0xbc, + 0x2e, 0xd6, 0x7d, 0xd7, 0x76, 0x2b, 0x05, 0xcb, 0x2d, 0x17, 0xaa, 0xb6, 0x1b, 0x46, 0xbf, 0x6b, + 0x56, 0x3d, 0xa0, 0x65, 0x54, 0x38, 0x99, 0x50, 0xa8, 0x5a, 0x9b, 0x85, 0x2a, 0x0d, 0x02, 0xab, + 0x42, 0x0b, 0x45, 0xaf, 0xbc, 0x55, 0x08, 0xec, 0x7b, 0x14, 0x65, 0x93, 0x38, 0x5d, 0xcf, 0x2d, + 0x89, 0x77, 0xa7, 0x12, 0xef, 0x6a, 0xd4, 0x6f, 0xd8, 0xa9, 0xfb, 0x6e, 0xc1, 0xb1, 0xab, 0x76, + 0xa8, 0x10, 0xf6, 0x69, 0xd5, 0x0b, 0x69, 0x21, 0xf4, 0xee, 0x50, 0x97, 0x69, 0x51, 0xb7, 0x12, + 0x87, 0xb4, 0x94, 0x10, 0x0e, 0xa8, 0x5b, 0x16, 0x21, 0xf9, 0xb4, 0x44, 0xed, 0x8d, 0xe8, 0x09, + 0x7d, 0x05, 0xad, 0xd1, 0xcd, 0x25, 0x75, 0xed, 0x8a, 0x6b, 0x85, 0x75, 0x9f, 0x16, 0xc2, 0xdb, + 0x3e, 0x0d, 0x6e, 0x7b, 0x8e, 0x90, 0x3c, 0x9a, 0x90, 0xe4, 0x58, 0x6a, 0x96, 0xed, 0xc7, 0x89, + 0xf2, 0x82, 0xaa, 0x17, 0x98, 0x45, 0x2b, 0xa0, 0xbc, 0x42, 0xe6, 0x46, 0xbe, 0x48, 0x43, 0x2b, + 0x6f, 0xd6, 0xac, 0x8a, 0xed, 0x5a, 0xa1, 0xed, 0xb9, 0x28, 0x3b, 0x5a, 0xf1, 0x2a, 0x1e, 0xfb, + 0x69, 0x46, 0xbf, 0x70, 0xf5, 0x70, 0xc5, 0xf3, 0x2a, 0x0e, 0x35, 0xad, 0x9a, 0x6d, 0x5a, 0xae, + 0xeb, 0x85, 0x4c, 0x25, 0xe0, 0x6f, 0x8d, 0x03, 0xf0, 0xdc, 0x5b, 0x91, 0xd5, 0x75, 0xcf, 0xa1, + 0xc1, 0x3a, 0xbd, 0x5b, 0xa7, 0x41, 0x68, 0x7c, 0xa1, 0x01, 0x69, 0x5e, 0x0d, 0x6a, 0x9e, 0x1b, + 0x50, 0x32, 0x0a, 0x43, 0xde, 0x7b, 0x2e, 0xf5, 0x33, 0xda, 0xa4, 0x36, 0x37, 0xbc, 0xce, 0x1f, + 0xc8, 0x09, 0x78, 0x56, 0xec, 0x86, 0x42, 0xd5, 0x72, 0xad, 0x0a, 0xf5, 0x33, 0xbb, 0x98, 0xc0, + 0x33, 0x62, 0x7d, 0x95, 0x2f, 0x93, 0x83, 0xb0, 0x87, 0xe5, 0xc9, 0xcf, 0xec, 0x66, 0x02, 0xf8, + 0x14, 0x99, 0xe0, 0x81, 0x97, 0x3c, 0x37, 0xf4, 0x3d, 0xc7, 0xa1, 0x7e, 0x66, 0x90, 0x9b, 0x60, + 0xeb, 0x2f, 0xc7, 0xcb, 0xc6, 0x39, 0x18, 0x67, 0xc8, 0x2e, 0xd3, 0x70, 0x19, 0xad, 0x23, 0x6a, + 0xa2, 0xc3, 0x5e, 0xe1, 0x10, 0x11, 0xc6, 0xcf, 0xc6, 0x4d, 0xc8, 0xa4, 0xd5, 0x30, 0xac, 0xa5, + 0x84, 0xde, 0xc8, 0x7c, 0x26, 0xd7, 0xba, 0xfd, 0x73, 0x42, 0x67, 0x65, 0xf0, 0xe1, 0x9f, 0x47, + 0x07, 0x9a, 0xec, 0x16, 0xd1, 0xee, 0xb2, 0xe3, 0x08, 0x19, 0x91, 0x45, 0x72, 0x09, 0xa0, 0x51, + 0x22, 0xb4, 0x7c, 0x3c, 0xc7, 0xeb, 0x99, 0x8b, 0xea, 0x99, 0xe3, 0x27, 0x0e, 0xeb, 0x99, 0x5b, + 0xb3, 0x2a, 0x14, 0x75, 0xd7, 0x9b, 0x34, 0x8d, 0xaf, 0x34, 0x98, 0x90, 0x38, 0x41, 0xf4, 0x17, + 0x60, 0x58, 0xa0, 0x09, 0x32, 0xda, 0xe4, 0xee, 0x2e, 0xe0, 0x37, 0x14, 0xc8, 0xe5, 0x16, 0x8c, + 0xbb, 0x18, 0xc6, 0xd9, 0x8e, 0x18, 0xb9, 0xeb, 0x16, 0x90, 0x4b, 0x60, 0x88, 0x04, 0xaf, 0x51, + 0x7f, 0x95, 0x1f, 0x8b, 0x95, 0xba, 0xef, 0x5e, 0x89, 0x0e, 0xa0, 0x48, 0xc9, 0x28, 0x0c, 0x95, + 0xa9, 0xeb, 0x55, 0xc5, 0x0e, 0x62, 0x0f, 0x86, 0x07, 0xd3, 0x6d, 0x75, 0x31, 0xd2, 0xd7, 0x00, + 0x1a, 0x47, 0x1a, 0xf3, 0x39, 0x9d, 0x0c, 0x55, 0x62, 0x40, 0x44, 0x5d, 0x14, 0x0b, 0x46, 0x15, + 0x1d, 0x2e, 0x3b, 0x8e, 0x44, 0xbe, 0xef, 0x05, 0xfc, 0x59, 0x83, 0x99, 0xf6, 0xfe, 0x30, 0xc2, + 0x37, 0x60, 0xa4, 0x11, 0xa1, 0xa8, 0x66, 0x0f, 0x21, 0x42, 0x1c, 0x62, 0x1f, 0x2b, 0x3b, 0x07, + 0xc7, 0x45, 0x75, 0x56, 0x78, 0x5b, 0x5f, 0x76, 0xcb, 0xab, 0xbc, 0xa9, 0xaf, 0xb1, 0xae, 0x27, + 0xda, 0x46, 0x0d, 0x66, 0x3b, 0x4a, 0x62, 0xa4, 0xaf, 0x62, 0x27, 0x28, 0x63, 0x5a, 0x67, 0x93, + 0x41, 0x2a, 0x0c, 0x60, 0xa0, 0xa8, 0x6c, 0xcc, 0xc3, 0x59, 0xe1, 0xf1, 0x1a, 0xef, 0xcf, 0xcb, + 0x6e, 0x79, 0x5d, 0x74, 0x67, 0xcc, 0x52, 0xd0, 0x8a, 0xf2, 0x43, 0x0d, 0xf2, 0x3d, 0x28, 0x21, + 0xe0, 0x37, 0x13, 0x80, 0xf3, 0x49, 0xc0, 0x1d, 0x4d, 0x25, 0xa0, 0x4f, 0xc3, 0x94, 0x40, 0xb1, + 0x6a, 0x6d, 0x8a, 0x82, 0x7a, 0xe5, 0xad, 0x6b, 0xf6, 0x3d, 0xb1, 0x8b, 0x8c, 0x5b, 0x8d, 0x53, + 0x25, 0x13, 0x42, 0x6c, 0x17, 0x61, 0x8f, 0x55, 0xf5, 0xea, 0xae, 0x38, 0x14, 0x46, 0x12, 0x5b, + 0x5a, 0x57, 0x80, 0xe1, 0x7a, 0xcd, 0x60, 0xae, 0xd2, 0xcd, 0x70, 0x79, 0xc3, 0xb2, 0x1d, 0xab, + 0xe8, 0xd0, 0xab, 0xd1, 0x55, 0x2b, 0xc0, 0xbc, 0xdd, 0x00, 0x23, 0x13, 0x42, 0x30, 0x79, 0x18, + 0x62, 0x17, 0x34, 0x62, 0x19, 0x4b, 0x62, 0x61, 0xd2, 0xe8, 0x9e, 0x4b, 0x36, 0x7b, 0xbf, 0x26, + 0x6e, 0xca, 0xeb, 0xe2, 0xa2, 0x94, 0xa4, 0x42, 0x26, 0xd4, 0x6d, 0x2a, 0xd2, 0xba, 0x89, 0x54, + 0x14, 0x1b, 0x37, 0xc5, 0xf5, 0xe8, 0xee, 0x59, 0xb3, 0xec, 0xf8, 0x86, 0x99, 0x86, 0xfd, 0x38, + 0x33, 0x94, 0xbd, 0xaa, 0x65, 0xf3, 0x9e, 0xb0, 0x7f, 0x7d, 0x1f, 0x5f, 0x7c, 0x85, 0xad, 0x91, + 0x29, 0xd8, 0xd7, 0x3c, 0x58, 0xe0, 0x5d, 0x38, 0xc2, 0xd7, 0x98, 0x49, 0x63, 0x0d, 0x1b, 0x7a, + 0xab, 0x0f, 0x0c, 0x61, 0x01, 0x06, 0xa3, 0xfb, 0x1f, 0x03, 0x98, 0x48, 0x06, 0x10, 0x2b, 0x20, + 0x6e, 0x26, 0x6c, 0x94, 0x1a, 0x57, 0x44, 0x2c, 0xd0, 0xf7, 0x3e, 0xf6, 0x40, 0x03, 0x5d, 0xe6, + 0x25, 0xce, 0xfd, 0x48, 0x63, 0x7c, 0x11, 0xdd, 0xab, 0x23, 0x7e, 0x08, 0x63, 0x4b, 0xfd, 0xeb, + 0x59, 0x37, 0x1a, 0x45, 0xbc, 0x11, 0xd0, 0x72, 0xf3, 0x36, 0x8e, 0x8a, 0x18, 0x78, 0x75, 0xbf, + 0x94, 0x2c, 0x22, 0x5f, 0xc4, 0x22, 0x8e, 0x8a, 0x5d, 0x1c, 0x81, 0x18, 0x14, 0x1b, 0xf5, 0x6a, + 0xa3, 0x6e, 0x4d, 0x66, 0x9f, 0x7e, 0xe3, 0x37, 0x55, 0x2d, 0xb6, 0xd7, 0xf7, 0xaa, 0xdd, 0x6f, + 0xaa, 0x5a, 0xb3, 0x97, 0x78, 0x7e, 0x18, 0x89, 0xfa, 0x51, 0x81, 0x21, 0x12, 0x55, 0x6b, 0x0b, + 0x1e, 0xea, 0xb1, 0x95, 0xfe, 0x55, 0xec, 0x25, 0x98, 0xe4, 0x13, 0x67, 0xe3, 0x98, 0xac, 0x8a, + 0x89, 0x5c, 0x64, 0xe4, 0x10, 0x0c, 0xf3, 0x92, 0x15, 0xec, 0x32, 0x56, 0x6d, 0x2f, 0x5f, 0x78, + 0xbd, 0x6c, 0x7c, 0xa4, 0x61, 0x17, 0x91, 0x5b, 0xc0, 0x68, 0xdf, 0x85, 0x83, 0xf2, 0xa9, 0x1f, + 0x13, 0x3c, 0x93, 0x0c, 0x5c, 0x66, 0x0d, 0xf3, 0x30, 0xea, 0x4b, 0xde, 0x19, 0x77, 0xda, 0xc0, + 0xe8, 0x7b, 0x6d, 0x7f, 0xd3, 0xb0, 0x2b, 0x2a, 0xbc, 0x61, 0xd4, 0x45, 0x18, 0x97, 0x47, 0x2d, + 0xea, 0xdd, 0x4b, 0xd8, 0x63, 0xb2, 0xb0, 0xfb, 0xb8, 0x13, 0x26, 0x21, 0xcb, 0x42, 0x8a, 0x26, + 0x00, 0xbc, 0xb5, 0x6e, 0x52, 0x3f, 0xb0, 0x3d, 0x57, 0x5c, 0x05, 0xe7, 0xe1, 0xa8, 0x52, 0x02, + 0x23, 0xce, 0xc0, 0xff, 0x36, 0xf8, 0x12, 0x6e, 0x14, 0xf1, 0x68, 0x4c, 0xa1, 0xf2, 0x15, 0xaf, + 0x64, 0x39, 0x72, 0xfb, 0x17, 0x70, 0x2f, 0x4a, 0x45, 0x3a, 0x3a, 0x98, 0x40, 0x86, 0xc2, 0xb4, + 0x79, 0x3b, 0x11, 0x86, 0x17, 0xb1, 0x2d, 0xb5, 0xbc, 0x42, 0x83, 0xed, 0x36, 0xf7, 0xfc, 0xaf, + 0x19, 0x18, 0x62, 0x9a, 0xa4, 0x0a, 0x43, 0x8c, 0x94, 0x91, 0xa9, 0x64, 0xc9, 0x52, 0x34, 0x4e, + 0x37, 0xda, 0x89, 0x70, 0xb7, 0xc6, 0x91, 0xf7, 0x7f, 0xff, 0xfb, 0xf3, 0x5d, 0xe3, 0x64, 0x2c, + 0x49, 0xe1, 0x7d, 0xe6, 0xe5, 0x53, 0x0d, 0xf6, 0x0a, 0xf6, 0x40, 0x66, 0xa5, 0xf6, 0xd2, 0x4c, + 0x4c, 0x9f, 0xeb, 0x2c, 0x88, 0xee, 0x4f, 0x33, 0xf7, 0xc7, 0xc9, 0x8c, 0xa9, 0xf8, 0xc0, 0x10, + 0x98, 0xdb, 0xe2, 0xe7, 0x0e, 0xf9, 0x40, 0x83, 0xe1, 0x98, 0x01, 0x11, 0xb9, 0x17, 0x09, 0x13, + 0xd3, 0x4f, 0x74, 0x21, 0x89, 0x80, 0xa6, 0x18, 0xa0, 0x43, 0x64, 0x42, 0x09, 0x88, 0xfc, 0xa8, + 0xc1, 0x01, 0xc9, 0x0c, 0x4e, 0xe6, 0x55, 0x51, 0xab, 0x09, 0x91, 0xbe, 0xd0, 0x93, 0x0e, 0x62, + 0x5c, 0x64, 0x18, 0xf3, 0xc4, 0x34, 0xbb, 0xfa, 0xfa, 0x11, 0x98, 0xdb, 0x8c, 0x67, 0xed, 0x90, + 0x1f, 0x34, 0x18, 0x95, 0x11, 0x10, 0xb2, 0xa0, 0x4a, 0x50, 0x1b, 0x7a, 0xa4, 0x3f, 0xdf, 0x9b, + 0x12, 0x82, 0x37, 0x19, 0xf8, 0x13, 0x64, 0xb6, 0x4b, 0xf0, 0xe4, 0x17, 0x0d, 0xc6, 0x15, 0x6c, + 0x80, 0xbc, 0xa0, 0x4a, 0x5f, 0x7b, 0xa6, 0xa2, 0x2f, 0xf6, 0xac, 0x87, 0xe8, 0xe7, 0x19, 0xfa, + 0xd3, 0xe4, 0x64, 0xf7, 0x5f, 0xbc, 0xc8, 0x3f, 0x1a, 0x4c, 0x75, 0x64, 0x07, 0xe4, 0xa2, 0x0a, + 0x52, 0xb7, 0xc4, 0x46, 0x5f, 0xfe, 0x0f, 0x16, 0x30, 0xbc, 0x17, 0x59, 0x78, 0x8b, 0xe4, 0x9c, + 0xf9, 0x34, 0x5f, 0xbf, 0xc8, 0x77, 0x1a, 0x90, 0x34, 0xd7, 0x20, 0x79, 0x15, 0x30, 0x25, 0xf1, + 0xd1, 0xe7, 0x7b, 0x51, 0x41, 0xf0, 0x67, 0x18, 0xf8, 0x59, 0x72, 0xcc, 0xec, 0xe6, 0xe3, 0x22, + 0xf9, 0x56, 0x03, 0x92, 0xe6, 0x31, 0x6a, 0xb0, 0x4a, 0x62, 0xa4, 0x06, 0xab, 0xa6, 0x49, 0xea, + 0xc6, 0xe7, 0xd2, 0xcd, 0xb0, 0x60, 0x09, 0x25, 0x3e, 0x96, 0x91, 0x6f, 0x34, 0x20, 0x69, 0xe6, + 0xa2, 0xc6, 0xaa, 0xa4, 0x51, 0x6a, 0xac, 0x6a, 0x52, 0x65, 0x9c, 0x62, 0x58, 0x8f, 0x91, 0x69, + 0xb3, 0xf3, 0x77, 0x4d, 0xf2, 0xb5, 0x06, 0xc3, 0xf1, 0x8c, 0x4f, 0x94, 0x37, 0x41, 0x92, 0x5b, + 0x29, 0x7a, 0xb4, 0x8c, 0x21, 0x19, 0x2b, 0x0c, 0xcf, 0x05, 0xb2, 0x64, 0x2a, 0xbf, 0x9e, 0x06, + 0xe6, 0x76, 0x0b, 0x53, 0xdb, 0x89, 0x9f, 0x99, 0xcc, 0x0e, 0xf9, 0x44, 0x03, 0x68, 0x70, 0x18, + 0xa2, 0xbc, 0x21, 0x52, 0x6c, 0x4a, 0x3f, 0xd9, 0x8d, 0x28, 0x22, 0x9d, 0x66, 0x48, 0x8f, 0x90, + 0x43, 0x6d, 0x90, 0x92, 0x2f, 0x35, 0x18, 0x8e, 0x07, 0x73, 0x75, 0xc6, 0x92, 0x44, 0x46, 0x9d, + 0xb1, 0x14, 0x37, 0x31, 0xce, 0x33, 0x1c, 0xe7, 0xc8, 0x42, 0x12, 0x47, 0xd3, 0xe8, 0x6f, 0x6e, + 0xb7, 0xd0, 0xa2, 0x1d, 0x73, 0x9b, 0xad, 0xf3, 0x54, 0x35, 0x88, 0x83, 0x3a, 0x55, 0x29, 0x0a, + 0xa3, 0x4e, 0x55, 0x9a, 0x87, 0xa8, 0x53, 0xd5, 0x04, 0x91, 0xfc, 0xa4, 0xc1, 0xa8, 0x6c, 0x34, + 0x25, 0x67, 0xe5, 0xa3, 0x8e, 0x9a, 0x4c, 0xe8, 0xf9, 0x1e, 0x34, 0x3a, 0x65, 0x51, 0x31, 0x5c, + 0x9b, 0xdb, 0xf1, 0x44, 0xb7, 0x43, 0xbe, 0xd7, 0x60, 0x4c, 0x3a, 0xa5, 0x93, 0xee, 0x91, 0x04, + 0xed, 0x4f, 0x71, 0x5b, 0x12, 0xa0, 0xbe, 0x78, 0x15, 0xe8, 0xc9, 0x7d, 0x0d, 0x48, 0x7a, 0xc4, + 0x26, 0x39, 0xa9, 0x6f, 0xe5, 0xb4, 0xae, 0x9b, 0x5d, 0xcb, 0x77, 0x6a, 0x8d, 0x6c, 0x2a, 0x10, + 0x8d, 0x1c, 0xc7, 0x6d, 0xf2, 0x40, 0x83, 0x03, 0x92, 0x41, 0x9d, 0xc8, 0xdd, 0xaa, 0xa7, 0x7e, + 0xfd, 0x6c, 0xf7, 0x0a, 0x9d, 0x2e, 0x1c, 0x27, 0x52, 0x4a, 0x21, 0xfd, 0x58, 0x83, 0x91, 0xa6, + 0xc9, 0x5f, 0x31, 0x4e, 0xa7, 0x69, 0x83, 0x62, 0x9c, 0x96, 0x90, 0x08, 0x63, 0x86, 0x21, 0xca, + 0x92, 0xc3, 0x72, 0x44, 0x7c, 0x3b, 0xae, 0x5c, 0x7a, 0xf8, 0x38, 0xab, 0x3d, 0x7a, 0x9c, 0xd5, + 0xfe, 0x7a, 0x9c, 0xd5, 0x3e, 0x7b, 0x92, 0x1d, 0x78, 0xf4, 0x24, 0x3b, 0xf0, 0xc7, 0x93, 0xec, + 0xc0, 0x3b, 0xa7, 0x2b, 0x76, 0x78, 0xbb, 0x5e, 0xcc, 0x95, 0xbc, 0x2a, 0x5a, 0xb8, 0x65, 0xbb, + 0xa6, 0xeb, 0x15, 0x1d, 0x7a, 0x86, 0x99, 0xda, 0xe4, 0x16, 0xc3, 0xad, 0x1a, 0x0d, 0x8a, 0x7b, + 0xd8, 0x5f, 0x48, 0x0b, 0xff, 0x06, 0x00, 0x00, 0xff, 0xff, 0xfc, 0xea, 0x64, 0xfc, 0x49, 0x1c, + 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -2800,62 +2713,6 @@ var _Query_serviceDesc = grpc.ServiceDesc{ Metadata: "circle/cctp/v1/query.proto", } -func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - func (m *QueryRolesRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -4115,26 +3972,6 @@ func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) return base } -func (m *QueryParamsRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *QueryParamsResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.Params.Size() - n += 1 + l + sovQuery(uint64(l)) - return n -} - func (m *QueryRolesRequest) Size() (n int) { if m == nil { return 0 @@ -4622,139 +4459,6 @@ func sovQuery(x uint64) (n int) { func sozQuery(x uint64) (n int) { return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } -func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryParamsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryParamsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} func (m *QueryRolesRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 diff --git a/x/cctp/types/query.pb.gw.go b/x/cctp/types/query.pb.gw.go index 70276ed..cd81b8c 100644 --- a/x/cctp/types/query.pb.gw.go +++ b/x/cctp/types/query.pb.gw.go @@ -1557,43 +1557,43 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } var ( - pattern_Query_Roles_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"circle", "cctp", "v1", "roles"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_Roles_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"circle", "cctp", "v1", "roles"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_Attester_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"circle", "cctp", "v1", "attesters", "attester"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_Attester_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"circle", "cctp", "v1", "attesters", "attester"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_Attesters_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"circle", "cctp", "v1", "attesters"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_Attesters_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"circle", "cctp", "v1", "attesters"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_PerMessageBurnLimit_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"circle", "cctp", "v1", "per_message_burn_limits", "denom"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_PerMessageBurnLimit_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"circle", "cctp", "v1", "per_message_burn_limits", "denom"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_PerMessageBurnLimits_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"circle", "cctp", "v1", "per_message_burn_limits"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_PerMessageBurnLimits_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"circle", "cctp", "v1", "per_message_burn_limits"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_BurningAndMintingPaused_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"circle", "cctp", "v1", "burning_and_minting_paused"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_BurningAndMintingPaused_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"circle", "cctp", "v1", "burning_and_minting_paused"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_SendingAndReceivingMessagesPaused_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"circle", "cctp", "v1", "sending_and_receiving_messages_paused"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_SendingAndReceivingMessagesPaused_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"circle", "cctp", "v1", "sending_and_receiving_messages_paused"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_MaxMessageBodySize_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"circle", "cctp", "v1", "max_message_body_size"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_MaxMessageBodySize_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"circle", "cctp", "v1", "max_message_body_size"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_NextAvailableNonce_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"circle", "cctp", "v1", "next_available_nonce"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_NextAvailableNonce_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"circle", "cctp", "v1", "next_available_nonce"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_SignatureThreshold_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"circle", "cctp", "v1", "signature_threshold"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_SignatureThreshold_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"circle", "cctp", "v1", "signature_threshold"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_TokenPair_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"circle", "cctp", "v1", "token_pairs", "remote_domain", "remote_token"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_TokenPair_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"circle", "cctp", "v1", "token_pairs", "remote_domain", "remote_token"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_TokenPairs_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"circle", "cctp", "v1", "token_pairs"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_TokenPairs_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"circle", "cctp", "v1", "token_pairs"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_UsedNonce_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"circle", "cctp", "v1", "used_nonces", "source_domain", "nonce"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_UsedNonce_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"circle", "cctp", "v1", "used_nonces", "source_domain", "nonce"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_UsedNonces_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"circle", "cctp", "v1", "used_nonces"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_UsedNonces_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"circle", "cctp", "v1", "used_nonces"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_RemoteTokenMessenger_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"circle", "cctp", "v1", "remote_token_messengers", "domain_id"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_RemoteTokenMessenger_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"circle", "cctp", "v1", "remote_token_messengers", "domain_id"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_RemoteTokenMessengers_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"circle", "cctp", "v1", "remote_token_messengers"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_RemoteTokenMessengers_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"circle", "cctp", "v1", "remote_token_messengers"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_BurnMessageVersion_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"circle", "cctp", "v1", "burn_message_version"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_BurnMessageVersion_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"circle", "cctp", "v1", "burn_message_version"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_LocalMessageVersion_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"circle", "cctp", "v1", "local_message_version"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_LocalMessageVersion_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"circle", "cctp", "v1", "local_message_version"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_LocalDomain_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"circle", "cctp", "v1", "local_domain"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_LocalDomain_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"circle", "cctp", "v1", "local_domain"}, "", runtime.AssumeColonVerbOpt(false))) ) var ( diff --git a/x/cctp/types/remote_token_messenger.pb.go b/x/cctp/types/remote_token_messenger.pb.go index db90330..4bde51b 100644 --- a/x/cctp/types/remote_token_messenger.pb.go +++ b/x/cctp/types/remote_token_messenger.pb.go @@ -5,7 +5,7 @@ package types import ( fmt "fmt" - proto "github.com/gogo/protobuf/proto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" diff --git a/x/cctp/types/sending_and_receiving_messages_paused.pb.go b/x/cctp/types/sending_and_receiving_messages_paused.pb.go index 79882bc..9d1f93e 100644 --- a/x/cctp/types/sending_and_receiving_messages_paused.pb.go +++ b/x/cctp/types/sending_and_receiving_messages_paused.pb.go @@ -5,7 +5,7 @@ package types import ( fmt "fmt" - proto "github.com/gogo/protobuf/proto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" diff --git a/x/cctp/types/signature_threshold.pb.go b/x/cctp/types/signature_threshold.pb.go index 989c267..bb25d5f 100644 --- a/x/cctp/types/signature_threshold.pb.go +++ b/x/cctp/types/signature_threshold.pb.go @@ -5,7 +5,7 @@ package types import ( fmt "fmt" - proto "github.com/gogo/protobuf/proto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" diff --git a/x/cctp/types/token_pair.go b/x/cctp/types/token_pair.go index db61c72..d9c34fe 100644 --- a/x/cctp/types/token_pair.go +++ b/x/cctp/types/token_pair.go @@ -1,36 +1,37 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package types import ( "encoding/hex" "strings" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "cosmossdk.io/errors" ) // RemoteTokenPadded returns the remote token as a byte array, padded to 32 bytes func RemoteTokenPadded(remoteTokenHex string) ([]byte, error) { remoteToken, err := hex.DecodeString(strings.TrimPrefix(remoteTokenHex, "0x")) if err != nil { - return nil, sdkerrors.Wrap(ErrInvalidRemoteToken, "must be hex string") + return nil, errors.Wrap(ErrInvalidRemoteToken, "must be hex string") } if len(remoteToken) > BurnTokenLen { - return nil, sdkerrors.Wrapf(ErrInvalidRemoteToken, "must be less than %d bytes", BurnTokenLen) + return nil, errors.Wrapf(ErrInvalidRemoteToken, "must be less than %d bytes", BurnTokenLen) } remoteTokenPadded := make([]byte, BurnTokenLen) diff --git a/x/cctp/types/token_pair.pb.go b/x/cctp/types/token_pair.pb.go index 5aca669..5888dd4 100644 --- a/x/cctp/types/token_pair.pb.go +++ b/x/cctp/types/token_pair.pb.go @@ -5,7 +5,7 @@ package types import ( fmt "fmt" - proto "github.com/gogo/protobuf/proto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" diff --git a/x/cctp/types/token_pair_test.go b/x/cctp/types/token_pair_test.go index 9e5a9d6..b809c58 100644 --- a/x/cctp/types/token_pair_test.go +++ b/x/cctp/types/token_pair_test.go @@ -1,18 +1,19 @@ -/* - * Copyright (c) 2023, Ā© Circle Internet Financial, LTD. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2024 Circle Internet Group, Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + package types_test import ( diff --git a/x/cctp/types/tx.pb.go b/x/cctp/types/tx.pb.go index a6ec6ca..3fca677 100644 --- a/x/cctp/types/tx.pb.go +++ b/x/cctp/types/tx.pb.go @@ -7,9 +7,12 @@ import ( context "context" cosmossdk_io_math "cosmossdk.io/math" fmt "fmt" - _ "github.com/gogo/protobuf/gogoproto" - grpc1 "github.com/gogo/protobuf/grpc" - proto "github.com/gogo/protobuf/proto" + _ "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" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -29,7 +32,6 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package -// TODO add comments type MsgUpdateOwner struct { From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` NewOwner string `protobuf:"bytes,2,opt,name=new_owner,json=newOwner,proto3" json:"new_owner,omitempty"` @@ -68,20 +70,6 @@ func (m *MsgUpdateOwner) XXX_DiscardUnknown() { var xxx_messageInfo_MsgUpdateOwner proto.InternalMessageInfo -func (m *MsgUpdateOwner) GetFrom() string { - if m != nil { - return m.From - } - return "" -} - -func (m *MsgUpdateOwner) GetNewOwner() string { - if m != nil { - return m.NewOwner - } - return "" -} - type MsgUpdateOwnerResponse struct { } @@ -156,20 +144,6 @@ func (m *MsgUpdateAttesterManager) XXX_DiscardUnknown() { var xxx_messageInfo_MsgUpdateAttesterManager proto.InternalMessageInfo -func (m *MsgUpdateAttesterManager) GetFrom() string { - if m != nil { - return m.From - } - return "" -} - -func (m *MsgUpdateAttesterManager) GetNewAttesterManager() string { - if m != nil { - return m.NewAttesterManager - } - return "" -} - type MsgUpdateAttesterManagerResponse struct { } @@ -244,20 +218,6 @@ func (m *MsgUpdateTokenController) XXX_DiscardUnknown() { var xxx_messageInfo_MsgUpdateTokenController proto.InternalMessageInfo -func (m *MsgUpdateTokenController) GetFrom() string { - if m != nil { - return m.From - } - return "" -} - -func (m *MsgUpdateTokenController) GetNewTokenController() string { - if m != nil { - return m.NewTokenController - } - return "" -} - type MsgUpdateTokenControllerResponse struct { } @@ -332,20 +292,6 @@ func (m *MsgUpdatePauser) XXX_DiscardUnknown() { var xxx_messageInfo_MsgUpdatePauser proto.InternalMessageInfo -func (m *MsgUpdatePauser) GetFrom() string { - if m != nil { - return m.From - } - return "" -} - -func (m *MsgUpdatePauser) GetNewPauser() string { - if m != nil { - return m.NewPauser - } - return "" -} - type MsgUpdatePauserResponse struct { } @@ -419,13 +365,6 @@ func (m *MsgAcceptOwner) XXX_DiscardUnknown() { var xxx_messageInfo_MsgAcceptOwner proto.InternalMessageInfo -func (m *MsgAcceptOwner) GetFrom() string { - if m != nil { - return m.From - } - return "" -} - type MsgAcceptOwnerResponse struct { } @@ -500,20 +439,6 @@ func (m *MsgEnableAttester) XXX_DiscardUnknown() { var xxx_messageInfo_MsgEnableAttester proto.InternalMessageInfo -func (m *MsgEnableAttester) GetFrom() string { - if m != nil { - return m.From - } - return "" -} - -func (m *MsgEnableAttester) GetAttester() string { - if m != nil { - return m.Attester - } - return "" -} - type MsgEnableAttesterResponse struct { } @@ -588,20 +513,6 @@ func (m *MsgDisableAttester) XXX_DiscardUnknown() { var xxx_messageInfo_MsgDisableAttester proto.InternalMessageInfo -func (m *MsgDisableAttester) GetFrom() string { - if m != nil { - return m.From - } - return "" -} - -func (m *MsgDisableAttester) GetAttester() string { - if m != nil { - return m.Attester - } - return "" -} - type MsgDisableAttesterResponse struct { } @@ -675,13 +586,6 @@ func (m *MsgPauseBurningAndMinting) XXX_DiscardUnknown() { var xxx_messageInfo_MsgPauseBurningAndMinting proto.InternalMessageInfo -func (m *MsgPauseBurningAndMinting) GetFrom() string { - if m != nil { - return m.From - } - return "" -} - type MsgPauseBurningAndMintingResponse struct { } @@ -755,13 +659,6 @@ func (m *MsgUnpauseBurningAndMinting) XXX_DiscardUnknown() { var xxx_messageInfo_MsgUnpauseBurningAndMinting proto.InternalMessageInfo -func (m *MsgUnpauseBurningAndMinting) GetFrom() string { - if m != nil { - return m.From - } - return "" -} - type MsgUnpauseBurningAndMintingResponse struct { } @@ -835,13 +732,6 @@ func (m *MsgPauseSendingAndReceivingMessages) XXX_DiscardUnknown() { var xxx_messageInfo_MsgPauseSendingAndReceivingMessages proto.InternalMessageInfo -func (m *MsgPauseSendingAndReceivingMessages) GetFrom() string { - if m != nil { - return m.From - } - return "" -} - type MsgPauseSendingAndReceivingMessagesResponse struct { } @@ -919,13 +809,6 @@ func (m *MsgUnpauseSendingAndReceivingMessages) XXX_DiscardUnknown() { var xxx_messageInfo_MsgUnpauseSendingAndReceivingMessages proto.InternalMessageInfo -func (m *MsgUnpauseSendingAndReceivingMessages) GetFrom() string { - if m != nil { - return m.From - } - return "" -} - type MsgUnpauseSendingAndReceivingMessagesResponse struct { } @@ -1004,20 +887,6 @@ func (m *MsgUpdateMaxMessageBodySize) XXX_DiscardUnknown() { var xxx_messageInfo_MsgUpdateMaxMessageBodySize proto.InternalMessageInfo -func (m *MsgUpdateMaxMessageBodySize) GetFrom() string { - if m != nil { - return m.From - } - return "" -} - -func (m *MsgUpdateMaxMessageBodySize) GetMessageSize() uint64 { - if m != nil { - return m.MessageSize - } - return 0 -} - type MsgUpdateMaxMessageBodySizeResponse struct { } @@ -1093,20 +962,6 @@ func (m *MsgSetMaxBurnAmountPerMessage) XXX_DiscardUnknown() { var xxx_messageInfo_MsgSetMaxBurnAmountPerMessage proto.InternalMessageInfo -func (m *MsgSetMaxBurnAmountPerMessage) GetFrom() string { - if m != nil { - return m.From - } - return "" -} - -func (m *MsgSetMaxBurnAmountPerMessage) GetLocalToken() string { - if m != nil { - return m.LocalToken - } - return "" -} - type MsgSetMaxBurnAmountPerMessageResponse struct { } @@ -1184,34 +1039,6 @@ func (m *MsgDepositForBurn) XXX_DiscardUnknown() { var xxx_messageInfo_MsgDepositForBurn proto.InternalMessageInfo -func (m *MsgDepositForBurn) GetFrom() string { - if m != nil { - return m.From - } - return "" -} - -func (m *MsgDepositForBurn) GetDestinationDomain() uint32 { - if m != nil { - return m.DestinationDomain - } - return 0 -} - -func (m *MsgDepositForBurn) GetMintRecipient() []byte { - if m != nil { - return m.MintRecipient - } - return nil -} - -func (m *MsgDepositForBurn) GetBurnToken() string { - if m != nil { - return m.BurnToken - } - return "" -} - type MsgDepositForBurnResponse struct { Nonce uint64 `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"` } @@ -1298,41 +1125,6 @@ func (m *MsgDepositForBurnWithCaller) XXX_DiscardUnknown() { var xxx_messageInfo_MsgDepositForBurnWithCaller proto.InternalMessageInfo -func (m *MsgDepositForBurnWithCaller) GetFrom() string { - if m != nil { - return m.From - } - return "" -} - -func (m *MsgDepositForBurnWithCaller) GetDestinationDomain() uint32 { - if m != nil { - return m.DestinationDomain - } - return 0 -} - -func (m *MsgDepositForBurnWithCaller) GetMintRecipient() []byte { - if m != nil { - return m.MintRecipient - } - return nil -} - -func (m *MsgDepositForBurnWithCaller) GetBurnToken() string { - if m != nil { - return m.BurnToken - } - return "" -} - -func (m *MsgDepositForBurnWithCaller) GetDestinationCaller() []byte { - if m != nil { - return m.DestinationCaller - } - return nil -} - type MsgDepositForBurnWithCallerResponse struct { Nonce uint64 `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"` } @@ -1418,41 +1210,6 @@ func (m *MsgReplaceDepositForBurn) XXX_DiscardUnknown() { var xxx_messageInfo_MsgReplaceDepositForBurn proto.InternalMessageInfo -func (m *MsgReplaceDepositForBurn) GetFrom() string { - if m != nil { - return m.From - } - return "" -} - -func (m *MsgReplaceDepositForBurn) GetOriginalMessage() []byte { - if m != nil { - return m.OriginalMessage - } - return nil -} - -func (m *MsgReplaceDepositForBurn) GetOriginalAttestation() []byte { - if m != nil { - return m.OriginalAttestation - } - return nil -} - -func (m *MsgReplaceDepositForBurn) GetNewDestinationCaller() []byte { - if m != nil { - return m.NewDestinationCaller - } - return nil -} - -func (m *MsgReplaceDepositForBurn) GetNewMintRecipient() []byte { - if m != nil { - return m.NewMintRecipient - } - return nil -} - type MsgReplaceDepositForBurnResponse struct { } @@ -1528,27 +1285,6 @@ func (m *MsgReceiveMessage) XXX_DiscardUnknown() { var xxx_messageInfo_MsgReceiveMessage proto.InternalMessageInfo -func (m *MsgReceiveMessage) GetFrom() string { - if m != nil { - return m.From - } - return "" -} - -func (m *MsgReceiveMessage) GetMessage() []byte { - if m != nil { - return m.Message - } - return nil -} - -func (m *MsgReceiveMessage) GetAttestation() []byte { - if m != nil { - return m.Attestation - } - return nil -} - type MsgReceiveMessageResponse struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` } @@ -1633,34 +1369,6 @@ func (m *MsgSendMessage) XXX_DiscardUnknown() { var xxx_messageInfo_MsgSendMessage proto.InternalMessageInfo -func (m *MsgSendMessage) GetFrom() string { - if m != nil { - return m.From - } - return "" -} - -func (m *MsgSendMessage) GetDestinationDomain() uint32 { - if m != nil { - return m.DestinationDomain - } - return 0 -} - -func (m *MsgSendMessage) GetRecipient() []byte { - if m != nil { - return m.Recipient - } - return nil -} - -func (m *MsgSendMessage) GetMessageBody() []byte { - if m != nil { - return m.MessageBody - } - return nil -} - type MsgSendMessageResponse struct { Nonce uint64 `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"` } @@ -1746,41 +1454,6 @@ func (m *MsgSendMessageWithCaller) XXX_DiscardUnknown() { var xxx_messageInfo_MsgSendMessageWithCaller proto.InternalMessageInfo -func (m *MsgSendMessageWithCaller) GetFrom() string { - if m != nil { - return m.From - } - return "" -} - -func (m *MsgSendMessageWithCaller) GetDestinationDomain() uint32 { - if m != nil { - return m.DestinationDomain - } - return 0 -} - -func (m *MsgSendMessageWithCaller) GetRecipient() []byte { - if m != nil { - return m.Recipient - } - return nil -} - -func (m *MsgSendMessageWithCaller) GetMessageBody() []byte { - if m != nil { - return m.MessageBody - } - return nil -} - -func (m *MsgSendMessageWithCaller) GetDestinationCaller() []byte { - if m != nil { - return m.DestinationCaller - } - return nil -} - type MsgSendMessageWithCallerResponse struct { Nonce uint64 `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"` } @@ -1866,41 +1539,6 @@ func (m *MsgReplaceMessage) XXX_DiscardUnknown() { var xxx_messageInfo_MsgReplaceMessage proto.InternalMessageInfo -func (m *MsgReplaceMessage) GetFrom() string { - if m != nil { - return m.From - } - return "" -} - -func (m *MsgReplaceMessage) GetOriginalMessage() []byte { - if m != nil { - return m.OriginalMessage - } - return nil -} - -func (m *MsgReplaceMessage) GetOriginalAttestation() []byte { - if m != nil { - return m.OriginalAttestation - } - return nil -} - -func (m *MsgReplaceMessage) GetNewMessageBody() []byte { - if m != nil { - return m.NewMessageBody - } - return nil -} - -func (m *MsgReplaceMessage) GetNewDestinationCaller() []byte { - if m != nil { - return m.NewDestinationCaller - } - return nil -} - type MsgReplaceMessageResponse struct { } @@ -1975,20 +1613,6 @@ func (m *MsgUpdateSignatureThreshold) XXX_DiscardUnknown() { var xxx_messageInfo_MsgUpdateSignatureThreshold proto.InternalMessageInfo -func (m *MsgUpdateSignatureThreshold) GetFrom() string { - if m != nil { - return m.From - } - return "" -} - -func (m *MsgUpdateSignatureThreshold) GetAmount() uint32 { - if m != nil { - return m.Amount - } - return 0 -} - type MsgUpdateSignatureThresholdResponse struct { } @@ -2065,34 +1689,6 @@ func (m *MsgLinkTokenPair) XXX_DiscardUnknown() { var xxx_messageInfo_MsgLinkTokenPair proto.InternalMessageInfo -func (m *MsgLinkTokenPair) GetFrom() string { - if m != nil { - return m.From - } - return "" -} - -func (m *MsgLinkTokenPair) GetRemoteDomain() uint32 { - if m != nil { - return m.RemoteDomain - } - return 0 -} - -func (m *MsgLinkTokenPair) GetRemoteToken() []byte { - if m != nil { - return m.RemoteToken - } - return nil -} - -func (m *MsgLinkTokenPair) GetLocalToken() string { - if m != nil { - return m.LocalToken - } - return "" -} - type MsgLinkTokenPairResponse struct { } @@ -2169,34 +1765,6 @@ func (m *MsgUnlinkTokenPair) XXX_DiscardUnknown() { var xxx_messageInfo_MsgUnlinkTokenPair proto.InternalMessageInfo -func (m *MsgUnlinkTokenPair) GetFrom() string { - if m != nil { - return m.From - } - return "" -} - -func (m *MsgUnlinkTokenPair) GetRemoteDomain() uint32 { - if m != nil { - return m.RemoteDomain - } - return 0 -} - -func (m *MsgUnlinkTokenPair) GetRemoteToken() []byte { - if m != nil { - return m.RemoteToken - } - return nil -} - -func (m *MsgUnlinkTokenPair) GetLocalToken() string { - if m != nil { - return m.LocalToken - } - return "" -} - type MsgUnlinkTokenPairResponse struct { } @@ -2272,27 +1840,6 @@ func (m *MsgAddRemoteTokenMessenger) XXX_DiscardUnknown() { var xxx_messageInfo_MsgAddRemoteTokenMessenger proto.InternalMessageInfo -func (m *MsgAddRemoteTokenMessenger) GetFrom() string { - if m != nil { - return m.From - } - return "" -} - -func (m *MsgAddRemoteTokenMessenger) GetDomainId() uint32 { - if m != nil { - return m.DomainId - } - return 0 -} - -func (m *MsgAddRemoteTokenMessenger) GetAddress() []byte { - if m != nil { - return m.Address - } - return nil -} - type MsgAddRemoteTokenMessengerResponse struct { } @@ -2367,20 +1914,6 @@ func (m *MsgRemoveRemoteTokenMessenger) XXX_DiscardUnknown() { var xxx_messageInfo_MsgRemoveRemoteTokenMessenger proto.InternalMessageInfo -func (m *MsgRemoveRemoteTokenMessenger) GetFrom() string { - if m != nil { - return m.From - } - return "" -} - -func (m *MsgRemoveRemoteTokenMessenger) GetDomainId() uint32 { - if m != nil { - return m.DomainId - } - return 0 -} - type MsgRemoveRemoteTokenMessengerResponse struct { } @@ -2473,107 +2006,125 @@ func init() { func init() { proto.RegisterFile("circle/cctp/v1/tx.proto", fileDescriptor_0b990d866e8d1445) } var fileDescriptor_0b990d866e8d1445 = []byte{ - // 1586 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x59, 0xdb, 0x6f, 0xd4, 0x46, - 0x17, 0x8f, 0x43, 0x02, 0xe1, 0xe4, 0x42, 0xf0, 0x17, 0xc2, 0x62, 0x60, 0x93, 0x18, 0xf8, 0x58, - 0x08, 0xd9, 0x25, 0xf0, 0x45, 0xfa, 0x2a, 0xd4, 0x87, 0x0d, 0x29, 0x12, 0x52, 0x57, 0x8d, 0x1c, - 0x50, 0xab, 0x56, 0xea, 0xd6, 0xb1, 0x07, 0xc7, 0x62, 0x77, 0x66, 0xe5, 0xf1, 0xe6, 0x82, 0xfa, - 0x54, 0xf5, 0xad, 0x95, 0xda, 0x4a, 0x3c, 0xf5, 0x2f, 0xe2, 0xa5, 0x12, 0x52, 0x5f, 0xaa, 0x3e, - 0xa0, 0x0a, 0xd4, 0xf7, 0xfe, 0x09, 0xd5, 0x8c, 0xed, 0x59, 0xdb, 0x3b, 0x63, 0x6f, 0xe8, 0x45, - 0xed, 0xdb, 0x7a, 0xe6, 0x77, 0x2e, 0xf3, 0x9b, 0x73, 0xce, 0x9c, 0x99, 0x85, 0xf3, 0x8e, 0x1f, - 0x38, 0x1d, 0xd4, 0x70, 0x9c, 0xb0, 0xd7, 0xd8, 0x5f, 0x6f, 0x84, 0x87, 0xf5, 0x5e, 0x40, 0x42, - 0xa2, 0xcf, 0x45, 0x13, 0x75, 0x36, 0x51, 0xdf, 0x5f, 0x37, 0x16, 0x3c, 0xe2, 0x11, 0x3e, 0xd5, - 0x60, 0xbf, 0x22, 0x94, 0xd9, 0x84, 0xb9, 0x16, 0xf5, 0x1e, 0xf7, 0x5c, 0x3b, 0x44, 0x1f, 0x1c, - 0x60, 0x14, 0xe8, 0x3a, 0x4c, 0x3c, 0x09, 0x48, 0xb7, 0xa2, 0x2d, 0x6b, 0xb5, 0xd3, 0x16, 0xff, - 0xad, 0x5f, 0x84, 0xd3, 0x18, 0x1d, 0xb4, 0x09, 0x03, 0x54, 0xc6, 0xf9, 0xc4, 0x14, 0x46, 0x07, - 0x5c, 0xc0, 0xac, 0xc0, 0x62, 0x56, 0x85, 0x85, 0x68, 0x8f, 0x60, 0x8a, 0xcc, 0xcf, 0xa0, 0x22, - 0x66, 0x9a, 0x61, 0x88, 0x68, 0x88, 0x82, 0x96, 0x8d, 0x6d, 0x4f, 0x61, 0xe6, 0x36, 0x2c, 0x30, - 0x33, 0x76, 0x0c, 0x6d, 0x77, 0x23, 0x6c, 0x6c, 0x51, 0xc7, 0xe8, 0x20, 0xa7, 0xc5, 0x34, 0x61, - 0x59, 0x65, 0x41, 0xea, 0xc5, 0x23, 0xf2, 0x14, 0xe1, 0xfb, 0x04, 0x87, 0x01, 0xe9, 0x74, 0x8a, - 0xbd, 0x08, 0x19, 0xb4, 0xed, 0x08, 0x6c, 0xca, 0x8b, 0x9c, 0x96, 0x8c, 0x17, 0xb9, 0x39, 0xe1, - 0xc5, 0x16, 0x9c, 0x11, 0x98, 0x6d, 0xbb, 0x4f, 0x15, 0xc6, 0x2f, 0x03, 0x30, 0xe3, 0x3d, 0x8e, - 0x88, 0x4d, 0x32, 0xee, 0x23, 0x11, 0xf3, 0x02, 0x9c, 0xcf, 0x69, 0x11, 0x06, 0xae, 0xf2, 0x9d, - 0x6c, 0x3a, 0x0e, 0xea, 0x85, 0xca, 0x9d, 0x8c, 0x37, 0x2b, 0x85, 0x12, 0xf2, 0xf7, 0xe1, 0x6c, - 0x8b, 0x7a, 0xef, 0x61, 0x7b, 0xb7, 0x23, 0xa8, 0x94, 0xba, 0x68, 0xc0, 0x54, 0xb2, 0x43, 0x49, - 0x2c, 0x24, 0xdf, 0xe6, 0x45, 0xb8, 0x30, 0xa4, 0x24, 0x45, 0x81, 0xde, 0xa2, 0xde, 0x96, 0x4f, - 0xff, 0x90, 0x89, 0x4b, 0x60, 0x0c, 0x6b, 0x11, 0x36, 0x1a, 0xdc, 0x01, 0x4e, 0xcd, 0x66, 0x3f, - 0xc0, 0x3e, 0xf6, 0x9a, 0xd8, 0x6d, 0xf9, 0x38, 0xf4, 0xb1, 0x27, 0x25, 0xe4, 0x0a, 0xac, 0x28, - 0x05, 0x84, 0xd6, 0x75, 0xb8, 0xc8, 0x68, 0xc7, 0xbd, 0xd1, 0xf5, 0x5e, 0x83, 0x2b, 0x05, 0x22, - 0x42, 0xf3, 0x3b, 0x1c, 0xc6, 0xcd, 0xef, 0x20, 0xec, 0x46, 0x20, 0x0b, 0x39, 0xc8, 0xdf, 0xf7, - 0xb1, 0xd7, 0x42, 0x94, 0xda, 0x1e, 0xa2, 0x52, 0x0b, 0x6b, 0xb0, 0x3a, 0x82, 0xa8, 0xb0, 0x74, - 0x0f, 0xae, 0x0d, 0x1c, 0x3a, 0xae, 0xad, 0x06, 0xac, 0x8d, 0x24, 0x2c, 0xac, 0x3d, 0x8a, 0x18, - 0xe3, 0x81, 0xda, 0xb2, 0x0f, 0xe3, 0xf9, 0x4d, 0xe2, 0x1e, 0xed, 0xf8, 0xcf, 0x90, 0x74, 0xd3, - 0x57, 0x60, 0xa6, 0x1b, 0xc1, 0xda, 0xd4, 0x7f, 0x86, 0xf8, 0xc6, 0x4f, 0x58, 0xd3, 0xf1, 0x18, - 0x13, 0x4b, 0x48, 0x55, 0x68, 0x15, 0xc6, 0xbf, 0xd2, 0xe0, 0x72, 0x8b, 0x7a, 0x3b, 0x28, 0x6c, - 0xd9, 0x87, 0x8c, 0xfb, 0x66, 0x97, 0xf4, 0x71, 0xb8, 0x8d, 0x82, 0x58, 0x42, 0x6a, 0x7f, 0x09, - 0xa6, 0x3b, 0xc4, 0xb1, 0x3b, 0x51, 0xe6, 0xc7, 0x71, 0x07, 0x7c, 0x88, 0x27, 0xb5, 0xbe, 0x01, - 0x27, 0x6d, 0xae, 0xa8, 0x72, 0x82, 0xcd, 0x6d, 0x5e, 0x7e, 0xf1, 0x6a, 0x69, 0xec, 0xe7, 0x57, - 0x4b, 0xe7, 0x1c, 0x42, 0xbb, 0x84, 0x52, 0xf7, 0x69, 0xdd, 0x27, 0x8d, 0xae, 0x1d, 0xee, 0xd5, - 0x1f, 0xe2, 0xd0, 0x8a, 0xc1, 0xe6, 0x75, 0x4e, 0xbc, 0xda, 0x19, 0xe1, 0xf6, 0x8f, 0x1a, 0x4f, - 0xc1, 0x2d, 0xd4, 0x23, 0xd4, 0x0f, 0x1f, 0x90, 0x80, 0xa1, 0xa5, 0xae, 0x0e, 0x3c, 0x19, 0x3f, - 0x86, 0x27, 0xfa, 0x1a, 0xe8, 0x2e, 0xa2, 0xa1, 0x8f, 0xed, 0xd0, 0x27, 0xb8, 0xed, 0x92, 0xae, - 0xed, 0x63, 0xbe, 0x98, 0x59, 0xeb, 0x6c, 0x6a, 0x66, 0x8b, 0x4f, 0xe8, 0xd7, 0x60, 0xae, 0xeb, - 0xe3, 0xb0, 0x1d, 0x20, 0xc7, 0xef, 0xf9, 0x08, 0x87, 0x95, 0x89, 0x65, 0xad, 0x36, 0x63, 0xcd, - 0xb2, 0x51, 0x2b, 0x19, 0x64, 0x25, 0x6b, 0xb7, 0x1f, 0xe0, 0x98, 0xb6, 0xc9, 0xa8, 0x64, 0xb1, - 0x11, 0xce, 0x9a, 0xb9, 0xce, 0x33, 0x32, 0xbb, 0xa8, 0x64, 0xc9, 0xfa, 0x02, 0x4c, 0x62, 0x82, - 0x1d, 0xc4, 0x57, 0x37, 0x61, 0x45, 0x1f, 0xe6, 0xd7, 0xe3, 0x3c, 0x7a, 0xb2, 0x32, 0x1f, 0xfa, - 0xe1, 0xde, 0x7d, 0x5b, 0x59, 0xb5, 0xff, 0x45, 0x94, 0xe4, 0x8d, 0x3a, 0x7c, 0x55, 0x95, 0x93, - 0x5c, 0x53, 0xda, 0x68, 0xb4, 0x5c, 0xf3, 0x1e, 0x8f, 0x7a, 0x15, 0x1b, 0x25, 0x5c, 0xfe, 0xa6, - 0xf1, 0xe3, 0xcf, 0x42, 0xbd, 0x8e, 0xed, 0xa0, 0x11, 0x62, 0xeb, 0x06, 0xcc, 0x93, 0xc0, 0xf7, - 0x7c, 0x6c, 0x77, 0xda, 0x71, 0xee, 0x71, 0x4a, 0x67, 0xac, 0x33, 0xc9, 0x78, 0x92, 0x45, 0xeb, - 0xb0, 0x20, 0xa0, 0x51, 0x7d, 0xe6, 0x6e, 0x73, 0xfa, 0x66, 0xac, 0xff, 0x24, 0x73, 0xcd, 0xc1, - 0x94, 0xfe, 0x3f, 0x58, 0x64, 0xe7, 0x9b, 0x64, 0xf9, 0x11, 0x91, 0xec, 0xe8, 0xdd, 0xca, 0x33, - 0xa0, 0xdf, 0x02, 0x76, 0xec, 0xb6, 0x73, 0xd4, 0x4f, 0x72, 0x89, 0x79, 0x8c, 0x0e, 0x5a, 0x69, - 0xf6, 0xe3, 0xe3, 0x58, 0xba, 0x62, 0x91, 0x6b, 0x0e, 0x4f, 0xb5, 0xa8, 0x7e, 0xa1, 0xa2, 0xaa, - 0x50, 0x81, 0x53, 0x59, 0x16, 0x92, 0x4f, 0x7d, 0x19, 0xa6, 0x87, 0x17, 0x9d, 0x1e, 0x32, 0x37, - 0x78, 0xe8, 0x67, 0x8d, 0x88, 0xed, 0xaa, 0xc0, 0x29, 0xda, 0x77, 0x1c, 0x44, 0x29, 0xb7, 0x37, - 0x65, 0x25, 0x9f, 0xe6, 0x73, 0x8d, 0x1f, 0xe5, 0xac, 0xcc, 0x16, 0x79, 0x26, 0x0f, 0xdd, 0x71, - 0x55, 0xe8, 0x5e, 0x82, 0xd3, 0x03, 0xea, 0x22, 0x67, 0x07, 0x03, 0xe9, 0xe2, 0xbb, 0x4b, 0xdc, - 0xa3, 0x78, 0x37, 0x92, 0xe2, 0xcb, 0x2a, 0xac, 0x59, 0xe7, 0xad, 0x43, 0xca, 0xab, 0x92, 0xc8, - 0xfb, 0x21, 0x8a, 0xbc, 0x94, 0x40, 0x49, 0x0a, 0xff, 0xcd, 0x0b, 0x52, 0xa4, 0xe1, 0xa4, 0x2a, - 0x0d, 0xff, 0xcf, 0xc3, 0x4a, 0xba, 0x9c, 0x12, 0x26, 0x7e, 0xd5, 0xe2, 0x68, 0xe3, 0x11, 0x59, - 0xb4, 0xa7, 0x7f, 0x6d, 0xf2, 0xd5, 0x60, 0x9e, 0xa7, 0xd1, 0x30, 0x2f, 0x73, 0x2c, 0x89, 0x52, - 0xd4, 0xa8, 0xd3, 0x74, 0x52, 0x9d, 0xa6, 0x71, 0xf7, 0x97, 0x5d, 0xa6, 0xc8, 0xb8, 0x87, 0xa9, - 0x8e, 0x60, 0xc7, 0xf7, 0xb0, 0x1d, 0xf6, 0x03, 0xf4, 0x68, 0x2f, 0x40, 0x74, 0x8f, 0x74, 0x5c, - 0x29, 0x1b, 0x8b, 0x99, 0x9a, 0x3e, 0x2b, 0x4e, 0xd4, 0x74, 0x1b, 0x30, 0xac, 0x4a, 0x58, 0xfc, - 0x46, 0x83, 0xf9, 0x16, 0xf5, 0xde, 0xf7, 0xf1, 0x53, 0x5e, 0x77, 0xb7, 0x6d, 0x5f, 0x1e, 0x78, - 0x57, 0x60, 0x36, 0x40, 0x5d, 0x12, 0xa2, 0x6c, 0xcc, 0xcd, 0x44, 0x83, 0x71, 0xb8, 0xad, 0x40, - 0xfc, 0x1d, 0x57, 0xf5, 0x38, 0xdf, 0xa3, 0xb1, 0xa8, 0xae, 0xe7, 0x3a, 0x88, 0x89, 0x7c, 0x07, - 0x61, 0x1a, 0x3c, 0x23, 0x32, 0x0e, 0x09, 0x6f, 0xbf, 0xd3, 0x78, 0x7b, 0xfc, 0x18, 0x77, 0xfe, - 0x39, 0xfe, 0x46, 0xbd, 0x76, 0xce, 0x25, 0xe1, 0xb1, 0xc7, 0x67, 0x9b, 0xae, 0x6b, 0x0d, 0x74, - 0xb2, 0x5d, 0x47, 0xd8, 0x53, 0xdf, 0x23, 0x23, 0x8f, 0xdb, 0xbe, 0x1b, 0x3b, 0x3d, 0x15, 0x0d, - 0x3c, 0x74, 0x59, 0x41, 0xb4, 0x5d, 0x37, 0x60, 0x05, 0x31, 0xf2, 0x35, 0xf9, 0x34, 0xaf, 0x82, - 0xa9, 0x36, 0x24, 0xdc, 0xd9, 0xe6, 0x4d, 0x1f, 0x83, 0xec, 0xa3, 0x3f, 0xc5, 0xa3, 0xb8, 0x73, - 0x53, 0x6b, 0x4c, 0x4c, 0xdf, 0xf9, 0x72, 0x11, 0x4e, 0xb4, 0xa8, 0xa7, 0x3f, 0x86, 0xe9, 0xf4, - 0x05, 0xac, 0x5a, 0xcf, 0xde, 0xc1, 0xeb, 0xd9, 0xab, 0x97, 0xf1, 0xdf, 0xe2, 0x79, 0x51, 0x55, - 0x8e, 0xe0, 0xbc, 0x8a, 0xe5, 0x9b, 0x32, 0x15, 0x72, 0xac, 0x71, 0x67, 0x74, 0xac, 0x30, 0xfd, - 0x29, 0xcc, 0xe5, 0x7a, 0x86, 0x15, 0x89, 0x96, 0x2c, 0xc4, 0xb8, 0x51, 0x0a, 0x11, 0xfa, 0x3f, - 0x87, 0x8a, 0xb2, 0xcd, 0x5b, 0x2d, 0x55, 0x33, 0x00, 0x1b, 0x77, 0x8f, 0x01, 0x16, 0xd6, 0x6d, - 0x38, 0x93, 0xbf, 0x8e, 0x9a, 0x32, 0x3d, 0x59, 0x8c, 0x71, 0xb3, 0x1c, 0x93, 0x26, 0x30, 0x77, - 0xa7, 0x96, 0x11, 0x98, 0x85, 0x48, 0x09, 0x94, 0x5f, 0xaa, 0xf5, 0x4f, 0x60, 0x36, 0x5b, 0xe0, - 0x96, 0x25, 0xb2, 0x19, 0x84, 0x51, 0x2b, 0x43, 0x08, 0xe5, 0xfb, 0xb0, 0xa8, 0xb8, 0x4a, 0xcb, - 0x3c, 0x94, 0x43, 0x8d, 0xf5, 0x91, 0xa1, 0xc2, 0xee, 0x73, 0x0d, 0x96, 0x4b, 0xef, 0xc4, 0x77, - 0x55, 0x7a, 0x0b, 0x84, 0x8c, 0x7b, 0x6f, 0x21, 0x94, 0xde, 0xcb, 0x5c, 0xc7, 0x28, 0xdb, 0xcb, - 0x2c, 0x44, 0xba, 0x97, 0x8a, 0x96, 0xf0, 0x0b, 0x0d, 0x8c, 0x82, 0xfa, 0xb5, 0x26, 0xd5, 0xa4, - 0x82, 0x1b, 0x1b, 0xc7, 0x82, 0x0b, 0x27, 0x28, 0x9c, 0x93, 0x5f, 0x16, 0x6a, 0x52, 0x7d, 0x12, - 0xa4, 0x71, 0x7b, 0x54, 0x64, 0x96, 0xd9, 0x4c, 0x77, 0xb4, 0xa2, 0xd6, 0x51, 0xcc, 0xac, 0xac, - 0xf9, 0x60, 0x85, 0x39, 0xdd, 0x4e, 0xcb, 0x0a, 0x73, 0x6a, 0x5e, 0x5a, 0x98, 0x65, 0x8d, 0x2f, - 0x85, 0x73, 0xf2, 0xf6, 0xb6, 0x56, 0xac, 0x20, 0x55, 0xb7, 0x6e, 0x8f, 0x8a, 0x4c, 0x17, 0xad, - 0x7c, 0x93, 0x20, 0x2b, 0x5a, 0x39, 0x8c, 0xb4, 0x68, 0x29, 0x4e, 0x76, 0x56, 0x95, 0x95, 0x8f, - 0x5d, 0xab, 0x52, 0x3d, 0x72, 0xb0, 0xb4, 0x2a, 0x97, 0xbd, 0x89, 0xe9, 0xdf, 0x6b, 0x60, 0x8e, - 0xf0, 0x4e, 0xb5, 0xa1, 0xd6, 0x5d, 0x54, 0x01, 0xde, 0x7d, 0x2b, 0xb1, 0x74, 0x24, 0xa5, 0x5f, - 0xcb, 0x65, 0x91, 0x94, 0x9a, 0x97, 0x46, 0x92, 0xe4, 0xa9, 0x9c, 0x45, 0x92, 0xfc, 0x9d, 0xbc, - 0xa6, 0x54, 0x90, 0x43, 0x4a, 0x23, 0xa9, 0xf0, 0x65, 0x7c, 0x60, 0x34, 0xff, 0x2c, 0xae, 0x36, - 0x9a, 0x43, 0x16, 0x18, 0x55, 0x3c, 0x84, 0xeb, 0x1f, 0xc1, 0x4c, 0xe6, 0x15, 0x7c, 0x49, 0xa9, - 0x21, 0x02, 0x18, 0xd7, 0x4b, 0x00, 0x99, 0xa8, 0x55, 0x3d, 0x38, 0xae, 0x2a, 0x95, 0x0c, 0x83, - 0xe5, 0x51, 0x5b, 0xf2, 0xe8, 0xc8, 0x8b, 0x77, 0xc1, 0x8b, 0xe3, 0x9a, 0x34, 0xcf, 0x55, 0x70, - 0x69, 0xf1, 0x2e, 0x7f, 0x42, 0x1c, 0x50, 0x20, 0xb9, 0x61, 0xa9, 0x29, 0x18, 0x06, 0x17, 0x50, - 0xa0, 0xbe, 0x70, 0x6d, 0x3e, 0x78, 0xf1, 0xba, 0xaa, 0xbd, 0x7c, 0x5d, 0xd5, 0x7e, 0x79, 0x5d, - 0xd5, 0xbe, 0x7d, 0x53, 0x1d, 0x7b, 0xf9, 0xa6, 0x3a, 0xf6, 0xd3, 0x9b, 0xea, 0xd8, 0xc7, 0xb7, - 0x3c, 0x3f, 0xdc, 0xeb, 0xef, 0xd6, 0x1d, 0xd2, 0x6d, 0x44, 0x8a, 0x9f, 0xf8, 0xb8, 0x81, 0xc9, - 0x6e, 0x07, 0xad, 0xf1, 0x7f, 0xae, 0x0e, 0xa3, 0x3f, 0xb0, 0xc2, 0xa3, 0x1e, 0xa2, 0xbb, 0x27, - 0xf9, 0x7f, 0x53, 0x77, 0x7f, 0x0f, 0x00, 0x00, 0xff, 0xff, 0xfc, 0x1f, 0xd5, 0xe4, 0xdc, 0x1a, - 0x00, 0x00, + // 1883 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x5a, 0xcf, 0x6f, 0xd4, 0xc6, + 0x17, 0x8f, 0x43, 0x02, 0xc9, 0xcb, 0x0f, 0x12, 0x13, 0x92, 0xc5, 0x21, 0xbf, 0xcc, 0x37, 0x64, + 0x49, 0xc8, 0x2e, 0x21, 0xdf, 0xa8, 0x55, 0x10, 0x87, 0x84, 0x14, 0x89, 0xaa, 0xab, 0xa2, 0x0d, + 0xa8, 0x55, 0x2b, 0x75, 0xe5, 0xd8, 0x83, 0x63, 0xb1, 0x3b, 0x5e, 0x79, 0x9c, 0x5f, 0x88, 0x03, + 0xe2, 0x84, 0xe8, 0x85, 0x03, 0x87, 0xb6, 0x52, 0x25, 0xaa, 0x5e, 0xaa, 0x9e, 0x38, 0xb4, 0xb7, + 0x9e, 0x2b, 0x8e, 0xa8, 0x95, 0xda, 0xaa, 0xad, 0x50, 0x05, 0x07, 0xfa, 0x67, 0x54, 0x9e, 0xf1, + 0x7a, 0x6d, 0xef, 0x8c, 0xbd, 0xbb, 0x85, 0x4a, 0x5c, 0xa2, 0x78, 0xe6, 0x33, 0x6f, 0xde, 0xe7, + 0xcd, 0x7b, 0x6f, 0xde, 0xcc, 0x2c, 0x8c, 0xe9, 0x96, 0xa3, 0x97, 0x51, 0x5e, 0xd7, 0xdd, 0x6a, + 0x7e, 0x77, 0x29, 0xef, 0xee, 0xe7, 0xaa, 0x8e, 0xed, 0xda, 0xf2, 0x20, 0xeb, 0xc8, 0x79, 0x1d, + 0xb9, 0xdd, 0x25, 0x65, 0x58, 0xab, 0x58, 0xd8, 0xce, 0xd3, 0xbf, 0x0c, 0xa2, 0x8c, 0xe9, 0x36, + 0xa9, 0xd8, 0x24, 0x5f, 0x21, 0xa6, 0x37, 0xb4, 0x42, 0x4c, 0xbf, 0xe3, 0x04, 0xeb, 0x28, 0xd1, + 0xaf, 0x3c, 0xfb, 0xf0, 0xbb, 0x46, 0x4c, 0xdb, 0xb4, 0x59, 0xbb, 0xf7, 0x1f, 0x6b, 0x55, 0xbf, + 0x94, 0x60, 0xb0, 0x40, 0xcc, 0xeb, 0x55, 0x43, 0x73, 0xd1, 0xfb, 0x7b, 0x18, 0x39, 0xf2, 0x59, + 0xe8, 0xba, 0xe1, 0xd8, 0x95, 0x8c, 0x34, 0x2d, 0x65, 0x7b, 0xd7, 0x33, 0x3f, 0x7d, 0xb7, 0x38, + 0xe2, 0x0b, 0x5a, 0x33, 0x0c, 0x07, 0x11, 0xb2, 0xe9, 0x3a, 0x16, 0x36, 0x8b, 0x14, 0x25, 0xaf, + 0x40, 0x2f, 0x46, 0x7b, 0x25, 0xdb, 0x1b, 0x9a, 0xe9, 0x4c, 0x19, 0xd2, 0x83, 0xd1, 0x1e, 0x9d, + 0x64, 0xf5, 0xf4, 0xbd, 0x47, 0x53, 0x1d, 0x7f, 0x3f, 0x9a, 0xea, 0xb8, 0xfb, 0xf2, 0xf1, 0x3c, + 0x95, 0x74, 0xff, 0xe5, 0xe3, 0xf9, 0x21, 0x6a, 0x8c, 0x90, 0x32, 0x6a, 0x06, 0x46, 0xa3, 0xea, + 0x15, 0x11, 0xa9, 0xda, 0x98, 0x20, 0xf5, 0x47, 0x09, 0x32, 0x41, 0xd7, 0x9a, 0xeb, 0x22, 0xe2, + 0x22, 0xa7, 0xa0, 0x61, 0xcd, 0x6c, 0x99, 0xc3, 0xbb, 0x30, 0xe2, 0x71, 0xd0, 0x7c, 0x21, 0xa5, + 0x0a, 0x93, 0x92, 0x4a, 0x47, 0xc6, 0x68, 0x2f, 0x36, 0xf3, 0xea, 0x39, 0x2e, 0x31, 0x25, 0x44, + 0x2c, 0x36, 0x42, 0x55, 0x61, 0x5a, 0xc4, 0x83, 0x4f, 0xf6, 0x9a, 0x7d, 0x13, 0xe1, 0x4b, 0x36, + 0x76, 0x1d, 0xbb, 0x5c, 0x6e, 0x97, 0xac, 0xeb, 0x09, 0x29, 0xe9, 0x81, 0x94, 0xa6, 0xc8, 0xc6, + 0x66, 0x6e, 0x82, 0x6c, 0x6c, 0x44, 0x84, 0x6c, 0xac, 0x2f, 0x20, 0xfb, 0x95, 0x04, 0x47, 0x03, + 0xd0, 0x55, 0x6d, 0x87, 0xb4, 0xcc, 0xf1, 0x2d, 0x00, 0x8f, 0x63, 0x95, 0x8e, 0x4d, 0x65, 0xe6, + 0x39, 0x30, 0x9b, 0x66, 0x75, 0x8e, 0x4b, 0x68, 0x38, 0x44, 0x88, 0x01, 0xd5, 0x13, 0x30, 0x16, + 0x53, 0x31, 0x50, 0xff, 0x06, 0x8d, 0xa8, 0x35, 0x5d, 0x47, 0x55, 0xb7, 0x8d, 0x88, 0x4a, 0x0c, + 0x8d, 0x90, 0x54, 0x3f, 0x34, 0x42, 0x2d, 0x81, 0x06, 0xf7, 0x24, 0x18, 0x2e, 0x10, 0xf3, 0x1d, + 0xac, 0x6d, 0x95, 0x03, 0x97, 0x6a, 0xd1, 0x84, 0x0a, 0xf4, 0xd4, 0xe2, 0x81, 0x19, 0xb0, 0x18, + 0x7c, 0xaf, 0x9e, 0xe1, 0x6a, 0x78, 0x8c, 0x6a, 0x18, 0x9d, 0x54, 0x1d, 0x87, 0x13, 0x0d, 0x9a, + 0x04, 0x7a, 0xde, 0x97, 0x40, 0x2e, 0x10, 0x73, 0xc3, 0x22, 0xaf, 0x49, 0xd1, 0x79, 0xae, 0xa2, + 0x23, 0x54, 0xd1, 0xd8, 0xac, 0xea, 0x49, 0x50, 0x1a, 0x75, 0x09, 0x54, 0xbd, 0x4d, 0x79, 0xd0, + 0x95, 0x5e, 0xdf, 0x71, 0xb0, 0x85, 0xcd, 0x35, 0x6c, 0x14, 0x2c, 0xec, 0x5a, 0xd8, 0x6c, 0x71, + 0x7d, 0x97, 0xb8, 0x4a, 0x8d, 0x53, 0xa5, 0xf8, 0x13, 0xa8, 0xa7, 0x60, 0x46, 0x38, 0x7b, 0xa0, + 0xe2, 0x1d, 0x09, 0xc6, 0x3d, 0x9f, 0xc4, 0xd5, 0x57, 0xa1, 0xe5, 0x32, 0x57, 0xcb, 0x09, 0x16, + 0x09, 0x82, 0x29, 0xd4, 0x59, 0x38, 0x95, 0xa0, 0x41, 0xa0, 0xe9, 0x03, 0x89, 0xe2, 0x28, 0x9f, + 0x4d, 0x84, 0x0d, 0x86, 0x2a, 0x22, 0x1d, 0x59, 0xbb, 0x16, 0x36, 0x0b, 0x88, 0x10, 0xcd, 0x44, + 0xa4, 0x45, 0x8d, 0x2f, 0x70, 0x35, 0x9e, 0xad, 0xdb, 0x35, 0x61, 0x2a, 0x75, 0x11, 0x16, 0x9a, + 0xd0, 0x28, 0x60, 0xf0, 0x50, 0x82, 0xd9, 0x3a, 0xd3, 0x57, 0xc7, 0xe1, 0x22, 0x97, 0xc3, 0x5c, + 0xd8, 0xea, 0x49, 0x2c, 0xf2, 0xb0, 0xd8, 0x94, 0x56, 0x01, 0x8f, 0xaf, 0x7d, 0x9f, 0xa1, 0x79, + 0xac, 0xa0, 0xed, 0xfb, 0x80, 0x75, 0xdb, 0x38, 0xd8, 0xb4, 0x6e, 0xa1, 0x16, 0x43, 0x71, 0x06, + 0xfa, 0x2b, 0x4c, 0x40, 0x89, 0x58, 0xb7, 0x10, 0x0d, 0xc7, 0xae, 0x62, 0x9f, 0xdf, 0xe6, 0x09, + 0x4c, 0x76, 0x2b, 0x81, 0x16, 0x35, 0xb7, 0x12, 0x74, 0x07, 0x64, 0xfe, 0x94, 0x60, 0xa2, 0x40, + 0xcc, 0x4d, 0xe4, 0x16, 0xb4, 0x7d, 0xcf, 0xfb, 0xd6, 0x2a, 0xf6, 0x0e, 0x76, 0xaf, 0x22, 0xc7, + 0x1f, 0xd1, 0x22, 0x9d, 0x29, 0xe8, 0x2b, 0xdb, 0xba, 0x56, 0x66, 0x7b, 0xa5, 0x9f, 0x5c, 0x80, + 0x36, 0xd1, 0xad, 0x4b, 0x5e, 0x81, 0xc3, 0x1a, 0x9d, 0x22, 0x73, 0x88, 0x0a, 0x9c, 0x78, 0xf2, + 0x6c, 0xaa, 0xe3, 0xf7, 0x67, 0x53, 0xc7, 0x99, 0x50, 0x62, 0xdc, 0xcc, 0x59, 0x76, 0xbe, 0xa2, + 0xb9, 0xdb, 0xb9, 0x2b, 0xd8, 0x2d, 0xfa, 0xe0, 0xd5, 0x15, 0xae, 0x0d, 0xa6, 0xa8, 0x0d, 0xc4, + 0xca, 0xab, 0x73, 0xd4, 0xe5, 0xc4, 0x80, 0xc0, 0x0e, 0x9f, 0x75, 0xd2, 0xf4, 0xbf, 0x81, 0xaa, + 0x36, 0xb1, 0xdc, 0xcb, 0xb6, 0xe3, 0xa1, 0x5b, 0x2e, 0xeb, 0x6a, 0xd4, 0x3a, 0x5b, 0xa0, 0x26, + 0x2f, 0x82, 0x6c, 0x20, 0xe2, 0x5a, 0x58, 0x73, 0x2d, 0x1b, 0x97, 0x0c, 0xbb, 0xa2, 0x59, 0x98, + 0x5a, 0x67, 0xa0, 0x38, 0x1c, 0xea, 0xd9, 0xa0, 0x1d, 0xf2, 0x2c, 0x0c, 0x56, 0x2c, 0xec, 0x96, + 0x1c, 0xa4, 0x5b, 0x55, 0x0b, 0x61, 0x37, 0xd3, 0x35, 0x2d, 0x65, 0xfb, 0x8b, 0x03, 0x5e, 0x6b, + 0xb1, 0xd6, 0x28, 0x4f, 0x00, 0x6c, 0xed, 0x38, 0xd8, 0x5f, 0x87, 0x6e, 0xba, 0x0e, 0xbd, 0x5e, + 0x0b, 0x5d, 0x86, 0xc4, 0xed, 0x28, 0x6a, 0x04, 0x75, 0x89, 0xa6, 0xf1, 0x68, 0x63, 0xcd, 0x6e, + 0xf2, 0x08, 0x74, 0x63, 0x1b, 0xeb, 0x88, 0x9a, 0xa8, 0xab, 0xc8, 0x3e, 0xd4, 0x3f, 0x3a, 0x69, + 0x88, 0x44, 0xc7, 0x7c, 0x60, 0xb9, 0xdb, 0x97, 0xb4, 0x36, 0xaa, 0xaf, 0x37, 0xc8, 0xae, 0xf1, + 0x49, 0x75, 0xca, 0x37, 0x73, 0x98, 0x4a, 0x0a, 0x4f, 0xca, 0x0c, 0x91, 0x18, 0xda, 0x22, 0xeb, + 0xa9, 0x17, 0x68, 0x68, 0x8b, 0xba, 0x53, 0x96, 0xe6, 0x87, 0x4e, 0x5a, 0x15, 0x17, 0x51, 0xb5, + 0xac, 0xe9, 0xe8, 0x5f, 0xf9, 0xfb, 0x19, 0x18, 0xb2, 0x1d, 0xcb, 0xb4, 0xb0, 0x56, 0x2e, 0xf9, + 0xf9, 0x8a, 0xae, 0x50, 0x7f, 0xf1, 0x68, 0xad, 0xbd, 0x96, 0x44, 0x96, 0x60, 0x24, 0x80, 0xb2, + 0x4a, 0x83, 0x5a, 0x81, 0xae, 0x46, 0x7f, 0xf1, 0x58, 0xad, 0x6f, 0xad, 0xde, 0x25, 0xff, 0x1f, + 0x46, 0xbd, 0x7a, 0x94, 0x63, 0x4d, 0xb6, 0x2e, 0x5e, 0x45, 0xbe, 0x11, 0x37, 0xa8, 0x7c, 0x16, + 0xbc, 0x9a, 0xbb, 0x14, 0x5b, 0xc9, 0x6e, 0x3a, 0x62, 0x08, 0xa3, 0xbd, 0x42, 0x78, 0x31, 0x13, + 0x6b, 0x71, 0xae, 0x85, 0xfc, 0x5a, 0x9c, 0xdb, 0x17, 0xe4, 0x92, 0x6f, 0x58, 0x29, 0xc9, 0x76, + 0x10, 0xd4, 0x5e, 0x1e, 0xcd, 0xc0, 0x91, 0xa8, 0x49, 0x6b, 0x9f, 0xf2, 0x34, 0xf4, 0x35, 0x5a, + 0x30, 0xdc, 0x94, 0x18, 0xdb, 0x51, 0xa5, 0xd4, 0x15, 0x1a, 0xdb, 0xd1, 0xc6, 0xc0, 0x81, 0x32, + 0x70, 0x84, 0xec, 0xe8, 0x3a, 0x22, 0x84, 0x2a, 0xdd, 0x53, 0xac, 0x7d, 0xaa, 0xbf, 0xb0, 0x13, + 0xb0, 0xb7, 0x5b, 0xb6, 0x47, 0x8f, 0x1f, 0x9b, 0x9d, 0xa2, 0xd8, 0x3c, 0x09, 0xbd, 0xf5, 0xc5, + 0x64, 0x8c, 0xeb, 0x0d, 0xe1, 0x2d, 0x74, 0xcb, 0x36, 0x0e, 0x7c, 0xff, 0xa8, 0x6d, 0xa1, 0xde, + 0x96, 0x97, 0x78, 0x3e, 0x08, 0xb1, 0x50, 0x73, 0xf4, 0x7c, 0x10, 0x6a, 0x49, 0x89, 0xa6, 0xcf, + 0x59, 0x34, 0x85, 0x06, 0xb4, 0x9d, 0xe5, 0xfe, 0x63, 0x93, 0x08, 0x32, 0x55, 0xb7, 0x28, 0x53, + 0x25, 0x85, 0x0a, 0x97, 0xbe, 0xfa, 0x36, 0x0d, 0x15, 0x6e, 0x5f, 0x8a, 0x55, 0xbf, 0xed, 0xf4, + 0x03, 0x88, 0x46, 0x59, 0x7b, 0x1e, 0xf6, 0x7a, 0x93, 0x53, 0x16, 0x86, 0x68, 0x9a, 0x69, 0xb4, + 0xf1, 0xa0, 0x97, 0x64, 0x42, 0x66, 0x16, 0xa7, 0xb1, 0x6e, 0x71, 0x1a, 0x4b, 0x09, 0xe1, 0xb0, + 0x59, 0xfc, 0xd3, 0x62, 0xb4, 0xb1, 0x5e, 0xd6, 0x84, 0x6b, 0xd5, 0x4d, 0xcb, 0xc4, 0x9a, 0xbb, + 0xe3, 0xa0, 0x6b, 0xdb, 0x0e, 0x22, 0xdb, 0x76, 0xd9, 0x68, 0xd1, 0xa6, 0xa3, 0x91, 0x8d, 0x78, + 0x20, 0x28, 0xce, 0xd2, 0x0b, 0xd4, 0xc6, 0xa9, 0x23, 0x05, 0x6a, 0x63, 0x77, 0xc0, 0xe0, 0x67, + 0x09, 0x86, 0x0a, 0xc4, 0x7c, 0xcf, 0xc2, 0x37, 0xe9, 0x0e, 0x7b, 0x55, 0xb3, 0x5a, 0x8d, 0xac, + 0x53, 0x30, 0xe0, 0xa0, 0x8a, 0xed, 0xa2, 0x68, 0x50, 0xf5, 0xb3, 0x46, 0x3f, 0x9e, 0x66, 0xc0, + 0xff, 0xf6, 0x77, 0x76, 0x3f, 0xaf, 0xb2, 0x36, 0xb6, 0xb7, 0xc7, 0x6a, 0xdb, 0xae, 0x78, 0x6d, + 0xbb, 0x9a, 0xe5, 0xda, 0x41, 0xa6, 0x76, 0x88, 0x10, 0x50, 0x15, 0x9a, 0x36, 0x22, 0x6d, 0x01, + 0xe3, 0x5f, 0xd9, 0x09, 0xff, 0x3a, 0x2e, 0xbf, 0x09, 0x9c, 0x93, 0xae, 0x0b, 0x62, 0x14, 0xfc, + 0xeb, 0x82, 0x58, 0x6b, 0xc0, 0xfb, 0x7b, 0x89, 0x76, 0xaf, 0x19, 0x46, 0xb1, 0xae, 0x80, 0xe7, + 0xd0, 0x08, 0xb7, 0x7e, 0x3d, 0x39, 0x0e, 0xbd, 0x8c, 0x78, 0xc9, 0x32, 0x7c, 0xee, 0x3d, 0xac, + 0xe1, 0x8a, 0xe1, 0x6d, 0x6c, 0x1a, 0x1b, 0xe3, 0x53, 0xae, 0x7d, 0xae, 0x9e, 0xe7, 0xb2, 0x39, + 0xc9, 0xee, 0x91, 0xf8, 0x8a, 0xa9, 0xff, 0x03, 0x55, 0xac, 0x76, 0xf8, 0x82, 0x6e, 0x82, 0xc6, + 0x69, 0xc5, 0xde, 0x45, 0xaf, 0x99, 0x60, 0xe2, 0x69, 0x49, 0xac, 0x81, 0x7f, 0x5a, 0x12, 0x03, + 0x6a, 0x64, 0xce, 0x7f, 0x3a, 0x0a, 0x87, 0x0a, 0xc4, 0x94, 0xaf, 0x43, 0x5f, 0xf8, 0xce, 0x6e, + 0x32, 0x17, 0xbd, 0x86, 0xcf, 0x45, 0xef, 0xda, 0x94, 0xd3, 0xc9, 0xfd, 0xc1, 0xae, 0x70, 0x00, + 0x63, 0x22, 0x2f, 0x98, 0xe7, 0x89, 0xe0, 0x63, 0x95, 0xf3, 0xcd, 0x63, 0x83, 0xa9, 0x3f, 0x81, + 0xc1, 0x58, 0x4d, 0x3c, 0xc3, 0x91, 0x12, 0x85, 0x28, 0x67, 0x52, 0x21, 0x81, 0xfc, 0xdb, 0x90, + 0x11, 0x9e, 0x8a, 0x16, 0x52, 0xc5, 0xd4, 0xc1, 0xca, 0x72, 0x0b, 0xe0, 0x60, 0x76, 0x0d, 0x8e, + 0xc6, 0x2f, 0x0e, 0x55, 0x9e, 0x9c, 0x28, 0x46, 0x99, 0x4f, 0xc7, 0x84, 0x0d, 0x18, 0xbb, 0x43, + 0xe5, 0x19, 0x30, 0x0a, 0xe1, 0x1a, 0x90, 0x7f, 0xff, 0x29, 0x7f, 0x0c, 0x03, 0xd1, 0xbd, 0x60, + 0x9a, 0x33, 0x36, 0x82, 0x50, 0xb2, 0x69, 0x88, 0x40, 0xf8, 0x2e, 0x8c, 0x0a, 0xae, 0x2b, 0x79, + 0x1a, 0xf2, 0xa1, 0xca, 0x52, 0xd3, 0xd0, 0x60, 0xde, 0x87, 0x12, 0x4c, 0xa7, 0xde, 0xec, 0x2d, + 0x8b, 0xe4, 0x26, 0x0c, 0x52, 0x2e, 0xb4, 0x31, 0x28, 0xbc, 0x96, 0xb1, 0x43, 0x0c, 0x6f, 0x2d, + 0xa3, 0x10, 0xee, 0x5a, 0x0a, 0x0e, 0x18, 0x77, 0x25, 0x50, 0x12, 0x12, 0xe2, 0x22, 0x57, 0x92, + 0x08, 0xae, 0xac, 0xb4, 0x04, 0x0f, 0x94, 0x20, 0x70, 0x9c, 0x7f, 0x18, 0xce, 0x72, 0xe5, 0x71, + 0x90, 0xca, 0xb9, 0x66, 0x91, 0x51, 0xcb, 0x46, 0xaa, 0xdb, 0x19, 0xb1, 0x8c, 0x64, 0xcb, 0xf2, + 0xea, 0x3e, 0x2f, 0x31, 0x87, 0x0f, 0x67, 0xbc, 0xc4, 0x1c, 0xea, 0xe7, 0x26, 0x66, 0xde, 0x21, + 0x88, 0xc0, 0x71, 0xfe, 0x51, 0x27, 0x9b, 0x2c, 0x20, 0x94, 0xb7, 0xce, 0x35, 0x8b, 0x0c, 0x27, + 0xad, 0x78, 0x2d, 0xc4, 0x4b, 0x5a, 0x31, 0x0c, 0x37, 0x69, 0x09, 0x4a, 0x0f, 0x2f, 0x2b, 0x0b, + 0x9f, 0x00, 0x16, 0xb8, 0x72, 0xf8, 0x60, 0x6e, 0x56, 0x4e, 0xbb, 0xda, 0x97, 0xbf, 0x90, 0x40, + 0x6d, 0xe2, 0x56, 0x7c, 0x45, 0x2c, 0x3b, 0x29, 0x03, 0x5c, 0x6c, 0x6b, 0x58, 0xd8, 0x93, 0xc2, + 0x0f, 0xdd, 0x3c, 0x4f, 0x0a, 0xf5, 0x73, 0x3d, 0x89, 0xf3, 0x12, 0xed, 0x79, 0x12, 0xff, 0x15, + 0x3a, 0x2b, 0x14, 0x10, 0x43, 0x72, 0x3d, 0x29, 0xf1, 0x45, 0xb8, 0x3e, 0x69, 0xfc, 0x35, 0x58, + 0x3c, 0x69, 0x0c, 0x99, 0x30, 0xa9, 0xe0, 0x65, 0x56, 0xfe, 0x10, 0xfa, 0x23, 0xaf, 0xb2, 0x53, + 0x42, 0x09, 0x0c, 0xa0, 0xcc, 0xa5, 0x00, 0x22, 0x5e, 0x2b, 0x7a, 0x84, 0x58, 0x10, 0x0a, 0x69, + 0x04, 0xf3, 0xbd, 0x36, 0xe5, 0xe5, 0x80, 0x26, 0xef, 0x84, 0x67, 0x83, 0x45, 0x6e, 0x9c, 0x8b, + 0xe0, 0xdc, 0xe4, 0x9d, 0x7e, 0x6d, 0x5f, 0x37, 0x01, 0xe7, 0x6c, 0x2b, 0x36, 0x41, 0x23, 0x38, + 0xc1, 0x04, 0xe2, 0xb3, 0xa9, 0xd2, 0x7d, 0xe7, 0xe5, 0xe3, 0x79, 0x69, 0xfd, 0xf2, 0x93, 0xe7, + 0x93, 0xd2, 0xd3, 0xe7, 0x93, 0xd2, 0x5f, 0xcf, 0x27, 0xa5, 0x07, 0x2f, 0x26, 0x3b, 0x9e, 0xbe, + 0x98, 0xec, 0xf8, 0xed, 0xc5, 0x64, 0xc7, 0x47, 0x67, 0x4d, 0xcb, 0xdd, 0xde, 0xd9, 0xca, 0xe9, + 0x76, 0x25, 0xcf, 0xe4, 0xdf, 0xb0, 0x70, 0x1e, 0xdb, 0x5b, 0x65, 0xb4, 0x48, 0x8b, 0xf1, 0x7d, + 0xf6, 0x53, 0x16, 0xf7, 0xa0, 0x8a, 0xc8, 0xd6, 0x61, 0xfa, 0xf3, 0x92, 0xe5, 0x7f, 0x02, 0x00, + 0x00, 0xff, 0xff, 0xa4, 0xc2, 0x10, 0xea, 0xe6, 0x22, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used.