From 4376ea183f5a0560610de78f0fddd8e0e1f97032 Mon Sep 17 00:00:00 2001 From: Eric Warehime Date: Tue, 17 Sep 2024 08:46:52 -0700 Subject: [PATCH] chore: Move slinky protobuf to connect (#740) --- .github/actions/spelling/expect.txt | 4 + abci/ve/types/vote_extensions.pb.go | 45 +- api/connect/abci/v2/vote_extensions.pulsar.go | 810 +++ .../marketmap/module/v2/module.pulsar.go | 719 +++ api/connect/marketmap/v2/genesis.pulsar.go | 756 +++ api/connect/marketmap/v2/market.pulsar.go | 3046 +++++++++ api/connect/marketmap/v2/params.pulsar.go | 708 +++ api/connect/marketmap/v2/query.pulsar.go | 3913 ++++++++++++ api/connect/marketmap/v2/query_grpc.pb.go | 251 + api/connect/marketmap/v2/tx.pulsar.go | 5563 +++++++++++++++++ api/connect/marketmap/v2/tx_grpc.pb.go | 295 + api/connect/oracle/module/v2/module.pulsar.go | 580 ++ api/connect/oracle/v2/genesis.pulsar.go | 2670 ++++++++ api/connect/oracle/v2/query.pulsar.go | 4471 +++++++++++++ api/connect/oracle/v2/query_grpc.pb.go | 251 + api/connect/oracle/v2/tx.pulsar.go | 2184 +++++++ api/connect/oracle/v2/tx_grpc.pb.go | 175 + api/connect/types/v2/currency_pair.pulsar.go | 646 ++ pkg/types/currency_pair.pb.go | 38 +- proto/connect/abci/v2/vote_extensions.proto | 12 + .../connect/marketmap/module/v2/module.proto | 21 + proto/connect/marketmap/v2/genesis.proto | 23 + proto/connect/marketmap/v2/market.proto | 84 + proto/connect/marketmap/v2/params.proto | 15 + proto/connect/marketmap/v2/query.proto | 91 + proto/connect/marketmap/v2/tx.proto | 136 + proto/connect/oracle/module/v2/module.proto | 16 + proto/connect/oracle/v2/genesis.proto | 71 + proto/connect/oracle/v2/query.proto | 96 + proto/connect/oracle/v2/tx.proto | 71 + proto/connect/service/v2/oracle.proto | 70 + proto/connect/types/v2/currency_pair.proto | 16 + scripts/protocgen-pulsar.sh | 10 +- scripts/protocgen.sh | 2 +- service/servers/oracle/server_test.go | 2 +- service/servers/oracle/types/oracle.pb.go | 120 +- service/servers/oracle/types/oracle.pb.gw.go | 203 +- tests/integration/slinky_setup.go | 2 +- tests/integration/slinky_suite.go | 2 +- x/marketmap/types/genesis.pb.go | 49 +- x/marketmap/types/market.pb.go | 96 +- x/marketmap/types/params.pb.go | 38 +- x/marketmap/types/query.pb.go | 138 +- x/marketmap/types/query.pb.gw.go | 288 +- x/marketmap/types/tx.pb.go | 168 +- x/oracle/client/cli/query.go | 2 +- x/oracle/keeper/grpc_query.go | 8 +- x/oracle/keeper/grpc_query_test.go | 26 +- x/oracle/types/genesis.pb.go | 88 +- x/oracle/types/query.pb.go | 194 +- x/oracle/types/query.pb.gw.go | 306 +- x/oracle/types/tx.pb.go | 101 +- 52 files changed, 28344 insertions(+), 1346 deletions(-) create mode 100644 api/connect/abci/v2/vote_extensions.pulsar.go create mode 100644 api/connect/marketmap/module/v2/module.pulsar.go create mode 100644 api/connect/marketmap/v2/genesis.pulsar.go create mode 100644 api/connect/marketmap/v2/market.pulsar.go create mode 100644 api/connect/marketmap/v2/params.pulsar.go create mode 100644 api/connect/marketmap/v2/query.pulsar.go create mode 100644 api/connect/marketmap/v2/query_grpc.pb.go create mode 100644 api/connect/marketmap/v2/tx.pulsar.go create mode 100644 api/connect/marketmap/v2/tx_grpc.pb.go create mode 100644 api/connect/oracle/module/v2/module.pulsar.go create mode 100644 api/connect/oracle/v2/genesis.pulsar.go create mode 100644 api/connect/oracle/v2/query.pulsar.go create mode 100644 api/connect/oracle/v2/query_grpc.pb.go create mode 100644 api/connect/oracle/v2/tx.pulsar.go create mode 100644 api/connect/oracle/v2/tx_grpc.pb.go create mode 100644 api/connect/types/v2/currency_pair.pulsar.go create mode 100644 proto/connect/abci/v2/vote_extensions.proto create mode 100644 proto/connect/marketmap/module/v2/module.proto create mode 100644 proto/connect/marketmap/v2/genesis.proto create mode 100644 proto/connect/marketmap/v2/market.proto create mode 100644 proto/connect/marketmap/v2/params.proto create mode 100644 proto/connect/marketmap/v2/query.proto create mode 100644 proto/connect/marketmap/v2/tx.proto create mode 100644 proto/connect/oracle/module/v2/module.proto create mode 100644 proto/connect/oracle/v2/genesis.proto create mode 100644 proto/connect/oracle/v2/query.proto create mode 100644 proto/connect/oracle/v2/tx.proto create mode 100644 proto/connect/service/v2/oracle.proto create mode 100644 proto/connect/types/v2/currency_pair.proto diff --git a/.github/actions/spelling/expect.txt b/.github/actions/spelling/expect.txt index f800b0436..a715149ba 100644 --- a/.github/actions/spelling/expect.txt +++ b/.github/actions/spelling/expect.txt @@ -1,4 +1,5 @@ aab +AABB aadb AAQMb aarch @@ -98,6 +99,7 @@ bto bufbuild cca ccc +ccd Ccjku ccv ccvtypes @@ -186,6 +188,7 @@ datacenters datadog datasources dbddb +dbe dbf dbm dcdbc @@ -217,6 +220,7 @@ dydxprotocol dydxtypes dylib EAB +eaa ece ecfc eci diff --git a/abci/ve/types/vote_extensions.pb.go b/abci/ve/types/vote_extensions.pb.go index f902bd440..e1ca4dbf1 100644 --- a/abci/ve/types/vote_extensions.pb.go +++ b/abci/ve/types/vote_extensions.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: slinky/abci/v1/vote_extensions.proto +// source: connect/abci/v2/vote_extensions.proto package types @@ -34,7 +34,7 @@ func (m *OracleVoteExtension) Reset() { *m = OracleVoteExtension{} } func (m *OracleVoteExtension) String() string { return proto.CompactTextString(m) } func (*OracleVoteExtension) ProtoMessage() {} func (*OracleVoteExtension) Descriptor() ([]byte, []int) { - return fileDescriptor_cca9d70763a0957a, []int{0} + return fileDescriptor_185ec0708d9f4b6a, []int{0} } func (m *OracleVoteExtension) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -71,32 +71,31 @@ func (m *OracleVoteExtension) GetPrices() map[uint64][]byte { } func init() { - proto.RegisterType((*OracleVoteExtension)(nil), "slinky.abci.v1.OracleVoteExtension") - proto.RegisterMapType((map[uint64][]byte)(nil), "slinky.abci.v1.OracleVoteExtension.PricesEntry") + proto.RegisterType((*OracleVoteExtension)(nil), "connect.abci.v2.OracleVoteExtension") + proto.RegisterMapType((map[uint64][]byte)(nil), "connect.abci.v2.OracleVoteExtension.PricesEntry") } func init() { - proto.RegisterFile("slinky/abci/v1/vote_extensions.proto", fileDescriptor_cca9d70763a0957a) + proto.RegisterFile("connect/abci/v2/vote_extensions.proto", fileDescriptor_185ec0708d9f4b6a) } -var fileDescriptor_cca9d70763a0957a = []byte{ - // 244 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x29, 0xce, 0xc9, 0xcc, - 0xcb, 0xae, 0xd4, 0x4f, 0x4c, 0x4a, 0xce, 0xd4, 0x2f, 0x33, 0xd4, 0x2f, 0xcb, 0x2f, 0x49, 0x8d, - 0x4f, 0xad, 0x28, 0x49, 0xcd, 0x2b, 0xce, 0xcc, 0xcf, 0x2b, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, - 0x17, 0xe2, 0x83, 0xa8, 0xd2, 0x03, 0xa9, 0xd2, 0x2b, 0x33, 0x54, 0x9a, 0xc9, 0xc8, 0x25, 0xec, - 0x5f, 0x94, 0x98, 0x9c, 0x93, 0x1a, 0x96, 0x5f, 0x92, 0xea, 0x0a, 0x53, 0x2e, 0xe4, 0xce, 0xc5, - 0x56, 0x50, 0x94, 0x99, 0x9c, 0x5a, 0x2c, 0xc1, 0xa8, 0xc0, 0xac, 0xc1, 0x6d, 0xa4, 0xaf, 0x87, - 0xaa, 0x51, 0x0f, 0x8b, 0x26, 0xbd, 0x00, 0xb0, 0x0e, 0xd7, 0xbc, 0x92, 0xa2, 0xca, 0x20, 0xa8, - 0x76, 0x29, 0x4b, 0x2e, 0x6e, 0x24, 0x61, 0x21, 0x01, 0x2e, 0xe6, 0xec, 0xd4, 0x4a, 0x09, 0x46, - 0x05, 0x46, 0x0d, 0x96, 0x20, 0x10, 0x53, 0x48, 0x84, 0x8b, 0xb5, 0x2c, 0x31, 0xa7, 0x34, 0x55, - 0x82, 0x49, 0x81, 0x51, 0x83, 0x27, 0x08, 0xc2, 0xb1, 0x62, 0xb2, 0x60, 0x74, 0x72, 0x3b, 0xf1, - 0x48, 0x8e, 0xf1, 0xc2, 0x23, 0x39, 0xc6, 0x07, 0x8f, 0xe4, 0x18, 0x27, 0x3c, 0x96, 0x63, 0xb8, - 0xf0, 0x58, 0x8e, 0xe1, 0xc6, 0x63, 0x39, 0x86, 0x28, 0x9d, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, - 0xbd, 0xe4, 0xfc, 0x5c, 0xfd, 0xe2, 0xec, 0xcc, 0x02, 0xdd, 0xdc, 0xd4, 0x32, 0xfd, 0xe4, 0xfc, - 0xbc, 0xbc, 0xd4, 0xe4, 0x12, 0xfd, 0x32, 0x23, 0x68, 0x18, 0xa4, 0xea, 0x97, 0x54, 0x16, 0xa4, - 0x16, 0x27, 0xb1, 0x81, 0xbd, 0x6e, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x84, 0xc4, 0x5c, 0xa6, - 0x22, 0x01, 0x00, 0x00, +var fileDescriptor_185ec0708d9f4b6a = []byte{ + // 240 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x4d, 0xce, 0xcf, 0xcb, + 0x4b, 0x4d, 0x2e, 0xd1, 0x4f, 0x4c, 0x4a, 0xce, 0xd4, 0x2f, 0x33, 0xd2, 0x2f, 0xcb, 0x2f, 0x49, + 0x8d, 0x4f, 0xad, 0x28, 0x49, 0xcd, 0x2b, 0xce, 0xcc, 0xcf, 0x2b, 0xd6, 0x2b, 0x28, 0xca, 0x2f, + 0xc9, 0x17, 0xe2, 0x87, 0x2a, 0xd3, 0x03, 0x29, 0xd3, 0x2b, 0x33, 0x52, 0x9a, 0xc5, 0xc8, 0x25, + 0xec, 0x5f, 0x94, 0x98, 0x9c, 0x93, 0x1a, 0x96, 0x5f, 0x92, 0xea, 0x0a, 0x53, 0x2f, 0xe4, 0xc1, + 0xc5, 0x56, 0x50, 0x94, 0x99, 0x9c, 0x5a, 0x2c, 0xc1, 0xa8, 0xc0, 0xac, 0xc1, 0x6d, 0x64, 0xa0, + 0x87, 0xa6, 0x53, 0x0f, 0x8b, 0x2e, 0xbd, 0x00, 0xb0, 0x16, 0xd7, 0xbc, 0x92, 0xa2, 0xca, 0x20, + 0xa8, 0x7e, 0x29, 0x4b, 0x2e, 0x6e, 0x24, 0x61, 0x21, 0x01, 0x2e, 0xe6, 0xec, 0xd4, 0x4a, 0x09, + 0x46, 0x05, 0x46, 0x0d, 0x96, 0x20, 0x10, 0x53, 0x48, 0x84, 0x8b, 0xb5, 0x2c, 0x31, 0xa7, 0x34, + 0x55, 0x82, 0x49, 0x81, 0x51, 0x83, 0x27, 0x08, 0xc2, 0xb1, 0x62, 0xb2, 0x60, 0x74, 0x72, 0x3b, + 0xf1, 0x48, 0x8e, 0xf1, 0xc2, 0x23, 0x39, 0xc6, 0x07, 0x8f, 0xe4, 0x18, 0x27, 0x3c, 0x96, 0x63, + 0xb8, 0xf0, 0x58, 0x8e, 0xe1, 0xc6, 0x63, 0x39, 0x86, 0x28, 0x9d, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, + 0x24, 0xbd, 0xe4, 0xfc, 0x5c, 0xfd, 0xe2, 0xec, 0xcc, 0x02, 0xdd, 0xdc, 0xd4, 0x32, 0x7d, 0x58, + 0x10, 0x94, 0x19, 0x41, 0x43, 0x21, 0x55, 0xbf, 0xa4, 0xb2, 0x20, 0xb5, 0x38, 0x89, 0x0d, 0xec, + 0x79, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0x8c, 0x31, 0x8c, 0x89, 0x25, 0x01, 0x00, 0x00, } func (m *OracleVoteExtension) Marshal() (dAtA []byte, err error) { diff --git a/api/connect/abci/v2/vote_extensions.pulsar.go b/api/connect/abci/v2/vote_extensions.pulsar.go new file mode 100644 index 000000000..2b8f53a2e --- /dev/null +++ b/api/connect/abci/v2/vote_extensions.pulsar.go @@ -0,0 +1,810 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package abciv2 + +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" + sort "sort" + sync "sync" +) + +var _ protoreflect.Map = (*_OracleVoteExtension_1_map)(nil) + +type _OracleVoteExtension_1_map struct { + m *map[uint64][]byte +} + +func (x *_OracleVoteExtension_1_map) Len() int { + if x.m == nil { + return 0 + } + return len(*x.m) +} + +func (x *_OracleVoteExtension_1_map) Range(f func(protoreflect.MapKey, protoreflect.Value) bool) { + if x.m == nil { + return + } + for k, v := range *x.m { + mapKey := (protoreflect.MapKey)(protoreflect.ValueOfUint64(k)) + mapValue := protoreflect.ValueOfBytes(v) + if !f(mapKey, mapValue) { + break + } + } +} + +func (x *_OracleVoteExtension_1_map) Has(key protoreflect.MapKey) bool { + if x.m == nil { + return false + } + keyUnwrapped := key.Uint() + concreteValue := keyUnwrapped + _, ok := (*x.m)[concreteValue] + return ok +} + +func (x *_OracleVoteExtension_1_map) Clear(key protoreflect.MapKey) { + if x.m == nil { + return + } + keyUnwrapped := key.Uint() + concreteKey := keyUnwrapped + delete(*x.m, concreteKey) +} + +func (x *_OracleVoteExtension_1_map) Get(key protoreflect.MapKey) protoreflect.Value { + if x.m == nil { + return protoreflect.Value{} + } + keyUnwrapped := key.Uint() + concreteKey := keyUnwrapped + v, ok := (*x.m)[concreteKey] + if !ok { + return protoreflect.Value{} + } + return protoreflect.ValueOfBytes(v) +} + +func (x *_OracleVoteExtension_1_map) Set(key protoreflect.MapKey, value protoreflect.Value) { + if !key.IsValid() || !value.IsValid() { + panic("invalid key or value provided") + } + keyUnwrapped := key.Uint() + concreteKey := keyUnwrapped + valueUnwrapped := value.Bytes() + concreteValue := valueUnwrapped + (*x.m)[concreteKey] = concreteValue +} + +func (x *_OracleVoteExtension_1_map) Mutable(key protoreflect.MapKey) protoreflect.Value { + panic("should not call Mutable on protoreflect.Map whose value is not of type protoreflect.Message") +} + +func (x *_OracleVoteExtension_1_map) NewValue() protoreflect.Value { + var v []byte + return protoreflect.ValueOfBytes(v) +} + +func (x *_OracleVoteExtension_1_map) IsValid() bool { + return x.m != nil +} + +var ( + md_OracleVoteExtension protoreflect.MessageDescriptor + fd_OracleVoteExtension_prices protoreflect.FieldDescriptor +) + +func init() { + file_connect_abci_v2_vote_extensions_proto_init() + md_OracleVoteExtension = File_connect_abci_v2_vote_extensions_proto.Messages().ByName("OracleVoteExtension") + fd_OracleVoteExtension_prices = md_OracleVoteExtension.Fields().ByName("prices") +} + +var _ protoreflect.Message = (*fastReflection_OracleVoteExtension)(nil) + +type fastReflection_OracleVoteExtension OracleVoteExtension + +func (x *OracleVoteExtension) ProtoReflect() protoreflect.Message { + return (*fastReflection_OracleVoteExtension)(x) +} + +func (x *OracleVoteExtension) slowProtoReflect() protoreflect.Message { + mi := &file_connect_abci_v2_vote_extensions_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_OracleVoteExtension_messageType fastReflection_OracleVoteExtension_messageType +var _ protoreflect.MessageType = fastReflection_OracleVoteExtension_messageType{} + +type fastReflection_OracleVoteExtension_messageType struct{} + +func (x fastReflection_OracleVoteExtension_messageType) Zero() protoreflect.Message { + return (*fastReflection_OracleVoteExtension)(nil) +} +func (x fastReflection_OracleVoteExtension_messageType) New() protoreflect.Message { + return new(fastReflection_OracleVoteExtension) +} +func (x fastReflection_OracleVoteExtension_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_OracleVoteExtension +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_OracleVoteExtension) Descriptor() protoreflect.MessageDescriptor { + return md_OracleVoteExtension +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_OracleVoteExtension) Type() protoreflect.MessageType { + return _fastReflection_OracleVoteExtension_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_OracleVoteExtension) New() protoreflect.Message { + return new(fastReflection_OracleVoteExtension) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_OracleVoteExtension) Interface() protoreflect.ProtoMessage { + return (*OracleVoteExtension)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_OracleVoteExtension) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.Prices) != 0 { + value := protoreflect.ValueOfMap(&_OracleVoteExtension_1_map{m: &x.Prices}) + if !f(fd_OracleVoteExtension_prices, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_OracleVoteExtension) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "connect.abci.v2.OracleVoteExtension.prices": + return len(x.Prices) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.abci.v2.OracleVoteExtension")) + } + panic(fmt.Errorf("message connect.abci.v2.OracleVoteExtension does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_OracleVoteExtension) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "connect.abci.v2.OracleVoteExtension.prices": + x.Prices = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.abci.v2.OracleVoteExtension")) + } + panic(fmt.Errorf("message connect.abci.v2.OracleVoteExtension does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_OracleVoteExtension) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "connect.abci.v2.OracleVoteExtension.prices": + if len(x.Prices) == 0 { + return protoreflect.ValueOfMap(&_OracleVoteExtension_1_map{}) + } + mapValue := &_OracleVoteExtension_1_map{m: &x.Prices} + return protoreflect.ValueOfMap(mapValue) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.abci.v2.OracleVoteExtension")) + } + panic(fmt.Errorf("message connect.abci.v2.OracleVoteExtension does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_OracleVoteExtension) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "connect.abci.v2.OracleVoteExtension.prices": + mv := value.Map() + cmv := mv.(*_OracleVoteExtension_1_map) + x.Prices = *cmv.m + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.abci.v2.OracleVoteExtension")) + } + panic(fmt.Errorf("message connect.abci.v2.OracleVoteExtension does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_OracleVoteExtension) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "connect.abci.v2.OracleVoteExtension.prices": + if x.Prices == nil { + x.Prices = make(map[uint64][]byte) + } + value := &_OracleVoteExtension_1_map{m: &x.Prices} + return protoreflect.ValueOfMap(value) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.abci.v2.OracleVoteExtension")) + } + panic(fmt.Errorf("message connect.abci.v2.OracleVoteExtension does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_OracleVoteExtension) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "connect.abci.v2.OracleVoteExtension.prices": + m := make(map[uint64][]byte) + return protoreflect.ValueOfMap(&_OracleVoteExtension_1_map{m: &m}) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.abci.v2.OracleVoteExtension")) + } + panic(fmt.Errorf("message connect.abci.v2.OracleVoteExtension does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_OracleVoteExtension) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in connect.abci.v2.OracleVoteExtension", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_OracleVoteExtension) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_OracleVoteExtension) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_OracleVoteExtension) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_OracleVoteExtension) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*OracleVoteExtension) + 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.Prices) > 0 { + SiZeMaP := func(k uint64, v []byte) { + l = 1 + len(v) + runtime.Sov(uint64(len(v))) + mapEntrySize := 1 + runtime.Sov(uint64(k)) + l + n += mapEntrySize + 1 + runtime.Sov(uint64(mapEntrySize)) + } + if options.Deterministic { + sortme := make([]uint64, 0, len(x.Prices)) + for k := range x.Prices { + sortme = append(sortme, k) + } + sort.Slice(sortme, func(i, j int) bool { + return sortme[i] < sortme[j] + }) + for _, k := range sortme { + v := x.Prices[k] + SiZeMaP(k, v) + } + } else { + for k, v := range x.Prices { + SiZeMaP(k, v) + } + } + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*OracleVoteExtension) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]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.Prices) > 0 { + MaRsHaLmAp := func(k uint64, v []byte) (protoiface.MarshalOutput, error) { + baseI := i + i -= len(v) + copy(dAtA[i:], v) + i = runtime.EncodeVarint(dAtA, i, uint64(len(v))) + i-- + dAtA[i] = 0x12 + i = runtime.EncodeVarint(dAtA, i, uint64(k)) + i-- + dAtA[i] = 0x8 + i = runtime.EncodeVarint(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0xa + return protoiface.MarshalOutput{}, nil + } + if options.Deterministic { + keysForPrices := make([]uint64, 0, len(x.Prices)) + for k := range x.Prices { + keysForPrices = append(keysForPrices, uint64(k)) + } + sort.Slice(keysForPrices, func(i, j int) bool { + return keysForPrices[i] < keysForPrices[j] + }) + for iNdEx := len(keysForPrices) - 1; iNdEx >= 0; iNdEx-- { + v := x.Prices[uint64(keysForPrices[iNdEx])] + out, err := MaRsHaLmAp(keysForPrices[iNdEx], v) + if err != nil { + return out, err + } + } + } else { + for k := range x.Prices { + v := x.Prices[k] + out, err := MaRsHaLmAp(k, v) + if err != nil { + return out, err + } + } + } + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*OracleVoteExtension) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: OracleVoteExtension: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: OracleVoteExtension: 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 Prices", 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.Prices == nil { + x.Prices = make(map[uint64][]byte) + } + var mapkey uint64 + var mapvalue []byte + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + } else if fieldNum == 2 { + var mapbyteLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapbyteLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intMapbyteLen := int(mapbyteLen) + if intMapbyteLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postbytesIndex := iNdEx + intMapbyteLen + if postbytesIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postbytesIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + mapvalue = make([]byte, mapbyteLen) + copy(mapvalue, dAtA[iNdEx:postbytesIndex]) + iNdEx = postbytesIndex + } else { + iNdEx = entryPreIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > postIndex { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + x.Prices[mapkey] = mapvalue + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.0 +// protoc (unknown) +// source: connect/abci/v2/vote_extensions.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) +) + +// OracleVoteExtension defines the vote extension structure for oracle prices. +type OracleVoteExtension struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Prices defines a map of id(CurrencyPair) -> price.Bytes() . i.e. 1 -> + // 0x123.. (bytes). Notice the `id` function is determined by the + // `CurrencyPairIDStrategy` used in the VoteExtensionHandler. + Prices map[uint64][]byte `protobuf:"bytes,1,rep,name=prices,proto3" json:"prices,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (x *OracleVoteExtension) Reset() { + *x = OracleVoteExtension{} + if protoimpl.UnsafeEnabled { + mi := &file_connect_abci_v2_vote_extensions_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *OracleVoteExtension) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OracleVoteExtension) ProtoMessage() {} + +// Deprecated: Use OracleVoteExtension.ProtoReflect.Descriptor instead. +func (*OracleVoteExtension) Descriptor() ([]byte, []int) { + return file_connect_abci_v2_vote_extensions_proto_rawDescGZIP(), []int{0} +} + +func (x *OracleVoteExtension) GetPrices() map[uint64][]byte { + if x != nil { + return x.Prices + } + return nil +} + +var File_connect_abci_v2_vote_extensions_proto protoreflect.FileDescriptor + +var file_connect_abci_v2_vote_extensions_proto_rawDesc = []byte{ + 0x0a, 0x25, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2f, 0x61, 0x62, 0x63, 0x69, 0x2f, 0x76, + 0x32, 0x2f, 0x76, 0x6f, 0x74, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, + 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, + 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 0x22, 0x9a, 0x01, 0x0a, 0x13, 0x4f, 0x72, 0x61, + 0x63, 0x6c, 0x65, 0x56, 0x6f, 0x74, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, + 0x12, 0x48, 0x0a, 0x06, 0x70, 0x72, 0x69, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x30, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, + 0x76, 0x32, 0x2e, 0x4f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x56, 0x6f, 0x74, 0x65, 0x45, 0x78, 0x74, + 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x50, 0x72, 0x69, 0x63, 0x65, 0x73, 0x45, 0x6e, 0x74, + 0x72, 0x79, 0x52, 0x06, 0x70, 0x72, 0x69, 0x63, 0x65, 0x73, 0x1a, 0x39, 0x0a, 0x0b, 0x50, 0x72, + 0x69, 0x63, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0xb1, 0x01, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, + 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 0x42, 0x13, 0x56, + 0x6f, 0x74, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x50, 0x72, 0x6f, + 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x27, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, + 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2f, 0x61, + 0x62, 0x63, 0x69, 0x2f, 0x76, 0x32, 0x3b, 0x61, 0x62, 0x63, 0x69, 0x76, 0x32, 0xa2, 0x02, 0x03, + 0x43, 0x41, 0x58, 0xaa, 0x02, 0x0f, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x41, 0x62, + 0x63, 0x69, 0x2e, 0x56, 0x32, 0xca, 0x02, 0x0f, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x5c, + 0x41, 0x62, 0x63, 0x69, 0x5c, 0x56, 0x32, 0xe2, 0x02, 0x1b, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, + 0x74, 0x5c, 0x41, 0x62, 0x63, 0x69, 0x5c, 0x56, 0x32, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x3a, + 0x3a, 0x41, 0x62, 0x63, 0x69, 0x3a, 0x3a, 0x56, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, +} + +var ( + file_connect_abci_v2_vote_extensions_proto_rawDescOnce sync.Once + file_connect_abci_v2_vote_extensions_proto_rawDescData = file_connect_abci_v2_vote_extensions_proto_rawDesc +) + +func file_connect_abci_v2_vote_extensions_proto_rawDescGZIP() []byte { + file_connect_abci_v2_vote_extensions_proto_rawDescOnce.Do(func() { + file_connect_abci_v2_vote_extensions_proto_rawDescData = protoimpl.X.CompressGZIP(file_connect_abci_v2_vote_extensions_proto_rawDescData) + }) + return file_connect_abci_v2_vote_extensions_proto_rawDescData +} + +var file_connect_abci_v2_vote_extensions_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_connect_abci_v2_vote_extensions_proto_goTypes = []interface{}{ + (*OracleVoteExtension)(nil), // 0: connect.abci.v2.OracleVoteExtension + nil, // 1: connect.abci.v2.OracleVoteExtension.PricesEntry +} +var file_connect_abci_v2_vote_extensions_proto_depIdxs = []int32{ + 1, // 0: connect.abci.v2.OracleVoteExtension.prices:type_name -> connect.abci.v2.OracleVoteExtension.PricesEntry + 1, // [1:1] is the sub-list for method output_type + 1, // [1:1] is the sub-list for method input_type + 1, // [1:1] is the sub-list for extension type_name + 1, // [1:1] is the sub-list for extension extendee + 0, // [0:1] is the sub-list for field type_name +} + +func init() { file_connect_abci_v2_vote_extensions_proto_init() } +func file_connect_abci_v2_vote_extensions_proto_init() { + if File_connect_abci_v2_vote_extensions_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_connect_abci_v2_vote_extensions_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OracleVoteExtension); 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_connect_abci_v2_vote_extensions_proto_rawDesc, + NumEnums: 0, + NumMessages: 2, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_connect_abci_v2_vote_extensions_proto_goTypes, + DependencyIndexes: file_connect_abci_v2_vote_extensions_proto_depIdxs, + MessageInfos: file_connect_abci_v2_vote_extensions_proto_msgTypes, + }.Build() + File_connect_abci_v2_vote_extensions_proto = out.File + file_connect_abci_v2_vote_extensions_proto_rawDesc = nil + file_connect_abci_v2_vote_extensions_proto_goTypes = nil + file_connect_abci_v2_vote_extensions_proto_depIdxs = nil +} diff --git a/api/connect/marketmap/module/v2/module.pulsar.go b/api/connect/marketmap/module/v2/module.pulsar.go new file mode 100644 index 000000000..bd7ab0c86 --- /dev/null +++ b/api/connect/marketmap/module/v2/module.pulsar.go @@ -0,0 +1,719 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package modulev2 + +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 _ protoreflect.List = (*_Module_2_list)(nil) + +type _Module_2_list struct { + list *[]string +} + +func (x *_Module_2_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_Module_2_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfString((*x.list)[i]) +} + +func (x *_Module_2_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.String() + concreteValue := valueUnwrapped + (*x.list)[i] = concreteValue +} + +func (x *_Module_2_list) Append(value protoreflect.Value) { + valueUnwrapped := value.String() + concreteValue := valueUnwrapped + *x.list = append(*x.list, concreteValue) +} + +func (x *_Module_2_list) AppendMutable() protoreflect.Value { + panic(fmt.Errorf("AppendMutable can not be called on message Module at list field HooksOrder as it is not of Message kind")) +} + +func (x *_Module_2_list) Truncate(n int) { + *x.list = (*x.list)[:n] +} + +func (x *_Module_2_list) NewElement() protoreflect.Value { + v := "" + return protoreflect.ValueOfString(v) +} + +func (x *_Module_2_list) IsValid() bool { + return x.list != nil +} + +var ( + md_Module protoreflect.MessageDescriptor + fd_Module_authority protoreflect.FieldDescriptor + fd_Module_hooks_order protoreflect.FieldDescriptor +) + +func init() { + file_connect_marketmap_module_v2_module_proto_init() + md_Module = File_connect_marketmap_module_v2_module_proto.Messages().ByName("Module") + fd_Module_authority = md_Module.Fields().ByName("authority") + fd_Module_hooks_order = md_Module.Fields().ByName("hooks_order") +} + +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_connect_marketmap_module_v2_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) { + if x.Authority != "" { + value := protoreflect.ValueOfString(x.Authority) + if !f(fd_Module_authority, value) { + return + } + } + if len(x.HooksOrder) != 0 { + value := protoreflect.ValueOfList(&_Module_2_list{list: &x.HooksOrder}) + if !f(fd_Module_hooks_order, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar 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() { + case "connect.marketmap.module.v2.Module.authority": + return x.Authority != "" + case "connect.marketmap.module.v2.Module.hooks_order": + return len(x.HooksOrder) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.module.v2.Module")) + } + panic(fmt.Errorf("message connect.marketmap.module.v2.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() { + case "connect.marketmap.module.v2.Module.authority": + x.Authority = "" + case "connect.marketmap.module.v2.Module.hooks_order": + x.HooksOrder = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.module.v2.Module")) + } + panic(fmt.Errorf("message connect.marketmap.module.v2.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() { + case "connect.marketmap.module.v2.Module.authority": + value := x.Authority + return protoreflect.ValueOfString(value) + case "connect.marketmap.module.v2.Module.hooks_order": + if len(x.HooksOrder) == 0 { + return protoreflect.ValueOfList(&_Module_2_list{}) + } + listValue := &_Module_2_list{list: &x.HooksOrder} + return protoreflect.ValueOfList(listValue) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.module.v2.Module")) + } + panic(fmt.Errorf("message connect.marketmap.module.v2.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() { + case "connect.marketmap.module.v2.Module.authority": + x.Authority = value.Interface().(string) + case "connect.marketmap.module.v2.Module.hooks_order": + lv := value.List() + clv := lv.(*_Module_2_list) + x.HooksOrder = *clv.list + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.module.v2.Module")) + } + panic(fmt.Errorf("message connect.marketmap.module.v2.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() { + case "connect.marketmap.module.v2.Module.hooks_order": + if x.HooksOrder == nil { + x.HooksOrder = []string{} + } + value := &_Module_2_list{list: &x.HooksOrder} + return protoreflect.ValueOfList(value) + case "connect.marketmap.module.v2.Module.authority": + panic(fmt.Errorf("field authority of message connect.marketmap.module.v2.Module is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.module.v2.Module")) + } + panic(fmt.Errorf("message connect.marketmap.module.v2.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() { + case "connect.marketmap.module.v2.Module.authority": + return protoreflect.ValueOfString("") + case "connect.marketmap.module.v2.Module.hooks_order": + list := []string{} + return protoreflect.ValueOfList(&_Module_2_list{list: &list}) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.module.v2.Module")) + } + panic(fmt.Errorf("message connect.marketmap.module.v2.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 connect.marketmap.module.v2.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 + l = len(x.Authority) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if len(x.HooksOrder) > 0 { + for _, s := range x.HooksOrder { + l = len(s) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*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 len(x.HooksOrder) > 0 { + for iNdEx := len(x.HooksOrder) - 1; iNdEx >= 0; iNdEx-- { + i -= len(x.HooksOrder[iNdEx]) + copy(dAtA[i:], x.HooksOrder[iNdEx]) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.HooksOrder[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if len(x.Authority) > 0 { + i -= len(x.Authority) + copy(dAtA[i:], x.Authority) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*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 { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Authority = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field HooksOrder", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.HooksOrder = append(x.HooksOrder, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.0 +// protoc (unknown) +// source: connect/marketmap/module/v2/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 builder module. +type Module struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Authority defines the custom module authority. If not set, defaults to the + // governance module. + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + // HooksOrder specifies the order of marketmap hooks and should be a list + // of module names which provide a marketmap hooks instance. If no order is + // provided, then hooks will be applied in alphabetical order of module names. + HooksOrder []string `protobuf:"bytes,2,rep,name=hooks_order,json=hooksOrder,proto3" json:"hooks_order,omitempty"` +} + +func (x *Module) Reset() { + *x = Module{} + if protoimpl.UnsafeEnabled { + mi := &file_connect_marketmap_module_v2_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_connect_marketmap_module_v2_module_proto_rawDescGZIP(), []int{0} +} + +func (x *Module) GetAuthority() string { + if x != nil { + return x.Authority + } + return "" +} + +func (x *Module) GetHooksOrder() []string { + if x != nil { + return x.HooksOrder + } + return nil +} + +var File_connect_marketmap_module_v2_module_proto protoreflect.FileDescriptor + +var file_connect_marketmap_module_v2_module_proto_rawDesc = []byte{ + 0x0a, 0x28, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2f, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, + 0x6d, 0x61, 0x70, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2f, 0x76, 0x32, 0x2f, 0x6d, 0x6f, + 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b, 0x63, 0x6f, 0x6e, 0x6e, + 0x65, 0x63, 0x74, 0x2e, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x2e, 0x6d, 0x6f, + 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x76, 0x32, 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, 0x7b, 0x0a, 0x06, 0x4d, 0x6f, 0x64, + 0x75, 0x6c, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, + 0x79, 0x12, 0x1f, 0x0a, 0x0b, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x5f, 0x6f, 0x72, 0x64, 0x65, 0x72, + 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x4f, 0x72, 0x64, + 0x65, 0x72, 0x3a, 0x32, 0xba, 0xc0, 0x96, 0xda, 0x01, 0x2c, 0x0a, 0x2a, 0x67, 0x69, 0x74, 0x68, + 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x6b, 0x69, 0x70, 0x2d, 0x6d, 0x65, 0x76, 0x2f, + 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2f, 0x76, 0x32, 0x2f, 0x78, 0x2f, 0x6d, 0x61, 0x72, + 0x6b, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x42, 0xf4, 0x01, 0x0a, 0x1f, 0x63, 0x6f, 0x6d, 0x2e, 0x63, + 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x6d, 0x61, 0x70, + 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x76, 0x32, 0x42, 0x0b, 0x4d, 0x6f, 0x64, 0x75, + 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x35, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, + 0x65, 0x63, 0x74, 0x2f, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x2f, 0x6d, 0x6f, + 0x64, 0x75, 0x6c, 0x65, 0x2f, 0x76, 0x32, 0x3b, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x76, 0x32, + 0xa2, 0x02, 0x03, 0x43, 0x4d, 0x4d, 0xaa, 0x02, 0x1b, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, + 0x2e, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x2e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, + 0x65, 0x2e, 0x56, 0x32, 0xca, 0x02, 0x1b, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x5c, 0x4d, + 0x61, 0x72, 0x6b, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x5c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5c, + 0x56, 0x32, 0xe2, 0x02, 0x27, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x5c, 0x4d, 0x61, 0x72, + 0x6b, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x5c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5c, 0x56, 0x32, + 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1e, 0x43, + 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x3a, 0x3a, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x6d, 0x61, + 0x70, 0x3a, 0x3a, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x3a, 0x3a, 0x56, 0x32, 0x62, 0x06, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_connect_marketmap_module_v2_module_proto_rawDescOnce sync.Once + file_connect_marketmap_module_v2_module_proto_rawDescData = file_connect_marketmap_module_v2_module_proto_rawDesc +) + +func file_connect_marketmap_module_v2_module_proto_rawDescGZIP() []byte { + file_connect_marketmap_module_v2_module_proto_rawDescOnce.Do(func() { + file_connect_marketmap_module_v2_module_proto_rawDescData = protoimpl.X.CompressGZIP(file_connect_marketmap_module_v2_module_proto_rawDescData) + }) + return file_connect_marketmap_module_v2_module_proto_rawDescData +} + +var file_connect_marketmap_module_v2_module_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_connect_marketmap_module_v2_module_proto_goTypes = []interface{}{ + (*Module)(nil), // 0: connect.marketmap.module.v2.Module +} +var file_connect_marketmap_module_v2_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_connect_marketmap_module_v2_module_proto_init() } +func file_connect_marketmap_module_v2_module_proto_init() { + if File_connect_marketmap_module_v2_module_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_connect_marketmap_module_v2_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_connect_marketmap_module_v2_module_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_connect_marketmap_module_v2_module_proto_goTypes, + DependencyIndexes: file_connect_marketmap_module_v2_module_proto_depIdxs, + MessageInfos: file_connect_marketmap_module_v2_module_proto_msgTypes, + }.Build() + File_connect_marketmap_module_v2_module_proto = out.File + file_connect_marketmap_module_v2_module_proto_rawDesc = nil + file_connect_marketmap_module_v2_module_proto_goTypes = nil + file_connect_marketmap_module_v2_module_proto_depIdxs = nil +} diff --git a/api/connect/marketmap/v2/genesis.pulsar.go b/api/connect/marketmap/v2/genesis.pulsar.go new file mode 100644 index 000000000..37da4c486 --- /dev/null +++ b/api/connect/marketmap/v2/genesis.pulsar.go @@ -0,0 +1,756 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package marketmapv2 + +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_GenesisState protoreflect.MessageDescriptor + fd_GenesisState_market_map protoreflect.FieldDescriptor + fd_GenesisState_last_updated protoreflect.FieldDescriptor + fd_GenesisState_params protoreflect.FieldDescriptor +) + +func init() { + file_connect_marketmap_v2_genesis_proto_init() + md_GenesisState = File_connect_marketmap_v2_genesis_proto.Messages().ByName("GenesisState") + fd_GenesisState_market_map = md_GenesisState.Fields().ByName("market_map") + fd_GenesisState_last_updated = md_GenesisState.Fields().ByName("last_updated") + fd_GenesisState_params = md_GenesisState.Fields().ByName("params") +} + +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_connect_marketmap_v2_genesis_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_GenesisState_messageType fastReflection_GenesisState_messageType +var _ protoreflect.MessageType = fastReflection_GenesisState_messageType{} + +type fastReflection_GenesisState_messageType struct{} + +func (x fastReflection_GenesisState_messageType) Zero() protoreflect.Message { + return (*fastReflection_GenesisState)(nil) +} +func (x fastReflection_GenesisState_messageType) New() protoreflect.Message { + return new(fastReflection_GenesisState) +} +func (x fastReflection_GenesisState_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_GenesisState +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_GenesisState) Descriptor() protoreflect.MessageDescriptor { + return md_GenesisState +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_GenesisState) Type() protoreflect.MessageType { + return _fastReflection_GenesisState_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_GenesisState) New() protoreflect.Message { + return new(fastReflection_GenesisState) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_GenesisState) Interface() protoreflect.ProtoMessage { + return (*GenesisState)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_GenesisState) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.MarketMap != nil { + value := protoreflect.ValueOfMessage(x.MarketMap.ProtoReflect()) + if !f(fd_GenesisState_market_map, value) { + return + } + } + if x.LastUpdated != uint64(0) { + value := protoreflect.ValueOfUint64(x.LastUpdated) + if !f(fd_GenesisState_last_updated, value) { + return + } + } + if x.Params != nil { + value := protoreflect.ValueOfMessage(x.Params.ProtoReflect()) + if !f(fd_GenesisState_params, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_GenesisState) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "connect.marketmap.v2.GenesisState.market_map": + return x.MarketMap != nil + case "connect.marketmap.v2.GenesisState.last_updated": + return x.LastUpdated != uint64(0) + case "connect.marketmap.v2.GenesisState.params": + return x.Params != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.GenesisState")) + } + panic(fmt.Errorf("message connect.marketmap.v2.GenesisState does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GenesisState) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "connect.marketmap.v2.GenesisState.market_map": + x.MarketMap = nil + case "connect.marketmap.v2.GenesisState.last_updated": + x.LastUpdated = uint64(0) + case "connect.marketmap.v2.GenesisState.params": + x.Params = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.GenesisState")) + } + panic(fmt.Errorf("message connect.marketmap.v2.GenesisState does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_GenesisState) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "connect.marketmap.v2.GenesisState.market_map": + value := x.MarketMap + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "connect.marketmap.v2.GenesisState.last_updated": + value := x.LastUpdated + return protoreflect.ValueOfUint64(value) + case "connect.marketmap.v2.GenesisState.params": + value := x.Params + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.GenesisState")) + } + panic(fmt.Errorf("message connect.marketmap.v2.GenesisState does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GenesisState) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "connect.marketmap.v2.GenesisState.market_map": + x.MarketMap = value.Message().Interface().(*MarketMap) + case "connect.marketmap.v2.GenesisState.last_updated": + x.LastUpdated = value.Uint() + case "connect.marketmap.v2.GenesisState.params": + x.Params = value.Message().Interface().(*Params) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.GenesisState")) + } + panic(fmt.Errorf("message connect.marketmap.v2.GenesisState does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GenesisState) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "connect.marketmap.v2.GenesisState.market_map": + if x.MarketMap == nil { + x.MarketMap = new(MarketMap) + } + return protoreflect.ValueOfMessage(x.MarketMap.ProtoReflect()) + case "connect.marketmap.v2.GenesisState.params": + if x.Params == nil { + x.Params = new(Params) + } + return protoreflect.ValueOfMessage(x.Params.ProtoReflect()) + case "connect.marketmap.v2.GenesisState.last_updated": + panic(fmt.Errorf("field last_updated of message connect.marketmap.v2.GenesisState is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.GenesisState")) + } + panic(fmt.Errorf("message connect.marketmap.v2.GenesisState does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_GenesisState) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "connect.marketmap.v2.GenesisState.market_map": + m := new(MarketMap) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "connect.marketmap.v2.GenesisState.last_updated": + return protoreflect.ValueOfUint64(uint64(0)) + case "connect.marketmap.v2.GenesisState.params": + m := new(Params) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.GenesisState")) + } + panic(fmt.Errorf("message connect.marketmap.v2.GenesisState does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_GenesisState) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in connect.marketmap.v2.GenesisState", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_GenesisState) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GenesisState) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_GenesisState) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*GenesisState) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.MarketMap != nil { + l = options.Size(x.MarketMap) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.LastUpdated != 0 { + n += 1 + runtime.Sov(uint64(x.LastUpdated)) + } + if x.Params != nil { + l = options.Size(x.Params) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*GenesisState) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if x.Params != nil { + encoded, err := options.Marshal(x.Params) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x1a + } + if x.LastUpdated != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.LastUpdated)) + i-- + dAtA[i] = 0x10 + } + if x.MarketMap != nil { + encoded, err := options.Marshal(x.MarketMap) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*GenesisState) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GenesisState: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GenesisState: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MarketMap", 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.MarketMap == nil { + x.MarketMap = &MarketMap{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.MarketMap); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field LastUpdated", wireType) + } + x.LastUpdated = 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.LastUpdated |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.Params == nil { + x.Params = &Params{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Params); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.0 +// protoc (unknown) +// source: connect/marketmap/v2/genesis.proto + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// GenesisState defines the x/marketmap module's genesis state. +type GenesisState struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // MarketMap defines the global set of market configurations for all providers + // and markets. + MarketMap *MarketMap `protobuf:"bytes,1,opt,name=market_map,json=marketMap,proto3" json:"market_map,omitempty"` + // LastUpdated is the last block height that the market map was updated. + // This field can be used as an optimization for clients checking if there + // is a new update to the map. + LastUpdated uint64 `protobuf:"varint,2,opt,name=last_updated,json=lastUpdated,proto3" json:"last_updated,omitempty"` + // Params are the parameters for the x/marketmap module. + Params *Params `protobuf:"bytes,3,opt,name=params,proto3" json:"params,omitempty"` +} + +func (x *GenesisState) Reset() { + *x = GenesisState{} + if protoimpl.UnsafeEnabled { + mi := &file_connect_marketmap_v2_genesis_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GenesisState) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GenesisState) ProtoMessage() {} + +// Deprecated: Use GenesisState.ProtoReflect.Descriptor instead. +func (*GenesisState) Descriptor() ([]byte, []int) { + return file_connect_marketmap_v2_genesis_proto_rawDescGZIP(), []int{0} +} + +func (x *GenesisState) GetMarketMap() *MarketMap { + if x != nil { + return x.MarketMap + } + return nil +} + +func (x *GenesisState) GetLastUpdated() uint64 { + if x != nil { + return x.LastUpdated + } + return 0 +} + +func (x *GenesisState) GetParams() *Params { + if x != nil { + return x.Params + } + return nil +} + +var File_connect_marketmap_v2_genesis_proto protoreflect.FileDescriptor + +var file_connect_marketmap_v2_genesis_proto_rawDesc = []byte{ + 0x0a, 0x22, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2f, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, + 0x6d, 0x61, 0x70, 0x2f, 0x76, 0x32, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x6d, 0x61, + 0x72, 0x6b, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x2e, 0x76, 0x32, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x1a, 0x21, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2f, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, + 0x6d, 0x61, 0x70, 0x2f, 0x76, 0x32, 0x2f, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x1a, 0x21, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2f, 0x6d, 0x61, 0x72, + 0x6b, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x2f, 0x76, 0x32, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb3, 0x01, 0x0a, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, + 0x69, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x44, 0x0a, 0x0a, 0x6d, 0x61, 0x72, 0x6b, 0x65, + 0x74, 0x5f, 0x6d, 0x61, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x63, 0x6f, + 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x2e, + 0x76, 0x32, 0x2e, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x4d, 0x61, 0x70, 0x42, 0x04, 0xc8, 0xde, + 0x1f, 0x00, 0x52, 0x09, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x4d, 0x61, 0x70, 0x12, 0x21, 0x0a, + 0x0c, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x04, 0x52, 0x0b, 0x6c, 0x61, 0x73, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, + 0x12, 0x3a, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1c, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x6d, 0x61, 0x72, 0x6b, 0x65, + 0x74, 0x6d, 0x61, 0x70, 0x2e, 0x76, 0x32, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x04, + 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0xcd, 0x01, 0x0a, + 0x18, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x6d, 0x61, 0x72, + 0x6b, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x2e, 0x76, 0x32, 0x42, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, + 0x69, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x31, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, + 0x65, 0x63, 0x74, 0x2f, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x2f, 0x76, 0x32, + 0x3b, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x76, 0x32, 0xa2, 0x02, 0x03, 0x43, + 0x4d, 0x58, 0xaa, 0x02, 0x14, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x4d, 0x61, 0x72, + 0x6b, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x2e, 0x56, 0x32, 0xca, 0x02, 0x14, 0x43, 0x6f, 0x6e, 0x6e, + 0x65, 0x63, 0x74, 0x5c, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x5c, 0x56, 0x32, + 0xe2, 0x02, 0x20, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x5c, 0x4d, 0x61, 0x72, 0x6b, 0x65, + 0x74, 0x6d, 0x61, 0x70, 0x5c, 0x56, 0x32, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0xea, 0x02, 0x16, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x3a, 0x3a, 0x4d, + 0x61, 0x72, 0x6b, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x3a, 0x3a, 0x56, 0x32, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_connect_marketmap_v2_genesis_proto_rawDescOnce sync.Once + file_connect_marketmap_v2_genesis_proto_rawDescData = file_connect_marketmap_v2_genesis_proto_rawDesc +) + +func file_connect_marketmap_v2_genesis_proto_rawDescGZIP() []byte { + file_connect_marketmap_v2_genesis_proto_rawDescOnce.Do(func() { + file_connect_marketmap_v2_genesis_proto_rawDescData = protoimpl.X.CompressGZIP(file_connect_marketmap_v2_genesis_proto_rawDescData) + }) + return file_connect_marketmap_v2_genesis_proto_rawDescData +} + +var file_connect_marketmap_v2_genesis_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_connect_marketmap_v2_genesis_proto_goTypes = []interface{}{ + (*GenesisState)(nil), // 0: connect.marketmap.v2.GenesisState + (*MarketMap)(nil), // 1: connect.marketmap.v2.MarketMap + (*Params)(nil), // 2: connect.marketmap.v2.Params +} +var file_connect_marketmap_v2_genesis_proto_depIdxs = []int32{ + 1, // 0: connect.marketmap.v2.GenesisState.market_map:type_name -> connect.marketmap.v2.MarketMap + 2, // 1: connect.marketmap.v2.GenesisState.params:type_name -> connect.marketmap.v2.Params + 2, // [2:2] is the sub-list for method output_type + 2, // [2:2] is the sub-list for method input_type + 2, // [2:2] is the sub-list for extension type_name + 2, // [2:2] is the sub-list for extension extendee + 0, // [0:2] is the sub-list for field type_name +} + +func init() { file_connect_marketmap_v2_genesis_proto_init() } +func file_connect_marketmap_v2_genesis_proto_init() { + if File_connect_marketmap_v2_genesis_proto != nil { + return + } + file_connect_marketmap_v2_market_proto_init() + file_connect_marketmap_v2_params_proto_init() + if !protoimpl.UnsafeEnabled { + file_connect_marketmap_v2_genesis_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GenesisState); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_connect_marketmap_v2_genesis_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_connect_marketmap_v2_genesis_proto_goTypes, + DependencyIndexes: file_connect_marketmap_v2_genesis_proto_depIdxs, + MessageInfos: file_connect_marketmap_v2_genesis_proto_msgTypes, + }.Build() + File_connect_marketmap_v2_genesis_proto = out.File + file_connect_marketmap_v2_genesis_proto_rawDesc = nil + file_connect_marketmap_v2_genesis_proto_goTypes = nil + file_connect_marketmap_v2_genesis_proto_depIdxs = nil +} diff --git a/api/connect/marketmap/v2/market.pulsar.go b/api/connect/marketmap/v2/market.pulsar.go new file mode 100644 index 000000000..f089de07c --- /dev/null +++ b/api/connect/marketmap/v2/market.pulsar.go @@ -0,0 +1,3046 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package marketmapv2 + +import ( + fmt "fmt" + runtime "github.com/cosmos/cosmos-proto/runtime" + _ "github.com/cosmos/gogoproto/gogoproto" + v2 "github.com/skip-mev/connect/v2/api/connect/types/v2" + 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" + sort "sort" + sync "sync" +) + +var _ protoreflect.List = (*_Market_2_list)(nil) + +type _Market_2_list struct { + list *[]*ProviderConfig +} + +func (x *_Market_2_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_Market_2_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_Market_2_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*ProviderConfig) + (*x.list)[i] = concreteValue +} + +func (x *_Market_2_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*ProviderConfig) + *x.list = append(*x.list, concreteValue) +} + +func (x *_Market_2_list) AppendMutable() protoreflect.Value { + v := new(ProviderConfig) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_Market_2_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_Market_2_list) NewElement() protoreflect.Value { + v := new(ProviderConfig) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_Market_2_list) IsValid() bool { + return x.list != nil +} + +var ( + md_Market protoreflect.MessageDescriptor + fd_Market_ticker protoreflect.FieldDescriptor + fd_Market_provider_configs protoreflect.FieldDescriptor +) + +func init() { + file_connect_marketmap_v2_market_proto_init() + md_Market = File_connect_marketmap_v2_market_proto.Messages().ByName("Market") + fd_Market_ticker = md_Market.Fields().ByName("ticker") + fd_Market_provider_configs = md_Market.Fields().ByName("provider_configs") +} + +var _ protoreflect.Message = (*fastReflection_Market)(nil) + +type fastReflection_Market Market + +func (x *Market) ProtoReflect() protoreflect.Message { + return (*fastReflection_Market)(x) +} + +func (x *Market) slowProtoReflect() protoreflect.Message { + mi := &file_connect_marketmap_v2_market_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_Market_messageType fastReflection_Market_messageType +var _ protoreflect.MessageType = fastReflection_Market_messageType{} + +type fastReflection_Market_messageType struct{} + +func (x fastReflection_Market_messageType) Zero() protoreflect.Message { + return (*fastReflection_Market)(nil) +} +func (x fastReflection_Market_messageType) New() protoreflect.Message { + return new(fastReflection_Market) +} +func (x fastReflection_Market_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_Market +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_Market) Descriptor() protoreflect.MessageDescriptor { + return md_Market +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_Market) Type() protoreflect.MessageType { + return _fastReflection_Market_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_Market) New() protoreflect.Message { + return new(fastReflection_Market) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_Market) Interface() protoreflect.ProtoMessage { + return (*Market)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_Market) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Ticker != nil { + value := protoreflect.ValueOfMessage(x.Ticker.ProtoReflect()) + if !f(fd_Market_ticker, value) { + return + } + } + if len(x.ProviderConfigs) != 0 { + value := protoreflect.ValueOfList(&_Market_2_list{list: &x.ProviderConfigs}) + if !f(fd_Market_provider_configs, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_Market) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "connect.marketmap.v2.Market.ticker": + return x.Ticker != nil + case "connect.marketmap.v2.Market.provider_configs": + return len(x.ProviderConfigs) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.Market")) + } + panic(fmt.Errorf("message connect.marketmap.v2.Market does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_Market) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "connect.marketmap.v2.Market.ticker": + x.Ticker = nil + case "connect.marketmap.v2.Market.provider_configs": + x.ProviderConfigs = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.Market")) + } + panic(fmt.Errorf("message connect.marketmap.v2.Market does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_Market) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "connect.marketmap.v2.Market.ticker": + value := x.Ticker + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "connect.marketmap.v2.Market.provider_configs": + if len(x.ProviderConfigs) == 0 { + return protoreflect.ValueOfList(&_Market_2_list{}) + } + listValue := &_Market_2_list{list: &x.ProviderConfigs} + return protoreflect.ValueOfList(listValue) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.Market")) + } + panic(fmt.Errorf("message connect.marketmap.v2.Market does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_Market) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "connect.marketmap.v2.Market.ticker": + x.Ticker = value.Message().Interface().(*Ticker) + case "connect.marketmap.v2.Market.provider_configs": + lv := value.List() + clv := lv.(*_Market_2_list) + x.ProviderConfigs = *clv.list + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.Market")) + } + panic(fmt.Errorf("message connect.marketmap.v2.Market does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_Market) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "connect.marketmap.v2.Market.ticker": + if x.Ticker == nil { + x.Ticker = new(Ticker) + } + return protoreflect.ValueOfMessage(x.Ticker.ProtoReflect()) + case "connect.marketmap.v2.Market.provider_configs": + if x.ProviderConfigs == nil { + x.ProviderConfigs = []*ProviderConfig{} + } + value := &_Market_2_list{list: &x.ProviderConfigs} + return protoreflect.ValueOfList(value) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.Market")) + } + panic(fmt.Errorf("message connect.marketmap.v2.Market does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_Market) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "connect.marketmap.v2.Market.ticker": + m := new(Ticker) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "connect.marketmap.v2.Market.provider_configs": + list := []*ProviderConfig{} + return protoreflect.ValueOfList(&_Market_2_list{list: &list}) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.Market")) + } + panic(fmt.Errorf("message connect.marketmap.v2.Market does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_Market) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in connect.marketmap.v2.Market", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_Market) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_Market) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_Market) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_Market) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*Market) + 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.Ticker != nil { + l = options.Size(x.Ticker) + n += 1 + l + runtime.Sov(uint64(l)) + } + if len(x.ProviderConfigs) > 0 { + for _, e := range x.ProviderConfigs { + 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().(*Market) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]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.ProviderConfigs) > 0 { + for iNdEx := len(x.ProviderConfigs) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.ProviderConfigs[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x12 + } + } + if x.Ticker != nil { + encoded, err := options.Marshal(x.Ticker) + 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().(*Market) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Market: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Market: 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 Ticker", 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.Ticker == nil { + x.Ticker = &Ticker{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Ticker); 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 ProviderConfigs", 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.ProviderConfigs = append(x.ProviderConfigs, &ProviderConfig{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ProviderConfigs[len(x.ProviderConfigs)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_Ticker protoreflect.MessageDescriptor + fd_Ticker_currency_pair protoreflect.FieldDescriptor + fd_Ticker_decimals protoreflect.FieldDescriptor + fd_Ticker_min_provider_count protoreflect.FieldDescriptor + fd_Ticker_enabled protoreflect.FieldDescriptor + fd_Ticker_metadata_JSON protoreflect.FieldDescriptor +) + +func init() { + file_connect_marketmap_v2_market_proto_init() + md_Ticker = File_connect_marketmap_v2_market_proto.Messages().ByName("Ticker") + fd_Ticker_currency_pair = md_Ticker.Fields().ByName("currency_pair") + fd_Ticker_decimals = md_Ticker.Fields().ByName("decimals") + fd_Ticker_min_provider_count = md_Ticker.Fields().ByName("min_provider_count") + fd_Ticker_enabled = md_Ticker.Fields().ByName("enabled") + fd_Ticker_metadata_JSON = md_Ticker.Fields().ByName("metadata_JSON") +} + +var _ protoreflect.Message = (*fastReflection_Ticker)(nil) + +type fastReflection_Ticker Ticker + +func (x *Ticker) ProtoReflect() protoreflect.Message { + return (*fastReflection_Ticker)(x) +} + +func (x *Ticker) slowProtoReflect() protoreflect.Message { + mi := &file_connect_marketmap_v2_market_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_Ticker_messageType fastReflection_Ticker_messageType +var _ protoreflect.MessageType = fastReflection_Ticker_messageType{} + +type fastReflection_Ticker_messageType struct{} + +func (x fastReflection_Ticker_messageType) Zero() protoreflect.Message { + return (*fastReflection_Ticker)(nil) +} +func (x fastReflection_Ticker_messageType) New() protoreflect.Message { + return new(fastReflection_Ticker) +} +func (x fastReflection_Ticker_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_Ticker +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_Ticker) Descriptor() protoreflect.MessageDescriptor { + return md_Ticker +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_Ticker) Type() protoreflect.MessageType { + return _fastReflection_Ticker_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_Ticker) New() protoreflect.Message { + return new(fastReflection_Ticker) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_Ticker) Interface() protoreflect.ProtoMessage { + return (*Ticker)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_Ticker) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.CurrencyPair != nil { + value := protoreflect.ValueOfMessage(x.CurrencyPair.ProtoReflect()) + if !f(fd_Ticker_currency_pair, value) { + return + } + } + if x.Decimals != uint64(0) { + value := protoreflect.ValueOfUint64(x.Decimals) + if !f(fd_Ticker_decimals, value) { + return + } + } + if x.MinProviderCount != uint64(0) { + value := protoreflect.ValueOfUint64(x.MinProviderCount) + if !f(fd_Ticker_min_provider_count, value) { + return + } + } + if x.Enabled != false { + value := protoreflect.ValueOfBool(x.Enabled) + if !f(fd_Ticker_enabled, value) { + return + } + } + if x.Metadata_JSON != "" { + value := protoreflect.ValueOfString(x.Metadata_JSON) + if !f(fd_Ticker_metadata_JSON, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_Ticker) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "connect.marketmap.v2.Ticker.currency_pair": + return x.CurrencyPair != nil + case "connect.marketmap.v2.Ticker.decimals": + return x.Decimals != uint64(0) + case "connect.marketmap.v2.Ticker.min_provider_count": + return x.MinProviderCount != uint64(0) + case "connect.marketmap.v2.Ticker.enabled": + return x.Enabled != false + case "connect.marketmap.v2.Ticker.metadata_JSON": + return x.Metadata_JSON != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.Ticker")) + } + panic(fmt.Errorf("message connect.marketmap.v2.Ticker does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_Ticker) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "connect.marketmap.v2.Ticker.currency_pair": + x.CurrencyPair = nil + case "connect.marketmap.v2.Ticker.decimals": + x.Decimals = uint64(0) + case "connect.marketmap.v2.Ticker.min_provider_count": + x.MinProviderCount = uint64(0) + case "connect.marketmap.v2.Ticker.enabled": + x.Enabled = false + case "connect.marketmap.v2.Ticker.metadata_JSON": + x.Metadata_JSON = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.Ticker")) + } + panic(fmt.Errorf("message connect.marketmap.v2.Ticker does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_Ticker) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "connect.marketmap.v2.Ticker.currency_pair": + value := x.CurrencyPair + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "connect.marketmap.v2.Ticker.decimals": + value := x.Decimals + return protoreflect.ValueOfUint64(value) + case "connect.marketmap.v2.Ticker.min_provider_count": + value := x.MinProviderCount + return protoreflect.ValueOfUint64(value) + case "connect.marketmap.v2.Ticker.enabled": + value := x.Enabled + return protoreflect.ValueOfBool(value) + case "connect.marketmap.v2.Ticker.metadata_JSON": + value := x.Metadata_JSON + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.Ticker")) + } + panic(fmt.Errorf("message connect.marketmap.v2.Ticker does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_Ticker) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "connect.marketmap.v2.Ticker.currency_pair": + x.CurrencyPair = value.Message().Interface().(*v2.CurrencyPair) + case "connect.marketmap.v2.Ticker.decimals": + x.Decimals = value.Uint() + case "connect.marketmap.v2.Ticker.min_provider_count": + x.MinProviderCount = value.Uint() + case "connect.marketmap.v2.Ticker.enabled": + x.Enabled = value.Bool() + case "connect.marketmap.v2.Ticker.metadata_JSON": + x.Metadata_JSON = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.Ticker")) + } + panic(fmt.Errorf("message connect.marketmap.v2.Ticker does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_Ticker) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "connect.marketmap.v2.Ticker.currency_pair": + if x.CurrencyPair == nil { + x.CurrencyPair = new(v2.CurrencyPair) + } + return protoreflect.ValueOfMessage(x.CurrencyPair.ProtoReflect()) + case "connect.marketmap.v2.Ticker.decimals": + panic(fmt.Errorf("field decimals of message connect.marketmap.v2.Ticker is not mutable")) + case "connect.marketmap.v2.Ticker.min_provider_count": + panic(fmt.Errorf("field min_provider_count of message connect.marketmap.v2.Ticker is not mutable")) + case "connect.marketmap.v2.Ticker.enabled": + panic(fmt.Errorf("field enabled of message connect.marketmap.v2.Ticker is not mutable")) + case "connect.marketmap.v2.Ticker.metadata_JSON": + panic(fmt.Errorf("field metadata_JSON of message connect.marketmap.v2.Ticker is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.Ticker")) + } + panic(fmt.Errorf("message connect.marketmap.v2.Ticker does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_Ticker) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "connect.marketmap.v2.Ticker.currency_pair": + m := new(v2.CurrencyPair) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "connect.marketmap.v2.Ticker.decimals": + return protoreflect.ValueOfUint64(uint64(0)) + case "connect.marketmap.v2.Ticker.min_provider_count": + return protoreflect.ValueOfUint64(uint64(0)) + case "connect.marketmap.v2.Ticker.enabled": + return protoreflect.ValueOfBool(false) + case "connect.marketmap.v2.Ticker.metadata_JSON": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.Ticker")) + } + panic(fmt.Errorf("message connect.marketmap.v2.Ticker does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_Ticker) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in connect.marketmap.v2.Ticker", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_Ticker) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_Ticker) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_Ticker) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_Ticker) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*Ticker) + 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.CurrencyPair != nil { + l = options.Size(x.CurrencyPair) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Decimals != 0 { + n += 1 + runtime.Sov(uint64(x.Decimals)) + } + if x.MinProviderCount != 0 { + n += 1 + runtime.Sov(uint64(x.MinProviderCount)) + } + if x.Enabled { + n += 2 + } + l = len(x.Metadata_JSON) + 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().(*Ticker) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]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.Metadata_JSON) > 0 { + i -= len(x.Metadata_JSON) + copy(dAtA[i:], x.Metadata_JSON) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Metadata_JSON))) + i-- + dAtA[i] = 0x7a + } + if x.Enabled { + i-- + if x.Enabled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x70 + } + if x.MinProviderCount != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.MinProviderCount)) + i-- + dAtA[i] = 0x18 + } + if x.Decimals != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Decimals)) + i-- + dAtA[i] = 0x10 + } + if x.CurrencyPair != nil { + encoded, err := options.Marshal(x.CurrencyPair) + 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().(*Ticker) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Ticker: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Ticker: 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 CurrencyPair", 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.CurrencyPair == nil { + x.CurrencyPair = &v2.CurrencyPair{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.CurrencyPair); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Decimals", wireType) + } + x.Decimals = 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.Decimals |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MinProviderCount", wireType) + } + x.MinProviderCount = 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.MinProviderCount |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 14: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Enabled", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + x.Enabled = bool(v != 0) + case 15: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Metadata_JSON", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Metadata_JSON = 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_ProviderConfig protoreflect.MessageDescriptor + fd_ProviderConfig_name protoreflect.FieldDescriptor + fd_ProviderConfig_off_chain_ticker protoreflect.FieldDescriptor + fd_ProviderConfig_normalize_by_pair protoreflect.FieldDescriptor + fd_ProviderConfig_invert protoreflect.FieldDescriptor + fd_ProviderConfig_metadata_JSON protoreflect.FieldDescriptor +) + +func init() { + file_connect_marketmap_v2_market_proto_init() + md_ProviderConfig = File_connect_marketmap_v2_market_proto.Messages().ByName("ProviderConfig") + fd_ProviderConfig_name = md_ProviderConfig.Fields().ByName("name") + fd_ProviderConfig_off_chain_ticker = md_ProviderConfig.Fields().ByName("off_chain_ticker") + fd_ProviderConfig_normalize_by_pair = md_ProviderConfig.Fields().ByName("normalize_by_pair") + fd_ProviderConfig_invert = md_ProviderConfig.Fields().ByName("invert") + fd_ProviderConfig_metadata_JSON = md_ProviderConfig.Fields().ByName("metadata_JSON") +} + +var _ protoreflect.Message = (*fastReflection_ProviderConfig)(nil) + +type fastReflection_ProviderConfig ProviderConfig + +func (x *ProviderConfig) ProtoReflect() protoreflect.Message { + return (*fastReflection_ProviderConfig)(x) +} + +func (x *ProviderConfig) slowProtoReflect() protoreflect.Message { + mi := &file_connect_marketmap_v2_market_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_ProviderConfig_messageType fastReflection_ProviderConfig_messageType +var _ protoreflect.MessageType = fastReflection_ProviderConfig_messageType{} + +type fastReflection_ProviderConfig_messageType struct{} + +func (x fastReflection_ProviderConfig_messageType) Zero() protoreflect.Message { + return (*fastReflection_ProviderConfig)(nil) +} +func (x fastReflection_ProviderConfig_messageType) New() protoreflect.Message { + return new(fastReflection_ProviderConfig) +} +func (x fastReflection_ProviderConfig_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_ProviderConfig +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_ProviderConfig) Descriptor() protoreflect.MessageDescriptor { + return md_ProviderConfig +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_ProviderConfig) Type() protoreflect.MessageType { + return _fastReflection_ProviderConfig_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_ProviderConfig) New() protoreflect.Message { + return new(fastReflection_ProviderConfig) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_ProviderConfig) Interface() protoreflect.ProtoMessage { + return (*ProviderConfig)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_ProviderConfig) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Name != "" { + value := protoreflect.ValueOfString(x.Name) + if !f(fd_ProviderConfig_name, value) { + return + } + } + if x.OffChainTicker != "" { + value := protoreflect.ValueOfString(x.OffChainTicker) + if !f(fd_ProviderConfig_off_chain_ticker, value) { + return + } + } + if x.NormalizeByPair != nil { + value := protoreflect.ValueOfMessage(x.NormalizeByPair.ProtoReflect()) + if !f(fd_ProviderConfig_normalize_by_pair, value) { + return + } + } + if x.Invert != false { + value := protoreflect.ValueOfBool(x.Invert) + if !f(fd_ProviderConfig_invert, value) { + return + } + } + if x.Metadata_JSON != "" { + value := protoreflect.ValueOfString(x.Metadata_JSON) + if !f(fd_ProviderConfig_metadata_JSON, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_ProviderConfig) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "connect.marketmap.v2.ProviderConfig.name": + return x.Name != "" + case "connect.marketmap.v2.ProviderConfig.off_chain_ticker": + return x.OffChainTicker != "" + case "connect.marketmap.v2.ProviderConfig.normalize_by_pair": + return x.NormalizeByPair != nil + case "connect.marketmap.v2.ProviderConfig.invert": + return x.Invert != false + case "connect.marketmap.v2.ProviderConfig.metadata_JSON": + return x.Metadata_JSON != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.ProviderConfig")) + } + panic(fmt.Errorf("message connect.marketmap.v2.ProviderConfig does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_ProviderConfig) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "connect.marketmap.v2.ProviderConfig.name": + x.Name = "" + case "connect.marketmap.v2.ProviderConfig.off_chain_ticker": + x.OffChainTicker = "" + case "connect.marketmap.v2.ProviderConfig.normalize_by_pair": + x.NormalizeByPair = nil + case "connect.marketmap.v2.ProviderConfig.invert": + x.Invert = false + case "connect.marketmap.v2.ProviderConfig.metadata_JSON": + x.Metadata_JSON = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.ProviderConfig")) + } + panic(fmt.Errorf("message connect.marketmap.v2.ProviderConfig does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_ProviderConfig) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "connect.marketmap.v2.ProviderConfig.name": + value := x.Name + return protoreflect.ValueOfString(value) + case "connect.marketmap.v2.ProviderConfig.off_chain_ticker": + value := x.OffChainTicker + return protoreflect.ValueOfString(value) + case "connect.marketmap.v2.ProviderConfig.normalize_by_pair": + value := x.NormalizeByPair + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "connect.marketmap.v2.ProviderConfig.invert": + value := x.Invert + return protoreflect.ValueOfBool(value) + case "connect.marketmap.v2.ProviderConfig.metadata_JSON": + value := x.Metadata_JSON + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.ProviderConfig")) + } + panic(fmt.Errorf("message connect.marketmap.v2.ProviderConfig does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_ProviderConfig) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "connect.marketmap.v2.ProviderConfig.name": + x.Name = value.Interface().(string) + case "connect.marketmap.v2.ProviderConfig.off_chain_ticker": + x.OffChainTicker = value.Interface().(string) + case "connect.marketmap.v2.ProviderConfig.normalize_by_pair": + x.NormalizeByPair = value.Message().Interface().(*v2.CurrencyPair) + case "connect.marketmap.v2.ProviderConfig.invert": + x.Invert = value.Bool() + case "connect.marketmap.v2.ProviderConfig.metadata_JSON": + x.Metadata_JSON = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.ProviderConfig")) + } + panic(fmt.Errorf("message connect.marketmap.v2.ProviderConfig does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_ProviderConfig) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "connect.marketmap.v2.ProviderConfig.normalize_by_pair": + if x.NormalizeByPair == nil { + x.NormalizeByPair = new(v2.CurrencyPair) + } + return protoreflect.ValueOfMessage(x.NormalizeByPair.ProtoReflect()) + case "connect.marketmap.v2.ProviderConfig.name": + panic(fmt.Errorf("field name of message connect.marketmap.v2.ProviderConfig is not mutable")) + case "connect.marketmap.v2.ProviderConfig.off_chain_ticker": + panic(fmt.Errorf("field off_chain_ticker of message connect.marketmap.v2.ProviderConfig is not mutable")) + case "connect.marketmap.v2.ProviderConfig.invert": + panic(fmt.Errorf("field invert of message connect.marketmap.v2.ProviderConfig is not mutable")) + case "connect.marketmap.v2.ProviderConfig.metadata_JSON": + panic(fmt.Errorf("field metadata_JSON of message connect.marketmap.v2.ProviderConfig is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.ProviderConfig")) + } + panic(fmt.Errorf("message connect.marketmap.v2.ProviderConfig does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_ProviderConfig) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "connect.marketmap.v2.ProviderConfig.name": + return protoreflect.ValueOfString("") + case "connect.marketmap.v2.ProviderConfig.off_chain_ticker": + return protoreflect.ValueOfString("") + case "connect.marketmap.v2.ProviderConfig.normalize_by_pair": + m := new(v2.CurrencyPair) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "connect.marketmap.v2.ProviderConfig.invert": + return protoreflect.ValueOfBool(false) + case "connect.marketmap.v2.ProviderConfig.metadata_JSON": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.ProviderConfig")) + } + panic(fmt.Errorf("message connect.marketmap.v2.ProviderConfig does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_ProviderConfig) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in connect.marketmap.v2.ProviderConfig", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_ProviderConfig) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_ProviderConfig) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_ProviderConfig) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_ProviderConfig) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*ProviderConfig) + 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.Name) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.OffChainTicker) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.NormalizeByPair != nil { + l = options.Size(x.NormalizeByPair) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Invert { + n += 2 + } + l = len(x.Metadata_JSON) + 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().(*ProviderConfig) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]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.Metadata_JSON) > 0 { + i -= len(x.Metadata_JSON) + copy(dAtA[i:], x.Metadata_JSON) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Metadata_JSON))) + i-- + dAtA[i] = 0x7a + } + if x.Invert { + i-- + if x.Invert { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x20 + } + if x.NormalizeByPair != nil { + encoded, err := options.Marshal(x.NormalizeByPair) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x1a + } + if len(x.OffChainTicker) > 0 { + i -= len(x.OffChainTicker) + copy(dAtA[i:], x.OffChainTicker) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.OffChainTicker))) + i-- + dAtA[i] = 0x12 + } + if len(x.Name) > 0 { + i -= len(x.Name) + copy(dAtA[i:], x.Name) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Name))) + 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().(*ProviderConfig) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ProviderConfig: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ProviderConfig: 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 Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Name = 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 OffChainTicker", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.OffChainTicker = 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 NormalizeByPair", 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.NormalizeByPair == nil { + x.NormalizeByPair = &v2.CurrencyPair{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.NormalizeByPair); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 4: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Invert", 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.Invert = bool(v != 0) + case 15: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Metadata_JSON", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Metadata_JSON = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var _ protoreflect.Map = (*_MarketMap_1_map)(nil) + +type _MarketMap_1_map struct { + m *map[string]*Market +} + +func (x *_MarketMap_1_map) Len() int { + if x.m == nil { + return 0 + } + return len(*x.m) +} + +func (x *_MarketMap_1_map) Range(f func(protoreflect.MapKey, protoreflect.Value) bool) { + if x.m == nil { + return + } + for k, v := range *x.m { + mapKey := (protoreflect.MapKey)(protoreflect.ValueOfString(k)) + mapValue := protoreflect.ValueOfMessage(v.ProtoReflect()) + if !f(mapKey, mapValue) { + break + } + } +} + +func (x *_MarketMap_1_map) Has(key protoreflect.MapKey) bool { + if x.m == nil { + return false + } + keyUnwrapped := key.String() + concreteValue := keyUnwrapped + _, ok := (*x.m)[concreteValue] + return ok +} + +func (x *_MarketMap_1_map) Clear(key protoreflect.MapKey) { + if x.m == nil { + return + } + keyUnwrapped := key.String() + concreteKey := keyUnwrapped + delete(*x.m, concreteKey) +} + +func (x *_MarketMap_1_map) Get(key protoreflect.MapKey) protoreflect.Value { + if x.m == nil { + return protoreflect.Value{} + } + keyUnwrapped := key.String() + concreteKey := keyUnwrapped + v, ok := (*x.m)[concreteKey] + if !ok { + return protoreflect.Value{} + } + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_MarketMap_1_map) Set(key protoreflect.MapKey, value protoreflect.Value) { + if !key.IsValid() || !value.IsValid() { + panic("invalid key or value provided") + } + keyUnwrapped := key.String() + concreteKey := keyUnwrapped + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*Market) + (*x.m)[concreteKey] = concreteValue +} + +func (x *_MarketMap_1_map) Mutable(key protoreflect.MapKey) protoreflect.Value { + keyUnwrapped := key.String() + concreteKey := keyUnwrapped + v, ok := (*x.m)[concreteKey] + if ok { + return protoreflect.ValueOfMessage(v.ProtoReflect()) + } + newValue := new(Market) + (*x.m)[concreteKey] = newValue + return protoreflect.ValueOfMessage(newValue.ProtoReflect()) +} + +func (x *_MarketMap_1_map) NewValue() protoreflect.Value { + v := new(Market) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_MarketMap_1_map) IsValid() bool { + return x.m != nil +} + +var ( + md_MarketMap protoreflect.MessageDescriptor + fd_MarketMap_markets protoreflect.FieldDescriptor +) + +func init() { + file_connect_marketmap_v2_market_proto_init() + md_MarketMap = File_connect_marketmap_v2_market_proto.Messages().ByName("MarketMap") + fd_MarketMap_markets = md_MarketMap.Fields().ByName("markets") +} + +var _ protoreflect.Message = (*fastReflection_MarketMap)(nil) + +type fastReflection_MarketMap MarketMap + +func (x *MarketMap) ProtoReflect() protoreflect.Message { + return (*fastReflection_MarketMap)(x) +} + +func (x *MarketMap) slowProtoReflect() protoreflect.Message { + mi := &file_connect_marketmap_v2_market_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_MarketMap_messageType fastReflection_MarketMap_messageType +var _ protoreflect.MessageType = fastReflection_MarketMap_messageType{} + +type fastReflection_MarketMap_messageType struct{} + +func (x fastReflection_MarketMap_messageType) Zero() protoreflect.Message { + return (*fastReflection_MarketMap)(nil) +} +func (x fastReflection_MarketMap_messageType) New() protoreflect.Message { + return new(fastReflection_MarketMap) +} +func (x fastReflection_MarketMap_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MarketMap +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MarketMap) Descriptor() protoreflect.MessageDescriptor { + return md_MarketMap +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_MarketMap) Type() protoreflect.MessageType { + return _fastReflection_MarketMap_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MarketMap) New() protoreflect.Message { + return new(fastReflection_MarketMap) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MarketMap) Interface() protoreflect.ProtoMessage { + return (*MarketMap)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_MarketMap) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.Markets) != 0 { + value := protoreflect.ValueOfMap(&_MarketMap_1_map{m: &x.Markets}) + if !f(fd_MarketMap_markets, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_MarketMap) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "connect.marketmap.v2.MarketMap.markets": + return len(x.Markets) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MarketMap")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MarketMap does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MarketMap) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "connect.marketmap.v2.MarketMap.markets": + x.Markets = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MarketMap")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MarketMap does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_MarketMap) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "connect.marketmap.v2.MarketMap.markets": + if len(x.Markets) == 0 { + return protoreflect.ValueOfMap(&_MarketMap_1_map{}) + } + mapValue := &_MarketMap_1_map{m: &x.Markets} + return protoreflect.ValueOfMap(mapValue) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MarketMap")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MarketMap does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MarketMap) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "connect.marketmap.v2.MarketMap.markets": + mv := value.Map() + cmv := mv.(*_MarketMap_1_map) + x.Markets = *cmv.m + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MarketMap")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MarketMap does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MarketMap) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "connect.marketmap.v2.MarketMap.markets": + if x.Markets == nil { + x.Markets = make(map[string]*Market) + } + value := &_MarketMap_1_map{m: &x.Markets} + return protoreflect.ValueOfMap(value) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MarketMap")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MarketMap does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_MarketMap) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "connect.marketmap.v2.MarketMap.markets": + m := make(map[string]*Market) + return protoreflect.ValueOfMap(&_MarketMap_1_map{m: &m}) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MarketMap")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MarketMap does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_MarketMap) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in connect.marketmap.v2.MarketMap", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_MarketMap) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MarketMap) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_MarketMap) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_MarketMap) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MarketMap) + 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.Markets) > 0 { + SiZeMaP := func(k string, v *Market) { + l := 0 + if v != nil { + l = options.Size(v) + } + l += 1 + runtime.Sov(uint64(l)) + mapEntrySize := 1 + len(k) + runtime.Sov(uint64(len(k))) + l + n += mapEntrySize + 1 + runtime.Sov(uint64(mapEntrySize)) + } + if options.Deterministic { + sortme := make([]string, 0, len(x.Markets)) + for k := range x.Markets { + sortme = append(sortme, k) + } + sort.Strings(sortme) + for _, k := range sortme { + v := x.Markets[k] + SiZeMaP(k, v) + } + } else { + for k, v := range x.Markets { + SiZeMaP(k, v) + } + } + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*MarketMap) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]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.Markets) > 0 { + MaRsHaLmAp := func(k string, v *Market) (protoiface.MarshalOutput, error) { + baseI := i + encoded, err := options.Marshal(v) + 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 + i -= len(k) + copy(dAtA[i:], k) + i = runtime.EncodeVarint(dAtA, i, uint64(len(k))) + i-- + dAtA[i] = 0xa + i = runtime.EncodeVarint(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0xa + return protoiface.MarshalOutput{}, nil + } + if options.Deterministic { + keysForMarkets := make([]string, 0, len(x.Markets)) + for k := range x.Markets { + keysForMarkets = append(keysForMarkets, string(k)) + } + sort.Slice(keysForMarkets, func(i, j int) bool { + return keysForMarkets[i] < keysForMarkets[j] + }) + for iNdEx := len(keysForMarkets) - 1; iNdEx >= 0; iNdEx-- { + v := x.Markets[string(keysForMarkets[iNdEx])] + out, err := MaRsHaLmAp(keysForMarkets[iNdEx], v) + if err != nil { + return out, err + } + } + } else { + for k := range x.Markets { + v := x.Markets[k] + out, err := MaRsHaLmAp(k, v) + if err != nil { + return out, err + } + } + } + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*MarketMap) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MarketMap: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MarketMap: 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 Markets", 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.Markets == nil { + x.Markets = make(map[string]*Market) + } + var mapkey string + var mapvalue *Market + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postStringIndexmapkey > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var mapmsglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapmsglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if mapmsglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postmsgIndex := iNdEx + mapmsglen + if postmsgIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postmsgIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + mapvalue = &Market{} + if err := options.Unmarshal(dAtA[iNdEx:postmsgIndex], mapvalue); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postmsgIndex + } else { + iNdEx = entryPreIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > postIndex { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + x.Markets[mapkey] = mapvalue + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.0 +// protoc (unknown) +// source: connect/marketmap/v2/market.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) +) + +// Market encapsulates a Ticker and its provider-specific configuration. +type Market struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Ticker represents a price feed for a given asset pair i.e. BTC/USD. The + // price feed is scaled to a number of decimal places and has a minimum number + // of providers required to consider the ticker valid. + Ticker *Ticker `protobuf:"bytes,1,opt,name=ticker,proto3" json:"ticker,omitempty"` + // ProviderConfigs is the list of provider-specific configs for this Market. + ProviderConfigs []*ProviderConfig `protobuf:"bytes,2,rep,name=provider_configs,json=providerConfigs,proto3" json:"provider_configs,omitempty"` +} + +func (x *Market) Reset() { + *x = Market{} + if protoimpl.UnsafeEnabled { + mi := &file_connect_marketmap_v2_market_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Market) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Market) ProtoMessage() {} + +// Deprecated: Use Market.ProtoReflect.Descriptor instead. +func (*Market) Descriptor() ([]byte, []int) { + return file_connect_marketmap_v2_market_proto_rawDescGZIP(), []int{0} +} + +func (x *Market) GetTicker() *Ticker { + if x != nil { + return x.Ticker + } + return nil +} + +func (x *Market) GetProviderConfigs() []*ProviderConfig { + if x != nil { + return x.ProviderConfigs + } + return nil +} + +// Ticker represents a price feed for a given asset pair i.e. BTC/USD. The price +// feed is scaled to a number of decimal places and has a minimum number of +// providers required to consider the ticker valid. +type Ticker struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // CurrencyPair is the currency pair for this ticker. + CurrencyPair *v2.CurrencyPair `protobuf:"bytes,1,opt,name=currency_pair,json=currencyPair,proto3" json:"currency_pair,omitempty"` + // Decimals is the number of decimal places for the ticker. The number of + // decimal places is used to convert the price to a human-readable format. + Decimals uint64 `protobuf:"varint,2,opt,name=decimals,proto3" json:"decimals,omitempty"` + // MinProviderCount is the minimum number of providers required to consider + // the ticker valid. + MinProviderCount uint64 `protobuf:"varint,3,opt,name=min_provider_count,json=minProviderCount,proto3" json:"min_provider_count,omitempty"` + // Enabled is the flag that denotes if the Ticker is enabled for price + // fetching by an oracle. + Enabled bool `protobuf:"varint,14,opt,name=enabled,proto3" json:"enabled,omitempty"` + // MetadataJSON is a string of JSON that encodes any extra configuration + // for the given ticker. + Metadata_JSON string `protobuf:"bytes,15,opt,name=metadata_JSON,json=metadataJSON,proto3" json:"metadata_JSON,omitempty"` +} + +func (x *Ticker) Reset() { + *x = Ticker{} + if protoimpl.UnsafeEnabled { + mi := &file_connect_marketmap_v2_market_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Ticker) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Ticker) ProtoMessage() {} + +// Deprecated: Use Ticker.ProtoReflect.Descriptor instead. +func (*Ticker) Descriptor() ([]byte, []int) { + return file_connect_marketmap_v2_market_proto_rawDescGZIP(), []int{1} +} + +func (x *Ticker) GetCurrencyPair() *v2.CurrencyPair { + if x != nil { + return x.CurrencyPair + } + return nil +} + +func (x *Ticker) GetDecimals() uint64 { + if x != nil { + return x.Decimals + } + return 0 +} + +func (x *Ticker) GetMinProviderCount() uint64 { + if x != nil { + return x.MinProviderCount + } + return 0 +} + +func (x *Ticker) GetEnabled() bool { + if x != nil { + return x.Enabled + } + return false +} + +func (x *Ticker) GetMetadata_JSON() string { + if x != nil { + return x.Metadata_JSON + } + return "" +} + +type ProviderConfig struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Name corresponds to the name of the provider for which the configuration is + // being set. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // OffChainTicker is the off-chain representation of the ticker i.e. BTC/USD. + // The off-chain ticker is unique to a given provider and is used to fetch the + // price of the ticker from the provider. + OffChainTicker string `protobuf:"bytes,2,opt,name=off_chain_ticker,json=offChainTicker,proto3" json:"off_chain_ticker,omitempty"` + // NormalizeByPair is the currency pair for this ticker to be normalized by. + // For example, if the desired Ticker is BTC/USD, this market could be reached + // using: OffChainTicker = BTC/USDT NormalizeByPair = USDT/USD This field is + // optional and nullable. + NormalizeByPair *v2.CurrencyPair `protobuf:"bytes,3,opt,name=normalize_by_pair,json=normalizeByPair,proto3" json:"normalize_by_pair,omitempty"` + // Invert is a boolean indicating if the BASE and QUOTE of the market should + // be inverted. i.e. BASE -> QUOTE, QUOTE -> BASE + Invert bool `protobuf:"varint,4,opt,name=invert,proto3" json:"invert,omitempty"` + // MetadataJSON is a string of JSON that encodes any extra configuration + // for the given provider config. + Metadata_JSON string `protobuf:"bytes,15,opt,name=metadata_JSON,json=metadataJSON,proto3" json:"metadata_JSON,omitempty"` +} + +func (x *ProviderConfig) Reset() { + *x = ProviderConfig{} + if protoimpl.UnsafeEnabled { + mi := &file_connect_marketmap_v2_market_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ProviderConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ProviderConfig) ProtoMessage() {} + +// Deprecated: Use ProviderConfig.ProtoReflect.Descriptor instead. +func (*ProviderConfig) Descriptor() ([]byte, []int) { + return file_connect_marketmap_v2_market_proto_rawDescGZIP(), []int{2} +} + +func (x *ProviderConfig) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *ProviderConfig) GetOffChainTicker() string { + if x != nil { + return x.OffChainTicker + } + return "" +} + +func (x *ProviderConfig) GetNormalizeByPair() *v2.CurrencyPair { + if x != nil { + return x.NormalizeByPair + } + return nil +} + +func (x *ProviderConfig) GetInvert() bool { + if x != nil { + return x.Invert + } + return false +} + +func (x *ProviderConfig) GetMetadata_JSON() string { + if x != nil { + return x.Metadata_JSON + } + return "" +} + +// MarketMap maps ticker strings to their Markets. +type MarketMap struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Markets is the full list of tickers and their associated configurations + // to be stored on-chain. + Markets map[string]*Market `protobuf:"bytes,1,rep,name=markets,proto3" json:"markets,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (x *MarketMap) Reset() { + *x = MarketMap{} + if protoimpl.UnsafeEnabled { + mi := &file_connect_marketmap_v2_market_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MarketMap) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MarketMap) ProtoMessage() {} + +// Deprecated: Use MarketMap.ProtoReflect.Descriptor instead. +func (*MarketMap) Descriptor() ([]byte, []int) { + return file_connect_marketmap_v2_market_proto_rawDescGZIP(), []int{3} +} + +func (x *MarketMap) GetMarkets() map[string]*Market { + if x != nil { + return x.Markets + } + return nil +} + +var File_connect_marketmap_v2_market_proto protoreflect.FileDescriptor + +var file_connect_marketmap_v2_market_proto_rawDesc = []byte{ + 0x0a, 0x21, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2f, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, + 0x6d, 0x61, 0x70, 0x2f, 0x76, 0x32, 0x2f, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x6d, 0x61, 0x72, + 0x6b, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x2e, 0x76, 0x32, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, + 0x24, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, + 0x32, 0x2f, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x5f, 0x70, 0x61, 0x69, 0x72, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa5, 0x01, 0x0a, 0x06, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, + 0x12, 0x3a, 0x0a, 0x06, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1c, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x6d, 0x61, 0x72, 0x6b, 0x65, + 0x74, 0x6d, 0x61, 0x70, 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x72, 0x42, 0x04, + 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x72, 0x12, 0x55, 0x0a, 0x10, + 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, + 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, + 0x2e, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x2e, 0x76, 0x32, 0x2e, 0x50, 0x72, + 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x04, 0xc8, 0xde, + 0x1f, 0x00, 0x52, 0x0f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x73, 0x3a, 0x08, 0x98, 0xa0, 0x1f, 0x00, 0x80, 0xdc, 0x20, 0x00, 0x22, 0xe6, 0x01, + 0x0a, 0x06, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x72, 0x12, 0x49, 0x0a, 0x0d, 0x63, 0x75, 0x72, 0x72, + 0x65, 0x6e, 0x63, 0x79, 0x5f, 0x70, 0x61, 0x69, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1e, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, + 0x76, 0x32, 0x2e, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x50, 0x61, 0x69, 0x72, 0x42, + 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0c, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x50, + 0x61, 0x69, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x73, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x73, 0x12, + 0x2c, 0x0a, 0x12, 0x6d, 0x69, 0x6e, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, + 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x10, 0x6d, 0x69, 0x6e, + 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x18, 0x0a, + 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, + 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x6d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0x5f, 0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, + 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x4a, 0x53, 0x4f, 0x4e, 0x3a, 0x08, 0x98, 0xa0, + 0x1f, 0x00, 0x80, 0xdc, 0x20, 0x00, 0x22, 0xd7, 0x01, 0x0a, 0x0e, 0x50, 0x72, 0x6f, 0x76, 0x69, + 0x64, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x28, 0x0a, + 0x10, 0x6f, 0x66, 0x66, 0x5f, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x74, 0x69, 0x63, 0x6b, 0x65, + 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x6f, 0x66, 0x66, 0x43, 0x68, 0x61, 0x69, + 0x6e, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x72, 0x12, 0x4a, 0x0a, 0x11, 0x6e, 0x6f, 0x72, 0x6d, 0x61, + 0x6c, 0x69, 0x7a, 0x65, 0x5f, 0x62, 0x79, 0x5f, 0x70, 0x61, 0x69, 0x72, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x74, 0x79, 0x70, + 0x65, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x50, 0x61, + 0x69, 0x72, 0x52, 0x0f, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x42, 0x79, 0x50, + 0x61, 0x69, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x69, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x06, 0x69, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x6d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x0f, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0c, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x4a, 0x53, 0x4f, 0x4e, + 0x22, 0xbd, 0x01, 0x0a, 0x09, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x4d, 0x61, 0x70, 0x12, 0x4c, + 0x0a, 0x07, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x2c, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, + 0x6d, 0x61, 0x70, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x4d, 0x61, 0x70, + 0x2e, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x42, 0x04, 0xc8, + 0xde, 0x1f, 0x00, 0x52, 0x07, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x73, 0x1a, 0x58, 0x0a, 0x0c, + 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, + 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x32, + 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, + 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x6d, 0x61, + 0x70, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x52, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x3a, 0x08, 0x98, 0xa0, 0x1f, 0x00, 0x80, 0xdc, 0x20, 0x00, + 0x42, 0xcc, 0x01, 0x0a, 0x18, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, + 0x2e, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x2e, 0x76, 0x32, 0x42, 0x0b, 0x4d, + 0x61, 0x72, 0x6b, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x31, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, + 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2f, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x6d, 0x61, 0x70, + 0x2f, 0x76, 0x32, 0x3b, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x76, 0x32, 0xa2, + 0x02, 0x03, 0x43, 0x4d, 0x58, 0xaa, 0x02, 0x14, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, + 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x2e, 0x56, 0x32, 0xca, 0x02, 0x14, 0x43, + 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x5c, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x6d, 0x61, 0x70, + 0x5c, 0x56, 0x32, 0xe2, 0x02, 0x20, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x5c, 0x4d, 0x61, + 0x72, 0x6b, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x5c, 0x56, 0x32, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x16, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, + 0x3a, 0x3a, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x3a, 0x3a, 0x56, 0x32, 0x62, + 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_connect_marketmap_v2_market_proto_rawDescOnce sync.Once + file_connect_marketmap_v2_market_proto_rawDescData = file_connect_marketmap_v2_market_proto_rawDesc +) + +func file_connect_marketmap_v2_market_proto_rawDescGZIP() []byte { + file_connect_marketmap_v2_market_proto_rawDescOnce.Do(func() { + file_connect_marketmap_v2_market_proto_rawDescData = protoimpl.X.CompressGZIP(file_connect_marketmap_v2_market_proto_rawDescData) + }) + return file_connect_marketmap_v2_market_proto_rawDescData +} + +var file_connect_marketmap_v2_market_proto_msgTypes = make([]protoimpl.MessageInfo, 5) +var file_connect_marketmap_v2_market_proto_goTypes = []interface{}{ + (*Market)(nil), // 0: connect.marketmap.v2.Market + (*Ticker)(nil), // 1: connect.marketmap.v2.Ticker + (*ProviderConfig)(nil), // 2: connect.marketmap.v2.ProviderConfig + (*MarketMap)(nil), // 3: connect.marketmap.v2.MarketMap + nil, // 4: connect.marketmap.v2.MarketMap.MarketsEntry + (*v2.CurrencyPair)(nil), // 5: connect.types.v2.CurrencyPair +} +var file_connect_marketmap_v2_market_proto_depIdxs = []int32{ + 1, // 0: connect.marketmap.v2.Market.ticker:type_name -> connect.marketmap.v2.Ticker + 2, // 1: connect.marketmap.v2.Market.provider_configs:type_name -> connect.marketmap.v2.ProviderConfig + 5, // 2: connect.marketmap.v2.Ticker.currency_pair:type_name -> connect.types.v2.CurrencyPair + 5, // 3: connect.marketmap.v2.ProviderConfig.normalize_by_pair:type_name -> connect.types.v2.CurrencyPair + 4, // 4: connect.marketmap.v2.MarketMap.markets:type_name -> connect.marketmap.v2.MarketMap.MarketsEntry + 0, // 5: connect.marketmap.v2.MarketMap.MarketsEntry.value:type_name -> connect.marketmap.v2.Market + 6, // [6:6] is the sub-list for method output_type + 6, // [6:6] is the sub-list for method input_type + 6, // [6:6] is the sub-list for extension type_name + 6, // [6:6] is the sub-list for extension extendee + 0, // [0:6] is the sub-list for field type_name +} + +func init() { file_connect_marketmap_v2_market_proto_init() } +func file_connect_marketmap_v2_market_proto_init() { + if File_connect_marketmap_v2_market_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_connect_marketmap_v2_market_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Market); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_connect_marketmap_v2_market_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Ticker); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_connect_marketmap_v2_market_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProviderConfig); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_connect_marketmap_v2_market_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MarketMap); 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_connect_marketmap_v2_market_proto_rawDesc, + NumEnums: 0, + NumMessages: 5, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_connect_marketmap_v2_market_proto_goTypes, + DependencyIndexes: file_connect_marketmap_v2_market_proto_depIdxs, + MessageInfos: file_connect_marketmap_v2_market_proto_msgTypes, + }.Build() + File_connect_marketmap_v2_market_proto = out.File + file_connect_marketmap_v2_market_proto_rawDesc = nil + file_connect_marketmap_v2_market_proto_goTypes = nil + file_connect_marketmap_v2_market_proto_depIdxs = nil +} diff --git a/api/connect/marketmap/v2/params.pulsar.go b/api/connect/marketmap/v2/params.pulsar.go new file mode 100644 index 000000000..a5eb5fc3a --- /dev/null +++ b/api/connect/marketmap/v2/params.pulsar.go @@ -0,0 +1,708 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package marketmapv2 + +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 _ protoreflect.List = (*_Params_1_list)(nil) + +type _Params_1_list struct { + list *[]string +} + +func (x *_Params_1_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_Params_1_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfString((*x.list)[i]) +} + +func (x *_Params_1_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.String() + concreteValue := valueUnwrapped + (*x.list)[i] = concreteValue +} + +func (x *_Params_1_list) Append(value protoreflect.Value) { + valueUnwrapped := value.String() + concreteValue := valueUnwrapped + *x.list = append(*x.list, concreteValue) +} + +func (x *_Params_1_list) AppendMutable() protoreflect.Value { + panic(fmt.Errorf("AppendMutable can not be called on message Params at list field MarketAuthorities as it is not of Message kind")) +} + +func (x *_Params_1_list) Truncate(n int) { + *x.list = (*x.list)[:n] +} + +func (x *_Params_1_list) NewElement() protoreflect.Value { + v := "" + return protoreflect.ValueOfString(v) +} + +func (x *_Params_1_list) IsValid() bool { + return x.list != nil +} + +var ( + md_Params protoreflect.MessageDescriptor + fd_Params_market_authorities protoreflect.FieldDescriptor + fd_Params_admin protoreflect.FieldDescriptor +) + +func init() { + file_connect_marketmap_v2_params_proto_init() + md_Params = File_connect_marketmap_v2_params_proto.Messages().ByName("Params") + fd_Params_market_authorities = md_Params.Fields().ByName("market_authorities") + fd_Params_admin = md_Params.Fields().ByName("admin") +} + +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_connect_marketmap_v2_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) { + if len(x.MarketAuthorities) != 0 { + value := protoreflect.ValueOfList(&_Params_1_list{list: &x.MarketAuthorities}) + if !f(fd_Params_market_authorities, value) { + return + } + } + if x.Admin != "" { + value := protoreflect.ValueOfString(x.Admin) + if !f(fd_Params_admin, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_Params) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "connect.marketmap.v2.Params.market_authorities": + return len(x.MarketAuthorities) != 0 + case "connect.marketmap.v2.Params.admin": + return x.Admin != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.Params")) + } + panic(fmt.Errorf("message connect.marketmap.v2.Params does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_Params) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "connect.marketmap.v2.Params.market_authorities": + x.MarketAuthorities = nil + case "connect.marketmap.v2.Params.admin": + x.Admin = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.Params")) + } + panic(fmt.Errorf("message connect.marketmap.v2.Params does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_Params) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "connect.marketmap.v2.Params.market_authorities": + if len(x.MarketAuthorities) == 0 { + return protoreflect.ValueOfList(&_Params_1_list{}) + } + listValue := &_Params_1_list{list: &x.MarketAuthorities} + return protoreflect.ValueOfList(listValue) + case "connect.marketmap.v2.Params.admin": + value := x.Admin + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.Params")) + } + panic(fmt.Errorf("message connect.marketmap.v2.Params does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_Params) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "connect.marketmap.v2.Params.market_authorities": + lv := value.List() + clv := lv.(*_Params_1_list) + x.MarketAuthorities = *clv.list + case "connect.marketmap.v2.Params.admin": + x.Admin = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.Params")) + } + panic(fmt.Errorf("message connect.marketmap.v2.Params does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_Params) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "connect.marketmap.v2.Params.market_authorities": + if x.MarketAuthorities == nil { + x.MarketAuthorities = []string{} + } + value := &_Params_1_list{list: &x.MarketAuthorities} + return protoreflect.ValueOfList(value) + case "connect.marketmap.v2.Params.admin": + panic(fmt.Errorf("field admin of message connect.marketmap.v2.Params is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.Params")) + } + panic(fmt.Errorf("message connect.marketmap.v2.Params does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_Params) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "connect.marketmap.v2.Params.market_authorities": + list := []string{} + return protoreflect.ValueOfList(&_Params_1_list{list: &list}) + case "connect.marketmap.v2.Params.admin": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.Params")) + } + panic(fmt.Errorf("message connect.marketmap.v2.Params does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_Params) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in connect.marketmap.v2.Params", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_Params) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_Params) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_Params) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*Params) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if len(x.MarketAuthorities) > 0 { + for _, s := range x.MarketAuthorities { + l = len(s) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + l = len(x.Admin) + 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().(*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 len(x.Admin) > 0 { + i -= len(x.Admin) + copy(dAtA[i:], x.Admin) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Admin))) + i-- + dAtA[i] = 0x12 + } + if len(x.MarketAuthorities) > 0 { + for iNdEx := len(x.MarketAuthorities) - 1; iNdEx >= 0; iNdEx-- { + i -= len(x.MarketAuthorities[iNdEx]) + copy(dAtA[i:], x.MarketAuthorities[iNdEx]) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.MarketAuthorities[iNdEx]))) + i-- + dAtA[i] = 0xa + } + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*Params) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Params: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MarketAuthorities", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.MarketAuthorities = append(x.MarketAuthorities, 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 Admin", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Admin = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.0 +// protoc (unknown) +// source: connect/marketmap/v2/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 x/marketmap module. +type Params struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // MarketAuthorities is the list of authority accounts that are able to + // control updating the marketmap. + MarketAuthorities []string `protobuf:"bytes,1,rep,name=market_authorities,json=marketAuthorities,proto3" json:"market_authorities,omitempty"` + // Admin is an address that can remove addresses from the MarketAuthorities + // list. Only governance can add to the MarketAuthorities or change the Admin. + Admin string `protobuf:"bytes,2,opt,name=admin,proto3" json:"admin,omitempty"` +} + +func (x *Params) Reset() { + *x = Params{} + if protoimpl.UnsafeEnabled { + mi := &file_connect_marketmap_v2_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_connect_marketmap_v2_params_proto_rawDescGZIP(), []int{0} +} + +func (x *Params) GetMarketAuthorities() []string { + if x != nil { + return x.MarketAuthorities + } + return nil +} + +func (x *Params) GetAdmin() string { + if x != nil { + return x.Admin + } + return "" +} + +var File_connect_marketmap_v2_params_proto protoreflect.FileDescriptor + +var file_connect_marketmap_v2_params_proto_rawDesc = []byte{ + 0x0a, 0x21, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2f, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, + 0x6d, 0x61, 0x70, 0x2f, 0x76, 0x32, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x6d, 0x61, 0x72, + 0x6b, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x2e, 0x76, 0x32, 0x22, 0x4d, 0x0a, 0x06, 0x50, 0x61, 0x72, + 0x61, 0x6d, 0x73, 0x12, 0x2d, 0x0a, 0x12, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5f, 0x61, 0x75, + 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, + 0x11, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x69, + 0x65, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x42, 0xcc, 0x01, 0x0a, 0x18, 0x63, 0x6f, 0x6d, + 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x6d, + 0x61, 0x70, 0x2e, 0x76, 0x32, 0x42, 0x0b, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x50, 0x72, 0x6f, + 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x31, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, + 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2f, 0x6d, + 0x61, 0x72, 0x6b, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x2f, 0x76, 0x32, 0x3b, 0x6d, 0x61, 0x72, 0x6b, + 0x65, 0x74, 0x6d, 0x61, 0x70, 0x76, 0x32, 0xa2, 0x02, 0x03, 0x43, 0x4d, 0x58, 0xaa, 0x02, 0x14, + 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x6d, 0x61, + 0x70, 0x2e, 0x56, 0x32, 0xca, 0x02, 0x14, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x5c, 0x4d, + 0x61, 0x72, 0x6b, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x5c, 0x56, 0x32, 0xe2, 0x02, 0x20, 0x43, 0x6f, + 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x5c, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x5c, + 0x56, 0x32, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, + 0x16, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x3a, 0x3a, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, + 0x6d, 0x61, 0x70, 0x3a, 0x3a, 0x56, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_connect_marketmap_v2_params_proto_rawDescOnce sync.Once + file_connect_marketmap_v2_params_proto_rawDescData = file_connect_marketmap_v2_params_proto_rawDesc +) + +func file_connect_marketmap_v2_params_proto_rawDescGZIP() []byte { + file_connect_marketmap_v2_params_proto_rawDescOnce.Do(func() { + file_connect_marketmap_v2_params_proto_rawDescData = protoimpl.X.CompressGZIP(file_connect_marketmap_v2_params_proto_rawDescData) + }) + return file_connect_marketmap_v2_params_proto_rawDescData +} + +var file_connect_marketmap_v2_params_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_connect_marketmap_v2_params_proto_goTypes = []interface{}{ + (*Params)(nil), // 0: connect.marketmap.v2.Params +} +var file_connect_marketmap_v2_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_connect_marketmap_v2_params_proto_init() } +func file_connect_marketmap_v2_params_proto_init() { + if File_connect_marketmap_v2_params_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_connect_marketmap_v2_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_connect_marketmap_v2_params_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_connect_marketmap_v2_params_proto_goTypes, + DependencyIndexes: file_connect_marketmap_v2_params_proto_depIdxs, + MessageInfos: file_connect_marketmap_v2_params_proto_msgTypes, + }.Build() + File_connect_marketmap_v2_params_proto = out.File + file_connect_marketmap_v2_params_proto_rawDesc = nil + file_connect_marketmap_v2_params_proto_goTypes = nil + file_connect_marketmap_v2_params_proto_depIdxs = nil +} diff --git a/api/connect/marketmap/v2/query.pulsar.go b/api/connect/marketmap/v2/query.pulsar.go new file mode 100644 index 000000000..3760ec538 --- /dev/null +++ b/api/connect/marketmap/v2/query.pulsar.go @@ -0,0 +1,3913 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package marketmapv2 + +import ( + fmt "fmt" + runtime "github.com/cosmos/cosmos-proto/runtime" + _ "github.com/cosmos/gogoproto/gogoproto" + v2 "github.com/skip-mev/connect/v2/api/connect/types/v2" + _ "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_MarketMapRequest protoreflect.MessageDescriptor +) + +func init() { + file_connect_marketmap_v2_query_proto_init() + md_MarketMapRequest = File_connect_marketmap_v2_query_proto.Messages().ByName("MarketMapRequest") +} + +var _ protoreflect.Message = (*fastReflection_MarketMapRequest)(nil) + +type fastReflection_MarketMapRequest MarketMapRequest + +func (x *MarketMapRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_MarketMapRequest)(x) +} + +func (x *MarketMapRequest) slowProtoReflect() protoreflect.Message { + mi := &file_connect_marketmap_v2_query_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_MarketMapRequest_messageType fastReflection_MarketMapRequest_messageType +var _ protoreflect.MessageType = fastReflection_MarketMapRequest_messageType{} + +type fastReflection_MarketMapRequest_messageType struct{} + +func (x fastReflection_MarketMapRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_MarketMapRequest)(nil) +} +func (x fastReflection_MarketMapRequest_messageType) New() protoreflect.Message { + return new(fastReflection_MarketMapRequest) +} +func (x fastReflection_MarketMapRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MarketMapRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MarketMapRequest) Descriptor() protoreflect.MessageDescriptor { + return md_MarketMapRequest +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_MarketMapRequest) Type() protoreflect.MessageType { + return _fastReflection_MarketMapRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MarketMapRequest) New() protoreflect.Message { + return new(fastReflection_MarketMapRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MarketMapRequest) Interface() protoreflect.ProtoMessage { + return (*MarketMapRequest)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_MarketMapRequest) 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_MarketMapRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MarketMapRequest")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MarketMapRequest does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MarketMapRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MarketMapRequest")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MarketMapRequest does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_MarketMapRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MarketMapRequest")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MarketMapRequest does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MarketMapRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MarketMapRequest")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MarketMapRequest does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MarketMapRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MarketMapRequest")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MarketMapRequest does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_MarketMapRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MarketMapRequest")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MarketMapRequest does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_MarketMapRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in connect.marketmap.v2.MarketMapRequest", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_MarketMapRequest) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MarketMapRequest) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_MarketMapRequest) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_MarketMapRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MarketMapRequest) + 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().(*MarketMapRequest) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]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().(*MarketMapRequest) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MarketMapRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MarketMapRequest: 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_MarketMapResponse protoreflect.MessageDescriptor + fd_MarketMapResponse_market_map protoreflect.FieldDescriptor + fd_MarketMapResponse_last_updated protoreflect.FieldDescriptor + fd_MarketMapResponse_chain_id protoreflect.FieldDescriptor +) + +func init() { + file_connect_marketmap_v2_query_proto_init() + md_MarketMapResponse = File_connect_marketmap_v2_query_proto.Messages().ByName("MarketMapResponse") + fd_MarketMapResponse_market_map = md_MarketMapResponse.Fields().ByName("market_map") + fd_MarketMapResponse_last_updated = md_MarketMapResponse.Fields().ByName("last_updated") + fd_MarketMapResponse_chain_id = md_MarketMapResponse.Fields().ByName("chain_id") +} + +var _ protoreflect.Message = (*fastReflection_MarketMapResponse)(nil) + +type fastReflection_MarketMapResponse MarketMapResponse + +func (x *MarketMapResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MarketMapResponse)(x) +} + +func (x *MarketMapResponse) slowProtoReflect() protoreflect.Message { + mi := &file_connect_marketmap_v2_query_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_MarketMapResponse_messageType fastReflection_MarketMapResponse_messageType +var _ protoreflect.MessageType = fastReflection_MarketMapResponse_messageType{} + +type fastReflection_MarketMapResponse_messageType struct{} + +func (x fastReflection_MarketMapResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MarketMapResponse)(nil) +} +func (x fastReflection_MarketMapResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MarketMapResponse) +} +func (x fastReflection_MarketMapResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MarketMapResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MarketMapResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MarketMapResponse +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_MarketMapResponse) Type() protoreflect.MessageType { + return _fastReflection_MarketMapResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MarketMapResponse) New() protoreflect.Message { + return new(fastReflection_MarketMapResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MarketMapResponse) Interface() protoreflect.ProtoMessage { + return (*MarketMapResponse)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_MarketMapResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.MarketMap != nil { + value := protoreflect.ValueOfMessage(x.MarketMap.ProtoReflect()) + if !f(fd_MarketMapResponse_market_map, value) { + return + } + } + if x.LastUpdated != uint64(0) { + value := protoreflect.ValueOfUint64(x.LastUpdated) + if !f(fd_MarketMapResponse_last_updated, value) { + return + } + } + if x.ChainId != "" { + value := protoreflect.ValueOfString(x.ChainId) + if !f(fd_MarketMapResponse_chain_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_MarketMapResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "connect.marketmap.v2.MarketMapResponse.market_map": + return x.MarketMap != nil + case "connect.marketmap.v2.MarketMapResponse.last_updated": + return x.LastUpdated != uint64(0) + case "connect.marketmap.v2.MarketMapResponse.chain_id": + return x.ChainId != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MarketMapResponse")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MarketMapResponse does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MarketMapResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "connect.marketmap.v2.MarketMapResponse.market_map": + x.MarketMap = nil + case "connect.marketmap.v2.MarketMapResponse.last_updated": + x.LastUpdated = uint64(0) + case "connect.marketmap.v2.MarketMapResponse.chain_id": + x.ChainId = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MarketMapResponse")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MarketMapResponse does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_MarketMapResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "connect.marketmap.v2.MarketMapResponse.market_map": + value := x.MarketMap + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "connect.marketmap.v2.MarketMapResponse.last_updated": + value := x.LastUpdated + return protoreflect.ValueOfUint64(value) + case "connect.marketmap.v2.MarketMapResponse.chain_id": + value := x.ChainId + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MarketMapResponse")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MarketMapResponse does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MarketMapResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "connect.marketmap.v2.MarketMapResponse.market_map": + x.MarketMap = value.Message().Interface().(*MarketMap) + case "connect.marketmap.v2.MarketMapResponse.last_updated": + x.LastUpdated = value.Uint() + case "connect.marketmap.v2.MarketMapResponse.chain_id": + x.ChainId = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MarketMapResponse")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MarketMapResponse does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MarketMapResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "connect.marketmap.v2.MarketMapResponse.market_map": + if x.MarketMap == nil { + x.MarketMap = new(MarketMap) + } + return protoreflect.ValueOfMessage(x.MarketMap.ProtoReflect()) + case "connect.marketmap.v2.MarketMapResponse.last_updated": + panic(fmt.Errorf("field last_updated of message connect.marketmap.v2.MarketMapResponse is not mutable")) + case "connect.marketmap.v2.MarketMapResponse.chain_id": + panic(fmt.Errorf("field chain_id of message connect.marketmap.v2.MarketMapResponse is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MarketMapResponse")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MarketMapResponse does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_MarketMapResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "connect.marketmap.v2.MarketMapResponse.market_map": + m := new(MarketMap) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "connect.marketmap.v2.MarketMapResponse.last_updated": + return protoreflect.ValueOfUint64(uint64(0)) + case "connect.marketmap.v2.MarketMapResponse.chain_id": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MarketMapResponse")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MarketMapResponse does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_MarketMapResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in connect.marketmap.v2.MarketMapResponse", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_MarketMapResponse) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MarketMapResponse) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_MarketMapResponse) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_MarketMapResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MarketMapResponse) + 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.MarketMap != nil { + l = options.Size(x.MarketMap) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.LastUpdated != 0 { + n += 1 + runtime.Sov(uint64(x.LastUpdated)) + } + l = len(x.ChainId) + 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().(*MarketMapResponse) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]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.ChainId) > 0 { + i -= len(x.ChainId) + copy(dAtA[i:], x.ChainId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ChainId))) + i-- + dAtA[i] = 0x1a + } + if x.LastUpdated != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.LastUpdated)) + i-- + dAtA[i] = 0x10 + } + if x.MarketMap != nil { + encoded, err := options.Marshal(x.MarketMap) + 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().(*MarketMapResponse) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MarketMapResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MarketMapResponse: 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 MarketMap", 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.MarketMap == nil { + x.MarketMap = &MarketMap{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.MarketMap); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field LastUpdated", wireType) + } + x.LastUpdated = 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.LastUpdated |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.ChainId = 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_MarketRequest protoreflect.MessageDescriptor + fd_MarketRequest_currency_pair protoreflect.FieldDescriptor +) + +func init() { + file_connect_marketmap_v2_query_proto_init() + md_MarketRequest = File_connect_marketmap_v2_query_proto.Messages().ByName("MarketRequest") + fd_MarketRequest_currency_pair = md_MarketRequest.Fields().ByName("currency_pair") +} + +var _ protoreflect.Message = (*fastReflection_MarketRequest)(nil) + +type fastReflection_MarketRequest MarketRequest + +func (x *MarketRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_MarketRequest)(x) +} + +func (x *MarketRequest) slowProtoReflect() protoreflect.Message { + mi := &file_connect_marketmap_v2_query_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_MarketRequest_messageType fastReflection_MarketRequest_messageType +var _ protoreflect.MessageType = fastReflection_MarketRequest_messageType{} + +type fastReflection_MarketRequest_messageType struct{} + +func (x fastReflection_MarketRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_MarketRequest)(nil) +} +func (x fastReflection_MarketRequest_messageType) New() protoreflect.Message { + return new(fastReflection_MarketRequest) +} +func (x fastReflection_MarketRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MarketRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MarketRequest) Descriptor() protoreflect.MessageDescriptor { + return md_MarketRequest +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_MarketRequest) Type() protoreflect.MessageType { + return _fastReflection_MarketRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MarketRequest) New() protoreflect.Message { + return new(fastReflection_MarketRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MarketRequest) Interface() protoreflect.ProtoMessage { + return (*MarketRequest)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_MarketRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.CurrencyPair != nil { + value := protoreflect.ValueOfMessage(x.CurrencyPair.ProtoReflect()) + if !f(fd_MarketRequest_currency_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_MarketRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "connect.marketmap.v2.MarketRequest.currency_pair": + return x.CurrencyPair != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MarketRequest")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MarketRequest does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MarketRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "connect.marketmap.v2.MarketRequest.currency_pair": + x.CurrencyPair = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MarketRequest")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MarketRequest does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_MarketRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "connect.marketmap.v2.MarketRequest.currency_pair": + value := x.CurrencyPair + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MarketRequest")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MarketRequest does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MarketRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "connect.marketmap.v2.MarketRequest.currency_pair": + x.CurrencyPair = value.Message().Interface().(*v2.CurrencyPair) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MarketRequest")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MarketRequest does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MarketRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "connect.marketmap.v2.MarketRequest.currency_pair": + if x.CurrencyPair == nil { + x.CurrencyPair = new(v2.CurrencyPair) + } + return protoreflect.ValueOfMessage(x.CurrencyPair.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MarketRequest")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MarketRequest does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_MarketRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "connect.marketmap.v2.MarketRequest.currency_pair": + m := new(v2.CurrencyPair) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MarketRequest")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MarketRequest does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_MarketRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in connect.marketmap.v2.MarketRequest", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_MarketRequest) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MarketRequest) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_MarketRequest) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_MarketRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MarketRequest) + 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.CurrencyPair != nil { + l = options.Size(x.CurrencyPair) + 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().(*MarketRequest) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]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.CurrencyPair != nil { + encoded, err := options.Marshal(x.CurrencyPair) + 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().(*MarketRequest) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MarketRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MarketRequest: 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 CurrencyPair", 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.CurrencyPair == nil { + x.CurrencyPair = &v2.CurrencyPair{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.CurrencyPair); 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_MarketResponse protoreflect.MessageDescriptor + fd_MarketResponse_market protoreflect.FieldDescriptor +) + +func init() { + file_connect_marketmap_v2_query_proto_init() + md_MarketResponse = File_connect_marketmap_v2_query_proto.Messages().ByName("MarketResponse") + fd_MarketResponse_market = md_MarketResponse.Fields().ByName("market") +} + +var _ protoreflect.Message = (*fastReflection_MarketResponse)(nil) + +type fastReflection_MarketResponse MarketResponse + +func (x *MarketResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MarketResponse)(x) +} + +func (x *MarketResponse) slowProtoReflect() protoreflect.Message { + mi := &file_connect_marketmap_v2_query_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_MarketResponse_messageType fastReflection_MarketResponse_messageType +var _ protoreflect.MessageType = fastReflection_MarketResponse_messageType{} + +type fastReflection_MarketResponse_messageType struct{} + +func (x fastReflection_MarketResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MarketResponse)(nil) +} +func (x fastReflection_MarketResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MarketResponse) +} +func (x fastReflection_MarketResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MarketResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MarketResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MarketResponse +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_MarketResponse) Type() protoreflect.MessageType { + return _fastReflection_MarketResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MarketResponse) New() protoreflect.Message { + return new(fastReflection_MarketResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MarketResponse) Interface() protoreflect.ProtoMessage { + return (*MarketResponse)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_MarketResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Market != nil { + value := protoreflect.ValueOfMessage(x.Market.ProtoReflect()) + if !f(fd_MarketResponse_market, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_MarketResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "connect.marketmap.v2.MarketResponse.market": + return x.Market != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MarketResponse")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MarketResponse does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MarketResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "connect.marketmap.v2.MarketResponse.market": + x.Market = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MarketResponse")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MarketResponse does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_MarketResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "connect.marketmap.v2.MarketResponse.market": + value := x.Market + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MarketResponse")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MarketResponse does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MarketResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "connect.marketmap.v2.MarketResponse.market": + x.Market = value.Message().Interface().(*Market) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MarketResponse")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MarketResponse does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MarketResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "connect.marketmap.v2.MarketResponse.market": + if x.Market == nil { + x.Market = new(Market) + } + return protoreflect.ValueOfMessage(x.Market.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MarketResponse")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MarketResponse does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_MarketResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "connect.marketmap.v2.MarketResponse.market": + m := new(Market) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MarketResponse")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MarketResponse does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_MarketResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in connect.marketmap.v2.MarketResponse", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_MarketResponse) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MarketResponse) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_MarketResponse) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_MarketResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MarketResponse) + 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.Market != nil { + l = options.Size(x.Market) + 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().(*MarketResponse) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]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.Market != nil { + encoded, err := options.Marshal(x.Market) + 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().(*MarketResponse) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MarketResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MarketResponse: 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 Market", 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.Market == nil { + x.Market = &Market{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Market); 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_ParamsRequest protoreflect.MessageDescriptor +) + +func init() { + file_connect_marketmap_v2_query_proto_init() + md_ParamsRequest = File_connect_marketmap_v2_query_proto.Messages().ByName("ParamsRequest") +} + +var _ protoreflect.Message = (*fastReflection_ParamsRequest)(nil) + +type fastReflection_ParamsRequest ParamsRequest + +func (x *ParamsRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_ParamsRequest)(x) +} + +func (x *ParamsRequest) slowProtoReflect() protoreflect.Message { + mi := &file_connect_marketmap_v2_query_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_ParamsRequest_messageType fastReflection_ParamsRequest_messageType +var _ protoreflect.MessageType = fastReflection_ParamsRequest_messageType{} + +type fastReflection_ParamsRequest_messageType struct{} + +func (x fastReflection_ParamsRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_ParamsRequest)(nil) +} +func (x fastReflection_ParamsRequest_messageType) New() protoreflect.Message { + return new(fastReflection_ParamsRequest) +} +func (x fastReflection_ParamsRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_ParamsRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_ParamsRequest) Descriptor() protoreflect.MessageDescriptor { + return md_ParamsRequest +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_ParamsRequest) Type() protoreflect.MessageType { + return _fastReflection_ParamsRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_ParamsRequest) New() protoreflect.Message { + return new(fastReflection_ParamsRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_ParamsRequest) Interface() protoreflect.ProtoMessage { + return (*ParamsRequest)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_ParamsRequest) 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_ParamsRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.ParamsRequest")) + } + panic(fmt.Errorf("message connect.marketmap.v2.ParamsRequest does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_ParamsRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.ParamsRequest")) + } + panic(fmt.Errorf("message connect.marketmap.v2.ParamsRequest does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_ParamsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.ParamsRequest")) + } + panic(fmt.Errorf("message connect.marketmap.v2.ParamsRequest does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_ParamsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.ParamsRequest")) + } + panic(fmt.Errorf("message connect.marketmap.v2.ParamsRequest does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_ParamsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.ParamsRequest")) + } + panic(fmt.Errorf("message connect.marketmap.v2.ParamsRequest does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_ParamsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.ParamsRequest")) + } + panic(fmt.Errorf("message connect.marketmap.v2.ParamsRequest does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_ParamsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in connect.marketmap.v2.ParamsRequest", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_ParamsRequest) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_ParamsRequest) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_ParamsRequest) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_ParamsRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*ParamsRequest) + 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().(*ParamsRequest) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]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().(*ParamsRequest) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ParamsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ParamsRequest: 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_ParamsResponse protoreflect.MessageDescriptor + fd_ParamsResponse_params protoreflect.FieldDescriptor +) + +func init() { + file_connect_marketmap_v2_query_proto_init() + md_ParamsResponse = File_connect_marketmap_v2_query_proto.Messages().ByName("ParamsResponse") + fd_ParamsResponse_params = md_ParamsResponse.Fields().ByName("params") +} + +var _ protoreflect.Message = (*fastReflection_ParamsResponse)(nil) + +type fastReflection_ParamsResponse ParamsResponse + +func (x *ParamsResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_ParamsResponse)(x) +} + +func (x *ParamsResponse) slowProtoReflect() protoreflect.Message { + mi := &file_connect_marketmap_v2_query_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_ParamsResponse_messageType fastReflection_ParamsResponse_messageType +var _ protoreflect.MessageType = fastReflection_ParamsResponse_messageType{} + +type fastReflection_ParamsResponse_messageType struct{} + +func (x fastReflection_ParamsResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_ParamsResponse)(nil) +} +func (x fastReflection_ParamsResponse_messageType) New() protoreflect.Message { + return new(fastReflection_ParamsResponse) +} +func (x fastReflection_ParamsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_ParamsResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_ParamsResponse) Descriptor() protoreflect.MessageDescriptor { + return md_ParamsResponse +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_ParamsResponse) Type() protoreflect.MessageType { + return _fastReflection_ParamsResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_ParamsResponse) New() protoreflect.Message { + return new(fastReflection_ParamsResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_ParamsResponse) Interface() protoreflect.ProtoMessage { + return (*ParamsResponse)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_ParamsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Params != nil { + value := protoreflect.ValueOfMessage(x.Params.ProtoReflect()) + if !f(fd_ParamsResponse_params, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_ParamsResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "connect.marketmap.v2.ParamsResponse.params": + return x.Params != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.ParamsResponse")) + } + panic(fmt.Errorf("message connect.marketmap.v2.ParamsResponse does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_ParamsResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "connect.marketmap.v2.ParamsResponse.params": + x.Params = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.ParamsResponse")) + } + panic(fmt.Errorf("message connect.marketmap.v2.ParamsResponse does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_ParamsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "connect.marketmap.v2.ParamsResponse.params": + value := x.Params + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.ParamsResponse")) + } + panic(fmt.Errorf("message connect.marketmap.v2.ParamsResponse does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_ParamsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "connect.marketmap.v2.ParamsResponse.params": + x.Params = value.Message().Interface().(*Params) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.ParamsResponse")) + } + panic(fmt.Errorf("message connect.marketmap.v2.ParamsResponse does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_ParamsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "connect.marketmap.v2.ParamsResponse.params": + if x.Params == nil { + x.Params = new(Params) + } + return protoreflect.ValueOfMessage(x.Params.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.ParamsResponse")) + } + panic(fmt.Errorf("message connect.marketmap.v2.ParamsResponse does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_ParamsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "connect.marketmap.v2.ParamsResponse.params": + m := new(Params) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.ParamsResponse")) + } + panic(fmt.Errorf("message connect.marketmap.v2.ParamsResponse does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_ParamsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in connect.marketmap.v2.ParamsResponse", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_ParamsResponse) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_ParamsResponse) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_ParamsResponse) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_ParamsResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*ParamsResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.Params != nil { + l = options.Size(x.Params) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*ParamsResponse) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if x.Params != nil { + encoded, err := options.Marshal(x.Params) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*ParamsResponse) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ParamsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.Params == nil { + x.Params = &Params{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Params); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_LastUpdatedRequest protoreflect.MessageDescriptor +) + +func init() { + file_connect_marketmap_v2_query_proto_init() + md_LastUpdatedRequest = File_connect_marketmap_v2_query_proto.Messages().ByName("LastUpdatedRequest") +} + +var _ protoreflect.Message = (*fastReflection_LastUpdatedRequest)(nil) + +type fastReflection_LastUpdatedRequest LastUpdatedRequest + +func (x *LastUpdatedRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_LastUpdatedRequest)(x) +} + +func (x *LastUpdatedRequest) slowProtoReflect() protoreflect.Message { + mi := &file_connect_marketmap_v2_query_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_LastUpdatedRequest_messageType fastReflection_LastUpdatedRequest_messageType +var _ protoreflect.MessageType = fastReflection_LastUpdatedRequest_messageType{} + +type fastReflection_LastUpdatedRequest_messageType struct{} + +func (x fastReflection_LastUpdatedRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_LastUpdatedRequest)(nil) +} +func (x fastReflection_LastUpdatedRequest_messageType) New() protoreflect.Message { + return new(fastReflection_LastUpdatedRequest) +} +func (x fastReflection_LastUpdatedRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_LastUpdatedRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_LastUpdatedRequest) Descriptor() protoreflect.MessageDescriptor { + return md_LastUpdatedRequest +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_LastUpdatedRequest) Type() protoreflect.MessageType { + return _fastReflection_LastUpdatedRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_LastUpdatedRequest) New() protoreflect.Message { + return new(fastReflection_LastUpdatedRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_LastUpdatedRequest) Interface() protoreflect.ProtoMessage { + return (*LastUpdatedRequest)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_LastUpdatedRequest) 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_LastUpdatedRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.LastUpdatedRequest")) + } + panic(fmt.Errorf("message connect.marketmap.v2.LastUpdatedRequest does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_LastUpdatedRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.LastUpdatedRequest")) + } + panic(fmt.Errorf("message connect.marketmap.v2.LastUpdatedRequest does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_LastUpdatedRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.LastUpdatedRequest")) + } + panic(fmt.Errorf("message connect.marketmap.v2.LastUpdatedRequest does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_LastUpdatedRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.LastUpdatedRequest")) + } + panic(fmt.Errorf("message connect.marketmap.v2.LastUpdatedRequest does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_LastUpdatedRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.LastUpdatedRequest")) + } + panic(fmt.Errorf("message connect.marketmap.v2.LastUpdatedRequest does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_LastUpdatedRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.LastUpdatedRequest")) + } + panic(fmt.Errorf("message connect.marketmap.v2.LastUpdatedRequest does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_LastUpdatedRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in connect.marketmap.v2.LastUpdatedRequest", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_LastUpdatedRequest) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_LastUpdatedRequest) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_LastUpdatedRequest) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_LastUpdatedRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*LastUpdatedRequest) + 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().(*LastUpdatedRequest) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]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().(*LastUpdatedRequest) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: LastUpdatedRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: LastUpdatedRequest: 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_LastUpdatedResponse protoreflect.MessageDescriptor + fd_LastUpdatedResponse_last_updated protoreflect.FieldDescriptor +) + +func init() { + file_connect_marketmap_v2_query_proto_init() + md_LastUpdatedResponse = File_connect_marketmap_v2_query_proto.Messages().ByName("LastUpdatedResponse") + fd_LastUpdatedResponse_last_updated = md_LastUpdatedResponse.Fields().ByName("last_updated") +} + +var _ protoreflect.Message = (*fastReflection_LastUpdatedResponse)(nil) + +type fastReflection_LastUpdatedResponse LastUpdatedResponse + +func (x *LastUpdatedResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_LastUpdatedResponse)(x) +} + +func (x *LastUpdatedResponse) slowProtoReflect() protoreflect.Message { + mi := &file_connect_marketmap_v2_query_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_LastUpdatedResponse_messageType fastReflection_LastUpdatedResponse_messageType +var _ protoreflect.MessageType = fastReflection_LastUpdatedResponse_messageType{} + +type fastReflection_LastUpdatedResponse_messageType struct{} + +func (x fastReflection_LastUpdatedResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_LastUpdatedResponse)(nil) +} +func (x fastReflection_LastUpdatedResponse_messageType) New() protoreflect.Message { + return new(fastReflection_LastUpdatedResponse) +} +func (x fastReflection_LastUpdatedResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_LastUpdatedResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_LastUpdatedResponse) Descriptor() protoreflect.MessageDescriptor { + return md_LastUpdatedResponse +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_LastUpdatedResponse) Type() protoreflect.MessageType { + return _fastReflection_LastUpdatedResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_LastUpdatedResponse) New() protoreflect.Message { + return new(fastReflection_LastUpdatedResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_LastUpdatedResponse) Interface() protoreflect.ProtoMessage { + return (*LastUpdatedResponse)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_LastUpdatedResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.LastUpdated != uint64(0) { + value := protoreflect.ValueOfUint64(x.LastUpdated) + if !f(fd_LastUpdatedResponse_last_updated, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_LastUpdatedResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "connect.marketmap.v2.LastUpdatedResponse.last_updated": + return x.LastUpdated != uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.LastUpdatedResponse")) + } + panic(fmt.Errorf("message connect.marketmap.v2.LastUpdatedResponse does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_LastUpdatedResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "connect.marketmap.v2.LastUpdatedResponse.last_updated": + x.LastUpdated = uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.LastUpdatedResponse")) + } + panic(fmt.Errorf("message connect.marketmap.v2.LastUpdatedResponse does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_LastUpdatedResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "connect.marketmap.v2.LastUpdatedResponse.last_updated": + value := x.LastUpdated + return protoreflect.ValueOfUint64(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.LastUpdatedResponse")) + } + panic(fmt.Errorf("message connect.marketmap.v2.LastUpdatedResponse does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_LastUpdatedResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "connect.marketmap.v2.LastUpdatedResponse.last_updated": + x.LastUpdated = value.Uint() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.LastUpdatedResponse")) + } + panic(fmt.Errorf("message connect.marketmap.v2.LastUpdatedResponse does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_LastUpdatedResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "connect.marketmap.v2.LastUpdatedResponse.last_updated": + panic(fmt.Errorf("field last_updated of message connect.marketmap.v2.LastUpdatedResponse is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.LastUpdatedResponse")) + } + panic(fmt.Errorf("message connect.marketmap.v2.LastUpdatedResponse does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_LastUpdatedResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "connect.marketmap.v2.LastUpdatedResponse.last_updated": + return protoreflect.ValueOfUint64(uint64(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.LastUpdatedResponse")) + } + panic(fmt.Errorf("message connect.marketmap.v2.LastUpdatedResponse does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_LastUpdatedResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in connect.marketmap.v2.LastUpdatedResponse", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_LastUpdatedResponse) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_LastUpdatedResponse) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_LastUpdatedResponse) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_LastUpdatedResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*LastUpdatedResponse) + 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.LastUpdated != 0 { + n += 1 + runtime.Sov(uint64(x.LastUpdated)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*LastUpdatedResponse) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]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.LastUpdated != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.LastUpdated)) + 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().(*LastUpdatedResponse) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: LastUpdatedResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: LastUpdatedResponse: 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 LastUpdated", wireType) + } + x.LastUpdated = 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.LastUpdated |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.0 +// protoc (unknown) +// source: connect/marketmap/v2/query.proto + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// MarketMapRequest is the query request for the MarketMap query. +// It takes no arguments. +type MarketMapRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *MarketMapRequest) Reset() { + *x = MarketMapRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_connect_marketmap_v2_query_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MarketMapRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MarketMapRequest) ProtoMessage() {} + +// Deprecated: Use MarketMapRequest.ProtoReflect.Descriptor instead. +func (*MarketMapRequest) Descriptor() ([]byte, []int) { + return file_connect_marketmap_v2_query_proto_rawDescGZIP(), []int{0} +} + +// MarketMapResponse is the query response for the MarketMap query. +type MarketMapResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // MarketMap defines the global set of market configurations for all providers + // and markets. + MarketMap *MarketMap `protobuf:"bytes,1,opt,name=market_map,json=marketMap,proto3" json:"market_map,omitempty"` + // LastUpdated is the last block height that the market map was updated. + // This field can be used as an optimization for clients checking if there + // is a new update to the map. + LastUpdated uint64 `protobuf:"varint,2,opt,name=last_updated,json=lastUpdated,proto3" json:"last_updated,omitempty"` + // ChainId is the chain identifier for the market map. + ChainId string `protobuf:"bytes,3,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` +} + +func (x *MarketMapResponse) Reset() { + *x = MarketMapResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_connect_marketmap_v2_query_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MarketMapResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MarketMapResponse) ProtoMessage() {} + +// Deprecated: Use MarketMapResponse.ProtoReflect.Descriptor instead. +func (*MarketMapResponse) Descriptor() ([]byte, []int) { + return file_connect_marketmap_v2_query_proto_rawDescGZIP(), []int{1} +} + +func (x *MarketMapResponse) GetMarketMap() *MarketMap { + if x != nil { + return x.MarketMap + } + return nil +} + +func (x *MarketMapResponse) GetLastUpdated() uint64 { + if x != nil { + return x.LastUpdated + } + return 0 +} + +func (x *MarketMapResponse) GetChainId() string { + if x != nil { + return x.ChainId + } + return "" +} + +// MarketRequest is the query request for the Market query. +// It takes the currency pair of the market as an argument. +type MarketRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // CurrencyPair is the currency pair associated with the market being + // requested. + CurrencyPair *v2.CurrencyPair `protobuf:"bytes,1,opt,name=currency_pair,json=currencyPair,proto3" json:"currency_pair,omitempty"` +} + +func (x *MarketRequest) Reset() { + *x = MarketRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_connect_marketmap_v2_query_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MarketRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MarketRequest) ProtoMessage() {} + +// Deprecated: Use MarketRequest.ProtoReflect.Descriptor instead. +func (*MarketRequest) Descriptor() ([]byte, []int) { + return file_connect_marketmap_v2_query_proto_rawDescGZIP(), []int{2} +} + +func (x *MarketRequest) GetCurrencyPair() *v2.CurrencyPair { + if x != nil { + return x.CurrencyPair + } + return nil +} + +// MarketResponse is the query response for the Market query. +type MarketResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Market is the configuration of a single market to be price-fetched for. + Market *Market `protobuf:"bytes,1,opt,name=market,proto3" json:"market,omitempty"` +} + +func (x *MarketResponse) Reset() { + *x = MarketResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_connect_marketmap_v2_query_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MarketResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MarketResponse) ProtoMessage() {} + +// Deprecated: Use MarketResponse.ProtoReflect.Descriptor instead. +func (*MarketResponse) Descriptor() ([]byte, []int) { + return file_connect_marketmap_v2_query_proto_rawDescGZIP(), []int{3} +} + +func (x *MarketResponse) GetMarket() *Market { + if x != nil { + return x.Market + } + return nil +} + +// ParamsRequest is the request type for the Query/Params RPC method. +type ParamsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *ParamsRequest) Reset() { + *x = ParamsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_connect_marketmap_v2_query_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ParamsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ParamsRequest) ProtoMessage() {} + +// Deprecated: Use ParamsRequest.ProtoReflect.Descriptor instead. +func (*ParamsRequest) Descriptor() ([]byte, []int) { + return file_connect_marketmap_v2_query_proto_rawDescGZIP(), []int{4} +} + +// ParamsResponse is the response type for the Query/Params RPC method. +type ParamsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` +} + +func (x *ParamsResponse) Reset() { + *x = ParamsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_connect_marketmap_v2_query_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ParamsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ParamsResponse) ProtoMessage() {} + +// Deprecated: Use ParamsResponse.ProtoReflect.Descriptor instead. +func (*ParamsResponse) Descriptor() ([]byte, []int) { + return file_connect_marketmap_v2_query_proto_rawDescGZIP(), []int{5} +} + +func (x *ParamsResponse) GetParams() *Params { + if x != nil { + return x.Params + } + return nil +} + +// LastUpdatedRequest is the request type for the Query/LastUpdated RPC +// method. +type LastUpdatedRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *LastUpdatedRequest) Reset() { + *x = LastUpdatedRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_connect_marketmap_v2_query_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *LastUpdatedRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*LastUpdatedRequest) ProtoMessage() {} + +// Deprecated: Use LastUpdatedRequest.ProtoReflect.Descriptor instead. +func (*LastUpdatedRequest) Descriptor() ([]byte, []int) { + return file_connect_marketmap_v2_query_proto_rawDescGZIP(), []int{6} +} + +// LastUpdatedResponse is the response type for the Query/LastUpdated RPC +// method. +type LastUpdatedResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + LastUpdated uint64 `protobuf:"varint,1,opt,name=last_updated,json=lastUpdated,proto3" json:"last_updated,omitempty"` +} + +func (x *LastUpdatedResponse) Reset() { + *x = LastUpdatedResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_connect_marketmap_v2_query_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *LastUpdatedResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*LastUpdatedResponse) ProtoMessage() {} + +// Deprecated: Use LastUpdatedResponse.ProtoReflect.Descriptor instead. +func (*LastUpdatedResponse) Descriptor() ([]byte, []int) { + return file_connect_marketmap_v2_query_proto_rawDescGZIP(), []int{7} +} + +func (x *LastUpdatedResponse) GetLastUpdated() uint64 { + if x != nil { + return x.LastUpdated + } + return 0 +} + +var File_connect_marketmap_v2_query_proto protoreflect.FileDescriptor + +var file_connect_marketmap_v2_query_proto_rawDesc = []byte{ + 0x0a, 0x20, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2f, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, + 0x6d, 0x61, 0x70, 0x2f, 0x76, 0x32, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x12, 0x14, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x6d, 0x61, 0x72, 0x6b, + 0x65, 0x74, 0x6d, 0x61, 0x70, 0x2e, 0x76, 0x32, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x24, 0x63, 0x6f, + 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x63, + 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x5f, 0x70, 0x61, 0x69, 0x72, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x1a, 0x21, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2f, 0x6d, 0x61, 0x72, 0x6b, + 0x65, 0x74, 0x6d, 0x61, 0x70, 0x2f, 0x76, 0x32, 0x2f, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x21, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2f, 0x6d, + 0x61, 0x72, 0x6b, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x2f, 0x76, 0x32, 0x2f, 0x70, 0x61, 0x72, 0x61, + 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x12, 0x0a, 0x10, 0x4d, 0x61, 0x72, 0x6b, + 0x65, 0x74, 0x4d, 0x61, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x97, 0x01, 0x0a, + 0x11, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x4d, 0x61, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x44, 0x0a, 0x0a, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5f, 0x6d, 0x61, 0x70, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, + 0x2e, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x61, + 0x72, 0x6b, 0x65, 0x74, 0x4d, 0x61, 0x70, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x09, 0x6d, + 0x61, 0x72, 0x6b, 0x65, 0x74, 0x4d, 0x61, 0x70, 0x12, 0x21, 0x0a, 0x0c, 0x6c, 0x61, 0x73, 0x74, + 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, + 0x6c, 0x61, 0x73, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x63, + 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, + 0x68, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x22, 0x5a, 0x0a, 0x0d, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x49, 0x0a, 0x0d, 0x63, 0x75, 0x72, 0x72, 0x65, + 0x6e, 0x63, 0x79, 0x5f, 0x70, 0x61, 0x69, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, + 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, + 0x32, 0x2e, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x50, 0x61, 0x69, 0x72, 0x42, 0x04, + 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0c, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x50, 0x61, + 0x69, 0x72, 0x22, 0x4c, 0x0a, 0x0e, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3a, 0x0a, 0x06, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x6d, + 0x61, 0x72, 0x6b, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x61, 0x72, 0x6b, + 0x65, 0x74, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, + 0x22, 0x0f, 0x0a, 0x0d, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x22, 0x4c, 0x0a, 0x0e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x3a, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x6d, 0x61, + 0x72, 0x6b, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x2e, 0x76, 0x32, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, + 0x73, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, + 0x14, 0x0a, 0x12, 0x4c, 0x61, 0x73, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x38, 0x0a, 0x13, 0x4c, 0x61, 0x73, 0x74, 0x55, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x21, 0x0a, 0x0c, + 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x04, 0x52, 0x0b, 0x6c, 0x61, 0x73, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x32, + 0x96, 0x04, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x85, 0x01, 0x0a, 0x09, 0x4d, 0x61, + 0x72, 0x6b, 0x65, 0x74, 0x4d, 0x61, 0x70, 0x12, 0x26, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, + 0x74, 0x2e, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x2e, 0x76, 0x32, 0x2e, 0x4d, + 0x61, 0x72, 0x6b, 0x65, 0x74, 0x4d, 0x61, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x27, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, + 0x6d, 0x61, 0x70, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x4d, 0x61, 0x70, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x27, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x21, + 0x12, 0x1f, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2f, 0x6d, 0x61, 0x72, 0x6b, 0x65, + 0x74, 0x6d, 0x61, 0x70, 0x2f, 0x76, 0x32, 0x2f, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x6d, 0x61, + 0x70, 0x12, 0x79, 0x0a, 0x06, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x12, 0x23, 0x2e, 0x63, 0x6f, + 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x2e, + 0x76, 0x32, 0x2e, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x24, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x6d, 0x61, 0x72, 0x6b, 0x65, + 0x74, 0x6d, 0x61, 0x70, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x24, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1e, 0x12, 0x1c, + 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2f, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x6d, + 0x61, 0x70, 0x2f, 0x76, 0x32, 0x2f, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x12, 0x8e, 0x01, 0x0a, + 0x0b, 0x4c, 0x61, 0x73, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x12, 0x28, 0x2e, 0x63, + 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x6d, 0x61, 0x70, + 0x2e, 0x76, 0x32, 0x2e, 0x4c, 0x61, 0x73, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, + 0x2e, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x2e, 0x76, 0x32, 0x2e, 0x4c, 0x61, + 0x73, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x2a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x24, 0x12, 0x22, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, + 0x65, 0x63, 0x74, 0x2f, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x2f, 0x76, 0x32, + 0x2f, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x12, 0x79, 0x0a, + 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x23, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, + 0x74, 0x2e, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x2e, 0x76, 0x32, 0x2e, 0x50, + 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x63, + 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x6d, 0x61, 0x70, + 0x2e, 0x76, 0x32, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x24, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1e, 0x12, 0x1c, 0x2f, 0x63, 0x6f, 0x6e, + 0x6e, 0x65, 0x63, 0x74, 0x2f, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x2f, 0x76, + 0x32, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0xcb, 0x01, 0x0a, 0x18, 0x63, 0x6f, 0x6d, + 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x6d, + 0x61, 0x70, 0x2e, 0x76, 0x32, 0x42, 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, + 0x6f, 0x50, 0x01, 0x5a, 0x31, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, + 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2f, 0x6d, 0x61, + 0x72, 0x6b, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x2f, 0x76, 0x32, 0x3b, 0x6d, 0x61, 0x72, 0x6b, 0x65, + 0x74, 0x6d, 0x61, 0x70, 0x76, 0x32, 0xa2, 0x02, 0x03, 0x43, 0x4d, 0x58, 0xaa, 0x02, 0x14, 0x43, + 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x6d, 0x61, 0x70, + 0x2e, 0x56, 0x32, 0xca, 0x02, 0x14, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x5c, 0x4d, 0x61, + 0x72, 0x6b, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x5c, 0x56, 0x32, 0xe2, 0x02, 0x20, 0x43, 0x6f, 0x6e, + 0x6e, 0x65, 0x63, 0x74, 0x5c, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x5c, 0x56, + 0x32, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x16, + 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x3a, 0x3a, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x6d, + 0x61, 0x70, 0x3a, 0x3a, 0x56, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_connect_marketmap_v2_query_proto_rawDescOnce sync.Once + file_connect_marketmap_v2_query_proto_rawDescData = file_connect_marketmap_v2_query_proto_rawDesc +) + +func file_connect_marketmap_v2_query_proto_rawDescGZIP() []byte { + file_connect_marketmap_v2_query_proto_rawDescOnce.Do(func() { + file_connect_marketmap_v2_query_proto_rawDescData = protoimpl.X.CompressGZIP(file_connect_marketmap_v2_query_proto_rawDescData) + }) + return file_connect_marketmap_v2_query_proto_rawDescData +} + +var file_connect_marketmap_v2_query_proto_msgTypes = make([]protoimpl.MessageInfo, 8) +var file_connect_marketmap_v2_query_proto_goTypes = []interface{}{ + (*MarketMapRequest)(nil), // 0: connect.marketmap.v2.MarketMapRequest + (*MarketMapResponse)(nil), // 1: connect.marketmap.v2.MarketMapResponse + (*MarketRequest)(nil), // 2: connect.marketmap.v2.MarketRequest + (*MarketResponse)(nil), // 3: connect.marketmap.v2.MarketResponse + (*ParamsRequest)(nil), // 4: connect.marketmap.v2.ParamsRequest + (*ParamsResponse)(nil), // 5: connect.marketmap.v2.ParamsResponse + (*LastUpdatedRequest)(nil), // 6: connect.marketmap.v2.LastUpdatedRequest + (*LastUpdatedResponse)(nil), // 7: connect.marketmap.v2.LastUpdatedResponse + (*MarketMap)(nil), // 8: connect.marketmap.v2.MarketMap + (*v2.CurrencyPair)(nil), // 9: connect.types.v2.CurrencyPair + (*Market)(nil), // 10: connect.marketmap.v2.Market + (*Params)(nil), // 11: connect.marketmap.v2.Params +} +var file_connect_marketmap_v2_query_proto_depIdxs = []int32{ + 8, // 0: connect.marketmap.v2.MarketMapResponse.market_map:type_name -> connect.marketmap.v2.MarketMap + 9, // 1: connect.marketmap.v2.MarketRequest.currency_pair:type_name -> connect.types.v2.CurrencyPair + 10, // 2: connect.marketmap.v2.MarketResponse.market:type_name -> connect.marketmap.v2.Market + 11, // 3: connect.marketmap.v2.ParamsResponse.params:type_name -> connect.marketmap.v2.Params + 0, // 4: connect.marketmap.v2.Query.MarketMap:input_type -> connect.marketmap.v2.MarketMapRequest + 2, // 5: connect.marketmap.v2.Query.Market:input_type -> connect.marketmap.v2.MarketRequest + 6, // 6: connect.marketmap.v2.Query.LastUpdated:input_type -> connect.marketmap.v2.LastUpdatedRequest + 4, // 7: connect.marketmap.v2.Query.Params:input_type -> connect.marketmap.v2.ParamsRequest + 1, // 8: connect.marketmap.v2.Query.MarketMap:output_type -> connect.marketmap.v2.MarketMapResponse + 3, // 9: connect.marketmap.v2.Query.Market:output_type -> connect.marketmap.v2.MarketResponse + 7, // 10: connect.marketmap.v2.Query.LastUpdated:output_type -> connect.marketmap.v2.LastUpdatedResponse + 5, // 11: connect.marketmap.v2.Query.Params:output_type -> connect.marketmap.v2.ParamsResponse + 8, // [8:12] is the sub-list for method output_type + 4, // [4:8] is the sub-list for method input_type + 4, // [4:4] is the sub-list for extension type_name + 4, // [4:4] is the sub-list for extension extendee + 0, // [0:4] is the sub-list for field type_name +} + +func init() { file_connect_marketmap_v2_query_proto_init() } +func file_connect_marketmap_v2_query_proto_init() { + if File_connect_marketmap_v2_query_proto != nil { + return + } + file_connect_marketmap_v2_market_proto_init() + file_connect_marketmap_v2_params_proto_init() + if !protoimpl.UnsafeEnabled { + file_connect_marketmap_v2_query_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MarketMapRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_connect_marketmap_v2_query_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MarketMapResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_connect_marketmap_v2_query_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MarketRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_connect_marketmap_v2_query_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MarketResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_connect_marketmap_v2_query_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ParamsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_connect_marketmap_v2_query_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ParamsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_connect_marketmap_v2_query_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LastUpdatedRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_connect_marketmap_v2_query_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LastUpdatedResponse); 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_connect_marketmap_v2_query_proto_rawDesc, + NumEnums: 0, + NumMessages: 8, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_connect_marketmap_v2_query_proto_goTypes, + DependencyIndexes: file_connect_marketmap_v2_query_proto_depIdxs, + MessageInfos: file_connect_marketmap_v2_query_proto_msgTypes, + }.Build() + File_connect_marketmap_v2_query_proto = out.File + file_connect_marketmap_v2_query_proto_rawDesc = nil + file_connect_marketmap_v2_query_proto_goTypes = nil + file_connect_marketmap_v2_query_proto_depIdxs = nil +} diff --git a/api/connect/marketmap/v2/query_grpc.pb.go b/api/connect/marketmap/v2/query_grpc.pb.go new file mode 100644 index 000000000..f8f0b80bc --- /dev/null +++ b/api/connect/marketmap/v2/query_grpc.pb.go @@ -0,0 +1,251 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.5.1 +// - protoc (unknown) +// source: connect/marketmap/v2/query.proto + +package marketmapv2 + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 + +const ( + Query_MarketMap_FullMethodName = "/connect.marketmap.v2.Query/MarketMap" + Query_Market_FullMethodName = "/connect.marketmap.v2.Query/Market" + Query_LastUpdated_FullMethodName = "/connect.marketmap.v2.Query/LastUpdated" + Query_Params_FullMethodName = "/connect.marketmap.v2.Query/Params" +) + +// QueryClient is the client API for Query service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +// +// Query is the query service for the x/marketmap module. +type QueryClient interface { + // MarketMap returns the full market map stored in the x/marketmap + // module. + MarketMap(ctx context.Context, in *MarketMapRequest, opts ...grpc.CallOption) (*MarketMapResponse, error) + // Market returns a market stored in the x/marketmap + // module. + Market(ctx context.Context, in *MarketRequest, opts ...grpc.CallOption) (*MarketResponse, error) + // LastUpdated returns the last height the market map was updated at. + LastUpdated(ctx context.Context, in *LastUpdatedRequest, opts ...grpc.CallOption) (*LastUpdatedResponse, error) + // Params returns the current x/marketmap module parameters. + Params(ctx context.Context, in *ParamsRequest, opts ...grpc.CallOption) (*ParamsResponse, error) +} + +type queryClient struct { + cc grpc.ClientConnInterface +} + +func NewQueryClient(cc grpc.ClientConnInterface) QueryClient { + return &queryClient{cc} +} + +func (c *queryClient) MarketMap(ctx context.Context, in *MarketMapRequest, opts ...grpc.CallOption) (*MarketMapResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(MarketMapResponse) + err := c.cc.Invoke(ctx, Query_MarketMap_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) Market(ctx context.Context, in *MarketRequest, opts ...grpc.CallOption) (*MarketResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(MarketResponse) + err := c.cc.Invoke(ctx, Query_Market_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) LastUpdated(ctx context.Context, in *LastUpdatedRequest, opts ...grpc.CallOption) (*LastUpdatedResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(LastUpdatedResponse) + err := c.cc.Invoke(ctx, Query_LastUpdated_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) Params(ctx context.Context, in *ParamsRequest, opts ...grpc.CallOption) (*ParamsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ParamsResponse) + err := c.cc.Invoke(ctx, Query_Params_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// QueryServer is the server API for Query service. +// All implementations must embed UnimplementedQueryServer +// for forward compatibility. +// +// Query is the query service for the x/marketmap module. +type QueryServer interface { + // MarketMap returns the full market map stored in the x/marketmap + // module. + MarketMap(context.Context, *MarketMapRequest) (*MarketMapResponse, error) + // Market returns a market stored in the x/marketmap + // module. + Market(context.Context, *MarketRequest) (*MarketResponse, error) + // LastUpdated returns the last height the market map was updated at. + LastUpdated(context.Context, *LastUpdatedRequest) (*LastUpdatedResponse, error) + // Params returns the current x/marketmap module parameters. + Params(context.Context, *ParamsRequest) (*ParamsResponse, error) + mustEmbedUnimplementedQueryServer() +} + +// UnimplementedQueryServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedQueryServer struct{} + +func (UnimplementedQueryServer) MarketMap(context.Context, *MarketMapRequest) (*MarketMapResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method MarketMap not implemented") +} +func (UnimplementedQueryServer) Market(context.Context, *MarketRequest) (*MarketResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Market not implemented") +} +func (UnimplementedQueryServer) LastUpdated(context.Context, *LastUpdatedRequest) (*LastUpdatedResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method LastUpdated not implemented") +} +func (UnimplementedQueryServer) Params(context.Context, *ParamsRequest) (*ParamsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Params not implemented") +} +func (UnimplementedQueryServer) mustEmbedUnimplementedQueryServer() {} +func (UnimplementedQueryServer) testEmbeddedByValue() {} + +// UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to QueryServer will +// result in compilation errors. +type UnsafeQueryServer interface { + mustEmbedUnimplementedQueryServer() +} + +func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer) { + // If the following call pancis, it indicates UnimplementedQueryServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&Query_ServiceDesc, srv) +} + +func _Query_MarketMap_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MarketMapRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).MarketMap(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_MarketMap_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).MarketMap(ctx, req.(*MarketMapRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_Market_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MarketRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).Market(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_Market_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Market(ctx, req.(*MarketRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_LastUpdated_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(LastUpdatedRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).LastUpdated(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_LastUpdated_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).LastUpdated(ctx, req.(*LastUpdatedRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ParamsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).Params(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_Params_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Params(ctx, req.(*ParamsRequest)) + } + 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: "connect.marketmap.v2.Query", + HandlerType: (*QueryServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "MarketMap", + Handler: _Query_MarketMap_Handler, + }, + { + MethodName: "Market", + Handler: _Query_Market_Handler, + }, + { + MethodName: "LastUpdated", + Handler: _Query_LastUpdated_Handler, + }, + { + MethodName: "Params", + Handler: _Query_Params_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "connect/marketmap/v2/query.proto", +} diff --git a/api/connect/marketmap/v2/tx.pulsar.go b/api/connect/marketmap/v2/tx.pulsar.go new file mode 100644 index 000000000..093ac59f4 --- /dev/null +++ b/api/connect/marketmap/v2/tx.pulsar.go @@ -0,0 +1,5563 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package marketmapv2 + +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" + sort "sort" + sync "sync" +) + +var _ protoreflect.List = (*_MsgUpsertMarkets_2_list)(nil) + +type _MsgUpsertMarkets_2_list struct { + list *[]*Market +} + +func (x *_MsgUpsertMarkets_2_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_MsgUpsertMarkets_2_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_MsgUpsertMarkets_2_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*Market) + (*x.list)[i] = concreteValue +} + +func (x *_MsgUpsertMarkets_2_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*Market) + *x.list = append(*x.list, concreteValue) +} + +func (x *_MsgUpsertMarkets_2_list) AppendMutable() protoreflect.Value { + v := new(Market) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_MsgUpsertMarkets_2_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_MsgUpsertMarkets_2_list) NewElement() protoreflect.Value { + v := new(Market) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_MsgUpsertMarkets_2_list) IsValid() bool { + return x.list != nil +} + +var ( + md_MsgUpsertMarkets protoreflect.MessageDescriptor + fd_MsgUpsertMarkets_authority protoreflect.FieldDescriptor + fd_MsgUpsertMarkets_markets protoreflect.FieldDescriptor +) + +func init() { + file_connect_marketmap_v2_tx_proto_init() + md_MsgUpsertMarkets = File_connect_marketmap_v2_tx_proto.Messages().ByName("MsgUpsertMarkets") + fd_MsgUpsertMarkets_authority = md_MsgUpsertMarkets.Fields().ByName("authority") + fd_MsgUpsertMarkets_markets = md_MsgUpsertMarkets.Fields().ByName("markets") +} + +var _ protoreflect.Message = (*fastReflection_MsgUpsertMarkets)(nil) + +type fastReflection_MsgUpsertMarkets MsgUpsertMarkets + +func (x *MsgUpsertMarkets) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUpsertMarkets)(x) +} + +func (x *MsgUpsertMarkets) slowProtoReflect() protoreflect.Message { + mi := &file_connect_marketmap_v2_tx_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_MsgUpsertMarkets_messageType fastReflection_MsgUpsertMarkets_messageType +var _ protoreflect.MessageType = fastReflection_MsgUpsertMarkets_messageType{} + +type fastReflection_MsgUpsertMarkets_messageType struct{} + +func (x fastReflection_MsgUpsertMarkets_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUpsertMarkets)(nil) +} +func (x fastReflection_MsgUpsertMarkets_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUpsertMarkets) +} +func (x fastReflection_MsgUpsertMarkets_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpsertMarkets +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgUpsertMarkets) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpsertMarkets +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_MsgUpsertMarkets) Type() protoreflect.MessageType { + return _fastReflection_MsgUpsertMarkets_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgUpsertMarkets) New() protoreflect.Message { + return new(fastReflection_MsgUpsertMarkets) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgUpsertMarkets) Interface() protoreflect.ProtoMessage { + return (*MsgUpsertMarkets)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_MsgUpsertMarkets) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Authority != "" { + value := protoreflect.ValueOfString(x.Authority) + if !f(fd_MsgUpsertMarkets_authority, value) { + return + } + } + if len(x.Markets) != 0 { + value := protoreflect.ValueOfList(&_MsgUpsertMarkets_2_list{list: &x.Markets}) + if !f(fd_MsgUpsertMarkets_markets, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_MsgUpsertMarkets) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "connect.marketmap.v2.MsgUpsertMarkets.authority": + return x.Authority != "" + case "connect.marketmap.v2.MsgUpsertMarkets.markets": + return len(x.Markets) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MsgUpsertMarkets")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MsgUpsertMarkets does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgUpsertMarkets) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "connect.marketmap.v2.MsgUpsertMarkets.authority": + x.Authority = "" + case "connect.marketmap.v2.MsgUpsertMarkets.markets": + x.Markets = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MsgUpsertMarkets")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MsgUpsertMarkets does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_MsgUpsertMarkets) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "connect.marketmap.v2.MsgUpsertMarkets.authority": + value := x.Authority + return protoreflect.ValueOfString(value) + case "connect.marketmap.v2.MsgUpsertMarkets.markets": + if len(x.Markets) == 0 { + return protoreflect.ValueOfList(&_MsgUpsertMarkets_2_list{}) + } + listValue := &_MsgUpsertMarkets_2_list{list: &x.Markets} + return protoreflect.ValueOfList(listValue) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MsgUpsertMarkets")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MsgUpsertMarkets does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgUpsertMarkets) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "connect.marketmap.v2.MsgUpsertMarkets.authority": + x.Authority = value.Interface().(string) + case "connect.marketmap.v2.MsgUpsertMarkets.markets": + lv := value.List() + clv := lv.(*_MsgUpsertMarkets_2_list) + x.Markets = *clv.list + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MsgUpsertMarkets")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MsgUpsertMarkets does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgUpsertMarkets) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "connect.marketmap.v2.MsgUpsertMarkets.markets": + if x.Markets == nil { + x.Markets = []*Market{} + } + value := &_MsgUpsertMarkets_2_list{list: &x.Markets} + return protoreflect.ValueOfList(value) + case "connect.marketmap.v2.MsgUpsertMarkets.authority": + panic(fmt.Errorf("field authority of message connect.marketmap.v2.MsgUpsertMarkets is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MsgUpsertMarkets")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MsgUpsertMarkets does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_MsgUpsertMarkets) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "connect.marketmap.v2.MsgUpsertMarkets.authority": + return protoreflect.ValueOfString("") + case "connect.marketmap.v2.MsgUpsertMarkets.markets": + list := []*Market{} + return protoreflect.ValueOfList(&_MsgUpsertMarkets_2_list{list: &list}) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MsgUpsertMarkets")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MsgUpsertMarkets does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_MsgUpsertMarkets) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in connect.marketmap.v2.MsgUpsertMarkets", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_MsgUpsertMarkets) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgUpsertMarkets) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_MsgUpsertMarkets) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_MsgUpsertMarkets) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgUpsertMarkets) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + l = len(x.Authority) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if len(x.Markets) > 0 { + for _, e := range x.Markets { + 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().(*MsgUpsertMarkets) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]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.Markets) > 0 { + for iNdEx := len(x.Markets) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.Markets[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x12 + } + } + if len(x.Authority) > 0 { + i -= len(x.Authority) + copy(dAtA[i:], x.Authority) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*MsgUpsertMarkets) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpsertMarkets: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpsertMarkets: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Authority = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Markets", 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.Markets = append(x.Markets, &Market{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Markets[len(x.Markets)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var _ protoreflect.Map = (*_MsgUpsertMarketsResponse_1_map)(nil) + +type _MsgUpsertMarketsResponse_1_map struct { + m *map[string]bool +} + +func (x *_MsgUpsertMarketsResponse_1_map) Len() int { + if x.m == nil { + return 0 + } + return len(*x.m) +} + +func (x *_MsgUpsertMarketsResponse_1_map) Range(f func(protoreflect.MapKey, protoreflect.Value) bool) { + if x.m == nil { + return + } + for k, v := range *x.m { + mapKey := (protoreflect.MapKey)(protoreflect.ValueOfString(k)) + mapValue := protoreflect.ValueOfBool(v) + if !f(mapKey, mapValue) { + break + } + } +} + +func (x *_MsgUpsertMarketsResponse_1_map) Has(key protoreflect.MapKey) bool { + if x.m == nil { + return false + } + keyUnwrapped := key.String() + concreteValue := keyUnwrapped + _, ok := (*x.m)[concreteValue] + return ok +} + +func (x *_MsgUpsertMarketsResponse_1_map) Clear(key protoreflect.MapKey) { + if x.m == nil { + return + } + keyUnwrapped := key.String() + concreteKey := keyUnwrapped + delete(*x.m, concreteKey) +} + +func (x *_MsgUpsertMarketsResponse_1_map) Get(key protoreflect.MapKey) protoreflect.Value { + if x.m == nil { + return protoreflect.Value{} + } + keyUnwrapped := key.String() + concreteKey := keyUnwrapped + v, ok := (*x.m)[concreteKey] + if !ok { + return protoreflect.Value{} + } + return protoreflect.ValueOfBool(v) +} + +func (x *_MsgUpsertMarketsResponse_1_map) Set(key protoreflect.MapKey, value protoreflect.Value) { + if !key.IsValid() || !value.IsValid() { + panic("invalid key or value provided") + } + keyUnwrapped := key.String() + concreteKey := keyUnwrapped + valueUnwrapped := value.Bool() + concreteValue := valueUnwrapped + (*x.m)[concreteKey] = concreteValue +} + +func (x *_MsgUpsertMarketsResponse_1_map) Mutable(key protoreflect.MapKey) protoreflect.Value { + panic("should not call Mutable on protoreflect.Map whose value is not of type protoreflect.Message") +} + +func (x *_MsgUpsertMarketsResponse_1_map) NewValue() protoreflect.Value { + v := false + return protoreflect.ValueOfBool(v) +} + +func (x *_MsgUpsertMarketsResponse_1_map) IsValid() bool { + return x.m != nil +} + +var ( + md_MsgUpsertMarketsResponse protoreflect.MessageDescriptor + fd_MsgUpsertMarketsResponse_market_updates protoreflect.FieldDescriptor +) + +func init() { + file_connect_marketmap_v2_tx_proto_init() + md_MsgUpsertMarketsResponse = File_connect_marketmap_v2_tx_proto.Messages().ByName("MsgUpsertMarketsResponse") + fd_MsgUpsertMarketsResponse_market_updates = md_MsgUpsertMarketsResponse.Fields().ByName("market_updates") +} + +var _ protoreflect.Message = (*fastReflection_MsgUpsertMarketsResponse)(nil) + +type fastReflection_MsgUpsertMarketsResponse MsgUpsertMarketsResponse + +func (x *MsgUpsertMarketsResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUpsertMarketsResponse)(x) +} + +func (x *MsgUpsertMarketsResponse) slowProtoReflect() protoreflect.Message { + mi := &file_connect_marketmap_v2_tx_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_MsgUpsertMarketsResponse_messageType fastReflection_MsgUpsertMarketsResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgUpsertMarketsResponse_messageType{} + +type fastReflection_MsgUpsertMarketsResponse_messageType struct{} + +func (x fastReflection_MsgUpsertMarketsResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUpsertMarketsResponse)(nil) +} +func (x fastReflection_MsgUpsertMarketsResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUpsertMarketsResponse) +} +func (x fastReflection_MsgUpsertMarketsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpsertMarketsResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgUpsertMarketsResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpsertMarketsResponse +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_MsgUpsertMarketsResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgUpsertMarketsResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgUpsertMarketsResponse) New() protoreflect.Message { + return new(fastReflection_MsgUpsertMarketsResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgUpsertMarketsResponse) Interface() protoreflect.ProtoMessage { + return (*MsgUpsertMarketsResponse)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_MsgUpsertMarketsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.MarketUpdates) != 0 { + value := protoreflect.ValueOfMap(&_MsgUpsertMarketsResponse_1_map{m: &x.MarketUpdates}) + if !f(fd_MsgUpsertMarketsResponse_market_updates, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_MsgUpsertMarketsResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "connect.marketmap.v2.MsgUpsertMarketsResponse.market_updates": + return len(x.MarketUpdates) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MsgUpsertMarketsResponse")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MsgUpsertMarketsResponse does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgUpsertMarketsResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "connect.marketmap.v2.MsgUpsertMarketsResponse.market_updates": + x.MarketUpdates = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MsgUpsertMarketsResponse")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MsgUpsertMarketsResponse does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_MsgUpsertMarketsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "connect.marketmap.v2.MsgUpsertMarketsResponse.market_updates": + if len(x.MarketUpdates) == 0 { + return protoreflect.ValueOfMap(&_MsgUpsertMarketsResponse_1_map{}) + } + mapValue := &_MsgUpsertMarketsResponse_1_map{m: &x.MarketUpdates} + return protoreflect.ValueOfMap(mapValue) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MsgUpsertMarketsResponse")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MsgUpsertMarketsResponse does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgUpsertMarketsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "connect.marketmap.v2.MsgUpsertMarketsResponse.market_updates": + mv := value.Map() + cmv := mv.(*_MsgUpsertMarketsResponse_1_map) + x.MarketUpdates = *cmv.m + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MsgUpsertMarketsResponse")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MsgUpsertMarketsResponse does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgUpsertMarketsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "connect.marketmap.v2.MsgUpsertMarketsResponse.market_updates": + if x.MarketUpdates == nil { + x.MarketUpdates = make(map[string]bool) + } + value := &_MsgUpsertMarketsResponse_1_map{m: &x.MarketUpdates} + return protoreflect.ValueOfMap(value) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MsgUpsertMarketsResponse")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MsgUpsertMarketsResponse does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_MsgUpsertMarketsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "connect.marketmap.v2.MsgUpsertMarketsResponse.market_updates": + m := make(map[string]bool) + return protoreflect.ValueOfMap(&_MsgUpsertMarketsResponse_1_map{m: &m}) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MsgUpsertMarketsResponse")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MsgUpsertMarketsResponse does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_MsgUpsertMarketsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in connect.marketmap.v2.MsgUpsertMarketsResponse", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_MsgUpsertMarketsResponse) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgUpsertMarketsResponse) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_MsgUpsertMarketsResponse) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_MsgUpsertMarketsResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgUpsertMarketsResponse) + 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.MarketUpdates) > 0 { + SiZeMaP := func(k string, v bool) { + mapEntrySize := 1 + len(k) + runtime.Sov(uint64(len(k))) + 1 + 1 + n += mapEntrySize + 1 + runtime.Sov(uint64(mapEntrySize)) + } + if options.Deterministic { + sortme := make([]string, 0, len(x.MarketUpdates)) + for k := range x.MarketUpdates { + sortme = append(sortme, k) + } + sort.Strings(sortme) + for _, k := range sortme { + v := x.MarketUpdates[k] + SiZeMaP(k, v) + } + } else { + for k, v := range x.MarketUpdates { + SiZeMaP(k, v) + } + } + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*MsgUpsertMarketsResponse) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]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.MarketUpdates) > 0 { + MaRsHaLmAp := func(k string, v bool) (protoiface.MarshalOutput, error) { + baseI := i + i-- + if v { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 + i -= len(k) + copy(dAtA[i:], k) + i = runtime.EncodeVarint(dAtA, i, uint64(len(k))) + i-- + dAtA[i] = 0xa + i = runtime.EncodeVarint(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0xa + return protoiface.MarshalOutput{}, nil + } + if options.Deterministic { + keysForMarketUpdates := make([]string, 0, len(x.MarketUpdates)) + for k := range x.MarketUpdates { + keysForMarketUpdates = append(keysForMarketUpdates, string(k)) + } + sort.Slice(keysForMarketUpdates, func(i, j int) bool { + return keysForMarketUpdates[i] < keysForMarketUpdates[j] + }) + for iNdEx := len(keysForMarketUpdates) - 1; iNdEx >= 0; iNdEx-- { + v := x.MarketUpdates[string(keysForMarketUpdates[iNdEx])] + out, err := MaRsHaLmAp(keysForMarketUpdates[iNdEx], v) + if err != nil { + return out, err + } + } + } else { + for k := range x.MarketUpdates { + v := x.MarketUpdates[k] + out, err := MaRsHaLmAp(k, v) + if err != nil { + return out, err + } + } + } + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*MsgUpsertMarketsResponse) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpsertMarketsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpsertMarketsResponse: 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 MarketUpdates", 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.MarketUpdates == nil { + x.MarketUpdates = make(map[string]bool) + } + var mapkey string + var mapvalue bool + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postStringIndexmapkey > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var mapvaluetemp int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapvaluetemp |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + mapvalue = bool(mapvaluetemp != 0) + } else { + iNdEx = entryPreIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > postIndex { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + x.MarketUpdates[mapkey] = mapvalue + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var _ protoreflect.List = (*_MsgCreateMarkets_2_list)(nil) + +type _MsgCreateMarkets_2_list struct { + list *[]*Market +} + +func (x *_MsgCreateMarkets_2_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_MsgCreateMarkets_2_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_MsgCreateMarkets_2_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*Market) + (*x.list)[i] = concreteValue +} + +func (x *_MsgCreateMarkets_2_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*Market) + *x.list = append(*x.list, concreteValue) +} + +func (x *_MsgCreateMarkets_2_list) AppendMutable() protoreflect.Value { + v := new(Market) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_MsgCreateMarkets_2_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_MsgCreateMarkets_2_list) NewElement() protoreflect.Value { + v := new(Market) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_MsgCreateMarkets_2_list) IsValid() bool { + return x.list != nil +} + +var ( + md_MsgCreateMarkets protoreflect.MessageDescriptor + fd_MsgCreateMarkets_authority protoreflect.FieldDescriptor + fd_MsgCreateMarkets_create_markets protoreflect.FieldDescriptor +) + +func init() { + file_connect_marketmap_v2_tx_proto_init() + md_MsgCreateMarkets = File_connect_marketmap_v2_tx_proto.Messages().ByName("MsgCreateMarkets") + fd_MsgCreateMarkets_authority = md_MsgCreateMarkets.Fields().ByName("authority") + fd_MsgCreateMarkets_create_markets = md_MsgCreateMarkets.Fields().ByName("create_markets") +} + +var _ protoreflect.Message = (*fastReflection_MsgCreateMarkets)(nil) + +type fastReflection_MsgCreateMarkets MsgCreateMarkets + +func (x *MsgCreateMarkets) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgCreateMarkets)(x) +} + +func (x *MsgCreateMarkets) slowProtoReflect() protoreflect.Message { + mi := &file_connect_marketmap_v2_tx_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_MsgCreateMarkets_messageType fastReflection_MsgCreateMarkets_messageType +var _ protoreflect.MessageType = fastReflection_MsgCreateMarkets_messageType{} + +type fastReflection_MsgCreateMarkets_messageType struct{} + +func (x fastReflection_MsgCreateMarkets_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgCreateMarkets)(nil) +} +func (x fastReflection_MsgCreateMarkets_messageType) New() protoreflect.Message { + return new(fastReflection_MsgCreateMarkets) +} +func (x fastReflection_MsgCreateMarkets_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCreateMarkets +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgCreateMarkets) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCreateMarkets +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_MsgCreateMarkets) Type() protoreflect.MessageType { + return _fastReflection_MsgCreateMarkets_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgCreateMarkets) New() protoreflect.Message { + return new(fastReflection_MsgCreateMarkets) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgCreateMarkets) Interface() protoreflect.ProtoMessage { + return (*MsgCreateMarkets)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_MsgCreateMarkets) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Authority != "" { + value := protoreflect.ValueOfString(x.Authority) + if !f(fd_MsgCreateMarkets_authority, value) { + return + } + } + if len(x.CreateMarkets) != 0 { + value := protoreflect.ValueOfList(&_MsgCreateMarkets_2_list{list: &x.CreateMarkets}) + if !f(fd_MsgCreateMarkets_create_markets, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_MsgCreateMarkets) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "connect.marketmap.v2.MsgCreateMarkets.authority": + return x.Authority != "" + case "connect.marketmap.v2.MsgCreateMarkets.create_markets": + return len(x.CreateMarkets) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MsgCreateMarkets")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MsgCreateMarkets does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgCreateMarkets) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "connect.marketmap.v2.MsgCreateMarkets.authority": + x.Authority = "" + case "connect.marketmap.v2.MsgCreateMarkets.create_markets": + x.CreateMarkets = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MsgCreateMarkets")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MsgCreateMarkets does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_MsgCreateMarkets) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "connect.marketmap.v2.MsgCreateMarkets.authority": + value := x.Authority + return protoreflect.ValueOfString(value) + case "connect.marketmap.v2.MsgCreateMarkets.create_markets": + if len(x.CreateMarkets) == 0 { + return protoreflect.ValueOfList(&_MsgCreateMarkets_2_list{}) + } + listValue := &_MsgCreateMarkets_2_list{list: &x.CreateMarkets} + return protoreflect.ValueOfList(listValue) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MsgCreateMarkets")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MsgCreateMarkets does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgCreateMarkets) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "connect.marketmap.v2.MsgCreateMarkets.authority": + x.Authority = value.Interface().(string) + case "connect.marketmap.v2.MsgCreateMarkets.create_markets": + lv := value.List() + clv := lv.(*_MsgCreateMarkets_2_list) + x.CreateMarkets = *clv.list + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MsgCreateMarkets")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MsgCreateMarkets does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgCreateMarkets) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "connect.marketmap.v2.MsgCreateMarkets.create_markets": + if x.CreateMarkets == nil { + x.CreateMarkets = []*Market{} + } + value := &_MsgCreateMarkets_2_list{list: &x.CreateMarkets} + return protoreflect.ValueOfList(value) + case "connect.marketmap.v2.MsgCreateMarkets.authority": + panic(fmt.Errorf("field authority of message connect.marketmap.v2.MsgCreateMarkets is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MsgCreateMarkets")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MsgCreateMarkets does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_MsgCreateMarkets) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "connect.marketmap.v2.MsgCreateMarkets.authority": + return protoreflect.ValueOfString("") + case "connect.marketmap.v2.MsgCreateMarkets.create_markets": + list := []*Market{} + return protoreflect.ValueOfList(&_MsgCreateMarkets_2_list{list: &list}) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MsgCreateMarkets")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MsgCreateMarkets does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_MsgCreateMarkets) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in connect.marketmap.v2.MsgCreateMarkets", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_MsgCreateMarkets) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgCreateMarkets) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_MsgCreateMarkets) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_MsgCreateMarkets) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgCreateMarkets) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + l = len(x.Authority) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if len(x.CreateMarkets) > 0 { + for _, e := range x.CreateMarkets { + 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().(*MsgCreateMarkets) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]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.CreateMarkets) > 0 { + for iNdEx := len(x.CreateMarkets) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.CreateMarkets[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x12 + } + } + if len(x.Authority) > 0 { + i -= len(x.Authority) + copy(dAtA[i:], x.Authority) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*MsgCreateMarkets) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateMarkets: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateMarkets: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Authority = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CreateMarkets", 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.CreateMarkets = append(x.CreateMarkets, &Market{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.CreateMarkets[len(x.CreateMarkets)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_MsgCreateMarketsResponse protoreflect.MessageDescriptor +) + +func init() { + file_connect_marketmap_v2_tx_proto_init() + md_MsgCreateMarketsResponse = File_connect_marketmap_v2_tx_proto.Messages().ByName("MsgCreateMarketsResponse") +} + +var _ protoreflect.Message = (*fastReflection_MsgCreateMarketsResponse)(nil) + +type fastReflection_MsgCreateMarketsResponse MsgCreateMarketsResponse + +func (x *MsgCreateMarketsResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgCreateMarketsResponse)(x) +} + +func (x *MsgCreateMarketsResponse) slowProtoReflect() protoreflect.Message { + mi := &file_connect_marketmap_v2_tx_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_MsgCreateMarketsResponse_messageType fastReflection_MsgCreateMarketsResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgCreateMarketsResponse_messageType{} + +type fastReflection_MsgCreateMarketsResponse_messageType struct{} + +func (x fastReflection_MsgCreateMarketsResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgCreateMarketsResponse)(nil) +} +func (x fastReflection_MsgCreateMarketsResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgCreateMarketsResponse) +} +func (x fastReflection_MsgCreateMarketsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCreateMarketsResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgCreateMarketsResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCreateMarketsResponse +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_MsgCreateMarketsResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgCreateMarketsResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgCreateMarketsResponse) New() protoreflect.Message { + return new(fastReflection_MsgCreateMarketsResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgCreateMarketsResponse) Interface() protoreflect.ProtoMessage { + return (*MsgCreateMarketsResponse)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_MsgCreateMarketsResponse) 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_MsgCreateMarketsResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MsgCreateMarketsResponse")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MsgCreateMarketsResponse does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgCreateMarketsResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MsgCreateMarketsResponse")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MsgCreateMarketsResponse does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_MsgCreateMarketsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MsgCreateMarketsResponse")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MsgCreateMarketsResponse does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgCreateMarketsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MsgCreateMarketsResponse")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MsgCreateMarketsResponse does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgCreateMarketsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MsgCreateMarketsResponse")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MsgCreateMarketsResponse does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_MsgCreateMarketsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MsgCreateMarketsResponse")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MsgCreateMarketsResponse does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_MsgCreateMarketsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in connect.marketmap.v2.MsgCreateMarketsResponse", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_MsgCreateMarketsResponse) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgCreateMarketsResponse) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_MsgCreateMarketsResponse) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_MsgCreateMarketsResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgCreateMarketsResponse) + 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().(*MsgCreateMarketsResponse) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]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().(*MsgCreateMarketsResponse) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateMarketsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateMarketsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var _ protoreflect.List = (*_MsgUpdateMarkets_2_list)(nil) + +type _MsgUpdateMarkets_2_list struct { + list *[]*Market +} + +func (x *_MsgUpdateMarkets_2_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_MsgUpdateMarkets_2_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_MsgUpdateMarkets_2_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*Market) + (*x.list)[i] = concreteValue +} + +func (x *_MsgUpdateMarkets_2_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*Market) + *x.list = append(*x.list, concreteValue) +} + +func (x *_MsgUpdateMarkets_2_list) AppendMutable() protoreflect.Value { + v := new(Market) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_MsgUpdateMarkets_2_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_MsgUpdateMarkets_2_list) NewElement() protoreflect.Value { + v := new(Market) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_MsgUpdateMarkets_2_list) IsValid() bool { + return x.list != nil +} + +var ( + md_MsgUpdateMarkets protoreflect.MessageDescriptor + fd_MsgUpdateMarkets_authority protoreflect.FieldDescriptor + fd_MsgUpdateMarkets_update_markets protoreflect.FieldDescriptor +) + +func init() { + file_connect_marketmap_v2_tx_proto_init() + md_MsgUpdateMarkets = File_connect_marketmap_v2_tx_proto.Messages().ByName("MsgUpdateMarkets") + fd_MsgUpdateMarkets_authority = md_MsgUpdateMarkets.Fields().ByName("authority") + fd_MsgUpdateMarkets_update_markets = md_MsgUpdateMarkets.Fields().ByName("update_markets") +} + +var _ protoreflect.Message = (*fastReflection_MsgUpdateMarkets)(nil) + +type fastReflection_MsgUpdateMarkets MsgUpdateMarkets + +func (x *MsgUpdateMarkets) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUpdateMarkets)(x) +} + +func (x *MsgUpdateMarkets) slowProtoReflect() protoreflect.Message { + mi := &file_connect_marketmap_v2_tx_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_MsgUpdateMarkets_messageType fastReflection_MsgUpdateMarkets_messageType +var _ protoreflect.MessageType = fastReflection_MsgUpdateMarkets_messageType{} + +type fastReflection_MsgUpdateMarkets_messageType struct{} + +func (x fastReflection_MsgUpdateMarkets_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUpdateMarkets)(nil) +} +func (x fastReflection_MsgUpdateMarkets_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUpdateMarkets) +} +func (x fastReflection_MsgUpdateMarkets_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateMarkets +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgUpdateMarkets) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateMarkets +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_MsgUpdateMarkets) Type() protoreflect.MessageType { + return _fastReflection_MsgUpdateMarkets_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgUpdateMarkets) New() protoreflect.Message { + return new(fastReflection_MsgUpdateMarkets) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgUpdateMarkets) Interface() protoreflect.ProtoMessage { + return (*MsgUpdateMarkets)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_MsgUpdateMarkets) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Authority != "" { + value := protoreflect.ValueOfString(x.Authority) + if !f(fd_MsgUpdateMarkets_authority, value) { + return + } + } + if len(x.UpdateMarkets) != 0 { + value := protoreflect.ValueOfList(&_MsgUpdateMarkets_2_list{list: &x.UpdateMarkets}) + if !f(fd_MsgUpdateMarkets_update_markets, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_MsgUpdateMarkets) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "connect.marketmap.v2.MsgUpdateMarkets.authority": + return x.Authority != "" + case "connect.marketmap.v2.MsgUpdateMarkets.update_markets": + return len(x.UpdateMarkets) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MsgUpdateMarkets")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MsgUpdateMarkets does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgUpdateMarkets) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "connect.marketmap.v2.MsgUpdateMarkets.authority": + x.Authority = "" + case "connect.marketmap.v2.MsgUpdateMarkets.update_markets": + x.UpdateMarkets = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MsgUpdateMarkets")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MsgUpdateMarkets does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_MsgUpdateMarkets) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "connect.marketmap.v2.MsgUpdateMarkets.authority": + value := x.Authority + return protoreflect.ValueOfString(value) + case "connect.marketmap.v2.MsgUpdateMarkets.update_markets": + if len(x.UpdateMarkets) == 0 { + return protoreflect.ValueOfList(&_MsgUpdateMarkets_2_list{}) + } + listValue := &_MsgUpdateMarkets_2_list{list: &x.UpdateMarkets} + return protoreflect.ValueOfList(listValue) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MsgUpdateMarkets")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MsgUpdateMarkets does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgUpdateMarkets) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "connect.marketmap.v2.MsgUpdateMarkets.authority": + x.Authority = value.Interface().(string) + case "connect.marketmap.v2.MsgUpdateMarkets.update_markets": + lv := value.List() + clv := lv.(*_MsgUpdateMarkets_2_list) + x.UpdateMarkets = *clv.list + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MsgUpdateMarkets")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MsgUpdateMarkets does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgUpdateMarkets) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "connect.marketmap.v2.MsgUpdateMarkets.update_markets": + if x.UpdateMarkets == nil { + x.UpdateMarkets = []*Market{} + } + value := &_MsgUpdateMarkets_2_list{list: &x.UpdateMarkets} + return protoreflect.ValueOfList(value) + case "connect.marketmap.v2.MsgUpdateMarkets.authority": + panic(fmt.Errorf("field authority of message connect.marketmap.v2.MsgUpdateMarkets is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MsgUpdateMarkets")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MsgUpdateMarkets does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_MsgUpdateMarkets) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "connect.marketmap.v2.MsgUpdateMarkets.authority": + return protoreflect.ValueOfString("") + case "connect.marketmap.v2.MsgUpdateMarkets.update_markets": + list := []*Market{} + return protoreflect.ValueOfList(&_MsgUpdateMarkets_2_list{list: &list}) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MsgUpdateMarkets")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MsgUpdateMarkets does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_MsgUpdateMarkets) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in connect.marketmap.v2.MsgUpdateMarkets", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_MsgUpdateMarkets) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgUpdateMarkets) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_MsgUpdateMarkets) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_MsgUpdateMarkets) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgUpdateMarkets) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + l = len(x.Authority) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if len(x.UpdateMarkets) > 0 { + for _, e := range x.UpdateMarkets { + 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().(*MsgUpdateMarkets) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]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.UpdateMarkets) > 0 { + for iNdEx := len(x.UpdateMarkets) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.UpdateMarkets[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x12 + } + } + if len(x.Authority) > 0 { + i -= len(x.Authority) + copy(dAtA[i:], x.Authority) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*MsgUpdateMarkets) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateMarkets: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateMarkets: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Authority = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field UpdateMarkets", 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.UpdateMarkets = append(x.UpdateMarkets, &Market{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.UpdateMarkets[len(x.UpdateMarkets)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_MsgUpdateMarketsResponse protoreflect.MessageDescriptor +) + +func init() { + file_connect_marketmap_v2_tx_proto_init() + md_MsgUpdateMarketsResponse = File_connect_marketmap_v2_tx_proto.Messages().ByName("MsgUpdateMarketsResponse") +} + +var _ protoreflect.Message = (*fastReflection_MsgUpdateMarketsResponse)(nil) + +type fastReflection_MsgUpdateMarketsResponse MsgUpdateMarketsResponse + +func (x *MsgUpdateMarketsResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUpdateMarketsResponse)(x) +} + +func (x *MsgUpdateMarketsResponse) slowProtoReflect() protoreflect.Message { + mi := &file_connect_marketmap_v2_tx_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_MsgUpdateMarketsResponse_messageType fastReflection_MsgUpdateMarketsResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgUpdateMarketsResponse_messageType{} + +type fastReflection_MsgUpdateMarketsResponse_messageType struct{} + +func (x fastReflection_MsgUpdateMarketsResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUpdateMarketsResponse)(nil) +} +func (x fastReflection_MsgUpdateMarketsResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUpdateMarketsResponse) +} +func (x fastReflection_MsgUpdateMarketsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateMarketsResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgUpdateMarketsResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateMarketsResponse +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_MsgUpdateMarketsResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgUpdateMarketsResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgUpdateMarketsResponse) New() protoreflect.Message { + return new(fastReflection_MsgUpdateMarketsResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgUpdateMarketsResponse) Interface() protoreflect.ProtoMessage { + return (*MsgUpdateMarketsResponse)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_MsgUpdateMarketsResponse) 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_MsgUpdateMarketsResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MsgUpdateMarketsResponse")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MsgUpdateMarketsResponse does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgUpdateMarketsResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MsgUpdateMarketsResponse")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MsgUpdateMarketsResponse does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_MsgUpdateMarketsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MsgUpdateMarketsResponse")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MsgUpdateMarketsResponse does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgUpdateMarketsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MsgUpdateMarketsResponse")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MsgUpdateMarketsResponse does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgUpdateMarketsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MsgUpdateMarketsResponse")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MsgUpdateMarketsResponse does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_MsgUpdateMarketsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MsgUpdateMarketsResponse")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MsgUpdateMarketsResponse does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_MsgUpdateMarketsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in connect.marketmap.v2.MsgUpdateMarketsResponse", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_MsgUpdateMarketsResponse) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgUpdateMarketsResponse) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_MsgUpdateMarketsResponse) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_MsgUpdateMarketsResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgUpdateMarketsResponse) + 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().(*MsgUpdateMarketsResponse) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]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().(*MsgUpdateMarketsResponse) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateMarketsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateMarketsResponse: 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_MsgParams protoreflect.MessageDescriptor + fd_MsgParams_params protoreflect.FieldDescriptor + fd_MsgParams_authority protoreflect.FieldDescriptor +) + +func init() { + file_connect_marketmap_v2_tx_proto_init() + md_MsgParams = File_connect_marketmap_v2_tx_proto.Messages().ByName("MsgParams") + fd_MsgParams_params = md_MsgParams.Fields().ByName("params") + fd_MsgParams_authority = md_MsgParams.Fields().ByName("authority") +} + +var _ protoreflect.Message = (*fastReflection_MsgParams)(nil) + +type fastReflection_MsgParams MsgParams + +func (x *MsgParams) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgParams)(x) +} + +func (x *MsgParams) slowProtoReflect() protoreflect.Message { + mi := &file_connect_marketmap_v2_tx_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_MsgParams_messageType fastReflection_MsgParams_messageType +var _ protoreflect.MessageType = fastReflection_MsgParams_messageType{} + +type fastReflection_MsgParams_messageType struct{} + +func (x fastReflection_MsgParams_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgParams)(nil) +} +func (x fastReflection_MsgParams_messageType) New() protoreflect.Message { + return new(fastReflection_MsgParams) +} +func (x fastReflection_MsgParams_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgParams +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgParams) Descriptor() protoreflect.MessageDescriptor { + return md_MsgParams +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_MsgParams) Type() protoreflect.MessageType { + return _fastReflection_MsgParams_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgParams) New() protoreflect.Message { + return new(fastReflection_MsgParams) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgParams) Interface() protoreflect.ProtoMessage { + return (*MsgParams)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_MsgParams) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Params != nil { + value := protoreflect.ValueOfMessage(x.Params.ProtoReflect()) + if !f(fd_MsgParams_params, value) { + return + } + } + if x.Authority != "" { + value := protoreflect.ValueOfString(x.Authority) + if !f(fd_MsgParams_authority, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_MsgParams) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "connect.marketmap.v2.MsgParams.params": + return x.Params != nil + case "connect.marketmap.v2.MsgParams.authority": + return x.Authority != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MsgParams")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MsgParams does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgParams) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "connect.marketmap.v2.MsgParams.params": + x.Params = nil + case "connect.marketmap.v2.MsgParams.authority": + x.Authority = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MsgParams")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MsgParams does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_MsgParams) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "connect.marketmap.v2.MsgParams.params": + value := x.Params + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "connect.marketmap.v2.MsgParams.authority": + value := x.Authority + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MsgParams")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MsgParams does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgParams) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "connect.marketmap.v2.MsgParams.params": + x.Params = value.Message().Interface().(*Params) + case "connect.marketmap.v2.MsgParams.authority": + x.Authority = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MsgParams")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MsgParams does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgParams) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "connect.marketmap.v2.MsgParams.params": + if x.Params == nil { + x.Params = new(Params) + } + return protoreflect.ValueOfMessage(x.Params.ProtoReflect()) + case "connect.marketmap.v2.MsgParams.authority": + panic(fmt.Errorf("field authority of message connect.marketmap.v2.MsgParams is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MsgParams")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MsgParams does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_MsgParams) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "connect.marketmap.v2.MsgParams.params": + m := new(Params) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "connect.marketmap.v2.MsgParams.authority": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MsgParams")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MsgParams does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_MsgParams) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in connect.marketmap.v2.MsgParams", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_MsgParams) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgParams) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_MsgParams) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_MsgParams) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgParams) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.Params != nil { + l = options.Size(x.Params) + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Authority) + 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().(*MsgParams) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]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.Authority) > 0 { + i -= len(x.Authority) + copy(dAtA[i:], x.Authority) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority))) + i-- + dAtA[i] = 0x12 + } + if x.Params != nil { + encoded, err := options.Marshal(x.Params) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*MsgParams) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgParams: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgParams: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.Params == nil { + x.Params = &Params{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Params); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Authority = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_MsgParamsResponse protoreflect.MessageDescriptor +) + +func init() { + file_connect_marketmap_v2_tx_proto_init() + md_MsgParamsResponse = File_connect_marketmap_v2_tx_proto.Messages().ByName("MsgParamsResponse") +} + +var _ protoreflect.Message = (*fastReflection_MsgParamsResponse)(nil) + +type fastReflection_MsgParamsResponse MsgParamsResponse + +func (x *MsgParamsResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgParamsResponse)(x) +} + +func (x *MsgParamsResponse) slowProtoReflect() protoreflect.Message { + mi := &file_connect_marketmap_v2_tx_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_MsgParamsResponse_messageType fastReflection_MsgParamsResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgParamsResponse_messageType{} + +type fastReflection_MsgParamsResponse_messageType struct{} + +func (x fastReflection_MsgParamsResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgParamsResponse)(nil) +} +func (x fastReflection_MsgParamsResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgParamsResponse) +} +func (x fastReflection_MsgParamsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgParamsResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgParamsResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgParamsResponse +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_MsgParamsResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgParamsResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgParamsResponse) New() protoreflect.Message { + return new(fastReflection_MsgParamsResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgParamsResponse) Interface() protoreflect.ProtoMessage { + return (*MsgParamsResponse)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_MsgParamsResponse) 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_MsgParamsResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MsgParamsResponse")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MsgParamsResponse does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgParamsResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MsgParamsResponse")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MsgParamsResponse does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_MsgParamsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MsgParamsResponse")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MsgParamsResponse does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgParamsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MsgParamsResponse")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MsgParamsResponse does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgParamsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MsgParamsResponse")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MsgParamsResponse does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_MsgParamsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MsgParamsResponse")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MsgParamsResponse does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_MsgParamsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in connect.marketmap.v2.MsgParamsResponse", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_MsgParamsResponse) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgParamsResponse) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_MsgParamsResponse) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_MsgParamsResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgParamsResponse) + 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().(*MsgParamsResponse) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]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().(*MsgParamsResponse) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgParamsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var _ protoreflect.List = (*_MsgRemoveMarketAuthorities_1_list)(nil) + +type _MsgRemoveMarketAuthorities_1_list struct { + list *[]string +} + +func (x *_MsgRemoveMarketAuthorities_1_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_MsgRemoveMarketAuthorities_1_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfString((*x.list)[i]) +} + +func (x *_MsgRemoveMarketAuthorities_1_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.String() + concreteValue := valueUnwrapped + (*x.list)[i] = concreteValue +} + +func (x *_MsgRemoveMarketAuthorities_1_list) Append(value protoreflect.Value) { + valueUnwrapped := value.String() + concreteValue := valueUnwrapped + *x.list = append(*x.list, concreteValue) +} + +func (x *_MsgRemoveMarketAuthorities_1_list) AppendMutable() protoreflect.Value { + panic(fmt.Errorf("AppendMutable can not be called on message MsgRemoveMarketAuthorities at list field RemoveAddresses as it is not of Message kind")) +} + +func (x *_MsgRemoveMarketAuthorities_1_list) Truncate(n int) { + *x.list = (*x.list)[:n] +} + +func (x *_MsgRemoveMarketAuthorities_1_list) NewElement() protoreflect.Value { + v := "" + return protoreflect.ValueOfString(v) +} + +func (x *_MsgRemoveMarketAuthorities_1_list) IsValid() bool { + return x.list != nil +} + +var ( + md_MsgRemoveMarketAuthorities protoreflect.MessageDescriptor + fd_MsgRemoveMarketAuthorities_remove_addresses protoreflect.FieldDescriptor + fd_MsgRemoveMarketAuthorities_admin protoreflect.FieldDescriptor +) + +func init() { + file_connect_marketmap_v2_tx_proto_init() + md_MsgRemoveMarketAuthorities = File_connect_marketmap_v2_tx_proto.Messages().ByName("MsgRemoveMarketAuthorities") + fd_MsgRemoveMarketAuthorities_remove_addresses = md_MsgRemoveMarketAuthorities.Fields().ByName("remove_addresses") + fd_MsgRemoveMarketAuthorities_admin = md_MsgRemoveMarketAuthorities.Fields().ByName("admin") +} + +var _ protoreflect.Message = (*fastReflection_MsgRemoveMarketAuthorities)(nil) + +type fastReflection_MsgRemoveMarketAuthorities MsgRemoveMarketAuthorities + +func (x *MsgRemoveMarketAuthorities) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgRemoveMarketAuthorities)(x) +} + +func (x *MsgRemoveMarketAuthorities) slowProtoReflect() protoreflect.Message { + mi := &file_connect_marketmap_v2_tx_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_MsgRemoveMarketAuthorities_messageType fastReflection_MsgRemoveMarketAuthorities_messageType +var _ protoreflect.MessageType = fastReflection_MsgRemoveMarketAuthorities_messageType{} + +type fastReflection_MsgRemoveMarketAuthorities_messageType struct{} + +func (x fastReflection_MsgRemoveMarketAuthorities_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgRemoveMarketAuthorities)(nil) +} +func (x fastReflection_MsgRemoveMarketAuthorities_messageType) New() protoreflect.Message { + return new(fastReflection_MsgRemoveMarketAuthorities) +} +func (x fastReflection_MsgRemoveMarketAuthorities_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgRemoveMarketAuthorities +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgRemoveMarketAuthorities) Descriptor() protoreflect.MessageDescriptor { + return md_MsgRemoveMarketAuthorities +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_MsgRemoveMarketAuthorities) Type() protoreflect.MessageType { + return _fastReflection_MsgRemoveMarketAuthorities_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgRemoveMarketAuthorities) New() protoreflect.Message { + return new(fastReflection_MsgRemoveMarketAuthorities) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgRemoveMarketAuthorities) Interface() protoreflect.ProtoMessage { + return (*MsgRemoveMarketAuthorities)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_MsgRemoveMarketAuthorities) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.RemoveAddresses) != 0 { + value := protoreflect.ValueOfList(&_MsgRemoveMarketAuthorities_1_list{list: &x.RemoveAddresses}) + if !f(fd_MsgRemoveMarketAuthorities_remove_addresses, value) { + return + } + } + if x.Admin != "" { + value := protoreflect.ValueOfString(x.Admin) + if !f(fd_MsgRemoveMarketAuthorities_admin, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_MsgRemoveMarketAuthorities) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "connect.marketmap.v2.MsgRemoveMarketAuthorities.remove_addresses": + return len(x.RemoveAddresses) != 0 + case "connect.marketmap.v2.MsgRemoveMarketAuthorities.admin": + return x.Admin != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MsgRemoveMarketAuthorities")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MsgRemoveMarketAuthorities does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgRemoveMarketAuthorities) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "connect.marketmap.v2.MsgRemoveMarketAuthorities.remove_addresses": + x.RemoveAddresses = nil + case "connect.marketmap.v2.MsgRemoveMarketAuthorities.admin": + x.Admin = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MsgRemoveMarketAuthorities")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MsgRemoveMarketAuthorities does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_MsgRemoveMarketAuthorities) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "connect.marketmap.v2.MsgRemoveMarketAuthorities.remove_addresses": + if len(x.RemoveAddresses) == 0 { + return protoreflect.ValueOfList(&_MsgRemoveMarketAuthorities_1_list{}) + } + listValue := &_MsgRemoveMarketAuthorities_1_list{list: &x.RemoveAddresses} + return protoreflect.ValueOfList(listValue) + case "connect.marketmap.v2.MsgRemoveMarketAuthorities.admin": + value := x.Admin + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MsgRemoveMarketAuthorities")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MsgRemoveMarketAuthorities does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgRemoveMarketAuthorities) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "connect.marketmap.v2.MsgRemoveMarketAuthorities.remove_addresses": + lv := value.List() + clv := lv.(*_MsgRemoveMarketAuthorities_1_list) + x.RemoveAddresses = *clv.list + case "connect.marketmap.v2.MsgRemoveMarketAuthorities.admin": + x.Admin = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MsgRemoveMarketAuthorities")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MsgRemoveMarketAuthorities does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgRemoveMarketAuthorities) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "connect.marketmap.v2.MsgRemoveMarketAuthorities.remove_addresses": + if x.RemoveAddresses == nil { + x.RemoveAddresses = []string{} + } + value := &_MsgRemoveMarketAuthorities_1_list{list: &x.RemoveAddresses} + return protoreflect.ValueOfList(value) + case "connect.marketmap.v2.MsgRemoveMarketAuthorities.admin": + panic(fmt.Errorf("field admin of message connect.marketmap.v2.MsgRemoveMarketAuthorities is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MsgRemoveMarketAuthorities")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MsgRemoveMarketAuthorities does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_MsgRemoveMarketAuthorities) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "connect.marketmap.v2.MsgRemoveMarketAuthorities.remove_addresses": + list := []string{} + return protoreflect.ValueOfList(&_MsgRemoveMarketAuthorities_1_list{list: &list}) + case "connect.marketmap.v2.MsgRemoveMarketAuthorities.admin": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MsgRemoveMarketAuthorities")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MsgRemoveMarketAuthorities does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_MsgRemoveMarketAuthorities) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in connect.marketmap.v2.MsgRemoveMarketAuthorities", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_MsgRemoveMarketAuthorities) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgRemoveMarketAuthorities) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_MsgRemoveMarketAuthorities) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_MsgRemoveMarketAuthorities) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgRemoveMarketAuthorities) + 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.RemoveAddresses) > 0 { + for _, s := range x.RemoveAddresses { + l = len(s) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + l = len(x.Admin) + 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().(*MsgRemoveMarketAuthorities) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]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.Admin) > 0 { + i -= len(x.Admin) + copy(dAtA[i:], x.Admin) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Admin))) + i-- + dAtA[i] = 0x12 + } + if len(x.RemoveAddresses) > 0 { + for iNdEx := len(x.RemoveAddresses) - 1; iNdEx >= 0; iNdEx-- { + i -= len(x.RemoveAddresses[iNdEx]) + copy(dAtA[i:], x.RemoveAddresses[iNdEx]) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.RemoveAddresses[iNdEx]))) + 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().(*MsgRemoveMarketAuthorities) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRemoveMarketAuthorities: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRemoveMarketAuthorities: 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 RemoveAddresses", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.RemoveAddresses = append(x.RemoveAddresses, 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 Admin", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Admin = 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_MsgRemoveMarketAuthoritiesResponse protoreflect.MessageDescriptor +) + +func init() { + file_connect_marketmap_v2_tx_proto_init() + md_MsgRemoveMarketAuthoritiesResponse = File_connect_marketmap_v2_tx_proto.Messages().ByName("MsgRemoveMarketAuthoritiesResponse") +} + +var _ protoreflect.Message = (*fastReflection_MsgRemoveMarketAuthoritiesResponse)(nil) + +type fastReflection_MsgRemoveMarketAuthoritiesResponse MsgRemoveMarketAuthoritiesResponse + +func (x *MsgRemoveMarketAuthoritiesResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgRemoveMarketAuthoritiesResponse)(x) +} + +func (x *MsgRemoveMarketAuthoritiesResponse) slowProtoReflect() protoreflect.Message { + mi := &file_connect_marketmap_v2_tx_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_MsgRemoveMarketAuthoritiesResponse_messageType fastReflection_MsgRemoveMarketAuthoritiesResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgRemoveMarketAuthoritiesResponse_messageType{} + +type fastReflection_MsgRemoveMarketAuthoritiesResponse_messageType struct{} + +func (x fastReflection_MsgRemoveMarketAuthoritiesResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgRemoveMarketAuthoritiesResponse)(nil) +} +func (x fastReflection_MsgRemoveMarketAuthoritiesResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgRemoveMarketAuthoritiesResponse) +} +func (x fastReflection_MsgRemoveMarketAuthoritiesResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgRemoveMarketAuthoritiesResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgRemoveMarketAuthoritiesResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgRemoveMarketAuthoritiesResponse +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_MsgRemoveMarketAuthoritiesResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgRemoveMarketAuthoritiesResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgRemoveMarketAuthoritiesResponse) New() protoreflect.Message { + return new(fastReflection_MsgRemoveMarketAuthoritiesResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgRemoveMarketAuthoritiesResponse) Interface() protoreflect.ProtoMessage { + return (*MsgRemoveMarketAuthoritiesResponse)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_MsgRemoveMarketAuthoritiesResponse) 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_MsgRemoveMarketAuthoritiesResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MsgRemoveMarketAuthoritiesResponse")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MsgRemoveMarketAuthoritiesResponse does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgRemoveMarketAuthoritiesResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MsgRemoveMarketAuthoritiesResponse")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MsgRemoveMarketAuthoritiesResponse does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_MsgRemoveMarketAuthoritiesResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MsgRemoveMarketAuthoritiesResponse")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MsgRemoveMarketAuthoritiesResponse does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgRemoveMarketAuthoritiesResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MsgRemoveMarketAuthoritiesResponse")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MsgRemoveMarketAuthoritiesResponse does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgRemoveMarketAuthoritiesResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MsgRemoveMarketAuthoritiesResponse")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MsgRemoveMarketAuthoritiesResponse does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_MsgRemoveMarketAuthoritiesResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.marketmap.v2.MsgRemoveMarketAuthoritiesResponse")) + } + panic(fmt.Errorf("message connect.marketmap.v2.MsgRemoveMarketAuthoritiesResponse does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_MsgRemoveMarketAuthoritiesResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in connect.marketmap.v2.MsgRemoveMarketAuthoritiesResponse", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_MsgRemoveMarketAuthoritiesResponse) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgRemoveMarketAuthoritiesResponse) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_MsgRemoveMarketAuthoritiesResponse) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_MsgRemoveMarketAuthoritiesResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgRemoveMarketAuthoritiesResponse) + 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().(*MsgRemoveMarketAuthoritiesResponse) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]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().(*MsgRemoveMarketAuthoritiesResponse) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRemoveMarketAuthoritiesResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRemoveMarketAuthoritiesResponse: 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: connect/marketmap/v2/tx.proto + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// MsgUpsertMarkets defines a message carrying a payload for performing market +// upserts (update or create if does not exist) in the x/marketmap module. +type MsgUpsertMarkets struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Authority is the signer of this transaction. This authority must be + // authorized by the module to execute the message. + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + // CreateMarkets is the list of all markets to be created for the given + // transaction. + Markets []*Market `protobuf:"bytes,2,rep,name=markets,proto3" json:"markets,omitempty"` +} + +func (x *MsgUpsertMarkets) Reset() { + *x = MsgUpsertMarkets{} + if protoimpl.UnsafeEnabled { + mi := &file_connect_marketmap_v2_tx_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgUpsertMarkets) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgUpsertMarkets) ProtoMessage() {} + +// Deprecated: Use MsgUpsertMarkets.ProtoReflect.Descriptor instead. +func (*MsgUpsertMarkets) Descriptor() ([]byte, []int) { + return file_connect_marketmap_v2_tx_proto_rawDescGZIP(), []int{0} +} + +func (x *MsgUpsertMarkets) GetAuthority() string { + if x != nil { + return x.Authority + } + return "" +} + +func (x *MsgUpsertMarkets) GetMarkets() []*Market { + if x != nil { + return x.Markets + } + return nil +} + +// MsgUpsertMarketsResponse is the response from the UpsertMarkets API in the +// x/marketmap module. +type MsgUpsertMarketsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // UpdatedMarkets is a map between the ticker and whether the market was + // updated. + // Deprecated: This field will be empty in all responses. + // + // Deprecated: Do not use. + MarketUpdates map[string]bool `protobuf:"bytes,1,rep,name=market_updates,json=marketUpdates,proto3" json:"market_updates,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` +} + +func (x *MsgUpsertMarketsResponse) Reset() { + *x = MsgUpsertMarketsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_connect_marketmap_v2_tx_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgUpsertMarketsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgUpsertMarketsResponse) ProtoMessage() {} + +// Deprecated: Use MsgUpsertMarketsResponse.ProtoReflect.Descriptor instead. +func (*MsgUpsertMarketsResponse) Descriptor() ([]byte, []int) { + return file_connect_marketmap_v2_tx_proto_rawDescGZIP(), []int{1} +} + +// Deprecated: Do not use. +func (x *MsgUpsertMarketsResponse) GetMarketUpdates() map[string]bool { + if x != nil { + return x.MarketUpdates + } + return nil +} + +// MsgCreateMarkets defines a message carrying a payload for creating markets in +// the x/marketmap module. +type MsgCreateMarkets struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Authority is the signer of this transaction. This authority must be + // authorized by the module to execute the message. + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + // CreateMarkets is the list of all markets to be created for the given + // transaction. + CreateMarkets []*Market `protobuf:"bytes,2,rep,name=create_markets,json=createMarkets,proto3" json:"create_markets,omitempty"` +} + +func (x *MsgCreateMarkets) Reset() { + *x = MsgCreateMarkets{} + if protoimpl.UnsafeEnabled { + mi := &file_connect_marketmap_v2_tx_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgCreateMarkets) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgCreateMarkets) ProtoMessage() {} + +// Deprecated: Use MsgCreateMarkets.ProtoReflect.Descriptor instead. +func (*MsgCreateMarkets) Descriptor() ([]byte, []int) { + return file_connect_marketmap_v2_tx_proto_rawDescGZIP(), []int{2} +} + +func (x *MsgCreateMarkets) GetAuthority() string { + if x != nil { + return x.Authority + } + return "" +} + +func (x *MsgCreateMarkets) GetCreateMarkets() []*Market { + if x != nil { + return x.CreateMarkets + } + return nil +} + +// MsgUpdateMarketMapResponse is the response message for MsgUpdateMarketMap. +type MsgCreateMarketsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *MsgCreateMarketsResponse) Reset() { + *x = MsgCreateMarketsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_connect_marketmap_v2_tx_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgCreateMarketsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgCreateMarketsResponse) ProtoMessage() {} + +// Deprecated: Use MsgCreateMarketsResponse.ProtoReflect.Descriptor instead. +func (*MsgCreateMarketsResponse) Descriptor() ([]byte, []int) { + return file_connect_marketmap_v2_tx_proto_rawDescGZIP(), []int{3} +} + +// MsgUpdateMarkets defines a message carrying a payload for updating the +// x/marketmap module. +type MsgUpdateMarkets struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Authority is the signer of this transaction. This authority must be + // authorized by the module to execute the message. + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + // UpdateMarkets is the list of all markets to be updated for the given + // transaction. + UpdateMarkets []*Market `protobuf:"bytes,2,rep,name=update_markets,json=updateMarkets,proto3" json:"update_markets,omitempty"` +} + +func (x *MsgUpdateMarkets) Reset() { + *x = MsgUpdateMarkets{} + if protoimpl.UnsafeEnabled { + mi := &file_connect_marketmap_v2_tx_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgUpdateMarkets) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgUpdateMarkets) ProtoMessage() {} + +// Deprecated: Use MsgUpdateMarkets.ProtoReflect.Descriptor instead. +func (*MsgUpdateMarkets) Descriptor() ([]byte, []int) { + return file_connect_marketmap_v2_tx_proto_rawDescGZIP(), []int{4} +} + +func (x *MsgUpdateMarkets) GetAuthority() string { + if x != nil { + return x.Authority + } + return "" +} + +func (x *MsgUpdateMarkets) GetUpdateMarkets() []*Market { + if x != nil { + return x.UpdateMarkets + } + return nil +} + +// MsgUpdateMarketsResponse is the response message for MsgUpdateMarkets. +type MsgUpdateMarketsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *MsgUpdateMarketsResponse) Reset() { + *x = MsgUpdateMarketsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_connect_marketmap_v2_tx_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgUpdateMarketsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgUpdateMarketsResponse) ProtoMessage() {} + +// Deprecated: Use MsgUpdateMarketsResponse.ProtoReflect.Descriptor instead. +func (*MsgUpdateMarketsResponse) Descriptor() ([]byte, []int) { + return file_connect_marketmap_v2_tx_proto_rawDescGZIP(), []int{5} +} + +// MsgParams defines the Msg/Params request type. It contains the +// new parameters for the x/marketmap module. +type MsgParams struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Params defines the new parameters for the x/marketmap module. + Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` + // Authority defines the authority that is updating the x/marketmap module + // parameters. + Authority string `protobuf:"bytes,2,opt,name=authority,proto3" json:"authority,omitempty"` +} + +func (x *MsgParams) Reset() { + *x = MsgParams{} + if protoimpl.UnsafeEnabled { + mi := &file_connect_marketmap_v2_tx_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgParams) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgParams) ProtoMessage() {} + +// Deprecated: Use MsgParams.ProtoReflect.Descriptor instead. +func (*MsgParams) Descriptor() ([]byte, []int) { + return file_connect_marketmap_v2_tx_proto_rawDescGZIP(), []int{6} +} + +func (x *MsgParams) GetParams() *Params { + if x != nil { + return x.Params + } + return nil +} + +func (x *MsgParams) GetAuthority() string { + if x != nil { + return x.Authority + } + return "" +} + +// MsgParamsResponse defines the Msg/Params response type. +type MsgParamsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *MsgParamsResponse) Reset() { + *x = MsgParamsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_connect_marketmap_v2_tx_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgParamsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgParamsResponse) ProtoMessage() {} + +// Deprecated: Use MsgParamsResponse.ProtoReflect.Descriptor instead. +func (*MsgParamsResponse) Descriptor() ([]byte, []int) { + return file_connect_marketmap_v2_tx_proto_rawDescGZIP(), []int{7} +} + +// MsgRemoveMarketAuthorities defines the Msg/RemoveMarketAuthoritiesResponse +// request type. It contains the new addresses to remove from the list of +// authorities +type MsgRemoveMarketAuthorities struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // RemoveAddresses is the list of addresses to remove. + RemoveAddresses []string `protobuf:"bytes,1,rep,name=remove_addresses,json=removeAddresses,proto3" json:"remove_addresses,omitempty"` + // Admin defines the authority that is the x/marketmap + // Admin account. This account is set in the module parameters. + Admin string `protobuf:"bytes,2,opt,name=admin,proto3" json:"admin,omitempty"` +} + +func (x *MsgRemoveMarketAuthorities) Reset() { + *x = MsgRemoveMarketAuthorities{} + if protoimpl.UnsafeEnabled { + mi := &file_connect_marketmap_v2_tx_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgRemoveMarketAuthorities) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgRemoveMarketAuthorities) ProtoMessage() {} + +// Deprecated: Use MsgRemoveMarketAuthorities.ProtoReflect.Descriptor instead. +func (*MsgRemoveMarketAuthorities) Descriptor() ([]byte, []int) { + return file_connect_marketmap_v2_tx_proto_rawDescGZIP(), []int{8} +} + +func (x *MsgRemoveMarketAuthorities) GetRemoveAddresses() []string { + if x != nil { + return x.RemoveAddresses + } + return nil +} + +func (x *MsgRemoveMarketAuthorities) GetAdmin() string { + if x != nil { + return x.Admin + } + return "" +} + +// MsgRemoveMarketAuthoritiesResponse defines the +// Msg/RemoveMarketAuthoritiesResponse response type. +type MsgRemoveMarketAuthoritiesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *MsgRemoveMarketAuthoritiesResponse) Reset() { + *x = MsgRemoveMarketAuthoritiesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_connect_marketmap_v2_tx_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgRemoveMarketAuthoritiesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgRemoveMarketAuthoritiesResponse) ProtoMessage() {} + +// Deprecated: Use MsgRemoveMarketAuthoritiesResponse.ProtoReflect.Descriptor instead. +func (*MsgRemoveMarketAuthoritiesResponse) Descriptor() ([]byte, []int) { + return file_connect_marketmap_v2_tx_proto_rawDescGZIP(), []int{9} +} + +var File_connect_marketmap_v2_tx_proto protoreflect.FileDescriptor + +var file_connect_marketmap_v2_tx_proto_rawDesc = []byte{ + 0x0a, 0x1d, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2f, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, + 0x6d, 0x61, 0x70, 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x78, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, + 0x14, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x6d, + 0x61, 0x70, 0x2e, 0x76, 0x32, 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, 0x14, + 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, + 0x11, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x1a, 0x21, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2f, 0x6d, 0x61, 0x72, 0x6b, + 0x65, 0x74, 0x6d, 0x61, 0x70, 0x2f, 0x76, 0x32, 0x2f, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x21, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2f, 0x6d, + 0x61, 0x72, 0x6b, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x2f, 0x76, 0x32, 0x2f, 0x70, 0x61, 0x72, 0x61, + 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc5, 0x01, 0x0a, 0x10, 0x4d, 0x73, 0x67, + 0x55, 0x70, 0x73, 0x65, 0x72, 0x74, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x73, 0x12, 0x36, 0x0a, + 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, + 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x3c, 0x0a, 0x07, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x73, + 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, + 0x2e, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x61, + 0x72, 0x6b, 0x65, 0x74, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x07, 0x6d, 0x61, 0x72, 0x6b, + 0x65, 0x74, 0x73, 0x3a, 0x3b, 0xe8, 0xa0, 0x1f, 0x00, 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x61, 0x75, + 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x8a, 0xe7, 0xb0, 0x2a, 0x24, 0x63, 0x6f, 0x6e, 0x6e, + 0x65, 0x63, 0x74, 0x2f, 0x78, 0x2f, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x2f, + 0x4d, 0x73, 0x67, 0x55, 0x70, 0x73, 0x65, 0x72, 0x74, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x73, + 0x22, 0xd0, 0x01, 0x0a, 0x18, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x73, 0x65, 0x72, 0x74, 0x4d, 0x61, + 0x72, 0x6b, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6c, 0x0a, + 0x0e, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x73, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x41, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, + 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x73, 0x67, + 0x55, 0x70, 0x73, 0x65, 0x72, 0x74, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x42, 0x02, 0x18, 0x01, 0x52, 0x0d, 0x6d, 0x61, + 0x72, 0x6b, 0x65, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x73, 0x1a, 0x40, 0x0a, 0x12, 0x4d, + 0x61, 0x72, 0x6b, 0x65, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, + 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, + 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x3a, 0x04, 0x98, + 0xa1, 0x1f, 0x01, 0x22, 0xd2, 0x01, 0x0a, 0x10, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x73, 0x12, 0x36, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, + 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, + 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, + 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, + 0x12, 0x49, 0x0a, 0x0e, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x72, 0x6b, 0x65, + 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, + 0x63, 0x74, 0x2e, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x2e, 0x76, 0x32, 0x2e, + 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0d, 0x63, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x73, 0x3a, 0x3b, 0xe8, 0xa0, 0x1f, + 0x00, 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x8a, + 0xe7, 0xb0, 0x2a, 0x24, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2f, 0x78, 0x2f, 0x6d, 0x61, + 0x72, 0x6b, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x2f, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x73, 0x22, 0x1a, 0x0a, 0x18, 0x4d, 0x73, 0x67, 0x43, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xd2, 0x01, 0x0a, 0x10, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x73, 0x12, 0x36, 0x0a, 0x09, 0x61, 0x75, 0x74, + 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, + 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, + 0x79, 0x12, 0x49, 0x0a, 0x0e, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x72, 0x6b, + 0x65, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, + 0x65, 0x63, 0x74, 0x2e, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x2e, 0x76, 0x32, + 0x2e, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0d, 0x75, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x73, 0x3a, 0x3b, 0xe8, 0xa0, + 0x1f, 0x00, 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, + 0x8a, 0xe7, 0xb0, 0x2a, 0x24, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2f, 0x78, 0x2f, 0x6d, + 0x61, 0x72, 0x6b, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x2f, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x73, 0x22, 0x1a, 0x0a, 0x18, 0x4d, 0x73, 0x67, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x8f, 0x01, 0x0a, 0x09, 0x4d, 0x73, 0x67, 0x50, 0x61, 0x72, + 0x61, 0x6d, 0x73, 0x12, 0x3a, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x6d, 0x61, + 0x72, 0x6b, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x2e, 0x76, 0x32, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, + 0x73, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, + 0x36, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 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, 0x61, 0x75, + 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x3a, 0x0e, 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x61, 0x75, + 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x22, 0x13, 0x0a, 0x11, 0x4d, 0x73, 0x67, 0x50, 0x61, + 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x83, 0x01, 0x0a, + 0x1a, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, + 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x69, 0x65, 0x73, 0x12, 0x29, 0x0a, 0x10, 0x72, + 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0f, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x41, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x12, 0x2e, 0x0a, 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, 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, + 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x3a, 0x0a, 0x82, 0xe7, 0xb0, 0x2a, 0x05, 0x61, 0x64, 0x6d, + 0x69, 0x6e, 0x22, 0x24, 0x0a, 0x22, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x4d, + 0x61, 0x72, 0x6b, 0x65, 0x74, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x69, 0x65, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xa9, 0x04, 0x0a, 0x03, 0x4d, 0x73, 0x67, + 0x12, 0x67, 0x0a, 0x0d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, + 0x73, 0x12, 0x26, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x6d, 0x61, 0x72, 0x6b, + 0x65, 0x74, 0x6d, 0x61, 0x70, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x73, 0x1a, 0x2e, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, + 0x65, 0x63, 0x74, 0x2e, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x2e, 0x76, 0x32, + 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x67, 0x0a, 0x0d, 0x55, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x73, 0x12, 0x26, 0x2e, 0x63, 0x6f, 0x6e, + 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x2e, 0x76, + 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x72, 0x6b, 0x65, + 0x74, 0x73, 0x1a, 0x2e, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x6d, 0x61, 0x72, + 0x6b, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x58, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, + 0x6d, 0x73, 0x12, 0x1f, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x6d, 0x61, 0x72, + 0x6b, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x50, 0x61, 0x72, + 0x61, 0x6d, 0x73, 0x1a, 0x27, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x6d, 0x61, + 0x72, 0x6b, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x50, 0x61, + 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x85, 0x01, 0x0a, + 0x17, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x41, 0x75, 0x74, + 0x68, 0x6f, 0x72, 0x69, 0x74, 0x69, 0x65, 0x73, 0x12, 0x30, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, + 0x63, 0x74, 0x2e, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x2e, 0x76, 0x32, 0x2e, + 0x4d, 0x73, 0x67, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x41, + 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x69, 0x65, 0x73, 0x1a, 0x38, 0x2e, 0x63, 0x6f, 0x6e, + 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x2e, 0x76, + 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x4d, 0x61, 0x72, 0x6b, 0x65, + 0x74, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x67, 0x0a, 0x0d, 0x55, 0x70, 0x73, 0x65, 0x72, 0x74, 0x4d, 0x61, + 0x72, 0x6b, 0x65, 0x74, 0x73, 0x12, 0x26, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, + 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x73, 0x67, + 0x55, 0x70, 0x73, 0x65, 0x72, 0x74, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x73, 0x1a, 0x2e, 0x2e, + 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x6d, 0x61, + 0x70, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x73, 0x65, 0x72, 0x74, 0x4d, 0x61, + 0x72, 0x6b, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x1a, 0x05, 0x80, + 0xe7, 0xb0, 0x2a, 0x01, 0x42, 0xc8, 0x01, 0x0a, 0x18, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x6e, + 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x2e, 0x76, + 0x32, 0x42, 0x07, 0x54, 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x31, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, + 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2f, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x6d, 0x61, 0x70, + 0x2f, 0x76, 0x32, 0x3b, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x76, 0x32, 0xa2, + 0x02, 0x03, 0x43, 0x4d, 0x58, 0xaa, 0x02, 0x14, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, + 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x2e, 0x56, 0x32, 0xca, 0x02, 0x14, 0x43, + 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x5c, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x6d, 0x61, 0x70, + 0x5c, 0x56, 0x32, 0xe2, 0x02, 0x20, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x5c, 0x4d, 0x61, + 0x72, 0x6b, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x5c, 0x56, 0x32, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x16, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, + 0x3a, 0x3a, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x3a, 0x3a, 0x56, 0x32, 0x62, + 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_connect_marketmap_v2_tx_proto_rawDescOnce sync.Once + file_connect_marketmap_v2_tx_proto_rawDescData = file_connect_marketmap_v2_tx_proto_rawDesc +) + +func file_connect_marketmap_v2_tx_proto_rawDescGZIP() []byte { + file_connect_marketmap_v2_tx_proto_rawDescOnce.Do(func() { + file_connect_marketmap_v2_tx_proto_rawDescData = protoimpl.X.CompressGZIP(file_connect_marketmap_v2_tx_proto_rawDescData) + }) + return file_connect_marketmap_v2_tx_proto_rawDescData +} + +var file_connect_marketmap_v2_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 11) +var file_connect_marketmap_v2_tx_proto_goTypes = []interface{}{ + (*MsgUpsertMarkets)(nil), // 0: connect.marketmap.v2.MsgUpsertMarkets + (*MsgUpsertMarketsResponse)(nil), // 1: connect.marketmap.v2.MsgUpsertMarketsResponse + (*MsgCreateMarkets)(nil), // 2: connect.marketmap.v2.MsgCreateMarkets + (*MsgCreateMarketsResponse)(nil), // 3: connect.marketmap.v2.MsgCreateMarketsResponse + (*MsgUpdateMarkets)(nil), // 4: connect.marketmap.v2.MsgUpdateMarkets + (*MsgUpdateMarketsResponse)(nil), // 5: connect.marketmap.v2.MsgUpdateMarketsResponse + (*MsgParams)(nil), // 6: connect.marketmap.v2.MsgParams + (*MsgParamsResponse)(nil), // 7: connect.marketmap.v2.MsgParamsResponse + (*MsgRemoveMarketAuthorities)(nil), // 8: connect.marketmap.v2.MsgRemoveMarketAuthorities + (*MsgRemoveMarketAuthoritiesResponse)(nil), // 9: connect.marketmap.v2.MsgRemoveMarketAuthoritiesResponse + nil, // 10: connect.marketmap.v2.MsgUpsertMarketsResponse.MarketUpdatesEntry + (*Market)(nil), // 11: connect.marketmap.v2.Market + (*Params)(nil), // 12: connect.marketmap.v2.Params +} +var file_connect_marketmap_v2_tx_proto_depIdxs = []int32{ + 11, // 0: connect.marketmap.v2.MsgUpsertMarkets.markets:type_name -> connect.marketmap.v2.Market + 10, // 1: connect.marketmap.v2.MsgUpsertMarketsResponse.market_updates:type_name -> connect.marketmap.v2.MsgUpsertMarketsResponse.MarketUpdatesEntry + 11, // 2: connect.marketmap.v2.MsgCreateMarkets.create_markets:type_name -> connect.marketmap.v2.Market + 11, // 3: connect.marketmap.v2.MsgUpdateMarkets.update_markets:type_name -> connect.marketmap.v2.Market + 12, // 4: connect.marketmap.v2.MsgParams.params:type_name -> connect.marketmap.v2.Params + 2, // 5: connect.marketmap.v2.Msg.CreateMarkets:input_type -> connect.marketmap.v2.MsgCreateMarkets + 4, // 6: connect.marketmap.v2.Msg.UpdateMarkets:input_type -> connect.marketmap.v2.MsgUpdateMarkets + 6, // 7: connect.marketmap.v2.Msg.UpdateParams:input_type -> connect.marketmap.v2.MsgParams + 8, // 8: connect.marketmap.v2.Msg.RemoveMarketAuthorities:input_type -> connect.marketmap.v2.MsgRemoveMarketAuthorities + 0, // 9: connect.marketmap.v2.Msg.UpsertMarkets:input_type -> connect.marketmap.v2.MsgUpsertMarkets + 3, // 10: connect.marketmap.v2.Msg.CreateMarkets:output_type -> connect.marketmap.v2.MsgCreateMarketsResponse + 5, // 11: connect.marketmap.v2.Msg.UpdateMarkets:output_type -> connect.marketmap.v2.MsgUpdateMarketsResponse + 7, // 12: connect.marketmap.v2.Msg.UpdateParams:output_type -> connect.marketmap.v2.MsgParamsResponse + 9, // 13: connect.marketmap.v2.Msg.RemoveMarketAuthorities:output_type -> connect.marketmap.v2.MsgRemoveMarketAuthoritiesResponse + 1, // 14: connect.marketmap.v2.Msg.UpsertMarkets:output_type -> connect.marketmap.v2.MsgUpsertMarketsResponse + 10, // [10:15] is the sub-list for method output_type + 5, // [5:10] is the sub-list for method input_type + 5, // [5:5] is the sub-list for extension type_name + 5, // [5:5] is the sub-list for extension extendee + 0, // [0:5] is the sub-list for field type_name +} + +func init() { file_connect_marketmap_v2_tx_proto_init() } +func file_connect_marketmap_v2_tx_proto_init() { + if File_connect_marketmap_v2_tx_proto != nil { + return + } + file_connect_marketmap_v2_market_proto_init() + file_connect_marketmap_v2_params_proto_init() + if !protoimpl.UnsafeEnabled { + file_connect_marketmap_v2_tx_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgUpsertMarkets); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_connect_marketmap_v2_tx_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgUpsertMarketsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_connect_marketmap_v2_tx_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgCreateMarkets); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_connect_marketmap_v2_tx_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgCreateMarketsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_connect_marketmap_v2_tx_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgUpdateMarkets); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_connect_marketmap_v2_tx_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgUpdateMarketsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_connect_marketmap_v2_tx_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgParams); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_connect_marketmap_v2_tx_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgParamsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_connect_marketmap_v2_tx_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgRemoveMarketAuthorities); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_connect_marketmap_v2_tx_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgRemoveMarketAuthoritiesResponse); 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_connect_marketmap_v2_tx_proto_rawDesc, + NumEnums: 0, + NumMessages: 11, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_connect_marketmap_v2_tx_proto_goTypes, + DependencyIndexes: file_connect_marketmap_v2_tx_proto_depIdxs, + MessageInfos: file_connect_marketmap_v2_tx_proto_msgTypes, + }.Build() + File_connect_marketmap_v2_tx_proto = out.File + file_connect_marketmap_v2_tx_proto_rawDesc = nil + file_connect_marketmap_v2_tx_proto_goTypes = nil + file_connect_marketmap_v2_tx_proto_depIdxs = nil +} diff --git a/api/connect/marketmap/v2/tx_grpc.pb.go b/api/connect/marketmap/v2/tx_grpc.pb.go new file mode 100644 index 000000000..232d972e3 --- /dev/null +++ b/api/connect/marketmap/v2/tx_grpc.pb.go @@ -0,0 +1,295 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.5.1 +// - protoc (unknown) +// source: connect/marketmap/v2/tx.proto + +package marketmapv2 + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 + +const ( + Msg_CreateMarkets_FullMethodName = "/connect.marketmap.v2.Msg/CreateMarkets" + Msg_UpdateMarkets_FullMethodName = "/connect.marketmap.v2.Msg/UpdateMarkets" + Msg_UpdateParams_FullMethodName = "/connect.marketmap.v2.Msg/UpdateParams" + Msg_RemoveMarketAuthorities_FullMethodName = "/connect.marketmap.v2.Msg/RemoveMarketAuthorities" + Msg_UpsertMarkets_FullMethodName = "/connect.marketmap.v2.Msg/UpsertMarkets" +) + +// MsgClient is the client API for Msg service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +// +// Msg is the message service for the x/marketmap module. +type MsgClient interface { + // CreateMarkets creates markets from the given message. + CreateMarkets(ctx context.Context, in *MsgCreateMarkets, opts ...grpc.CallOption) (*MsgCreateMarketsResponse, error) + // UpdateMarkets updates markets from the given message. + UpdateMarkets(ctx context.Context, in *MsgUpdateMarkets, opts ...grpc.CallOption) (*MsgUpdateMarketsResponse, error) + // UpdateParams defines a method for updating the x/marketmap module + // parameters. + UpdateParams(ctx context.Context, in *MsgParams, opts ...grpc.CallOption) (*MsgParamsResponse, error) + // RemoveMarketAuthorities defines a method for removing market authorities + // from the x/marketmap module. the signer must be the admin. + RemoveMarketAuthorities(ctx context.Context, in *MsgRemoveMarketAuthorities, opts ...grpc.CallOption) (*MsgRemoveMarketAuthoritiesResponse, error) + // UpsertMarkets wraps both Create / Update markets into a single message. + // Specifically if a market does not exist it will be created, otherwise it + // will be updated. The response will be a map between ticker -> updated. + UpsertMarkets(ctx context.Context, in *MsgUpsertMarkets, opts ...grpc.CallOption) (*MsgUpsertMarketsResponse, error) +} + +type msgClient struct { + cc grpc.ClientConnInterface +} + +func NewMsgClient(cc grpc.ClientConnInterface) MsgClient { + return &msgClient{cc} +} + +func (c *msgClient) CreateMarkets(ctx context.Context, in *MsgCreateMarkets, opts ...grpc.CallOption) (*MsgCreateMarketsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(MsgCreateMarketsResponse) + err := c.cc.Invoke(ctx, Msg_CreateMarkets_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) UpdateMarkets(ctx context.Context, in *MsgUpdateMarkets, opts ...grpc.CallOption) (*MsgUpdateMarketsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(MsgUpdateMarketsResponse) + err := c.cc.Invoke(ctx, Msg_UpdateMarkets_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) UpdateParams(ctx context.Context, in *MsgParams, opts ...grpc.CallOption) (*MsgParamsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(MsgParamsResponse) + err := c.cc.Invoke(ctx, Msg_UpdateParams_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) RemoveMarketAuthorities(ctx context.Context, in *MsgRemoveMarketAuthorities, opts ...grpc.CallOption) (*MsgRemoveMarketAuthoritiesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(MsgRemoveMarketAuthoritiesResponse) + err := c.cc.Invoke(ctx, Msg_RemoveMarketAuthorities_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) UpsertMarkets(ctx context.Context, in *MsgUpsertMarkets, opts ...grpc.CallOption) (*MsgUpsertMarketsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(MsgUpsertMarketsResponse) + err := c.cc.Invoke(ctx, Msg_UpsertMarkets_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// MsgServer is the server API for Msg service. +// All implementations must embed UnimplementedMsgServer +// for forward compatibility. +// +// Msg is the message service for the x/marketmap module. +type MsgServer interface { + // CreateMarkets creates markets from the given message. + CreateMarkets(context.Context, *MsgCreateMarkets) (*MsgCreateMarketsResponse, error) + // UpdateMarkets updates markets from the given message. + UpdateMarkets(context.Context, *MsgUpdateMarkets) (*MsgUpdateMarketsResponse, error) + // UpdateParams defines a method for updating the x/marketmap module + // parameters. + UpdateParams(context.Context, *MsgParams) (*MsgParamsResponse, error) + // RemoveMarketAuthorities defines a method for removing market authorities + // from the x/marketmap module. the signer must be the admin. + RemoveMarketAuthorities(context.Context, *MsgRemoveMarketAuthorities) (*MsgRemoveMarketAuthoritiesResponse, error) + // UpsertMarkets wraps both Create / Update markets into a single message. + // Specifically if a market does not exist it will be created, otherwise it + // will be updated. The response will be a map between ticker -> updated. + UpsertMarkets(context.Context, *MsgUpsertMarkets) (*MsgUpsertMarketsResponse, error) + mustEmbedUnimplementedMsgServer() +} + +// UnimplementedMsgServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedMsgServer struct{} + +func (UnimplementedMsgServer) CreateMarkets(context.Context, *MsgCreateMarkets) (*MsgCreateMarketsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateMarkets not implemented") +} +func (UnimplementedMsgServer) UpdateMarkets(context.Context, *MsgUpdateMarkets) (*MsgUpdateMarketsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateMarkets not implemented") +} +func (UnimplementedMsgServer) UpdateParams(context.Context, *MsgParams) (*MsgParamsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateParams not implemented") +} +func (UnimplementedMsgServer) RemoveMarketAuthorities(context.Context, *MsgRemoveMarketAuthorities) (*MsgRemoveMarketAuthoritiesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RemoveMarketAuthorities not implemented") +} +func (UnimplementedMsgServer) UpsertMarkets(context.Context, *MsgUpsertMarkets) (*MsgUpsertMarketsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpsertMarkets not implemented") +} +func (UnimplementedMsgServer) mustEmbedUnimplementedMsgServer() {} +func (UnimplementedMsgServer) testEmbeddedByValue() {} + +// UnsafeMsgServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to MsgServer will +// result in compilation errors. +type UnsafeMsgServer interface { + mustEmbedUnimplementedMsgServer() +} + +func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer) { + // If the following call pancis, it indicates UnimplementedMsgServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&Msg_ServiceDesc, srv) +} + +func _Msg_CreateMarkets_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgCreateMarkets) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).CreateMarkets(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_CreateMarkets_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).CreateMarkets(ctx, req.(*MsgCreateMarkets)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_UpdateMarkets_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgUpdateMarkets) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).UpdateMarkets(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_UpdateMarkets_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).UpdateMarkets(ctx, req.(*MsgUpdateMarkets)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_UpdateParams_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgParams) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).UpdateParams(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_UpdateParams_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).UpdateParams(ctx, req.(*MsgParams)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_RemoveMarketAuthorities_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgRemoveMarketAuthorities) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).RemoveMarketAuthorities(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_RemoveMarketAuthorities_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).RemoveMarketAuthorities(ctx, req.(*MsgRemoveMarketAuthorities)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_UpsertMarkets_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgUpsertMarkets) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).UpsertMarkets(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_UpsertMarkets_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).UpsertMarkets(ctx, req.(*MsgUpsertMarkets)) + } + 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: "connect.marketmap.v2.Msg", + HandlerType: (*MsgServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "CreateMarkets", + Handler: _Msg_CreateMarkets_Handler, + }, + { + MethodName: "UpdateMarkets", + Handler: _Msg_UpdateMarkets_Handler, + }, + { + MethodName: "UpdateParams", + Handler: _Msg_UpdateParams_Handler, + }, + { + MethodName: "RemoveMarketAuthorities", + Handler: _Msg_RemoveMarketAuthorities_Handler, + }, + { + MethodName: "UpsertMarkets", + Handler: _Msg_UpsertMarkets_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "connect/marketmap/v2/tx.proto", +} diff --git a/api/connect/oracle/module/v2/module.pulsar.go b/api/connect/oracle/module/v2/module.pulsar.go new file mode 100644 index 000000000..f5b18612a --- /dev/null +++ b/api/connect/oracle/module/v2/module.pulsar.go @@ -0,0 +1,580 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package modulev2 + +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 + fd_Module_authority protoreflect.FieldDescriptor +) + +func init() { + file_connect_oracle_module_v2_module_proto_init() + md_Module = File_connect_oracle_module_v2_module_proto.Messages().ByName("Module") + fd_Module_authority = md_Module.Fields().ByName("authority") +} + +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_connect_oracle_module_v2_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) { + if x.Authority != "" { + value := protoreflect.ValueOfString(x.Authority) + if !f(fd_Module_authority, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar 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() { + case "connect.oracle.module.v2.Module.authority": + return x.Authority != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.module.v2.Module")) + } + panic(fmt.Errorf("message connect.oracle.module.v2.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() { + case "connect.oracle.module.v2.Module.authority": + x.Authority = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.module.v2.Module")) + } + panic(fmt.Errorf("message connect.oracle.module.v2.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() { + case "connect.oracle.module.v2.Module.authority": + value := x.Authority + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.module.v2.Module")) + } + panic(fmt.Errorf("message connect.oracle.module.v2.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() { + case "connect.oracle.module.v2.Module.authority": + x.Authority = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.module.v2.Module")) + } + panic(fmt.Errorf("message connect.oracle.module.v2.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() { + case "connect.oracle.module.v2.Module.authority": + panic(fmt.Errorf("field authority of message connect.oracle.module.v2.Module is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.module.v2.Module")) + } + panic(fmt.Errorf("message connect.oracle.module.v2.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() { + case "connect.oracle.module.v2.Module.authority": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.module.v2.Module")) + } + panic(fmt.Errorf("message connect.oracle.module.v2.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 connect.oracle.module.v2.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 + l = len(x.Authority) + 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().(*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 len(x.Authority) > 0 { + i -= len(x.Authority) + copy(dAtA[i:], x.Authority) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*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 { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Authority = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, 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: connect/oracle/module/v2/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 builder module. +type Module struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Authority defines the custom module authority. If not set, defaults to the + // governance module. + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` +} + +func (x *Module) Reset() { + *x = Module{} + if protoimpl.UnsafeEnabled { + mi := &file_connect_oracle_module_v2_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_connect_oracle_module_v2_module_proto_rawDescGZIP(), []int{0} +} + +func (x *Module) GetAuthority() string { + if x != nil { + return x.Authority + } + return "" +} + +var File_connect_oracle_module_v2_module_proto protoreflect.FileDescriptor + +var file_connect_oracle_module_v2_module_proto_rawDesc = []byte{ + 0x0a, 0x25, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2f, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, + 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2f, 0x76, 0x32, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, + 0x2e, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x76, + 0x32, 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, 0x57, 0x0a, 0x06, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x1c, 0x0a, + 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x3a, 0x2f, 0xba, 0xc0, 0x96, + 0xda, 0x01, 0x29, 0x0a, 0x27, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, + 0x73, 0x6b, 0x69, 0x70, 0x2d, 0x6d, 0x65, 0x76, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, + 0x2f, 0x76, 0x32, 0x2f, 0x78, 0x2f, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x42, 0xe2, 0x01, 0x0a, + 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x6f, 0x72, 0x61, + 0x63, 0x6c, 0x65, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x76, 0x32, 0x42, 0x0b, 0x4d, + 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x32, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, + 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2f, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x2f, 0x6d, 0x6f, + 0x64, 0x75, 0x6c, 0x65, 0x2f, 0x76, 0x32, 0x3b, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x76, 0x32, + 0xa2, 0x02, 0x03, 0x43, 0x4f, 0x4d, 0xaa, 0x02, 0x18, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, + 0x2e, 0x4f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x2e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x56, + 0x32, 0xca, 0x02, 0x18, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x5c, 0x4f, 0x72, 0x61, 0x63, + 0x6c, 0x65, 0x5c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5c, 0x56, 0x32, 0xe2, 0x02, 0x24, 0x43, + 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x5c, 0x4f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x5c, 0x4d, 0x6f, + 0x64, 0x75, 0x6c, 0x65, 0x5c, 0x56, 0x32, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0xea, 0x02, 0x1b, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x3a, 0x3a, 0x4f, + 0x72, 0x61, 0x63, 0x6c, 0x65, 0x3a, 0x3a, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x3a, 0x3a, 0x56, + 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_connect_oracle_module_v2_module_proto_rawDescOnce sync.Once + file_connect_oracle_module_v2_module_proto_rawDescData = file_connect_oracle_module_v2_module_proto_rawDesc +) + +func file_connect_oracle_module_v2_module_proto_rawDescGZIP() []byte { + file_connect_oracle_module_v2_module_proto_rawDescOnce.Do(func() { + file_connect_oracle_module_v2_module_proto_rawDescData = protoimpl.X.CompressGZIP(file_connect_oracle_module_v2_module_proto_rawDescData) + }) + return file_connect_oracle_module_v2_module_proto_rawDescData +} + +var file_connect_oracle_module_v2_module_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_connect_oracle_module_v2_module_proto_goTypes = []interface{}{ + (*Module)(nil), // 0: connect.oracle.module.v2.Module +} +var file_connect_oracle_module_v2_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_connect_oracle_module_v2_module_proto_init() } +func file_connect_oracle_module_v2_module_proto_init() { + if File_connect_oracle_module_v2_module_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_connect_oracle_module_v2_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_connect_oracle_module_v2_module_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_connect_oracle_module_v2_module_proto_goTypes, + DependencyIndexes: file_connect_oracle_module_v2_module_proto_depIdxs, + MessageInfos: file_connect_oracle_module_v2_module_proto_msgTypes, + }.Build() + File_connect_oracle_module_v2_module_proto = out.File + file_connect_oracle_module_v2_module_proto_rawDesc = nil + file_connect_oracle_module_v2_module_proto_goTypes = nil + file_connect_oracle_module_v2_module_proto_depIdxs = nil +} diff --git a/api/connect/oracle/v2/genesis.pulsar.go b/api/connect/oracle/v2/genesis.pulsar.go new file mode 100644 index 000000000..d37e5f65b --- /dev/null +++ b/api/connect/oracle/v2/genesis.pulsar.go @@ -0,0 +1,2670 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package oraclev2 + +import ( + fmt "fmt" + _ "github.com/cosmos/cosmos-proto" + runtime "github.com/cosmos/cosmos-proto/runtime" + _ "github.com/cosmos/gogoproto/gogoproto" + v2 "github.com/skip-mev/connect/v2/api/connect/types/v2" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoiface "google.golang.org/protobuf/runtime/protoiface" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + io "io" + reflect "reflect" + sync "sync" +) + +var ( + md_QuotePrice protoreflect.MessageDescriptor + fd_QuotePrice_price protoreflect.FieldDescriptor + fd_QuotePrice_block_timestamp protoreflect.FieldDescriptor + fd_QuotePrice_block_height protoreflect.FieldDescriptor +) + +func init() { + file_connect_oracle_v2_genesis_proto_init() + md_QuotePrice = File_connect_oracle_v2_genesis_proto.Messages().ByName("QuotePrice") + fd_QuotePrice_price = md_QuotePrice.Fields().ByName("price") + fd_QuotePrice_block_timestamp = md_QuotePrice.Fields().ByName("block_timestamp") + fd_QuotePrice_block_height = md_QuotePrice.Fields().ByName("block_height") +} + +var _ protoreflect.Message = (*fastReflection_QuotePrice)(nil) + +type fastReflection_QuotePrice QuotePrice + +func (x *QuotePrice) ProtoReflect() protoreflect.Message { + return (*fastReflection_QuotePrice)(x) +} + +func (x *QuotePrice) slowProtoReflect() protoreflect.Message { + mi := &file_connect_oracle_v2_genesis_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_QuotePrice_messageType fastReflection_QuotePrice_messageType +var _ protoreflect.MessageType = fastReflection_QuotePrice_messageType{} + +type fastReflection_QuotePrice_messageType struct{} + +func (x fastReflection_QuotePrice_messageType) Zero() protoreflect.Message { + return (*fastReflection_QuotePrice)(nil) +} +func (x fastReflection_QuotePrice_messageType) New() protoreflect.Message { + return new(fastReflection_QuotePrice) +} +func (x fastReflection_QuotePrice_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QuotePrice +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QuotePrice) Descriptor() protoreflect.MessageDescriptor { + return md_QuotePrice +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_QuotePrice) Type() protoreflect.MessageType { + return _fastReflection_QuotePrice_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QuotePrice) New() protoreflect.Message { + return new(fastReflection_QuotePrice) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QuotePrice) Interface() protoreflect.ProtoMessage { + return (*QuotePrice)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_QuotePrice) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Price != "" { + value := protoreflect.ValueOfString(x.Price) + if !f(fd_QuotePrice_price, value) { + return + } + } + if x.BlockTimestamp != nil { + value := protoreflect.ValueOfMessage(x.BlockTimestamp.ProtoReflect()) + if !f(fd_QuotePrice_block_timestamp, value) { + return + } + } + if x.BlockHeight != uint64(0) { + value := protoreflect.ValueOfUint64(x.BlockHeight) + if !f(fd_QuotePrice_block_height, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_QuotePrice) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "connect.oracle.v2.QuotePrice.price": + return x.Price != "" + case "connect.oracle.v2.QuotePrice.block_timestamp": + return x.BlockTimestamp != nil + case "connect.oracle.v2.QuotePrice.block_height": + return x.BlockHeight != uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.QuotePrice")) + } + panic(fmt.Errorf("message connect.oracle.v2.QuotePrice does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QuotePrice) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "connect.oracle.v2.QuotePrice.price": + x.Price = "" + case "connect.oracle.v2.QuotePrice.block_timestamp": + x.BlockTimestamp = nil + case "connect.oracle.v2.QuotePrice.block_height": + x.BlockHeight = uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.QuotePrice")) + } + panic(fmt.Errorf("message connect.oracle.v2.QuotePrice does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_QuotePrice) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "connect.oracle.v2.QuotePrice.price": + value := x.Price + return protoreflect.ValueOfString(value) + case "connect.oracle.v2.QuotePrice.block_timestamp": + value := x.BlockTimestamp + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "connect.oracle.v2.QuotePrice.block_height": + value := x.BlockHeight + return protoreflect.ValueOfUint64(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.QuotePrice")) + } + panic(fmt.Errorf("message connect.oracle.v2.QuotePrice does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QuotePrice) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "connect.oracle.v2.QuotePrice.price": + x.Price = value.Interface().(string) + case "connect.oracle.v2.QuotePrice.block_timestamp": + x.BlockTimestamp = value.Message().Interface().(*timestamppb.Timestamp) + case "connect.oracle.v2.QuotePrice.block_height": + x.BlockHeight = value.Uint() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.QuotePrice")) + } + panic(fmt.Errorf("message connect.oracle.v2.QuotePrice does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QuotePrice) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "connect.oracle.v2.QuotePrice.block_timestamp": + if x.BlockTimestamp == nil { + x.BlockTimestamp = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.BlockTimestamp.ProtoReflect()) + case "connect.oracle.v2.QuotePrice.price": + panic(fmt.Errorf("field price of message connect.oracle.v2.QuotePrice is not mutable")) + case "connect.oracle.v2.QuotePrice.block_height": + panic(fmt.Errorf("field block_height of message connect.oracle.v2.QuotePrice is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.QuotePrice")) + } + panic(fmt.Errorf("message connect.oracle.v2.QuotePrice does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_QuotePrice) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "connect.oracle.v2.QuotePrice.price": + return protoreflect.ValueOfString("") + case "connect.oracle.v2.QuotePrice.block_timestamp": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "connect.oracle.v2.QuotePrice.block_height": + return protoreflect.ValueOfUint64(uint64(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.QuotePrice")) + } + panic(fmt.Errorf("message connect.oracle.v2.QuotePrice does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_QuotePrice) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in connect.oracle.v2.QuotePrice", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_QuotePrice) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QuotePrice) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_QuotePrice) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_QuotePrice) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QuotePrice) + 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.Price) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.BlockTimestamp != nil { + l = options.Size(x.BlockTimestamp) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.BlockHeight != 0 { + n += 1 + runtime.Sov(uint64(x.BlockHeight)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*QuotePrice) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if x.BlockHeight != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.BlockHeight)) + i-- + dAtA[i] = 0x18 + } + if x.BlockTimestamp != nil { + encoded, err := options.Marshal(x.BlockTimestamp) + 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.Price) > 0 { + i -= len(x.Price) + copy(dAtA[i:], x.Price) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Price))) + 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().(*QuotePrice) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QuotePrice: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QuotePrice: 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 Price", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Price = 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 BlockTimestamp", 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.BlockTimestamp == nil { + x.BlockTimestamp = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.BlockTimestamp); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 3: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + } + x.BlockHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.BlockHeight |= 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_CurrencyPairState protoreflect.MessageDescriptor + fd_CurrencyPairState_price protoreflect.FieldDescriptor + fd_CurrencyPairState_nonce protoreflect.FieldDescriptor + fd_CurrencyPairState_id protoreflect.FieldDescriptor +) + +func init() { + file_connect_oracle_v2_genesis_proto_init() + md_CurrencyPairState = File_connect_oracle_v2_genesis_proto.Messages().ByName("CurrencyPairState") + fd_CurrencyPairState_price = md_CurrencyPairState.Fields().ByName("price") + fd_CurrencyPairState_nonce = md_CurrencyPairState.Fields().ByName("nonce") + fd_CurrencyPairState_id = md_CurrencyPairState.Fields().ByName("id") +} + +var _ protoreflect.Message = (*fastReflection_CurrencyPairState)(nil) + +type fastReflection_CurrencyPairState CurrencyPairState + +func (x *CurrencyPairState) ProtoReflect() protoreflect.Message { + return (*fastReflection_CurrencyPairState)(x) +} + +func (x *CurrencyPairState) slowProtoReflect() protoreflect.Message { + mi := &file_connect_oracle_v2_genesis_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_CurrencyPairState_messageType fastReflection_CurrencyPairState_messageType +var _ protoreflect.MessageType = fastReflection_CurrencyPairState_messageType{} + +type fastReflection_CurrencyPairState_messageType struct{} + +func (x fastReflection_CurrencyPairState_messageType) Zero() protoreflect.Message { + return (*fastReflection_CurrencyPairState)(nil) +} +func (x fastReflection_CurrencyPairState_messageType) New() protoreflect.Message { + return new(fastReflection_CurrencyPairState) +} +func (x fastReflection_CurrencyPairState_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_CurrencyPairState +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_CurrencyPairState) Descriptor() protoreflect.MessageDescriptor { + return md_CurrencyPairState +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_CurrencyPairState) Type() protoreflect.MessageType { + return _fastReflection_CurrencyPairState_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_CurrencyPairState) New() protoreflect.Message { + return new(fastReflection_CurrencyPairState) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_CurrencyPairState) Interface() protoreflect.ProtoMessage { + return (*CurrencyPairState)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_CurrencyPairState) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Price != nil { + value := protoreflect.ValueOfMessage(x.Price.ProtoReflect()) + if !f(fd_CurrencyPairState_price, value) { + return + } + } + if x.Nonce != uint64(0) { + value := protoreflect.ValueOfUint64(x.Nonce) + if !f(fd_CurrencyPairState_nonce, value) { + return + } + } + if x.Id != uint64(0) { + value := protoreflect.ValueOfUint64(x.Id) + if !f(fd_CurrencyPairState_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_CurrencyPairState) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "connect.oracle.v2.CurrencyPairState.price": + return x.Price != nil + case "connect.oracle.v2.CurrencyPairState.nonce": + return x.Nonce != uint64(0) + case "connect.oracle.v2.CurrencyPairState.id": + return x.Id != uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.CurrencyPairState")) + } + panic(fmt.Errorf("message connect.oracle.v2.CurrencyPairState does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_CurrencyPairState) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "connect.oracle.v2.CurrencyPairState.price": + x.Price = nil + case "connect.oracle.v2.CurrencyPairState.nonce": + x.Nonce = uint64(0) + case "connect.oracle.v2.CurrencyPairState.id": + x.Id = uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.CurrencyPairState")) + } + panic(fmt.Errorf("message connect.oracle.v2.CurrencyPairState does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_CurrencyPairState) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "connect.oracle.v2.CurrencyPairState.price": + value := x.Price + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "connect.oracle.v2.CurrencyPairState.nonce": + value := x.Nonce + return protoreflect.ValueOfUint64(value) + case "connect.oracle.v2.CurrencyPairState.id": + value := x.Id + return protoreflect.ValueOfUint64(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.CurrencyPairState")) + } + panic(fmt.Errorf("message connect.oracle.v2.CurrencyPairState does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_CurrencyPairState) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "connect.oracle.v2.CurrencyPairState.price": + x.Price = value.Message().Interface().(*QuotePrice) + case "connect.oracle.v2.CurrencyPairState.nonce": + x.Nonce = value.Uint() + case "connect.oracle.v2.CurrencyPairState.id": + x.Id = value.Uint() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.CurrencyPairState")) + } + panic(fmt.Errorf("message connect.oracle.v2.CurrencyPairState does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_CurrencyPairState) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "connect.oracle.v2.CurrencyPairState.price": + if x.Price == nil { + x.Price = new(QuotePrice) + } + return protoreflect.ValueOfMessage(x.Price.ProtoReflect()) + case "connect.oracle.v2.CurrencyPairState.nonce": + panic(fmt.Errorf("field nonce of message connect.oracle.v2.CurrencyPairState is not mutable")) + case "connect.oracle.v2.CurrencyPairState.id": + panic(fmt.Errorf("field id of message connect.oracle.v2.CurrencyPairState is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.CurrencyPairState")) + } + panic(fmt.Errorf("message connect.oracle.v2.CurrencyPairState does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_CurrencyPairState) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "connect.oracle.v2.CurrencyPairState.price": + m := new(QuotePrice) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "connect.oracle.v2.CurrencyPairState.nonce": + return protoreflect.ValueOfUint64(uint64(0)) + case "connect.oracle.v2.CurrencyPairState.id": + return protoreflect.ValueOfUint64(uint64(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.CurrencyPairState")) + } + panic(fmt.Errorf("message connect.oracle.v2.CurrencyPairState does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_CurrencyPairState) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in connect.oracle.v2.CurrencyPairState", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_CurrencyPairState) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_CurrencyPairState) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_CurrencyPairState) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_CurrencyPairState) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*CurrencyPairState) + 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.Price != nil { + l = options.Size(x.Price) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Nonce != 0 { + n += 1 + runtime.Sov(uint64(x.Nonce)) + } + if x.Id != 0 { + n += 1 + runtime.Sov(uint64(x.Id)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*CurrencyPairState) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]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.Id != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Id)) + i-- + dAtA[i] = 0x18 + } + if x.Nonce != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Nonce)) + i-- + dAtA[i] = 0x10 + } + if x.Price != nil { + encoded, err := options.Marshal(x.Price) + 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().(*CurrencyPairState) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: CurrencyPairState: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: CurrencyPairState: 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 Price", 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.Price == nil { + x.Price = &QuotePrice{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Price); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Nonce", wireType) + } + x.Nonce = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.Nonce |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + x.Id = 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.Id |= 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_CurrencyPairGenesis protoreflect.MessageDescriptor + fd_CurrencyPairGenesis_currency_pair protoreflect.FieldDescriptor + fd_CurrencyPairGenesis_currency_pair_price protoreflect.FieldDescriptor + fd_CurrencyPairGenesis_nonce protoreflect.FieldDescriptor + fd_CurrencyPairGenesis_id protoreflect.FieldDescriptor +) + +func init() { + file_connect_oracle_v2_genesis_proto_init() + md_CurrencyPairGenesis = File_connect_oracle_v2_genesis_proto.Messages().ByName("CurrencyPairGenesis") + fd_CurrencyPairGenesis_currency_pair = md_CurrencyPairGenesis.Fields().ByName("currency_pair") + fd_CurrencyPairGenesis_currency_pair_price = md_CurrencyPairGenesis.Fields().ByName("currency_pair_price") + fd_CurrencyPairGenesis_nonce = md_CurrencyPairGenesis.Fields().ByName("nonce") + fd_CurrencyPairGenesis_id = md_CurrencyPairGenesis.Fields().ByName("id") +} + +var _ protoreflect.Message = (*fastReflection_CurrencyPairGenesis)(nil) + +type fastReflection_CurrencyPairGenesis CurrencyPairGenesis + +func (x *CurrencyPairGenesis) ProtoReflect() protoreflect.Message { + return (*fastReflection_CurrencyPairGenesis)(x) +} + +func (x *CurrencyPairGenesis) slowProtoReflect() protoreflect.Message { + mi := &file_connect_oracle_v2_genesis_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_CurrencyPairGenesis_messageType fastReflection_CurrencyPairGenesis_messageType +var _ protoreflect.MessageType = fastReflection_CurrencyPairGenesis_messageType{} + +type fastReflection_CurrencyPairGenesis_messageType struct{} + +func (x fastReflection_CurrencyPairGenesis_messageType) Zero() protoreflect.Message { + return (*fastReflection_CurrencyPairGenesis)(nil) +} +func (x fastReflection_CurrencyPairGenesis_messageType) New() protoreflect.Message { + return new(fastReflection_CurrencyPairGenesis) +} +func (x fastReflection_CurrencyPairGenesis_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_CurrencyPairGenesis +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_CurrencyPairGenesis) Descriptor() protoreflect.MessageDescriptor { + return md_CurrencyPairGenesis +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_CurrencyPairGenesis) Type() protoreflect.MessageType { + return _fastReflection_CurrencyPairGenesis_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_CurrencyPairGenesis) New() protoreflect.Message { + return new(fastReflection_CurrencyPairGenesis) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_CurrencyPairGenesis) Interface() protoreflect.ProtoMessage { + return (*CurrencyPairGenesis)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_CurrencyPairGenesis) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.CurrencyPair != nil { + value := protoreflect.ValueOfMessage(x.CurrencyPair.ProtoReflect()) + if !f(fd_CurrencyPairGenesis_currency_pair, value) { + return + } + } + if x.CurrencyPairPrice != nil { + value := protoreflect.ValueOfMessage(x.CurrencyPairPrice.ProtoReflect()) + if !f(fd_CurrencyPairGenesis_currency_pair_price, value) { + return + } + } + if x.Nonce != uint64(0) { + value := protoreflect.ValueOfUint64(x.Nonce) + if !f(fd_CurrencyPairGenesis_nonce, value) { + return + } + } + if x.Id != uint64(0) { + value := protoreflect.ValueOfUint64(x.Id) + if !f(fd_CurrencyPairGenesis_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_CurrencyPairGenesis) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "connect.oracle.v2.CurrencyPairGenesis.currency_pair": + return x.CurrencyPair != nil + case "connect.oracle.v2.CurrencyPairGenesis.currency_pair_price": + return x.CurrencyPairPrice != nil + case "connect.oracle.v2.CurrencyPairGenesis.nonce": + return x.Nonce != uint64(0) + case "connect.oracle.v2.CurrencyPairGenesis.id": + return x.Id != uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.CurrencyPairGenesis")) + } + panic(fmt.Errorf("message connect.oracle.v2.CurrencyPairGenesis does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_CurrencyPairGenesis) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "connect.oracle.v2.CurrencyPairGenesis.currency_pair": + x.CurrencyPair = nil + case "connect.oracle.v2.CurrencyPairGenesis.currency_pair_price": + x.CurrencyPairPrice = nil + case "connect.oracle.v2.CurrencyPairGenesis.nonce": + x.Nonce = uint64(0) + case "connect.oracle.v2.CurrencyPairGenesis.id": + x.Id = uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.CurrencyPairGenesis")) + } + panic(fmt.Errorf("message connect.oracle.v2.CurrencyPairGenesis does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_CurrencyPairGenesis) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "connect.oracle.v2.CurrencyPairGenesis.currency_pair": + value := x.CurrencyPair + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "connect.oracle.v2.CurrencyPairGenesis.currency_pair_price": + value := x.CurrencyPairPrice + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "connect.oracle.v2.CurrencyPairGenesis.nonce": + value := x.Nonce + return protoreflect.ValueOfUint64(value) + case "connect.oracle.v2.CurrencyPairGenesis.id": + value := x.Id + return protoreflect.ValueOfUint64(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.CurrencyPairGenesis")) + } + panic(fmt.Errorf("message connect.oracle.v2.CurrencyPairGenesis does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_CurrencyPairGenesis) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "connect.oracle.v2.CurrencyPairGenesis.currency_pair": + x.CurrencyPair = value.Message().Interface().(*v2.CurrencyPair) + case "connect.oracle.v2.CurrencyPairGenesis.currency_pair_price": + x.CurrencyPairPrice = value.Message().Interface().(*QuotePrice) + case "connect.oracle.v2.CurrencyPairGenesis.nonce": + x.Nonce = value.Uint() + case "connect.oracle.v2.CurrencyPairGenesis.id": + x.Id = value.Uint() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.CurrencyPairGenesis")) + } + panic(fmt.Errorf("message connect.oracle.v2.CurrencyPairGenesis does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_CurrencyPairGenesis) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "connect.oracle.v2.CurrencyPairGenesis.currency_pair": + if x.CurrencyPair == nil { + x.CurrencyPair = new(v2.CurrencyPair) + } + return protoreflect.ValueOfMessage(x.CurrencyPair.ProtoReflect()) + case "connect.oracle.v2.CurrencyPairGenesis.currency_pair_price": + if x.CurrencyPairPrice == nil { + x.CurrencyPairPrice = new(QuotePrice) + } + return protoreflect.ValueOfMessage(x.CurrencyPairPrice.ProtoReflect()) + case "connect.oracle.v2.CurrencyPairGenesis.nonce": + panic(fmt.Errorf("field nonce of message connect.oracle.v2.CurrencyPairGenesis is not mutable")) + case "connect.oracle.v2.CurrencyPairGenesis.id": + panic(fmt.Errorf("field id of message connect.oracle.v2.CurrencyPairGenesis is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.CurrencyPairGenesis")) + } + panic(fmt.Errorf("message connect.oracle.v2.CurrencyPairGenesis does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_CurrencyPairGenesis) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "connect.oracle.v2.CurrencyPairGenesis.currency_pair": + m := new(v2.CurrencyPair) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "connect.oracle.v2.CurrencyPairGenesis.currency_pair_price": + m := new(QuotePrice) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "connect.oracle.v2.CurrencyPairGenesis.nonce": + return protoreflect.ValueOfUint64(uint64(0)) + case "connect.oracle.v2.CurrencyPairGenesis.id": + return protoreflect.ValueOfUint64(uint64(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.CurrencyPairGenesis")) + } + panic(fmt.Errorf("message connect.oracle.v2.CurrencyPairGenesis does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_CurrencyPairGenesis) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in connect.oracle.v2.CurrencyPairGenesis", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_CurrencyPairGenesis) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_CurrencyPairGenesis) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_CurrencyPairGenesis) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_CurrencyPairGenesis) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*CurrencyPairGenesis) + 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.CurrencyPair != nil { + l = options.Size(x.CurrencyPair) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.CurrencyPairPrice != nil { + l = options.Size(x.CurrencyPairPrice) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Nonce != 0 { + n += 1 + runtime.Sov(uint64(x.Nonce)) + } + if x.Id != 0 { + n += 1 + runtime.Sov(uint64(x.Id)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*CurrencyPairGenesis) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]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.Id != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Id)) + i-- + dAtA[i] = 0x20 + } + if x.Nonce != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Nonce)) + i-- + dAtA[i] = 0x18 + } + if x.CurrencyPairPrice != nil { + encoded, err := options.Marshal(x.CurrencyPairPrice) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x12 + } + if x.CurrencyPair != nil { + encoded, err := options.Marshal(x.CurrencyPair) + 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().(*CurrencyPairGenesis) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: CurrencyPairGenesis: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: CurrencyPairGenesis: 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 CurrencyPair", 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.CurrencyPair == nil { + x.CurrencyPair = &v2.CurrencyPair{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.CurrencyPair); 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 CurrencyPairPrice", 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.CurrencyPairPrice == nil { + x.CurrencyPairPrice = &QuotePrice{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.CurrencyPairPrice); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 3: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field 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 != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + x.Id = 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.Id |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var _ protoreflect.List = (*_GenesisState_1_list)(nil) + +type _GenesisState_1_list struct { + list *[]*CurrencyPairGenesis +} + +func (x *_GenesisState_1_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_GenesisState_1_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_GenesisState_1_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*CurrencyPairGenesis) + (*x.list)[i] = concreteValue +} + +func (x *_GenesisState_1_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*CurrencyPairGenesis) + *x.list = append(*x.list, concreteValue) +} + +func (x *_GenesisState_1_list) AppendMutable() protoreflect.Value { + v := new(CurrencyPairGenesis) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_1_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_GenesisState_1_list) NewElement() protoreflect.Value { + v := new(CurrencyPairGenesis) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_1_list) IsValid() bool { + return x.list != nil +} + +var ( + md_GenesisState protoreflect.MessageDescriptor + fd_GenesisState_currency_pair_genesis protoreflect.FieldDescriptor + fd_GenesisState_next_id protoreflect.FieldDescriptor +) + +func init() { + file_connect_oracle_v2_genesis_proto_init() + md_GenesisState = File_connect_oracle_v2_genesis_proto.Messages().ByName("GenesisState") + fd_GenesisState_currency_pair_genesis = md_GenesisState.Fields().ByName("currency_pair_genesis") + fd_GenesisState_next_id = md_GenesisState.Fields().ByName("next_id") +} + +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_connect_oracle_v2_genesis_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_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 len(x.CurrencyPairGenesis) != 0 { + value := protoreflect.ValueOfList(&_GenesisState_1_list{list: &x.CurrencyPairGenesis}) + if !f(fd_GenesisState_currency_pair_genesis, value) { + return + } + } + if x.NextId != uint64(0) { + value := protoreflect.ValueOfUint64(x.NextId) + if !f(fd_GenesisState_next_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_GenesisState) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "connect.oracle.v2.GenesisState.currency_pair_genesis": + return len(x.CurrencyPairGenesis) != 0 + case "connect.oracle.v2.GenesisState.next_id": + return x.NextId != uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.GenesisState")) + } + panic(fmt.Errorf("message connect.oracle.v2.GenesisState does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GenesisState) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "connect.oracle.v2.GenesisState.currency_pair_genesis": + x.CurrencyPairGenesis = nil + case "connect.oracle.v2.GenesisState.next_id": + x.NextId = uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.GenesisState")) + } + panic(fmt.Errorf("message connect.oracle.v2.GenesisState does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_GenesisState) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "connect.oracle.v2.GenesisState.currency_pair_genesis": + if len(x.CurrencyPairGenesis) == 0 { + return protoreflect.ValueOfList(&_GenesisState_1_list{}) + } + listValue := &_GenesisState_1_list{list: &x.CurrencyPairGenesis} + return protoreflect.ValueOfList(listValue) + case "connect.oracle.v2.GenesisState.next_id": + value := x.NextId + return protoreflect.ValueOfUint64(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.GenesisState")) + } + panic(fmt.Errorf("message connect.oracle.v2.GenesisState does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GenesisState) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "connect.oracle.v2.GenesisState.currency_pair_genesis": + lv := value.List() + clv := lv.(*_GenesisState_1_list) + x.CurrencyPairGenesis = *clv.list + case "connect.oracle.v2.GenesisState.next_id": + x.NextId = value.Uint() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.GenesisState")) + } + panic(fmt.Errorf("message connect.oracle.v2.GenesisState does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GenesisState) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "connect.oracle.v2.GenesisState.currency_pair_genesis": + if x.CurrencyPairGenesis == nil { + x.CurrencyPairGenesis = []*CurrencyPairGenesis{} + } + value := &_GenesisState_1_list{list: &x.CurrencyPairGenesis} + return protoreflect.ValueOfList(value) + case "connect.oracle.v2.GenesisState.next_id": + panic(fmt.Errorf("field next_id of message connect.oracle.v2.GenesisState is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.GenesisState")) + } + panic(fmt.Errorf("message connect.oracle.v2.GenesisState does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_GenesisState) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "connect.oracle.v2.GenesisState.currency_pair_genesis": + list := []*CurrencyPairGenesis{} + return protoreflect.ValueOfList(&_GenesisState_1_list{list: &list}) + case "connect.oracle.v2.GenesisState.next_id": + return protoreflect.ValueOfUint64(uint64(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.GenesisState")) + } + panic(fmt.Errorf("message connect.oracle.v2.GenesisState does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_GenesisState) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in connect.oracle.v2.GenesisState", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_GenesisState) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GenesisState) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_GenesisState) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*GenesisState) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if len(x.CurrencyPairGenesis) > 0 { + for _, e := range x.CurrencyPairGenesis { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if x.NextId != 0 { + n += 1 + runtime.Sov(uint64(x.NextId)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*GenesisState) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if x.NextId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.NextId)) + i-- + dAtA[i] = 0x10 + } + if len(x.CurrencyPairGenesis) > 0 { + for iNdEx := len(x.CurrencyPairGenesis) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.CurrencyPairGenesis[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().(*GenesisState) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GenesisState: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GenesisState: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CurrencyPairGenesis", 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.CurrencyPairGenesis = append(x.CurrencyPairGenesis, &CurrencyPairGenesis{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.CurrencyPairGenesis[len(x.CurrencyPairGenesis)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NextId", wireType) + } + x.NextId = 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.NextId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.0 +// protoc (unknown) +// source: connect/oracle/v2/genesis.proto + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// QuotePrice is the representation of the aggregated prices for a CurrencyPair, +// where price represents the price of Base in terms of Quote +type QuotePrice struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Price string `protobuf:"bytes,1,opt,name=price,proto3" json:"price,omitempty"` + // BlockTimestamp tracks the block height associated with this price update. + // We include block timestamp alongside the price to ensure that smart + // contracts and applications are not utilizing stale oracle prices + BlockTimestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=block_timestamp,json=blockTimestamp,proto3" json:"block_timestamp,omitempty"` + // BlockHeight is height of block mentioned above + BlockHeight uint64 `protobuf:"varint,3,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` +} + +func (x *QuotePrice) Reset() { + *x = QuotePrice{} + if protoimpl.UnsafeEnabled { + mi := &file_connect_oracle_v2_genesis_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QuotePrice) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QuotePrice) ProtoMessage() {} + +// Deprecated: Use QuotePrice.ProtoReflect.Descriptor instead. +func (*QuotePrice) Descriptor() ([]byte, []int) { + return file_connect_oracle_v2_genesis_proto_rawDescGZIP(), []int{0} +} + +func (x *QuotePrice) GetPrice() string { + if x != nil { + return x.Price + } + return "" +} + +func (x *QuotePrice) GetBlockTimestamp() *timestamppb.Timestamp { + if x != nil { + return x.BlockTimestamp + } + return nil +} + +func (x *QuotePrice) GetBlockHeight() uint64 { + if x != nil { + return x.BlockHeight + } + return 0 +} + +// CurrencyPairState represents the stateful information tracked by the x/oracle +// module per-currency-pair. +type CurrencyPairState struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // QuotePrice is the latest price for a currency-pair, notice this value can + // be null in the case that no price exists for the currency-pair + Price *QuotePrice `protobuf:"bytes,1,opt,name=price,proto3" json:"price,omitempty"` + // Nonce is the number of updates this currency-pair has received + Nonce uint64 `protobuf:"varint,2,opt,name=nonce,proto3" json:"nonce,omitempty"` + // ID is the ID of the CurrencyPair + Id uint64 `protobuf:"varint,3,opt,name=id,proto3" json:"id,omitempty"` +} + +func (x *CurrencyPairState) Reset() { + *x = CurrencyPairState{} + if protoimpl.UnsafeEnabled { + mi := &file_connect_oracle_v2_genesis_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CurrencyPairState) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CurrencyPairState) ProtoMessage() {} + +// Deprecated: Use CurrencyPairState.ProtoReflect.Descriptor instead. +func (*CurrencyPairState) Descriptor() ([]byte, []int) { + return file_connect_oracle_v2_genesis_proto_rawDescGZIP(), []int{1} +} + +func (x *CurrencyPairState) GetPrice() *QuotePrice { + if x != nil { + return x.Price + } + return nil +} + +func (x *CurrencyPairState) GetNonce() uint64 { + if x != nil { + return x.Nonce + } + return 0 +} + +func (x *CurrencyPairState) GetId() uint64 { + if x != nil { + return x.Id + } + return 0 +} + +// CurrencyPairGenesis is the information necessary for initialization of a +// CurrencyPair. +type CurrencyPairGenesis struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The CurrencyPair to be added to module state + CurrencyPair *v2.CurrencyPair `protobuf:"bytes,1,opt,name=currency_pair,json=currencyPair,proto3" json:"currency_pair,omitempty"` + // A genesis price if one exists (note this will be empty, unless it results + // from forking the state of this module) + CurrencyPairPrice *QuotePrice `protobuf:"bytes,2,opt,name=currency_pair_price,json=currencyPairPrice,proto3" json:"currency_pair_price,omitempty"` + // nonce is the nonce (number of updates) for the CP (same case as above, + // likely 0 unless it results from fork of module) + Nonce uint64 `protobuf:"varint,3,opt,name=nonce,proto3" json:"nonce,omitempty"` + // id is the ID of the CurrencyPair + Id uint64 `protobuf:"varint,4,opt,name=id,proto3" json:"id,omitempty"` +} + +func (x *CurrencyPairGenesis) Reset() { + *x = CurrencyPairGenesis{} + if protoimpl.UnsafeEnabled { + mi := &file_connect_oracle_v2_genesis_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CurrencyPairGenesis) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CurrencyPairGenesis) ProtoMessage() {} + +// Deprecated: Use CurrencyPairGenesis.ProtoReflect.Descriptor instead. +func (*CurrencyPairGenesis) Descriptor() ([]byte, []int) { + return file_connect_oracle_v2_genesis_proto_rawDescGZIP(), []int{2} +} + +func (x *CurrencyPairGenesis) GetCurrencyPair() *v2.CurrencyPair { + if x != nil { + return x.CurrencyPair + } + return nil +} + +func (x *CurrencyPairGenesis) GetCurrencyPairPrice() *QuotePrice { + if x != nil { + return x.CurrencyPairPrice + } + return nil +} + +func (x *CurrencyPairGenesis) GetNonce() uint64 { + if x != nil { + return x.Nonce + } + return 0 +} + +func (x *CurrencyPairGenesis) GetId() uint64 { + if x != nil { + return x.Id + } + return 0 +} + +// GenesisState is the genesis-state for the x/oracle module, it takes a set of +// predefined CurrencyPairGeneses +type GenesisState struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // CurrencyPairGenesis is the set of CurrencyPairGeneses for the module. I.e + // the starting set of CurrencyPairs for the module + information regarding + // their latest update. + CurrencyPairGenesis []*CurrencyPairGenesis `protobuf:"bytes,1,rep,name=currency_pair_genesis,json=currencyPairGenesis,proto3" json:"currency_pair_genesis,omitempty"` + // NextID is the next ID to be used for a CurrencyPair + NextId uint64 `protobuf:"varint,2,opt,name=next_id,json=nextId,proto3" json:"next_id,omitempty"` +} + +func (x *GenesisState) Reset() { + *x = GenesisState{} + if protoimpl.UnsafeEnabled { + mi := &file_connect_oracle_v2_genesis_proto_msgTypes[3] + 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_connect_oracle_v2_genesis_proto_rawDescGZIP(), []int{3} +} + +func (x *GenesisState) GetCurrencyPairGenesis() []*CurrencyPairGenesis { + if x != nil { + return x.CurrencyPairGenesis + } + return nil +} + +func (x *GenesisState) GetNextId() uint64 { + if x != nil { + return x.NextId + } + return 0 +} + +var File_connect_oracle_v2_genesis_proto protoreflect.FileDescriptor + +var file_connect_oracle_v2_genesis_proto_rawDesc = []byte{ + 0x0a, 0x1f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2f, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, + 0x2f, 0x76, 0x32, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x12, 0x11, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x6f, 0x72, 0x61, 0x63, 0x6c, + 0x65, 0x2e, 0x76, 0x32, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, + 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, + 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 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, 0x24, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2f, + 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, + 0x79, 0x5f, 0x70, 0x61, 0x69, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc1, 0x01, 0x0a, + 0x0a, 0x51, 0x75, 0x6f, 0x74, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x41, 0x0a, 0x05, 0x70, + 0x72, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2b, 0xc8, 0xde, 0x1f, 0x00, + 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, + 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0x52, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x12, 0x4d, + 0x0a, 0x0f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, + 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, + 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x0e, 0x62, + 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x21, 0x0a, + 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x04, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, + 0x22, 0x74, 0x0a, 0x11, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x50, 0x61, 0x69, 0x72, + 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x39, 0x0a, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x6f, + 0x72, 0x61, 0x63, 0x6c, 0x65, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x6f, 0x74, 0x65, 0x50, 0x72, + 0x69, 0x63, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x01, 0x52, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, + 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x22, 0xdb, 0x01, 0x0a, 0x13, 0x43, 0x75, 0x72, 0x72, 0x65, + 0x6e, 0x63, 0x79, 0x50, 0x61, 0x69, 0x72, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x12, 0x49, + 0x0a, 0x0d, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x5f, 0x70, 0x61, 0x69, 0x72, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, + 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, + 0x79, 0x50, 0x61, 0x69, 0x72, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0c, 0x63, 0x75, 0x72, + 0x72, 0x65, 0x6e, 0x63, 0x79, 0x50, 0x61, 0x69, 0x72, 0x12, 0x53, 0x0a, 0x13, 0x63, 0x75, 0x72, + 0x72, 0x65, 0x6e, 0x63, 0x79, 0x5f, 0x70, 0x61, 0x69, 0x72, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, + 0x2e, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x6f, 0x74, 0x65, + 0x50, 0x72, 0x69, 0x63, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x01, 0x52, 0x11, 0x63, 0x75, 0x72, + 0x72, 0x65, 0x6e, 0x63, 0x79, 0x50, 0x61, 0x69, 0x72, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x14, + 0x0a, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6e, + 0x6f, 0x6e, 0x63, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x02, 0x69, 0x64, 0x22, 0x89, 0x01, 0x0a, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, + 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x60, 0x0a, 0x15, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, + 0x79, 0x5f, 0x70, 0x61, 0x69, 0x72, 0x5f, 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x6f, + 0x72, 0x61, 0x63, 0x6c, 0x65, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, + 0x79, 0x50, 0x61, 0x69, 0x72, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x42, 0x04, 0xc8, 0xde, + 0x1f, 0x00, 0x52, 0x13, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x50, 0x61, 0x69, 0x72, + 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x12, 0x17, 0x0a, 0x07, 0x6e, 0x65, 0x78, 0x74, 0x5f, + 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x6e, 0x65, 0x78, 0x74, 0x49, 0x64, + 0x42, 0xb8, 0x01, 0x0a, 0x15, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, + 0x2e, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x2e, 0x76, 0x32, 0x42, 0x0c, 0x47, 0x65, 0x6e, 0x65, + 0x73, 0x69, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2b, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x6e, + 0x6e, 0x65, 0x63, 0x74, 0x2f, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x2f, 0x76, 0x32, 0x3b, 0x6f, + 0x72, 0x61, 0x63, 0x6c, 0x65, 0x76, 0x32, 0xa2, 0x02, 0x03, 0x43, 0x4f, 0x58, 0xaa, 0x02, 0x11, + 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x4f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x2e, 0x56, + 0x32, 0xca, 0x02, 0x11, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x5c, 0x4f, 0x72, 0x61, 0x63, + 0x6c, 0x65, 0x5c, 0x56, 0x32, 0xe2, 0x02, 0x1d, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x5c, + 0x4f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x5c, 0x56, 0x32, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x13, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x3a, + 0x3a, 0x4f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x3a, 0x3a, 0x56, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, +} + +var ( + file_connect_oracle_v2_genesis_proto_rawDescOnce sync.Once + file_connect_oracle_v2_genesis_proto_rawDescData = file_connect_oracle_v2_genesis_proto_rawDesc +) + +func file_connect_oracle_v2_genesis_proto_rawDescGZIP() []byte { + file_connect_oracle_v2_genesis_proto_rawDescOnce.Do(func() { + file_connect_oracle_v2_genesis_proto_rawDescData = protoimpl.X.CompressGZIP(file_connect_oracle_v2_genesis_proto_rawDescData) + }) + return file_connect_oracle_v2_genesis_proto_rawDescData +} + +var file_connect_oracle_v2_genesis_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_connect_oracle_v2_genesis_proto_goTypes = []interface{}{ + (*QuotePrice)(nil), // 0: connect.oracle.v2.QuotePrice + (*CurrencyPairState)(nil), // 1: connect.oracle.v2.CurrencyPairState + (*CurrencyPairGenesis)(nil), // 2: connect.oracle.v2.CurrencyPairGenesis + (*GenesisState)(nil), // 3: connect.oracle.v2.GenesisState + (*timestamppb.Timestamp)(nil), // 4: google.protobuf.Timestamp + (*v2.CurrencyPair)(nil), // 5: connect.types.v2.CurrencyPair +} +var file_connect_oracle_v2_genesis_proto_depIdxs = []int32{ + 4, // 0: connect.oracle.v2.QuotePrice.block_timestamp:type_name -> google.protobuf.Timestamp + 0, // 1: connect.oracle.v2.CurrencyPairState.price:type_name -> connect.oracle.v2.QuotePrice + 5, // 2: connect.oracle.v2.CurrencyPairGenesis.currency_pair:type_name -> connect.types.v2.CurrencyPair + 0, // 3: connect.oracle.v2.CurrencyPairGenesis.currency_pair_price:type_name -> connect.oracle.v2.QuotePrice + 2, // 4: connect.oracle.v2.GenesisState.currency_pair_genesis:type_name -> connect.oracle.v2.CurrencyPairGenesis + 5, // [5:5] is the sub-list for method output_type + 5, // [5:5] is the sub-list for method input_type + 5, // [5:5] is the sub-list for extension type_name + 5, // [5:5] is the sub-list for extension extendee + 0, // [0:5] is the sub-list for field type_name +} + +func init() { file_connect_oracle_v2_genesis_proto_init() } +func file_connect_oracle_v2_genesis_proto_init() { + if File_connect_oracle_v2_genesis_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_connect_oracle_v2_genesis_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QuotePrice); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_connect_oracle_v2_genesis_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CurrencyPairState); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_connect_oracle_v2_genesis_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CurrencyPairGenesis); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_connect_oracle_v2_genesis_proto_msgTypes[3].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_connect_oracle_v2_genesis_proto_rawDesc, + NumEnums: 0, + NumMessages: 4, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_connect_oracle_v2_genesis_proto_goTypes, + DependencyIndexes: file_connect_oracle_v2_genesis_proto_depIdxs, + MessageInfos: file_connect_oracle_v2_genesis_proto_msgTypes, + }.Build() + File_connect_oracle_v2_genesis_proto = out.File + file_connect_oracle_v2_genesis_proto_rawDesc = nil + file_connect_oracle_v2_genesis_proto_goTypes = nil + file_connect_oracle_v2_genesis_proto_depIdxs = nil +} diff --git a/api/connect/oracle/v2/query.pulsar.go b/api/connect/oracle/v2/query.pulsar.go new file mode 100644 index 000000000..1a4dbd27a --- /dev/null +++ b/api/connect/oracle/v2/query.pulsar.go @@ -0,0 +1,4471 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package oraclev2 + +import ( + fmt "fmt" + runtime "github.com/cosmos/cosmos-proto/runtime" + _ "github.com/cosmos/gogoproto/gogoproto" + v2 "github.com/skip-mev/connect/v2/api/connect/types/v2" + _ "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" + sort "sort" + sync "sync" +) + +var ( + md_GetAllCurrencyPairsRequest protoreflect.MessageDescriptor +) + +func init() { + file_connect_oracle_v2_query_proto_init() + md_GetAllCurrencyPairsRequest = File_connect_oracle_v2_query_proto.Messages().ByName("GetAllCurrencyPairsRequest") +} + +var _ protoreflect.Message = (*fastReflection_GetAllCurrencyPairsRequest)(nil) + +type fastReflection_GetAllCurrencyPairsRequest GetAllCurrencyPairsRequest + +func (x *GetAllCurrencyPairsRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_GetAllCurrencyPairsRequest)(x) +} + +func (x *GetAllCurrencyPairsRequest) slowProtoReflect() protoreflect.Message { + mi := &file_connect_oracle_v2_query_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_GetAllCurrencyPairsRequest_messageType fastReflection_GetAllCurrencyPairsRequest_messageType +var _ protoreflect.MessageType = fastReflection_GetAllCurrencyPairsRequest_messageType{} + +type fastReflection_GetAllCurrencyPairsRequest_messageType struct{} + +func (x fastReflection_GetAllCurrencyPairsRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_GetAllCurrencyPairsRequest)(nil) +} +func (x fastReflection_GetAllCurrencyPairsRequest_messageType) New() protoreflect.Message { + return new(fastReflection_GetAllCurrencyPairsRequest) +} +func (x fastReflection_GetAllCurrencyPairsRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_GetAllCurrencyPairsRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_GetAllCurrencyPairsRequest) Descriptor() protoreflect.MessageDescriptor { + return md_GetAllCurrencyPairsRequest +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_GetAllCurrencyPairsRequest) Type() protoreflect.MessageType { + return _fastReflection_GetAllCurrencyPairsRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_GetAllCurrencyPairsRequest) New() protoreflect.Message { + return new(fastReflection_GetAllCurrencyPairsRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_GetAllCurrencyPairsRequest) Interface() protoreflect.ProtoMessage { + return (*GetAllCurrencyPairsRequest)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_GetAllCurrencyPairsRequest) 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_GetAllCurrencyPairsRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.GetAllCurrencyPairsRequest")) + } + panic(fmt.Errorf("message connect.oracle.v2.GetAllCurrencyPairsRequest does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GetAllCurrencyPairsRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.GetAllCurrencyPairsRequest")) + } + panic(fmt.Errorf("message connect.oracle.v2.GetAllCurrencyPairsRequest does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_GetAllCurrencyPairsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.GetAllCurrencyPairsRequest")) + } + panic(fmt.Errorf("message connect.oracle.v2.GetAllCurrencyPairsRequest does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GetAllCurrencyPairsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.GetAllCurrencyPairsRequest")) + } + panic(fmt.Errorf("message connect.oracle.v2.GetAllCurrencyPairsRequest does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GetAllCurrencyPairsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.GetAllCurrencyPairsRequest")) + } + panic(fmt.Errorf("message connect.oracle.v2.GetAllCurrencyPairsRequest does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_GetAllCurrencyPairsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.GetAllCurrencyPairsRequest")) + } + panic(fmt.Errorf("message connect.oracle.v2.GetAllCurrencyPairsRequest does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_GetAllCurrencyPairsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in connect.oracle.v2.GetAllCurrencyPairsRequest", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_GetAllCurrencyPairsRequest) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GetAllCurrencyPairsRequest) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_GetAllCurrencyPairsRequest) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_GetAllCurrencyPairsRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*GetAllCurrencyPairsRequest) + 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().(*GetAllCurrencyPairsRequest) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]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().(*GetAllCurrencyPairsRequest) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GetAllCurrencyPairsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GetAllCurrencyPairsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var _ protoreflect.List = (*_GetAllCurrencyPairsResponse_1_list)(nil) + +type _GetAllCurrencyPairsResponse_1_list struct { + list *[]*v2.CurrencyPair +} + +func (x *_GetAllCurrencyPairsResponse_1_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_GetAllCurrencyPairsResponse_1_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_GetAllCurrencyPairsResponse_1_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*v2.CurrencyPair) + (*x.list)[i] = concreteValue +} + +func (x *_GetAllCurrencyPairsResponse_1_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*v2.CurrencyPair) + *x.list = append(*x.list, concreteValue) +} + +func (x *_GetAllCurrencyPairsResponse_1_list) AppendMutable() protoreflect.Value { + v := new(v2.CurrencyPair) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GetAllCurrencyPairsResponse_1_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_GetAllCurrencyPairsResponse_1_list) NewElement() protoreflect.Value { + v := new(v2.CurrencyPair) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GetAllCurrencyPairsResponse_1_list) IsValid() bool { + return x.list != nil +} + +var ( + md_GetAllCurrencyPairsResponse protoreflect.MessageDescriptor + fd_GetAllCurrencyPairsResponse_currency_pairs protoreflect.FieldDescriptor +) + +func init() { + file_connect_oracle_v2_query_proto_init() + md_GetAllCurrencyPairsResponse = File_connect_oracle_v2_query_proto.Messages().ByName("GetAllCurrencyPairsResponse") + fd_GetAllCurrencyPairsResponse_currency_pairs = md_GetAllCurrencyPairsResponse.Fields().ByName("currency_pairs") +} + +var _ protoreflect.Message = (*fastReflection_GetAllCurrencyPairsResponse)(nil) + +type fastReflection_GetAllCurrencyPairsResponse GetAllCurrencyPairsResponse + +func (x *GetAllCurrencyPairsResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_GetAllCurrencyPairsResponse)(x) +} + +func (x *GetAllCurrencyPairsResponse) slowProtoReflect() protoreflect.Message { + mi := &file_connect_oracle_v2_query_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_GetAllCurrencyPairsResponse_messageType fastReflection_GetAllCurrencyPairsResponse_messageType +var _ protoreflect.MessageType = fastReflection_GetAllCurrencyPairsResponse_messageType{} + +type fastReflection_GetAllCurrencyPairsResponse_messageType struct{} + +func (x fastReflection_GetAllCurrencyPairsResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_GetAllCurrencyPairsResponse)(nil) +} +func (x fastReflection_GetAllCurrencyPairsResponse_messageType) New() protoreflect.Message { + return new(fastReflection_GetAllCurrencyPairsResponse) +} +func (x fastReflection_GetAllCurrencyPairsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_GetAllCurrencyPairsResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_GetAllCurrencyPairsResponse) Descriptor() protoreflect.MessageDescriptor { + return md_GetAllCurrencyPairsResponse +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_GetAllCurrencyPairsResponse) Type() protoreflect.MessageType { + return _fastReflection_GetAllCurrencyPairsResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_GetAllCurrencyPairsResponse) New() protoreflect.Message { + return new(fastReflection_GetAllCurrencyPairsResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_GetAllCurrencyPairsResponse) Interface() protoreflect.ProtoMessage { + return (*GetAllCurrencyPairsResponse)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_GetAllCurrencyPairsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.CurrencyPairs) != 0 { + value := protoreflect.ValueOfList(&_GetAllCurrencyPairsResponse_1_list{list: &x.CurrencyPairs}) + if !f(fd_GetAllCurrencyPairsResponse_currency_pairs, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_GetAllCurrencyPairsResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "connect.oracle.v2.GetAllCurrencyPairsResponse.currency_pairs": + return len(x.CurrencyPairs) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.GetAllCurrencyPairsResponse")) + } + panic(fmt.Errorf("message connect.oracle.v2.GetAllCurrencyPairsResponse does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GetAllCurrencyPairsResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "connect.oracle.v2.GetAllCurrencyPairsResponse.currency_pairs": + x.CurrencyPairs = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.GetAllCurrencyPairsResponse")) + } + panic(fmt.Errorf("message connect.oracle.v2.GetAllCurrencyPairsResponse does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_GetAllCurrencyPairsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "connect.oracle.v2.GetAllCurrencyPairsResponse.currency_pairs": + if len(x.CurrencyPairs) == 0 { + return protoreflect.ValueOfList(&_GetAllCurrencyPairsResponse_1_list{}) + } + listValue := &_GetAllCurrencyPairsResponse_1_list{list: &x.CurrencyPairs} + return protoreflect.ValueOfList(listValue) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.GetAllCurrencyPairsResponse")) + } + panic(fmt.Errorf("message connect.oracle.v2.GetAllCurrencyPairsResponse does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GetAllCurrencyPairsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "connect.oracle.v2.GetAllCurrencyPairsResponse.currency_pairs": + lv := value.List() + clv := lv.(*_GetAllCurrencyPairsResponse_1_list) + x.CurrencyPairs = *clv.list + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.GetAllCurrencyPairsResponse")) + } + panic(fmt.Errorf("message connect.oracle.v2.GetAllCurrencyPairsResponse does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GetAllCurrencyPairsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "connect.oracle.v2.GetAllCurrencyPairsResponse.currency_pairs": + if x.CurrencyPairs == nil { + x.CurrencyPairs = []*v2.CurrencyPair{} + } + value := &_GetAllCurrencyPairsResponse_1_list{list: &x.CurrencyPairs} + return protoreflect.ValueOfList(value) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.GetAllCurrencyPairsResponse")) + } + panic(fmt.Errorf("message connect.oracle.v2.GetAllCurrencyPairsResponse does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_GetAllCurrencyPairsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "connect.oracle.v2.GetAllCurrencyPairsResponse.currency_pairs": + list := []*v2.CurrencyPair{} + return protoreflect.ValueOfList(&_GetAllCurrencyPairsResponse_1_list{list: &list}) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.GetAllCurrencyPairsResponse")) + } + panic(fmt.Errorf("message connect.oracle.v2.GetAllCurrencyPairsResponse does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_GetAllCurrencyPairsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in connect.oracle.v2.GetAllCurrencyPairsResponse", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_GetAllCurrencyPairsResponse) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GetAllCurrencyPairsResponse) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_GetAllCurrencyPairsResponse) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_GetAllCurrencyPairsResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*GetAllCurrencyPairsResponse) + 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.CurrencyPairs) > 0 { + for _, e := range x.CurrencyPairs { + 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().(*GetAllCurrencyPairsResponse) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]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.CurrencyPairs) > 0 { + for iNdEx := len(x.CurrencyPairs) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.CurrencyPairs[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().(*GetAllCurrencyPairsResponse) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GetAllCurrencyPairsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GetAllCurrencyPairsResponse: 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 CurrencyPairs", 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.CurrencyPairs = append(x.CurrencyPairs, &v2.CurrencyPair{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.CurrencyPairs[len(x.CurrencyPairs)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_GetPriceRequest protoreflect.MessageDescriptor + fd_GetPriceRequest_currency_pair protoreflect.FieldDescriptor +) + +func init() { + file_connect_oracle_v2_query_proto_init() + md_GetPriceRequest = File_connect_oracle_v2_query_proto.Messages().ByName("GetPriceRequest") + fd_GetPriceRequest_currency_pair = md_GetPriceRequest.Fields().ByName("currency_pair") +} + +var _ protoreflect.Message = (*fastReflection_GetPriceRequest)(nil) + +type fastReflection_GetPriceRequest GetPriceRequest + +func (x *GetPriceRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_GetPriceRequest)(x) +} + +func (x *GetPriceRequest) slowProtoReflect() protoreflect.Message { + mi := &file_connect_oracle_v2_query_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_GetPriceRequest_messageType fastReflection_GetPriceRequest_messageType +var _ protoreflect.MessageType = fastReflection_GetPriceRequest_messageType{} + +type fastReflection_GetPriceRequest_messageType struct{} + +func (x fastReflection_GetPriceRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_GetPriceRequest)(nil) +} +func (x fastReflection_GetPriceRequest_messageType) New() protoreflect.Message { + return new(fastReflection_GetPriceRequest) +} +func (x fastReflection_GetPriceRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_GetPriceRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_GetPriceRequest) Descriptor() protoreflect.MessageDescriptor { + return md_GetPriceRequest +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_GetPriceRequest) Type() protoreflect.MessageType { + return _fastReflection_GetPriceRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_GetPriceRequest) New() protoreflect.Message { + return new(fastReflection_GetPriceRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_GetPriceRequest) Interface() protoreflect.ProtoMessage { + return (*GetPriceRequest)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_GetPriceRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.CurrencyPair != "" { + value := protoreflect.ValueOfString(x.CurrencyPair) + if !f(fd_GetPriceRequest_currency_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_GetPriceRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "connect.oracle.v2.GetPriceRequest.currency_pair": + return x.CurrencyPair != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.GetPriceRequest")) + } + panic(fmt.Errorf("message connect.oracle.v2.GetPriceRequest does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GetPriceRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "connect.oracle.v2.GetPriceRequest.currency_pair": + x.CurrencyPair = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.GetPriceRequest")) + } + panic(fmt.Errorf("message connect.oracle.v2.GetPriceRequest does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_GetPriceRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "connect.oracle.v2.GetPriceRequest.currency_pair": + value := x.CurrencyPair + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.GetPriceRequest")) + } + panic(fmt.Errorf("message connect.oracle.v2.GetPriceRequest does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GetPriceRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "connect.oracle.v2.GetPriceRequest.currency_pair": + x.CurrencyPair = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.GetPriceRequest")) + } + panic(fmt.Errorf("message connect.oracle.v2.GetPriceRequest does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GetPriceRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "connect.oracle.v2.GetPriceRequest.currency_pair": + panic(fmt.Errorf("field currency_pair of message connect.oracle.v2.GetPriceRequest is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.GetPriceRequest")) + } + panic(fmt.Errorf("message connect.oracle.v2.GetPriceRequest does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_GetPriceRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "connect.oracle.v2.GetPriceRequest.currency_pair": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.GetPriceRequest")) + } + panic(fmt.Errorf("message connect.oracle.v2.GetPriceRequest does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_GetPriceRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in connect.oracle.v2.GetPriceRequest", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_GetPriceRequest) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GetPriceRequest) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_GetPriceRequest) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_GetPriceRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*GetPriceRequest) + 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.CurrencyPair) + 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().(*GetPriceRequest) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]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.CurrencyPair) > 0 { + i -= len(x.CurrencyPair) + copy(dAtA[i:], x.CurrencyPair) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.CurrencyPair))) + 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().(*GetPriceRequest) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GetPriceRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GetPriceRequest: 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 CurrencyPair", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.CurrencyPair = 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_GetPriceResponse protoreflect.MessageDescriptor + fd_GetPriceResponse_price protoreflect.FieldDescriptor + fd_GetPriceResponse_nonce protoreflect.FieldDescriptor + fd_GetPriceResponse_decimals protoreflect.FieldDescriptor + fd_GetPriceResponse_id protoreflect.FieldDescriptor +) + +func init() { + file_connect_oracle_v2_query_proto_init() + md_GetPriceResponse = File_connect_oracle_v2_query_proto.Messages().ByName("GetPriceResponse") + fd_GetPriceResponse_price = md_GetPriceResponse.Fields().ByName("price") + fd_GetPriceResponse_nonce = md_GetPriceResponse.Fields().ByName("nonce") + fd_GetPriceResponse_decimals = md_GetPriceResponse.Fields().ByName("decimals") + fd_GetPriceResponse_id = md_GetPriceResponse.Fields().ByName("id") +} + +var _ protoreflect.Message = (*fastReflection_GetPriceResponse)(nil) + +type fastReflection_GetPriceResponse GetPriceResponse + +func (x *GetPriceResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_GetPriceResponse)(x) +} + +func (x *GetPriceResponse) slowProtoReflect() protoreflect.Message { + mi := &file_connect_oracle_v2_query_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_GetPriceResponse_messageType fastReflection_GetPriceResponse_messageType +var _ protoreflect.MessageType = fastReflection_GetPriceResponse_messageType{} + +type fastReflection_GetPriceResponse_messageType struct{} + +func (x fastReflection_GetPriceResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_GetPriceResponse)(nil) +} +func (x fastReflection_GetPriceResponse_messageType) New() protoreflect.Message { + return new(fastReflection_GetPriceResponse) +} +func (x fastReflection_GetPriceResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_GetPriceResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_GetPriceResponse) Descriptor() protoreflect.MessageDescriptor { + return md_GetPriceResponse +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_GetPriceResponse) Type() protoreflect.MessageType { + return _fastReflection_GetPriceResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_GetPriceResponse) New() protoreflect.Message { + return new(fastReflection_GetPriceResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_GetPriceResponse) Interface() protoreflect.ProtoMessage { + return (*GetPriceResponse)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_GetPriceResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Price != nil { + value := protoreflect.ValueOfMessage(x.Price.ProtoReflect()) + if !f(fd_GetPriceResponse_price, value) { + return + } + } + if x.Nonce != uint64(0) { + value := protoreflect.ValueOfUint64(x.Nonce) + if !f(fd_GetPriceResponse_nonce, value) { + return + } + } + if x.Decimals != uint64(0) { + value := protoreflect.ValueOfUint64(x.Decimals) + if !f(fd_GetPriceResponse_decimals, value) { + return + } + } + if x.Id != uint64(0) { + value := protoreflect.ValueOfUint64(x.Id) + if !f(fd_GetPriceResponse_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_GetPriceResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "connect.oracle.v2.GetPriceResponse.price": + return x.Price != nil + case "connect.oracle.v2.GetPriceResponse.nonce": + return x.Nonce != uint64(0) + case "connect.oracle.v2.GetPriceResponse.decimals": + return x.Decimals != uint64(0) + case "connect.oracle.v2.GetPriceResponse.id": + return x.Id != uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.GetPriceResponse")) + } + panic(fmt.Errorf("message connect.oracle.v2.GetPriceResponse does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GetPriceResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "connect.oracle.v2.GetPriceResponse.price": + x.Price = nil + case "connect.oracle.v2.GetPriceResponse.nonce": + x.Nonce = uint64(0) + case "connect.oracle.v2.GetPriceResponse.decimals": + x.Decimals = uint64(0) + case "connect.oracle.v2.GetPriceResponse.id": + x.Id = uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.GetPriceResponse")) + } + panic(fmt.Errorf("message connect.oracle.v2.GetPriceResponse does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_GetPriceResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "connect.oracle.v2.GetPriceResponse.price": + value := x.Price + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "connect.oracle.v2.GetPriceResponse.nonce": + value := x.Nonce + return protoreflect.ValueOfUint64(value) + case "connect.oracle.v2.GetPriceResponse.decimals": + value := x.Decimals + return protoreflect.ValueOfUint64(value) + case "connect.oracle.v2.GetPriceResponse.id": + value := x.Id + return protoreflect.ValueOfUint64(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.GetPriceResponse")) + } + panic(fmt.Errorf("message connect.oracle.v2.GetPriceResponse does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GetPriceResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "connect.oracle.v2.GetPriceResponse.price": + x.Price = value.Message().Interface().(*QuotePrice) + case "connect.oracle.v2.GetPriceResponse.nonce": + x.Nonce = value.Uint() + case "connect.oracle.v2.GetPriceResponse.decimals": + x.Decimals = value.Uint() + case "connect.oracle.v2.GetPriceResponse.id": + x.Id = value.Uint() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.GetPriceResponse")) + } + panic(fmt.Errorf("message connect.oracle.v2.GetPriceResponse does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GetPriceResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "connect.oracle.v2.GetPriceResponse.price": + if x.Price == nil { + x.Price = new(QuotePrice) + } + return protoreflect.ValueOfMessage(x.Price.ProtoReflect()) + case "connect.oracle.v2.GetPriceResponse.nonce": + panic(fmt.Errorf("field nonce of message connect.oracle.v2.GetPriceResponse is not mutable")) + case "connect.oracle.v2.GetPriceResponse.decimals": + panic(fmt.Errorf("field decimals of message connect.oracle.v2.GetPriceResponse is not mutable")) + case "connect.oracle.v2.GetPriceResponse.id": + panic(fmt.Errorf("field id of message connect.oracle.v2.GetPriceResponse is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.GetPriceResponse")) + } + panic(fmt.Errorf("message connect.oracle.v2.GetPriceResponse does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_GetPriceResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "connect.oracle.v2.GetPriceResponse.price": + m := new(QuotePrice) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "connect.oracle.v2.GetPriceResponse.nonce": + return protoreflect.ValueOfUint64(uint64(0)) + case "connect.oracle.v2.GetPriceResponse.decimals": + return protoreflect.ValueOfUint64(uint64(0)) + case "connect.oracle.v2.GetPriceResponse.id": + return protoreflect.ValueOfUint64(uint64(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.GetPriceResponse")) + } + panic(fmt.Errorf("message connect.oracle.v2.GetPriceResponse does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_GetPriceResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in connect.oracle.v2.GetPriceResponse", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_GetPriceResponse) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GetPriceResponse) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_GetPriceResponse) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_GetPriceResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*GetPriceResponse) + 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.Price != nil { + l = options.Size(x.Price) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Nonce != 0 { + n += 1 + runtime.Sov(uint64(x.Nonce)) + } + if x.Decimals != 0 { + n += 1 + runtime.Sov(uint64(x.Decimals)) + } + if x.Id != 0 { + n += 1 + runtime.Sov(uint64(x.Id)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*GetPriceResponse) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]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.Id != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Id)) + i-- + dAtA[i] = 0x20 + } + if x.Decimals != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Decimals)) + i-- + dAtA[i] = 0x18 + } + if x.Nonce != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Nonce)) + i-- + dAtA[i] = 0x10 + } + if x.Price != nil { + encoded, err := options.Marshal(x.Price) + 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().(*GetPriceResponse) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GetPriceResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GetPriceResponse: 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 Price", 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.Price == nil { + x.Price = &QuotePrice{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Price); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Nonce", wireType) + } + x.Nonce = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.Nonce |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Decimals", wireType) + } + x.Decimals = 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.Decimals |= uint64(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 Id", wireType) + } + x.Id = 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.Id |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var _ protoreflect.List = (*_GetPricesRequest_1_list)(nil) + +type _GetPricesRequest_1_list struct { + list *[]string +} + +func (x *_GetPricesRequest_1_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_GetPricesRequest_1_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfString((*x.list)[i]) +} + +func (x *_GetPricesRequest_1_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.String() + concreteValue := valueUnwrapped + (*x.list)[i] = concreteValue +} + +func (x *_GetPricesRequest_1_list) Append(value protoreflect.Value) { + valueUnwrapped := value.String() + concreteValue := valueUnwrapped + *x.list = append(*x.list, concreteValue) +} + +func (x *_GetPricesRequest_1_list) AppendMutable() protoreflect.Value { + panic(fmt.Errorf("AppendMutable can not be called on message GetPricesRequest at list field CurrencyPairIds as it is not of Message kind")) +} + +func (x *_GetPricesRequest_1_list) Truncate(n int) { + *x.list = (*x.list)[:n] +} + +func (x *_GetPricesRequest_1_list) NewElement() protoreflect.Value { + v := "" + return protoreflect.ValueOfString(v) +} + +func (x *_GetPricesRequest_1_list) IsValid() bool { + return x.list != nil +} + +var ( + md_GetPricesRequest protoreflect.MessageDescriptor + fd_GetPricesRequest_currency_pair_ids protoreflect.FieldDescriptor +) + +func init() { + file_connect_oracle_v2_query_proto_init() + md_GetPricesRequest = File_connect_oracle_v2_query_proto.Messages().ByName("GetPricesRequest") + fd_GetPricesRequest_currency_pair_ids = md_GetPricesRequest.Fields().ByName("currency_pair_ids") +} + +var _ protoreflect.Message = (*fastReflection_GetPricesRequest)(nil) + +type fastReflection_GetPricesRequest GetPricesRequest + +func (x *GetPricesRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_GetPricesRequest)(x) +} + +func (x *GetPricesRequest) slowProtoReflect() protoreflect.Message { + mi := &file_connect_oracle_v2_query_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_GetPricesRequest_messageType fastReflection_GetPricesRequest_messageType +var _ protoreflect.MessageType = fastReflection_GetPricesRequest_messageType{} + +type fastReflection_GetPricesRequest_messageType struct{} + +func (x fastReflection_GetPricesRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_GetPricesRequest)(nil) +} +func (x fastReflection_GetPricesRequest_messageType) New() protoreflect.Message { + return new(fastReflection_GetPricesRequest) +} +func (x fastReflection_GetPricesRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_GetPricesRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_GetPricesRequest) Descriptor() protoreflect.MessageDescriptor { + return md_GetPricesRequest +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_GetPricesRequest) Type() protoreflect.MessageType { + return _fastReflection_GetPricesRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_GetPricesRequest) New() protoreflect.Message { + return new(fastReflection_GetPricesRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_GetPricesRequest) Interface() protoreflect.ProtoMessage { + return (*GetPricesRequest)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_GetPricesRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.CurrencyPairIds) != 0 { + value := protoreflect.ValueOfList(&_GetPricesRequest_1_list{list: &x.CurrencyPairIds}) + if !f(fd_GetPricesRequest_currency_pair_ids, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_GetPricesRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "connect.oracle.v2.GetPricesRequest.currency_pair_ids": + return len(x.CurrencyPairIds) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.GetPricesRequest")) + } + panic(fmt.Errorf("message connect.oracle.v2.GetPricesRequest does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GetPricesRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "connect.oracle.v2.GetPricesRequest.currency_pair_ids": + x.CurrencyPairIds = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.GetPricesRequest")) + } + panic(fmt.Errorf("message connect.oracle.v2.GetPricesRequest does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_GetPricesRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "connect.oracle.v2.GetPricesRequest.currency_pair_ids": + if len(x.CurrencyPairIds) == 0 { + return protoreflect.ValueOfList(&_GetPricesRequest_1_list{}) + } + listValue := &_GetPricesRequest_1_list{list: &x.CurrencyPairIds} + return protoreflect.ValueOfList(listValue) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.GetPricesRequest")) + } + panic(fmt.Errorf("message connect.oracle.v2.GetPricesRequest does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GetPricesRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "connect.oracle.v2.GetPricesRequest.currency_pair_ids": + lv := value.List() + clv := lv.(*_GetPricesRequest_1_list) + x.CurrencyPairIds = *clv.list + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.GetPricesRequest")) + } + panic(fmt.Errorf("message connect.oracle.v2.GetPricesRequest does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GetPricesRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "connect.oracle.v2.GetPricesRequest.currency_pair_ids": + if x.CurrencyPairIds == nil { + x.CurrencyPairIds = []string{} + } + value := &_GetPricesRequest_1_list{list: &x.CurrencyPairIds} + return protoreflect.ValueOfList(value) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.GetPricesRequest")) + } + panic(fmt.Errorf("message connect.oracle.v2.GetPricesRequest does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_GetPricesRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "connect.oracle.v2.GetPricesRequest.currency_pair_ids": + list := []string{} + return protoreflect.ValueOfList(&_GetPricesRequest_1_list{list: &list}) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.GetPricesRequest")) + } + panic(fmt.Errorf("message connect.oracle.v2.GetPricesRequest does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_GetPricesRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in connect.oracle.v2.GetPricesRequest", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_GetPricesRequest) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GetPricesRequest) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_GetPricesRequest) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_GetPricesRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*GetPricesRequest) + 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.CurrencyPairIds) > 0 { + for _, s := range x.CurrencyPairIds { + l = len(s) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*GetPricesRequest) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]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.CurrencyPairIds) > 0 { + for iNdEx := len(x.CurrencyPairIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(x.CurrencyPairIds[iNdEx]) + copy(dAtA[i:], x.CurrencyPairIds[iNdEx]) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.CurrencyPairIds[iNdEx]))) + 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().(*GetPricesRequest) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GetPricesRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GetPricesRequest: 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 CurrencyPairIds", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.CurrencyPairIds = append(x.CurrencyPairIds, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var _ protoreflect.List = (*_GetPricesResponse_1_list)(nil) + +type _GetPricesResponse_1_list struct { + list *[]*GetPriceResponse +} + +func (x *_GetPricesResponse_1_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_GetPricesResponse_1_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_GetPricesResponse_1_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*GetPriceResponse) + (*x.list)[i] = concreteValue +} + +func (x *_GetPricesResponse_1_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*GetPriceResponse) + *x.list = append(*x.list, concreteValue) +} + +func (x *_GetPricesResponse_1_list) AppendMutable() protoreflect.Value { + v := new(GetPriceResponse) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GetPricesResponse_1_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_GetPricesResponse_1_list) NewElement() protoreflect.Value { + v := new(GetPriceResponse) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GetPricesResponse_1_list) IsValid() bool { + return x.list != nil +} + +var ( + md_GetPricesResponse protoreflect.MessageDescriptor + fd_GetPricesResponse_prices protoreflect.FieldDescriptor +) + +func init() { + file_connect_oracle_v2_query_proto_init() + md_GetPricesResponse = File_connect_oracle_v2_query_proto.Messages().ByName("GetPricesResponse") + fd_GetPricesResponse_prices = md_GetPricesResponse.Fields().ByName("prices") +} + +var _ protoreflect.Message = (*fastReflection_GetPricesResponse)(nil) + +type fastReflection_GetPricesResponse GetPricesResponse + +func (x *GetPricesResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_GetPricesResponse)(x) +} + +func (x *GetPricesResponse) slowProtoReflect() protoreflect.Message { + mi := &file_connect_oracle_v2_query_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_GetPricesResponse_messageType fastReflection_GetPricesResponse_messageType +var _ protoreflect.MessageType = fastReflection_GetPricesResponse_messageType{} + +type fastReflection_GetPricesResponse_messageType struct{} + +func (x fastReflection_GetPricesResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_GetPricesResponse)(nil) +} +func (x fastReflection_GetPricesResponse_messageType) New() protoreflect.Message { + return new(fastReflection_GetPricesResponse) +} +func (x fastReflection_GetPricesResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_GetPricesResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_GetPricesResponse) Descriptor() protoreflect.MessageDescriptor { + return md_GetPricesResponse +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_GetPricesResponse) Type() protoreflect.MessageType { + return _fastReflection_GetPricesResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_GetPricesResponse) New() protoreflect.Message { + return new(fastReflection_GetPricesResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_GetPricesResponse) Interface() protoreflect.ProtoMessage { + return (*GetPricesResponse)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_GetPricesResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.Prices) != 0 { + value := protoreflect.ValueOfList(&_GetPricesResponse_1_list{list: &x.Prices}) + if !f(fd_GetPricesResponse_prices, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_GetPricesResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "connect.oracle.v2.GetPricesResponse.prices": + return len(x.Prices) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.GetPricesResponse")) + } + panic(fmt.Errorf("message connect.oracle.v2.GetPricesResponse does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GetPricesResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "connect.oracle.v2.GetPricesResponse.prices": + x.Prices = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.GetPricesResponse")) + } + panic(fmt.Errorf("message connect.oracle.v2.GetPricesResponse does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_GetPricesResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "connect.oracle.v2.GetPricesResponse.prices": + if len(x.Prices) == 0 { + return protoreflect.ValueOfList(&_GetPricesResponse_1_list{}) + } + listValue := &_GetPricesResponse_1_list{list: &x.Prices} + return protoreflect.ValueOfList(listValue) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.GetPricesResponse")) + } + panic(fmt.Errorf("message connect.oracle.v2.GetPricesResponse does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GetPricesResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "connect.oracle.v2.GetPricesResponse.prices": + lv := value.List() + clv := lv.(*_GetPricesResponse_1_list) + x.Prices = *clv.list + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.GetPricesResponse")) + } + panic(fmt.Errorf("message connect.oracle.v2.GetPricesResponse does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GetPricesResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "connect.oracle.v2.GetPricesResponse.prices": + if x.Prices == nil { + x.Prices = []*GetPriceResponse{} + } + value := &_GetPricesResponse_1_list{list: &x.Prices} + return protoreflect.ValueOfList(value) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.GetPricesResponse")) + } + panic(fmt.Errorf("message connect.oracle.v2.GetPricesResponse does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_GetPricesResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "connect.oracle.v2.GetPricesResponse.prices": + list := []*GetPriceResponse{} + return protoreflect.ValueOfList(&_GetPricesResponse_1_list{list: &list}) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.GetPricesResponse")) + } + panic(fmt.Errorf("message connect.oracle.v2.GetPricesResponse does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_GetPricesResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in connect.oracle.v2.GetPricesResponse", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_GetPricesResponse) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GetPricesResponse) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_GetPricesResponse) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_GetPricesResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*GetPricesResponse) + 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.Prices) > 0 { + for _, e := range x.Prices { + 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().(*GetPricesResponse) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]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.Prices) > 0 { + for iNdEx := len(x.Prices) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.Prices[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().(*GetPricesResponse) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GetPricesResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GetPricesResponse: 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 Prices", 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.Prices = append(x.Prices, &GetPriceResponse{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Prices[len(x.Prices)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_GetCurrencyPairMappingRequest protoreflect.MessageDescriptor +) + +func init() { + file_connect_oracle_v2_query_proto_init() + md_GetCurrencyPairMappingRequest = File_connect_oracle_v2_query_proto.Messages().ByName("GetCurrencyPairMappingRequest") +} + +var _ protoreflect.Message = (*fastReflection_GetCurrencyPairMappingRequest)(nil) + +type fastReflection_GetCurrencyPairMappingRequest GetCurrencyPairMappingRequest + +func (x *GetCurrencyPairMappingRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_GetCurrencyPairMappingRequest)(x) +} + +func (x *GetCurrencyPairMappingRequest) slowProtoReflect() protoreflect.Message { + mi := &file_connect_oracle_v2_query_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_GetCurrencyPairMappingRequest_messageType fastReflection_GetCurrencyPairMappingRequest_messageType +var _ protoreflect.MessageType = fastReflection_GetCurrencyPairMappingRequest_messageType{} + +type fastReflection_GetCurrencyPairMappingRequest_messageType struct{} + +func (x fastReflection_GetCurrencyPairMappingRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_GetCurrencyPairMappingRequest)(nil) +} +func (x fastReflection_GetCurrencyPairMappingRequest_messageType) New() protoreflect.Message { + return new(fastReflection_GetCurrencyPairMappingRequest) +} +func (x fastReflection_GetCurrencyPairMappingRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_GetCurrencyPairMappingRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_GetCurrencyPairMappingRequest) Descriptor() protoreflect.MessageDescriptor { + return md_GetCurrencyPairMappingRequest +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_GetCurrencyPairMappingRequest) Type() protoreflect.MessageType { + return _fastReflection_GetCurrencyPairMappingRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_GetCurrencyPairMappingRequest) New() protoreflect.Message { + return new(fastReflection_GetCurrencyPairMappingRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_GetCurrencyPairMappingRequest) Interface() protoreflect.ProtoMessage { + return (*GetCurrencyPairMappingRequest)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_GetCurrencyPairMappingRequest) 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_GetCurrencyPairMappingRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.GetCurrencyPairMappingRequest")) + } + panic(fmt.Errorf("message connect.oracle.v2.GetCurrencyPairMappingRequest does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GetCurrencyPairMappingRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.GetCurrencyPairMappingRequest")) + } + panic(fmt.Errorf("message connect.oracle.v2.GetCurrencyPairMappingRequest does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_GetCurrencyPairMappingRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.GetCurrencyPairMappingRequest")) + } + panic(fmt.Errorf("message connect.oracle.v2.GetCurrencyPairMappingRequest does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GetCurrencyPairMappingRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.GetCurrencyPairMappingRequest")) + } + panic(fmt.Errorf("message connect.oracle.v2.GetCurrencyPairMappingRequest does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GetCurrencyPairMappingRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.GetCurrencyPairMappingRequest")) + } + panic(fmt.Errorf("message connect.oracle.v2.GetCurrencyPairMappingRequest does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_GetCurrencyPairMappingRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.GetCurrencyPairMappingRequest")) + } + panic(fmt.Errorf("message connect.oracle.v2.GetCurrencyPairMappingRequest does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_GetCurrencyPairMappingRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in connect.oracle.v2.GetCurrencyPairMappingRequest", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_GetCurrencyPairMappingRequest) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GetCurrencyPairMappingRequest) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_GetCurrencyPairMappingRequest) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_GetCurrencyPairMappingRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*GetCurrencyPairMappingRequest) + 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().(*GetCurrencyPairMappingRequest) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]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().(*GetCurrencyPairMappingRequest) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GetCurrencyPairMappingRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GetCurrencyPairMappingRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var _ protoreflect.Map = (*_GetCurrencyPairMappingResponse_1_map)(nil) + +type _GetCurrencyPairMappingResponse_1_map struct { + m *map[uint64]*v2.CurrencyPair +} + +func (x *_GetCurrencyPairMappingResponse_1_map) Len() int { + if x.m == nil { + return 0 + } + return len(*x.m) +} + +func (x *_GetCurrencyPairMappingResponse_1_map) Range(f func(protoreflect.MapKey, protoreflect.Value) bool) { + if x.m == nil { + return + } + for k, v := range *x.m { + mapKey := (protoreflect.MapKey)(protoreflect.ValueOfUint64(k)) + mapValue := protoreflect.ValueOfMessage(v.ProtoReflect()) + if !f(mapKey, mapValue) { + break + } + } +} + +func (x *_GetCurrencyPairMappingResponse_1_map) Has(key protoreflect.MapKey) bool { + if x.m == nil { + return false + } + keyUnwrapped := key.Uint() + concreteValue := keyUnwrapped + _, ok := (*x.m)[concreteValue] + return ok +} + +func (x *_GetCurrencyPairMappingResponse_1_map) Clear(key protoreflect.MapKey) { + if x.m == nil { + return + } + keyUnwrapped := key.Uint() + concreteKey := keyUnwrapped + delete(*x.m, concreteKey) +} + +func (x *_GetCurrencyPairMappingResponse_1_map) Get(key protoreflect.MapKey) protoreflect.Value { + if x.m == nil { + return protoreflect.Value{} + } + keyUnwrapped := key.Uint() + concreteKey := keyUnwrapped + v, ok := (*x.m)[concreteKey] + if !ok { + return protoreflect.Value{} + } + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GetCurrencyPairMappingResponse_1_map) Set(key protoreflect.MapKey, value protoreflect.Value) { + if !key.IsValid() || !value.IsValid() { + panic("invalid key or value provided") + } + keyUnwrapped := key.Uint() + concreteKey := keyUnwrapped + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*v2.CurrencyPair) + (*x.m)[concreteKey] = concreteValue +} + +func (x *_GetCurrencyPairMappingResponse_1_map) Mutable(key protoreflect.MapKey) protoreflect.Value { + keyUnwrapped := key.Uint() + concreteKey := keyUnwrapped + v, ok := (*x.m)[concreteKey] + if ok { + return protoreflect.ValueOfMessage(v.ProtoReflect()) + } + newValue := new(v2.CurrencyPair) + (*x.m)[concreteKey] = newValue + return protoreflect.ValueOfMessage(newValue.ProtoReflect()) +} + +func (x *_GetCurrencyPairMappingResponse_1_map) NewValue() protoreflect.Value { + v := new(v2.CurrencyPair) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GetCurrencyPairMappingResponse_1_map) IsValid() bool { + return x.m != nil +} + +var ( + md_GetCurrencyPairMappingResponse protoreflect.MessageDescriptor + fd_GetCurrencyPairMappingResponse_currency_pair_mapping protoreflect.FieldDescriptor +) + +func init() { + file_connect_oracle_v2_query_proto_init() + md_GetCurrencyPairMappingResponse = File_connect_oracle_v2_query_proto.Messages().ByName("GetCurrencyPairMappingResponse") + fd_GetCurrencyPairMappingResponse_currency_pair_mapping = md_GetCurrencyPairMappingResponse.Fields().ByName("currency_pair_mapping") +} + +var _ protoreflect.Message = (*fastReflection_GetCurrencyPairMappingResponse)(nil) + +type fastReflection_GetCurrencyPairMappingResponse GetCurrencyPairMappingResponse + +func (x *GetCurrencyPairMappingResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_GetCurrencyPairMappingResponse)(x) +} + +func (x *GetCurrencyPairMappingResponse) slowProtoReflect() protoreflect.Message { + mi := &file_connect_oracle_v2_query_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_GetCurrencyPairMappingResponse_messageType fastReflection_GetCurrencyPairMappingResponse_messageType +var _ protoreflect.MessageType = fastReflection_GetCurrencyPairMappingResponse_messageType{} + +type fastReflection_GetCurrencyPairMappingResponse_messageType struct{} + +func (x fastReflection_GetCurrencyPairMappingResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_GetCurrencyPairMappingResponse)(nil) +} +func (x fastReflection_GetCurrencyPairMappingResponse_messageType) New() protoreflect.Message { + return new(fastReflection_GetCurrencyPairMappingResponse) +} +func (x fastReflection_GetCurrencyPairMappingResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_GetCurrencyPairMappingResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_GetCurrencyPairMappingResponse) Descriptor() protoreflect.MessageDescriptor { + return md_GetCurrencyPairMappingResponse +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_GetCurrencyPairMappingResponse) Type() protoreflect.MessageType { + return _fastReflection_GetCurrencyPairMappingResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_GetCurrencyPairMappingResponse) New() protoreflect.Message { + return new(fastReflection_GetCurrencyPairMappingResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_GetCurrencyPairMappingResponse) Interface() protoreflect.ProtoMessage { + return (*GetCurrencyPairMappingResponse)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_GetCurrencyPairMappingResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.CurrencyPairMapping) != 0 { + value := protoreflect.ValueOfMap(&_GetCurrencyPairMappingResponse_1_map{m: &x.CurrencyPairMapping}) + if !f(fd_GetCurrencyPairMappingResponse_currency_pair_mapping, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_GetCurrencyPairMappingResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "connect.oracle.v2.GetCurrencyPairMappingResponse.currency_pair_mapping": + return len(x.CurrencyPairMapping) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.GetCurrencyPairMappingResponse")) + } + panic(fmt.Errorf("message connect.oracle.v2.GetCurrencyPairMappingResponse does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GetCurrencyPairMappingResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "connect.oracle.v2.GetCurrencyPairMappingResponse.currency_pair_mapping": + x.CurrencyPairMapping = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.GetCurrencyPairMappingResponse")) + } + panic(fmt.Errorf("message connect.oracle.v2.GetCurrencyPairMappingResponse does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_GetCurrencyPairMappingResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "connect.oracle.v2.GetCurrencyPairMappingResponse.currency_pair_mapping": + if len(x.CurrencyPairMapping) == 0 { + return protoreflect.ValueOfMap(&_GetCurrencyPairMappingResponse_1_map{}) + } + mapValue := &_GetCurrencyPairMappingResponse_1_map{m: &x.CurrencyPairMapping} + return protoreflect.ValueOfMap(mapValue) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.GetCurrencyPairMappingResponse")) + } + panic(fmt.Errorf("message connect.oracle.v2.GetCurrencyPairMappingResponse does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GetCurrencyPairMappingResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "connect.oracle.v2.GetCurrencyPairMappingResponse.currency_pair_mapping": + mv := value.Map() + cmv := mv.(*_GetCurrencyPairMappingResponse_1_map) + x.CurrencyPairMapping = *cmv.m + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.GetCurrencyPairMappingResponse")) + } + panic(fmt.Errorf("message connect.oracle.v2.GetCurrencyPairMappingResponse does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GetCurrencyPairMappingResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "connect.oracle.v2.GetCurrencyPairMappingResponse.currency_pair_mapping": + if x.CurrencyPairMapping == nil { + x.CurrencyPairMapping = make(map[uint64]*v2.CurrencyPair) + } + value := &_GetCurrencyPairMappingResponse_1_map{m: &x.CurrencyPairMapping} + return protoreflect.ValueOfMap(value) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.GetCurrencyPairMappingResponse")) + } + panic(fmt.Errorf("message connect.oracle.v2.GetCurrencyPairMappingResponse does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_GetCurrencyPairMappingResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "connect.oracle.v2.GetCurrencyPairMappingResponse.currency_pair_mapping": + m := make(map[uint64]*v2.CurrencyPair) + return protoreflect.ValueOfMap(&_GetCurrencyPairMappingResponse_1_map{m: &m}) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.GetCurrencyPairMappingResponse")) + } + panic(fmt.Errorf("message connect.oracle.v2.GetCurrencyPairMappingResponse does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_GetCurrencyPairMappingResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in connect.oracle.v2.GetCurrencyPairMappingResponse", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_GetCurrencyPairMappingResponse) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GetCurrencyPairMappingResponse) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_GetCurrencyPairMappingResponse) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_GetCurrencyPairMappingResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*GetCurrencyPairMappingResponse) + 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.CurrencyPairMapping) > 0 { + SiZeMaP := func(k uint64, v *v2.CurrencyPair) { + l := 0 + if v != nil { + l = options.Size(v) + } + l += 1 + runtime.Sov(uint64(l)) + mapEntrySize := 1 + runtime.Sov(uint64(k)) + l + n += mapEntrySize + 1 + runtime.Sov(uint64(mapEntrySize)) + } + if options.Deterministic { + sortme := make([]uint64, 0, len(x.CurrencyPairMapping)) + for k := range x.CurrencyPairMapping { + sortme = append(sortme, k) + } + sort.Slice(sortme, func(i, j int) bool { + return sortme[i] < sortme[j] + }) + for _, k := range sortme { + v := x.CurrencyPairMapping[k] + SiZeMaP(k, v) + } + } else { + for k, v := range x.CurrencyPairMapping { + SiZeMaP(k, v) + } + } + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*GetCurrencyPairMappingResponse) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]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.CurrencyPairMapping) > 0 { + MaRsHaLmAp := func(k uint64, v *v2.CurrencyPair) (protoiface.MarshalOutput, error) { + baseI := i + encoded, err := options.Marshal(v) + 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 + i = runtime.EncodeVarint(dAtA, i, uint64(k)) + i-- + dAtA[i] = 0x8 + i = runtime.EncodeVarint(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0xa + return protoiface.MarshalOutput{}, nil + } + if options.Deterministic { + keysForCurrencyPairMapping := make([]uint64, 0, len(x.CurrencyPairMapping)) + for k := range x.CurrencyPairMapping { + keysForCurrencyPairMapping = append(keysForCurrencyPairMapping, uint64(k)) + } + sort.Slice(keysForCurrencyPairMapping, func(i, j int) bool { + return keysForCurrencyPairMapping[i] < keysForCurrencyPairMapping[j] + }) + for iNdEx := len(keysForCurrencyPairMapping) - 1; iNdEx >= 0; iNdEx-- { + v := x.CurrencyPairMapping[uint64(keysForCurrencyPairMapping[iNdEx])] + out, err := MaRsHaLmAp(keysForCurrencyPairMapping[iNdEx], v) + if err != nil { + return out, err + } + } + } else { + for k := range x.CurrencyPairMapping { + v := x.CurrencyPairMapping[k] + out, err := MaRsHaLmAp(k, v) + if err != nil { + return out, err + } + } + } + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*GetCurrencyPairMappingResponse) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GetCurrencyPairMappingResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GetCurrencyPairMappingResponse: 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 CurrencyPairMapping", 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.CurrencyPairMapping == nil { + x.CurrencyPairMapping = make(map[uint64]*v2.CurrencyPair) + } + var mapkey uint64 + var mapvalue *v2.CurrencyPair + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + } else if fieldNum == 2 { + var mapmsglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapmsglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if mapmsglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postmsgIndex := iNdEx + mapmsglen + if postmsgIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postmsgIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + mapvalue = &v2.CurrencyPair{} + if err := options.Unmarshal(dAtA[iNdEx:postmsgIndex], mapvalue); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postmsgIndex + } else { + iNdEx = entryPreIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > postIndex { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + x.CurrencyPairMapping[mapkey] = mapvalue + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.0 +// protoc (unknown) +// source: connect/oracle/v2/query.proto + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type GetAllCurrencyPairsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *GetAllCurrencyPairsRequest) Reset() { + *x = GetAllCurrencyPairsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_connect_oracle_v2_query_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetAllCurrencyPairsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetAllCurrencyPairsRequest) ProtoMessage() {} + +// Deprecated: Use GetAllCurrencyPairsRequest.ProtoReflect.Descriptor instead. +func (*GetAllCurrencyPairsRequest) Descriptor() ([]byte, []int) { + return file_connect_oracle_v2_query_proto_rawDescGZIP(), []int{0} +} + +// GetAllCurrencyPairsResponse returns all CurrencyPairs that the module is +// currently tracking. +type GetAllCurrencyPairsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + CurrencyPairs []*v2.CurrencyPair `protobuf:"bytes,1,rep,name=currency_pairs,json=currencyPairs,proto3" json:"currency_pairs,omitempty"` +} + +func (x *GetAllCurrencyPairsResponse) Reset() { + *x = GetAllCurrencyPairsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_connect_oracle_v2_query_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetAllCurrencyPairsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetAllCurrencyPairsResponse) ProtoMessage() {} + +// Deprecated: Use GetAllCurrencyPairsResponse.ProtoReflect.Descriptor instead. +func (*GetAllCurrencyPairsResponse) Descriptor() ([]byte, []int) { + return file_connect_oracle_v2_query_proto_rawDescGZIP(), []int{1} +} + +func (x *GetAllCurrencyPairsResponse) GetCurrencyPairs() []*v2.CurrencyPair { + if x != nil { + return x.CurrencyPairs + } + return nil +} + +// GetPriceRequest takes an identifier for the +// CurrencyPair in the format base/quote. +type GetPriceRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // CurrencyPair represents the pair that the user wishes to query. + CurrencyPair string `protobuf:"bytes,1,opt,name=currency_pair,json=currencyPair,proto3" json:"currency_pair,omitempty"` +} + +func (x *GetPriceRequest) Reset() { + *x = GetPriceRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_connect_oracle_v2_query_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetPriceRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetPriceRequest) ProtoMessage() {} + +// Deprecated: Use GetPriceRequest.ProtoReflect.Descriptor instead. +func (*GetPriceRequest) Descriptor() ([]byte, []int) { + return file_connect_oracle_v2_query_proto_rawDescGZIP(), []int{2} +} + +func (x *GetPriceRequest) GetCurrencyPair() string { + if x != nil { + return x.CurrencyPair + } + return "" +} + +// GetPriceResponse is the response from the GetPrice grpc method exposed from +// the x/oracle query service. +type GetPriceResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // QuotePrice represents the quote-price for the CurrencyPair given in + // GetPriceRequest (possibly nil if no update has been made) + Price *QuotePrice `protobuf:"bytes,1,opt,name=price,proto3" json:"price,omitempty"` + // nonce represents the nonce for the CurrencyPair if it exists in state + Nonce uint64 `protobuf:"varint,2,opt,name=nonce,proto3" json:"nonce,omitempty"` + // decimals represents the number of decimals that the quote-price is + // represented in. It is used to scale the QuotePrice to its proper value. + Decimals uint64 `protobuf:"varint,3,opt,name=decimals,proto3" json:"decimals,omitempty"` + // ID represents the identifier for the CurrencyPair. + Id uint64 `protobuf:"varint,4,opt,name=id,proto3" json:"id,omitempty"` +} + +func (x *GetPriceResponse) Reset() { + *x = GetPriceResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_connect_oracle_v2_query_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetPriceResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetPriceResponse) ProtoMessage() {} + +// Deprecated: Use GetPriceResponse.ProtoReflect.Descriptor instead. +func (*GetPriceResponse) Descriptor() ([]byte, []int) { + return file_connect_oracle_v2_query_proto_rawDescGZIP(), []int{3} +} + +func (x *GetPriceResponse) GetPrice() *QuotePrice { + if x != nil { + return x.Price + } + return nil +} + +func (x *GetPriceResponse) GetNonce() uint64 { + if x != nil { + return x.Nonce + } + return 0 +} + +func (x *GetPriceResponse) GetDecimals() uint64 { + if x != nil { + return x.Decimals + } + return 0 +} + +func (x *GetPriceResponse) GetId() uint64 { + if x != nil { + return x.Id + } + return 0 +} + +// GetPricesRequest takes an identifier for the CurrencyPair +// in the format base/quote. +type GetPricesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + CurrencyPairIds []string `protobuf:"bytes,1,rep,name=currency_pair_ids,json=currencyPairIds,proto3" json:"currency_pair_ids,omitempty"` +} + +func (x *GetPricesRequest) Reset() { + *x = GetPricesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_connect_oracle_v2_query_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetPricesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetPricesRequest) ProtoMessage() {} + +// Deprecated: Use GetPricesRequest.ProtoReflect.Descriptor instead. +func (*GetPricesRequest) Descriptor() ([]byte, []int) { + return file_connect_oracle_v2_query_proto_rawDescGZIP(), []int{4} +} + +func (x *GetPricesRequest) GetCurrencyPairIds() []string { + if x != nil { + return x.CurrencyPairIds + } + return nil +} + +// GetPricesResponse is the response from the GetPrices grpc method exposed from +// the x/oracle query service. +type GetPricesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Prices []*GetPriceResponse `protobuf:"bytes,1,rep,name=prices,proto3" json:"prices,omitempty"` +} + +func (x *GetPricesResponse) Reset() { + *x = GetPricesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_connect_oracle_v2_query_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetPricesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetPricesResponse) ProtoMessage() {} + +// Deprecated: Use GetPricesResponse.ProtoReflect.Descriptor instead. +func (*GetPricesResponse) Descriptor() ([]byte, []int) { + return file_connect_oracle_v2_query_proto_rawDescGZIP(), []int{5} +} + +func (x *GetPricesResponse) GetPrices() []*GetPriceResponse { + if x != nil { + return x.Prices + } + return nil +} + +// GetCurrencyPairMappingRequest is the GetCurrencyPairMapping request type. +type GetCurrencyPairMappingRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *GetCurrencyPairMappingRequest) Reset() { + *x = GetCurrencyPairMappingRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_connect_oracle_v2_query_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetCurrencyPairMappingRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetCurrencyPairMappingRequest) ProtoMessage() {} + +// Deprecated: Use GetCurrencyPairMappingRequest.ProtoReflect.Descriptor instead. +func (*GetCurrencyPairMappingRequest) Descriptor() ([]byte, []int) { + return file_connect_oracle_v2_query_proto_rawDescGZIP(), []int{6} +} + +// GetCurrencyPairMappingResponse is the GetCurrencyPairMapping response type. +type GetCurrencyPairMappingResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // currency_pair_mapping is a mapping of the id representing the currency pair + // to the currency pair itself. + CurrencyPairMapping map[uint64]*v2.CurrencyPair `protobuf:"bytes,1,rep,name=currency_pair_mapping,json=currencyPairMapping,proto3" json:"currency_pair_mapping,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (x *GetCurrencyPairMappingResponse) Reset() { + *x = GetCurrencyPairMappingResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_connect_oracle_v2_query_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetCurrencyPairMappingResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetCurrencyPairMappingResponse) ProtoMessage() {} + +// Deprecated: Use GetCurrencyPairMappingResponse.ProtoReflect.Descriptor instead. +func (*GetCurrencyPairMappingResponse) Descriptor() ([]byte, []int) { + return file_connect_oracle_v2_query_proto_rawDescGZIP(), []int{7} +} + +func (x *GetCurrencyPairMappingResponse) GetCurrencyPairMapping() map[uint64]*v2.CurrencyPair { + if x != nil { + return x.CurrencyPairMapping + } + return nil +} + +var File_connect_oracle_v2_query_proto protoreflect.FileDescriptor + +var file_connect_oracle_v2_query_proto_rawDesc = []byte{ + 0x0a, 0x1d, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2f, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, + 0x2f, 0x76, 0x32, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, + 0x11, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x2e, + 0x76, 0x32, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, + 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2f, + 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x2f, 0x76, 0x32, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, + 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x24, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, + 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, + 0x63, 0x79, 0x5f, 0x70, 0x61, 0x69, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x1c, 0x0a, + 0x1a, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x50, + 0x61, 0x69, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x6a, 0x0a, 0x1b, 0x47, + 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x50, 0x61, 0x69, + 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4b, 0x0a, 0x0e, 0x63, 0x75, + 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x5f, 0x70, 0x61, 0x69, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x74, 0x79, 0x70, + 0x65, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x50, 0x61, + 0x69, 0x72, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0d, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, + 0x63, 0x79, 0x50, 0x61, 0x69, 0x72, 0x73, 0x22, 0x36, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x50, 0x72, + 0x69, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x75, + 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x5f, 0x70, 0x61, 0x69, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0c, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x50, 0x61, 0x69, 0x72, 0x22, + 0x8f, 0x01, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x6f, 0x72, + 0x61, 0x63, 0x6c, 0x65, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x6f, 0x74, 0x65, 0x50, 0x72, 0x69, + 0x63, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x01, 0x52, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x12, + 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, + 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, + 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, + 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, + 0x64, 0x22, 0x3e, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x50, 0x72, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2a, 0x0a, 0x11, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, + 0x79, 0x5f, 0x70, 0x61, 0x69, 0x72, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, + 0x52, 0x0f, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x50, 0x61, 0x69, 0x72, 0x49, 0x64, + 0x73, 0x22, 0x56, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x50, 0x72, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x41, 0x0a, 0x06, 0x70, 0x72, 0x69, 0x63, 0x65, 0x73, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, + 0x2e, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x2e, 0x76, 0x32, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, + 0x69, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, + 0x00, 0x52, 0x06, 0x70, 0x72, 0x69, 0x63, 0x65, 0x73, 0x22, 0x1f, 0x0a, 0x1d, 0x47, 0x65, 0x74, + 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x50, 0x61, 0x69, 0x72, 0x4d, 0x61, 0x70, 0x70, + 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x8f, 0x02, 0x0a, 0x1e, 0x47, + 0x65, 0x74, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x50, 0x61, 0x69, 0x72, 0x4d, 0x61, + 0x70, 0x70, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x84, 0x01, + 0x0a, 0x15, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x5f, 0x70, 0x61, 0x69, 0x72, 0x5f, + 0x6d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x4a, 0x2e, + 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x2e, 0x76, + 0x32, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x50, 0x61, 0x69, + 0x72, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x2e, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x50, 0x61, 0x69, 0x72, 0x4d, 0x61, 0x70, + 0x70, 0x69, 0x6e, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, + 0x13, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x50, 0x61, 0x69, 0x72, 0x4d, 0x61, 0x70, + 0x70, 0x69, 0x6e, 0x67, 0x1a, 0x66, 0x0a, 0x18, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, + 0x50, 0x61, 0x69, 0x72, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, + 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x6b, + 0x65, 0x79, 0x12, 0x34, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1e, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, + 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x50, 0x61, 0x69, + 0x72, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x32, 0xda, 0x04, 0x0a, + 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0xa0, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x41, 0x6c, + 0x6c, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x50, 0x61, 0x69, 0x72, 0x73, 0x12, 0x2d, + 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x2e, + 0x76, 0x32, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, + 0x79, 0x50, 0x61, 0x69, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, + 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x2e, 0x76, + 0x32, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, + 0x50, 0x61, 0x69, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2a, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x24, 0x12, 0x22, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2f, + 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x2f, 0x76, 0x32, 0x2f, 0x67, 0x65, 0x74, 0x5f, 0x61, 0x6c, + 0x6c, 0x5f, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x72, 0x73, 0x12, 0x79, 0x0a, 0x08, 0x47, 0x65, 0x74, + 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x22, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, + 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x2e, 0x76, 0x32, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x69, + 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, + 0x65, 0x63, 0x74, 0x2e, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x2e, 0x76, 0x32, 0x2e, 0x47, 0x65, + 0x74, 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x24, + 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1e, 0x12, 0x1c, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, + 0x2f, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x2f, 0x76, 0x32, 0x2f, 0x67, 0x65, 0x74, 0x5f, 0x70, + 0x72, 0x69, 0x63, 0x65, 0x12, 0x7d, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x50, 0x72, 0x69, 0x63, 0x65, + 0x73, 0x12, 0x23, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x6f, 0x72, 0x61, 0x63, + 0x6c, 0x65, 0x2e, 0x76, 0x32, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x69, 0x63, 0x65, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, + 0x2e, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x2e, 0x76, 0x32, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, + 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x25, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x1f, 0x12, 0x1d, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2f, 0x6f, + 0x72, 0x61, 0x63, 0x6c, 0x65, 0x2f, 0x76, 0x32, 0x2f, 0x67, 0x65, 0x74, 0x5f, 0x70, 0x72, 0x69, + 0x63, 0x65, 0x73, 0x12, 0xb3, 0x01, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x43, 0x75, 0x72, 0x72, 0x65, + 0x6e, 0x63, 0x79, 0x50, 0x61, 0x69, 0x72, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x12, 0x30, + 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x2e, + 0x76, 0x32, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x50, 0x61, + 0x69, 0x72, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x6f, 0x72, 0x61, 0x63, 0x6c, + 0x65, 0x2e, 0x76, 0x32, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, + 0x50, 0x61, 0x69, 0x72, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x34, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2e, 0x12, 0x2c, 0x2f, 0x63, 0x6f, + 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2f, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x2f, 0x76, 0x32, 0x2f, + 0x67, 0x65, 0x74, 0x5f, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x5f, 0x70, 0x61, 0x69, + 0x72, 0x5f, 0x6d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x42, 0xb6, 0x01, 0x0a, 0x15, 0x63, 0x6f, + 0x6d, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, + 0x2e, 0x76, 0x32, 0x42, 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, + 0x01, 0x5a, 0x2b, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, + 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2f, 0x6f, 0x72, 0x61, 0x63, + 0x6c, 0x65, 0x2f, 0x76, 0x32, 0x3b, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x76, 0x32, 0xa2, 0x02, + 0x03, 0x43, 0x4f, 0x58, 0xaa, 0x02, 0x11, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x4f, + 0x72, 0x61, 0x63, 0x6c, 0x65, 0x2e, 0x56, 0x32, 0xca, 0x02, 0x11, 0x43, 0x6f, 0x6e, 0x6e, 0x65, + 0x63, 0x74, 0x5c, 0x4f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x5c, 0x56, 0x32, 0xe2, 0x02, 0x1d, 0x43, + 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x5c, 0x4f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x5c, 0x56, 0x32, + 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x13, 0x43, + 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x3a, 0x3a, 0x4f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x3a, 0x3a, + 0x56, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_connect_oracle_v2_query_proto_rawDescOnce sync.Once + file_connect_oracle_v2_query_proto_rawDescData = file_connect_oracle_v2_query_proto_rawDesc +) + +func file_connect_oracle_v2_query_proto_rawDescGZIP() []byte { + file_connect_oracle_v2_query_proto_rawDescOnce.Do(func() { + file_connect_oracle_v2_query_proto_rawDescData = protoimpl.X.CompressGZIP(file_connect_oracle_v2_query_proto_rawDescData) + }) + return file_connect_oracle_v2_query_proto_rawDescData +} + +var file_connect_oracle_v2_query_proto_msgTypes = make([]protoimpl.MessageInfo, 9) +var file_connect_oracle_v2_query_proto_goTypes = []interface{}{ + (*GetAllCurrencyPairsRequest)(nil), // 0: connect.oracle.v2.GetAllCurrencyPairsRequest + (*GetAllCurrencyPairsResponse)(nil), // 1: connect.oracle.v2.GetAllCurrencyPairsResponse + (*GetPriceRequest)(nil), // 2: connect.oracle.v2.GetPriceRequest + (*GetPriceResponse)(nil), // 3: connect.oracle.v2.GetPriceResponse + (*GetPricesRequest)(nil), // 4: connect.oracle.v2.GetPricesRequest + (*GetPricesResponse)(nil), // 5: connect.oracle.v2.GetPricesResponse + (*GetCurrencyPairMappingRequest)(nil), // 6: connect.oracle.v2.GetCurrencyPairMappingRequest + (*GetCurrencyPairMappingResponse)(nil), // 7: connect.oracle.v2.GetCurrencyPairMappingResponse + nil, // 8: connect.oracle.v2.GetCurrencyPairMappingResponse.CurrencyPairMappingEntry + (*v2.CurrencyPair)(nil), // 9: connect.types.v2.CurrencyPair + (*QuotePrice)(nil), // 10: connect.oracle.v2.QuotePrice +} +var file_connect_oracle_v2_query_proto_depIdxs = []int32{ + 9, // 0: connect.oracle.v2.GetAllCurrencyPairsResponse.currency_pairs:type_name -> connect.types.v2.CurrencyPair + 10, // 1: connect.oracle.v2.GetPriceResponse.price:type_name -> connect.oracle.v2.QuotePrice + 3, // 2: connect.oracle.v2.GetPricesResponse.prices:type_name -> connect.oracle.v2.GetPriceResponse + 8, // 3: connect.oracle.v2.GetCurrencyPairMappingResponse.currency_pair_mapping:type_name -> connect.oracle.v2.GetCurrencyPairMappingResponse.CurrencyPairMappingEntry + 9, // 4: connect.oracle.v2.GetCurrencyPairMappingResponse.CurrencyPairMappingEntry.value:type_name -> connect.types.v2.CurrencyPair + 0, // 5: connect.oracle.v2.Query.GetAllCurrencyPairs:input_type -> connect.oracle.v2.GetAllCurrencyPairsRequest + 2, // 6: connect.oracle.v2.Query.GetPrice:input_type -> connect.oracle.v2.GetPriceRequest + 4, // 7: connect.oracle.v2.Query.GetPrices:input_type -> connect.oracle.v2.GetPricesRequest + 6, // 8: connect.oracle.v2.Query.GetCurrencyPairMapping:input_type -> connect.oracle.v2.GetCurrencyPairMappingRequest + 1, // 9: connect.oracle.v2.Query.GetAllCurrencyPairs:output_type -> connect.oracle.v2.GetAllCurrencyPairsResponse + 3, // 10: connect.oracle.v2.Query.GetPrice:output_type -> connect.oracle.v2.GetPriceResponse + 5, // 11: connect.oracle.v2.Query.GetPrices:output_type -> connect.oracle.v2.GetPricesResponse + 7, // 12: connect.oracle.v2.Query.GetCurrencyPairMapping:output_type -> connect.oracle.v2.GetCurrencyPairMappingResponse + 9, // [9:13] is the sub-list for method output_type + 5, // [5:9] is the sub-list for method input_type + 5, // [5:5] is the sub-list for extension type_name + 5, // [5:5] is the sub-list for extension extendee + 0, // [0:5] is the sub-list for field type_name +} + +func init() { file_connect_oracle_v2_query_proto_init() } +func file_connect_oracle_v2_query_proto_init() { + if File_connect_oracle_v2_query_proto != nil { + return + } + file_connect_oracle_v2_genesis_proto_init() + if !protoimpl.UnsafeEnabled { + file_connect_oracle_v2_query_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetAllCurrencyPairsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_connect_oracle_v2_query_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetAllCurrencyPairsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_connect_oracle_v2_query_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetPriceRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_connect_oracle_v2_query_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetPriceResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_connect_oracle_v2_query_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetPricesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_connect_oracle_v2_query_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetPricesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_connect_oracle_v2_query_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetCurrencyPairMappingRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_connect_oracle_v2_query_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetCurrencyPairMappingResponse); 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_connect_oracle_v2_query_proto_rawDesc, + NumEnums: 0, + NumMessages: 9, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_connect_oracle_v2_query_proto_goTypes, + DependencyIndexes: file_connect_oracle_v2_query_proto_depIdxs, + MessageInfos: file_connect_oracle_v2_query_proto_msgTypes, + }.Build() + File_connect_oracle_v2_query_proto = out.File + file_connect_oracle_v2_query_proto_rawDesc = nil + file_connect_oracle_v2_query_proto_goTypes = nil + file_connect_oracle_v2_query_proto_depIdxs = nil +} diff --git a/api/connect/oracle/v2/query_grpc.pb.go b/api/connect/oracle/v2/query_grpc.pb.go new file mode 100644 index 000000000..a63c3588f --- /dev/null +++ b/api/connect/oracle/v2/query_grpc.pb.go @@ -0,0 +1,251 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.5.1 +// - protoc (unknown) +// source: connect/oracle/v2/query.proto + +package oraclev2 + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 + +const ( + Query_GetAllCurrencyPairs_FullMethodName = "/connect.oracle.v2.Query/GetAllCurrencyPairs" + Query_GetPrice_FullMethodName = "/connect.oracle.v2.Query/GetPrice" + Query_GetPrices_FullMethodName = "/connect.oracle.v2.Query/GetPrices" + Query_GetCurrencyPairMapping_FullMethodName = "/connect.oracle.v2.Query/GetCurrencyPairMapping" +) + +// QueryClient is the client API for Query service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +// +// Query is the query service for the x/oracle module. +type QueryClient interface { + // Get all the currency pairs the x/oracle module is tracking price-data for. + GetAllCurrencyPairs(ctx context.Context, in *GetAllCurrencyPairsRequest, opts ...grpc.CallOption) (*GetAllCurrencyPairsResponse, error) + // Given a CurrencyPair (or its identifier) return the latest QuotePrice for + // that CurrencyPair. + GetPrice(ctx context.Context, in *GetPriceRequest, opts ...grpc.CallOption) (*GetPriceResponse, error) + GetPrices(ctx context.Context, in *GetPricesRequest, opts ...grpc.CallOption) (*GetPricesResponse, error) + // Get the mapping of currency pair ID -> currency pair. This is useful for + // indexers that have access to the ID of a currency pair, but no way to get + // the underlying currency pair from it. + GetCurrencyPairMapping(ctx context.Context, in *GetCurrencyPairMappingRequest, opts ...grpc.CallOption) (*GetCurrencyPairMappingResponse, error) +} + +type queryClient struct { + cc grpc.ClientConnInterface +} + +func NewQueryClient(cc grpc.ClientConnInterface) QueryClient { + return &queryClient{cc} +} + +func (c *queryClient) GetAllCurrencyPairs(ctx context.Context, in *GetAllCurrencyPairsRequest, opts ...grpc.CallOption) (*GetAllCurrencyPairsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(GetAllCurrencyPairsResponse) + err := c.cc.Invoke(ctx, Query_GetAllCurrencyPairs_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) GetPrice(ctx context.Context, in *GetPriceRequest, opts ...grpc.CallOption) (*GetPriceResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(GetPriceResponse) + err := c.cc.Invoke(ctx, Query_GetPrice_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) GetPrices(ctx context.Context, in *GetPricesRequest, opts ...grpc.CallOption) (*GetPricesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(GetPricesResponse) + err := c.cc.Invoke(ctx, Query_GetPrices_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) GetCurrencyPairMapping(ctx context.Context, in *GetCurrencyPairMappingRequest, opts ...grpc.CallOption) (*GetCurrencyPairMappingResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(GetCurrencyPairMappingResponse) + err := c.cc.Invoke(ctx, Query_GetCurrencyPairMapping_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// QueryServer is the server API for Query service. +// All implementations must embed UnimplementedQueryServer +// for forward compatibility. +// +// Query is the query service for the x/oracle module. +type QueryServer interface { + // Get all the currency pairs the x/oracle module is tracking price-data for. + GetAllCurrencyPairs(context.Context, *GetAllCurrencyPairsRequest) (*GetAllCurrencyPairsResponse, error) + // Given a CurrencyPair (or its identifier) return the latest QuotePrice for + // that CurrencyPair. + GetPrice(context.Context, *GetPriceRequest) (*GetPriceResponse, error) + GetPrices(context.Context, *GetPricesRequest) (*GetPricesResponse, error) + // Get the mapping of currency pair ID -> currency pair. This is useful for + // indexers that have access to the ID of a currency pair, but no way to get + // the underlying currency pair from it. + GetCurrencyPairMapping(context.Context, *GetCurrencyPairMappingRequest) (*GetCurrencyPairMappingResponse, error) + mustEmbedUnimplementedQueryServer() +} + +// UnimplementedQueryServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedQueryServer struct{} + +func (UnimplementedQueryServer) GetAllCurrencyPairs(context.Context, *GetAllCurrencyPairsRequest) (*GetAllCurrencyPairsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetAllCurrencyPairs not implemented") +} +func (UnimplementedQueryServer) GetPrice(context.Context, *GetPriceRequest) (*GetPriceResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetPrice not implemented") +} +func (UnimplementedQueryServer) GetPrices(context.Context, *GetPricesRequest) (*GetPricesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetPrices not implemented") +} +func (UnimplementedQueryServer) GetCurrencyPairMapping(context.Context, *GetCurrencyPairMappingRequest) (*GetCurrencyPairMappingResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetCurrencyPairMapping not implemented") +} +func (UnimplementedQueryServer) mustEmbedUnimplementedQueryServer() {} +func (UnimplementedQueryServer) testEmbeddedByValue() {} + +// UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to QueryServer will +// result in compilation errors. +type UnsafeQueryServer interface { + mustEmbedUnimplementedQueryServer() +} + +func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer) { + // If the following call pancis, it indicates UnimplementedQueryServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&Query_ServiceDesc, srv) +} + +func _Query_GetAllCurrencyPairs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetAllCurrencyPairsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).GetAllCurrencyPairs(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_GetAllCurrencyPairs_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).GetAllCurrencyPairs(ctx, req.(*GetAllCurrencyPairsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_GetPrice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetPriceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).GetPrice(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_GetPrice_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).GetPrice(ctx, req.(*GetPriceRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_GetPrices_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetPricesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).GetPrices(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_GetPrices_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).GetPrices(ctx, req.(*GetPricesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_GetCurrencyPairMapping_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetCurrencyPairMappingRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).GetCurrencyPairMapping(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_GetCurrencyPairMapping_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).GetCurrencyPairMapping(ctx, req.(*GetCurrencyPairMappingRequest)) + } + 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: "connect.oracle.v2.Query", + HandlerType: (*QueryServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "GetAllCurrencyPairs", + Handler: _Query_GetAllCurrencyPairs_Handler, + }, + { + MethodName: "GetPrice", + Handler: _Query_GetPrice_Handler, + }, + { + MethodName: "GetPrices", + Handler: _Query_GetPrices_Handler, + }, + { + MethodName: "GetCurrencyPairMapping", + Handler: _Query_GetCurrencyPairMapping_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "connect/oracle/v2/query.proto", +} diff --git a/api/connect/oracle/v2/tx.pulsar.go b/api/connect/oracle/v2/tx.pulsar.go new file mode 100644 index 000000000..6f282ab5f --- /dev/null +++ b/api/connect/oracle/v2/tx.pulsar.go @@ -0,0 +1,2184 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package oraclev2 + +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" + v2 "github.com/skip-mev/connect/v2/api/connect/types/v2" + 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 = (*_MsgAddCurrencyPairs_2_list)(nil) + +type _MsgAddCurrencyPairs_2_list struct { + list *[]*v2.CurrencyPair +} + +func (x *_MsgAddCurrencyPairs_2_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_MsgAddCurrencyPairs_2_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_MsgAddCurrencyPairs_2_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*v2.CurrencyPair) + (*x.list)[i] = concreteValue +} + +func (x *_MsgAddCurrencyPairs_2_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*v2.CurrencyPair) + *x.list = append(*x.list, concreteValue) +} + +func (x *_MsgAddCurrencyPairs_2_list) AppendMutable() protoreflect.Value { + v := new(v2.CurrencyPair) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_MsgAddCurrencyPairs_2_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_MsgAddCurrencyPairs_2_list) NewElement() protoreflect.Value { + v := new(v2.CurrencyPair) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_MsgAddCurrencyPairs_2_list) IsValid() bool { + return x.list != nil +} + +var ( + md_MsgAddCurrencyPairs protoreflect.MessageDescriptor + fd_MsgAddCurrencyPairs_authority protoreflect.FieldDescriptor + fd_MsgAddCurrencyPairs_currency_pairs protoreflect.FieldDescriptor +) + +func init() { + file_connect_oracle_v2_tx_proto_init() + md_MsgAddCurrencyPairs = File_connect_oracle_v2_tx_proto.Messages().ByName("MsgAddCurrencyPairs") + fd_MsgAddCurrencyPairs_authority = md_MsgAddCurrencyPairs.Fields().ByName("authority") + fd_MsgAddCurrencyPairs_currency_pairs = md_MsgAddCurrencyPairs.Fields().ByName("currency_pairs") +} + +var _ protoreflect.Message = (*fastReflection_MsgAddCurrencyPairs)(nil) + +type fastReflection_MsgAddCurrencyPairs MsgAddCurrencyPairs + +func (x *MsgAddCurrencyPairs) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgAddCurrencyPairs)(x) +} + +func (x *MsgAddCurrencyPairs) slowProtoReflect() protoreflect.Message { + mi := &file_connect_oracle_v2_tx_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_MsgAddCurrencyPairs_messageType fastReflection_MsgAddCurrencyPairs_messageType +var _ protoreflect.MessageType = fastReflection_MsgAddCurrencyPairs_messageType{} + +type fastReflection_MsgAddCurrencyPairs_messageType struct{} + +func (x fastReflection_MsgAddCurrencyPairs_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgAddCurrencyPairs)(nil) +} +func (x fastReflection_MsgAddCurrencyPairs_messageType) New() protoreflect.Message { + return new(fastReflection_MsgAddCurrencyPairs) +} +func (x fastReflection_MsgAddCurrencyPairs_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgAddCurrencyPairs +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgAddCurrencyPairs) Descriptor() protoreflect.MessageDescriptor { + return md_MsgAddCurrencyPairs +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_MsgAddCurrencyPairs) Type() protoreflect.MessageType { + return _fastReflection_MsgAddCurrencyPairs_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgAddCurrencyPairs) New() protoreflect.Message { + return new(fastReflection_MsgAddCurrencyPairs) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgAddCurrencyPairs) Interface() protoreflect.ProtoMessage { + return (*MsgAddCurrencyPairs)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_MsgAddCurrencyPairs) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Authority != "" { + value := protoreflect.ValueOfString(x.Authority) + if !f(fd_MsgAddCurrencyPairs_authority, value) { + return + } + } + if len(x.CurrencyPairs) != 0 { + value := protoreflect.ValueOfList(&_MsgAddCurrencyPairs_2_list{list: &x.CurrencyPairs}) + if !f(fd_MsgAddCurrencyPairs_currency_pairs, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_MsgAddCurrencyPairs) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "connect.oracle.v2.MsgAddCurrencyPairs.authority": + return x.Authority != "" + case "connect.oracle.v2.MsgAddCurrencyPairs.currency_pairs": + return len(x.CurrencyPairs) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.MsgAddCurrencyPairs")) + } + panic(fmt.Errorf("message connect.oracle.v2.MsgAddCurrencyPairs does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgAddCurrencyPairs) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "connect.oracle.v2.MsgAddCurrencyPairs.authority": + x.Authority = "" + case "connect.oracle.v2.MsgAddCurrencyPairs.currency_pairs": + x.CurrencyPairs = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.MsgAddCurrencyPairs")) + } + panic(fmt.Errorf("message connect.oracle.v2.MsgAddCurrencyPairs does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_MsgAddCurrencyPairs) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "connect.oracle.v2.MsgAddCurrencyPairs.authority": + value := x.Authority + return protoreflect.ValueOfString(value) + case "connect.oracle.v2.MsgAddCurrencyPairs.currency_pairs": + if len(x.CurrencyPairs) == 0 { + return protoreflect.ValueOfList(&_MsgAddCurrencyPairs_2_list{}) + } + listValue := &_MsgAddCurrencyPairs_2_list{list: &x.CurrencyPairs} + return protoreflect.ValueOfList(listValue) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.MsgAddCurrencyPairs")) + } + panic(fmt.Errorf("message connect.oracle.v2.MsgAddCurrencyPairs does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgAddCurrencyPairs) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "connect.oracle.v2.MsgAddCurrencyPairs.authority": + x.Authority = value.Interface().(string) + case "connect.oracle.v2.MsgAddCurrencyPairs.currency_pairs": + lv := value.List() + clv := lv.(*_MsgAddCurrencyPairs_2_list) + x.CurrencyPairs = *clv.list + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.MsgAddCurrencyPairs")) + } + panic(fmt.Errorf("message connect.oracle.v2.MsgAddCurrencyPairs does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgAddCurrencyPairs) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "connect.oracle.v2.MsgAddCurrencyPairs.currency_pairs": + if x.CurrencyPairs == nil { + x.CurrencyPairs = []*v2.CurrencyPair{} + } + value := &_MsgAddCurrencyPairs_2_list{list: &x.CurrencyPairs} + return protoreflect.ValueOfList(value) + case "connect.oracle.v2.MsgAddCurrencyPairs.authority": + panic(fmt.Errorf("field authority of message connect.oracle.v2.MsgAddCurrencyPairs is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.MsgAddCurrencyPairs")) + } + panic(fmt.Errorf("message connect.oracle.v2.MsgAddCurrencyPairs does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_MsgAddCurrencyPairs) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "connect.oracle.v2.MsgAddCurrencyPairs.authority": + return protoreflect.ValueOfString("") + case "connect.oracle.v2.MsgAddCurrencyPairs.currency_pairs": + list := []*v2.CurrencyPair{} + return protoreflect.ValueOfList(&_MsgAddCurrencyPairs_2_list{list: &list}) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.MsgAddCurrencyPairs")) + } + panic(fmt.Errorf("message connect.oracle.v2.MsgAddCurrencyPairs does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_MsgAddCurrencyPairs) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in connect.oracle.v2.MsgAddCurrencyPairs", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_MsgAddCurrencyPairs) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgAddCurrencyPairs) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_MsgAddCurrencyPairs) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_MsgAddCurrencyPairs) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgAddCurrencyPairs) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + l = len(x.Authority) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if len(x.CurrencyPairs) > 0 { + for _, e := range x.CurrencyPairs { + 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().(*MsgAddCurrencyPairs) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]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.CurrencyPairs) > 0 { + for iNdEx := len(x.CurrencyPairs) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.CurrencyPairs[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x12 + } + } + if len(x.Authority) > 0 { + i -= len(x.Authority) + copy(dAtA[i:], x.Authority) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*MsgAddCurrencyPairs) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgAddCurrencyPairs: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgAddCurrencyPairs: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Authority = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CurrencyPairs", 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.CurrencyPairs = append(x.CurrencyPairs, &v2.CurrencyPair{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.CurrencyPairs[len(x.CurrencyPairs)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_MsgAddCurrencyPairsResponse protoreflect.MessageDescriptor +) + +func init() { + file_connect_oracle_v2_tx_proto_init() + md_MsgAddCurrencyPairsResponse = File_connect_oracle_v2_tx_proto.Messages().ByName("MsgAddCurrencyPairsResponse") +} + +var _ protoreflect.Message = (*fastReflection_MsgAddCurrencyPairsResponse)(nil) + +type fastReflection_MsgAddCurrencyPairsResponse MsgAddCurrencyPairsResponse + +func (x *MsgAddCurrencyPairsResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgAddCurrencyPairsResponse)(x) +} + +func (x *MsgAddCurrencyPairsResponse) slowProtoReflect() protoreflect.Message { + mi := &file_connect_oracle_v2_tx_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_MsgAddCurrencyPairsResponse_messageType fastReflection_MsgAddCurrencyPairsResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgAddCurrencyPairsResponse_messageType{} + +type fastReflection_MsgAddCurrencyPairsResponse_messageType struct{} + +func (x fastReflection_MsgAddCurrencyPairsResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgAddCurrencyPairsResponse)(nil) +} +func (x fastReflection_MsgAddCurrencyPairsResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgAddCurrencyPairsResponse) +} +func (x fastReflection_MsgAddCurrencyPairsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgAddCurrencyPairsResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgAddCurrencyPairsResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgAddCurrencyPairsResponse +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_MsgAddCurrencyPairsResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgAddCurrencyPairsResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgAddCurrencyPairsResponse) New() protoreflect.Message { + return new(fastReflection_MsgAddCurrencyPairsResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgAddCurrencyPairsResponse) Interface() protoreflect.ProtoMessage { + return (*MsgAddCurrencyPairsResponse)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_MsgAddCurrencyPairsResponse) 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_MsgAddCurrencyPairsResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.MsgAddCurrencyPairsResponse")) + } + panic(fmt.Errorf("message connect.oracle.v2.MsgAddCurrencyPairsResponse does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgAddCurrencyPairsResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.MsgAddCurrencyPairsResponse")) + } + panic(fmt.Errorf("message connect.oracle.v2.MsgAddCurrencyPairsResponse does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_MsgAddCurrencyPairsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.MsgAddCurrencyPairsResponse")) + } + panic(fmt.Errorf("message connect.oracle.v2.MsgAddCurrencyPairsResponse does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgAddCurrencyPairsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.MsgAddCurrencyPairsResponse")) + } + panic(fmt.Errorf("message connect.oracle.v2.MsgAddCurrencyPairsResponse does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgAddCurrencyPairsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.MsgAddCurrencyPairsResponse")) + } + panic(fmt.Errorf("message connect.oracle.v2.MsgAddCurrencyPairsResponse does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_MsgAddCurrencyPairsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.MsgAddCurrencyPairsResponse")) + } + panic(fmt.Errorf("message connect.oracle.v2.MsgAddCurrencyPairsResponse does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_MsgAddCurrencyPairsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in connect.oracle.v2.MsgAddCurrencyPairsResponse", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_MsgAddCurrencyPairsResponse) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgAddCurrencyPairsResponse) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_MsgAddCurrencyPairsResponse) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_MsgAddCurrencyPairsResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgAddCurrencyPairsResponse) + 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().(*MsgAddCurrencyPairsResponse) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]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().(*MsgAddCurrencyPairsResponse) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgAddCurrencyPairsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgAddCurrencyPairsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var _ protoreflect.List = (*_MsgRemoveCurrencyPairs_2_list)(nil) + +type _MsgRemoveCurrencyPairs_2_list struct { + list *[]string +} + +func (x *_MsgRemoveCurrencyPairs_2_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_MsgRemoveCurrencyPairs_2_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfString((*x.list)[i]) +} + +func (x *_MsgRemoveCurrencyPairs_2_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.String() + concreteValue := valueUnwrapped + (*x.list)[i] = concreteValue +} + +func (x *_MsgRemoveCurrencyPairs_2_list) Append(value protoreflect.Value) { + valueUnwrapped := value.String() + concreteValue := valueUnwrapped + *x.list = append(*x.list, concreteValue) +} + +func (x *_MsgRemoveCurrencyPairs_2_list) AppendMutable() protoreflect.Value { + panic(fmt.Errorf("AppendMutable can not be called on message MsgRemoveCurrencyPairs at list field CurrencyPairIds as it is not of Message kind")) +} + +func (x *_MsgRemoveCurrencyPairs_2_list) Truncate(n int) { + *x.list = (*x.list)[:n] +} + +func (x *_MsgRemoveCurrencyPairs_2_list) NewElement() protoreflect.Value { + v := "" + return protoreflect.ValueOfString(v) +} + +func (x *_MsgRemoveCurrencyPairs_2_list) IsValid() bool { + return x.list != nil +} + +var ( + md_MsgRemoveCurrencyPairs protoreflect.MessageDescriptor + fd_MsgRemoveCurrencyPairs_authority protoreflect.FieldDescriptor + fd_MsgRemoveCurrencyPairs_currency_pair_ids protoreflect.FieldDescriptor +) + +func init() { + file_connect_oracle_v2_tx_proto_init() + md_MsgRemoveCurrencyPairs = File_connect_oracle_v2_tx_proto.Messages().ByName("MsgRemoveCurrencyPairs") + fd_MsgRemoveCurrencyPairs_authority = md_MsgRemoveCurrencyPairs.Fields().ByName("authority") + fd_MsgRemoveCurrencyPairs_currency_pair_ids = md_MsgRemoveCurrencyPairs.Fields().ByName("currency_pair_ids") +} + +var _ protoreflect.Message = (*fastReflection_MsgRemoveCurrencyPairs)(nil) + +type fastReflection_MsgRemoveCurrencyPairs MsgRemoveCurrencyPairs + +func (x *MsgRemoveCurrencyPairs) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgRemoveCurrencyPairs)(x) +} + +func (x *MsgRemoveCurrencyPairs) slowProtoReflect() protoreflect.Message { + mi := &file_connect_oracle_v2_tx_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_MsgRemoveCurrencyPairs_messageType fastReflection_MsgRemoveCurrencyPairs_messageType +var _ protoreflect.MessageType = fastReflection_MsgRemoveCurrencyPairs_messageType{} + +type fastReflection_MsgRemoveCurrencyPairs_messageType struct{} + +func (x fastReflection_MsgRemoveCurrencyPairs_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgRemoveCurrencyPairs)(nil) +} +func (x fastReflection_MsgRemoveCurrencyPairs_messageType) New() protoreflect.Message { + return new(fastReflection_MsgRemoveCurrencyPairs) +} +func (x fastReflection_MsgRemoveCurrencyPairs_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgRemoveCurrencyPairs +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgRemoveCurrencyPairs) Descriptor() protoreflect.MessageDescriptor { + return md_MsgRemoveCurrencyPairs +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_MsgRemoveCurrencyPairs) Type() protoreflect.MessageType { + return _fastReflection_MsgRemoveCurrencyPairs_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgRemoveCurrencyPairs) New() protoreflect.Message { + return new(fastReflection_MsgRemoveCurrencyPairs) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgRemoveCurrencyPairs) Interface() protoreflect.ProtoMessage { + return (*MsgRemoveCurrencyPairs)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_MsgRemoveCurrencyPairs) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Authority != "" { + value := protoreflect.ValueOfString(x.Authority) + if !f(fd_MsgRemoveCurrencyPairs_authority, value) { + return + } + } + if len(x.CurrencyPairIds) != 0 { + value := protoreflect.ValueOfList(&_MsgRemoveCurrencyPairs_2_list{list: &x.CurrencyPairIds}) + if !f(fd_MsgRemoveCurrencyPairs_currency_pair_ids, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_MsgRemoveCurrencyPairs) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "connect.oracle.v2.MsgRemoveCurrencyPairs.authority": + return x.Authority != "" + case "connect.oracle.v2.MsgRemoveCurrencyPairs.currency_pair_ids": + return len(x.CurrencyPairIds) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.MsgRemoveCurrencyPairs")) + } + panic(fmt.Errorf("message connect.oracle.v2.MsgRemoveCurrencyPairs does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgRemoveCurrencyPairs) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "connect.oracle.v2.MsgRemoveCurrencyPairs.authority": + x.Authority = "" + case "connect.oracle.v2.MsgRemoveCurrencyPairs.currency_pair_ids": + x.CurrencyPairIds = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.MsgRemoveCurrencyPairs")) + } + panic(fmt.Errorf("message connect.oracle.v2.MsgRemoveCurrencyPairs does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_MsgRemoveCurrencyPairs) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "connect.oracle.v2.MsgRemoveCurrencyPairs.authority": + value := x.Authority + return protoreflect.ValueOfString(value) + case "connect.oracle.v2.MsgRemoveCurrencyPairs.currency_pair_ids": + if len(x.CurrencyPairIds) == 0 { + return protoreflect.ValueOfList(&_MsgRemoveCurrencyPairs_2_list{}) + } + listValue := &_MsgRemoveCurrencyPairs_2_list{list: &x.CurrencyPairIds} + return protoreflect.ValueOfList(listValue) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.MsgRemoveCurrencyPairs")) + } + panic(fmt.Errorf("message connect.oracle.v2.MsgRemoveCurrencyPairs does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgRemoveCurrencyPairs) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "connect.oracle.v2.MsgRemoveCurrencyPairs.authority": + x.Authority = value.Interface().(string) + case "connect.oracle.v2.MsgRemoveCurrencyPairs.currency_pair_ids": + lv := value.List() + clv := lv.(*_MsgRemoveCurrencyPairs_2_list) + x.CurrencyPairIds = *clv.list + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.MsgRemoveCurrencyPairs")) + } + panic(fmt.Errorf("message connect.oracle.v2.MsgRemoveCurrencyPairs does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgRemoveCurrencyPairs) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "connect.oracle.v2.MsgRemoveCurrencyPairs.currency_pair_ids": + if x.CurrencyPairIds == nil { + x.CurrencyPairIds = []string{} + } + value := &_MsgRemoveCurrencyPairs_2_list{list: &x.CurrencyPairIds} + return protoreflect.ValueOfList(value) + case "connect.oracle.v2.MsgRemoveCurrencyPairs.authority": + panic(fmt.Errorf("field authority of message connect.oracle.v2.MsgRemoveCurrencyPairs is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.MsgRemoveCurrencyPairs")) + } + panic(fmt.Errorf("message connect.oracle.v2.MsgRemoveCurrencyPairs does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_MsgRemoveCurrencyPairs) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "connect.oracle.v2.MsgRemoveCurrencyPairs.authority": + return protoreflect.ValueOfString("") + case "connect.oracle.v2.MsgRemoveCurrencyPairs.currency_pair_ids": + list := []string{} + return protoreflect.ValueOfList(&_MsgRemoveCurrencyPairs_2_list{list: &list}) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.MsgRemoveCurrencyPairs")) + } + panic(fmt.Errorf("message connect.oracle.v2.MsgRemoveCurrencyPairs does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_MsgRemoveCurrencyPairs) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in connect.oracle.v2.MsgRemoveCurrencyPairs", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_MsgRemoveCurrencyPairs) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgRemoveCurrencyPairs) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_MsgRemoveCurrencyPairs) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_MsgRemoveCurrencyPairs) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgRemoveCurrencyPairs) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + l = len(x.Authority) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if len(x.CurrencyPairIds) > 0 { + for _, s := range x.CurrencyPairIds { + l = len(s) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*MsgRemoveCurrencyPairs) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]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.CurrencyPairIds) > 0 { + for iNdEx := len(x.CurrencyPairIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(x.CurrencyPairIds[iNdEx]) + copy(dAtA[i:], x.CurrencyPairIds[iNdEx]) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.CurrencyPairIds[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if len(x.Authority) > 0 { + i -= len(x.Authority) + copy(dAtA[i:], x.Authority) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*MsgRemoveCurrencyPairs) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRemoveCurrencyPairs: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRemoveCurrencyPairs: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Authority = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CurrencyPairIds", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.CurrencyPairIds = append(x.CurrencyPairIds, 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_MsgRemoveCurrencyPairsResponse protoreflect.MessageDescriptor +) + +func init() { + file_connect_oracle_v2_tx_proto_init() + md_MsgRemoveCurrencyPairsResponse = File_connect_oracle_v2_tx_proto.Messages().ByName("MsgRemoveCurrencyPairsResponse") +} + +var _ protoreflect.Message = (*fastReflection_MsgRemoveCurrencyPairsResponse)(nil) + +type fastReflection_MsgRemoveCurrencyPairsResponse MsgRemoveCurrencyPairsResponse + +func (x *MsgRemoveCurrencyPairsResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgRemoveCurrencyPairsResponse)(x) +} + +func (x *MsgRemoveCurrencyPairsResponse) slowProtoReflect() protoreflect.Message { + mi := &file_connect_oracle_v2_tx_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_MsgRemoveCurrencyPairsResponse_messageType fastReflection_MsgRemoveCurrencyPairsResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgRemoveCurrencyPairsResponse_messageType{} + +type fastReflection_MsgRemoveCurrencyPairsResponse_messageType struct{} + +func (x fastReflection_MsgRemoveCurrencyPairsResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgRemoveCurrencyPairsResponse)(nil) +} +func (x fastReflection_MsgRemoveCurrencyPairsResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgRemoveCurrencyPairsResponse) +} +func (x fastReflection_MsgRemoveCurrencyPairsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgRemoveCurrencyPairsResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgRemoveCurrencyPairsResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgRemoveCurrencyPairsResponse +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_MsgRemoveCurrencyPairsResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgRemoveCurrencyPairsResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgRemoveCurrencyPairsResponse) New() protoreflect.Message { + return new(fastReflection_MsgRemoveCurrencyPairsResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgRemoveCurrencyPairsResponse) Interface() protoreflect.ProtoMessage { + return (*MsgRemoveCurrencyPairsResponse)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_MsgRemoveCurrencyPairsResponse) 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_MsgRemoveCurrencyPairsResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.MsgRemoveCurrencyPairsResponse")) + } + panic(fmt.Errorf("message connect.oracle.v2.MsgRemoveCurrencyPairsResponse does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgRemoveCurrencyPairsResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.MsgRemoveCurrencyPairsResponse")) + } + panic(fmt.Errorf("message connect.oracle.v2.MsgRemoveCurrencyPairsResponse does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_MsgRemoveCurrencyPairsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.MsgRemoveCurrencyPairsResponse")) + } + panic(fmt.Errorf("message connect.oracle.v2.MsgRemoveCurrencyPairsResponse does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgRemoveCurrencyPairsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.MsgRemoveCurrencyPairsResponse")) + } + panic(fmt.Errorf("message connect.oracle.v2.MsgRemoveCurrencyPairsResponse does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgRemoveCurrencyPairsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.MsgRemoveCurrencyPairsResponse")) + } + panic(fmt.Errorf("message connect.oracle.v2.MsgRemoveCurrencyPairsResponse does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_MsgRemoveCurrencyPairsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.oracle.v2.MsgRemoveCurrencyPairsResponse")) + } + panic(fmt.Errorf("message connect.oracle.v2.MsgRemoveCurrencyPairsResponse does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_MsgRemoveCurrencyPairsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in connect.oracle.v2.MsgRemoveCurrencyPairsResponse", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_MsgRemoveCurrencyPairsResponse) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgRemoveCurrencyPairsResponse) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_MsgRemoveCurrencyPairsResponse) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_MsgRemoveCurrencyPairsResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgRemoveCurrencyPairsResponse) + 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().(*MsgRemoveCurrencyPairsResponse) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]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().(*MsgRemoveCurrencyPairsResponse) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRemoveCurrencyPairsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRemoveCurrencyPairsResponse: 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: connect/oracle/v2/tx.proto + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// Given an authority + a set of CurrencyPairs, the x/oracle module will +// check to see that the authority has permissions to update the set of +// CurrencyPairs tracked in the oracle, and add the given CurrencyPairs to be +// tracked in each VoteExtension +type MsgAddCurrencyPairs struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // authority is the address of the account that is authorized to update the + // x/oracle's CurrencyPairs + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + // set of CurrencyPairs to be added to the module (+ prices if they are to be + // set) + CurrencyPairs []*v2.CurrencyPair `protobuf:"bytes,2,rep,name=currency_pairs,json=currencyPairs,proto3" json:"currency_pairs,omitempty"` +} + +func (x *MsgAddCurrencyPairs) Reset() { + *x = MsgAddCurrencyPairs{} + if protoimpl.UnsafeEnabled { + mi := &file_connect_oracle_v2_tx_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgAddCurrencyPairs) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgAddCurrencyPairs) ProtoMessage() {} + +// Deprecated: Use MsgAddCurrencyPairs.ProtoReflect.Descriptor instead. +func (*MsgAddCurrencyPairs) Descriptor() ([]byte, []int) { + return file_connect_oracle_v2_tx_proto_rawDescGZIP(), []int{0} +} + +func (x *MsgAddCurrencyPairs) GetAuthority() string { + if x != nil { + return x.Authority + } + return "" +} + +func (x *MsgAddCurrencyPairs) GetCurrencyPairs() []*v2.CurrencyPair { + if x != nil { + return x.CurrencyPairs + } + return nil +} + +type MsgAddCurrencyPairsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *MsgAddCurrencyPairsResponse) Reset() { + *x = MsgAddCurrencyPairsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_connect_oracle_v2_tx_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgAddCurrencyPairsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgAddCurrencyPairsResponse) ProtoMessage() {} + +// Deprecated: Use MsgAddCurrencyPairsResponse.ProtoReflect.Descriptor instead. +func (*MsgAddCurrencyPairsResponse) Descriptor() ([]byte, []int) { + return file_connect_oracle_v2_tx_proto_rawDescGZIP(), []int{1} +} + +// Given an authority + a set of CurrencyPairIDs, the x/oracle module's message +// service will remove all of the CurrencyPairs identified by each +// CurrencyPairID in the request from state. Notice, if a given currency-pair +// does not exist in state, the module ignores that currency-pair and continues +// removing the rest. +type MsgRemoveCurrencyPairs struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // authority is the address of the account that is authorized to update the + // x/oracle's CurrencyPairs + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + // currency_pair_ids are the stringified representation of a currency-pairs + // (base/quote) to be removed from the module's state + CurrencyPairIds []string `protobuf:"bytes,2,rep,name=currency_pair_ids,json=currencyPairIds,proto3" json:"currency_pair_ids,omitempty"` +} + +func (x *MsgRemoveCurrencyPairs) Reset() { + *x = MsgRemoveCurrencyPairs{} + if protoimpl.UnsafeEnabled { + mi := &file_connect_oracle_v2_tx_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgRemoveCurrencyPairs) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgRemoveCurrencyPairs) ProtoMessage() {} + +// Deprecated: Use MsgRemoveCurrencyPairs.ProtoReflect.Descriptor instead. +func (*MsgRemoveCurrencyPairs) Descriptor() ([]byte, []int) { + return file_connect_oracle_v2_tx_proto_rawDescGZIP(), []int{2} +} + +func (x *MsgRemoveCurrencyPairs) GetAuthority() string { + if x != nil { + return x.Authority + } + return "" +} + +func (x *MsgRemoveCurrencyPairs) GetCurrencyPairIds() []string { + if x != nil { + return x.CurrencyPairIds + } + return nil +} + +type MsgRemoveCurrencyPairsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *MsgRemoveCurrencyPairsResponse) Reset() { + *x = MsgRemoveCurrencyPairsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_connect_oracle_v2_tx_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgRemoveCurrencyPairsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgRemoveCurrencyPairsResponse) ProtoMessage() {} + +// Deprecated: Use MsgRemoveCurrencyPairsResponse.ProtoReflect.Descriptor instead. +func (*MsgRemoveCurrencyPairsResponse) Descriptor() ([]byte, []int) { + return file_connect_oracle_v2_tx_proto_rawDescGZIP(), []int{3} +} + +var File_connect_oracle_v2_tx_proto protoreflect.FileDescriptor + +var file_connect_oracle_v2_tx_proto_rawDesc = []byte{ + 0x0a, 0x1a, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2f, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, + 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x78, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x11, 0x63, 0x6f, + 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x2e, 0x76, 0x32, 0x1a, + 0x1f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2f, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x2f, + 0x76, 0x32, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 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, 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, 0x11, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, + 0x6f, 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, 0x24, 0x63, + 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x32, 0x2f, + 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x5f, 0x70, 0x61, 0x69, 0x72, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x22, 0xd7, 0x01, 0x0a, 0x13, 0x4d, 0x73, 0x67, 0x41, 0x64, 0x64, 0x43, 0x75, + 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x50, 0x61, 0x69, 0x72, 0x73, 0x12, 0x36, 0x0a, 0x09, 0x61, + 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, + 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, + 0x69, 0x74, 0x79, 0x12, 0x4b, 0x0a, 0x0e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x5f, + 0x70, 0x61, 0x69, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x63, 0x6f, + 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x43, + 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x50, 0x61, 0x69, 0x72, 0x42, 0x04, 0xc8, 0xde, 0x1f, + 0x00, 0x52, 0x0d, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x50, 0x61, 0x69, 0x72, 0x73, + 0x3a, 0x3b, 0xe8, 0xa0, 0x1f, 0x00, 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, + 0x72, 0x69, 0x74, 0x79, 0x8a, 0xe7, 0xb0, 0x2a, 0x24, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, + 0x2f, 0x78, 0x2f, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x2f, 0x4d, 0x73, 0x67, 0x41, 0x64, 0x64, + 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x50, 0x61, 0x69, 0x72, 0x73, 0x22, 0x1d, 0x0a, + 0x1b, 0x4d, 0x73, 0x67, 0x41, 0x64, 0x64, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x50, + 0x61, 0x69, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xb9, 0x01, 0x0a, + 0x16, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, + 0x63, 0x79, 0x50, 0x61, 0x69, 0x72, 0x73, 0x12, 0x36, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, + 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, + 0x72, 0x69, 0x6e, 0x67, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, + 0x2a, 0x0a, 0x11, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x5f, 0x70, 0x61, 0x69, 0x72, + 0x5f, 0x69, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0f, 0x63, 0x75, 0x72, 0x72, + 0x65, 0x6e, 0x63, 0x79, 0x50, 0x61, 0x69, 0x72, 0x49, 0x64, 0x73, 0x3a, 0x3b, 0xe8, 0xa0, 0x1f, + 0x00, 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x8a, + 0xe7, 0xb0, 0x2a, 0x24, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2f, 0x78, 0x2f, 0x6f, 0x72, + 0x61, 0x63, 0x6c, 0x65, 0x2f, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x43, 0x75, 0x72, 0x72, 0x65, + 0x6e, 0x63, 0x79, 0x50, 0x61, 0x69, 0x72, 0x73, 0x22, 0x20, 0x0a, 0x1e, 0x4d, 0x73, 0x67, 0x52, + 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x50, 0x61, 0x69, + 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xed, 0x01, 0x0a, 0x03, 0x4d, + 0x73, 0x67, 0x12, 0x6a, 0x0a, 0x10, 0x41, 0x64, 0x64, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, + 0x79, 0x50, 0x61, 0x69, 0x72, 0x73, 0x12, 0x26, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, + 0x2e, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x41, 0x64, + 0x64, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x50, 0x61, 0x69, 0x72, 0x73, 0x1a, 0x2e, + 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x2e, + 0x76, 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x41, 0x64, 0x64, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, + 0x79, 0x50, 0x61, 0x69, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x73, + 0x0a, 0x13, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, + 0x50, 0x61, 0x69, 0x72, 0x73, 0x12, 0x29, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, + 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x6d, + 0x6f, 0x76, 0x65, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x50, 0x61, 0x69, 0x72, 0x73, + 0x1a, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x6f, 0x72, 0x61, 0x63, 0x6c, + 0x65, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x43, 0x75, + 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x50, 0x61, 0x69, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x1a, 0x05, 0x80, 0xe7, 0xb0, 0x2a, 0x01, 0x42, 0xb3, 0x01, 0x0a, 0x15, 0x63, + 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x6f, 0x72, 0x61, 0x63, 0x6c, + 0x65, 0x2e, 0x76, 0x32, 0x42, 0x07, 0x54, 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, + 0x2b, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, + 0x69, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2f, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, + 0x2f, 0x76, 0x32, 0x3b, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x76, 0x32, 0xa2, 0x02, 0x03, 0x43, + 0x4f, 0x58, 0xaa, 0x02, 0x11, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x4f, 0x72, 0x61, + 0x63, 0x6c, 0x65, 0x2e, 0x56, 0x32, 0xca, 0x02, 0x11, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, + 0x5c, 0x4f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x5c, 0x56, 0x32, 0xe2, 0x02, 0x1d, 0x43, 0x6f, 0x6e, + 0x6e, 0x65, 0x63, 0x74, 0x5c, 0x4f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x5c, 0x56, 0x32, 0x5c, 0x47, + 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x13, 0x43, 0x6f, 0x6e, + 0x6e, 0x65, 0x63, 0x74, 0x3a, 0x3a, 0x4f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x3a, 0x3a, 0x56, 0x32, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_connect_oracle_v2_tx_proto_rawDescOnce sync.Once + file_connect_oracle_v2_tx_proto_rawDescData = file_connect_oracle_v2_tx_proto_rawDesc +) + +func file_connect_oracle_v2_tx_proto_rawDescGZIP() []byte { + file_connect_oracle_v2_tx_proto_rawDescOnce.Do(func() { + file_connect_oracle_v2_tx_proto_rawDescData = protoimpl.X.CompressGZIP(file_connect_oracle_v2_tx_proto_rawDescData) + }) + return file_connect_oracle_v2_tx_proto_rawDescData +} + +var file_connect_oracle_v2_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_connect_oracle_v2_tx_proto_goTypes = []interface{}{ + (*MsgAddCurrencyPairs)(nil), // 0: connect.oracle.v2.MsgAddCurrencyPairs + (*MsgAddCurrencyPairsResponse)(nil), // 1: connect.oracle.v2.MsgAddCurrencyPairsResponse + (*MsgRemoveCurrencyPairs)(nil), // 2: connect.oracle.v2.MsgRemoveCurrencyPairs + (*MsgRemoveCurrencyPairsResponse)(nil), // 3: connect.oracle.v2.MsgRemoveCurrencyPairsResponse + (*v2.CurrencyPair)(nil), // 4: connect.types.v2.CurrencyPair +} +var file_connect_oracle_v2_tx_proto_depIdxs = []int32{ + 4, // 0: connect.oracle.v2.MsgAddCurrencyPairs.currency_pairs:type_name -> connect.types.v2.CurrencyPair + 0, // 1: connect.oracle.v2.Msg.AddCurrencyPairs:input_type -> connect.oracle.v2.MsgAddCurrencyPairs + 2, // 2: connect.oracle.v2.Msg.RemoveCurrencyPairs:input_type -> connect.oracle.v2.MsgRemoveCurrencyPairs + 1, // 3: connect.oracle.v2.Msg.AddCurrencyPairs:output_type -> connect.oracle.v2.MsgAddCurrencyPairsResponse + 3, // 4: connect.oracle.v2.Msg.RemoveCurrencyPairs:output_type -> connect.oracle.v2.MsgRemoveCurrencyPairsResponse + 3, // [3:5] is the sub-list for method output_type + 1, // [1:3] is the sub-list for method input_type + 1, // [1:1] is the sub-list for extension type_name + 1, // [1:1] is the sub-list for extension extendee + 0, // [0:1] is the sub-list for field type_name +} + +func init() { file_connect_oracle_v2_tx_proto_init() } +func file_connect_oracle_v2_tx_proto_init() { + if File_connect_oracle_v2_tx_proto != nil { + return + } + file_connect_oracle_v2_genesis_proto_init() + if !protoimpl.UnsafeEnabled { + file_connect_oracle_v2_tx_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgAddCurrencyPairs); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_connect_oracle_v2_tx_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgAddCurrencyPairsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_connect_oracle_v2_tx_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgRemoveCurrencyPairs); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_connect_oracle_v2_tx_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgRemoveCurrencyPairsResponse); 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_connect_oracle_v2_tx_proto_rawDesc, + NumEnums: 0, + NumMessages: 4, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_connect_oracle_v2_tx_proto_goTypes, + DependencyIndexes: file_connect_oracle_v2_tx_proto_depIdxs, + MessageInfos: file_connect_oracle_v2_tx_proto_msgTypes, + }.Build() + File_connect_oracle_v2_tx_proto = out.File + file_connect_oracle_v2_tx_proto_rawDesc = nil + file_connect_oracle_v2_tx_proto_goTypes = nil + file_connect_oracle_v2_tx_proto_depIdxs = nil +} diff --git a/api/connect/oracle/v2/tx_grpc.pb.go b/api/connect/oracle/v2/tx_grpc.pb.go new file mode 100644 index 000000000..445c6a97c --- /dev/null +++ b/api/connect/oracle/v2/tx_grpc.pb.go @@ -0,0 +1,175 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.5.1 +// - protoc (unknown) +// source: connect/oracle/v2/tx.proto + +package oraclev2 + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 + +const ( + Msg_AddCurrencyPairs_FullMethodName = "/connect.oracle.v2.Msg/AddCurrencyPairs" + Msg_RemoveCurrencyPairs_FullMethodName = "/connect.oracle.v2.Msg/RemoveCurrencyPairs" +) + +// MsgClient is the client API for Msg service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +// +// Msg is the message service for the x/oracle module. +type MsgClient interface { + // AddCurrencyPairs will be used only by governance to update the set of + // available CurrencyPairs. Given a set of CurrencyPair objects, update + // the available currency pairs in the module . + AddCurrencyPairs(ctx context.Context, in *MsgAddCurrencyPairs, opts ...grpc.CallOption) (*MsgAddCurrencyPairsResponse, error) + // RemoveCurrencyPairs will be used explicitly by governance to remove the + // given set of currency-pairs from the module's state. Thus these + // CurrencyPairs will no longer have price-data available from this module. + RemoveCurrencyPairs(ctx context.Context, in *MsgRemoveCurrencyPairs, opts ...grpc.CallOption) (*MsgRemoveCurrencyPairsResponse, error) +} + +type msgClient struct { + cc grpc.ClientConnInterface +} + +func NewMsgClient(cc grpc.ClientConnInterface) MsgClient { + return &msgClient{cc} +} + +func (c *msgClient) AddCurrencyPairs(ctx context.Context, in *MsgAddCurrencyPairs, opts ...grpc.CallOption) (*MsgAddCurrencyPairsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(MsgAddCurrencyPairsResponse) + err := c.cc.Invoke(ctx, Msg_AddCurrencyPairs_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) RemoveCurrencyPairs(ctx context.Context, in *MsgRemoveCurrencyPairs, opts ...grpc.CallOption) (*MsgRemoveCurrencyPairsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(MsgRemoveCurrencyPairsResponse) + err := c.cc.Invoke(ctx, Msg_RemoveCurrencyPairs_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// MsgServer is the server API for Msg service. +// All implementations must embed UnimplementedMsgServer +// for forward compatibility. +// +// Msg is the message service for the x/oracle module. +type MsgServer interface { + // AddCurrencyPairs will be used only by governance to update the set of + // available CurrencyPairs. Given a set of CurrencyPair objects, update + // the available currency pairs in the module . + AddCurrencyPairs(context.Context, *MsgAddCurrencyPairs) (*MsgAddCurrencyPairsResponse, error) + // RemoveCurrencyPairs will be used explicitly by governance to remove the + // given set of currency-pairs from the module's state. Thus these + // CurrencyPairs will no longer have price-data available from this module. + RemoveCurrencyPairs(context.Context, *MsgRemoveCurrencyPairs) (*MsgRemoveCurrencyPairsResponse, error) + mustEmbedUnimplementedMsgServer() +} + +// UnimplementedMsgServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedMsgServer struct{} + +func (UnimplementedMsgServer) AddCurrencyPairs(context.Context, *MsgAddCurrencyPairs) (*MsgAddCurrencyPairsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AddCurrencyPairs not implemented") +} +func (UnimplementedMsgServer) RemoveCurrencyPairs(context.Context, *MsgRemoveCurrencyPairs) (*MsgRemoveCurrencyPairsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RemoveCurrencyPairs not implemented") +} +func (UnimplementedMsgServer) mustEmbedUnimplementedMsgServer() {} +func (UnimplementedMsgServer) testEmbeddedByValue() {} + +// UnsafeMsgServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to MsgServer will +// result in compilation errors. +type UnsafeMsgServer interface { + mustEmbedUnimplementedMsgServer() +} + +func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer) { + // If the following call pancis, it indicates UnimplementedMsgServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&Msg_ServiceDesc, srv) +} + +func _Msg_AddCurrencyPairs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgAddCurrencyPairs) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).AddCurrencyPairs(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_AddCurrencyPairs_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).AddCurrencyPairs(ctx, req.(*MsgAddCurrencyPairs)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_RemoveCurrencyPairs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgRemoveCurrencyPairs) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).RemoveCurrencyPairs(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_RemoveCurrencyPairs_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).RemoveCurrencyPairs(ctx, req.(*MsgRemoveCurrencyPairs)) + } + 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: "connect.oracle.v2.Msg", + HandlerType: (*MsgServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "AddCurrencyPairs", + Handler: _Msg_AddCurrencyPairs_Handler, + }, + { + MethodName: "RemoveCurrencyPairs", + Handler: _Msg_RemoveCurrencyPairs_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "connect/oracle/v2/tx.proto", +} diff --git a/api/connect/types/v2/currency_pair.pulsar.go b/api/connect/types/v2/currency_pair.pulsar.go new file mode 100644 index 000000000..5bcccb756 --- /dev/null +++ b/api/connect/types/v2/currency_pair.pulsar.go @@ -0,0 +1,646 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package typesv2 + +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_CurrencyPair protoreflect.MessageDescriptor + fd_CurrencyPair_Base protoreflect.FieldDescriptor + fd_CurrencyPair_Quote protoreflect.FieldDescriptor +) + +func init() { + file_connect_types_v2_currency_pair_proto_init() + md_CurrencyPair = File_connect_types_v2_currency_pair_proto.Messages().ByName("CurrencyPair") + fd_CurrencyPair_Base = md_CurrencyPair.Fields().ByName("Base") + fd_CurrencyPair_Quote = md_CurrencyPair.Fields().ByName("Quote") +} + +var _ protoreflect.Message = (*fastReflection_CurrencyPair)(nil) + +type fastReflection_CurrencyPair CurrencyPair + +func (x *CurrencyPair) ProtoReflect() protoreflect.Message { + return (*fastReflection_CurrencyPair)(x) +} + +func (x *CurrencyPair) slowProtoReflect() protoreflect.Message { + mi := &file_connect_types_v2_currency_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_CurrencyPair_messageType fastReflection_CurrencyPair_messageType +var _ protoreflect.MessageType = fastReflection_CurrencyPair_messageType{} + +type fastReflection_CurrencyPair_messageType struct{} + +func (x fastReflection_CurrencyPair_messageType) Zero() protoreflect.Message { + return (*fastReflection_CurrencyPair)(nil) +} +func (x fastReflection_CurrencyPair_messageType) New() protoreflect.Message { + return new(fastReflection_CurrencyPair) +} +func (x fastReflection_CurrencyPair_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_CurrencyPair +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_CurrencyPair) Descriptor() protoreflect.MessageDescriptor { + return md_CurrencyPair +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_CurrencyPair) Type() protoreflect.MessageType { + return _fastReflection_CurrencyPair_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_CurrencyPair) New() protoreflect.Message { + return new(fastReflection_CurrencyPair) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_CurrencyPair) Interface() protoreflect.ProtoMessage { + return (*CurrencyPair)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_CurrencyPair) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Base != "" { + value := protoreflect.ValueOfString(x.Base) + if !f(fd_CurrencyPair_Base, value) { + return + } + } + if x.Quote != "" { + value := protoreflect.ValueOfString(x.Quote) + if !f(fd_CurrencyPair_Quote, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_CurrencyPair) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "connect.types.v2.CurrencyPair.Base": + return x.Base != "" + case "connect.types.v2.CurrencyPair.Quote": + return x.Quote != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.types.v2.CurrencyPair")) + } + panic(fmt.Errorf("message connect.types.v2.CurrencyPair does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_CurrencyPair) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "connect.types.v2.CurrencyPair.Base": + x.Base = "" + case "connect.types.v2.CurrencyPair.Quote": + x.Quote = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.types.v2.CurrencyPair")) + } + panic(fmt.Errorf("message connect.types.v2.CurrencyPair does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_CurrencyPair) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "connect.types.v2.CurrencyPair.Base": + value := x.Base + return protoreflect.ValueOfString(value) + case "connect.types.v2.CurrencyPair.Quote": + value := x.Quote + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.types.v2.CurrencyPair")) + } + panic(fmt.Errorf("message connect.types.v2.CurrencyPair does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_CurrencyPair) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "connect.types.v2.CurrencyPair.Base": + x.Base = value.Interface().(string) + case "connect.types.v2.CurrencyPair.Quote": + x.Quote = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.types.v2.CurrencyPair")) + } + panic(fmt.Errorf("message connect.types.v2.CurrencyPair does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_CurrencyPair) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "connect.types.v2.CurrencyPair.Base": + panic(fmt.Errorf("field Base of message connect.types.v2.CurrencyPair is not mutable")) + case "connect.types.v2.CurrencyPair.Quote": + panic(fmt.Errorf("field Quote of message connect.types.v2.CurrencyPair is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.types.v2.CurrencyPair")) + } + panic(fmt.Errorf("message connect.types.v2.CurrencyPair does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_CurrencyPair) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "connect.types.v2.CurrencyPair.Base": + return protoreflect.ValueOfString("") + case "connect.types.v2.CurrencyPair.Quote": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: connect.types.v2.CurrencyPair")) + } + panic(fmt.Errorf("message connect.types.v2.CurrencyPair does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_CurrencyPair) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in connect.types.v2.CurrencyPair", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_CurrencyPair) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_CurrencyPair) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_CurrencyPair) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_CurrencyPair) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*CurrencyPair) + 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.Base) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Quote) + 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().(*CurrencyPair) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]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.Quote) > 0 { + i -= len(x.Quote) + copy(dAtA[i:], x.Quote) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Quote))) + i-- + dAtA[i] = 0x12 + } + if len(x.Base) > 0 { + i -= len(x.Base) + copy(dAtA[i:], x.Base) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Base))) + 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().(*CurrencyPair) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: CurrencyPair: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: CurrencyPair: 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 Base", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Base = 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 Quote", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Quote = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.0 +// protoc (unknown) +// source: connect/types/v2/currency_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) +) + +// CurrencyPair is the standard representation of a pair of assets, where one +// (Base) is priced in terms of the other (Quote) +type CurrencyPair struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Base string `protobuf:"bytes,1,opt,name=Base,proto3" json:"Base,omitempty"` + Quote string `protobuf:"bytes,2,opt,name=Quote,proto3" json:"Quote,omitempty"` +} + +func (x *CurrencyPair) Reset() { + *x = CurrencyPair{} + if protoimpl.UnsafeEnabled { + mi := &file_connect_types_v2_currency_pair_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CurrencyPair) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CurrencyPair) ProtoMessage() {} + +// Deprecated: Use CurrencyPair.ProtoReflect.Descriptor instead. +func (*CurrencyPair) Descriptor() ([]byte, []int) { + return file_connect_types_v2_currency_pair_proto_rawDescGZIP(), []int{0} +} + +func (x *CurrencyPair) GetBase() string { + if x != nil { + return x.Base + } + return "" +} + +func (x *CurrencyPair) GetQuote() string { + if x != nil { + return x.Quote + } + return "" +} + +var File_connect_types_v2_currency_pair_proto protoreflect.FileDescriptor + +var file_connect_types_v2_currency_pair_proto_rawDesc = []byte{ + 0x0a, 0x24, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, + 0x76, 0x32, 0x2f, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x5f, 0x70, 0x61, 0x69, 0x72, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, + 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x32, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x42, + 0x0a, 0x0c, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x50, 0x61, 0x69, 0x72, 0x12, 0x12, + 0x0a, 0x04, 0x42, 0x61, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x42, 0x61, + 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x51, 0x75, 0x6f, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x05, 0x51, 0x75, 0x6f, 0x74, 0x65, 0x3a, 0x08, 0x98, 0xa0, 0x1f, 0x00, 0x80, 0xdc, + 0x20, 0x00, 0x42, 0xb6, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, + 0x63, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x32, 0x42, 0x11, 0x43, 0x75, 0x72, + 0x72, 0x65, 0x6e, 0x63, 0x79, 0x50, 0x61, 0x69, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, + 0x5a, 0x29, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, + 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, + 0x2f, 0x76, 0x32, 0x3b, 0x74, 0x79, 0x70, 0x65, 0x73, 0x76, 0x32, 0xa2, 0x02, 0x03, 0x43, 0x54, + 0x58, 0xaa, 0x02, 0x10, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x54, 0x79, 0x70, 0x65, + 0x73, 0x2e, 0x56, 0x32, 0xca, 0x02, 0x10, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x5c, 0x54, + 0x79, 0x70, 0x65, 0x73, 0x5c, 0x56, 0x32, 0xe2, 0x02, 0x1c, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, + 0x74, 0x5c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x5c, 0x56, 0x32, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x12, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, + 0x3a, 0x3a, 0x54, 0x79, 0x70, 0x65, 0x73, 0x3a, 0x3a, 0x56, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, +} + +var ( + file_connect_types_v2_currency_pair_proto_rawDescOnce sync.Once + file_connect_types_v2_currency_pair_proto_rawDescData = file_connect_types_v2_currency_pair_proto_rawDesc +) + +func file_connect_types_v2_currency_pair_proto_rawDescGZIP() []byte { + file_connect_types_v2_currency_pair_proto_rawDescOnce.Do(func() { + file_connect_types_v2_currency_pair_proto_rawDescData = protoimpl.X.CompressGZIP(file_connect_types_v2_currency_pair_proto_rawDescData) + }) + return file_connect_types_v2_currency_pair_proto_rawDescData +} + +var file_connect_types_v2_currency_pair_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_connect_types_v2_currency_pair_proto_goTypes = []interface{}{ + (*CurrencyPair)(nil), // 0: connect.types.v2.CurrencyPair +} +var file_connect_types_v2_currency_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_connect_types_v2_currency_pair_proto_init() } +func file_connect_types_v2_currency_pair_proto_init() { + if File_connect_types_v2_currency_pair_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_connect_types_v2_currency_pair_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CurrencyPair); 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_connect_types_v2_currency_pair_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_connect_types_v2_currency_pair_proto_goTypes, + DependencyIndexes: file_connect_types_v2_currency_pair_proto_depIdxs, + MessageInfos: file_connect_types_v2_currency_pair_proto_msgTypes, + }.Build() + File_connect_types_v2_currency_pair_proto = out.File + file_connect_types_v2_currency_pair_proto_rawDesc = nil + file_connect_types_v2_currency_pair_proto_goTypes = nil + file_connect_types_v2_currency_pair_proto_depIdxs = nil +} diff --git a/pkg/types/currency_pair.pb.go b/pkg/types/currency_pair.pb.go index e0d494f4c..4b86ea06a 100644 --- a/pkg/types/currency_pair.pb.go +++ b/pkg/types/currency_pair.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: slinky/types/v1/currency_pair.proto +// source: connect/types/v2/currency_pair.proto package types @@ -33,7 +33,7 @@ type CurrencyPair struct { func (m *CurrencyPair) Reset() { *m = CurrencyPair{} } func (*CurrencyPair) ProtoMessage() {} func (*CurrencyPair) Descriptor() ([]byte, []int) { - return fileDescriptor_bfeb23a2dc8e58da, []int{0} + return fileDescriptor_a845bc36ccd6d75e, []int{0} } func (m *CurrencyPair) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -77,28 +77,28 @@ func (m *CurrencyPair) GetQuote() string { } func init() { - proto.RegisterType((*CurrencyPair)(nil), "slinky.types.v1.CurrencyPair") + proto.RegisterType((*CurrencyPair)(nil), "connect.types.v2.CurrencyPair") } func init() { - proto.RegisterFile("slinky/types/v1/currency_pair.proto", fileDescriptor_bfeb23a2dc8e58da) + proto.RegisterFile("connect/types/v2/currency_pair.proto", fileDescriptor_a845bc36ccd6d75e) } -var fileDescriptor_bfeb23a2dc8e58da = []byte{ - // 207 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x2e, 0xce, 0xc9, 0xcc, - 0xcb, 0xae, 0xd4, 0x2f, 0xa9, 0x2c, 0x48, 0x2d, 0xd6, 0x2f, 0x33, 0xd4, 0x4f, 0x2e, 0x2d, 0x2a, - 0x4a, 0xcd, 0x4b, 0xae, 0x8c, 0x2f, 0x48, 0xcc, 0x2c, 0xd2, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, - 0xe2, 0x87, 0x28, 0xd2, 0x03, 0x2b, 0xd2, 0x2b, 0x33, 0x94, 0x12, 0x49, 0xcf, 0x4f, 0xcf, 0x07, - 0xcb, 0xe9, 0x83, 0x58, 0x10, 0x65, 0x4a, 0x4e, 0x5c, 0x3c, 0xce, 0x50, 0xdd, 0x01, 0x89, 0x99, - 0x45, 0x42, 0x42, 0x5c, 0x2c, 0x4e, 0x89, 0xc5, 0xa9, 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0x9c, 0x41, - 0x60, 0xb6, 0x90, 0x08, 0x17, 0x6b, 0x60, 0x69, 0x7e, 0x49, 0xaa, 0x04, 0x13, 0x58, 0x10, 0xc2, - 0xb1, 0xe2, 0x98, 0xb1, 0x40, 0x9e, 0xa1, 0xe1, 0x8e, 0x02, 0x83, 0x93, 0xd3, 0x89, 0x47, 0x72, - 0x8c, 0x17, 0x1e, 0xc9, 0x31, 0x3e, 0x78, 0x24, 0xc7, 0x38, 0xe1, 0xb1, 0x1c, 0xc3, 0x85, 0xc7, - 0x72, 0x0c, 0x37, 0x1e, 0xcb, 0x31, 0x44, 0x69, 0xa4, 0x67, 0x96, 0x64, 0x94, 0x26, 0xe9, 0x25, - 0xe7, 0xe7, 0xea, 0x17, 0x67, 0x67, 0x16, 0xe8, 0xe6, 0xa6, 0x96, 0xe9, 0x27, 0xe7, 0xe7, 0xe5, - 0xa5, 0x26, 0x97, 0xe8, 0x97, 0x19, 0xe9, 0x17, 0x64, 0xa7, 0x43, 0x7c, 0x91, 0xc4, 0x06, 0x76, - 0x8e, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0xc7, 0xe1, 0x3e, 0x4f, 0xdc, 0x00, 0x00, 0x00, +var fileDescriptor_a845bc36ccd6d75e = []byte{ + // 203 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x49, 0xce, 0xcf, 0xcb, + 0x4b, 0x4d, 0x2e, 0xd1, 0x2f, 0xa9, 0x2c, 0x48, 0x2d, 0xd6, 0x2f, 0x33, 0xd2, 0x4f, 0x2e, 0x2d, + 0x2a, 0x4a, 0xcd, 0x4b, 0xae, 0x8c, 0x2f, 0x48, 0xcc, 0x2c, 0xd2, 0x2b, 0x28, 0xca, 0x2f, 0xc9, + 0x17, 0x12, 0x80, 0xaa, 0xd2, 0x03, 0xab, 0xd2, 0x2b, 0x33, 0x92, 0x12, 0x49, 0xcf, 0x4f, 0xcf, + 0x07, 0x4b, 0xea, 0x83, 0x58, 0x10, 0x75, 0x4a, 0x4e, 0x5c, 0x3c, 0xce, 0x50, 0xed, 0x01, 0x89, + 0x99, 0x45, 0x42, 0x42, 0x5c, 0x2c, 0x4e, 0x89, 0xc5, 0xa9, 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0x9c, + 0x41, 0x60, 0xb6, 0x90, 0x08, 0x17, 0x6b, 0x60, 0x69, 0x7e, 0x49, 0xaa, 0x04, 0x13, 0x58, 0x10, + 0xc2, 0xb1, 0xe2, 0x98, 0xb1, 0x40, 0x9e, 0xa1, 0xe1, 0x8e, 0x02, 0x83, 0x93, 0xd3, 0x89, 0x47, + 0x72, 0x8c, 0x17, 0x1e, 0xc9, 0x31, 0x3e, 0x78, 0x24, 0xc7, 0x38, 0xe1, 0xb1, 0x1c, 0xc3, 0x85, + 0xc7, 0x72, 0x0c, 0x37, 0x1e, 0xcb, 0x31, 0x44, 0x69, 0xa4, 0x67, 0x96, 0x64, 0x94, 0x26, 0xe9, + 0x25, 0xe7, 0xe7, 0xea, 0x17, 0x67, 0x67, 0x16, 0xe8, 0xe6, 0xa6, 0x96, 0xe9, 0xc3, 0xdc, 0x5f, + 0x66, 0xa4, 0x5f, 0x90, 0x9d, 0x0e, 0xf1, 0x46, 0x12, 0x1b, 0xd8, 0x39, 0xc6, 0x80, 0x00, 0x00, + 0x00, 0xff, 0xff, 0x27, 0x7a, 0x3c, 0x6b, 0xde, 0x00, 0x00, 0x00, } func (m *CurrencyPair) Marshal() (dAtA []byte, err error) { diff --git a/proto/connect/abci/v2/vote_extensions.proto b/proto/connect/abci/v2/vote_extensions.proto new file mode 100644 index 000000000..5fcdcf7f2 --- /dev/null +++ b/proto/connect/abci/v2/vote_extensions.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; +package connect.abci.v2; + +option go_package = "github.com/skip-mev/connect/v2/abci/ve/types"; + +// OracleVoteExtension defines the vote extension structure for oracle prices. +message OracleVoteExtension { + // Prices defines a map of id(CurrencyPair) -> price.Bytes() . i.e. 1 -> + // 0x123.. (bytes). Notice the `id` function is determined by the + // `CurrencyPairIDStrategy` used in the VoteExtensionHandler. + map prices = 1; +} diff --git a/proto/connect/marketmap/module/v2/module.proto b/proto/connect/marketmap/module/v2/module.proto new file mode 100644 index 000000000..f18213329 --- /dev/null +++ b/proto/connect/marketmap/module/v2/module.proto @@ -0,0 +1,21 @@ +syntax = "proto3"; + +package connect.marketmap.module.v2; + +import "cosmos/app/v1alpha1/module.proto"; + +// Module is the config object of the builder module. +message Module { + option (cosmos.app.v1alpha1.module) = { + go_import : "github.com/skip-mev/connect/v2/x/marketmap" + }; + + // Authority defines the custom module authority. If not set, defaults to the + // governance module. + string authority = 1; + + // HooksOrder specifies the order of marketmap hooks and should be a list + // of module names which provide a marketmap hooks instance. If no order is + // provided, then hooks will be applied in alphabetical order of module names. + repeated string hooks_order = 2; +} \ No newline at end of file diff --git a/proto/connect/marketmap/v2/genesis.proto b/proto/connect/marketmap/v2/genesis.proto new file mode 100644 index 000000000..f45dfd219 --- /dev/null +++ b/proto/connect/marketmap/v2/genesis.proto @@ -0,0 +1,23 @@ +syntax = "proto3"; +package connect.marketmap.v2; + +import "gogoproto/gogo.proto"; +import "connect/marketmap/v2/market.proto"; +import "connect/marketmap/v2/params.proto"; + +option go_package = "github.com/skip-mev/connect/v2/x/marketmap/types"; + +// GenesisState defines the x/marketmap module's genesis state. +message GenesisState { + // MarketMap defines the global set of market configurations for all providers + // and markets. + MarketMap market_map = 1 [ (gogoproto.nullable) = false ]; + + // LastUpdated is the last block height that the market map was updated. + // This field can be used as an optimization for clients checking if there + // is a new update to the map. + uint64 last_updated = 2; + + // Params are the parameters for the x/marketmap module. + Params params = 3 [ (gogoproto.nullable) = false ]; +} diff --git a/proto/connect/marketmap/v2/market.proto b/proto/connect/marketmap/v2/market.proto new file mode 100644 index 000000000..f376310ad --- /dev/null +++ b/proto/connect/marketmap/v2/market.proto @@ -0,0 +1,84 @@ +syntax = "proto3"; +package connect.marketmap.v2; + +option go_package = "github.com/skip-mev/connect/v2/x/marketmap/types"; + +import "gogoproto/gogo.proto"; +import "connect/types/v2/currency_pair.proto"; + +// Market encapsulates a Ticker and its provider-specific configuration. +message Market { + option (gogoproto.goproto_stringer) = false; + option (gogoproto.stringer) = false; + + // Ticker represents a price feed for a given asset pair i.e. BTC/USD. The + // price feed is scaled to a number of decimal places and has a minimum number + // of providers required to consider the ticker valid. + Ticker ticker = 1 [ (gogoproto.nullable) = false ]; + + // ProviderConfigs is the list of provider-specific configs for this Market. + repeated ProviderConfig provider_configs = 2 [ (gogoproto.nullable) = false ]; +} + +// Ticker represents a price feed for a given asset pair i.e. BTC/USD. The price +// feed is scaled to a number of decimal places and has a minimum number of +// providers required to consider the ticker valid. +message Ticker { + option (gogoproto.goproto_stringer) = false; + option (gogoproto.stringer) = false; + + // CurrencyPair is the currency pair for this ticker. + connect.types.v2.CurrencyPair currency_pair = 1 + [ (gogoproto.nullable) = false ]; + + // Decimals is the number of decimal places for the ticker. The number of + // decimal places is used to convert the price to a human-readable format. + uint64 decimals = 2; + + // MinProviderCount is the minimum number of providers required to consider + // the ticker valid. + uint64 min_provider_count = 3; + + // Enabled is the flag that denotes if the Ticker is enabled for price + // fetching by an oracle. + bool enabled = 14; + + // MetadataJSON is a string of JSON that encodes any extra configuration + // for the given ticker. + string metadata_JSON = 15; +} + +message ProviderConfig { + // Name corresponds to the name of the provider for which the configuration is + // being set. + string name = 1; + + // OffChainTicker is the off-chain representation of the ticker i.e. BTC/USD. + // The off-chain ticker is unique to a given provider and is used to fetch the + // price of the ticker from the provider. + string off_chain_ticker = 2; + + // NormalizeByPair is the currency pair for this ticker to be normalized by. + // For example, if the desired Ticker is BTC/USD, this market could be reached + // using: OffChainTicker = BTC/USDT NormalizeByPair = USDT/USD This field is + // optional and nullable. + connect.types.v2.CurrencyPair normalize_by_pair = 3; + + // Invert is a boolean indicating if the BASE and QUOTE of the market should + // be inverted. i.e. BASE -> QUOTE, QUOTE -> BASE + bool invert = 4; + + // MetadataJSON is a string of JSON that encodes any extra configuration + // for the given provider config. + string metadata_JSON = 15; +} + +// MarketMap maps ticker strings to their Markets. +message MarketMap { + option (gogoproto.goproto_stringer) = false; + option (gogoproto.stringer) = false; + + // Markets is the full list of tickers and their associated configurations + // to be stored on-chain. + map markets = 1 [ (gogoproto.nullable) = false ]; +} diff --git a/proto/connect/marketmap/v2/params.proto b/proto/connect/marketmap/v2/params.proto new file mode 100644 index 000000000..b880804f0 --- /dev/null +++ b/proto/connect/marketmap/v2/params.proto @@ -0,0 +1,15 @@ +syntax = "proto3"; +package connect.marketmap.v2; + +option go_package = "github.com/skip-mev/connect/v2/x/marketmap/types"; + +// Params defines the parameters for the x/marketmap module. +message Params { + // MarketAuthorities is the list of authority accounts that are able to + // control updating the marketmap. + repeated string market_authorities = 1; + + // Admin is an address that can remove addresses from the MarketAuthorities + // list. Only governance can add to the MarketAuthorities or change the Admin. + string admin = 2; +} diff --git a/proto/connect/marketmap/v2/query.proto b/proto/connect/marketmap/v2/query.proto new file mode 100644 index 000000000..4cef438ac --- /dev/null +++ b/proto/connect/marketmap/v2/query.proto @@ -0,0 +1,91 @@ +syntax = "proto3"; +package connect.marketmap.v2; + +import "gogoproto/gogo.proto"; +import "google/api/annotations.proto"; +import "connect/types/v2/currency_pair.proto"; +import "connect/marketmap/v2/market.proto"; +import "connect/marketmap/v2/params.proto"; + +option go_package = "github.com/skip-mev/connect/v2/x/marketmap/types"; + +// Query is the query service for the x/marketmap module. +service Query { + // MarketMap returns the full market map stored in the x/marketmap + // module. + rpc MarketMap(MarketMapRequest) returns (MarketMapResponse) { + option (google.api.http) = { + get : "/connect/marketmap/v2/marketmap" + }; + } + + // Market returns a market stored in the x/marketmap + // module. + rpc Market(MarketRequest) returns (MarketResponse) { + option (google.api.http) = { + get : "/connect/marketmap/v2/market" + }; + } + + // LastUpdated returns the last height the market map was updated at. + rpc LastUpdated(LastUpdatedRequest) returns (LastUpdatedResponse) { + option (google.api.http) = { + get : "/connect/marketmap/v2/last_updated" + }; + } + + // Params returns the current x/marketmap module parameters. + rpc Params(ParamsRequest) returns (ParamsResponse) { + option (google.api.http) = { + get : "/connect/marketmap/v2/params" + }; + } +} + +// MarketMapRequest is the query request for the MarketMap query. +// It takes no arguments. +message MarketMapRequest {} + +// MarketMapResponse is the query response for the MarketMap query. +message MarketMapResponse { + // MarketMap defines the global set of market configurations for all providers + // and markets. + MarketMap market_map = 1 [ (gogoproto.nullable) = false ]; + + // LastUpdated is the last block height that the market map was updated. + // This field can be used as an optimization for clients checking if there + // is a new update to the map. + uint64 last_updated = 2; + + // ChainId is the chain identifier for the market map. + string chain_id = 3; +} + +// MarketRequest is the query request for the Market query. +// It takes the currency pair of the market as an argument. +message MarketRequest { + // CurrencyPair is the currency pair associated with the market being + // requested. + connect.types.v2.CurrencyPair currency_pair = 1 + [ (gogoproto.nullable) = false ]; +} + +// MarketResponse is the query response for the Market query. +message MarketResponse { + // Market is the configuration of a single market to be price-fetched for. + Market market = 1 [ (gogoproto.nullable) = false ]; +} + +// ParamsRequest is the request type for the Query/Params RPC method. +message ParamsRequest {} + +// ParamsResponse is the response type for the Query/Params RPC method. +message ParamsResponse { Params params = 1 [ (gogoproto.nullable) = false ]; } + +// LastUpdatedRequest is the request type for the Query/LastUpdated RPC +// method. +message LastUpdatedRequest {} + +// LastUpdatedResponse is the response type for the Query/LastUpdated RPC +// method. +message LastUpdatedResponse { uint64 last_updated = 1; } \ No newline at end of file diff --git a/proto/connect/marketmap/v2/tx.proto b/proto/connect/marketmap/v2/tx.proto new file mode 100644 index 000000000..6c479f3b4 --- /dev/null +++ b/proto/connect/marketmap/v2/tx.proto @@ -0,0 +1,136 @@ +syntax = "proto3"; +package connect.marketmap.v2; + +import "cosmos/msg/v1/msg.proto"; +import "gogoproto/gogo.proto"; +import "cosmos_proto/cosmos.proto"; +import "amino/amino.proto"; +import "connect/marketmap/v2/market.proto"; +import "connect/marketmap/v2/params.proto"; + +option go_package = "github.com/skip-mev/connect/v2/x/marketmap/types"; + +// Msg is the message service for the x/marketmap module. +service Msg { + option (cosmos.msg.v1.service) = true; + + // CreateMarkets creates markets from the given message. + rpc CreateMarkets(MsgCreateMarkets) returns (MsgCreateMarketsResponse); + + // UpdateMarkets updates markets from the given message. + rpc UpdateMarkets(MsgUpdateMarkets) returns (MsgUpdateMarketsResponse); + + // UpdateParams defines a method for updating the x/marketmap module + // parameters. + rpc UpdateParams(MsgParams) returns (MsgParamsResponse); + + // RemoveMarketAuthorities defines a method for removing market authorities + // from the x/marketmap module. the signer must be the admin. + rpc RemoveMarketAuthorities(MsgRemoveMarketAuthorities) + returns (MsgRemoveMarketAuthoritiesResponse); + + // UpsertMarkets wraps both Create / Update markets into a single message. + // Specifically if a market does not exist it will be created, otherwise it + // will be updated. The response will be a map between ticker -> updated. + rpc UpsertMarkets(MsgUpsertMarkets) returns (MsgUpsertMarketsResponse); +} + +// MsgUpsertMarkets defines a message carrying a payload for performing market +// upserts (update or create if does not exist) in the x/marketmap module. +message MsgUpsertMarkets { + option (cosmos.msg.v1.signer) = "authority"; + option (amino.name) = "connect/x/marketmap/MsgUpsertMarkets"; + + option (gogoproto.equal) = false; + + // Authority is the signer of this transaction. This authority must be + // authorized by the module to execute the message. + string authority = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; + + // CreateMarkets is the list of all markets to be created for the given + // transaction. + repeated Market markets = 2 [ (gogoproto.nullable) = false ]; +} + +// MsgUpsertMarketsResponse is the response from the UpsertMarkets API in the +// x/marketmap module. +message MsgUpsertMarketsResponse { + option (gogoproto.stable_marshaler) = true; + // UpdatedMarkets is a map between the ticker and whether the market was + // updated. + // Deprecated: This field will be empty in all responses. + map market_updates = 1 [ deprecated = true ]; +} + +// MsgCreateMarkets defines a message carrying a payload for creating markets in +// the x/marketmap module. +message MsgCreateMarkets { + option (cosmos.msg.v1.signer) = "authority"; + option (amino.name) = "connect/x/marketmap/MsgCreateMarkets"; + + option (gogoproto.equal) = false; + + // Authority is the signer of this transaction. This authority must be + // authorized by the module to execute the message. + string authority = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; + + // CreateMarkets is the list of all markets to be created for the given + // transaction. + repeated Market create_markets = 2 [ (gogoproto.nullable) = false ]; +} + +// MsgUpdateMarketMapResponse is the response message for MsgUpdateMarketMap. +message MsgCreateMarketsResponse {} + +// MsgUpdateMarkets defines a message carrying a payload for updating the +// x/marketmap module. +message MsgUpdateMarkets { + option (cosmos.msg.v1.signer) = "authority"; + option (amino.name) = "connect/x/marketmap/MsgUpdateMarkets"; + + option (gogoproto.equal) = false; + + // Authority is the signer of this transaction. This authority must be + // authorized by the module to execute the message. + string authority = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; + + // UpdateMarkets is the list of all markets to be updated for the given + // transaction. + repeated Market update_markets = 2 [ (gogoproto.nullable) = false ]; +} + +// MsgUpdateMarketsResponse is the response message for MsgUpdateMarkets. +message MsgUpdateMarketsResponse {} + +// MsgParams defines the Msg/Params request type. It contains the +// new parameters for the x/marketmap module. +message MsgParams { + option (cosmos.msg.v1.signer) = "authority"; + + // Params defines the new parameters for the x/marketmap module. + Params params = 1 [ (gogoproto.nullable) = false ]; + // Authority defines the authority that is updating the x/marketmap module + // parameters. + string authority = 2 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; +} + +// MsgParamsResponse defines the Msg/Params response type. +message MsgParamsResponse {} + +// MsgRemoveMarketAuthorities defines the Msg/RemoveMarketAuthoritiesResponse +// request type. It contains the new addresses to remove from the list of +// authorities +message MsgRemoveMarketAuthorities { + option (cosmos.msg.v1.signer) = "admin"; + + // RemoveAddresses is the list of addresses to remove. + repeated string remove_addresses = 1; + + // Admin defines the authority that is the x/marketmap + // Admin account. This account is set in the module parameters. + string admin = 2 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; +} + +// MsgRemoveMarketAuthoritiesResponse defines the +// Msg/RemoveMarketAuthoritiesResponse response type. +message MsgRemoveMarketAuthoritiesResponse {} diff --git a/proto/connect/oracle/module/v2/module.proto b/proto/connect/oracle/module/v2/module.proto new file mode 100644 index 000000000..e1a7ed5df --- /dev/null +++ b/proto/connect/oracle/module/v2/module.proto @@ -0,0 +1,16 @@ +syntax = "proto3"; + +package connect.oracle.module.v2; + +import "cosmos/app/v1alpha1/module.proto"; + +// Module is the config object of the builder module. +message Module { + option (cosmos.app.v1alpha1.module) = { + go_import : "github.com/skip-mev/connect/v2/x/oracle" + }; + + // Authority defines the custom module authority. If not set, defaults to the + // governance module. + string authority = 1; +} \ No newline at end of file diff --git a/proto/connect/oracle/v2/genesis.proto b/proto/connect/oracle/v2/genesis.proto new file mode 100644 index 000000000..e6953e7a2 --- /dev/null +++ b/proto/connect/oracle/v2/genesis.proto @@ -0,0 +1,71 @@ +syntax = "proto3"; +package connect.oracle.v2; + +option go_package = "github.com/skip-mev/connect/v2/x/oracle/types"; + +import "gogoproto/gogo.proto"; +import "google/protobuf/timestamp.proto"; +import "cosmos_proto/cosmos.proto"; +import "connect/types/v2/currency_pair.proto"; + +// QuotePrice is the representation of the aggregated prices for a CurrencyPair, +// where price represents the price of Base in terms of Quote +message QuotePrice { + string price = 1 [ + (cosmos_proto.scalar) = "cosmos.Int", + (gogoproto.customtype) = "cosmossdk.io/math.Int", + (gogoproto.nullable) = false + ]; + + // BlockTimestamp tracks the block height associated with this price update. + // We include block timestamp alongside the price to ensure that smart + // contracts and applications are not utilizing stale oracle prices + google.protobuf.Timestamp block_timestamp = 2 + [ (gogoproto.nullable) = false, (gogoproto.stdtime) = true ]; + + // BlockHeight is height of block mentioned above + uint64 block_height = 3; +} + +// CurrencyPairState represents the stateful information tracked by the x/oracle +// module per-currency-pair. +message CurrencyPairState { + // QuotePrice is the latest price for a currency-pair, notice this value can + // be null in the case that no price exists for the currency-pair + QuotePrice price = 1 [ (gogoproto.nullable) = true ]; + + // Nonce is the number of updates this currency-pair has received + uint64 nonce = 2; + + // ID is the ID of the CurrencyPair + uint64 id = 3; +} + +// CurrencyPairGenesis is the information necessary for initialization of a +// CurrencyPair. +message CurrencyPairGenesis { + // The CurrencyPair to be added to module state + connect.types.v2.CurrencyPair currency_pair = 1 + [ (gogoproto.nullable) = false ]; + // A genesis price if one exists (note this will be empty, unless it results + // from forking the state of this module) + QuotePrice currency_pair_price = 2 [ (gogoproto.nullable) = true ]; + // nonce is the nonce (number of updates) for the CP (same case as above, + // likely 0 unless it results from fork of module) + uint64 nonce = 3; + // id is the ID of the CurrencyPair + uint64 id = 4; +} + +// GenesisState is the genesis-state for the x/oracle module, it takes a set of +// predefined CurrencyPairGeneses +message GenesisState { + // CurrencyPairGenesis is the set of CurrencyPairGeneses for the module. I.e + // the starting set of CurrencyPairs for the module + information regarding + // their latest update. + repeated CurrencyPairGenesis currency_pair_genesis = 1 + [ (gogoproto.nullable) = false ]; + + // NextID is the next ID to be used for a CurrencyPair + uint64 next_id = 2; +} diff --git a/proto/connect/oracle/v2/query.proto b/proto/connect/oracle/v2/query.proto new file mode 100644 index 000000000..aa0b1170b --- /dev/null +++ b/proto/connect/oracle/v2/query.proto @@ -0,0 +1,96 @@ +syntax = "proto3"; +package connect.oracle.v2; +import "gogoproto/gogo.proto"; +import "google/api/annotations.proto"; +import "connect/oracle/v2/genesis.proto"; +import "connect/types/v2/currency_pair.proto"; + +option go_package = "github.com/skip-mev/connect/v2/x/oracle/types"; + +// Query is the query service for the x/oracle module. +service Query { + // Get all the currency pairs the x/oracle module is tracking price-data for. + rpc GetAllCurrencyPairs(GetAllCurrencyPairsRequest) + returns (GetAllCurrencyPairsResponse) { + option (google.api.http) = { + get : "/connect/oracle/v2/get_all_tickers" + }; + }; + + // Given a CurrencyPair (or its identifier) return the latest QuotePrice for + // that CurrencyPair. + rpc GetPrice(GetPriceRequest) returns (GetPriceResponse) { + option (google.api.http) = { + get : "/connect/oracle/v2/get_price" + }; + }; + + rpc GetPrices(GetPricesRequest) returns (GetPricesResponse) { + option (google.api.http) = { + get : "/connect/oracle/v2/get_prices" + }; + } + + // Get the mapping of currency pair ID -> currency pair. This is useful for + // indexers that have access to the ID of a currency pair, but no way to get + // the underlying currency pair from it. + rpc GetCurrencyPairMapping(GetCurrencyPairMappingRequest) + returns (GetCurrencyPairMappingResponse) { + option (google.api.http) = { + get : "/connect/oracle/v2/get_currency_pair_mapping" + additional_bindings : [] + }; + } +} + +message GetAllCurrencyPairsRequest {} + +// GetAllCurrencyPairsResponse returns all CurrencyPairs that the module is +// currently tracking. +message GetAllCurrencyPairsResponse { + repeated connect.types.v2.CurrencyPair currency_pairs = 1 + [ (gogoproto.nullable) = false ]; +} + +// GetPriceRequest takes an identifier for the +// CurrencyPair in the format base/quote. +message GetPriceRequest { + // CurrencyPair represents the pair that the user wishes to query. + string currency_pair = 1; +} + +// GetPriceResponse is the response from the GetPrice grpc method exposed from +// the x/oracle query service. +message GetPriceResponse { + // QuotePrice represents the quote-price for the CurrencyPair given in + // GetPriceRequest (possibly nil if no update has been made) + QuotePrice price = 1 [ (gogoproto.nullable) = true ]; + // nonce represents the nonce for the CurrencyPair if it exists in state + uint64 nonce = 2; + // decimals represents the number of decimals that the quote-price is + // represented in. It is used to scale the QuotePrice to its proper value. + uint64 decimals = 3; + // ID represents the identifier for the CurrencyPair. + uint64 id = 4; +} + +// GetPricesRequest takes an identifier for the CurrencyPair +// in the format base/quote. +message GetPricesRequest { repeated string currency_pair_ids = 1; } + +// GetPricesResponse is the response from the GetPrices grpc method exposed from +// the x/oracle query service. +message GetPricesResponse { + repeated GetPriceResponse prices = 1 [ (gogoproto.nullable) = false ]; +} + +// GetCurrencyPairMappingRequest is the GetCurrencyPairMapping request type. +message GetCurrencyPairMappingRequest {} + +// GetCurrencyPairMappingResponse is the GetCurrencyPairMapping response type. +message GetCurrencyPairMappingResponse { + // currency_pair_mapping is a mapping of the id representing the currency pair + // to the currency pair itself. + map currency_pair_mapping = 1 + [ (gogoproto.nullable) = false ]; +} diff --git a/proto/connect/oracle/v2/tx.proto b/proto/connect/oracle/v2/tx.proto new file mode 100644 index 000000000..2af9f6084 --- /dev/null +++ b/proto/connect/oracle/v2/tx.proto @@ -0,0 +1,71 @@ +syntax = "proto3"; +package connect.oracle.v2; + +import "connect/oracle/v2/genesis.proto"; +import "cosmos_proto/cosmos.proto"; +import "cosmos/msg/v1/msg.proto"; +import "amino/amino.proto"; +import "gogoproto/gogo.proto"; +import "connect/types/v2/currency_pair.proto"; + +option go_package = "github.com/skip-mev/connect/v2/x/oracle/types"; + +// Msg is the message service for the x/oracle module. +service Msg { + option (cosmos.msg.v1.service) = true; + + // AddCurrencyPairs will be used only by governance to update the set of + // available CurrencyPairs. Given a set of CurrencyPair objects, update + // the available currency pairs in the module . + rpc AddCurrencyPairs(MsgAddCurrencyPairs) + returns (MsgAddCurrencyPairsResponse); + + // RemoveCurrencyPairs will be used explicitly by governance to remove the + // given set of currency-pairs from the module's state. Thus these + // CurrencyPairs will no longer have price-data available from this module. + rpc RemoveCurrencyPairs(MsgRemoveCurrencyPairs) + returns (MsgRemoveCurrencyPairsResponse); +} + +// Given an authority + a set of CurrencyPairs, the x/oracle module will +// check to see that the authority has permissions to update the set of +// CurrencyPairs tracked in the oracle, and add the given CurrencyPairs to be +// tracked in each VoteExtension +message MsgAddCurrencyPairs { + option (cosmos.msg.v1.signer) = "authority"; + option (amino.name) = "connect/x/oracle/MsgAddCurrencyPairs"; + + option (gogoproto.equal) = false; + + // authority is the address of the account that is authorized to update the + // x/oracle's CurrencyPairs + string authority = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; + // set of CurrencyPairs to be added to the module (+ prices if they are to be + // set) + repeated connect.types.v2.CurrencyPair currency_pairs = 2 + [ (gogoproto.nullable) = false ]; +} + +message MsgAddCurrencyPairsResponse {} + +// Given an authority + a set of CurrencyPairIDs, the x/oracle module's message +// service will remove all of the CurrencyPairs identified by each +// CurrencyPairID in the request from state. Notice, if a given currency-pair +// does not exist in state, the module ignores that currency-pair and continues +// removing the rest. +message MsgRemoveCurrencyPairs { + option (cosmos.msg.v1.signer) = "authority"; + option (amino.name) = "connect/x/oracle/MsgSetCurrencyPairs"; + + option (gogoproto.equal) = false; + + // authority is the address of the account that is authorized to update the + // x/oracle's CurrencyPairs + string authority = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; + + // currency_pair_ids are the stringified representation of a currency-pairs + // (base/quote) to be removed from the module's state + repeated string currency_pair_ids = 2; +} + +message MsgRemoveCurrencyPairsResponse {} diff --git a/proto/connect/service/v2/oracle.proto b/proto/connect/service/v2/oracle.proto new file mode 100644 index 000000000..6d8c5115a --- /dev/null +++ b/proto/connect/service/v2/oracle.proto @@ -0,0 +1,70 @@ +syntax = "proto3"; +package connect.service.v2; + +import "gogoproto/gogo.proto"; +import "google/api/annotations.proto"; +import "google/protobuf/timestamp.proto"; +import "cosmos_proto/cosmos.proto"; +import "connect/marketmap/v2/market.proto"; + +option go_package = "github.com/skip-mev/connect/v2/service/servers/oracle/types"; + +// Oracle defines the gRPC oracle service. +service Oracle { + // Prices defines a method for fetching the latest prices. + rpc Prices(QueryPricesRequest) returns (QueryPricesResponse) { + option (google.api.http) = { + get : "/connect/oracle/v2/prices" + }; + } + + // MarketMap defines a method for fetching the latest market map + // configuration. + rpc MarketMap(QueryMarketMapRequest) returns (QueryMarketMapResponse) { + option (google.api.http) = { + get : "/connect/oracle/v2/marketmap" + }; + } + + // Version defines a method for fetching the current version of the oracle + // service. + rpc Version(QueryVersionRequest) returns (QueryVersionResponse) { + option (google.api.http) = { + get : "/connect/oracle/v2/version" + }; + } +} + +// QueryPricesRequest defines the request type for the the Prices method. +message QueryPricesRequest {} + +// QueryPricesResponse defines the response type for the Prices method. +message QueryPricesResponse { + // Prices defines the list of prices. + map prices = 1 [ (gogoproto.nullable) = false ]; + + // Timestamp defines the timestamp of the prices. + google.protobuf.Timestamp timestamp = 2 + [ (gogoproto.nullable) = false, (gogoproto.stdtime) = true ]; + + // Version defines the version of the oracle service that provided the prices. + string version = 3; +} + +// QueryMarketMapRequest defines the request type for the MarketMap method. +message QueryMarketMapRequest {} + +// QueryMarketMapResponse defines the response type for the MarketMap method. +message QueryMarketMapResponse { + // MarketMap defines the current market map configuration. + connect.marketmap.v2.MarketMap market_map = 1; +} + +// QueryVersionRequest defines the request type for the Version method. +message QueryVersionRequest {} + +// QueryVersionResponse defines the response type for the Version method. +message QueryVersionResponse { + // Version defines the current version of the oracle service. + string version = 1; +} \ No newline at end of file diff --git a/proto/connect/types/v2/currency_pair.proto b/proto/connect/types/v2/currency_pair.proto new file mode 100644 index 000000000..e2f156066 --- /dev/null +++ b/proto/connect/types/v2/currency_pair.proto @@ -0,0 +1,16 @@ +syntax = "proto3"; +package connect.types.v2; + +import "gogoproto/gogo.proto"; + +option go_package = "github.com/skip-mev/connect/v2/pkg/types"; + +// CurrencyPair is the standard representation of a pair of assets, where one +// (Base) is priced in terms of the other (Quote) +message CurrencyPair { + option (gogoproto.goproto_stringer) = false; + option (gogoproto.stringer) = false; + + string Base = 1; + string Quote = 2; +} diff --git a/scripts/protocgen-pulsar.sh b/scripts/protocgen-pulsar.sh index 091f49857..4ee7494a5 100644 --- a/scripts/protocgen-pulsar.sh +++ b/scripts/protocgen-pulsar.sh @@ -13,18 +13,26 @@ echo "Cleaning API directory" (cd api; find ./ -type f \( -iname \*.pulsar.go -o -iname \*.pb.go -o -iname \*.cosmos_orm.go -o -iname \*.pb.gw.go \) -delete; find . -empty -type d -delete; cd ..) echo "Generating API module" -(cd proto; buf generate --template buf.gen.pulsar.yaml --exclude-path slinky/service) +(cd proto; buf generate --template buf.gen.pulsar.yaml --exclude-path slinky/service --exclude-path connect/service) echo "fixing types.pulsar.go" sed -i.bak 's|cosmossdk.io/api/slinky/types/v1|github.com/skip-mev/connect/v2/api/slinky/types/v1|g' ./api/slinky/types/v1/currency_pair.pulsar.go && rm ./api/slinky/types/v1/currency_pair.pulsar.go.bak sed -i.bak 's|cosmossdk.io/api/slinky/oracle/v1|github.com/skip-mev/connect/v2/api/slinky/oracle/v1|g' ./api/slinky/types/v1/currency_pair.pulsar.go && rm ./api/slinky/types/v1/currency_pair.pulsar.go.bak +sed -i.bak 's|cosmossdk.io/api/connect/types/v2|github.com/skip-mev/connect/v2/api/connect/types/v2|g' ./api/connect/types/v2/currency_pair.pulsar.go && rm ./api/connect/types/v2/currency_pair.pulsar.go.bak +sed -i.bak 's|cosmossdk.io/api/connect/oracle/v2|github.com/skip-mev/connect/v2/api/connect/oracle/v2|g' ./api/connect/types/v2/currency_pair.pulsar.go && rm ./api/connect/types/v2/currency_pair.pulsar.go.bak echo "fixing oracle.pulsar.go" sed -i.bak 's|cosmossdk.io/api/slinky/types/v1|github.com/skip-mev/connect/v2/api/slinky/types/v1|g' ./api/slinky/oracle/v1/query.pulsar.go && rm ./api/slinky/oracle/v1/query.pulsar.go.bak sed -i.bak 's|cosmossdk.io/api/slinky/types/v1|github.com/skip-mev/connect/v2/api/slinky/types/v1|g' ./api/slinky/oracle/v1/tx.pulsar.go && rm ./api/slinky/oracle/v1/tx.pulsar.go.bak sed -i.bak 's|cosmossdk.io/api/slinky/types/v1|github.com/skip-mev/connect/v2/api/slinky/types/v1|g' ./api/slinky/oracle/v1/genesis.pulsar.go && rm ./api/slinky/oracle/v1/genesis.pulsar.go.bak +sed -i.bak 's|cosmossdk.io/api/connect/types/v2|github.com/skip-mev/connect/v2/api/connect/types/v2|g' ./api/connect/oracle/v2/query.pulsar.go && rm ./api/connect/oracle/v2/query.pulsar.go.bak +sed -i.bak 's|cosmossdk.io/api/connect/types/v2|github.com/skip-mev/connect/v2/api/connect/types/v2|g' ./api/connect/oracle/v2/tx.pulsar.go && rm ./api/connect/oracle/v2/tx.pulsar.go.bak +sed -i.bak 's|cosmossdk.io/api/connect/types/v2|github.com/skip-mev/connect/v2/api/connect/types/v2|g' ./api/connect/oracle/v2/genesis.pulsar.go && rm ./api/connect/oracle/v2/genesis.pulsar.go.bak echo "fixing market.pulsar.go" sed -i.bak 's|cosmossdk.io/api/slinky/types/v1|github.com/skip-mev/connect/v2/api/slinky/types/v1|g' ./api/slinky/marketmap/v1/market.pulsar.go && rm ./api/slinky/marketmap/v1/market.pulsar.go.bak sed -i.bak 's|cosmossdk.io/api/slinky/types/v1|github.com/skip-mev/connect/v2/api/slinky/types/v1|g' ./api/slinky/marketmap/v1/query.pulsar.go && rm ./api/slinky/marketmap/v1/query.pulsar.go.bak sed -i.bak 's|cosmossdk.io/api/slinky/oracle/v1|github.com/skip-mev/connect/v2/api/slinky/oracle/v1|g' ./api/slinky/marketmap/v1/market.pulsar.go && rm ./api/slinky/marketmap/v1/market.pulsar.go.bak +sed -i.bak 's|cosmossdk.io/api/connect/types/v2|github.com/skip-mev/connect/v2/api/connect/types/v2|g' ./api/connect/marketmap/v2/market.pulsar.go && rm ./api/connect/marketmap/v2/market.pulsar.go.bak +sed -i.bak 's|cosmossdk.io/api/connect/types/v2|github.com/skip-mev/connect/v2/api/connect/types/v2|g' ./api/connect/marketmap/v2/query.pulsar.go && rm ./api/connect/marketmap/v2/query.pulsar.go.bak +sed -i.bak 's|cosmossdk.io/api/connect/oracle/v2|github.com/skip-mev/connect/v2/api/connect/oracle/v2|g' ./api/connect/marketmap/v2/market.pulsar.go && rm ./api/connect/marketmap/v2/market.pulsar.go.bak diff --git a/scripts/protocgen.sh b/scripts/protocgen.sh index fd4da91f8..93a67ac04 100755 --- a/scripts/protocgen.sh +++ b/scripts/protocgen.sh @@ -3,7 +3,7 @@ set -e echo "Generating Protocol Buffer code..." cd proto -proto_dirs=$(find ./slinky -path -prune -o -name '*.proto' -print0 | xargs -0 -n1 dirname | sort | uniq) +proto_dirs=$(find ./connect -path -prune -o -name '*.proto' -print0 | xargs -0 -n1 dirname | sort | uniq) for dir in $proto_dirs; do for file in $(find "${dir}" -maxdepth 1 -name '*.proto'); do if grep go_package $file &> /dev/null ; then diff --git a/service/servers/oracle/server_test.go b/service/servers/oracle/server_test.go index 9d9003b81..d834b8388 100644 --- a/service/servers/oracle/server_test.go +++ b/service/servers/oracle/server_test.go @@ -169,7 +169,7 @@ func (s *ServerTestSuite) TestOracleServerPrices() { s.Require().Equal(resp.Timestamp, ts.UTC()) // call from http client - httpResp, err := s.httpClient.Get(fmt.Sprintf("http://%s:%s/slinky/oracle/v1/prices", localhost, port)) + httpResp, err := s.httpClient.Get(fmt.Sprintf("http://%s:%s/connect/oracle/v2/prices", localhost, port)) s.Require().NoError(err) // check response diff --git a/service/servers/oracle/types/oracle.pb.go b/service/servers/oracle/types/oracle.pb.go index 5e30eac12..3885af0c4 100644 --- a/service/servers/oracle/types/oracle.pb.go +++ b/service/servers/oracle/types/oracle.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: slinky/service/v1/oracle.proto +// source: connect/service/v2/oracle.proto package types @@ -43,7 +43,7 @@ func (m *QueryPricesRequest) Reset() { *m = QueryPricesRequest{} } func (m *QueryPricesRequest) String() string { return proto.CompactTextString(m) } func (*QueryPricesRequest) ProtoMessage() {} func (*QueryPricesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e88883d464f0f25b, []int{0} + return fileDescriptor_9b4d2eaa50661ccd, []int{0} } func (m *QueryPricesRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -86,7 +86,7 @@ func (m *QueryPricesResponse) Reset() { *m = QueryPricesResponse{} } func (m *QueryPricesResponse) String() string { return proto.CompactTextString(m) } func (*QueryPricesResponse) ProtoMessage() {} func (*QueryPricesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e88883d464f0f25b, []int{1} + return fileDescriptor_9b4d2eaa50661ccd, []int{1} } func (m *QueryPricesResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -144,7 +144,7 @@ func (m *QueryMarketMapRequest) Reset() { *m = QueryMarketMapRequest{} } func (m *QueryMarketMapRequest) String() string { return proto.CompactTextString(m) } func (*QueryMarketMapRequest) ProtoMessage() {} func (*QueryMarketMapRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e88883d464f0f25b, []int{2} + return fileDescriptor_9b4d2eaa50661ccd, []int{2} } func (m *QueryMarketMapRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -183,7 +183,7 @@ func (m *QueryMarketMapResponse) Reset() { *m = QueryMarketMapResponse{} func (m *QueryMarketMapResponse) String() string { return proto.CompactTextString(m) } func (*QueryMarketMapResponse) ProtoMessage() {} func (*QueryMarketMapResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e88883d464f0f25b, []int{3} + return fileDescriptor_9b4d2eaa50661ccd, []int{3} } func (m *QueryMarketMapResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -227,7 +227,7 @@ func (m *QueryVersionRequest) Reset() { *m = QueryVersionRequest{} } func (m *QueryVersionRequest) String() string { return proto.CompactTextString(m) } func (*QueryVersionRequest) ProtoMessage() {} func (*QueryVersionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e88883d464f0f25b, []int{4} + return fileDescriptor_9b4d2eaa50661ccd, []int{4} } func (m *QueryVersionRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -266,7 +266,7 @@ func (m *QueryVersionResponse) Reset() { *m = QueryVersionResponse{} } func (m *QueryVersionResponse) String() string { return proto.CompactTextString(m) } func (*QueryVersionResponse) ProtoMessage() {} func (*QueryVersionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e88883d464f0f25b, []int{5} + return fileDescriptor_9b4d2eaa50661ccd, []int{5} } func (m *QueryVersionResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -303,56 +303,54 @@ func (m *QueryVersionResponse) GetVersion() string { } func init() { - proto.RegisterType((*QueryPricesRequest)(nil), "slinky.service.v1.QueryPricesRequest") - proto.RegisterType((*QueryPricesResponse)(nil), "slinky.service.v1.QueryPricesResponse") - proto.RegisterMapType((map[string]string)(nil), "slinky.service.v1.QueryPricesResponse.PricesEntry") - proto.RegisterType((*QueryMarketMapRequest)(nil), "slinky.service.v1.QueryMarketMapRequest") - proto.RegisterType((*QueryMarketMapResponse)(nil), "slinky.service.v1.QueryMarketMapResponse") - proto.RegisterType((*QueryVersionRequest)(nil), "slinky.service.v1.QueryVersionRequest") - proto.RegisterType((*QueryVersionResponse)(nil), "slinky.service.v1.QueryVersionResponse") + proto.RegisterType((*QueryPricesRequest)(nil), "connect.service.v2.QueryPricesRequest") + proto.RegisterType((*QueryPricesResponse)(nil), "connect.service.v2.QueryPricesResponse") + proto.RegisterMapType((map[string]string)(nil), "connect.service.v2.QueryPricesResponse.PricesEntry") + proto.RegisterType((*QueryMarketMapRequest)(nil), "connect.service.v2.QueryMarketMapRequest") + proto.RegisterType((*QueryMarketMapResponse)(nil), "connect.service.v2.QueryMarketMapResponse") + proto.RegisterType((*QueryVersionRequest)(nil), "connect.service.v2.QueryVersionRequest") + proto.RegisterType((*QueryVersionResponse)(nil), "connect.service.v2.QueryVersionResponse") } -func init() { proto.RegisterFile("slinky/service/v1/oracle.proto", fileDescriptor_e88883d464f0f25b) } +func init() { proto.RegisterFile("connect/service/v2/oracle.proto", fileDescriptor_9b4d2eaa50661ccd) } -var fileDescriptor_e88883d464f0f25b = []byte{ - // 582 bytes of a gzipped FileDescriptorProto +var fileDescriptor_9b4d2eaa50661ccd = []byte{ + // 552 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x54, 0xcf, 0x6f, 0xd3, 0x30, - 0x14, 0xae, 0x5b, 0xe8, 0xa8, 0x7b, 0x01, 0xd3, 0x41, 0x9a, 0x8d, 0xb4, 0xaa, 0x04, 0x94, 0x03, - 0x31, 0x0b, 0x07, 0x18, 0xa8, 0x42, 0x2a, 0xe2, 0x38, 0x31, 0x2a, 0x7e, 0x48, 0xbd, 0x4c, 0x6e, - 0x64, 0x4a, 0xd4, 0x26, 0x36, 0xb1, 0x1b, 0xa9, 0x37, 0xc4, 0x5f, 0x30, 0x09, 0x89, 0x0b, 0x67, - 0xfe, 0x97, 0x1d, 0x27, 0x71, 0xe1, 0x04, 0xa8, 0x45, 0xe2, 0xdf, 0x40, 0xb1, 0x9d, 0x74, 0x5d, - 0x3b, 0x6d, 0xa7, 0xfa, 0xf9, 0x7b, 0x7e, 0xef, 0x7b, 0xdf, 0xf7, 0x1a, 0xe8, 0x88, 0x71, 0x10, - 0x8d, 0xa6, 0x58, 0xd0, 0x38, 0x09, 0x7c, 0x8a, 0x93, 0x1d, 0xcc, 0x62, 0xe2, 0x8f, 0xa9, 0xcb, - 0x63, 0x26, 0x19, 0xba, 0xa6, 0x71, 0xd7, 0xe0, 0x6e, 0xb2, 0x63, 0xd7, 0x86, 0x6c, 0xc8, 0x14, - 0x8a, 0xd3, 0x93, 0x4e, 0xb4, 0xb7, 0x87, 0x8c, 0x0d, 0xc7, 0x14, 0x13, 0x1e, 0x60, 0x12, 0x45, - 0x4c, 0x12, 0x19, 0xb0, 0x48, 0x18, 0xb4, 0x61, 0x50, 0x15, 0x0d, 0x26, 0xef, 0xb1, 0x0c, 0x42, - 0x2a, 0x24, 0x09, 0xb9, 0x49, 0xa8, 0xfb, 0x4c, 0x84, 0x4c, 0x1c, 0xe8, 0xba, 0x3a, 0x30, 0x50, - 0xd3, 0x50, 0x0c, 0x49, 0x3c, 0xa2, 0x32, 0x24, 0x3c, 0x25, 0xa9, 0x03, 0x9d, 0xd1, 0xaa, 0x41, - 0xf4, 0x6a, 0x42, 0xe3, 0xe9, 0x7e, 0x1c, 0xf8, 0x54, 0xf4, 0xe8, 0xc7, 0x09, 0x15, 0xb2, 0xf5, - 0xa9, 0x08, 0xaf, 0x2f, 0x5d, 0x0b, 0xce, 0x22, 0x41, 0xd1, 0x3e, 0x2c, 0x73, 0x75, 0x63, 0x81, - 0x66, 0xa9, 0x5d, 0xf5, 0x3c, 0x77, 0x65, 0x46, 0x77, 0xcd, 0x3b, 0x57, 0x87, 0x2f, 0x22, 0x19, - 0x4f, 0xbb, 0x97, 0x8e, 0x7e, 0x35, 0x0a, 0x3d, 0x53, 0x07, 0x75, 0x61, 0x25, 0x9f, 0xc7, 0x2a, - 0x36, 0x41, 0xbb, 0xea, 0xd9, 0xae, 0x9e, 0xd8, 0xcd, 0x26, 0x76, 0x5f, 0x67, 0x19, 0xdd, 0x2b, - 0xe9, 0xe3, 0xc3, 0xdf, 0x0d, 0xd0, 0x5b, 0x3c, 0x43, 0x16, 0xdc, 0x48, 0x68, 0x2c, 0x02, 0x16, - 0x59, 0xa5, 0x26, 0x68, 0x57, 0x7a, 0x59, 0x68, 0xef, 0xc2, 0xea, 0x89, 0xd6, 0xe8, 0x2a, 0x2c, - 0x8d, 0xe8, 0xd4, 0x02, 0x2a, 0x29, 0x3d, 0xa2, 0x1a, 0xbc, 0x9c, 0x90, 0xf1, 0x84, 0xaa, 0xd6, - 0x95, 0x9e, 0x0e, 0x9e, 0x14, 0x1f, 0x83, 0xd6, 0x4d, 0xb8, 0xa9, 0x26, 0xd9, 0x53, 0x6a, 0xed, - 0x11, 0x9e, 0x69, 0xf3, 0x0e, 0xde, 0x38, 0x0d, 0x18, 0x75, 0x3a, 0x10, 0x6a, 0x6d, 0x0f, 0x42, - 0xc2, 0x55, 0x97, 0xaa, 0xe7, 0x64, 0x0a, 0xe5, 0x16, 0xa4, 0x1a, 0x2d, 0xde, 0x56, 0xc2, 0xec, - 0xd8, 0xda, 0x34, 0x9a, 0xbf, 0xd5, 0xe4, 0xb3, 0x7e, 0x0f, 0x60, 0x6d, 0xf9, 0xda, 0x74, 0x3b, - 0x31, 0x35, 0x58, 0x9a, 0xda, 0xfb, 0x57, 0x82, 0xe5, 0x97, 0x6a, 0x13, 0xd1, 0x57, 0x00, 0xcb, - 0x5a, 0x01, 0x74, 0xfb, 0x3c, 0xaf, 0x54, 0x3b, 0xfb, 0xce, 0xc5, 0x2c, 0x6d, 0x75, 0x3e, 0xff, - 0xf8, 0xfb, 0xa5, 0xf8, 0xa8, 0x6f, 0x23, 0x0b, 0x9b, 0x2d, 0xd3, 0xdb, 0x9f, 0xae, 0x98, 0x31, - 0xb7, 0x8e, 0x7d, 0x16, 0x45, 0xd4, 0x97, 0xab, 0xd0, 0x77, 0x00, 0x2b, 0xb9, 0x0a, 0xa8, 0x7d, - 0x56, 0xd3, 0xd3, 0xea, 0xdb, 0xf7, 0x2e, 0x90, 0x69, 0x18, 0x3e, 0x57, 0x0c, 0x3b, 0xfd, 0x5b, - 0x68, 0x6b, 0x95, 0x61, 0x6e, 0x07, 0xda, 0x5e, 0x43, 0x72, 0x81, 0x7e, 0x03, 0x70, 0xc3, 0x28, - 0x8f, 0xce, 0x94, 0x66, 0xd9, 0x31, 0xfb, 0xee, 0xb9, 0x79, 0x86, 0xe1, 0x33, 0xc5, 0x70, 0xb7, - 0xbf, 0x85, 0xea, 0xab, 0x0c, 0x8d, 0x9b, 0xc8, 0x5e, 0xc3, 0xcf, 0x60, 0xdd, 0x37, 0x47, 0x33, - 0x07, 0x1c, 0xcf, 0x1c, 0xf0, 0x67, 0xe6, 0x80, 0xc3, 0xb9, 0x53, 0x38, 0x9e, 0x3b, 0x85, 0x9f, - 0x73, 0xa7, 0xd0, 0x7f, 0x3a, 0x0c, 0xe4, 0x87, 0xc9, 0xc0, 0xf5, 0x59, 0x88, 0xc5, 0x28, 0xe0, - 0xf7, 0x43, 0x9a, 0xe4, 0x85, 0x12, 0x2f, 0xff, 0x68, 0xa5, 0xbf, 0x34, 0x16, 0x59, 0x6d, 0x39, - 0xe5, 0x54, 0x0c, 0xca, 0xea, 0x9f, 0xf7, 0xf0, 0x7f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x1f, 0xbe, - 0x99, 0x8d, 0xe2, 0x04, 0x00, 0x00, + 0x14, 0xae, 0x5b, 0xe8, 0xa8, 0x7b, 0x41, 0xa6, 0x83, 0x2e, 0x54, 0x49, 0x17, 0x21, 0x28, 0x48, + 0x38, 0x28, 0xbb, 0xf0, 0x43, 0xe2, 0x50, 0x89, 0xe3, 0x04, 0x8b, 0x00, 0x21, 0x2e, 0x93, 0x1b, + 0x99, 0x10, 0xb5, 0x89, 0x4d, 0xec, 0x44, 0xaa, 0xc4, 0x01, 0x38, 0x71, 0x9c, 0x04, 0x7f, 0xd4, + 0x8e, 0x93, 0xb8, 0x70, 0x02, 0xd4, 0xf2, 0x87, 0xa0, 0xd8, 0x4e, 0xb6, 0x8e, 0x4e, 0xdb, 0xa9, + 0x7e, 0x7e, 0xdf, 0x7b, 0xef, 0xfb, 0xbe, 0xe7, 0x14, 0x3a, 0x21, 0x4b, 0x53, 0x1a, 0x4a, 0x4f, + 0xd0, 0xac, 0x88, 0x43, 0xea, 0x15, 0xbe, 0xc7, 0x32, 0x12, 0xce, 0x28, 0xe6, 0x19, 0x93, 0x0c, + 0x21, 0x03, 0xc0, 0x06, 0x80, 0x0b, 0xdf, 0xea, 0x45, 0x2c, 0x62, 0x2a, 0xed, 0x95, 0x27, 0x8d, + 0xb4, 0x06, 0x11, 0x63, 0xd1, 0x8c, 0x7a, 0x84, 0xc7, 0x1e, 0x49, 0x53, 0x26, 0x89, 0x8c, 0x59, + 0x2a, 0x4c, 0xd6, 0x31, 0x59, 0x15, 0x4d, 0xf2, 0x77, 0x9e, 0x8c, 0x13, 0x2a, 0x24, 0x49, 0xb8, + 0x01, 0x6c, 0x85, 0x4c, 0x24, 0x4c, 0xec, 0xeb, 0xbe, 0x3a, 0x30, 0xa9, 0xed, 0x8a, 0x64, 0x42, + 0xb2, 0x29, 0x95, 0x09, 0xe1, 0x25, 0x4d, 0x1d, 0x68, 0x88, 0xdb, 0x83, 0x68, 0x2f, 0xa7, 0xd9, + 0xfc, 0x45, 0x16, 0x87, 0x54, 0x04, 0xf4, 0x43, 0x4e, 0x85, 0x74, 0x3f, 0x37, 0xe1, 0xb5, 0x95, + 0x6b, 0xc1, 0x59, 0x2a, 0x28, 0xda, 0x83, 0x6d, 0xae, 0x6e, 0xfa, 0x60, 0xd8, 0x1a, 0x75, 0xfd, + 0x1d, 0xfc, 0xbf, 0x4a, 0xbc, 0xa6, 0x10, 0xeb, 0xf0, 0x59, 0x2a, 0xb3, 0xf9, 0xf8, 0xd2, 0xe1, + 0x2f, 0xa7, 0x11, 0x98, 0x46, 0x68, 0x0c, 0x3b, 0xb5, 0xa2, 0x7e, 0x73, 0x08, 0x46, 0x5d, 0xdf, + 0xc2, 0x5a, 0x33, 0xae, 0x34, 0xe3, 0x97, 0x15, 0x62, 0x7c, 0xa5, 0x2c, 0x3e, 0xf8, 0xed, 0x80, + 0xe0, 0xb8, 0x0c, 0xf5, 0xe1, 0x46, 0x41, 0x33, 0x11, 0xb3, 0xb4, 0xdf, 0x1a, 0x82, 0x51, 0x27, + 0xa8, 0x42, 0xeb, 0x11, 0xec, 0x9e, 0x18, 0x8d, 0xae, 0xc2, 0xd6, 0x94, 0xce, 0xfb, 0x40, 0x81, + 0xca, 0x23, 0xea, 0xc1, 0xcb, 0x05, 0x99, 0xe5, 0x54, 0x8d, 0xee, 0x04, 0x3a, 0x78, 0xdc, 0x7c, + 0x08, 0xdc, 0x1b, 0x70, 0x53, 0x29, 0xd9, 0x55, 0x76, 0xed, 0x12, 0x5e, 0x99, 0xf3, 0x06, 0x5e, + 0x3f, 0x9d, 0x30, 0xf6, 0x3c, 0x85, 0x50, 0x9b, 0xbb, 0x9f, 0x10, 0xae, 0xa6, 0x74, 0x7d, 0xa7, + 0xb6, 0xa8, 0x5e, 0x42, 0x69, 0xd2, 0x71, 0x71, 0x27, 0xa9, 0x8e, 0xee, 0xa6, 0x71, 0xfd, 0xb5, + 0x66, 0x5f, 0x0d, 0x7c, 0x00, 0x7b, 0xab, 0xd7, 0x66, 0xdc, 0x09, 0xd9, 0x60, 0x45, 0xb6, 0xff, + 0xbd, 0x05, 0xdb, 0xcf, 0xd5, 0x6b, 0x44, 0x1f, 0x61, 0x5b, 0x3b, 0x80, 0x6e, 0x9f, 0xbb, 0x2c, + 0x35, 0xce, 0xba, 0x73, 0xc1, 0xa5, 0xba, 0xdb, 0x5f, 0x7e, 0xfc, 0xfd, 0xd6, 0xbc, 0x89, 0xb6, + 0xbc, 0xea, 0x9d, 0xe9, 0x2f, 0xa0, 0x7c, 0x64, 0x66, 0xbb, 0x5f, 0x01, 0xec, 0xd4, 0x52, 0xd1, + 0xdd, 0x33, 0x3b, 0x9f, 0x36, 0xd9, 0xba, 0x77, 0x11, 0xa8, 0xe1, 0x71, 0x4b, 0xf1, 0xb0, 0xd1, + 0x60, 0x0d, 0x8f, 0xda, 0x74, 0xf4, 0x09, 0xc0, 0x0d, 0xe3, 0x20, 0x3a, 0x5b, 0xe2, 0xaa, 0xf5, + 0xd6, 0xe8, 0x7c, 0xa0, 0x21, 0xe1, 0x2a, 0x12, 0x03, 0x64, 0xad, 0x21, 0x61, 0xd6, 0x32, 0x7e, + 0x75, 0xb8, 0xb0, 0xc1, 0xd1, 0xc2, 0x06, 0x7f, 0x16, 0x36, 0x38, 0x58, 0xda, 0x8d, 0xa3, 0xa5, + 0xdd, 0xf8, 0xb9, 0xb4, 0x1b, 0x6f, 0x9f, 0x44, 0xb1, 0x7c, 0x9f, 0x4f, 0x70, 0xc8, 0x12, 0x4f, + 0x4c, 0x63, 0x7e, 0x3f, 0xa1, 0x45, 0xdd, 0xa8, 0xf0, 0xeb, 0x7f, 0x99, 0xf2, 0x97, 0x66, 0xa2, + 0xea, 0x2d, 0xe7, 0x9c, 0x8a, 0x49, 0x5b, 0x7d, 0x27, 0x3b, 0xff, 0x02, 0x00, 0x00, 0xff, 0xff, + 0x88, 0x1b, 0xe4, 0x95, 0x94, 0x04, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -387,7 +385,7 @@ func NewOracleClient(cc grpc1.ClientConn) OracleClient { func (c *oracleClient) Prices(ctx context.Context, in *QueryPricesRequest, opts ...grpc.CallOption) (*QueryPricesResponse, error) { out := new(QueryPricesResponse) - err := c.cc.Invoke(ctx, "/slinky.service.v1.Oracle/Prices", in, out, opts...) + err := c.cc.Invoke(ctx, "/connect.service.v2.Oracle/Prices", in, out, opts...) if err != nil { return nil, err } @@ -396,7 +394,7 @@ func (c *oracleClient) Prices(ctx context.Context, in *QueryPricesRequest, opts func (c *oracleClient) MarketMap(ctx context.Context, in *QueryMarketMapRequest, opts ...grpc.CallOption) (*QueryMarketMapResponse, error) { out := new(QueryMarketMapResponse) - err := c.cc.Invoke(ctx, "/slinky.service.v1.Oracle/MarketMap", in, out, opts...) + err := c.cc.Invoke(ctx, "/connect.service.v2.Oracle/MarketMap", in, out, opts...) if err != nil { return nil, err } @@ -405,7 +403,7 @@ func (c *oracleClient) MarketMap(ctx context.Context, in *QueryMarketMapRequest, func (c *oracleClient) Version(ctx context.Context, in *QueryVersionRequest, opts ...grpc.CallOption) (*QueryVersionResponse, error) { out := new(QueryVersionResponse) - err := c.cc.Invoke(ctx, "/slinky.service.v1.Oracle/Version", in, out, opts...) + err := c.cc.Invoke(ctx, "/connect.service.v2.Oracle/Version", in, out, opts...) if err != nil { return nil, err } @@ -452,7 +450,7 @@ func _Oracle_Prices_Handler(srv interface{}, ctx context.Context, dec func(inter } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/slinky.service.v1.Oracle/Prices", + FullMethod: "/connect.service.v2.Oracle/Prices", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(OracleServer).Prices(ctx, req.(*QueryPricesRequest)) @@ -470,7 +468,7 @@ func _Oracle_MarketMap_Handler(srv interface{}, ctx context.Context, dec func(in } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/slinky.service.v1.Oracle/MarketMap", + FullMethod: "/connect.service.v2.Oracle/MarketMap", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(OracleServer).MarketMap(ctx, req.(*QueryMarketMapRequest)) @@ -488,7 +486,7 @@ func _Oracle_Version_Handler(srv interface{}, ctx context.Context, dec func(inte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/slinky.service.v1.Oracle/Version", + FullMethod: "/connect.service.v2.Oracle/Version", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(OracleServer).Version(ctx, req.(*QueryVersionRequest)) @@ -497,7 +495,7 @@ func _Oracle_Version_Handler(srv interface{}, ctx context.Context, dec func(inte } var _Oracle_serviceDesc = grpc.ServiceDesc{ - ServiceName: "slinky.service.v1.Oracle", + ServiceName: "connect.service.v2.Oracle", HandlerType: (*OracleServer)(nil), Methods: []grpc.MethodDesc{ { @@ -514,7 +512,7 @@ var _Oracle_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "slinky/service/v1/oracle.proto", + Metadata: "connect/service/v2/oracle.proto", } func (m *QueryPricesRequest) Marshal() (dAtA []byte, err error) { diff --git a/service/servers/oracle/types/oracle.pb.gw.go b/service/servers/oracle/types/oracle.pb.gw.go index 698d62276..cae83460c 100644 --- a/service/servers/oracle/types/oracle.pb.gw.go +++ b/service/servers/oracle/types/oracle.pb.gw.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: slinky/service/v1/oracle.proto +// source: connect/service/v2/oracle.proto /* Package types is a reverse proxy. @@ -51,24 +51,6 @@ func local_request_Oracle_Prices_0(ctx context.Context, marshaler runtime.Marsha } -func request_Oracle_Prices_1(ctx context.Context, marshaler runtime.Marshaler, client OracleClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryPricesRequest - var metadata runtime.ServerMetadata - - msg, err := client.Prices(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Oracle_Prices_1(ctx context.Context, marshaler runtime.Marshaler, server OracleServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryPricesRequest - var metadata runtime.ServerMetadata - - msg, err := server.Prices(ctx, &protoReq) - return msg, metadata, err - -} - func request_Oracle_MarketMap_0(ctx context.Context, marshaler runtime.Marshaler, client OracleClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq QueryMarketMapRequest var metadata runtime.ServerMetadata @@ -87,24 +69,6 @@ func local_request_Oracle_MarketMap_0(ctx context.Context, marshaler runtime.Mar } -func request_Oracle_MarketMap_1(ctx context.Context, marshaler runtime.Marshaler, client OracleClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryMarketMapRequest - var metadata runtime.ServerMetadata - - msg, err := client.MarketMap(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Oracle_MarketMap_1(ctx context.Context, marshaler runtime.Marshaler, server OracleServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryMarketMapRequest - var metadata runtime.ServerMetadata - - msg, err := server.MarketMap(ctx, &protoReq) - return msg, metadata, err - -} - func request_Oracle_Version_0(ctx context.Context, marshaler runtime.Marshaler, client OracleClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq QueryVersionRequest var metadata runtime.ServerMetadata @@ -123,24 +87,6 @@ func local_request_Oracle_Version_0(ctx context.Context, marshaler runtime.Marsh } -func request_Oracle_Version_1(ctx context.Context, marshaler runtime.Marshaler, client OracleClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryVersionRequest - var metadata runtime.ServerMetadata - - msg, err := client.Version(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Oracle_Version_1(ctx context.Context, marshaler runtime.Marshaler, server OracleServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryVersionRequest - var metadata runtime.ServerMetadata - - msg, err := server.Version(ctx, &protoReq) - return msg, metadata, err - -} - // RegisterOracleHandlerServer registers the http handlers for service Oracle to "mux". // UnaryRPC :call OracleServer directly. // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. @@ -170,29 +116,6 @@ func RegisterOracleHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser }) - mux.Handle("GET", pattern_Oracle_Prices_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Oracle_Prices_1(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Oracle_Prices_1(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - mux.Handle("GET", pattern_Oracle_MarketMap_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -216,29 +139,6 @@ func RegisterOracleHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser }) - mux.Handle("GET", pattern_Oracle_MarketMap_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Oracle_MarketMap_1(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Oracle_MarketMap_1(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - mux.Handle("GET", pattern_Oracle_Version_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -262,29 +162,6 @@ func RegisterOracleHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser }) - mux.Handle("GET", pattern_Oracle_Version_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Oracle_Version_1(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Oracle_Version_1(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - return nil } @@ -346,26 +223,6 @@ func RegisterOracleHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli }) - mux.Handle("GET", pattern_Oracle_Prices_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Oracle_Prices_1(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Oracle_Prices_1(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - mux.Handle("GET", pattern_Oracle_MarketMap_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -386,26 +243,6 @@ func RegisterOracleHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli }) - mux.Handle("GET", pattern_Oracle_MarketMap_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Oracle_MarketMap_1(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Oracle_MarketMap_1(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - mux.Handle("GET", pattern_Oracle_Version_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -426,53 +263,21 @@ func RegisterOracleHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli }) - mux.Handle("GET", pattern_Oracle_Version_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Oracle_Version_1(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Oracle_Version_1(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - return nil } var ( - pattern_Oracle_Prices_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"connect", "oracle", "v1", "prices"}, "", runtime.AssumeColonVerbOpt(false))) - - pattern_Oracle_Prices_1 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"slinky", "oracle", "v1", "prices"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Oracle_Prices_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"connect", "oracle", "v2", "prices"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Oracle_MarketMap_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"connect", "oracle", "v1", "marketmap"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Oracle_MarketMap_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"connect", "oracle", "v2", "marketmap"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Oracle_MarketMap_1 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"slinky", "oracle", "v1", "marketmap"}, "", runtime.AssumeColonVerbOpt(false))) - - pattern_Oracle_Version_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"connect", "oracle", "v1", "version"}, "", runtime.AssumeColonVerbOpt(false))) - - pattern_Oracle_Version_1 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"slinky", "oracle", "v1", "version"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Oracle_Version_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"connect", "oracle", "v2", "version"}, "", runtime.AssumeColonVerbOpt(false))) ) var ( forward_Oracle_Prices_0 = runtime.ForwardResponseMessage - forward_Oracle_Prices_1 = runtime.ForwardResponseMessage - forward_Oracle_MarketMap_0 = runtime.ForwardResponseMessage - forward_Oracle_MarketMap_1 = runtime.ForwardResponseMessage - forward_Oracle_Version_0 = runtime.ForwardResponseMessage - - forward_Oracle_Version_1 = runtime.ForwardResponseMessage ) diff --git a/tests/integration/slinky_setup.go b/tests/integration/slinky_setup.go index 21c7a8f3f..bd37dd8b4 100644 --- a/tests/integration/slinky_setup.go +++ b/tests/integration/slinky_setup.go @@ -296,7 +296,7 @@ func QueryCurrencyPair(chain *cosmos.CosmosChain, cp slinkytypes.CurrencyPair, h // query the currency pairs res, err := client.GetPrice(ctx, &oracletypes.GetPriceRequest{ - CurrencyPair: cp, + CurrencyPair: cp.String(), }) if err != nil { return nil, 0, err diff --git a/tests/integration/slinky_suite.go b/tests/integration/slinky_suite.go index a6ce1afd4..040873b6c 100644 --- a/tests/integration/slinky_suite.go +++ b/tests/integration/slinky_suite.go @@ -750,7 +750,7 @@ func (s *SlinkyOracleIntegrationSuite) TestMultiplePriceFeeds() { func getIDForCurrencyPair(ctx context.Context, client oracletypes.QueryClient, cp slinkytypes.CurrencyPair) (uint64, error) { // query for the given currency pair resp, err := client.GetPrice(ctx, &oracletypes.GetPriceRequest{ - CurrencyPair: cp, + CurrencyPair: cp.String(), }) if err != nil { return 0, err diff --git a/x/marketmap/types/genesis.pb.go b/x/marketmap/types/genesis.pb.go index af096b122..b51904a5e 100644 --- a/x/marketmap/types/genesis.pb.go +++ b/x/marketmap/types/genesis.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: slinky/marketmap/v1/genesis.proto +// source: connect/marketmap/v2/genesis.proto package types @@ -40,7 +40,7 @@ func (m *GenesisState) Reset() { *m = GenesisState{} } func (m *GenesisState) String() string { return proto.CompactTextString(m) } func (*GenesisState) ProtoMessage() {} func (*GenesisState) Descriptor() ([]byte, []int) { - return fileDescriptor_a621f29fb8bf99f4, []int{0} + return fileDescriptor_02569cd74fc8ae65, []int{0} } func (m *GenesisState) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -91,31 +91,32 @@ func (m *GenesisState) GetParams() Params { } func init() { - proto.RegisterType((*GenesisState)(nil), "slinky.marketmap.v1.GenesisState") + proto.RegisterType((*GenesisState)(nil), "connect.marketmap.v2.GenesisState") } -func init() { proto.RegisterFile("slinky/marketmap/v1/genesis.proto", fileDescriptor_a621f29fb8bf99f4) } +func init() { + proto.RegisterFile("connect/marketmap/v2/genesis.proto", fileDescriptor_02569cd74fc8ae65) +} -var fileDescriptor_a621f29fb8bf99f4 = []byte{ - // 274 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x2c, 0xce, 0xc9, 0xcc, - 0xcb, 0xae, 0xd4, 0xcf, 0x4d, 0x2c, 0xca, 0x4e, 0x2d, 0xc9, 0x4d, 0x2c, 0xd0, 0x2f, 0x33, 0xd4, - 0x4f, 0x4f, 0xcd, 0x4b, 0x2d, 0xce, 0x2c, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x86, - 0x28, 0xd1, 0x83, 0x2b, 0xd1, 0x2b, 0x33, 0x94, 0x12, 0x49, 0xcf, 0x4f, 0xcf, 0x07, 0xcb, 0xeb, - 0x83, 0x58, 0x10, 0xa5, 0x52, 0x0a, 0xd8, 0x4c, 0x83, 0x70, 0xf0, 0xa9, 0x28, 0x48, 0x2c, 0x4a, - 0xcc, 0x85, 0x5a, 0xa7, 0xb4, 0x91, 0x91, 0x8b, 0xc7, 0x1d, 0xe2, 0x80, 0xe0, 0x92, 0xc4, 0x92, - 0x54, 0x21, 0x67, 0x2e, 0x2e, 0x88, 0xea, 0xf8, 0xdc, 0xc4, 0x02, 0x09, 0x46, 0x05, 0x46, 0x0d, - 0x6e, 0x23, 0x39, 0x3d, 0x2c, 0x8e, 0xd2, 0xf3, 0x05, 0x73, 0x7c, 0x13, 0x0b, 0x9c, 0x58, 0x4e, - 0xdc, 0x93, 0x67, 0x08, 0xe2, 0xcc, 0x85, 0x09, 0x08, 0x29, 0x72, 0xf1, 0xe4, 0x24, 0x16, 0x97, - 0xc4, 0x97, 0x16, 0xa4, 0x24, 0x96, 0xa4, 0xa6, 0x48, 0x30, 0x29, 0x30, 0x6a, 0xb0, 0x04, 0x71, - 0x83, 0xc4, 0x42, 0x21, 0x42, 0x42, 0x96, 0x5c, 0x6c, 0x10, 0x87, 0x48, 0x30, 0x83, 0xed, 0x90, - 0xc6, 0x6a, 0x47, 0x00, 0x58, 0x09, 0xd4, 0x02, 0xa8, 0x06, 0x27, 0xaf, 0x13, 0x8f, 0xe4, 0x18, - 0x2f, 0x3c, 0x92, 0x63, 0x7c, 0xf0, 0x48, 0x8e, 0x71, 0xc2, 0x63, 0x39, 0x86, 0x0b, 0x8f, 0xe5, - 0x18, 0x6e, 0x3c, 0x96, 0x63, 0x88, 0x32, 0x48, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, - 0xcf, 0xd5, 0x2f, 0xce, 0xce, 0x2c, 0xd0, 0xcd, 0x4d, 0x2d, 0xd3, 0x4f, 0xce, 0xcf, 0xcb, 0x4b, - 0x4d, 0x2e, 0xd1, 0x2f, 0x33, 0xd2, 0xaf, 0x40, 0x0a, 0x89, 0x92, 0xca, 0x82, 0xd4, 0xe2, 0x24, - 0x36, 0x70, 0x30, 0x18, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0x33, 0x9d, 0x32, 0x5d, 0x9a, 0x01, - 0x00, 0x00, +var fileDescriptor_02569cd74fc8ae65 = []byte{ + // 269 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x4a, 0xce, 0xcf, 0xcb, + 0x4b, 0x4d, 0x2e, 0xd1, 0xcf, 0x4d, 0x2c, 0xca, 0x4e, 0x2d, 0xc9, 0x4d, 0x2c, 0xd0, 0x2f, 0x33, + 0xd2, 0x4f, 0x4f, 0xcd, 0x4b, 0x2d, 0xce, 0x2c, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, + 0x81, 0xaa, 0xd1, 0x83, 0xab, 0xd1, 0x2b, 0x33, 0x92, 0x12, 0x49, 0xcf, 0x4f, 0xcf, 0x07, 0x2b, + 0xd0, 0x07, 0xb1, 0x20, 0x6a, 0xa5, 0x14, 0xb1, 0x9a, 0x07, 0xe1, 0xe0, 0x55, 0x52, 0x90, 0x58, + 0x94, 0x98, 0x0b, 0xb5, 0x51, 0x69, 0x33, 0x23, 0x17, 0x8f, 0x3b, 0xc4, 0x0d, 0xc1, 0x25, 0x89, + 0x25, 0xa9, 0x42, 0x2e, 0x5c, 0x5c, 0x10, 0xd5, 0xf1, 0xb9, 0x89, 0x05, 0x12, 0x8c, 0x0a, 0x8c, + 0x1a, 0xdc, 0x46, 0xf2, 0x7a, 0xd8, 0xdc, 0xa5, 0xe7, 0x0b, 0xe6, 0xf8, 0x26, 0x16, 0x38, 0xb1, + 0x9c, 0xb8, 0x27, 0xcf, 0x10, 0xc4, 0x99, 0x0b, 0x13, 0x10, 0x52, 0xe4, 0xe2, 0xc9, 0x49, 0x2c, + 0x2e, 0x89, 0x2f, 0x2d, 0x48, 0x49, 0x2c, 0x49, 0x4d, 0x91, 0x60, 0x52, 0x60, 0xd4, 0x60, 0x09, + 0xe2, 0x06, 0x89, 0x85, 0x42, 0x84, 0x84, 0xac, 0xb8, 0xd8, 0x20, 0x2e, 0x91, 0x60, 0x06, 0x5b, + 0x22, 0x83, 0xdd, 0x92, 0x00, 0xb0, 0x1a, 0xa8, 0x0d, 0x50, 0x1d, 0x4e, 0x5e, 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, 0x65, 0x90, 0x9e, 0x59, 0x92, 0x51, 0x9a, 0xa4, 0x97, + 0x9c, 0x9f, 0xab, 0x5f, 0x9c, 0x9d, 0x59, 0xa0, 0x9b, 0x9b, 0x5a, 0xa6, 0x0f, 0x0b, 0x86, 0x32, + 0x23, 0xfd, 0x0a, 0xa4, 0xb0, 0x28, 0xa9, 0x2c, 0x48, 0x2d, 0x4e, 0x62, 0x03, 0x07, 0x84, 0x31, + 0x20, 0x00, 0x00, 0xff, 0xff, 0x3f, 0x2d, 0x44, 0xf7, 0xa0, 0x01, 0x00, 0x00, } func (m *GenesisState) Marshal() (dAtA []byte, err error) { diff --git a/x/marketmap/types/market.pb.go b/x/marketmap/types/market.pb.go index fd81c5589..551bb1749 100644 --- a/x/marketmap/types/market.pb.go +++ b/x/marketmap/types/market.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: slinky/marketmap/v1/market.proto +// source: connect/marketmap/v2/market.proto package types @@ -37,7 +37,7 @@ type Market struct { func (m *Market) Reset() { *m = Market{} } func (*Market) ProtoMessage() {} func (*Market) Descriptor() ([]byte, []int) { - return fileDescriptor_fefe265720fc8a78, []int{0} + return fileDescriptor_54627e801f077fe4, []int{0} } func (m *Market) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -103,7 +103,7 @@ type Ticker struct { func (m *Ticker) Reset() { *m = Ticker{} } func (*Ticker) ProtoMessage() {} func (*Ticker) Descriptor() ([]byte, []int) { - return fileDescriptor_fefe265720fc8a78, []int{1} + return fileDescriptor_54627e801f077fe4, []int{1} } func (m *Ticker) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -192,7 +192,7 @@ func (m *ProviderConfig) Reset() { *m = ProviderConfig{} } func (m *ProviderConfig) String() string { return proto.CompactTextString(m) } func (*ProviderConfig) ProtoMessage() {} func (*ProviderConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_fefe265720fc8a78, []int{2} + return fileDescriptor_54627e801f077fe4, []int{2} } func (m *ProviderConfig) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -266,7 +266,7 @@ type MarketMap struct { func (m *MarketMap) Reset() { *m = MarketMap{} } func (*MarketMap) ProtoMessage() {} func (*MarketMap) Descriptor() ([]byte, []int) { - return fileDescriptor_fefe265720fc8a78, []int{3} + return fileDescriptor_54627e801f077fe4, []int{3} } func (m *MarketMap) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -303,52 +303,52 @@ func (m *MarketMap) GetMarkets() map[string]Market { } func init() { - proto.RegisterType((*Market)(nil), "slinky.marketmap.v1.Market") - proto.RegisterType((*Ticker)(nil), "slinky.marketmap.v1.Ticker") - proto.RegisterType((*ProviderConfig)(nil), "slinky.marketmap.v1.ProviderConfig") - proto.RegisterType((*MarketMap)(nil), "slinky.marketmap.v1.MarketMap") - proto.RegisterMapType((map[string]Market)(nil), "slinky.marketmap.v1.MarketMap.MarketsEntry") + proto.RegisterType((*Market)(nil), "connect.marketmap.v2.Market") + proto.RegisterType((*Ticker)(nil), "connect.marketmap.v2.Ticker") + proto.RegisterType((*ProviderConfig)(nil), "connect.marketmap.v2.ProviderConfig") + proto.RegisterType((*MarketMap)(nil), "connect.marketmap.v2.MarketMap") + proto.RegisterMapType((map[string]Market)(nil), "connect.marketmap.v2.MarketMap.MarketsEntry") } -func init() { proto.RegisterFile("slinky/marketmap/v1/market.proto", fileDescriptor_fefe265720fc8a78) } +func init() { proto.RegisterFile("connect/marketmap/v2/market.proto", fileDescriptor_54627e801f077fe4) } -var fileDescriptor_fefe265720fc8a78 = []byte{ - // 555 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x53, 0x41, 0x8b, 0xd3, 0x4e, - 0x14, 0xcf, 0x6c, 0xfb, 0xef, 0xb6, 0xb3, 0xdd, 0xb6, 0xff, 0x51, 0x24, 0x54, 0xcc, 0x86, 0xf6, - 0x12, 0x50, 0x13, 0x5b, 0x2f, 0xba, 0xc7, 0x16, 0x41, 0x57, 0x56, 0x97, 0xb8, 0x20, 0x78, 0x09, - 0xd3, 0x74, 0xda, 0x1d, 0xda, 0xcc, 0x84, 0xc9, 0x34, 0x58, 0x4f, 0x7e, 0x04, 0x8f, 0x1e, 0x05, - 0x3f, 0x86, 0x5f, 0x60, 0x8f, 0x7b, 0x12, 0x0f, 0x22, 0xd2, 0xe2, 0xf7, 0x90, 0x4c, 0xa6, 0xdd, - 0x16, 0x2a, 0xec, 0xed, 0xbd, 0x37, 0xbf, 0xf9, 0xbd, 0xf9, 0xfd, 0xde, 0x1b, 0x68, 0x27, 0x53, - 0xca, 0x26, 0x73, 0x2f, 0xc2, 0x62, 0x42, 0x64, 0x84, 0x63, 0x2f, 0xed, 0xe8, 0xc4, 0x8d, 0x05, - 0x97, 0x1c, 0xdd, 0xca, 0x11, 0xee, 0x1a, 0xe1, 0xa6, 0x9d, 0xe6, 0xed, 0x31, 0x1f, 0x73, 0x75, - 0xee, 0x65, 0x51, 0x0e, 0x6d, 0xb6, 0x35, 0x99, 0x9c, 0xc7, 0x24, 0xc9, 0x88, 0xc2, 0x99, 0x10, - 0x84, 0x85, 0xf3, 0x20, 0xc6, 0x54, 0xe4, 0xa0, 0xd6, 0x57, 0x00, 0x4b, 0xa7, 0x8a, 0x0b, 0x3d, - 0x85, 0x25, 0x49, 0xc3, 0x09, 0x11, 0x26, 0xb0, 0x81, 0x73, 0xd0, 0xbd, 0xeb, 0xee, 0xe8, 0xe5, - 0x9e, 0x2b, 0x48, 0xaf, 0x78, 0xf9, 0xeb, 0xc8, 0xf0, 0xf5, 0x05, 0x74, 0x0e, 0x1b, 0xb1, 0xe0, - 0x29, 0x1d, 0x12, 0x11, 0x84, 0x9c, 0x8d, 0xe8, 0x38, 0x31, 0xf7, 0xec, 0x82, 0x73, 0xd0, 0x6d, - 0xef, 0x24, 0x39, 0xd3, 0xe0, 0xbe, 0xc2, 0x6a, 0xb2, 0x7a, 0xbc, 0x55, 0x4d, 0x8e, 0xcb, 0x9f, - 0xbf, 0x1c, 0x19, 0x1f, 0x7f, 0xda, 0x46, 0xeb, 0x0f, 0x80, 0xa5, 0xbc, 0x31, 0x7a, 0x0e, 0x0f, - 0xb7, 0x74, 0xe8, 0xc7, 0xde, 0x5b, 0xf5, 0x51, 0x6a, 0xb3, 0x1e, 0x7d, 0x8d, 0x3a, 0xc3, 0x74, - 0xf5, 0xdc, 0x6a, 0xb8, 0x51, 0x43, 0x4d, 0x58, 0x1e, 0x92, 0x90, 0x46, 0x78, 0x9a, 0x3d, 0x16, - 0x38, 0x45, 0x7f, 0x9d, 0xa3, 0x07, 0x10, 0x45, 0x94, 0x05, 0x1b, 0xa2, 0x66, 0x4c, 0x9a, 0x05, - 0x85, 0x6a, 0x44, 0x94, 0x5d, 0x0b, 0x98, 0x31, 0x89, 0x4c, 0xb8, 0x4f, 0x18, 0x1e, 0x4c, 0xc9, - 0xd0, 0xac, 0xd9, 0xc0, 0x29, 0xfb, 0xab, 0x14, 0xb5, 0xe1, 0x61, 0x44, 0x24, 0x1e, 0x62, 0x89, - 0x83, 0x93, 0x37, 0xaf, 0x5f, 0x99, 0x75, 0x1b, 0x38, 0x15, 0xbf, 0xba, 0x2a, 0x66, 0xb5, 0x0d, - 0x9d, 0xdf, 0x01, 0xac, 0x6d, 0x7b, 0x83, 0x10, 0x2c, 0x32, 0x1c, 0x11, 0x25, 0xb3, 0xe2, 0xab, - 0x18, 0x39, 0xb0, 0xc1, 0x47, 0xa3, 0x20, 0xbc, 0xc0, 0x94, 0x05, 0x7a, 0x66, 0x7b, 0xea, 0xbc, - 0xc6, 0x47, 0xa3, 0x7e, 0x56, 0xd6, 0x6e, 0xbd, 0x80, 0xff, 0x33, 0x2e, 0x22, 0x3c, 0xa5, 0x1f, - 0x48, 0x30, 0xd0, 0x8e, 0x15, 0x6e, 0xe0, 0x98, 0x5f, 0x5f, 0xdf, 0xeb, 0xe5, 0x76, 0xdd, 0x81, - 0x25, 0xca, 0x52, 0x22, 0xa4, 0x59, 0x54, 0x1a, 0x75, 0x76, 0x23, 0x89, 0xad, 0x6f, 0x00, 0x56, - 0xf2, 0x35, 0x3b, 0xc5, 0x31, 0x7a, 0x09, 0xf7, 0xf3, 0x75, 0x48, 0x4c, 0xa0, 0xb6, 0xe4, 0xfe, - 0xce, 0x2d, 0x59, 0x5f, 0xd0, 0x51, 0xf2, 0x8c, 0x49, 0x31, 0xd7, 0xb3, 0x5c, 0x31, 0x34, 0xdf, - 0xc2, 0xea, 0xe6, 0x31, 0x6a, 0xc0, 0xc2, 0x84, 0xcc, 0xb5, 0x5f, 0x59, 0x88, 0x3a, 0xf0, 0xbf, - 0x14, 0x4f, 0x67, 0x44, 0x79, 0xf4, 0xaf, 0xbd, 0xce, 0x39, 0xfc, 0x1c, 0x79, 0xbc, 0xf7, 0x04, - 0x5c, 0x8f, 0xa5, 0x77, 0x72, 0xb9, 0xb0, 0xc0, 0xd5, 0xc2, 0x02, 0xbf, 0x17, 0x16, 0xf8, 0xb4, - 0xb4, 0x8c, 0xab, 0xa5, 0x65, 0xfc, 0x58, 0x5a, 0xc6, 0xbb, 0x47, 0x63, 0x2a, 0x2f, 0x66, 0x03, - 0x37, 0xe4, 0x91, 0x97, 0x4c, 0x68, 0xfc, 0x30, 0x22, 0xa9, 0x17, 0x72, 0xc6, 0x48, 0x28, 0xbd, - 0xb4, 0xeb, 0xbd, 0xdf, 0xf8, 0xca, 0xca, 0xe7, 0x41, 0x49, 0xfd, 0xbb, 0xc7, 0x7f, 0x03, 0x00, - 0x00, 0xff, 0xff, 0xd1, 0x9c, 0x8f, 0x90, 0xeb, 0x03, 0x00, 0x00, +var fileDescriptor_54627e801f077fe4 = []byte{ + // 549 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x53, 0x41, 0x6f, 0xd3, 0x30, + 0x14, 0x8e, 0xd7, 0xd2, 0xad, 0x5e, 0xd7, 0x16, 0x6b, 0x42, 0x51, 0x85, 0xb2, 0x52, 0x76, 0xc8, + 0x61, 0x24, 0x28, 0x5c, 0x50, 0x8f, 0xad, 0x38, 0x50, 0x31, 0x98, 0x02, 0x48, 0x88, 0x4b, 0xe4, + 0xa6, 0x6e, 0x67, 0xb5, 0xb1, 0x23, 0xc7, 0x8d, 0x28, 0x27, 0x7e, 0x02, 0x47, 0x8e, 0x5c, 0xf8, + 0x19, 0xdc, 0x77, 0xdc, 0x0d, 0x0e, 0x08, 0xa1, 0x56, 0xe2, 0x77, 0xa0, 0x38, 0x4e, 0xd7, 0x4a, + 0x45, 0xda, 0xed, 0xbd, 0xe7, 0xcf, 0xdf, 0xf3, 0xf7, 0xf9, 0x3d, 0xf8, 0x20, 0xe4, 0x8c, 0x91, + 0x50, 0xba, 0x11, 0x16, 0x53, 0x22, 0x23, 0x1c, 0xbb, 0xa9, 0xa7, 0x13, 0x27, 0x16, 0x5c, 0x72, + 0x74, 0xac, 0x21, 0xce, 0x1a, 0xe2, 0xa4, 0x5e, 0xeb, 0x78, 0xc2, 0x27, 0x5c, 0x01, 0xdc, 0x2c, + 0xca, 0xb1, 0xad, 0xd3, 0x82, 0x4e, 0x2e, 0x62, 0x92, 0x64, 0x54, 0xe1, 0x5c, 0x08, 0xc2, 0xc2, + 0x45, 0x10, 0x63, 0x2a, 0x72, 0x54, 0xe7, 0x1b, 0x80, 0x95, 0x73, 0x45, 0x86, 0xba, 0xb0, 0x22, + 0x69, 0x38, 0x25, 0xc2, 0x04, 0x6d, 0x60, 0x1f, 0x7a, 0xf7, 0x9d, 0x5d, 0xdd, 0x9c, 0x37, 0x0a, + 0xd3, 0x2b, 0x5f, 0xfd, 0x3e, 0x31, 0x7c, 0x7d, 0x03, 0xbd, 0x85, 0xcd, 0x58, 0xf0, 0x94, 0x8e, + 0x88, 0x08, 0x42, 0xce, 0xc6, 0x74, 0x92, 0x98, 0x7b, 0xed, 0x92, 0x7d, 0xe8, 0x9d, 0xee, 0x66, + 0xb9, 0xd0, 0xe8, 0xbe, 0x02, 0x6b, 0xb6, 0x46, 0xbc, 0x55, 0x4d, 0xba, 0x07, 0x5f, 0xbe, 0x9e, + 0x18, 0x9f, 0x7e, 0xb5, 0x8d, 0xce, 0x5f, 0x00, 0x2b, 0x79, 0x67, 0xf4, 0x1c, 0x1e, 0x6d, 0x29, + 0xd1, 0xcf, 0xb5, 0xd6, 0x8d, 0x94, 0xe0, 0xac, 0x49, 0x5f, 0xc3, 0x2e, 0x30, 0x2d, 0x1e, 0x5c, + 0x0b, 0x37, 0x6a, 0xa8, 0x05, 0x0f, 0x46, 0x24, 0xa4, 0x11, 0x9e, 0x65, 0xcf, 0x05, 0x76, 0xd9, + 0x5f, 0xe7, 0xe8, 0x0c, 0xa2, 0x88, 0xb2, 0x60, 0x43, 0xd6, 0x9c, 0x49, 0xb3, 0xa4, 0x50, 0xcd, + 0x88, 0xb2, 0x1b, 0x05, 0x73, 0x26, 0x91, 0x09, 0xf7, 0x09, 0xc3, 0xc3, 0x19, 0x19, 0x99, 0xf5, + 0x36, 0xb0, 0x0f, 0xfc, 0x22, 0x45, 0x0f, 0xe1, 0x51, 0x44, 0x24, 0x1e, 0x61, 0x89, 0x83, 0xc1, + 0xeb, 0x57, 0x2f, 0xcd, 0x46, 0x1b, 0xd8, 0x55, 0xbf, 0x56, 0x14, 0xb3, 0xda, 0x86, 0xd0, 0x1f, + 0x00, 0xd6, 0xb7, 0xcd, 0x41, 0x08, 0x96, 0x19, 0x8e, 0x88, 0xd2, 0x59, 0xf5, 0x55, 0x8c, 0x6c, + 0xd8, 0xe4, 0xe3, 0x71, 0x10, 0x5e, 0x62, 0xca, 0x02, 0xfd, 0x6d, 0x7b, 0xea, 0xbc, 0xce, 0xc7, + 0xe3, 0x7e, 0x56, 0xd6, 0x76, 0x0d, 0xe0, 0x5d, 0xc6, 0x45, 0x84, 0x67, 0xf4, 0x23, 0x09, 0x86, + 0xda, 0xb2, 0xd2, 0x6d, 0x2c, 0xf3, 0x1b, 0xeb, 0x8b, 0xbd, 0xdc, 0xaf, 0x7b, 0xb0, 0x42, 0x59, + 0x4a, 0x84, 0x34, 0xcb, 0x4a, 0xa4, 0xce, 0x6e, 0xa5, 0xb1, 0xf3, 0x1d, 0xc0, 0x6a, 0x3e, 0x6a, + 0xe7, 0x38, 0x46, 0x2f, 0xe0, 0x7e, 0x3e, 0x10, 0x89, 0x09, 0xd4, 0xa0, 0x9c, 0xed, 0x1e, 0x94, + 0xf5, 0x0d, 0x1d, 0x25, 0xcf, 0x98, 0x14, 0x0b, 0xfd, 0x9b, 0x05, 0x45, 0xeb, 0x1d, 0xac, 0x6d, + 0x1e, 0xa3, 0x26, 0x2c, 0x4d, 0xc9, 0x42, 0x3b, 0x96, 0x85, 0xc8, 0x83, 0x77, 0x52, 0x3c, 0x9b, + 0x13, 0xe5, 0xd2, 0x7f, 0x87, 0x3b, 0x27, 0xf1, 0x73, 0x68, 0x77, 0xef, 0x29, 0xb8, 0xf9, 0x99, + 0xde, 0xe0, 0x6a, 0x69, 0x81, 0xeb, 0xa5, 0x05, 0xfe, 0x2c, 0x2d, 0xf0, 0x79, 0x65, 0x19, 0xd7, + 0x2b, 0xcb, 0xf8, 0xb9, 0xb2, 0x8c, 0xf7, 0x8f, 0x27, 0x54, 0x5e, 0xce, 0x87, 0x4e, 0xc8, 0x23, + 0x37, 0x99, 0xd2, 0xf8, 0x51, 0x44, 0x52, 0xb7, 0x58, 0xbf, 0xd4, 0x73, 0x3f, 0x6c, 0xac, 0xb4, + 0x72, 0x7a, 0x58, 0x51, 0xdb, 0xf7, 0xe4, 0x5f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x11, 0xa9, 0x16, + 0x4f, 0xf4, 0x03, 0x00, 0x00, } func (m *Market) Marshal() (dAtA []byte, err error) { diff --git a/x/marketmap/types/params.pb.go b/x/marketmap/types/params.pb.go index fcced513f..accfb1195 100644 --- a/x/marketmap/types/params.pb.go +++ b/x/marketmap/types/params.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: slinky/marketmap/v1/params.proto +// source: connect/marketmap/v2/params.proto package types @@ -36,7 +36,7 @@ func (m *Params) Reset() { *m = Params{} } func (m *Params) String() string { return proto.CompactTextString(m) } func (*Params) ProtoMessage() {} func (*Params) Descriptor() ([]byte, []int) { - return fileDescriptor_ee4934564ff92a6f, []int{0} + return fileDescriptor_40e3a88492006139, []int{0} } func (m *Params) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -80,26 +80,26 @@ func (m *Params) GetAdmin() string { } func init() { - proto.RegisterType((*Params)(nil), "slinky.marketmap.v1.Params") + proto.RegisterType((*Params)(nil), "connect.marketmap.v2.Params") } -func init() { proto.RegisterFile("slinky/marketmap/v1/params.proto", fileDescriptor_ee4934564ff92a6f) } +func init() { proto.RegisterFile("connect/marketmap/v2/params.proto", fileDescriptor_40e3a88492006139) } -var fileDescriptor_ee4934564ff92a6f = []byte{ - // 198 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x28, 0xce, 0xc9, 0xcc, - 0xcb, 0xae, 0xd4, 0xcf, 0x4d, 0x2c, 0xca, 0x4e, 0x2d, 0xc9, 0x4d, 0x2c, 0xd0, 0x2f, 0x33, 0xd4, - 0x2f, 0x48, 0x2c, 0x4a, 0xcc, 0x2d, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x86, 0xa8, - 0xd0, 0x83, 0xab, 0xd0, 0x2b, 0x33, 0x54, 0xf2, 0xe5, 0x62, 0x0b, 0x00, 0x2b, 0x12, 0xd2, 0xe5, - 0x12, 0x82, 0xc8, 0xc4, 0x27, 0x96, 0x96, 0x64, 0xe4, 0x17, 0x65, 0x96, 0x64, 0xa6, 0x16, 0x4b, - 0x30, 0x2a, 0x30, 0x6b, 0x70, 0x06, 0x09, 0x42, 0x64, 0x1c, 0x11, 0x12, 0x42, 0x22, 0x5c, 0xac, - 0x89, 0x29, 0xb9, 0x99, 0x79, 0x12, 0x4c, 0x0a, 0x8c, 0x1a, 0x9c, 0x41, 0x10, 0x8e, 0x93, 0xd7, - 0x89, 0x47, 0x72, 0x8c, 0x17, 0x1e, 0xc9, 0x31, 0x3e, 0x78, 0x24, 0xc7, 0x38, 0xe1, 0xb1, 0x1c, - 0xc3, 0x85, 0xc7, 0x72, 0x0c, 0x37, 0x1e, 0xcb, 0x31, 0x44, 0x19, 0xa4, 0x67, 0x96, 0x64, 0x94, - 0x26, 0xe9, 0x25, 0xe7, 0xe7, 0xea, 0x17, 0x67, 0x67, 0x16, 0xe8, 0xe6, 0xa6, 0x96, 0xe9, 0x27, - 0xe7, 0xe7, 0xe5, 0xa5, 0x26, 0x97, 0xe8, 0x97, 0x19, 0xe9, 0x57, 0x20, 0xb9, 0xbc, 0xa4, 0xb2, - 0x20, 0xb5, 0x38, 0x89, 0x0d, 0xec, 0x6c, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0x25, 0xf1, - 0xe0, 0xdb, 0xda, 0x00, 0x00, 0x00, +var fileDescriptor_40e3a88492006139 = []byte{ + // 193 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x4c, 0xce, 0xcf, 0xcb, + 0x4b, 0x4d, 0x2e, 0xd1, 0xcf, 0x4d, 0x2c, 0xca, 0x4e, 0x2d, 0xc9, 0x4d, 0x2c, 0xd0, 0x2f, 0x33, + 0xd2, 0x2f, 0x48, 0x2c, 0x4a, 0xcc, 0x2d, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x81, + 0x2a, 0xd1, 0x83, 0x2b, 0xd1, 0x2b, 0x33, 0x52, 0xf2, 0xe5, 0x62, 0x0b, 0x00, 0xab, 0x12, 0xd2, + 0xe5, 0x12, 0x82, 0xc8, 0xc4, 0x27, 0x96, 0x96, 0x64, 0xe4, 0x17, 0x65, 0x96, 0x64, 0xa6, 0x16, + 0x4b, 0x30, 0x2a, 0x30, 0x6b, 0x70, 0x06, 0x09, 0x42, 0x64, 0x1c, 0x11, 0x12, 0x42, 0x22, 0x5c, + 0xac, 0x89, 0x29, 0xb9, 0x99, 0x79, 0x12, 0x4c, 0x0a, 0x8c, 0x1a, 0x9c, 0x41, 0x10, 0x8e, 0x93, + 0xd7, 0x89, 0x47, 0x72, 0x8c, 0x17, 0x1e, 0xc9, 0x31, 0x3e, 0x78, 0x24, 0xc7, 0x38, 0xe1, 0xb1, + 0x1c, 0xc3, 0x85, 0xc7, 0x72, 0x0c, 0x37, 0x1e, 0xcb, 0x31, 0x44, 0x19, 0xa4, 0x67, 0x96, 0x64, + 0x94, 0x26, 0xe9, 0x25, 0xe7, 0xe7, 0xea, 0x17, 0x67, 0x67, 0x16, 0xe8, 0xe6, 0xa6, 0x96, 0xe9, + 0xc3, 0x5c, 0x5d, 0x66, 0xa4, 0x5f, 0x81, 0xe4, 0xf4, 0x92, 0xca, 0x82, 0xd4, 0xe2, 0x24, 0x36, + 0xb0, 0xbb, 0x8d, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0x37, 0x9c, 0xf0, 0x12, 0xdc, 0x00, 0x00, + 0x00, } func (m *Params) Marshal() (dAtA []byte, err error) { diff --git a/x/marketmap/types/query.pb.go b/x/marketmap/types/query.pb.go index 8b12f2774..87e9c8e27 100644 --- a/x/marketmap/types/query.pb.go +++ b/x/marketmap/types/query.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: slinky/marketmap/v1/query.proto +// source: connect/marketmap/v2/query.proto package types @@ -39,7 +39,7 @@ func (m *MarketMapRequest) Reset() { *m = MarketMapRequest{} } func (m *MarketMapRequest) String() string { return proto.CompactTextString(m) } func (*MarketMapRequest) ProtoMessage() {} func (*MarketMapRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_b5d6ff68f3c474a0, []int{0} + return fileDescriptor_fc65f1e15c5a0bef, []int{0} } func (m *MarketMapRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -85,7 +85,7 @@ func (m *MarketMapResponse) Reset() { *m = MarketMapResponse{} } func (m *MarketMapResponse) String() string { return proto.CompactTextString(m) } func (*MarketMapResponse) ProtoMessage() {} func (*MarketMapResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_b5d6ff68f3c474a0, []int{1} + return fileDescriptor_fc65f1e15c5a0bef, []int{1} } func (m *MarketMapResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -147,7 +147,7 @@ func (m *MarketRequest) Reset() { *m = MarketRequest{} } func (m *MarketRequest) String() string { return proto.CompactTextString(m) } func (*MarketRequest) ProtoMessage() {} func (*MarketRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_b5d6ff68f3c474a0, []int{2} + return fileDescriptor_fc65f1e15c5a0bef, []int{2} } func (m *MarketRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -193,7 +193,7 @@ func (m *MarketResponse) Reset() { *m = MarketResponse{} } func (m *MarketResponse) String() string { return proto.CompactTextString(m) } func (*MarketResponse) ProtoMessage() {} func (*MarketResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_b5d6ff68f3c474a0, []int{3} + return fileDescriptor_fc65f1e15c5a0bef, []int{3} } func (m *MarketResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -237,7 +237,7 @@ func (m *ParamsRequest) Reset() { *m = ParamsRequest{} } func (m *ParamsRequest) String() string { return proto.CompactTextString(m) } func (*ParamsRequest) ProtoMessage() {} func (*ParamsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_b5d6ff68f3c474a0, []int{4} + return fileDescriptor_fc65f1e15c5a0bef, []int{4} } func (m *ParamsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -275,7 +275,7 @@ func (m *ParamsResponse) Reset() { *m = ParamsResponse{} } func (m *ParamsResponse) String() string { return proto.CompactTextString(m) } func (*ParamsResponse) ProtoMessage() {} func (*ParamsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_b5d6ff68f3c474a0, []int{5} + return fileDescriptor_fc65f1e15c5a0bef, []int{5} } func (m *ParamsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -320,7 +320,7 @@ func (m *LastUpdatedRequest) Reset() { *m = LastUpdatedRequest{} } func (m *LastUpdatedRequest) String() string { return proto.CompactTextString(m) } func (*LastUpdatedRequest) ProtoMessage() {} func (*LastUpdatedRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_b5d6ff68f3c474a0, []int{6} + return fileDescriptor_fc65f1e15c5a0bef, []int{6} } func (m *LastUpdatedRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -359,7 +359,7 @@ func (m *LastUpdatedResponse) Reset() { *m = LastUpdatedResponse{} } func (m *LastUpdatedResponse) String() string { return proto.CompactTextString(m) } func (*LastUpdatedResponse) ProtoMessage() {} func (*LastUpdatedResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_b5d6ff68f3c474a0, []int{7} + return fileDescriptor_fc65f1e15c5a0bef, []int{7} } func (m *LastUpdatedResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -396,57 +396,55 @@ func (m *LastUpdatedResponse) GetLastUpdated() uint64 { } func init() { - proto.RegisterType((*MarketMapRequest)(nil), "slinky.marketmap.v1.MarketMapRequest") - proto.RegisterType((*MarketMapResponse)(nil), "slinky.marketmap.v1.MarketMapResponse") - proto.RegisterType((*MarketRequest)(nil), "slinky.marketmap.v1.MarketRequest") - proto.RegisterType((*MarketResponse)(nil), "slinky.marketmap.v1.MarketResponse") - proto.RegisterType((*ParamsRequest)(nil), "slinky.marketmap.v1.ParamsRequest") - proto.RegisterType((*ParamsResponse)(nil), "slinky.marketmap.v1.ParamsResponse") - proto.RegisterType((*LastUpdatedRequest)(nil), "slinky.marketmap.v1.LastUpdatedRequest") - proto.RegisterType((*LastUpdatedResponse)(nil), "slinky.marketmap.v1.LastUpdatedResponse") -} - -func init() { proto.RegisterFile("slinky/marketmap/v1/query.proto", fileDescriptor_b5d6ff68f3c474a0) } - -var fileDescriptor_b5d6ff68f3c474a0 = []byte{ - // 579 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x54, 0xc1, 0x6e, 0xd3, 0x4a, - 0x14, 0xcd, 0xf4, 0xb5, 0x79, 0x64, 0xd2, 0x14, 0x98, 0x76, 0x11, 0xd2, 0xd6, 0x49, 0x1d, 0x01, - 0xd9, 0xe0, 0xa1, 0x61, 0x03, 0x0b, 0x36, 0xcd, 0x86, 0x50, 0x2a, 0x4a, 0x24, 0x16, 0x64, 0x13, - 0x4d, 0x9d, 0x51, 0x6a, 0x25, 0xf6, 0x4c, 0xed, 0x71, 0x44, 0xb6, 0x7c, 0x01, 0x12, 0xa2, 0x7f, - 0xc0, 0x07, 0xf0, 0x17, 0x5d, 0x56, 0x62, 0xc3, 0x0a, 0xa1, 0x84, 0x0f, 0x41, 0xf6, 0x8c, 0x53, - 0x9b, 0xda, 0xce, 0xce, 0xbe, 0x73, 0xee, 0x39, 0x67, 0xce, 0xbd, 0x1a, 0x58, 0xf7, 0x26, 0x96, - 0x33, 0x9e, 0x61, 0x9b, 0xb8, 0x63, 0x2a, 0x6c, 0xc2, 0xf1, 0xf4, 0x10, 0x5f, 0xf8, 0xd4, 0x9d, - 0x19, 0xdc, 0x65, 0x82, 0xa1, 0x6d, 0x09, 0x30, 0x96, 0x00, 0x63, 0x7a, 0x58, 0xdb, 0x19, 0xb1, - 0x11, 0x0b, 0xcf, 0x71, 0xf0, 0x25, 0xa1, 0xb5, 0xbd, 0x11, 0x63, 0xa3, 0x09, 0xc5, 0x84, 0x5b, - 0x98, 0x38, 0x0e, 0x13, 0x44, 0x58, 0xcc, 0xf1, 0xd4, 0x69, 0x53, 0x29, 0x89, 0x19, 0xa7, 0x5e, - 0xa0, 0x62, 0xfa, 0xae, 0x4b, 0x1d, 0x73, 0x36, 0xe0, 0xc4, 0x72, 0x15, 0xa8, 0x91, 0x66, 0x47, - 0xfe, 0xe4, 0x21, 0x38, 0x71, 0x89, 0xad, 0x84, 0x74, 0x04, 0xef, 0x9d, 0x84, 0x87, 0x27, 0x84, - 0xf7, 0xe8, 0x85, 0x4f, 0x3d, 0xa1, 0x5f, 0x02, 0x78, 0x3f, 0x56, 0xf4, 0x38, 0x73, 0x3c, 0x8a, - 0x3a, 0x10, 0x4a, 0x9a, 0x81, 0x4d, 0x78, 0x15, 0x34, 0x40, 0xab, 0xdc, 0xd6, 0x8c, 0x94, 0x0b, - 0x1b, 0xcb, 0xde, 0xa3, 0xf5, 0xab, 0x5f, 0xf5, 0x42, 0xaf, 0x64, 0x47, 0x05, 0x74, 0x00, 0x37, - 0x27, 0xc4, 0x13, 0x03, 0x9f, 0x0f, 0x89, 0xa0, 0xc3, 0xea, 0x5a, 0x03, 0xb4, 0xd6, 0x7b, 0xe5, - 0xa0, 0xf6, 0x5e, 0x96, 0xd0, 0x03, 0x78, 0xc7, 0x3c, 0x27, 0x96, 0x33, 0xb0, 0x86, 0xd5, 0xff, - 0x1a, 0xa0, 0x55, 0xea, 0xfd, 0x1f, 0xfe, 0x77, 0x87, 0xfa, 0x07, 0x58, 0x91, 0xdc, 0xca, 0x29, - 0x7a, 0x05, 0x2b, 0x89, 0x60, 0x94, 0xad, 0xfd, 0xc8, 0x56, 0x18, 0x5f, 0x60, 0xa9, 0xa3, 0x50, - 0xa7, 0xc4, 0x72, 0x95, 0xab, 0x4d, 0x33, 0x56, 0xd3, 0x8f, 0xe1, 0x56, 0x44, 0xad, 0xee, 0xfb, - 0x02, 0x16, 0xa5, 0x6f, 0x45, 0xba, 0x9b, 0x73, 0x57, 0x45, 0xa9, 0x1a, 0xf4, 0xbb, 0xb0, 0x72, - 0x1a, 0x86, 0x1c, 0x25, 0x7a, 0x0c, 0xb7, 0xa2, 0xc2, 0x0d, 0xbb, 0x9c, 0x43, 0x2e, 0xbb, 0x6c, - 0x8a, 0xd8, 0x65, 0x83, 0xbe, 0x03, 0xd1, 0x9b, 0x9b, 0xbc, 0x22, 0x89, 0xe7, 0x70, 0x3b, 0x51, - 0x55, 0x3a, 0xff, 0x06, 0x0e, 0x6e, 0x05, 0xde, 0xfe, 0xba, 0x01, 0x37, 0xde, 0x05, 0x4b, 0x8c, - 0xbe, 0x01, 0x58, 0x5a, 0x0e, 0x0f, 0x3d, 0xcc, 0x1f, 0xae, 0x12, 0xae, 0x3d, 0x5a, 0x05, 0x93, - 0x4e, 0xf4, 0xee, 0xa7, 0x1f, 0x7f, 0xbe, 0xac, 0x75, 0xfa, 0x0d, 0xa4, 0xe1, 0xec, 0xc5, 0xb5, - 0x09, 0x47, 0x75, 0x6c, 0x32, 0xc7, 0xa1, 0xa6, 0xc8, 0x02, 0x5c, 0x02, 0x58, 0x94, 0x02, 0x48, - 0xcf, 0x51, 0x8f, 0x1c, 0x36, 0x73, 0x31, 0xca, 0x5e, 0x27, 0xb4, 0xf7, 0xb2, 0xbf, 0x8f, 0x76, - 0x73, 0xec, 0xa1, 0xbd, 0x3c, 0x6f, 0xe8, 0x3b, 0x80, 0xe5, 0xd8, 0x14, 0xd0, 0xe3, 0x54, 0xe5, - 0xdb, 0xd3, 0xab, 0xb5, 0x56, 0x03, 0x95, 0xcf, 0xb7, 0xa1, 0xcf, 0x6e, 0xbf, 0x89, 0x0e, 0x52, - 0x7d, 0xc6, 0xa7, 0x8d, 0xf4, 0x74, 0xb7, 0x09, 0x4c, 0x10, 0xa6, 0xdc, 0xb3, 0x8c, 0x30, 0x13, - 0xab, 0x9c, 0x11, 0x66, 0x72, 0xbb, 0x57, 0x86, 0x29, 0x37, 0x39, 0x2b, 0x4c, 0x79, 0x7a, 0xf4, - 0xfa, 0x6a, 0xae, 0x81, 0xeb, 0xb9, 0x06, 0x7e, 0xcf, 0x35, 0xf0, 0x79, 0xa1, 0x15, 0xae, 0x17, - 0x5a, 0xe1, 0xe7, 0x42, 0x2b, 0xf4, 0x9f, 0x8e, 0x2c, 0x71, 0xee, 0x9f, 0x19, 0x26, 0xb3, 0xb1, - 0x37, 0xb6, 0xf8, 0x13, 0x9b, 0x4e, 0x97, 0x54, 0xd3, 0x36, 0xfe, 0x18, 0xe3, 0x0b, 0x9f, 0x80, - 0xb3, 0x62, 0xf8, 0xda, 0x3d, 0xfb, 0x1b, 0x00, 0x00, 0xff, 0xff, 0xf4, 0xb0, 0xa2, 0x29, 0xc2, - 0x05, 0x00, 0x00, + proto.RegisterType((*MarketMapRequest)(nil), "connect.marketmap.v2.MarketMapRequest") + proto.RegisterType((*MarketMapResponse)(nil), "connect.marketmap.v2.MarketMapResponse") + proto.RegisterType((*MarketRequest)(nil), "connect.marketmap.v2.MarketRequest") + proto.RegisterType((*MarketResponse)(nil), "connect.marketmap.v2.MarketResponse") + proto.RegisterType((*ParamsRequest)(nil), "connect.marketmap.v2.ParamsRequest") + proto.RegisterType((*ParamsResponse)(nil), "connect.marketmap.v2.ParamsResponse") + proto.RegisterType((*LastUpdatedRequest)(nil), "connect.marketmap.v2.LastUpdatedRequest") + proto.RegisterType((*LastUpdatedResponse)(nil), "connect.marketmap.v2.LastUpdatedResponse") +} + +func init() { proto.RegisterFile("connect/marketmap/v2/query.proto", fileDescriptor_fc65f1e15c5a0bef) } + +var fileDescriptor_fc65f1e15c5a0bef = []byte{ + // 545 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x54, 0x31, 0x6f, 0xd3, 0x40, + 0x14, 0xce, 0x95, 0x10, 0xc8, 0x4b, 0x53, 0xe0, 0xc8, 0x10, 0xa2, 0xc8, 0x49, 0x4c, 0x44, 0x03, + 0x12, 0x36, 0x32, 0x0b, 0x62, 0x2c, 0x2c, 0x45, 0xa9, 0x54, 0x22, 0xb1, 0x74, 0x89, 0xae, 0xce, + 0xc9, 0xb5, 0x5a, 0xfb, 0xae, 0xf6, 0x39, 0x22, 0x2b, 0x12, 0x2b, 0x42, 0x42, 0x82, 0xbf, 0xd4, + 0xb1, 0x12, 0x0b, 0x13, 0x42, 0x09, 0x3f, 0x04, 0xd9, 0x77, 0x76, 0x1d, 0x9a, 0x38, 0xdd, 0x72, + 0xef, 0xbe, 0xf7, 0x7d, 0xdf, 0x7d, 0xef, 0xc5, 0xd0, 0xb5, 0x99, 0xef, 0x53, 0x5b, 0x98, 0x1e, + 0x09, 0x4e, 0xa9, 0xf0, 0x08, 0x37, 0xa7, 0x96, 0x79, 0x1e, 0xd1, 0x60, 0x66, 0xf0, 0x80, 0x09, + 0x86, 0x1b, 0x0a, 0x61, 0x64, 0x08, 0x63, 0x6a, 0xb5, 0x1a, 0x0e, 0x73, 0x58, 0x02, 0x30, 0xe3, + 0x5f, 0x12, 0xdb, 0x6a, 0x3b, 0x8c, 0x39, 0x67, 0xd4, 0x24, 0xdc, 0x35, 0x89, 0xef, 0x33, 0x41, + 0x84, 0xcb, 0xfc, 0x50, 0xdd, 0xf6, 0x53, 0x2d, 0x31, 0xe3, 0x34, 0x8c, 0x75, 0xec, 0x28, 0x08, + 0xa8, 0x6f, 0xcf, 0xc6, 0x9c, 0xb8, 0x81, 0x42, 0xf5, 0x56, 0x3a, 0x92, 0x87, 0x42, 0x08, 0x27, + 0x01, 0xf1, 0x94, 0x96, 0x8e, 0xe1, 0xfe, 0x41, 0x72, 0x79, 0x40, 0xf8, 0x88, 0x9e, 0x47, 0x34, + 0x14, 0xfa, 0x0f, 0x04, 0x0f, 0x72, 0xc5, 0x90, 0x33, 0x3f, 0xa4, 0xf8, 0x2d, 0x80, 0xa4, 0x19, + 0x7b, 0x84, 0x37, 0x51, 0x17, 0x0d, 0x6a, 0x56, 0xc7, 0x58, 0xf5, 0x68, 0x23, 0x6b, 0xde, 0x2b, + 0x5f, 0xfc, 0xee, 0x94, 0x46, 0x55, 0x2f, 0x2d, 0xe0, 0x1e, 0x6c, 0x9f, 0x91, 0x50, 0x8c, 0x23, + 0x3e, 0x21, 0x82, 0x4e, 0x9a, 0x5b, 0x5d, 0x34, 0x28, 0x8f, 0x6a, 0x71, 0xed, 0x83, 0x2c, 0xe1, + 0x47, 0x70, 0xd7, 0x3e, 0x21, 0xae, 0x3f, 0x76, 0x27, 0xcd, 0x5b, 0x5d, 0x34, 0xa8, 0x8e, 0xee, + 0x24, 0xe7, 0xfd, 0x89, 0x7e, 0x04, 0x75, 0xc9, 0xad, 0xac, 0xe2, 0x7d, 0xa8, 0x2f, 0x65, 0xa3, + 0x7c, 0x69, 0x99, 0xaf, 0x24, 0xc2, 0xd8, 0xd3, 0x1b, 0x05, 0x3b, 0x24, 0x6e, 0xa0, 0x6c, 0x6d, + 0xdb, 0xb9, 0x9a, 0x3e, 0x84, 0x9d, 0x94, 0x5b, 0xbd, 0xf8, 0x35, 0x54, 0xa4, 0x71, 0xc5, 0xda, + 0x2e, 0x7a, 0xad, 0xe2, 0x54, 0x1d, 0xfa, 0x3d, 0xa8, 0x1f, 0x26, 0x39, 0xa7, 0xa1, 0x0e, 0x61, + 0x27, 0x2d, 0x5c, 0xd1, 0xcb, 0x51, 0x14, 0xd3, 0xcb, 0xae, 0x94, 0x5e, 0x76, 0xe8, 0x0d, 0xc0, + 0xc3, 0xab, 0xc8, 0x52, 0x8d, 0x57, 0xf0, 0x70, 0xa9, 0xaa, 0x84, 0xfe, 0xcf, 0x1c, 0x5d, 0xcb, + 0xdc, 0xfa, 0x5e, 0x86, 0xdb, 0xef, 0xe3, 0x65, 0xc6, 0x9f, 0x11, 0x54, 0xb3, 0xf9, 0xe1, 0x27, + 0x1b, 0x06, 0xac, 0x94, 0x5b, 0xbb, 0x1b, 0x71, 0xd2, 0x8b, 0xbe, 0xfb, 0xe9, 0xe7, 0xdf, 0x6f, + 0x5b, 0x3d, 0xdc, 0x31, 0x0b, 0xd6, 0xd7, 0x23, 0x1c, 0xcf, 0xa0, 0x22, 0xbb, 0xf1, 0xe3, 0x22, + 0xee, 0xd4, 0x40, 0xbf, 0x18, 0xa4, 0xd4, 0xfb, 0x89, 0xba, 0x86, 0xdb, 0x45, 0xea, 0xf8, 0x0b, + 0x82, 0x5a, 0x2e, 0x47, 0x3c, 0x58, 0xcd, 0x7d, 0x7d, 0x00, 0xad, 0xa7, 0x37, 0x40, 0x2a, 0x2b, + 0xcf, 0x12, 0x2b, 0x7d, 0xac, 0xaf, 0xb6, 0x92, 0x1f, 0x58, 0x9c, 0x85, 0xdc, 0x82, 0x75, 0x59, + 0x2c, 0xad, 0xda, 0xba, 0x2c, 0x96, 0xd7, 0x6f, 0x53, 0x16, 0x72, 0xd1, 0xf6, 0xde, 0x5d, 0xcc, + 0x35, 0x74, 0x39, 0xd7, 0xd0, 0x9f, 0xb9, 0x86, 0xbe, 0x2e, 0xb4, 0xd2, 0xe5, 0x42, 0x2b, 0xfd, + 0x5a, 0x68, 0xa5, 0xa3, 0x17, 0x8e, 0x2b, 0x4e, 0xa2, 0x63, 0xc3, 0x66, 0x9e, 0x19, 0x9e, 0xba, + 0xfc, 0xb9, 0x47, 0xa7, 0x19, 0xd5, 0xd4, 0x32, 0x3f, 0xe6, 0xf8, 0x92, 0x7f, 0xe1, 0x71, 0x25, + 0xf9, 0xe4, 0xbc, 0xfc, 0x17, 0x00, 0x00, 0xff, 0xff, 0x34, 0x1b, 0x3d, 0xb1, 0x4c, 0x05, 0x00, + 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -483,7 +481,7 @@ func NewQueryClient(cc grpc1.ClientConn) QueryClient { func (c *queryClient) MarketMap(ctx context.Context, in *MarketMapRequest, opts ...grpc.CallOption) (*MarketMapResponse, error) { out := new(MarketMapResponse) - err := c.cc.Invoke(ctx, "/slinky.marketmap.v1.Query/MarketMap", in, out, opts...) + err := c.cc.Invoke(ctx, "/connect.marketmap.v2.Query/MarketMap", in, out, opts...) if err != nil { return nil, err } @@ -492,7 +490,7 @@ func (c *queryClient) MarketMap(ctx context.Context, in *MarketMapRequest, opts func (c *queryClient) Market(ctx context.Context, in *MarketRequest, opts ...grpc.CallOption) (*MarketResponse, error) { out := new(MarketResponse) - err := c.cc.Invoke(ctx, "/slinky.marketmap.v1.Query/Market", in, out, opts...) + err := c.cc.Invoke(ctx, "/connect.marketmap.v2.Query/Market", in, out, opts...) if err != nil { return nil, err } @@ -501,7 +499,7 @@ func (c *queryClient) Market(ctx context.Context, in *MarketRequest, opts ...grp func (c *queryClient) LastUpdated(ctx context.Context, in *LastUpdatedRequest, opts ...grpc.CallOption) (*LastUpdatedResponse, error) { out := new(LastUpdatedResponse) - err := c.cc.Invoke(ctx, "/slinky.marketmap.v1.Query/LastUpdated", in, out, opts...) + err := c.cc.Invoke(ctx, "/connect.marketmap.v2.Query/LastUpdated", in, out, opts...) if err != nil { return nil, err } @@ -510,7 +508,7 @@ func (c *queryClient) LastUpdated(ctx context.Context, in *LastUpdatedRequest, o func (c *queryClient) Params(ctx context.Context, in *ParamsRequest, opts ...grpc.CallOption) (*ParamsResponse, error) { out := new(ParamsResponse) - err := c.cc.Invoke(ctx, "/slinky.marketmap.v1.Query/Params", in, out, opts...) + err := c.cc.Invoke(ctx, "/connect.marketmap.v2.Query/Params", in, out, opts...) if err != nil { return nil, err } @@ -562,7 +560,7 @@ func _Query_MarketMap_Handler(srv interface{}, ctx context.Context, dec func(int } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/slinky.marketmap.v1.Query/MarketMap", + FullMethod: "/connect.marketmap.v2.Query/MarketMap", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).MarketMap(ctx, req.(*MarketMapRequest)) @@ -580,7 +578,7 @@ func _Query_Market_Handler(srv interface{}, ctx context.Context, dec func(interf } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/slinky.marketmap.v1.Query/Market", + FullMethod: "/connect.marketmap.v2.Query/Market", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).Market(ctx, req.(*MarketRequest)) @@ -598,7 +596,7 @@ func _Query_LastUpdated_Handler(srv interface{}, ctx context.Context, dec func(i } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/slinky.marketmap.v1.Query/LastUpdated", + FullMethod: "/connect.marketmap.v2.Query/LastUpdated", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).LastUpdated(ctx, req.(*LastUpdatedRequest)) @@ -616,7 +614,7 @@ func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interf } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/slinky.marketmap.v1.Query/Params", + FullMethod: "/connect.marketmap.v2.Query/Params", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).Params(ctx, req.(*ParamsRequest)) @@ -625,7 +623,7 @@ func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interf } var _Query_serviceDesc = grpc.ServiceDesc{ - ServiceName: "slinky.marketmap.v1.Query", + ServiceName: "connect.marketmap.v2.Query", HandlerType: (*QueryServer)(nil), Methods: []grpc.MethodDesc{ { @@ -646,7 +644,7 @@ var _Query_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "slinky/marketmap/v1/query.proto", + Metadata: "connect/marketmap/v2/query.proto", } func (m *MarketMapRequest) Marshal() (dAtA []byte, err error) { diff --git a/x/marketmap/types/query.pb.gw.go b/x/marketmap/types/query.pb.gw.go index 554ae9058..2ef15e60d 100644 --- a/x/marketmap/types/query.pb.gw.go +++ b/x/marketmap/types/query.pb.gw.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: slinky/marketmap/v1/query.proto +// source: connect/marketmap/v2/query.proto /* Package types is a reverse proxy. @@ -51,24 +51,6 @@ func local_request_Query_MarketMap_0(ctx context.Context, marshaler runtime.Mars } -func request_Query_MarketMap_1(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq MarketMapRequest - var metadata runtime.ServerMetadata - - msg, err := client.MarketMap(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Query_MarketMap_1(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq MarketMapRequest - var metadata runtime.ServerMetadata - - msg, err := server.MarketMap(ctx, &protoReq) - return msg, metadata, err - -} - var ( filter_Query_Market_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} ) @@ -105,42 +87,6 @@ func local_request_Query_Market_0(ctx context.Context, marshaler runtime.Marshal } -var ( - filter_Query_Market_1 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} -) - -func request_Query_Market_1(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq MarketRequest - var metadata runtime.ServerMetadata - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_Market_1); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.Market(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Query_Market_1(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq MarketRequest - var metadata runtime.ServerMetadata - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_Market_1); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.Market(ctx, &protoReq) - return msg, metadata, err - -} - func request_Query_LastUpdated_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq LastUpdatedRequest var metadata runtime.ServerMetadata @@ -159,24 +105,6 @@ func local_request_Query_LastUpdated_0(ctx context.Context, marshaler runtime.Ma } -func request_Query_LastUpdated_1(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq LastUpdatedRequest - var metadata runtime.ServerMetadata - - msg, err := client.LastUpdated(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Query_LastUpdated_1(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq LastUpdatedRequest - var metadata runtime.ServerMetadata - - msg, err := server.LastUpdated(ctx, &protoReq) - return msg, metadata, err - -} - func request_Query_Params_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ParamsRequest var metadata runtime.ServerMetadata @@ -195,24 +123,6 @@ func local_request_Query_Params_0(ctx context.Context, marshaler runtime.Marshal } -func request_Query_Params_1(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ParamsRequest - var metadata runtime.ServerMetadata - - msg, err := client.Params(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Query_Params_1(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ParamsRequest - var metadata runtime.ServerMetadata - - msg, err := server.Params(ctx, &protoReq) - return msg, metadata, err - -} - // RegisterQueryHandlerServer registers the http handlers for service Query to "mux". // UnaryRPC :call QueryServer directly. // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. @@ -242,29 +152,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) - mux.Handle("GET", pattern_Query_MarketMap_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Query_MarketMap_1(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_MarketMap_1(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - mux.Handle("GET", pattern_Query_Market_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -288,29 +175,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) - mux.Handle("GET", pattern_Query_Market_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Query_Market_1(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_Market_1(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - mux.Handle("GET", pattern_Query_LastUpdated_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -334,29 +198,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) - mux.Handle("GET", pattern_Query_LastUpdated_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Query_LastUpdated_1(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_LastUpdated_1(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - mux.Handle("GET", pattern_Query_Params_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -380,29 +221,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) - mux.Handle("GET", pattern_Query_Params_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Query_Params_1(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_Params_1(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - return nil } @@ -464,26 +282,6 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) - mux.Handle("GET", pattern_Query_MarketMap_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Query_MarketMap_1(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_MarketMap_1(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - mux.Handle("GET", pattern_Query_Market_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -504,26 +302,6 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) - mux.Handle("GET", pattern_Query_Market_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Query_Market_1(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_Market_1(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - mux.Handle("GET", pattern_Query_LastUpdated_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -544,26 +322,6 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) - mux.Handle("GET", pattern_Query_LastUpdated_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Query_LastUpdated_1(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_LastUpdated_1(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - mux.Handle("GET", pattern_Query_Params_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -584,61 +342,25 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) - mux.Handle("GET", pattern_Query_Params_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Query_Params_1(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_Params_1(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - return nil } var ( - pattern_Query_MarketMap_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 1}, []string{"connect", "marketmap", "v1"}, "", runtime.AssumeColonVerbOpt(false))) - - pattern_Query_MarketMap_1 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 1}, []string{"slinky", "marketmap", "v1"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_MarketMap_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 1}, []string{"connect", "marketmap", "v2"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_Market_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"connect", "marketmap", "v1", "market"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_Market_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"connect", "marketmap", "v2", "market"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_Market_1 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"slinky", "marketmap", "v1", "market"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_LastUpdated_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"connect", "marketmap", "v2", "last_updated"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_LastUpdated_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"connect", "marketmap", "v1", "last_updated"}, "", runtime.AssumeColonVerbOpt(false))) - - pattern_Query_LastUpdated_1 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"slinky", "marketmap", "v1", "last_updated"}, "", runtime.AssumeColonVerbOpt(false))) - - pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"connect", "marketmap", "v1", "params"}, "", runtime.AssumeColonVerbOpt(false))) - - pattern_Query_Params_1 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"slinky", "marketmap", "v1", "params"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"connect", "marketmap", "v2", "params"}, "", runtime.AssumeColonVerbOpt(false))) ) var ( forward_Query_MarketMap_0 = runtime.ForwardResponseMessage - forward_Query_MarketMap_1 = runtime.ForwardResponseMessage - forward_Query_Market_0 = runtime.ForwardResponseMessage - forward_Query_Market_1 = runtime.ForwardResponseMessage - forward_Query_LastUpdated_0 = runtime.ForwardResponseMessage - forward_Query_LastUpdated_1 = runtime.ForwardResponseMessage - forward_Query_Params_0 = runtime.ForwardResponseMessage - - forward_Query_Params_1 = runtime.ForwardResponseMessage ) diff --git a/x/marketmap/types/tx.pb.go b/x/marketmap/types/tx.pb.go index 58f6dcda4..b41e2813b 100644 --- a/x/marketmap/types/tx.pb.go +++ b/x/marketmap/types/tx.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: slinky/marketmap/v1/tx.proto +// source: connect/marketmap/v2/tx.proto package types @@ -47,7 +47,7 @@ func (m *MsgUpsertMarkets) Reset() { *m = MsgUpsertMarkets{} } func (m *MsgUpsertMarkets) String() string { return proto.CompactTextString(m) } func (*MsgUpsertMarkets) ProtoMessage() {} func (*MsgUpsertMarkets) Descriptor() ([]byte, []int) { - return fileDescriptor_e9adadfc18297083, []int{0} + return fileDescriptor_37df9476ca9a2f81, []int{0} } func (m *MsgUpsertMarkets) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -103,7 +103,7 @@ func (m *MsgUpsertMarketsResponse) Reset() { *m = MsgUpsertMarketsRespon func (m *MsgUpsertMarketsResponse) String() string { return proto.CompactTextString(m) } func (*MsgUpsertMarketsResponse) ProtoMessage() {} func (*MsgUpsertMarketsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e9adadfc18297083, []int{1} + return fileDescriptor_37df9476ca9a2f81, []int{1} } func (m *MsgUpsertMarketsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -151,7 +151,7 @@ func (m *MsgCreateMarkets) Reset() { *m = MsgCreateMarkets{} } func (m *MsgCreateMarkets) String() string { return proto.CompactTextString(m) } func (*MsgCreateMarkets) ProtoMessage() {} func (*MsgCreateMarkets) Descriptor() ([]byte, []int) { - return fileDescriptor_e9adadfc18297083, []int{2} + return fileDescriptor_37df9476ca9a2f81, []int{2} } func (m *MsgCreateMarkets) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -202,7 +202,7 @@ func (m *MsgCreateMarketsResponse) Reset() { *m = MsgCreateMarketsRespon func (m *MsgCreateMarketsResponse) String() string { return proto.CompactTextString(m) } func (*MsgCreateMarketsResponse) ProtoMessage() {} func (*MsgCreateMarketsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e9adadfc18297083, []int{3} + return fileDescriptor_37df9476ca9a2f81, []int{3} } func (m *MsgCreateMarketsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -246,7 +246,7 @@ func (m *MsgUpdateMarkets) Reset() { *m = MsgUpdateMarkets{} } func (m *MsgUpdateMarkets) String() string { return proto.CompactTextString(m) } func (*MsgUpdateMarkets) ProtoMessage() {} func (*MsgUpdateMarkets) Descriptor() ([]byte, []int) { - return fileDescriptor_e9adadfc18297083, []int{4} + return fileDescriptor_37df9476ca9a2f81, []int{4} } func (m *MsgUpdateMarkets) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -297,7 +297,7 @@ func (m *MsgUpdateMarketsResponse) Reset() { *m = MsgUpdateMarketsRespon func (m *MsgUpdateMarketsResponse) String() string { return proto.CompactTextString(m) } func (*MsgUpdateMarketsResponse) ProtoMessage() {} func (*MsgUpdateMarketsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e9adadfc18297083, []int{5} + return fileDescriptor_37df9476ca9a2f81, []int{5} } func (m *MsgUpdateMarketsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -340,7 +340,7 @@ func (m *MsgParams) Reset() { *m = MsgParams{} } func (m *MsgParams) String() string { return proto.CompactTextString(m) } func (*MsgParams) ProtoMessage() {} func (*MsgParams) Descriptor() ([]byte, []int) { - return fileDescriptor_e9adadfc18297083, []int{6} + return fileDescriptor_37df9476ca9a2f81, []int{6} } func (m *MsgParams) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -391,7 +391,7 @@ func (m *MsgParamsResponse) Reset() { *m = MsgParamsResponse{} } func (m *MsgParamsResponse) String() string { return proto.CompactTextString(m) } func (*MsgParamsResponse) ProtoMessage() {} func (*MsgParamsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e9adadfc18297083, []int{7} + return fileDescriptor_37df9476ca9a2f81, []int{7} } func (m *MsgParamsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -435,7 +435,7 @@ func (m *MsgRemoveMarketAuthorities) Reset() { *m = MsgRemoveMarketAutho func (m *MsgRemoveMarketAuthorities) String() string { return proto.CompactTextString(m) } func (*MsgRemoveMarketAuthorities) ProtoMessage() {} func (*MsgRemoveMarketAuthorities) Descriptor() ([]byte, []int) { - return fileDescriptor_e9adadfc18297083, []int{8} + return fileDescriptor_37df9476ca9a2f81, []int{8} } func (m *MsgRemoveMarketAuthorities) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -487,7 +487,7 @@ func (m *MsgRemoveMarketAuthoritiesResponse) Reset() { *m = MsgRemoveMar func (m *MsgRemoveMarketAuthoritiesResponse) String() string { return proto.CompactTextString(m) } func (*MsgRemoveMarketAuthoritiesResponse) ProtoMessage() {} func (*MsgRemoveMarketAuthoritiesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e9adadfc18297083, []int{9} + return fileDescriptor_37df9476ca9a2f81, []int{9} } func (m *MsgRemoveMarketAuthoritiesResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -517,67 +517,67 @@ func (m *MsgRemoveMarketAuthoritiesResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgRemoveMarketAuthoritiesResponse proto.InternalMessageInfo func init() { - proto.RegisterType((*MsgUpsertMarkets)(nil), "slinky.marketmap.v1.MsgUpsertMarkets") - proto.RegisterType((*MsgUpsertMarketsResponse)(nil), "slinky.marketmap.v1.MsgUpsertMarketsResponse") - proto.RegisterMapType((map[string]bool)(nil), "slinky.marketmap.v1.MsgUpsertMarketsResponse.MarketUpdatesEntry") - proto.RegisterType((*MsgCreateMarkets)(nil), "slinky.marketmap.v1.MsgCreateMarkets") - proto.RegisterType((*MsgCreateMarketsResponse)(nil), "slinky.marketmap.v1.MsgCreateMarketsResponse") - proto.RegisterType((*MsgUpdateMarkets)(nil), "slinky.marketmap.v1.MsgUpdateMarkets") - proto.RegisterType((*MsgUpdateMarketsResponse)(nil), "slinky.marketmap.v1.MsgUpdateMarketsResponse") - proto.RegisterType((*MsgParams)(nil), "slinky.marketmap.v1.MsgParams") - proto.RegisterType((*MsgParamsResponse)(nil), "slinky.marketmap.v1.MsgParamsResponse") - proto.RegisterType((*MsgRemoveMarketAuthorities)(nil), "slinky.marketmap.v1.MsgRemoveMarketAuthorities") - proto.RegisterType((*MsgRemoveMarketAuthoritiesResponse)(nil), "slinky.marketmap.v1.MsgRemoveMarketAuthoritiesResponse") -} - -func init() { proto.RegisterFile("slinky/marketmap/v1/tx.proto", fileDescriptor_e9adadfc18297083) } - -var fileDescriptor_e9adadfc18297083 = []byte{ - // 692 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x55, 0x4d, 0x6f, 0xd3, 0x4c, - 0x10, 0xce, 0xa6, 0x1f, 0xef, 0x9b, 0x85, 0x94, 0x76, 0x5b, 0xa9, 0xc6, 0x20, 0x37, 0x32, 0x14, - 0x95, 0x4a, 0xb5, 0x69, 0x91, 0xf8, 0x08, 0x97, 0x36, 0x08, 0x09, 0x21, 0x45, 0x42, 0x46, 0xe5, - 0xc0, 0x25, 0x72, 0xed, 0x95, 0x6b, 0xa5, 0xeb, 0xb5, 0xbc, 0x1b, 0xab, 0xb9, 0x21, 0x7a, 0xe3, - 0x80, 0x38, 0x72, 0x03, 0xfe, 0x41, 0x0f, 0xfc, 0x03, 0x2e, 0xbd, 0x51, 0x71, 0xe2, 0x84, 0x50, - 0x7b, 0x28, 0x3f, 0x03, 0xc5, 0xbb, 0x71, 0xe3, 0x36, 0x0e, 0x09, 0x70, 0xb1, 0x76, 0x67, 0x9e, - 0x99, 0x7d, 0x9e, 0x99, 0x9d, 0x35, 0xbc, 0xca, 0x76, 0xfc, 0xa0, 0xd9, 0x36, 0x89, 0x1d, 0x35, - 0x31, 0x27, 0x76, 0x68, 0xc6, 0xab, 0x26, 0xdf, 0x35, 0xc2, 0x88, 0x72, 0x8a, 0x66, 0x85, 0xd7, - 0x48, 0xbd, 0x46, 0xbc, 0xaa, 0xce, 0x3b, 0x94, 0x11, 0xca, 0x4c, 0xc2, 0xbc, 0x0e, 0x98, 0x30, - 0x4f, 0xa0, 0xd5, 0x39, 0x8f, 0x7a, 0x34, 0x59, 0x9a, 0x9d, 0x95, 0xb4, 0x5e, 0x16, 0xf0, 0x86, - 0x70, 0x88, 0x8d, 0x74, 0xcd, 0xd8, 0xc4, 0x0f, 0xa8, 0x99, 0x7c, 0xa5, 0xa9, 0xd2, 0x8f, 0x8f, - 0xd8, 0x0c, 0x42, 0x84, 0x76, 0x64, 0x13, 0x99, 0x56, 0xff, 0x0c, 0xe0, 0x74, 0x9d, 0x79, 0x9b, - 0x21, 0xc3, 0x11, 0xaf, 0x27, 0x30, 0x86, 0xee, 0xc0, 0x92, 0xdd, 0xe2, 0xdb, 0x34, 0xf2, 0x79, - 0x5b, 0x01, 0x15, 0xb0, 0x54, 0xaa, 0x29, 0x5f, 0x3f, 0xad, 0xcc, 0x49, 0x42, 0x1b, 0xae, 0x1b, - 0x61, 0xc6, 0x9e, 0xf1, 0xc8, 0x0f, 0x3c, 0xeb, 0x14, 0x8a, 0x1e, 0xc0, 0xff, 0xc4, 0x49, 0x4c, - 0x29, 0x56, 0xc6, 0x96, 0x2e, 0xac, 0x5d, 0x31, 0xfa, 0x14, 0xc5, 0x10, 0xc7, 0xd4, 0xc6, 0x0f, - 0xbe, 0x2f, 0x14, 0xac, 0x6e, 0x44, 0xb5, 0xfa, 0xf3, 0xc3, 0x42, 0xe1, 0xd5, 0xc9, 0xfe, 0xf2, - 0x69, 0xc2, 0xd7, 0x27, 0xfb, 0xcb, 0xd7, 0xa4, 0x84, 0xdd, 0x1e, 0x11, 0x67, 0x09, 0xeb, 0x5f, - 0x00, 0x54, 0xce, 0x1a, 0x2d, 0xcc, 0x42, 0x1a, 0x30, 0x8c, 0x9a, 0x70, 0x4a, 0x84, 0x36, 0x5a, - 0xa1, 0x6b, 0x73, 0xcc, 0x14, 0x90, 0x90, 0x5b, 0xef, 0x4f, 0x2e, 0x27, 0x8d, 0x64, 0xbd, 0x29, - 0x52, 0x3c, 0x0a, 0x78, 0xd4, 0xae, 0x15, 0x15, 0x60, 0x95, 0x49, 0xaf, 0x5d, 0x5d, 0x87, 0xe8, - 0x3c, 0x10, 0x4d, 0xc3, 0xb1, 0x26, 0x96, 0xa5, 0xb4, 0x3a, 0x4b, 0x34, 0x07, 0x27, 0x62, 0x7b, - 0xa7, 0x85, 0x95, 0x62, 0x05, 0x2c, 0xfd, 0x6f, 0x89, 0x4d, 0xb5, 0x78, 0x0f, 0x54, 0xc7, 0xdf, - 0x7d, 0x5c, 0x00, 0xfa, 0xa1, 0xe8, 0xcb, 0xc3, 0x08, 0xdb, 0x1c, 0xff, 0x6d, 0x5f, 0x1e, 0xc3, - 0x29, 0x27, 0x49, 0xd4, 0x18, 0xb9, 0x3d, 0x65, 0xa7, 0x97, 0xc1, 0x88, 0x4d, 0xca, 0xb0, 0xd7, - 0xd5, 0xa4, 0x47, 0x19, 0x5b, 0xb7, 0xb8, 0x5d, 0xb9, 0xa2, 0x68, 0xff, 0x40, 0xae, 0xe8, 0xf4, - 0x1f, 0xc8, 0x6d, 0xf5, 0x32, 0x18, 0xf9, 0x4e, 0xba, 0xe7, 0xe4, 0x66, 0x6c, 0xa9, 0xdc, 0x37, - 0x00, 0x96, 0xea, 0xcc, 0x7b, 0x9a, 0x4c, 0x22, 0xba, 0x0f, 0x27, 0xc5, 0x4c, 0x26, 0x22, 0xf3, - 0x78, 0x0a, 0xb0, 0xe4, 0x29, 0x03, 0xb2, 0x25, 0x2a, 0x0e, 0x5d, 0xa2, 0xea, 0x54, 0x56, 0x94, - 0x3e, 0x0b, 0x67, 0x52, 0x3e, 0x29, 0xcb, 0x3d, 0x00, 0xd5, 0x3a, 0xf3, 0x2c, 0x4c, 0x68, 0x2c, - 0x25, 0x6c, 0xc8, 0x08, 0x1f, 0x33, 0x74, 0x13, 0x4e, 0x47, 0x89, 0xab, 0x61, 0x8b, 0x63, 0xe4, - 0x64, 0x95, 0xac, 0x4b, 0xc2, 0xbe, 0xd1, 0x35, 0x23, 0x03, 0x4e, 0xd8, 0x2e, 0xf1, 0x83, 0xdf, - 0x52, 0x14, 0xb0, 0x2a, 0xec, 0xd0, 0x13, 0x6b, 0xfd, 0x3a, 0xd4, 0xf3, 0x49, 0x74, 0xb9, 0xae, - 0xbd, 0x1f, 0x87, 0x63, 0x75, 0xe6, 0x21, 0x0c, 0xcb, 0xd9, 0x99, 0x59, 0xcc, 0x9b, 0xf2, 0x0c, - 0x4c, 0x5d, 0x19, 0x0a, 0x96, 0xbe, 0x29, 0x18, 0x96, 0xb3, 0x77, 0x75, 0x31, 0xff, 0x31, 0x71, - 0x87, 0x39, 0xa6, 0xef, 0x3d, 0x41, 0xcf, 0xe1, 0x45, 0xe1, 0x90, 0x37, 0x45, 0xcb, 0x0b, 0x17, - 0x7e, 0xf5, 0xc6, 0x60, 0x7f, 0x9a, 0x77, 0x0f, 0xc0, 0xf9, 0xbc, 0xb6, 0x9a, 0x79, 0x39, 0x72, - 0x02, 0xd4, 0xbb, 0x23, 0x06, 0x64, 0x8b, 0xd8, 0xfb, 0xdf, 0x59, 0x1c, 0xea, 0x45, 0x1e, 0x54, - 0xc4, 0x3e, 0x0f, 0xb7, 0x3a, 0xf1, 0xf2, 0x64, 0x7f, 0x19, 0xd4, 0x9e, 0x1c, 0x1c, 0x69, 0xe0, - 0xf0, 0x48, 0x03, 0x3f, 0x8e, 0x34, 0xf0, 0xf6, 0x58, 0x2b, 0x1c, 0x1e, 0x6b, 0x85, 0x6f, 0xc7, - 0x5a, 0xe1, 0xc5, 0x2d, 0xcf, 0xe7, 0xdb, 0xad, 0x2d, 0xc3, 0xa1, 0xc4, 0x64, 0x4d, 0x3f, 0x5c, - 0x21, 0x38, 0x36, 0x1d, 0x1a, 0x04, 0xd8, 0xe1, 0x66, 0xbc, 0x96, 0x19, 0x73, 0xde, 0x0e, 0x31, - 0xdb, 0x9a, 0x4c, 0x7e, 0x9e, 0xb7, 0x7f, 0x05, 0x00, 0x00, 0xff, 0xff, 0xaa, 0x1c, 0x93, 0xe9, - 0x12, 0x08, 0x00, 0x00, + proto.RegisterType((*MsgUpsertMarkets)(nil), "connect.marketmap.v2.MsgUpsertMarkets") + proto.RegisterType((*MsgUpsertMarketsResponse)(nil), "connect.marketmap.v2.MsgUpsertMarketsResponse") + proto.RegisterMapType((map[string]bool)(nil), "connect.marketmap.v2.MsgUpsertMarketsResponse.MarketUpdatesEntry") + proto.RegisterType((*MsgCreateMarkets)(nil), "connect.marketmap.v2.MsgCreateMarkets") + proto.RegisterType((*MsgCreateMarketsResponse)(nil), "connect.marketmap.v2.MsgCreateMarketsResponse") + proto.RegisterType((*MsgUpdateMarkets)(nil), "connect.marketmap.v2.MsgUpdateMarkets") + proto.RegisterType((*MsgUpdateMarketsResponse)(nil), "connect.marketmap.v2.MsgUpdateMarketsResponse") + proto.RegisterType((*MsgParams)(nil), "connect.marketmap.v2.MsgParams") + proto.RegisterType((*MsgParamsResponse)(nil), "connect.marketmap.v2.MsgParamsResponse") + proto.RegisterType((*MsgRemoveMarketAuthorities)(nil), "connect.marketmap.v2.MsgRemoveMarketAuthorities") + proto.RegisterType((*MsgRemoveMarketAuthoritiesResponse)(nil), "connect.marketmap.v2.MsgRemoveMarketAuthoritiesResponse") +} + +func init() { proto.RegisterFile("connect/marketmap/v2/tx.proto", fileDescriptor_37df9476ca9a2f81) } + +var fileDescriptor_37df9476ca9a2f81 = []byte{ + // 690 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x55, 0xbf, 0x6f, 0xd3, 0x4e, + 0x14, 0xcf, 0xa5, 0x3f, 0xbe, 0xdf, 0x1c, 0xa4, 0xb4, 0x47, 0xa4, 0x1a, 0x0b, 0x9c, 0x62, 0x55, + 0xa5, 0x54, 0xaa, 0x5d, 0x82, 0x84, 0x2a, 0xc3, 0x40, 0x82, 0x18, 0x40, 0x8a, 0x84, 0x8c, 0x2a, + 0x21, 0x96, 0xc8, 0xb5, 0x4f, 0xae, 0xd5, 0xda, 0x67, 0xf9, 0x2e, 0x56, 0xbb, 0x21, 0x10, 0x0b, + 0x0b, 0x8c, 0x8c, 0x30, 0xb2, 0x75, 0xe0, 0x5f, 0x40, 0xea, 0x58, 0x75, 0x62, 0x42, 0xa8, 0x1d, + 0xca, 0x9f, 0x81, 0xe2, 0x3b, 0xbb, 0x71, 0x1b, 0xb7, 0x09, 0xb0, 0x24, 0x77, 0xef, 0x7d, 0xde, + 0xbb, 0xcf, 0xe7, 0xbd, 0x7b, 0x67, 0x78, 0xc3, 0x26, 0x41, 0x80, 0x6d, 0xa6, 0xfb, 0x56, 0xb4, + 0x89, 0x99, 0x6f, 0x85, 0x7a, 0xdc, 0xd0, 0xd9, 0xb6, 0x16, 0x46, 0x84, 0x11, 0x54, 0x13, 0x6e, + 0x2d, 0x73, 0x6b, 0x71, 0x43, 0x9e, 0xb5, 0x09, 0xf5, 0x09, 0xd5, 0x7d, 0xea, 0xea, 0xf1, 0x9d, + 0xde, 0x1f, 0x87, 0xcb, 0x35, 0x97, 0xb8, 0x24, 0x59, 0xea, 0xbd, 0x95, 0xb0, 0x5e, 0xe3, 0xf0, + 0x0e, 0x77, 0xf0, 0x8d, 0x70, 0xcd, 0x58, 0xbe, 0x17, 0x10, 0x3d, 0xf9, 0x15, 0xa6, 0x9b, 0x03, + 0x19, 0xf1, 0xcd, 0xb9, 0x90, 0xd0, 0x8a, 0x2c, 0x5f, 0x24, 0x56, 0xbf, 0x01, 0x38, 0xdd, 0xa6, + 0xee, 0x5a, 0x48, 0x71, 0xc4, 0xda, 0x09, 0x8c, 0xa2, 0x7b, 0xb0, 0x62, 0x75, 0xd9, 0x06, 0x89, + 0x3c, 0xb6, 0x23, 0x81, 0x39, 0xb0, 0x58, 0x69, 0x49, 0x07, 0x5f, 0x97, 0x6b, 0x82, 0x52, 0xd3, + 0x71, 0x22, 0x4c, 0xe9, 0x73, 0x16, 0x79, 0x81, 0x6b, 0x9e, 0x40, 0xd1, 0x03, 0xf8, 0x1f, 0x3f, + 0x89, 0x4a, 0xe5, 0xb9, 0xb1, 0xc5, 0x4b, 0x8d, 0xeb, 0xda, 0xa0, 0xba, 0x68, 0xfc, 0x9c, 0xd6, + 0xf8, 0xde, 0x8f, 0x7a, 0xc9, 0x4c, 0x43, 0x8c, 0xfb, 0xbf, 0x3e, 0xd5, 0x4b, 0xaf, 0x8f, 0x77, + 0x97, 0x4e, 0x32, 0xbe, 0x3b, 0xde, 0x5d, 0x9a, 0x4f, 0x45, 0x6c, 0xf7, 0xc9, 0x38, 0x4d, 0x59, + 0xdd, 0x07, 0x50, 0x3a, 0x6d, 0x34, 0x31, 0x0d, 0x49, 0x40, 0x31, 0xda, 0x82, 0x53, 0x3c, 0xb4, + 0xd3, 0x0d, 0x1d, 0x8b, 0x61, 0x2a, 0x81, 0x84, 0x5e, 0xb3, 0x80, 0x5e, 0x41, 0x1e, 0xc1, 0x7b, + 0x8d, 0xe7, 0x78, 0x1c, 0xb0, 0x68, 0xa7, 0x55, 0x96, 0x80, 0x59, 0xf5, 0xfb, 0xed, 0xf2, 0x43, + 0x88, 0xce, 0x02, 0xd1, 0x34, 0x1c, 0xdb, 0xc4, 0xa2, 0x9a, 0x66, 0x6f, 0x89, 0x6a, 0x70, 0x22, + 0xb6, 0xb6, 0xba, 0x58, 0x2a, 0xcf, 0x81, 0xc5, 0xff, 0x4d, 0xbe, 0x31, 0xca, 0xab, 0xc0, 0x18, + 0xff, 0xf8, 0xb9, 0x0e, 0xd4, 0x03, 0xde, 0x9a, 0x47, 0x11, 0xb6, 0x18, 0xfe, 0xdb, 0xd6, 0x3c, + 0x81, 0x53, 0x76, 0x92, 0xa8, 0x33, 0x7a, 0x87, 0xaa, 0x76, 0x3f, 0x85, 0x51, 0xfb, 0x94, 0xe3, + 0xaf, 0xca, 0x49, 0x9b, 0x72, 0xb6, 0xb4, 0xbc, 0xa9, 0x60, 0x5e, 0xb6, 0x7f, 0x20, 0x98, 0x37, + 0xfb, 0x4f, 0x04, 0x77, 0xfb, 0x29, 0x8c, 0x7e, 0x31, 0x9d, 0x33, 0x82, 0x73, 0xb6, 0x4c, 0xf0, + 0x7b, 0x00, 0x2b, 0x6d, 0xea, 0x3e, 0x4b, 0x06, 0x12, 0x19, 0x70, 0x92, 0x8f, 0x66, 0x22, 0xb3, + 0x90, 0x29, 0x47, 0x0b, 0xa6, 0x22, 0x22, 0x5f, 0xa5, 0xf2, 0xd0, 0x55, 0x32, 0xa6, 0xf2, 0xb2, + 0xd4, 0xab, 0x70, 0x26, 0x23, 0x94, 0xd1, 0x7c, 0x03, 0xa0, 0xdc, 0xa6, 0xae, 0x89, 0x7d, 0x12, + 0x0b, 0x0d, 0x4d, 0x11, 0xe1, 0x61, 0x8a, 0x6e, 0xc3, 0xe9, 0x28, 0x71, 0x75, 0x2c, 0x7e, 0x8c, + 0x98, 0xaf, 0x8a, 0x79, 0x85, 0xdb, 0x9b, 0xa9, 0x19, 0x69, 0x70, 0xc2, 0x72, 0x7c, 0x2f, 0xb8, + 0x90, 0x22, 0x87, 0x19, 0xb0, 0x47, 0x8f, 0xaf, 0xd5, 0x79, 0xa8, 0x16, 0x93, 0x48, 0xb9, 0x36, + 0xbe, 0x8c, 0xc3, 0xb1, 0x36, 0x75, 0x91, 0x0b, 0xab, 0xf9, 0xc1, 0x59, 0x28, 0x9c, 0xf5, 0x1c, + 0x4e, 0xd6, 0x86, 0xc3, 0x65, 0x6f, 0x8b, 0x0b, 0xab, 0xf9, 0x0b, 0xbb, 0x70, 0xce, 0xa3, 0xe2, + 0x0c, 0x75, 0xd0, 0xc0, 0xcb, 0x82, 0x5e, 0xc0, 0xcb, 0xdc, 0x21, 0xae, 0x4b, 0xbd, 0x30, 0x9e, + 0x03, 0xe4, 0x5b, 0x17, 0x00, 0xb2, 0xcc, 0x6f, 0x01, 0x9c, 0x2d, 0x6a, 0xee, 0x4a, 0x61, 0x92, + 0x82, 0x08, 0x79, 0x75, 0xd4, 0x88, 0x7c, 0x29, 0xfb, 0xbf, 0x43, 0x0b, 0xc3, 0xbd, 0xcf, 0xe7, + 0x96, 0x72, 0xc0, 0x3b, 0x2e, 0x4f, 0xbc, 0x3a, 0xde, 0x5d, 0x02, 0xad, 0xa7, 0x7b, 0x87, 0x0a, + 0xd8, 0x3f, 0x54, 0xc0, 0xcf, 0x43, 0x05, 0x7c, 0x38, 0x52, 0x4a, 0xfb, 0x47, 0x4a, 0xe9, 0xfb, + 0x91, 0x52, 0x7a, 0xb9, 0xe2, 0x7a, 0x6c, 0xa3, 0xbb, 0xae, 0xd9, 0xc4, 0xd7, 0xe9, 0xa6, 0x17, + 0x2e, 0xfb, 0x38, 0xd6, 0xd3, 0x71, 0x8f, 0x1b, 0xb9, 0x89, 0x67, 0x3b, 0x21, 0xa6, 0xeb, 0x93, + 0xc9, 0xe7, 0xf4, 0xee, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0x02, 0xbc, 0x2f, 0xbc, 0x28, 0x08, + 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -618,7 +618,7 @@ func NewMsgClient(cc grpc1.ClientConn) MsgClient { func (c *msgClient) CreateMarkets(ctx context.Context, in *MsgCreateMarkets, opts ...grpc.CallOption) (*MsgCreateMarketsResponse, error) { out := new(MsgCreateMarketsResponse) - err := c.cc.Invoke(ctx, "/slinky.marketmap.v1.Msg/CreateMarkets", in, out, opts...) + err := c.cc.Invoke(ctx, "/connect.marketmap.v2.Msg/CreateMarkets", in, out, opts...) if err != nil { return nil, err } @@ -627,7 +627,7 @@ func (c *msgClient) CreateMarkets(ctx context.Context, in *MsgCreateMarkets, opt func (c *msgClient) UpdateMarkets(ctx context.Context, in *MsgUpdateMarkets, opts ...grpc.CallOption) (*MsgUpdateMarketsResponse, error) { out := new(MsgUpdateMarketsResponse) - err := c.cc.Invoke(ctx, "/slinky.marketmap.v1.Msg/UpdateMarkets", in, out, opts...) + err := c.cc.Invoke(ctx, "/connect.marketmap.v2.Msg/UpdateMarkets", in, out, opts...) if err != nil { return nil, err } @@ -636,7 +636,7 @@ func (c *msgClient) UpdateMarkets(ctx context.Context, in *MsgUpdateMarkets, opt func (c *msgClient) UpdateParams(ctx context.Context, in *MsgParams, opts ...grpc.CallOption) (*MsgParamsResponse, error) { out := new(MsgParamsResponse) - err := c.cc.Invoke(ctx, "/slinky.marketmap.v1.Msg/UpdateParams", in, out, opts...) + err := c.cc.Invoke(ctx, "/connect.marketmap.v2.Msg/UpdateParams", in, out, opts...) if err != nil { return nil, err } @@ -645,7 +645,7 @@ func (c *msgClient) UpdateParams(ctx context.Context, in *MsgParams, opts ...grp func (c *msgClient) RemoveMarketAuthorities(ctx context.Context, in *MsgRemoveMarketAuthorities, opts ...grpc.CallOption) (*MsgRemoveMarketAuthoritiesResponse, error) { out := new(MsgRemoveMarketAuthoritiesResponse) - err := c.cc.Invoke(ctx, "/slinky.marketmap.v1.Msg/RemoveMarketAuthorities", in, out, opts...) + err := c.cc.Invoke(ctx, "/connect.marketmap.v2.Msg/RemoveMarketAuthorities", in, out, opts...) if err != nil { return nil, err } @@ -654,7 +654,7 @@ func (c *msgClient) RemoveMarketAuthorities(ctx context.Context, in *MsgRemoveMa func (c *msgClient) UpsertMarkets(ctx context.Context, in *MsgUpsertMarkets, opts ...grpc.CallOption) (*MsgUpsertMarketsResponse, error) { out := new(MsgUpsertMarketsResponse) - err := c.cc.Invoke(ctx, "/slinky.marketmap.v1.Msg/UpsertMarkets", in, out, opts...) + err := c.cc.Invoke(ctx, "/connect.marketmap.v2.Msg/UpsertMarkets", in, out, opts...) if err != nil { return nil, err } @@ -713,7 +713,7 @@ func _Msg_CreateMarkets_Handler(srv interface{}, ctx context.Context, dec func(i } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/slinky.marketmap.v1.Msg/CreateMarkets", + FullMethod: "/connect.marketmap.v2.Msg/CreateMarkets", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).CreateMarkets(ctx, req.(*MsgCreateMarkets)) @@ -731,7 +731,7 @@ func _Msg_UpdateMarkets_Handler(srv interface{}, ctx context.Context, dec func(i } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/slinky.marketmap.v1.Msg/UpdateMarkets", + FullMethod: "/connect.marketmap.v2.Msg/UpdateMarkets", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).UpdateMarkets(ctx, req.(*MsgUpdateMarkets)) @@ -749,7 +749,7 @@ func _Msg_UpdateParams_Handler(srv interface{}, ctx context.Context, dec func(in } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/slinky.marketmap.v1.Msg/UpdateParams", + FullMethod: "/connect.marketmap.v2.Msg/UpdateParams", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).UpdateParams(ctx, req.(*MsgParams)) @@ -767,7 +767,7 @@ func _Msg_RemoveMarketAuthorities_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/slinky.marketmap.v1.Msg/RemoveMarketAuthorities", + FullMethod: "/connect.marketmap.v2.Msg/RemoveMarketAuthorities", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).RemoveMarketAuthorities(ctx, req.(*MsgRemoveMarketAuthorities)) @@ -785,7 +785,7 @@ func _Msg_UpsertMarkets_Handler(srv interface{}, ctx context.Context, dec func(i } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/slinky.marketmap.v1.Msg/UpsertMarkets", + FullMethod: "/connect.marketmap.v2.Msg/UpsertMarkets", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).UpsertMarkets(ctx, req.(*MsgUpsertMarkets)) @@ -794,7 +794,7 @@ func _Msg_UpsertMarkets_Handler(srv interface{}, ctx context.Context, dec func(i } var _Msg_serviceDesc = grpc.ServiceDesc{ - ServiceName: "slinky.marketmap.v1.Msg", + ServiceName: "connect.marketmap.v2.Msg", HandlerType: (*MsgServer)(nil), Methods: []grpc.MethodDesc{ { @@ -819,7 +819,7 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "slinky/marketmap/v1/tx.proto", + Metadata: "connect/marketmap/v2/tx.proto", } func (m *MsgUpsertMarkets) Marshal() (dAtA []byte, err error) { diff --git a/x/oracle/client/cli/query.go b/x/oracle/client/cli/query.go index c7d4bed13..8f423071e 100644 --- a/x/oracle/client/cli/query.go +++ b/x/oracle/client/cli/query.go @@ -53,7 +53,7 @@ func GetPriceCmd() *cobra.Command { // query for prices res, err := qc.GetPrice(cmd.Context(), &types.GetPriceRequest{ - CurrencyPair: cp, + CurrencyPair: cp.String(), }) if err != nil { return err diff --git a/x/oracle/keeper/grpc_query.go b/x/oracle/keeper/grpc_query.go index 7b4bcc6d5..75c4a56e6 100644 --- a/x/oracle/keeper/grpc_query.go +++ b/x/oracle/keeper/grpc_query.go @@ -43,8 +43,12 @@ func (q queryServer) GetPrice(goCtx context.Context, req *types.GetPriceRequest) return nil, fmt.Errorf("request cannot be nil") } - cp := req.CurrencyPair - if err := cp.ValidateBasic(); err != nil { + cp, err := slinkytypes.CurrencyPairFromString(req.CurrencyPair) + if err != nil { + return nil, fmt.Errorf("invalid currency pair: %w", err) + } + + if err = cp.ValidateBasic(); err != nil { return nil, fmt.Errorf("invalid currency pair: %w", err) } diff --git a/x/oracle/keeper/grpc_query_test.go b/x/oracle/keeper/grpc_query_test.go index 90d1dfc00..37901ccf5 100644 --- a/x/oracle/keeper/grpc_query_test.go +++ b/x/oracle/keeper/grpc_query_test.go @@ -100,7 +100,16 @@ func (s *KeeperTestSuite) TestGetPrice() { "if the currency pair is empty, expect failure - fail", func() {}, &types.GetPriceRequest{ - CurrencyPair: slinkytypes.CurrencyPair{}, + CurrencyPair: "", + }, + nil, + false, + }, + { + "if the currency pair is malformed, expect failure - fail", + func() {}, + &types.GetPriceRequest{ + CurrencyPair: "AABB", }, nil, false, @@ -110,10 +119,7 @@ func (s *KeeperTestSuite) TestGetPrice() { "if the query is for a currency pair that does not exist fail - fail", func() {}, &types.GetPriceRequest{ - CurrencyPair: slinkytypes.CurrencyPair{ - Base: "DD", - Quote: "EE", - }, + CurrencyPair: "DD/EE", }, nil, false, @@ -131,10 +137,7 @@ func (s *KeeperTestSuite) TestGetPrice() { }, nil).Once() }, &types.GetPriceRequest{ - CurrencyPair: slinkytypes.CurrencyPair{ - Base: "CC", - Quote: "BB", - }, + CurrencyPair: "CC/BB", }, &types.GetPriceResponse{ Nonce: 0, @@ -156,10 +159,7 @@ func (s *KeeperTestSuite) TestGetPrice() { }, nil).Once() }, &types.GetPriceRequest{ - CurrencyPair: slinkytypes.CurrencyPair{ - Base: "AA", - Quote: "ETHEREUM", - }, + CurrencyPair: "AA/ETHEREUM", }, &types.GetPriceResponse{ Nonce: 12, diff --git a/x/oracle/types/genesis.pb.go b/x/oracle/types/genesis.pb.go index 0a7fda0f9..9773d9b8c 100644 --- a/x/oracle/types/genesis.pb.go +++ b/x/oracle/types/genesis.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: slinky/oracle/v1/genesis.proto +// source: connect/oracle/v2/genesis.proto package types @@ -46,7 +46,7 @@ func (m *QuotePrice) Reset() { *m = QuotePrice{} } func (m *QuotePrice) String() string { return proto.CompactTextString(m) } func (*QuotePrice) ProtoMessage() {} func (*QuotePrice) Descriptor() ([]byte, []int) { - return fileDescriptor_de36a97821ccc13b, []int{0} + return fileDescriptor_a688f927817fa7da, []int{0} } func (m *QuotePrice) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -105,7 +105,7 @@ func (m *CurrencyPairState) Reset() { *m = CurrencyPairState{} } func (m *CurrencyPairState) String() string { return proto.CompactTextString(m) } func (*CurrencyPairState) ProtoMessage() {} func (*CurrencyPairState) Descriptor() ([]byte, []int) { - return fileDescriptor_de36a97821ccc13b, []int{1} + return fileDescriptor_a688f927817fa7da, []int{1} } func (m *CurrencyPairState) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -174,7 +174,7 @@ func (m *CurrencyPairGenesis) Reset() { *m = CurrencyPairGenesis{} } func (m *CurrencyPairGenesis) String() string { return proto.CompactTextString(m) } func (*CurrencyPairGenesis) ProtoMessage() {} func (*CurrencyPairGenesis) Descriptor() ([]byte, []int) { - return fileDescriptor_de36a97821ccc13b, []int{2} + return fileDescriptor_a688f927817fa7da, []int{2} } func (m *CurrencyPairGenesis) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -246,7 +246,7 @@ func (m *GenesisState) Reset() { *m = GenesisState{} } func (m *GenesisState) String() string { return proto.CompactTextString(m) } func (*GenesisState) ProtoMessage() {} func (*GenesisState) Descriptor() ([]byte, []int) { - return fileDescriptor_de36a97821ccc13b, []int{3} + return fileDescriptor_a688f927817fa7da, []int{3} } func (m *GenesisState) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -290,48 +290,48 @@ func (m *GenesisState) GetNextId() uint64 { } func init() { - proto.RegisterType((*QuotePrice)(nil), "slinky.oracle.v1.QuotePrice") - proto.RegisterType((*CurrencyPairState)(nil), "slinky.oracle.v1.CurrencyPairState") - proto.RegisterType((*CurrencyPairGenesis)(nil), "slinky.oracle.v1.CurrencyPairGenesis") - proto.RegisterType((*GenesisState)(nil), "slinky.oracle.v1.GenesisState") + proto.RegisterType((*QuotePrice)(nil), "connect.oracle.v2.QuotePrice") + proto.RegisterType((*CurrencyPairState)(nil), "connect.oracle.v2.CurrencyPairState") + proto.RegisterType((*CurrencyPairGenesis)(nil), "connect.oracle.v2.CurrencyPairGenesis") + proto.RegisterType((*GenesisState)(nil), "connect.oracle.v2.GenesisState") } -func init() { proto.RegisterFile("slinky/oracle/v1/genesis.proto", fileDescriptor_de36a97821ccc13b) } +func init() { proto.RegisterFile("connect/oracle/v2/genesis.proto", fileDescriptor_a688f927817fa7da) } -var fileDescriptor_de36a97821ccc13b = []byte{ - // 510 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0x4f, 0x8f, 0x12, 0x3d, - 0x1c, 0xc7, 0x29, 0xb0, 0xfb, 0x3c, 0x16, 0x5c, 0xdd, 0x61, 0x37, 0x22, 0xd1, 0x01, 0x31, 0x26, - 0x24, 0x86, 0x36, 0x8b, 0x17, 0xaf, 0xe2, 0x61, 0x97, 0x83, 0x09, 0x8e, 0x9e, 0xbc, 0x4c, 0x86, - 0x52, 0x87, 0x06, 0xa6, 0x9d, 0x4c, 0x0b, 0x59, 0xde, 0x81, 0xc7, 0x7d, 0x31, 0xbe, 0x01, 0x6f, - 0x1c, 0x37, 0x9e, 0xd4, 0x03, 0x1a, 0x78, 0x23, 0x66, 0xda, 0x0e, 0x0e, 0xee, 0x1e, 0xbc, 0xcd, - 0xaf, 0xbf, 0x7f, 0xdf, 0xcf, 0xb7, 0x1d, 0xe8, 0xca, 0x19, 0xe3, 0xd3, 0x25, 0x16, 0x49, 0x40, - 0x66, 0x14, 0x2f, 0xce, 0x70, 0x48, 0x39, 0x95, 0x4c, 0xa2, 0x38, 0x11, 0x4a, 0x38, 0xf7, 0x4d, - 0x1e, 0x99, 0x3c, 0x5a, 0x9c, 0x35, 0x4e, 0x42, 0x11, 0x0a, 0x9d, 0xc4, 0xe9, 0x97, 0xa9, 0x6b, - 0x34, 0x43, 0x21, 0xc2, 0x19, 0xc5, 0x3a, 0x1a, 0xcd, 0x3f, 0x62, 0xc5, 0x22, 0x2a, 0x55, 0x10, - 0xc5, 0xb6, 0xe0, 0x21, 0x11, 0x32, 0x12, 0xd2, 0x37, 0x9d, 0x26, 0xb0, 0xa9, 0xa7, 0x56, 0x83, - 0x5a, 0xc6, 0x54, 0xa6, 0x12, 0xc8, 0x3c, 0x49, 0x28, 0x27, 0x4b, 0x3f, 0x0e, 0x58, 0x62, 0x8a, - 0xda, 0x5f, 0x00, 0x84, 0x6f, 0xe7, 0x42, 0xd1, 0x61, 0xc2, 0x08, 0x75, 0x5e, 0xc1, 0x83, 0x38, - 0xfd, 0xa8, 0x83, 0x16, 0xe8, 0xdc, 0xe9, 0x3f, 0x5f, 0xad, 0x9b, 0x85, 0x1f, 0xeb, 0xe6, 0xa9, - 0x19, 0x2c, 0xc7, 0x53, 0xc4, 0x04, 0x8e, 0x02, 0x35, 0x41, 0x03, 0xae, 0xbe, 0x7e, 0xee, 0x42, - 0xbb, 0x71, 0xc0, 0x95, 0x67, 0x3a, 0x9d, 0x37, 0xf0, 0xde, 0x68, 0x26, 0xc8, 0xd4, 0xdf, 0x49, - 0xad, 0x17, 0x5b, 0xa0, 0x53, 0xe9, 0x35, 0x90, 0x81, 0x41, 0x19, 0x0c, 0x7a, 0x9f, 0x55, 0xf4, - 0xff, 0x4f, 0x17, 0x5d, 0xfd, 0x6c, 0x02, 0xef, 0x48, 0x37, 0xef, 0x32, 0xce, 0x13, 0x58, 0x35, - 0xe3, 0x26, 0x94, 0x85, 0x13, 0x55, 0x2f, 0xb5, 0x40, 0xa7, 0xec, 0x55, 0xf4, 0xd9, 0x85, 0x3e, - 0x6a, 0x4b, 0x78, 0xfc, 0xda, 0xa2, 0x0d, 0x03, 0x96, 0xbc, 0x53, 0x81, 0xa2, 0xce, 0xcb, 0x3c, - 0x49, 0xa5, 0xf7, 0x08, 0xfd, 0xed, 0x38, 0xfa, 0x83, 0xdd, 0x2f, 0xaf, 0xd6, 0x4d, 0x90, 0x01, - 0x9c, 0xc0, 0x03, 0x2e, 0x38, 0xa1, 0x5a, 0x76, 0xd9, 0x33, 0x81, 0x73, 0x04, 0x8b, 0x6c, 0x6c, - 0xb7, 0x17, 0xd9, 0xb8, 0xfd, 0x1d, 0xc0, 0x5a, 0x7e, 0xeb, 0xb9, 0xb9, 0x5f, 0xe7, 0x02, 0xde, - 0xdd, 0xf3, 0xd9, 0xee, 0x7f, 0x9c, 0xed, 0xd7, 0xb7, 0x91, 0xae, 0xcf, 0x37, 0x6b, 0x01, 0x05, - 0xaf, 0x4a, 0x72, 0x67, 0x8e, 0x07, 0x6b, 0x7b, 0x93, 0x7c, 0xc3, 0x53, 0xfc, 0x67, 0x9e, 0xe3, - 0xfc, 0xb8, 0xe1, 0x3e, 0x5b, 0xe9, 0x26, 0x5b, 0x79, 0xc7, 0xf6, 0x09, 0xc0, 0xaa, 0xe5, 0x31, - 0x66, 0xfa, 0xf0, 0x74, 0x5f, 0x8a, 0x7d, 0xcd, 0x75, 0xd0, 0x2a, 0x75, 0x2a, 0xbd, 0x67, 0x37, - 0xc5, 0xdc, 0x62, 0x8d, 0x85, 0xac, 0x91, 0x5b, 0x5c, 0x7b, 0x00, 0xff, 0xe3, 0xf4, 0x52, 0xf9, - 0x6c, 0x6c, 0x5d, 0x3f, 0x4c, 0xc3, 0xc1, 0xb8, 0x7f, 0xbe, 0xda, 0xb8, 0xe0, 0x7a, 0xe3, 0x82, - 0x5f, 0x1b, 0x17, 0x5c, 0x6d, 0xdd, 0xc2, 0xf5, 0xd6, 0x2d, 0x7c, 0xdb, 0xba, 0x85, 0x0f, 0xdd, - 0x90, 0xa9, 0xc9, 0x7c, 0x84, 0x88, 0x88, 0xb0, 0x9c, 0xb2, 0xb8, 0x1b, 0xd1, 0x05, 0x26, 0x82, - 0x73, 0x4a, 0x14, 0x5e, 0xf4, 0xf0, 0x65, 0xf6, 0xf3, 0x69, 0xc7, 0x47, 0x87, 0xfa, 0xd5, 0xbd, - 0xf8, 0x1d, 0x00, 0x00, 0xff, 0xff, 0x53, 0x7a, 0x86, 0xff, 0x9a, 0x03, 0x00, 0x00, +var fileDescriptor_a688f927817fa7da = []byte{ + // 507 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0x4f, 0x8f, 0xd2, 0x40, + 0x18, 0xc6, 0x3b, 0xc0, 0xae, 0x3a, 0xe0, 0x1a, 0xca, 0x6e, 0x44, 0x12, 0x5b, 0x24, 0xc6, 0x90, + 0x18, 0x66, 0x92, 0x7a, 0xf2, 0x28, 0x1e, 0x56, 0x0e, 0x26, 0xd8, 0xf5, 0xe4, 0xa5, 0x96, 0xe9, + 0x58, 0x26, 0xd0, 0x4e, 0xd3, 0x0e, 0x64, 0xf7, 0x23, 0x78, 0xdb, 0x0f, 0xe3, 0x17, 0xf0, 0xc6, + 0x71, 0xe3, 0xc9, 0x68, 0x82, 0x06, 0xbe, 0x88, 0xe9, 0xcc, 0x14, 0x4b, 0x96, 0xc3, 0xde, 0xfa, + 0xce, 0xbc, 0x7f, 0x9e, 0xdf, 0x33, 0x6f, 0xa1, 0x4d, 0x78, 0x1c, 0x53, 0x22, 0x30, 0x4f, 0x7d, + 0x32, 0xa7, 0x78, 0xe9, 0xe0, 0x90, 0xc6, 0x34, 0x63, 0x19, 0x4a, 0x52, 0x2e, 0xb8, 0xd9, 0xd4, + 0x09, 0x48, 0x25, 0xa0, 0xa5, 0xd3, 0x39, 0x0d, 0x79, 0xc8, 0xe5, 0x2d, 0xce, 0xbf, 0x54, 0x62, + 0xc7, 0x0e, 0x39, 0x0f, 0xe7, 0x14, 0xcb, 0x68, 0xb2, 0xf8, 0x82, 0x05, 0x8b, 0x68, 0x26, 0xfc, + 0x28, 0xd1, 0x09, 0x4f, 0x08, 0xcf, 0x22, 0x9e, 0x79, 0xaa, 0x52, 0x05, 0xfa, 0xea, 0x79, 0xa1, + 0x42, 0x5c, 0x25, 0x34, 0xcb, 0x45, 0x90, 0x45, 0x9a, 0xd2, 0x98, 0x5c, 0x79, 0x89, 0xcf, 0x52, + 0x95, 0xd5, 0xfb, 0x0e, 0x20, 0xfc, 0xb0, 0xe0, 0x82, 0x8e, 0x53, 0x46, 0xa8, 0xf9, 0x06, 0x1e, + 0x25, 0xf9, 0x47, 0x1b, 0x74, 0x41, 0xff, 0xc1, 0xf0, 0xe5, 0x6a, 0x6d, 0x1b, 0xbf, 0xd6, 0xf6, + 0x99, 0xea, 0x9c, 0x05, 0x33, 0xc4, 0x38, 0x8e, 0x7c, 0x31, 0x45, 0xa3, 0x58, 0xfc, 0xf8, 0x36, + 0x80, 0x7a, 0xe4, 0x28, 0x16, 0xae, 0xaa, 0x34, 0xdf, 0xc3, 0x47, 0x93, 0x39, 0x27, 0x33, 0x6f, + 0xa7, 0xb5, 0x5d, 0xe9, 0x82, 0x7e, 0xdd, 0xe9, 0x20, 0x45, 0x83, 0x0a, 0x1a, 0xf4, 0xb1, 0xc8, + 0x18, 0xde, 0xcf, 0x07, 0x5d, 0xff, 0xb1, 0x81, 0x7b, 0x22, 0x8b, 0x77, 0x37, 0xe6, 0x33, 0xd8, + 0x50, 0xed, 0xa6, 0x94, 0x85, 0x53, 0xd1, 0xae, 0x76, 0x41, 0xbf, 0xe6, 0xd6, 0xe5, 0xd9, 0x3b, + 0x79, 0xd4, 0x13, 0xb0, 0xf9, 0x56, 0xa3, 0x8d, 0x7d, 0x96, 0x5e, 0x08, 0x5f, 0x50, 0xf3, 0x75, + 0x99, 0xa4, 0xee, 0x3c, 0x45, 0xb7, 0x3c, 0x47, 0xff, 0xb9, 0x87, 0xb5, 0xd5, 0xda, 0x06, 0x05, + 0xc1, 0x29, 0x3c, 0x8a, 0x79, 0x4c, 0xa8, 0xd4, 0x5d, 0x73, 0x55, 0x60, 0x9e, 0xc0, 0x0a, 0x0b, + 0xf4, 0xf8, 0x0a, 0x0b, 0x7a, 0xbf, 0x01, 0x6c, 0x95, 0xc7, 0x9e, 0xab, 0x27, 0x36, 0x47, 0xf0, + 0xe1, 0x9e, 0xd1, 0x5a, 0x80, 0xb5, 0x13, 0x20, 0xdf, 0x23, 0x9f, 0x5f, 0xae, 0x96, 0x0a, 0x0c, + 0xb7, 0x41, 0x4a, 0x67, 0xe6, 0x05, 0x6c, 0xed, 0xb5, 0xf2, 0x14, 0x51, 0xe5, 0xee, 0x44, 0xcd, + 0x72, 0xbf, 0xf1, 0x3e, 0x5d, 0xf5, 0x36, 0x5d, 0x6d, 0x47, 0xf7, 0x15, 0xc0, 0x86, 0x26, 0x52, + 0x7e, 0x7e, 0x86, 0x67, 0xfb, 0x5a, 0xf4, 0x4a, 0xb7, 0x41, 0xb7, 0xda, 0xaf, 0x3b, 0x2f, 0x0e, + 0xa8, 0x39, 0xe0, 0x8e, 0xc6, 0x6c, 0x91, 0x03, 0xc6, 0x3d, 0x86, 0xf7, 0x62, 0x7a, 0x29, 0x3c, + 0x16, 0x68, 0xe3, 0x8f, 0xf3, 0x70, 0x14, 0x0c, 0xcf, 0x57, 0x1b, 0x0b, 0xdc, 0x6c, 0x2c, 0xf0, + 0x77, 0x63, 0x81, 0xeb, 0xad, 0x65, 0xdc, 0x6c, 0x2d, 0xe3, 0xe7, 0xd6, 0x32, 0x3e, 0x0d, 0x42, + 0x26, 0xa6, 0x8b, 0x09, 0x22, 0x3c, 0xc2, 0xd9, 0x8c, 0x25, 0x83, 0x88, 0x2e, 0x71, 0xb1, 0xf7, + 0x4b, 0x07, 0x5f, 0x16, 0xbf, 0xa0, 0xf4, 0x7c, 0x72, 0x2c, 0x37, 0xef, 0xd5, 0xbf, 0x00, 0x00, + 0x00, 0xff, 0xff, 0xa6, 0xbb, 0xf6, 0x48, 0xa1, 0x03, 0x00, 0x00, } func (m *QuotePrice) Marshal() (dAtA []byte, err error) { diff --git a/x/oracle/types/query.pb.go b/x/oracle/types/query.pb.go index 6bfa713ac..51f72d6ca 100644 --- a/x/oracle/types/query.pb.go +++ b/x/oracle/types/query.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: slinky/oracle/v1/query.proto +// source: connect/oracle/v2/query.proto package types @@ -37,7 +37,7 @@ func (m *GetAllCurrencyPairsRequest) Reset() { *m = GetAllCurrencyPairsR func (m *GetAllCurrencyPairsRequest) String() string { return proto.CompactTextString(m) } func (*GetAllCurrencyPairsRequest) ProtoMessage() {} func (*GetAllCurrencyPairsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_ba8e832073f3a7b0, []int{0} + return fileDescriptor_85b187574238e3d2, []int{0} } func (m *GetAllCurrencyPairsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -76,7 +76,7 @@ func (m *GetAllCurrencyPairsResponse) Reset() { *m = GetAllCurrencyPairs func (m *GetAllCurrencyPairsResponse) String() string { return proto.CompactTextString(m) } func (*GetAllCurrencyPairsResponse) ProtoMessage() {} func (*GetAllCurrencyPairsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_ba8e832073f3a7b0, []int{1} + return fileDescriptor_85b187574238e3d2, []int{1} } func (m *GetAllCurrencyPairsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -112,18 +112,18 @@ func (m *GetAllCurrencyPairsResponse) GetCurrencyPairs() []types.CurrencyPair { return nil } -// GetPriceRequest either takes a CurrencyPair, or an identifier for the +// GetPriceRequest takes an identifier for the // CurrencyPair in the format base/quote. type GetPriceRequest struct { // CurrencyPair represents the pair that the user wishes to query. - CurrencyPair types.CurrencyPair `protobuf:"bytes,1,opt,name=currency_pair,json=currencyPair,proto3" json:"currency_pair"` + CurrencyPair string `protobuf:"bytes,1,opt,name=currency_pair,json=currencyPair,proto3" json:"currency_pair,omitempty"` } func (m *GetPriceRequest) Reset() { *m = GetPriceRequest{} } func (m *GetPriceRequest) String() string { return proto.CompactTextString(m) } func (*GetPriceRequest) ProtoMessage() {} func (*GetPriceRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_ba8e832073f3a7b0, []int{2} + return fileDescriptor_85b187574238e3d2, []int{2} } func (m *GetPriceRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -152,11 +152,11 @@ func (m *GetPriceRequest) XXX_DiscardUnknown() { var xxx_messageInfo_GetPriceRequest proto.InternalMessageInfo -func (m *GetPriceRequest) GetCurrencyPair() types.CurrencyPair { +func (m *GetPriceRequest) GetCurrencyPair() string { if m != nil { return m.CurrencyPair } - return types.CurrencyPair{} + return "" } // GetPriceResponse is the response from the GetPrice grpc method exposed from @@ -178,7 +178,7 @@ func (m *GetPriceResponse) Reset() { *m = GetPriceResponse{} } func (m *GetPriceResponse) String() string { return proto.CompactTextString(m) } func (*GetPriceResponse) ProtoMessage() {} func (*GetPriceResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_ba8e832073f3a7b0, []int{3} + return fileDescriptor_85b187574238e3d2, []int{3} } func (m *GetPriceResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -245,7 +245,7 @@ func (m *GetPricesRequest) Reset() { *m = GetPricesRequest{} } func (m *GetPricesRequest) String() string { return proto.CompactTextString(m) } func (*GetPricesRequest) ProtoMessage() {} func (*GetPricesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_ba8e832073f3a7b0, []int{4} + return fileDescriptor_85b187574238e3d2, []int{4} } func (m *GetPricesRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -291,7 +291,7 @@ func (m *GetPricesResponse) Reset() { *m = GetPricesResponse{} } func (m *GetPricesResponse) String() string { return proto.CompactTextString(m) } func (*GetPricesResponse) ProtoMessage() {} func (*GetPricesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_ba8e832073f3a7b0, []int{5} + return fileDescriptor_85b187574238e3d2, []int{5} } func (m *GetPricesResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -335,7 +335,7 @@ func (m *GetCurrencyPairMappingRequest) Reset() { *m = GetCurrencyPairMa func (m *GetCurrencyPairMappingRequest) String() string { return proto.CompactTextString(m) } func (*GetCurrencyPairMappingRequest) ProtoMessage() {} func (*GetCurrencyPairMappingRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_ba8e832073f3a7b0, []int{6} + return fileDescriptor_85b187574238e3d2, []int{6} } func (m *GetCurrencyPairMappingRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -375,7 +375,7 @@ func (m *GetCurrencyPairMappingResponse) Reset() { *m = GetCurrencyPairM func (m *GetCurrencyPairMappingResponse) String() string { return proto.CompactTextString(m) } func (*GetCurrencyPairMappingResponse) ProtoMessage() {} func (*GetCurrencyPairMappingResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_ba8e832073f3a7b0, []int{7} + return fileDescriptor_85b187574238e3d2, []int{7} } func (m *GetCurrencyPairMappingResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -412,64 +412,62 @@ func (m *GetCurrencyPairMappingResponse) GetCurrencyPairMapping() map[uint64]typ } func init() { - proto.RegisterType((*GetAllCurrencyPairsRequest)(nil), "slinky.oracle.v1.GetAllCurrencyPairsRequest") - proto.RegisterType((*GetAllCurrencyPairsResponse)(nil), "slinky.oracle.v1.GetAllCurrencyPairsResponse") - proto.RegisterType((*GetPriceRequest)(nil), "slinky.oracle.v1.GetPriceRequest") - proto.RegisterType((*GetPriceResponse)(nil), "slinky.oracle.v1.GetPriceResponse") - proto.RegisterType((*GetPricesRequest)(nil), "slinky.oracle.v1.GetPricesRequest") - proto.RegisterType((*GetPricesResponse)(nil), "slinky.oracle.v1.GetPricesResponse") - proto.RegisterType((*GetCurrencyPairMappingRequest)(nil), "slinky.oracle.v1.GetCurrencyPairMappingRequest") - proto.RegisterType((*GetCurrencyPairMappingResponse)(nil), "slinky.oracle.v1.GetCurrencyPairMappingResponse") - proto.RegisterMapType((map[uint64]types.CurrencyPair)(nil), "slinky.oracle.v1.GetCurrencyPairMappingResponse.CurrencyPairMappingEntry") -} - -func init() { proto.RegisterFile("slinky/oracle/v1/query.proto", fileDescriptor_ba8e832073f3a7b0) } - -var fileDescriptor_ba8e832073f3a7b0 = []byte{ - // 690 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x55, 0x4f, 0x4f, 0x13, 0x4f, - 0x18, 0xee, 0x94, 0x96, 0xc0, 0xfc, 0x7e, 0xfc, 0x1b, 0xd0, 0x34, 0xa5, 0x5d, 0x60, 0xb9, 0x10, - 0xa5, 0xbb, 0x02, 0x17, 0x62, 0xe2, 0x3f, 0x08, 0xa9, 0x98, 0x18, 0x61, 0x13, 0x2f, 0x35, 0xa6, - 0x59, 0xb6, 0x93, 0x75, 0xd2, 0xed, 0xcc, 0xb2, 0x33, 0x6d, 0xec, 0x55, 0xcf, 0x1a, 0x13, 0x13, - 0x2f, 0x7e, 0x1c, 0x2f, 0x1c, 0x49, 0xbc, 0x78, 0x32, 0x04, 0x4c, 0xfc, 0x1a, 0xa6, 0x33, 0xd3, - 0xd2, 0xd2, 0xed, 0x5a, 0x6f, 0xbb, 0xfb, 0x3c, 0xef, 0x33, 0xcf, 0xf3, 0xce, 0xfb, 0xb6, 0xb0, - 0xc0, 0x03, 0x42, 0xeb, 0x6d, 0x9b, 0x45, 0xae, 0x17, 0x60, 0xbb, 0xb5, 0x65, 0x9f, 0x36, 0x71, - 0xd4, 0xb6, 0xc2, 0x88, 0x09, 0x86, 0xe6, 0x15, 0x6a, 0x29, 0xd4, 0x6a, 0x6d, 0xe5, 0x97, 0x7c, - 0xe6, 0x33, 0x09, 0xda, 0x9d, 0x27, 0xc5, 0xcb, 0x17, 0x7c, 0xc6, 0xfc, 0x00, 0xdb, 0x6e, 0x48, - 0x6c, 0x97, 0x52, 0x26, 0x5c, 0x41, 0x18, 0xe5, 0x1a, 0x35, 0x86, 0xce, 0xf0, 0x31, 0xc5, 0x9c, - 0x74, 0xf1, 0x75, 0x8d, 0x8b, 0x76, 0x88, 0x79, 0x07, 0xf6, 0x9a, 0x51, 0x84, 0xa9, 0xd7, 0xae, - 0x86, 0x2e, 0x89, 0x14, 0xc9, 0x2c, 0xc0, 0x7c, 0x19, 0x8b, 0x27, 0x41, 0xb0, 0xaf, 0xc1, 0x23, - 0x97, 0x44, 0xdc, 0xc1, 0xa7, 0x4d, 0xcc, 0x85, 0x49, 0xe0, 0x72, 0x2c, 0xca, 0x43, 0x46, 0x39, - 0x46, 0xcf, 0xe0, 0xec, 0x80, 0x26, 0xcf, 0x81, 0xd5, 0x89, 0x8d, 0xff, 0xb6, 0x8b, 0x96, 0x0e, - 0x28, 0x8f, 0xb6, 0x5a, 0x5b, 0x56, 0x7f, 0xfd, 0x5e, 0xe6, 0xec, 0xe7, 0x4a, 0xca, 0x99, 0xf1, - 0xfa, 0x35, 0xcd, 0x57, 0x70, 0xae, 0x8c, 0xc5, 0x51, 0x44, 0x3c, 0xac, 0x4f, 0x47, 0x4f, 0xe1, - 0xcc, 0x80, 0x7c, 0x0e, 0xac, 0x82, 0x71, 0xd5, 0xff, 0xef, 0x57, 0x37, 0x3f, 0x02, 0x38, 0x7f, - 0xad, 0xae, 0xdd, 0xef, 0xc2, 0x6c, 0xd8, 0xf9, 0xa0, 0x65, 0x0b, 0xd6, 0xcd, 0x5b, 0xb1, 0x8e, - 0x9b, 0x4c, 0x60, 0x59, 0x24, 0x55, 0x81, 0xa3, 0x0a, 0xd0, 0x12, 0xcc, 0x52, 0x46, 0x3d, 0x9c, - 0x4b, 0xaf, 0x82, 0x8d, 0x8c, 0xa3, 0x5e, 0x50, 0x1e, 0x4e, 0xd5, 0xb0, 0x47, 0x1a, 0x6e, 0xc0, - 0x73, 0x13, 0x12, 0xe8, 0xbd, 0xa3, 0x59, 0x98, 0x26, 0xb5, 0x5c, 0x46, 0x7e, 0x4d, 0x93, 0x9a, - 0xf9, 0xf0, 0xda, 0x4f, 0xb7, 0xd9, 0xe8, 0x0e, 0x5c, 0x18, 0x88, 0x5b, 0x25, 0x35, 0xd5, 0xd0, - 0x69, 0x67, 0xae, 0x3f, 0xcd, 0x61, 0x8d, 0x9b, 0x2f, 0xe1, 0x42, 0x5f, 0xbd, 0x0e, 0xf4, 0x18, - 0x4e, 0x4a, 0x7f, 0xdd, 0x6b, 0x30, 0x87, 0x13, 0xdd, 0x6c, 0x82, 0xee, 0x96, 0xae, 0x33, 0x57, - 0x60, 0xb1, 0x8c, 0x45, 0x7f, 0x3b, 0x9f, 0xbb, 0x61, 0x48, 0xa8, 0xdf, 0x1d, 0x88, 0x0f, 0x69, - 0x68, 0x8c, 0x62, 0x68, 0x17, 0xef, 0x01, 0xbc, 0x35, 0x98, 0xa3, 0xa1, 0x18, 0xda, 0xd5, 0x61, - 0xac, 0xab, 0x04, 0x45, 0x2b, 0x06, 0x3b, 0xa0, 0x22, 0x6a, 0x6b, 0xf3, 0x8b, 0xde, 0x30, 0x9e, - 0xc7, 0x30, 0x37, 0xaa, 0x0c, 0xcd, 0xc3, 0x89, 0x3a, 0x6e, 0xcb, 0x6b, 0xcf, 0x38, 0x9d, 0x47, - 0xb4, 0x03, 0xb3, 0x2d, 0x37, 0x68, 0xaa, 0x0b, 0xfd, 0xdb, 0x84, 0x39, 0x8a, 0x7b, 0x3f, 0xbd, - 0x0b, 0xb6, 0x7f, 0x67, 0x61, 0xf6, 0xb8, 0xb3, 0xd9, 0xe8, 0x1b, 0x80, 0x8b, 0x31, 0xbb, 0x82, - 0x36, 0x63, 0xe3, 0x8e, 0x58, 0xb8, 0x7c, 0x69, 0x4c, 0xb6, 0xea, 0x8c, 0xf9, 0xe2, 0xdd, 0xf7, - 0x5f, 0x9f, 0xd3, 0x87, 0x95, 0x75, 0xb4, 0x66, 0xc7, 0xfc, 0x1a, 0x88, 0xaa, 0x1b, 0x04, 0x55, - 0x41, 0xbc, 0x3a, 0x8e, 0x38, 0x32, 0x6d, 0x8f, 0x51, 0x8a, 0x3d, 0x91, 0xc0, 0xf9, 0x02, 0xe0, - 0x54, 0x77, 0x46, 0xd0, 0x5a, 0xd2, 0xfc, 0x28, 0xbf, 0x63, 0x8c, 0x98, 0xb9, 0x2f, 0x4d, 0x3e, - 0xa8, 0x14, 0xd1, 0x72, 0xbc, 0x49, 0xb5, 0x54, 0x85, 0x11, 0xf6, 0x14, 0xfa, 0x15, 0xc0, 0xe9, - 0xde, 0xc4, 0xa3, 0x84, 0x63, 0x7b, 0xad, 0x5c, 0x4f, 0xe4, 0x68, 0x6f, 0x07, 0xd2, 0xdb, 0xa3, - 0x8a, 0x81, 0x0a, 0x09, 0xde, 0x38, 0x2a, 0x26, 0x99, 0xe3, 0xe8, 0x02, 0xc0, 0xdb, 0xf1, 0x43, - 0x8c, 0xec, 0xf1, 0xc7, 0x5d, 0xf9, 0xbe, 0xf7, 0xaf, 0xfb, 0x61, 0x7a, 0x32, 0xc4, 0xeb, 0x4a, - 0x09, 0xdd, 0x8d, 0x0f, 0x11, 0xbb, 0x8e, 0x68, 0x73, 0x44, 0xa6, 0x58, 0xf6, 0x5e, 0xf9, 0xec, - 0xd2, 0x00, 0xe7, 0x97, 0x06, 0xb8, 0xb8, 0x34, 0xc0, 0xa7, 0x2b, 0x23, 0x75, 0x7e, 0x65, 0xa4, - 0x7e, 0x5c, 0x19, 0xa9, 0x4a, 0xc9, 0x27, 0xe2, 0x4d, 0xf3, 0xc4, 0xf2, 0x58, 0xc3, 0xe6, 0x75, - 0x12, 0x96, 0x1a, 0xb8, 0xd5, 0x93, 0x6e, 0x6d, 0xdb, 0x6f, 0xbb, 0xfa, 0x72, 0x9b, 0x4e, 0x26, - 0xe5, 0x1f, 0xcf, 0xce, 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x1d, 0xf9, 0x39, 0x56, 0x23, 0x07, + proto.RegisterType((*GetAllCurrencyPairsRequest)(nil), "connect.oracle.v2.GetAllCurrencyPairsRequest") + proto.RegisterType((*GetAllCurrencyPairsResponse)(nil), "connect.oracle.v2.GetAllCurrencyPairsResponse") + proto.RegisterType((*GetPriceRequest)(nil), "connect.oracle.v2.GetPriceRequest") + proto.RegisterType((*GetPriceResponse)(nil), "connect.oracle.v2.GetPriceResponse") + proto.RegisterType((*GetPricesRequest)(nil), "connect.oracle.v2.GetPricesRequest") + proto.RegisterType((*GetPricesResponse)(nil), "connect.oracle.v2.GetPricesResponse") + proto.RegisterType((*GetCurrencyPairMappingRequest)(nil), "connect.oracle.v2.GetCurrencyPairMappingRequest") + proto.RegisterType((*GetCurrencyPairMappingResponse)(nil), "connect.oracle.v2.GetCurrencyPairMappingResponse") + proto.RegisterMapType((map[uint64]types.CurrencyPair)(nil), "connect.oracle.v2.GetCurrencyPairMappingResponse.CurrencyPairMappingEntry") +} + +func init() { proto.RegisterFile("connect/oracle/v2/query.proto", fileDescriptor_85b187574238e3d2) } + +var fileDescriptor_85b187574238e3d2 = []byte{ + // 658 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0xcd, 0x6e, 0xd3, 0x40, + 0x10, 0xce, 0xa6, 0x49, 0xd5, 0x4e, 0xe9, 0xdf, 0xb6, 0xa0, 0x28, 0x34, 0x4e, 0xe5, 0x06, 0xa9, + 0xaa, 0xa8, 0x0d, 0xa6, 0x42, 0xc0, 0x01, 0xa9, 0x45, 0x28, 0x02, 0x84, 0xd4, 0xfa, 0xc0, 0x81, + 0x4b, 0xe4, 0x3a, 0x8b, 0x59, 0xea, 0x78, 0x5d, 0xef, 0x26, 0x22, 0x07, 0x2e, 0x88, 0x7b, 0x91, + 0x78, 0x01, 0xde, 0x81, 0x97, 0xe8, 0xb1, 0x12, 0x17, 0xc4, 0x01, 0xa1, 0x96, 0x07, 0x41, 0xd9, + 0x5d, 0xa7, 0x09, 0x75, 0x42, 0x7b, 0xb3, 0xfd, 0x7d, 0x33, 0xf3, 0xcd, 0xcc, 0x37, 0x86, 0x8a, + 0xcf, 0xa2, 0x88, 0xf8, 0xc2, 0x66, 0x89, 0xe7, 0x87, 0xc4, 0xee, 0x38, 0xf6, 0x61, 0x9b, 0x24, + 0x5d, 0x2b, 0x4e, 0x98, 0x60, 0x78, 0x51, 0xc3, 0x96, 0x82, 0xad, 0x8e, 0x53, 0x5e, 0x0e, 0x58, + 0xc0, 0x24, 0x6a, 0xf7, 0x9e, 0x14, 0xb1, 0xbc, 0x12, 0x30, 0x16, 0x84, 0xc4, 0xf6, 0x62, 0x6a, + 0x7b, 0x51, 0xc4, 0x84, 0x27, 0x28, 0x8b, 0xb8, 0x46, 0xab, 0x17, 0xab, 0x04, 0x24, 0x22, 0x9c, + 0xa6, 0x84, 0x5a, 0x4a, 0x10, 0xdd, 0x98, 0xf0, 0x1e, 0xee, 0xb7, 0x93, 0x84, 0x44, 0x7e, 0xb7, + 0x11, 0x7b, 0x34, 0x51, 0x2c, 0x73, 0x05, 0xca, 0x75, 0x22, 0xb6, 0xc3, 0xf0, 0x89, 0x06, 0x77, + 0x3d, 0x9a, 0x70, 0x97, 0x1c, 0xb6, 0x09, 0x17, 0xe6, 0x3b, 0xb8, 0x99, 0x89, 0xf2, 0x98, 0x45, + 0x9c, 0xe0, 0x17, 0x30, 0x37, 0x94, 0x93, 0x97, 0xd0, 0xea, 0xc4, 0xfa, 0x8c, 0x63, 0x58, 0x69, + 0x8f, 0xb2, 0xb6, 0xd5, 0x71, 0xac, 0xc1, 0x04, 0x3b, 0x85, 0xe3, 0x5f, 0xd5, 0x9c, 0x3b, 0xeb, + 0x0f, 0x26, 0x35, 0xef, 0xc3, 0x7c, 0x9d, 0x88, 0xdd, 0x84, 0xfa, 0x44, 0x97, 0xc7, 0x6b, 0x30, + 0x3b, 0x94, 0xbf, 0x84, 0x56, 0xd1, 0xfa, 0xb4, 0x7b, 0x6d, 0x30, 0xd0, 0x3c, 0x42, 0xb0, 0x70, + 0x1e, 0xa8, 0x95, 0x3d, 0x84, 0x62, 0xdc, 0xfb, 0x20, 0x23, 0x66, 0x9c, 0x8a, 0x75, 0x61, 0xe8, + 0xd6, 0x5e, 0x9b, 0x09, 0x22, 0xa3, 0xa4, 0x1e, 0xe4, 0xaa, 0x08, 0xbc, 0x0c, 0xc5, 0x88, 0x45, + 0x3e, 0x29, 0xe5, 0x57, 0xd1, 0x7a, 0xc1, 0x55, 0x2f, 0xb8, 0x0c, 0x53, 0x4d, 0xe2, 0xd3, 0x96, + 0x17, 0xf2, 0xd2, 0x84, 0x04, 0xfa, 0xef, 0x78, 0x0e, 0xf2, 0xb4, 0x59, 0x2a, 0xc8, 0xaf, 0x79, + 0xda, 0x34, 0x1f, 0x9f, 0x0b, 0x4a, 0x27, 0x89, 0x37, 0x60, 0x71, 0xa8, 0x95, 0x06, 0x6d, 0xaa, + 0x69, 0x4d, 0xbb, 0xf3, 0x83, 0xed, 0x3c, 0x6b, 0x72, 0xf3, 0x15, 0x2c, 0x0e, 0xc4, 0xeb, 0x8e, + 0xb6, 0x61, 0x52, 0xea, 0x4b, 0x67, 0xbc, 0x96, 0xd1, 0xd2, 0xbf, 0x63, 0xd0, 0x83, 0xd6, 0x81, + 0x66, 0x15, 0x2a, 0x75, 0x22, 0x06, 0x37, 0xf1, 0xd2, 0x8b, 0x63, 0x1a, 0x05, 0xe9, 0xba, 0x8f, + 0xf2, 0x60, 0x8c, 0x62, 0x68, 0x19, 0x9f, 0x10, 0x5c, 0x1f, 0x6e, 0xa4, 0xa5, 0x18, 0x5a, 0xd6, + 0xf3, 0x6c, 0x59, 0x63, 0x52, 0x5a, 0x19, 0xd8, 0xd3, 0x48, 0x24, 0x5d, 0xad, 0x7e, 0xc9, 0xbf, + 0x88, 0x97, 0xdf, 0x40, 0x69, 0x54, 0x18, 0x5e, 0x80, 0x89, 0x03, 0xd2, 0x95, 0x9b, 0x2f, 0xb8, + 0xbd, 0x47, 0xbc, 0x05, 0xc5, 0x8e, 0x17, 0xb6, 0xd5, 0x4a, 0xff, 0x6b, 0x4f, 0x57, 0x91, 0x1f, + 0xe5, 0x1f, 0x20, 0xe7, 0x67, 0x01, 0x8a, 0x7b, 0xbd, 0xe3, 0xc5, 0x5f, 0x11, 0x2c, 0x65, 0xdc, + 0x02, 0xde, 0xcc, 0x6e, 0x78, 0xc4, 0x45, 0x95, 0xad, 0xcb, 0xd2, 0xd5, 0x70, 0xcc, 0x8d, 0x8f, + 0xdf, 0xff, 0x7c, 0xc9, 0xd7, 0xb0, 0x69, 0x67, 0xdd, 0xbb, 0x68, 0x78, 0x61, 0xd8, 0x10, 0xd4, + 0x3f, 0x20, 0x09, 0xc7, 0x5d, 0x98, 0x4a, 0x1d, 0x80, 0xcd, 0xb1, 0xf6, 0x50, 0x5a, 0x2e, 0x63, + 0x21, 0xb3, 0x26, 0x05, 0x18, 0x78, 0x65, 0x84, 0x00, 0x75, 0x34, 0x1f, 0x60, 0xba, 0x6f, 0x59, + 0x3c, 0x2e, 0x6f, 0x7f, 0x10, 0xb5, 0xf1, 0x24, 0x5d, 0xfd, 0x96, 0xac, 0x5e, 0xc5, 0x95, 0x71, + 0xd5, 0x39, 0xfe, 0x86, 0xe0, 0x46, 0xb6, 0xcb, 0xf0, 0x9d, 0x2b, 0x18, 0x52, 0x29, 0xbb, 0x7b, + 0x65, 0x0b, 0x9b, 0x5b, 0x52, 0xa6, 0x85, 0x6f, 0x8f, 0x90, 0x99, 0x79, 0x31, 0x3b, 0xf5, 0xe3, + 0x53, 0x03, 0x9d, 0x9c, 0x1a, 0xe8, 0xf7, 0xa9, 0x81, 0x3e, 0x9f, 0x19, 0xb9, 0x93, 0x33, 0x23, + 0xf7, 0xe3, 0xcc, 0xc8, 0xbd, 0xde, 0x0c, 0xa8, 0x78, 0xdb, 0xde, 0xb7, 0x7c, 0xd6, 0xb2, 0xf9, + 0x01, 0x8d, 0x37, 0x5b, 0xa4, 0xd3, 0x4f, 0xdd, 0x71, 0xec, 0xf7, 0x69, 0x7e, 0x69, 0xe0, 0xfd, + 0x49, 0xf9, 0x2f, 0xbf, 0xf7, 0x37, 0x00, 0x00, 0xff, 0xff, 0xa7, 0x5b, 0xa5, 0x89, 0x7a, 0x06, 0x00, 0x00, } @@ -507,7 +505,7 @@ func NewQueryClient(cc grpc1.ClientConn) QueryClient { func (c *queryClient) GetAllCurrencyPairs(ctx context.Context, in *GetAllCurrencyPairsRequest, opts ...grpc.CallOption) (*GetAllCurrencyPairsResponse, error) { out := new(GetAllCurrencyPairsResponse) - err := c.cc.Invoke(ctx, "/slinky.oracle.v1.Query/GetAllCurrencyPairs", in, out, opts...) + err := c.cc.Invoke(ctx, "/connect.oracle.v2.Query/GetAllCurrencyPairs", in, out, opts...) if err != nil { return nil, err } @@ -516,7 +514,7 @@ func (c *queryClient) GetAllCurrencyPairs(ctx context.Context, in *GetAllCurrenc func (c *queryClient) GetPrice(ctx context.Context, in *GetPriceRequest, opts ...grpc.CallOption) (*GetPriceResponse, error) { out := new(GetPriceResponse) - err := c.cc.Invoke(ctx, "/slinky.oracle.v1.Query/GetPrice", in, out, opts...) + err := c.cc.Invoke(ctx, "/connect.oracle.v2.Query/GetPrice", in, out, opts...) if err != nil { return nil, err } @@ -525,7 +523,7 @@ func (c *queryClient) GetPrice(ctx context.Context, in *GetPriceRequest, opts .. func (c *queryClient) GetPrices(ctx context.Context, in *GetPricesRequest, opts ...grpc.CallOption) (*GetPricesResponse, error) { out := new(GetPricesResponse) - err := c.cc.Invoke(ctx, "/slinky.oracle.v1.Query/GetPrices", in, out, opts...) + err := c.cc.Invoke(ctx, "/connect.oracle.v2.Query/GetPrices", in, out, opts...) if err != nil { return nil, err } @@ -534,7 +532,7 @@ func (c *queryClient) GetPrices(ctx context.Context, in *GetPricesRequest, opts func (c *queryClient) GetCurrencyPairMapping(ctx context.Context, in *GetCurrencyPairMappingRequest, opts ...grpc.CallOption) (*GetCurrencyPairMappingResponse, error) { out := new(GetCurrencyPairMappingResponse) - err := c.cc.Invoke(ctx, "/slinky.oracle.v1.Query/GetCurrencyPairMapping", in, out, opts...) + err := c.cc.Invoke(ctx, "/connect.oracle.v2.Query/GetCurrencyPairMapping", in, out, opts...) if err != nil { return nil, err } @@ -586,7 +584,7 @@ func _Query_GetAllCurrencyPairs_Handler(srv interface{}, ctx context.Context, de } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/slinky.oracle.v1.Query/GetAllCurrencyPairs", + FullMethod: "/connect.oracle.v2.Query/GetAllCurrencyPairs", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).GetAllCurrencyPairs(ctx, req.(*GetAllCurrencyPairsRequest)) @@ -604,7 +602,7 @@ func _Query_GetPrice_Handler(srv interface{}, ctx context.Context, dec func(inte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/slinky.oracle.v1.Query/GetPrice", + FullMethod: "/connect.oracle.v2.Query/GetPrice", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).GetPrice(ctx, req.(*GetPriceRequest)) @@ -622,7 +620,7 @@ func _Query_GetPrices_Handler(srv interface{}, ctx context.Context, dec func(int } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/slinky.oracle.v1.Query/GetPrices", + FullMethod: "/connect.oracle.v2.Query/GetPrices", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).GetPrices(ctx, req.(*GetPricesRequest)) @@ -640,7 +638,7 @@ func _Query_GetCurrencyPairMapping_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/slinky.oracle.v1.Query/GetCurrencyPairMapping", + FullMethod: "/connect.oracle.v2.Query/GetCurrencyPairMapping", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).GetCurrencyPairMapping(ctx, req.(*GetCurrencyPairMappingRequest)) @@ -649,7 +647,7 @@ func _Query_GetCurrencyPairMapping_Handler(srv interface{}, ctx context.Context, } var _Query_serviceDesc = grpc.ServiceDesc{ - ServiceName: "slinky.oracle.v1.Query", + ServiceName: "connect.oracle.v2.Query", HandlerType: (*QueryServer)(nil), Methods: []grpc.MethodDesc{ { @@ -670,7 +668,7 @@ var _Query_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "slinky/oracle/v1/query.proto", + Metadata: "connect/oracle/v2/query.proto", } func (m *GetAllCurrencyPairsRequest) Marshal() (dAtA []byte, err error) { @@ -753,16 +751,13 @@ func (m *GetPriceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - { - size, err := m.CurrencyPair.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) + if len(m.CurrencyPair) > 0 { + i -= len(m.CurrencyPair) + copy(dAtA[i:], m.CurrencyPair) + i = encodeVarintQuery(dAtA, i, uint64(len(m.CurrencyPair))) + i-- + dAtA[i] = 0xa } - i-- - dAtA[i] = 0xa return len(dAtA) - i, nil } @@ -994,8 +989,10 @@ func (m *GetPriceRequest) Size() (n int) { } var l int _ = l - l = m.CurrencyPair.Size() - n += 1 + l + sovQuery(uint64(l)) + l = len(m.CurrencyPair) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } return n } @@ -1251,7 +1248,7 @@ func (m *GetPriceRequest) Unmarshal(dAtA []byte) error { if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field CurrencyPair", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -1261,24 +1258,23 @@ func (m *GetPriceRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.CurrencyPair.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.CurrencyPair = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex diff --git a/x/oracle/types/query.pb.gw.go b/x/oracle/types/query.pb.gw.go index 5ebcddafd..9b26c2f6d 100644 --- a/x/oracle/types/query.pb.gw.go +++ b/x/oracle/types/query.pb.gw.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: slinky/oracle/v1/query.proto +// source: connect/oracle/v2/query.proto /* Package types is a reverse proxy. @@ -51,24 +51,6 @@ func local_request_Query_GetAllCurrencyPairs_0(ctx context.Context, marshaler ru } -func request_Query_GetAllCurrencyPairs_1(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetAllCurrencyPairsRequest - var metadata runtime.ServerMetadata - - msg, err := client.GetAllCurrencyPairs(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Query_GetAllCurrencyPairs_1(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetAllCurrencyPairsRequest - var metadata runtime.ServerMetadata - - msg, err := server.GetAllCurrencyPairs(ctx, &protoReq) - return msg, metadata, err - -} - var ( filter_Query_GetPrice_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} ) @@ -105,42 +87,6 @@ func local_request_Query_GetPrice_0(ctx context.Context, marshaler runtime.Marsh } -var ( - filter_Query_GetPrice_1 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} -) - -func request_Query_GetPrice_1(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetPriceRequest - var metadata runtime.ServerMetadata - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_GetPrice_1); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.GetPrice(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Query_GetPrice_1(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetPriceRequest - var metadata runtime.ServerMetadata - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_GetPrice_1); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.GetPrice(ctx, &protoReq) - return msg, metadata, err - -} - var ( filter_Query_GetPrices_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} ) @@ -177,42 +123,6 @@ func local_request_Query_GetPrices_0(ctx context.Context, marshaler runtime.Mars } -var ( - filter_Query_GetPrices_1 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} -) - -func request_Query_GetPrices_1(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetPricesRequest - var metadata runtime.ServerMetadata - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_GetPrices_1); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.GetPrices(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Query_GetPrices_1(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetPricesRequest - var metadata runtime.ServerMetadata - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_GetPrices_1); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.GetPrices(ctx, &protoReq) - return msg, metadata, err - -} - func request_Query_GetCurrencyPairMapping_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq GetCurrencyPairMappingRequest var metadata runtime.ServerMetadata @@ -231,24 +141,6 @@ func local_request_Query_GetCurrencyPairMapping_0(ctx context.Context, marshaler } -func request_Query_GetCurrencyPairMapping_1(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetCurrencyPairMappingRequest - var metadata runtime.ServerMetadata - - msg, err := client.GetCurrencyPairMapping(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Query_GetCurrencyPairMapping_1(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetCurrencyPairMappingRequest - var metadata runtime.ServerMetadata - - msg, err := server.GetCurrencyPairMapping(ctx, &protoReq) - return msg, metadata, err - -} - // RegisterQueryHandlerServer registers the http handlers for service Query to "mux". // UnaryRPC :call QueryServer directly. // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. @@ -278,29 +170,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) - mux.Handle("GET", pattern_Query_GetAllCurrencyPairs_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Query_GetAllCurrencyPairs_1(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_GetAllCurrencyPairs_1(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - mux.Handle("GET", pattern_Query_GetPrice_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -324,29 +193,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) - mux.Handle("GET", pattern_Query_GetPrice_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Query_GetPrice_1(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_GetPrice_1(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - mux.Handle("GET", pattern_Query_GetPrices_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -370,29 +216,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) - mux.Handle("GET", pattern_Query_GetPrices_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Query_GetPrices_1(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_GetPrices_1(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - mux.Handle("GET", pattern_Query_GetCurrencyPairMapping_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -416,29 +239,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) - mux.Handle("GET", pattern_Query_GetCurrencyPairMapping_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Query_GetCurrencyPairMapping_1(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_GetCurrencyPairMapping_1(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - return nil } @@ -500,26 +300,6 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) - mux.Handle("GET", pattern_Query_GetAllCurrencyPairs_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Query_GetAllCurrencyPairs_1(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_GetAllCurrencyPairs_1(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - mux.Handle("GET", pattern_Query_GetPrice_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -540,26 +320,6 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) - mux.Handle("GET", pattern_Query_GetPrice_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Query_GetPrice_1(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_GetPrice_1(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - mux.Handle("GET", pattern_Query_GetPrices_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -580,26 +340,6 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) - mux.Handle("GET", pattern_Query_GetPrices_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Query_GetPrices_1(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_GetPrices_1(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - mux.Handle("GET", pattern_Query_GetCurrencyPairMapping_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -620,61 +360,25 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) - mux.Handle("GET", pattern_Query_GetCurrencyPairMapping_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Query_GetCurrencyPairMapping_1(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_GetCurrencyPairMapping_1(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - return nil } var ( - pattern_Query_GetAllCurrencyPairs_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"connect", "oracle", "v1", "get_all_tickers"}, "", runtime.AssumeColonVerbOpt(false))) - - pattern_Query_GetAllCurrencyPairs_1 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"slinky", "oracle", "v1", "get_all_tickers"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_GetAllCurrencyPairs_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"connect", "oracle", "v2", "get_all_tickers"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GetPrice_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"connect", "oracle", "v1", "get_price"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_GetPrice_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"connect", "oracle", "v2", "get_price"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GetPrice_1 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"slinky", "oracle", "v1", "get_price"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_GetPrices_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"connect", "oracle", "v2", "get_prices"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GetPrices_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"connect", "oracle", "v1", "get_prices"}, "", runtime.AssumeColonVerbOpt(false))) - - pattern_Query_GetPrices_1 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"slinky", "oracle", "v1", "get_prices"}, "", runtime.AssumeColonVerbOpt(false))) - - pattern_Query_GetCurrencyPairMapping_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"connect", "oracle", "v1", "get_currency_pair_mapping"}, "", runtime.AssumeColonVerbOpt(false))) - - pattern_Query_GetCurrencyPairMapping_1 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"slinky", "oracle", "v1", "get_currency_pair_mapping"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_GetCurrencyPairMapping_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"connect", "oracle", "v2", "get_currency_pair_mapping"}, "", runtime.AssumeColonVerbOpt(false))) ) var ( forward_Query_GetAllCurrencyPairs_0 = runtime.ForwardResponseMessage - forward_Query_GetAllCurrencyPairs_1 = runtime.ForwardResponseMessage - forward_Query_GetPrice_0 = runtime.ForwardResponseMessage - forward_Query_GetPrice_1 = runtime.ForwardResponseMessage - forward_Query_GetPrices_0 = runtime.ForwardResponseMessage - forward_Query_GetPrices_1 = runtime.ForwardResponseMessage - forward_Query_GetCurrencyPairMapping_0 = runtime.ForwardResponseMessage - - forward_Query_GetCurrencyPairMapping_1 = runtime.ForwardResponseMessage ) diff --git a/x/oracle/types/tx.pb.go b/x/oracle/types/tx.pb.go index 9a7818e01..df36725fc 100644 --- a/x/oracle/types/tx.pb.go +++ b/x/oracle/types/tx.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: slinky/oracle/v1/tx.proto +// source: connect/oracle/v2/tx.proto package types @@ -49,7 +49,7 @@ func (m *MsgAddCurrencyPairs) Reset() { *m = MsgAddCurrencyPairs{} } func (m *MsgAddCurrencyPairs) String() string { return proto.CompactTextString(m) } func (*MsgAddCurrencyPairs) ProtoMessage() {} func (*MsgAddCurrencyPairs) Descriptor() ([]byte, []int) { - return fileDescriptor_1cd987ee4c7d5236, []int{0} + return fileDescriptor_83be677051d99dbe, []int{0} } func (m *MsgAddCurrencyPairs) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -99,7 +99,7 @@ func (m *MsgAddCurrencyPairsResponse) Reset() { *m = MsgAddCurrencyPairs func (m *MsgAddCurrencyPairsResponse) String() string { return proto.CompactTextString(m) } func (*MsgAddCurrencyPairsResponse) ProtoMessage() {} func (*MsgAddCurrencyPairsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1cd987ee4c7d5236, []int{1} + return fileDescriptor_83be677051d99dbe, []int{1} } func (m *MsgAddCurrencyPairsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -146,7 +146,7 @@ func (m *MsgRemoveCurrencyPairs) Reset() { *m = MsgRemoveCurrencyPairs{} func (m *MsgRemoveCurrencyPairs) String() string { return proto.CompactTextString(m) } func (*MsgRemoveCurrencyPairs) ProtoMessage() {} func (*MsgRemoveCurrencyPairs) Descriptor() ([]byte, []int) { - return fileDescriptor_1cd987ee4c7d5236, []int{2} + return fileDescriptor_83be677051d99dbe, []int{2} } func (m *MsgRemoveCurrencyPairs) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -196,7 +196,7 @@ func (m *MsgRemoveCurrencyPairsResponse) Reset() { *m = MsgRemoveCurrenc func (m *MsgRemoveCurrencyPairsResponse) String() string { return proto.CompactTextString(m) } func (*MsgRemoveCurrencyPairsResponse) ProtoMessage() {} func (*MsgRemoveCurrencyPairsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1cd987ee4c7d5236, []int{3} + return fileDescriptor_83be677051d99dbe, []int{3} } func (m *MsgRemoveCurrencyPairsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -226,46 +226,45 @@ func (m *MsgRemoveCurrencyPairsResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgRemoveCurrencyPairsResponse proto.InternalMessageInfo func init() { - proto.RegisterType((*MsgAddCurrencyPairs)(nil), "slinky.oracle.v1.MsgAddCurrencyPairs") - proto.RegisterType((*MsgAddCurrencyPairsResponse)(nil), "slinky.oracle.v1.MsgAddCurrencyPairsResponse") - proto.RegisterType((*MsgRemoveCurrencyPairs)(nil), "slinky.oracle.v1.MsgRemoveCurrencyPairs") - proto.RegisterType((*MsgRemoveCurrencyPairsResponse)(nil), "slinky.oracle.v1.MsgRemoveCurrencyPairsResponse") -} - -func init() { proto.RegisterFile("slinky/oracle/v1/tx.proto", fileDescriptor_1cd987ee4c7d5236) } - -var fileDescriptor_1cd987ee4c7d5236 = []byte{ - // 466 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x53, 0x4f, 0x8b, 0xd3, 0x40, - 0x14, 0xcf, 0xb8, 0x2a, 0x74, 0x44, 0xdd, 0xcd, 0x2e, 0xda, 0x8d, 0x6c, 0xb6, 0x54, 0x84, 0x52, - 0xe8, 0x8c, 0xad, 0xe0, 0x61, 0x6f, 0x5b, 0x0f, 0xa2, 0x50, 0x90, 0xec, 0xcd, 0x4b, 0xc9, 0x26, - 0xc3, 0x74, 0xd8, 0x4d, 0x26, 0xce, 0x9b, 0x86, 0xcd, 0x4d, 0x3c, 0x7a, 0xf2, 0x23, 0xf8, 0x11, - 0x7a, 0xf0, 0xe0, 0x47, 0xd8, 0xe3, 0x22, 0x08, 0x9e, 0x44, 0xda, 0x43, 0xf5, 0x5b, 0x48, 0x93, - 0x09, 0x6d, 0xdd, 0x1c, 0x56, 0xd8, 0x4b, 0xc8, 0x7b, 0xef, 0x37, 0xef, 0xf7, 0x27, 0x13, 0xbc, - 0x0b, 0xa7, 0x22, 0x3e, 0xc9, 0xa8, 0x54, 0x7e, 0x70, 0xca, 0x68, 0xda, 0xa5, 0xfa, 0x8c, 0x24, - 0x4a, 0x6a, 0x69, 0x6f, 0x16, 0x23, 0x52, 0x8c, 0x48, 0xda, 0x75, 0xdc, 0x4b, 0x60, 0xce, 0x62, - 0x06, 0x02, 0x8a, 0x13, 0xce, 0x6e, 0x20, 0x21, 0x92, 0x30, 0xcc, 0x2b, 0x5a, 0x14, 0x66, 0xf4, - 0xb0, 0xa8, 0x68, 0x04, 0x7c, 0x71, 0x2e, 0x02, 0x6e, 0x06, 0x5b, 0x7e, 0x24, 0x62, 0x49, 0xf3, - 0xa7, 0x69, 0xed, 0x70, 0xc9, 0x65, 0xb1, 0x63, 0xf1, 0x66, 0xba, 0x8f, 0x0d, 0xb9, 0xce, 0x12, - 0x06, 0x8b, 0x1d, 0xc1, 0x58, 0x29, 0x16, 0x07, 0xd9, 0x30, 0xf1, 0x85, 0x2a, 0x40, 0xcd, 0xef, - 0x08, 0x6f, 0x0f, 0x80, 0x1f, 0x86, 0xe1, 0x0b, 0x33, 0x7d, 0xe3, 0x0b, 0x05, 0xf6, 0x73, 0x5c, - 0xf3, 0xc7, 0x7a, 0x24, 0x95, 0xd0, 0x59, 0x1d, 0x35, 0x50, 0xab, 0xd6, 0xaf, 0x7f, 0xfb, 0xd2, - 0xd9, 0x31, 0x1a, 0x0f, 0xc3, 0x50, 0x31, 0x80, 0x23, 0xad, 0x44, 0xcc, 0xbd, 0x25, 0xd4, 0x7e, - 0x8d, 0xef, 0xad, 0xd1, 0x40, 0xfd, 0x46, 0x63, 0xa3, 0x75, 0xa7, 0xb7, 0x47, 0x4c, 0x38, 0xb9, - 0x1a, 0x92, 0x76, 0xc9, 0x2a, 0x5f, 0xff, 0xe6, 0xf9, 0xcf, 0x7d, 0xcb, 0xbb, 0x1b, 0xac, 0x6a, - 0x38, 0x38, 0xf8, 0xfd, 0x79, 0xdf, 0xfa, 0x30, 0x9f, 0xb4, 0x97, 0xfb, 0x3f, 0xce, 0x27, 0xed, - 0xd2, 0xd7, 0x59, 0x19, 0x6b, 0x85, 0xfe, 0xe6, 0x1e, 0x7e, 0x54, 0xd1, 0xf6, 0x18, 0x24, 0x32, - 0x06, 0xd6, 0xfc, 0x8a, 0xf0, 0x83, 0x01, 0x70, 0x8f, 0x45, 0x32, 0x65, 0xd7, 0xe3, 0xbc, 0x8d, - 0xb7, 0xd6, 0x9c, 0x0f, 0x45, 0x58, 0x98, 0xaf, 0x79, 0xf7, 0x57, 0x7d, 0xbd, 0x0a, 0xff, 0xcb, - 0xd9, 0x11, 0xd3, 0xeb, 0xce, 0x1a, 0xd8, 0xad, 0x56, 0x5e, 0x9a, 0xeb, 0xfd, 0x41, 0x78, 0x63, - 0x00, 0xdc, 0x1e, 0xe1, 0xcd, 0x4b, 0xdf, 0xf5, 0x09, 0xf9, 0xf7, 0x92, 0x92, 0x8a, 0x9c, 0x9c, - 0xce, 0x95, 0x60, 0x25, 0xa3, 0xfd, 0x0e, 0x6f, 0x57, 0x45, 0xd9, 0xaa, 0xdc, 0x52, 0x81, 0x74, - 0x9e, 0x5e, 0x15, 0x59, 0x52, 0x3a, 0xb7, 0xde, 0xcf, 0x27, 0x6d, 0xd4, 0x7f, 0x79, 0x3e, 0x75, - 0xd1, 0xc5, 0xd4, 0x45, 0xbf, 0xa6, 0x2e, 0xfa, 0x34, 0x73, 0xad, 0x8b, 0x99, 0x6b, 0xfd, 0x98, - 0xb9, 0xd6, 0xdb, 0x0e, 0x17, 0x7a, 0x34, 0x3e, 0x26, 0x81, 0x8c, 0x28, 0x9c, 0x88, 0xa4, 0x13, - 0xb1, 0x94, 0x06, 0x32, 0x8e, 0x59, 0xa0, 0x69, 0xda, 0x5b, 0x86, 0x9c, 0xdf, 0xc8, 0xe3, 0xdb, - 0xf9, 0xff, 0xf0, 0xec, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x3f, 0xab, 0x45, 0x62, 0xe0, 0x03, - 0x00, 0x00, + proto.RegisterType((*MsgAddCurrencyPairs)(nil), "connect.oracle.v2.MsgAddCurrencyPairs") + proto.RegisterType((*MsgAddCurrencyPairsResponse)(nil), "connect.oracle.v2.MsgAddCurrencyPairsResponse") + proto.RegisterType((*MsgRemoveCurrencyPairs)(nil), "connect.oracle.v2.MsgRemoveCurrencyPairs") + proto.RegisterType((*MsgRemoveCurrencyPairsResponse)(nil), "connect.oracle.v2.MsgRemoveCurrencyPairsResponse") +} + +func init() { proto.RegisterFile("connect/oracle/v2/tx.proto", fileDescriptor_83be677051d99dbe) } + +var fileDescriptor_83be677051d99dbe = []byte{ + // 461 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4a, 0xce, 0xcf, 0xcb, + 0x4b, 0x4d, 0x2e, 0xd1, 0xcf, 0x2f, 0x4a, 0x4c, 0xce, 0x49, 0xd5, 0x2f, 0x33, 0xd2, 0x2f, 0xa9, + 0xd0, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x84, 0xca, 0xe9, 0x41, 0xe4, 0xf4, 0xca, 0x8c, + 0xa4, 0xe4, 0x31, 0x95, 0xa7, 0xa7, 0xe6, 0xa5, 0x16, 0x67, 0x16, 0x43, 0xf4, 0x48, 0x49, 0x26, + 0xe7, 0x17, 0xe7, 0xe6, 0x17, 0xc7, 0x83, 0x79, 0xfa, 0x10, 0x0e, 0x54, 0x4a, 0x1c, 0xc2, 0xd3, + 0xcf, 0x2d, 0x4e, 0xd7, 0x2f, 0x33, 0x04, 0x51, 0x50, 0x09, 0xc1, 0xc4, 0xdc, 0xcc, 0xbc, 0x7c, + 0x7d, 0x30, 0x09, 0x15, 0x12, 0x49, 0xcf, 0x4f, 0xcf, 0x87, 0x98, 0x01, 0x62, 0x41, 0x45, 0x55, + 0x60, 0xb6, 0x97, 0x54, 0x16, 0xa4, 0x16, 0x83, 0x2c, 0x4f, 0x2e, 0x2d, 0x2a, 0x4a, 0xcd, 0x4b, + 0xae, 0x8c, 0x2f, 0x48, 0xcc, 0x2c, 0x82, 0xa8, 0x52, 0xba, 0xce, 0xc8, 0x25, 0xec, 0x5b, 0x9c, + 0xee, 0x98, 0x92, 0xe2, 0x0c, 0x95, 0x0d, 0x48, 0xcc, 0x2c, 0x2a, 0x16, 0x32, 0xe3, 0xe2, 0x4c, + 0x2c, 0x2d, 0xc9, 0xc8, 0x2f, 0xca, 0x2c, 0xa9, 0x94, 0x60, 0x54, 0x60, 0xd4, 0xe0, 0x74, 0x92, + 0xb8, 0xb4, 0x45, 0x57, 0x04, 0xea, 0x48, 0xc7, 0x94, 0x94, 0xa2, 0xd4, 0xe2, 0xe2, 0xe0, 0x92, + 0xa2, 0xcc, 0xbc, 0xf4, 0x20, 0x84, 0x52, 0x21, 0x6f, 0x2e, 0x3e, 0x14, 0x6b, 0x8a, 0x25, 0x98, + 0x14, 0x98, 0x35, 0xb8, 0x8d, 0xe4, 0xf4, 0x60, 0xe1, 0x03, 0x76, 0x8e, 0x5e, 0x99, 0x91, 0x1e, + 0xb2, 0x85, 0x4e, 0x2c, 0x27, 0xee, 0xc9, 0x33, 0x04, 0xf1, 0x26, 0x23, 0x3b, 0xc2, 0xca, 0xfa, + 0xc5, 0x02, 0x79, 0x86, 0xa6, 0xe7, 0x1b, 0xb4, 0x10, 0x16, 0x74, 0x3d, 0xdf, 0xa0, 0x05, 0xf7, + 0x59, 0x05, 0x2c, 0x64, 0xb1, 0xf8, 0x40, 0x49, 0x96, 0x4b, 0x1a, 0x8b, 0x70, 0x50, 0x6a, 0x71, + 0x41, 0x7e, 0x5e, 0x71, 0xaa, 0xd2, 0x4e, 0x46, 0x2e, 0x31, 0xdf, 0xe2, 0xf4, 0xa0, 0xd4, 0xdc, + 0xfc, 0xb2, 0x54, 0xea, 0xf8, 0x5d, 0x8b, 0x4b, 0x10, 0xc5, 0xef, 0xf1, 0x99, 0x29, 0x10, 0xef, + 0x73, 0x06, 0xf1, 0x23, 0x7b, 0xcc, 0x33, 0x85, 0x34, 0xaf, 0x05, 0xa7, 0x96, 0xa0, 0x7a, 0x4d, + 0x81, 0x4b, 0x0e, 0xbb, 0xd3, 0x61, 0xbe, 0x33, 0x7a, 0xcb, 0xc8, 0xc5, 0xec, 0x5b, 0x9c, 0x2e, + 0x94, 0xc5, 0x25, 0x80, 0x11, 0xb5, 0x6a, 0x7a, 0x18, 0x49, 0x55, 0x0f, 0x4b, 0x48, 0x49, 0xe9, + 0x11, 0xa7, 0x0e, 0x66, 0xa7, 0x50, 0x31, 0x97, 0x30, 0xb6, 0xd0, 0xd4, 0xc4, 0x6e, 0x0c, 0x16, + 0xa5, 0x52, 0x86, 0x44, 0x2b, 0x85, 0x59, 0x2a, 0xc5, 0xda, 0xf0, 0x7c, 0x83, 0x16, 0xa3, 0x93, + 0xfb, 0x89, 0x47, 0x72, 0x8c, 0x17, 0x1e, 0xc9, 0x31, 0x3e, 0x78, 0x24, 0xc7, 0x38, 0xe1, 0xb1, + 0x1c, 0xc3, 0x85, 0xc7, 0x72, 0x0c, 0x37, 0x1e, 0xcb, 0x31, 0x44, 0xe9, 0xa6, 0x67, 0x96, 0x64, + 0x94, 0x26, 0xe9, 0x25, 0xe7, 0xe7, 0xea, 0x17, 0x67, 0x67, 0x16, 0xe8, 0xe6, 0xa6, 0x96, 0xe9, + 0xc3, 0x42, 0xb9, 0xcc, 0x08, 0x11, 0xd0, 0xe0, 0x74, 0x99, 0xc4, 0x06, 0xce, 0x16, 0xc6, 0x80, + 0x00, 0x00, 0x00, 0xff, 0xff, 0x96, 0xe1, 0x78, 0x05, 0xeb, 0x03, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -300,7 +299,7 @@ func NewMsgClient(cc grpc1.ClientConn) MsgClient { func (c *msgClient) AddCurrencyPairs(ctx context.Context, in *MsgAddCurrencyPairs, opts ...grpc.CallOption) (*MsgAddCurrencyPairsResponse, error) { out := new(MsgAddCurrencyPairsResponse) - err := c.cc.Invoke(ctx, "/slinky.oracle.v1.Msg/AddCurrencyPairs", in, out, opts...) + err := c.cc.Invoke(ctx, "/connect.oracle.v2.Msg/AddCurrencyPairs", in, out, opts...) if err != nil { return nil, err } @@ -309,7 +308,7 @@ func (c *msgClient) AddCurrencyPairs(ctx context.Context, in *MsgAddCurrencyPair func (c *msgClient) RemoveCurrencyPairs(ctx context.Context, in *MsgRemoveCurrencyPairs, opts ...grpc.CallOption) (*MsgRemoveCurrencyPairsResponse, error) { out := new(MsgRemoveCurrencyPairsResponse) - err := c.cc.Invoke(ctx, "/slinky.oracle.v1.Msg/RemoveCurrencyPairs", in, out, opts...) + err := c.cc.Invoke(ctx, "/connect.oracle.v2.Msg/RemoveCurrencyPairs", in, out, opts...) if err != nil { return nil, err } @@ -353,7 +352,7 @@ func _Msg_AddCurrencyPairs_Handler(srv interface{}, ctx context.Context, dec fun } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/slinky.oracle.v1.Msg/AddCurrencyPairs", + FullMethod: "/connect.oracle.v2.Msg/AddCurrencyPairs", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).AddCurrencyPairs(ctx, req.(*MsgAddCurrencyPairs)) @@ -371,7 +370,7 @@ func _Msg_RemoveCurrencyPairs_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/slinky.oracle.v1.Msg/RemoveCurrencyPairs", + FullMethod: "/connect.oracle.v2.Msg/RemoveCurrencyPairs", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).RemoveCurrencyPairs(ctx, req.(*MsgRemoveCurrencyPairs)) @@ -380,7 +379,7 @@ func _Msg_RemoveCurrencyPairs_Handler(srv interface{}, ctx context.Context, dec } var _Msg_serviceDesc = grpc.ServiceDesc{ - ServiceName: "slinky.oracle.v1.Msg", + ServiceName: "connect.oracle.v2.Msg", HandlerType: (*MsgServer)(nil), Methods: []grpc.MethodDesc{ { @@ -393,7 +392,7 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "slinky/oracle/v1/tx.proto", + Metadata: "connect/oracle/v2/tx.proto", } func (m *MsgAddCurrencyPairs) Marshal() (dAtA []byte, err error) {