mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-02 17:31:39 +00:00
7558 lines
277 KiB
Go
7558 lines
277 KiB
Go
// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
|
|||
|
|
package dexv1
|
||
|
|
|
||
|
|
import (
|
||
|
|
fmt "fmt"
|
||
|
|
io "io"
|
||
|
|
reflect "reflect"
|
||
|
|
sync "sync"
|
||
|
|
|
||
|
|
v1beta1 "cosmossdk.io/api/cosmos/base/v1beta1"
|
||
|
|
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"
|
||
|
|
)
|
||
|
|
|
||
|
|
var (
|
||
|
|
md_EventDEXAccountRegistered protoreflect.MessageDescriptor
|
||
|
|
fd_EventDEXAccountRegistered_did protoreflect.FieldDescriptor
|
||
|
|
fd_EventDEXAccountRegistered_connection_id protoreflect.FieldDescriptor
|
||
|
|
fd_EventDEXAccountRegistered_port_id protoreflect.FieldDescriptor
|
||
|
|
fd_EventDEXAccountRegistered_account_address protoreflect.FieldDescriptor
|
||
|
|
)
|
||
|
|
|
||
|
|
func init() {
|
||
|
|
file_dex_v1_events_proto_init()
|
||
|
|
md_EventDEXAccountRegistered = File_dex_v1_events_proto.Messages().ByName("EventDEXAccountRegistered")
|
||
|
|
fd_EventDEXAccountRegistered_did = md_EventDEXAccountRegistered.Fields().ByName("did")
|
||
|
|
fd_EventDEXAccountRegistered_connection_id = md_EventDEXAccountRegistered.Fields().ByName("connection_id")
|
||
|
|
fd_EventDEXAccountRegistered_port_id = md_EventDEXAccountRegistered.Fields().ByName("port_id")
|
||
|
|
fd_EventDEXAccountRegistered_account_address = md_EventDEXAccountRegistered.Fields().ByName("account_address")
|
||
|
|
}
|
||
|
|
|
||
|
|
var _ protoreflect.Message = (*fastReflection_EventDEXAccountRegistered)(nil)
|
||
|
|
|
||
|
|
type fastReflection_EventDEXAccountRegistered EventDEXAccountRegistered
|
||
|
|
|
||
|
|
func (x *EventDEXAccountRegistered) ProtoReflect() protoreflect.Message {
|
||
|
|
return (*fastReflection_EventDEXAccountRegistered)(x)
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *EventDEXAccountRegistered) slowProtoReflect() protoreflect.Message {
|
||
|
|
mi := &file_dex_v1_events_proto_msgTypes[0]
|
||
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
||
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
|
if ms.LoadMessageInfo() == nil {
|
||
|
|
ms.StoreMessageInfo(mi)
|
||
|
|
}
|
||
|
|
return ms
|
||
|
|
}
|
||
|
|
return mi.MessageOf(x)
|
||
|
|
}
|
||
|
|
|
||
|
|
var _fastReflection_EventDEXAccountRegistered_messageType fastReflection_EventDEXAccountRegistered_messageType
|
||
|
|
var _ protoreflect.MessageType = fastReflection_EventDEXAccountRegistered_messageType{}
|
||
|
|
|
||
|
|
type fastReflection_EventDEXAccountRegistered_messageType struct{}
|
||
|
|
|
||
|
|
func (x fastReflection_EventDEXAccountRegistered_messageType) Zero() protoreflect.Message {
|
||
|
|
return (*fastReflection_EventDEXAccountRegistered)(nil)
|
||
|
|
}
|
||
|
|
func (x fastReflection_EventDEXAccountRegistered_messageType) New() protoreflect.Message {
|
||
|
|
return new(fastReflection_EventDEXAccountRegistered)
|
||
|
|
}
|
||
|
|
func (x fastReflection_EventDEXAccountRegistered_messageType) Descriptor() protoreflect.MessageDescriptor {
|
||
|
|
return md_EventDEXAccountRegistered
|
||
|
|
}
|
||
|
|
|
||
|
|
// Descriptor returns message descriptor, which contains only the protobuf
|
||
|
|
// type information for the message.
|
||
|
|
func (x *fastReflection_EventDEXAccountRegistered) Descriptor() protoreflect.MessageDescriptor {
|
||
|
|
return md_EventDEXAccountRegistered
|
||
|
|
}
|
||
|
|
|
||
|
|
// Type returns the message type, which encapsulates both Go and protobuf
|
||
|
|
// type information. If the Go type information is not needed,
|
||
|
|
// it is recommended that the message descriptor be used instead.
|
||
|
|
func (x *fastReflection_EventDEXAccountRegistered) Type() protoreflect.MessageType {
|
||
|
|
return _fastReflection_EventDEXAccountRegistered_messageType
|
||
|
|
}
|
||
|
|
|
||
|
|
// New returns a newly allocated and mutable empty message.
|
||
|
|
func (x *fastReflection_EventDEXAccountRegistered) New() protoreflect.Message {
|
||
|
|
return new(fastReflection_EventDEXAccountRegistered)
|
||
|
|
}
|
||
|
|
|
||
|
|
// Interface unwraps the message reflection interface and
|
||
|
|
// returns the underlying ProtoMessage interface.
|
||
|
|
func (x *fastReflection_EventDEXAccountRegistered) Interface() protoreflect.ProtoMessage {
|
||
|
|
return (*EventDEXAccountRegistered)(x)
|
||
|
|
}
|
||
|
|
|
||
|
|
// Range iterates over every populated field in an undefined order,
|
||
|
|
// calling f for each field descriptor and value encountered.
|
||
|
|
// Range returns immediately if f returns false.
|
||
|
|
// While iterating, mutating operations may only be performed
|
||
|
|
// on the current field descriptor.
|
||
|
|
func (x *fastReflection_EventDEXAccountRegistered) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
|
||
|
|
if x.Did != "" {
|
||
|
|
value := protoreflect.ValueOfString(x.Did)
|
||
|
|
if !f(fd_EventDEXAccountRegistered_did, value) {
|
||
|
|
return
|
||
|
|
}
|
||
|
|
}
|
||
|
|
if x.ConnectionId != "" {
|
||
|
|
value := protoreflect.ValueOfString(x.ConnectionId)
|
||
|
|
if !f(fd_EventDEXAccountRegistered_connection_id, value) {
|
||
|
|
return
|
||
|
|
}
|
||
|
|
}
|
||
|
|
if x.PortId != "" {
|
||
|
|
value := protoreflect.ValueOfString(x.PortId)
|
||
|
|
if !f(fd_EventDEXAccountRegistered_port_id, value) {
|
||
|
|
return
|
||
|
|
}
|
||
|
|
}
|
||
|
|
if x.AccountAddress != "" {
|
||
|
|
value := protoreflect.ValueOfString(x.AccountAddress)
|
||
|
|
if !f(fd_EventDEXAccountRegistered_account_address, value) {
|
||
|
|
return
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// Has reports whether a field is populated.
|
||
|
|
//
|
||
|
|
// Some fields have the property of nullability where it is possible to
|
||
|
|
// distinguish between the default value of a field and whether the field
|
||
|
|
// was explicitly populated with the default value. Singular message fields,
|
||
|
|
// member fields of a oneof, and proto2 scalar fields are nullable. Such
|
||
|
|
// fields are populated only if explicitly set.
|
||
|
|
//
|
||
|
|
// In other cases (aside from the nullable cases above),
|
||
|
|
// a proto3 scalar field is populated if it contains a non-zero value, and
|
||
|
|
// a repeated field is populated if it is non-empty.
|
||
|
|
func (x *fastReflection_EventDEXAccountRegistered) Has(fd protoreflect.FieldDescriptor) bool {
|
||
|
|
switch fd.FullName() {
|
||
|
|
case "dex.v1.EventDEXAccountRegistered.did":
|
||
|
|
return x.Did != ""
|
||
|
|
case "dex.v1.EventDEXAccountRegistered.connection_id":
|
||
|
|
return x.ConnectionId != ""
|
||
|
|
case "dex.v1.EventDEXAccountRegistered.port_id":
|
||
|
|
return x.PortId != ""
|
||
|
|
case "dex.v1.EventDEXAccountRegistered.account_address":
|
||
|
|
return x.AccountAddress != ""
|
||
|
|
default:
|
||
|
|
if fd.IsExtension() {
|
||
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: dex.v1.EventDEXAccountRegistered"))
|
||
|
|
}
|
||
|
|
panic(fmt.Errorf("message dex.v1.EventDEXAccountRegistered does not contain field %s", fd.FullName()))
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// Clear clears the field such that a subsequent Has call reports false.
|
||
|
|
//
|
||
|
|
// Clearing an extension field clears both the extension type and value
|
||
|
|
// associated with the given field number.
|
||
|
|
//
|
||
|
|
// Clear is a mutating operation and unsafe for concurrent use.
|
||
|
|
func (x *fastReflection_EventDEXAccountRegistered) Clear(fd protoreflect.FieldDescriptor) {
|
||
|
|
switch fd.FullName() {
|
||
|
|
case "dex.v1.EventDEXAccountRegistered.did":
|
||
|
|
x.Did = ""
|
||
|
|
case "dex.v1.EventDEXAccountRegistered.connection_id":
|
||
|
|
x.ConnectionId = ""
|
||
|
|
case "dex.v1.EventDEXAccountRegistered.port_id":
|
||
|
|
x.PortId = ""
|
||
|
|
case "dex.v1.EventDEXAccountRegistered.account_address":
|
||
|
|
x.AccountAddress = ""
|
||
|
|
default:
|
||
|
|
if fd.IsExtension() {
|
||
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: dex.v1.EventDEXAccountRegistered"))
|
||
|
|
}
|
||
|
|
panic(fmt.Errorf("message dex.v1.EventDEXAccountRegistered does not contain field %s", fd.FullName()))
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// Get retrieves the value for a field.
|
||
|
|
//
|
||
|
|
// For unpopulated scalars, it returns the default value, where
|
||
|
|
// the default value of a bytes scalar is guaranteed to be a copy.
|
||
|
|
// For unpopulated composite types, it returns an empty, read-only view
|
||
|
|
// of the value; to obtain a mutable reference, use Mutable.
|
||
|
|
func (x *fastReflection_EventDEXAccountRegistered) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
|
switch descriptor.FullName() {
|
||
|
|
case "dex.v1.EventDEXAccountRegistered.did":
|
||
|
|
value := x.Did
|
||
|
|
return protoreflect.ValueOfString(value)
|
||
|
|
case "dex.v1.EventDEXAccountRegistered.connection_id":
|
||
|
|
value := x.ConnectionId
|
||
|
|
return protoreflect.ValueOfString(value)
|
||
|
|
case "dex.v1.EventDEXAccountRegistered.port_id":
|
||
|
|
value := x.PortId
|
||
|
|
return protoreflect.ValueOfString(value)
|
||
|
|
case "dex.v1.EventDEXAccountRegistered.account_address":
|
||
|
|
value := x.AccountAddress
|
||
|
|
return protoreflect.ValueOfString(value)
|
||
|
|
default:
|
||
|
|
if descriptor.IsExtension() {
|
||
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: dex.v1.EventDEXAccountRegistered"))
|
||
|
|
}
|
||
|
|
panic(fmt.Errorf("message dex.v1.EventDEXAccountRegistered does not contain field %s", descriptor.FullName()))
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// Set stores the value for a field.
|
||
|
|
//
|
||
|
|
// For a field belonging to a oneof, it implicitly clears any other field
|
||
|
|
// that may be currently set within the same oneof.
|
||
|
|
// For extension fields, it implicitly stores the provided ExtensionType.
|
||
|
|
// When setting a composite type, it is unspecified whether the stored value
|
||
|
|
// aliases the source's memory in any way. If the composite value is an
|
||
|
|
// empty, read-only value, then it panics.
|
||
|
|
//
|
||
|
|
// Set is a mutating operation and unsafe for concurrent use.
|
||
|
|
func (x *fastReflection_EventDEXAccountRegistered) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
||
|
|
switch fd.FullName() {
|
||
|
|
case "dex.v1.EventDEXAccountRegistered.did":
|
||
|
|
x.Did = value.Interface().(string)
|
||
|
|
case "dex.v1.EventDEXAccountRegistered.connection_id":
|
||
|
|
x.ConnectionId = value.Interface().(string)
|
||
|
|
case "dex.v1.EventDEXAccountRegistered.port_id":
|
||
|
|
x.PortId = value.Interface().(string)
|
||
|
|
case "dex.v1.EventDEXAccountRegistered.account_address":
|
||
|
|
x.AccountAddress = value.Interface().(string)
|
||
|
|
default:
|
||
|
|
if fd.IsExtension() {
|
||
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: dex.v1.EventDEXAccountRegistered"))
|
||
|
|
}
|
||
|
|
panic(fmt.Errorf("message dex.v1.EventDEXAccountRegistered does not contain field %s", fd.FullName()))
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// Mutable returns a mutable reference to a composite type.
|
||
|
|
//
|
||
|
|
// If the field is unpopulated, it may allocate a composite value.
|
||
|
|
// For a field belonging to a oneof, it implicitly clears any other field
|
||
|
|
// that may be currently set within the same oneof.
|
||
|
|
// For extension fields, it implicitly stores the provided ExtensionType
|
||
|
|
// if not already stored.
|
||
|
|
// It panics if the field does not contain a composite type.
|
||
|
|
//
|
||
|
|
// Mutable is a mutating operation and unsafe for concurrent use.
|
||
|
|
func (x *fastReflection_EventDEXAccountRegistered) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
|
switch fd.FullName() {
|
||
|
|
case "dex.v1.EventDEXAccountRegistered.did":
|
||
|
|
panic(fmt.Errorf("field did of message dex.v1.EventDEXAccountRegistered is not mutable"))
|
||
|
|
case "dex.v1.EventDEXAccountRegistered.connection_id":
|
||
|
|
panic(fmt.Errorf("field connection_id of message dex.v1.EventDEXAccountRegistered is not mutable"))
|
||
|
|
case "dex.v1.EventDEXAccountRegistered.port_id":
|
||
|
|
panic(fmt.Errorf("field port_id of message dex.v1.EventDEXAccountRegistered is not mutable"))
|
||
|
|
case "dex.v1.EventDEXAccountRegistered.account_address":
|
||
|
|
panic(fmt.Errorf("field account_address of message dex.v1.EventDEXAccountRegistered is not mutable"))
|
||
|
|
default:
|
||
|
|
if fd.IsExtension() {
|
||
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: dex.v1.EventDEXAccountRegistered"))
|
||
|
|
}
|
||
|
|
panic(fmt.Errorf("message dex.v1.EventDEXAccountRegistered does not contain field %s", fd.FullName()))
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// NewField returns a new value that is assignable to the field
|
||
|
|
// for the given descriptor. For scalars, this returns the default value.
|
||
|
|
// For lists, maps, and messages, this returns a new, empty, mutable value.
|
||
|
|
func (x *fastReflection_EventDEXAccountRegistered) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
|
switch fd.FullName() {
|
||
|
|
case "dex.v1.EventDEXAccountRegistered.did":
|
||
|
|
return protoreflect.ValueOfString("")
|
||
|
|
case "dex.v1.EventDEXAccountRegistered.connection_id":
|
||
|
|
return protoreflect.ValueOfString("")
|
||
|
|
case "dex.v1.EventDEXAccountRegistered.port_id":
|
||
|
|
return protoreflect.ValueOfString("")
|
||
|
|
case "dex.v1.EventDEXAccountRegistered.account_address":
|
||
|
|
return protoreflect.ValueOfString("")
|
||
|
|
default:
|
||
|
|
if fd.IsExtension() {
|
||
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: dex.v1.EventDEXAccountRegistered"))
|
||
|
|
}
|
||
|
|
panic(fmt.Errorf("message dex.v1.EventDEXAccountRegistered does not contain field %s", fd.FullName()))
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// WhichOneof reports which field within the oneof is populated,
|
||
|
|
// returning nil if none are populated.
|
||
|
|
// It panics if the oneof descriptor does not belong to this message.
|
||
|
|
func (x *fastReflection_EventDEXAccountRegistered) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
||
|
|
switch d.FullName() {
|
||
|
|
default:
|
||
|
|
panic(fmt.Errorf("%s is not a oneof field in dex.v1.EventDEXAccountRegistered", d.FullName()))
|
||
|
|
}
|
||
|
|
panic("unreachable")
|
||
|
|
}
|
||
|
|
|
||
|
|
// GetUnknown retrieves the entire list of unknown fields.
|
||
|
|
// The caller may only mutate the contents of the RawFields
|
||
|
|
// if the mutated bytes are stored back into the message with SetUnknown.
|
||
|
|
func (x *fastReflection_EventDEXAccountRegistered) GetUnknown() protoreflect.RawFields {
|
||
|
|
return x.unknownFields
|
||
|
|
}
|
||
|
|
|
||
|
|
// SetUnknown stores an entire list of unknown fields.
|
||
|
|
// The raw fields must be syntactically valid according to the wire format.
|
||
|
|
// An implementation may panic if this is not the case.
|
||
|
|
// Once stored, the caller must not mutate the content of the RawFields.
|
||
|
|
// An empty RawFields may be passed to clear the fields.
|
||
|
|
//
|
||
|
|
// SetUnknown is a mutating operation and unsafe for concurrent use.
|
||
|
|
func (x *fastReflection_EventDEXAccountRegistered) SetUnknown(fields protoreflect.RawFields) {
|
||
|
|
x.unknownFields = fields
|
||
|
|
}
|
||
|
|
|
||
|
|
// IsValid reports whether the message is valid.
|
||
|
|
//
|
||
|
|
// An invalid message is an empty, read-only value.
|
||
|
|
//
|
||
|
|
// An invalid message often corresponds to a nil pointer of the concrete
|
||
|
|
// message type, but the details are implementation dependent.
|
||
|
|
// Validity is not part of the protobuf data model, and may not
|
||
|
|
// be preserved in marshaling or other operations.
|
||
|
|
func (x *fastReflection_EventDEXAccountRegistered) IsValid() bool {
|
||
|
|
return x != nil
|
||
|
|
}
|
||
|
|
|
||
|
|
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
|
||
|
|
// This method may return nil.
|
||
|
|
//
|
||
|
|
// The returned methods type is identical to
|
||
|
|
// "google.golang.org/protobuf/runtime/protoiface".Methods.
|
||
|
|
// Consult the protoiface package documentation for details.
|
||
|
|
func (x *fastReflection_EventDEXAccountRegistered) ProtoMethods() *protoiface.Methods {
|
||
|
|
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
|
||
|
|
x := input.Message.Interface().(*EventDEXAccountRegistered)
|
||
|
|
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.Did)
|
||
|
|
if l > 0 {
|
||
|
|
n += 1 + l + runtime.Sov(uint64(l))
|
||
|
|
}
|
||
|
|
l = len(x.ConnectionId)
|
||
|
|
if l > 0 {
|
||
|
|
n += 1 + l + runtime.Sov(uint64(l))
|
||
|
|
}
|
||
|
|
l = len(x.PortId)
|
||
|
|
if l > 0 {
|
||
|
|
n += 1 + l + runtime.Sov(uint64(l))
|
||
|
|
}
|
||
|
|
l = len(x.AccountAddress)
|
||
|
|
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().(*EventDEXAccountRegistered)
|
||
|
|
if x == nil {
|
||
|
|
return protoiface.MarshalOutput{
|
||
|
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
||
|
|
Buf: input.Buf,
|
||
|
|
}, nil
|
||
|
|
}
|
||
|
|
options := runtime.MarshalInputToOptions(input)
|
||
|
|
_ = options
|
||
|
|
size := options.Size(x)
|
||
|
|
dAtA := make([]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.AccountAddress) > 0 {
|
||
|
|
i -= len(x.AccountAddress)
|
||
|
|
copy(dAtA[i:], x.AccountAddress)
|
||
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.AccountAddress)))
|
||
|
|
i--
|
||
|
|
dAtA[i] = 0x22
|
||
|
|
}
|
||
|
|
if len(x.PortId) > 0 {
|
||
|
|
i -= len(x.PortId)
|
||
|
|
copy(dAtA[i:], x.PortId)
|
||
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.PortId)))
|
||
|
|
i--
|
||
|
|
dAtA[i] = 0x1a
|
||
|
|
}
|
||
|
|
if len(x.ConnectionId) > 0 {
|
||
|
|
i -= len(x.ConnectionId)
|
||
|
|
copy(dAtA[i:], x.ConnectionId)
|
||
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ConnectionId)))
|
||
|
|
i--
|
||
|
|
dAtA[i] = 0x12
|
||
|
|
}
|
||
|
|
if len(x.Did) > 0 {
|
||
|
|
i -= len(x.Did)
|
||
|
|
copy(dAtA[i:], x.Did)
|
||
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Did)))
|
||
|
|
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().(*EventDEXAccountRegistered)
|
||
|
|
if x == nil {
|
||
|
|
return protoiface.UnmarshalOutput{
|
||
|
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
||
|
|
Flags: input.Flags,
|
||
|
|
}, nil
|
||
|
|
}
|
||
|
|
options := runtime.UnmarshalInputToOptions(input)
|
||
|
|
_ = options
|
||
|
|
dAtA := input.Buf
|
||
|
|
l := len(dAtA)
|
||
|
|
iNdEx := 0
|
||
|
|
for iNdEx < l {
|
||
|
|
preIndex := iNdEx
|
||
|
|
var wire uint64
|
||
|
|
for shift := uint(0); ; shift += 7 {
|
||
|
|
if shift >= 64 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
|
||
|
|
}
|
||
|
|
if iNdEx >= l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
b := dAtA[iNdEx]
|
||
|
|
iNdEx++
|
||
|
|
wire |= uint64(b&0x7F) << shift
|
||
|
|
if b < 0x80 {
|
||
|
|
break
|
||
|
|
}
|
||
|
|
}
|
||
|
|
fieldNum := int32(wire >> 3)
|
||
|
|
wireType := int(wire & 0x7)
|
||
|
|
if wireType == 4 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventDEXAccountRegistered: wiretype end group for non-group")
|
||
|
|
}
|
||
|
|
if fieldNum <= 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventDEXAccountRegistered: 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 Did", wireType)
|
||
|
|
}
|
||
|
|
var stringLen uint64
|
||
|
|
for shift := uint(0); ; shift += 7 {
|
||
|
|
if shift >= 64 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
|
||
|
|
}
|
||
|
|
if iNdEx >= l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
b := dAtA[iNdEx]
|
||
|
|
iNdEx++
|
||
|
|
stringLen |= uint64(b&0x7F) << shift
|
||
|
|
if b < 0x80 {
|
||
|
|
break
|
||
|
|
}
|
||
|
|
}
|
||
|
|
intStringLen := int(stringLen)
|
||
|
|
if intStringLen < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
postIndex := iNdEx + intStringLen
|
||
|
|
if postIndex < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
if postIndex > l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
x.Did = 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 ConnectionId", wireType)
|
||
|
|
}
|
||
|
|
var stringLen uint64
|
||
|
|
for shift := uint(0); ; shift += 7 {
|
||
|
|
if shift >= 64 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
|
||
|
|
}
|
||
|
|
if iNdEx >= l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
b := dAtA[iNdEx]
|
||
|
|
iNdEx++
|
||
|
|
stringLen |= uint64(b&0x7F) << shift
|
||
|
|
if b < 0x80 {
|
||
|
|
break
|
||
|
|
}
|
||
|
|
}
|
||
|
|
intStringLen := int(stringLen)
|
||
|
|
if intStringLen < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
postIndex := iNdEx + intStringLen
|
||
|
|
if postIndex < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
if postIndex > l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
x.ConnectionId = 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 PortId", wireType)
|
||
|
|
}
|
||
|
|
var stringLen uint64
|
||
|
|
for shift := uint(0); ; shift += 7 {
|
||
|
|
if shift >= 64 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
|
||
|
|
}
|
||
|
|
if iNdEx >= l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
b := dAtA[iNdEx]
|
||
|
|
iNdEx++
|
||
|
|
stringLen |= uint64(b&0x7F) << shift
|
||
|
|
if b < 0x80 {
|
||
|
|
break
|
||
|
|
}
|
||
|
|
}
|
||
|
|
intStringLen := int(stringLen)
|
||
|
|
if intStringLen < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
postIndex := iNdEx + intStringLen
|
||
|
|
if postIndex < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
if postIndex > l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
x.PortId = string(dAtA[iNdEx:postIndex])
|
||
|
|
iNdEx = postIndex
|
||
|
|
case 4:
|
||
|
|
if wireType != 2 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AccountAddress", wireType)
|
||
|
|
}
|
||
|
|
var stringLen uint64
|
||
|
|
for shift := uint(0); ; shift += 7 {
|
||
|
|
if shift >= 64 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
|
||
|
|
}
|
||
|
|
if iNdEx >= l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
b := dAtA[iNdEx]
|
||
|
|
iNdEx++
|
||
|
|
stringLen |= uint64(b&0x7F) << shift
|
||
|
|
if b < 0x80 {
|
||
|
|
break
|
||
|
|
}
|
||
|
|
}
|
||
|
|
intStringLen := int(stringLen)
|
||
|
|
if intStringLen < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
postIndex := iNdEx + intStringLen
|
||
|
|
if postIndex < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
if postIndex > l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
x.AccountAddress = 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_EventSwapExecuted protoreflect.MessageDescriptor
|
||
|
|
fd_EventSwapExecuted_did protoreflect.FieldDescriptor
|
||
|
|
fd_EventSwapExecuted_connection_id protoreflect.FieldDescriptor
|
||
|
|
fd_EventSwapExecuted_source protoreflect.FieldDescriptor
|
||
|
|
fd_EventSwapExecuted_target protoreflect.FieldDescriptor
|
||
|
|
fd_EventSwapExecuted_tx_hash protoreflect.FieldDescriptor
|
||
|
|
fd_EventSwapExecuted_sequence protoreflect.FieldDescriptor
|
||
|
|
)
|
||
|
|
|
||
|
|
func init() {
|
||
|
|
file_dex_v1_events_proto_init()
|
||
|
|
md_EventSwapExecuted = File_dex_v1_events_proto.Messages().ByName("EventSwapExecuted")
|
||
|
|
fd_EventSwapExecuted_did = md_EventSwapExecuted.Fields().ByName("did")
|
||
|
|
fd_EventSwapExecuted_connection_id = md_EventSwapExecuted.Fields().ByName("connection_id")
|
||
|
|
fd_EventSwapExecuted_source = md_EventSwapExecuted.Fields().ByName("source")
|
||
|
|
fd_EventSwapExecuted_target = md_EventSwapExecuted.Fields().ByName("target")
|
||
|
|
fd_EventSwapExecuted_tx_hash = md_EventSwapExecuted.Fields().ByName("tx_hash")
|
||
|
|
fd_EventSwapExecuted_sequence = md_EventSwapExecuted.Fields().ByName("sequence")
|
||
|
|
}
|
||
|
|
|
||
|
|
var _ protoreflect.Message = (*fastReflection_EventSwapExecuted)(nil)
|
||
|
|
|
||
|
|
type fastReflection_EventSwapExecuted EventSwapExecuted
|
||
|
|
|
||
|
|
func (x *EventSwapExecuted) ProtoReflect() protoreflect.Message {
|
||
|
|
return (*fastReflection_EventSwapExecuted)(x)
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *EventSwapExecuted) slowProtoReflect() protoreflect.Message {
|
||
|
|
mi := &file_dex_v1_events_proto_msgTypes[1]
|
||
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
||
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
|
if ms.LoadMessageInfo() == nil {
|
||
|
|
ms.StoreMessageInfo(mi)
|
||
|
|
}
|
||
|
|
return ms
|
||
|
|
}
|
||
|
|
return mi.MessageOf(x)
|
||
|
|
}
|
||
|
|
|
||
|
|
var _fastReflection_EventSwapExecuted_messageType fastReflection_EventSwapExecuted_messageType
|
||
|
|
var _ protoreflect.MessageType = fastReflection_EventSwapExecuted_messageType{}
|
||
|
|
|
||
|
|
type fastReflection_EventSwapExecuted_messageType struct{}
|
||
|
|
|
||
|
|
func (x fastReflection_EventSwapExecuted_messageType) Zero() protoreflect.Message {
|
||
|
|
return (*fastReflection_EventSwapExecuted)(nil)
|
||
|
|
}
|
||
|
|
func (x fastReflection_EventSwapExecuted_messageType) New() protoreflect.Message {
|
||
|
|
return new(fastReflection_EventSwapExecuted)
|
||
|
|
}
|
||
|
|
func (x fastReflection_EventSwapExecuted_messageType) Descriptor() protoreflect.MessageDescriptor {
|
||
|
|
return md_EventSwapExecuted
|
||
|
|
}
|
||
|
|
|
||
|
|
// Descriptor returns message descriptor, which contains only the protobuf
|
||
|
|
// type information for the message.
|
||
|
|
func (x *fastReflection_EventSwapExecuted) Descriptor() protoreflect.MessageDescriptor {
|
||
|
|
return md_EventSwapExecuted
|
||
|
|
}
|
||
|
|
|
||
|
|
// Type returns the message type, which encapsulates both Go and protobuf
|
||
|
|
// type information. If the Go type information is not needed,
|
||
|
|
// it is recommended that the message descriptor be used instead.
|
||
|
|
func (x *fastReflection_EventSwapExecuted) Type() protoreflect.MessageType {
|
||
|
|
return _fastReflection_EventSwapExecuted_messageType
|
||
|
|
}
|
||
|
|
|
||
|
|
// New returns a newly allocated and mutable empty message.
|
||
|
|
func (x *fastReflection_EventSwapExecuted) New() protoreflect.Message {
|
||
|
|
return new(fastReflection_EventSwapExecuted)
|
||
|
|
}
|
||
|
|
|
||
|
|
// Interface unwraps the message reflection interface and
|
||
|
|
// returns the underlying ProtoMessage interface.
|
||
|
|
func (x *fastReflection_EventSwapExecuted) Interface() protoreflect.ProtoMessage {
|
||
|
|
return (*EventSwapExecuted)(x)
|
||
|
|
}
|
||
|
|
|
||
|
|
// Range iterates over every populated field in an undefined order,
|
||
|
|
// calling f for each field descriptor and value encountered.
|
||
|
|
// Range returns immediately if f returns false.
|
||
|
|
// While iterating, mutating operations may only be performed
|
||
|
|
// on the current field descriptor.
|
||
|
|
func (x *fastReflection_EventSwapExecuted) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
|
||
|
|
if x.Did != "" {
|
||
|
|
value := protoreflect.ValueOfString(x.Did)
|
||
|
|
if !f(fd_EventSwapExecuted_did, value) {
|
||
|
|
return
|
||
|
|
}
|
||
|
|
}
|
||
|
|
if x.ConnectionId != "" {
|
||
|
|
value := protoreflect.ValueOfString(x.ConnectionId)
|
||
|
|
if !f(fd_EventSwapExecuted_connection_id, value) {
|
||
|
|
return
|
||
|
|
}
|
||
|
|
}
|
||
|
|
if x.Source != nil {
|
||
|
|
value := protoreflect.ValueOfMessage(x.Source.ProtoReflect())
|
||
|
|
if !f(fd_EventSwapExecuted_source, value) {
|
||
|
|
return
|
||
|
|
}
|
||
|
|
}
|
||
|
|
if x.Target != nil {
|
||
|
|
value := protoreflect.ValueOfMessage(x.Target.ProtoReflect())
|
||
|
|
if !f(fd_EventSwapExecuted_target, value) {
|
||
|
|
return
|
||
|
|
}
|
||
|
|
}
|
||
|
|
if x.TxHash != "" {
|
||
|
|
value := protoreflect.ValueOfString(x.TxHash)
|
||
|
|
if !f(fd_EventSwapExecuted_tx_hash, value) {
|
||
|
|
return
|
||
|
|
}
|
||
|
|
}
|
||
|
|
if x.Sequence != uint64(0) {
|
||
|
|
value := protoreflect.ValueOfUint64(x.Sequence)
|
||
|
|
if !f(fd_EventSwapExecuted_sequence, value) {
|
||
|
|
return
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// Has reports whether a field is populated.
|
||
|
|
//
|
||
|
|
// Some fields have the property of nullability where it is possible to
|
||
|
|
// distinguish between the default value of a field and whether the field
|
||
|
|
// was explicitly populated with the default value. Singular message fields,
|
||
|
|
// member fields of a oneof, and proto2 scalar fields are nullable. Such
|
||
|
|
// fields are populated only if explicitly set.
|
||
|
|
//
|
||
|
|
// In other cases (aside from the nullable cases above),
|
||
|
|
// a proto3 scalar field is populated if it contains a non-zero value, and
|
||
|
|
// a repeated field is populated if it is non-empty.
|
||
|
|
func (x *fastReflection_EventSwapExecuted) Has(fd protoreflect.FieldDescriptor) bool {
|
||
|
|
switch fd.FullName() {
|
||
|
|
case "dex.v1.EventSwapExecuted.did":
|
||
|
|
return x.Did != ""
|
||
|
|
case "dex.v1.EventSwapExecuted.connection_id":
|
||
|
|
return x.ConnectionId != ""
|
||
|
|
case "dex.v1.EventSwapExecuted.source":
|
||
|
|
return x.Source != nil
|
||
|
|
case "dex.v1.EventSwapExecuted.target":
|
||
|
|
return x.Target != nil
|
||
|
|
case "dex.v1.EventSwapExecuted.tx_hash":
|
||
|
|
return x.TxHash != ""
|
||
|
|
case "dex.v1.EventSwapExecuted.sequence":
|
||
|
|
return x.Sequence != uint64(0)
|
||
|
|
default:
|
||
|
|
if fd.IsExtension() {
|
||
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: dex.v1.EventSwapExecuted"))
|
||
|
|
}
|
||
|
|
panic(fmt.Errorf("message dex.v1.EventSwapExecuted does not contain field %s", fd.FullName()))
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// Clear clears the field such that a subsequent Has call reports false.
|
||
|
|
//
|
||
|
|
// Clearing an extension field clears both the extension type and value
|
||
|
|
// associated with the given field number.
|
||
|
|
//
|
||
|
|
// Clear is a mutating operation and unsafe for concurrent use.
|
||
|
|
func (x *fastReflection_EventSwapExecuted) Clear(fd protoreflect.FieldDescriptor) {
|
||
|
|
switch fd.FullName() {
|
||
|
|
case "dex.v1.EventSwapExecuted.did":
|
||
|
|
x.Did = ""
|
||
|
|
case "dex.v1.EventSwapExecuted.connection_id":
|
||
|
|
x.ConnectionId = ""
|
||
|
|
case "dex.v1.EventSwapExecuted.source":
|
||
|
|
x.Source = nil
|
||
|
|
case "dex.v1.EventSwapExecuted.target":
|
||
|
|
x.Target = nil
|
||
|
|
case "dex.v1.EventSwapExecuted.tx_hash":
|
||
|
|
x.TxHash = ""
|
||
|
|
case "dex.v1.EventSwapExecuted.sequence":
|
||
|
|
x.Sequence = uint64(0)
|
||
|
|
default:
|
||
|
|
if fd.IsExtension() {
|
||
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: dex.v1.EventSwapExecuted"))
|
||
|
|
}
|
||
|
|
panic(fmt.Errorf("message dex.v1.EventSwapExecuted does not contain field %s", fd.FullName()))
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// Get retrieves the value for a field.
|
||
|
|
//
|
||
|
|
// For unpopulated scalars, it returns the default value, where
|
||
|
|
// the default value of a bytes scalar is guaranteed to be a copy.
|
||
|
|
// For unpopulated composite types, it returns an empty, read-only view
|
||
|
|
// of the value; to obtain a mutable reference, use Mutable.
|
||
|
|
func (x *fastReflection_EventSwapExecuted) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
|
switch descriptor.FullName() {
|
||
|
|
case "dex.v1.EventSwapExecuted.did":
|
||
|
|
value := x.Did
|
||
|
|
return protoreflect.ValueOfString(value)
|
||
|
|
case "dex.v1.EventSwapExecuted.connection_id":
|
||
|
|
value := x.ConnectionId
|
||
|
|
return protoreflect.ValueOfString(value)
|
||
|
|
case "dex.v1.EventSwapExecuted.source":
|
||
|
|
value := x.Source
|
||
|
|
return protoreflect.ValueOfMessage(value.ProtoReflect())
|
||
|
|
case "dex.v1.EventSwapExecuted.target":
|
||
|
|
value := x.Target
|
||
|
|
return protoreflect.ValueOfMessage(value.ProtoReflect())
|
||
|
|
case "dex.v1.EventSwapExecuted.tx_hash":
|
||
|
|
value := x.TxHash
|
||
|
|
return protoreflect.ValueOfString(value)
|
||
|
|
case "dex.v1.EventSwapExecuted.sequence":
|
||
|
|
value := x.Sequence
|
||
|
|
return protoreflect.ValueOfUint64(value)
|
||
|
|
default:
|
||
|
|
if descriptor.IsExtension() {
|
||
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: dex.v1.EventSwapExecuted"))
|
||
|
|
}
|
||
|
|
panic(fmt.Errorf("message dex.v1.EventSwapExecuted does not contain field %s", descriptor.FullName()))
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// Set stores the value for a field.
|
||
|
|
//
|
||
|
|
// For a field belonging to a oneof, it implicitly clears any other field
|
||
|
|
// that may be currently set within the same oneof.
|
||
|
|
// For extension fields, it implicitly stores the provided ExtensionType.
|
||
|
|
// When setting a composite type, it is unspecified whether the stored value
|
||
|
|
// aliases the source's memory in any way. If the composite value is an
|
||
|
|
// empty, read-only value, then it panics.
|
||
|
|
//
|
||
|
|
// Set is a mutating operation and unsafe for concurrent use.
|
||
|
|
func (x *fastReflection_EventSwapExecuted) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
||
|
|
switch fd.FullName() {
|
||
|
|
case "dex.v1.EventSwapExecuted.did":
|
||
|
|
x.Did = value.Interface().(string)
|
||
|
|
case "dex.v1.EventSwapExecuted.connection_id":
|
||
|
|
x.ConnectionId = value.Interface().(string)
|
||
|
|
case "dex.v1.EventSwapExecuted.source":
|
||
|
|
x.Source = value.Message().Interface().(*v1beta1.Coin)
|
||
|
|
case "dex.v1.EventSwapExecuted.target":
|
||
|
|
x.Target = value.Message().Interface().(*v1beta1.Coin)
|
||
|
|
case "dex.v1.EventSwapExecuted.tx_hash":
|
||
|
|
x.TxHash = value.Interface().(string)
|
||
|
|
case "dex.v1.EventSwapExecuted.sequence":
|
||
|
|
x.Sequence = value.Uint()
|
||
|
|
default:
|
||
|
|
if fd.IsExtension() {
|
||
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: dex.v1.EventSwapExecuted"))
|
||
|
|
}
|
||
|
|
panic(fmt.Errorf("message dex.v1.EventSwapExecuted does not contain field %s", fd.FullName()))
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// Mutable returns a mutable reference to a composite type.
|
||
|
|
//
|
||
|
|
// If the field is unpopulated, it may allocate a composite value.
|
||
|
|
// For a field belonging to a oneof, it implicitly clears any other field
|
||
|
|
// that may be currently set within the same oneof.
|
||
|
|
// For extension fields, it implicitly stores the provided ExtensionType
|
||
|
|
// if not already stored.
|
||
|
|
// It panics if the field does not contain a composite type.
|
||
|
|
//
|
||
|
|
// Mutable is a mutating operation and unsafe for concurrent use.
|
||
|
|
func (x *fastReflection_EventSwapExecuted) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
|
switch fd.FullName() {
|
||
|
|
case "dex.v1.EventSwapExecuted.source":
|
||
|
|
if x.Source == nil {
|
||
|
|
x.Source = new(v1beta1.Coin)
|
||
|
|
}
|
||
|
|
return protoreflect.ValueOfMessage(x.Source.ProtoReflect())
|
||
|
|
case "dex.v1.EventSwapExecuted.target":
|
||
|
|
if x.Target == nil {
|
||
|
|
x.Target = new(v1beta1.Coin)
|
||
|
|
}
|
||
|
|
return protoreflect.ValueOfMessage(x.Target.ProtoReflect())
|
||
|
|
case "dex.v1.EventSwapExecuted.did":
|
||
|
|
panic(fmt.Errorf("field did of message dex.v1.EventSwapExecuted is not mutable"))
|
||
|
|
case "dex.v1.EventSwapExecuted.connection_id":
|
||
|
|
panic(fmt.Errorf("field connection_id of message dex.v1.EventSwapExecuted is not mutable"))
|
||
|
|
case "dex.v1.EventSwapExecuted.tx_hash":
|
||
|
|
panic(fmt.Errorf("field tx_hash of message dex.v1.EventSwapExecuted is not mutable"))
|
||
|
|
case "dex.v1.EventSwapExecuted.sequence":
|
||
|
|
panic(fmt.Errorf("field sequence of message dex.v1.EventSwapExecuted is not mutable"))
|
||
|
|
default:
|
||
|
|
if fd.IsExtension() {
|
||
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: dex.v1.EventSwapExecuted"))
|
||
|
|
}
|
||
|
|
panic(fmt.Errorf("message dex.v1.EventSwapExecuted does not contain field %s", fd.FullName()))
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// NewField returns a new value that is assignable to the field
|
||
|
|
// for the given descriptor. For scalars, this returns the default value.
|
||
|
|
// For lists, maps, and messages, this returns a new, empty, mutable value.
|
||
|
|
func (x *fastReflection_EventSwapExecuted) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
|
switch fd.FullName() {
|
||
|
|
case "dex.v1.EventSwapExecuted.did":
|
||
|
|
return protoreflect.ValueOfString("")
|
||
|
|
case "dex.v1.EventSwapExecuted.connection_id":
|
||
|
|
return protoreflect.ValueOfString("")
|
||
|
|
case "dex.v1.EventSwapExecuted.source":
|
||
|
|
m := new(v1beta1.Coin)
|
||
|
|
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
||
|
|
case "dex.v1.EventSwapExecuted.target":
|
||
|
|
m := new(v1beta1.Coin)
|
||
|
|
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
||
|
|
case "dex.v1.EventSwapExecuted.tx_hash":
|
||
|
|
return protoreflect.ValueOfString("")
|
||
|
|
case "dex.v1.EventSwapExecuted.sequence":
|
||
|
|
return protoreflect.ValueOfUint64(uint64(0))
|
||
|
|
default:
|
||
|
|
if fd.IsExtension() {
|
||
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: dex.v1.EventSwapExecuted"))
|
||
|
|
}
|
||
|
|
panic(fmt.Errorf("message dex.v1.EventSwapExecuted does not contain field %s", fd.FullName()))
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// WhichOneof reports which field within the oneof is populated,
|
||
|
|
// returning nil if none are populated.
|
||
|
|
// It panics if the oneof descriptor does not belong to this message.
|
||
|
|
func (x *fastReflection_EventSwapExecuted) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
||
|
|
switch d.FullName() {
|
||
|
|
default:
|
||
|
|
panic(fmt.Errorf("%s is not a oneof field in dex.v1.EventSwapExecuted", d.FullName()))
|
||
|
|
}
|
||
|
|
panic("unreachable")
|
||
|
|
}
|
||
|
|
|
||
|
|
// GetUnknown retrieves the entire list of unknown fields.
|
||
|
|
// The caller may only mutate the contents of the RawFields
|
||
|
|
// if the mutated bytes are stored back into the message with SetUnknown.
|
||
|
|
func (x *fastReflection_EventSwapExecuted) GetUnknown() protoreflect.RawFields {
|
||
|
|
return x.unknownFields
|
||
|
|
}
|
||
|
|
|
||
|
|
// SetUnknown stores an entire list of unknown fields.
|
||
|
|
// The raw fields must be syntactically valid according to the wire format.
|
||
|
|
// An implementation may panic if this is not the case.
|
||
|
|
// Once stored, the caller must not mutate the content of the RawFields.
|
||
|
|
// An empty RawFields may be passed to clear the fields.
|
||
|
|
//
|
||
|
|
// SetUnknown is a mutating operation and unsafe for concurrent use.
|
||
|
|
func (x *fastReflection_EventSwapExecuted) SetUnknown(fields protoreflect.RawFields) {
|
||
|
|
x.unknownFields = fields
|
||
|
|
}
|
||
|
|
|
||
|
|
// IsValid reports whether the message is valid.
|
||
|
|
//
|
||
|
|
// An invalid message is an empty, read-only value.
|
||
|
|
//
|
||
|
|
// An invalid message often corresponds to a nil pointer of the concrete
|
||
|
|
// message type, but the details are implementation dependent.
|
||
|
|
// Validity is not part of the protobuf data model, and may not
|
||
|
|
// be preserved in marshaling or other operations.
|
||
|
|
func (x *fastReflection_EventSwapExecuted) IsValid() bool {
|
||
|
|
return x != nil
|
||
|
|
}
|
||
|
|
|
||
|
|
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
|
||
|
|
// This method may return nil.
|
||
|
|
//
|
||
|
|
// The returned methods type is identical to
|
||
|
|
// "google.golang.org/protobuf/runtime/protoiface".Methods.
|
||
|
|
// Consult the protoiface package documentation for details.
|
||
|
|
func (x *fastReflection_EventSwapExecuted) ProtoMethods() *protoiface.Methods {
|
||
|
|
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
|
||
|
|
x := input.Message.Interface().(*EventSwapExecuted)
|
||
|
|
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.Did)
|
||
|
|
if l > 0 {
|
||
|
|
n += 1 + l + runtime.Sov(uint64(l))
|
||
|
|
}
|
||
|
|
l = len(x.ConnectionId)
|
||
|
|
if l > 0 {
|
||
|
|
n += 1 + l + runtime.Sov(uint64(l))
|
||
|
|
}
|
||
|
|
if x.Source != nil {
|
||
|
|
l = options.Size(x.Source)
|
||
|
|
n += 1 + l + runtime.Sov(uint64(l))
|
||
|
|
}
|
||
|
|
if x.Target != nil {
|
||
|
|
l = options.Size(x.Target)
|
||
|
|
n += 1 + l + runtime.Sov(uint64(l))
|
||
|
|
}
|
||
|
|
l = len(x.TxHash)
|
||
|
|
if l > 0 {
|
||
|
|
n += 1 + l + runtime.Sov(uint64(l))
|
||
|
|
}
|
||
|
|
if x.Sequence != 0 {
|
||
|
|
n += 1 + runtime.Sov(uint64(x.Sequence))
|
||
|
|
}
|
||
|
|
if x.unknownFields != nil {
|
||
|
|
n += len(x.unknownFields)
|
||
|
|
}
|
||
|
|
return protoiface.SizeOutput{
|
||
|
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
||
|
|
Size: n,
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
|
||
|
|
x := input.Message.Interface().(*EventSwapExecuted)
|
||
|
|
if x == nil {
|
||
|
|
return protoiface.MarshalOutput{
|
||
|
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
||
|
|
Buf: input.Buf,
|
||
|
|
}, nil
|
||
|
|
}
|
||
|
|
options := runtime.MarshalInputToOptions(input)
|
||
|
|
_ = options
|
||
|
|
size := options.Size(x)
|
||
|
|
dAtA := make([]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.Sequence != 0 {
|
||
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(x.Sequence))
|
||
|
|
i--
|
||
|
|
dAtA[i] = 0x30
|
||
|
|
}
|
||
|
|
if len(x.TxHash) > 0 {
|
||
|
|
i -= len(x.TxHash)
|
||
|
|
copy(dAtA[i:], x.TxHash)
|
||
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TxHash)))
|
||
|
|
i--
|
||
|
|
dAtA[i] = 0x2a
|
||
|
|
}
|
||
|
|
if x.Target != nil {
|
||
|
|
encoded, err := options.Marshal(x.Target)
|
||
|
|
if err != nil {
|
||
|
|
return protoiface.MarshalOutput{
|
||
|
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
||
|
|
Buf: input.Buf,
|
||
|
|
}, err
|
||
|
|
}
|
||
|
|
i -= len(encoded)
|
||
|
|
copy(dAtA[i:], encoded)
|
||
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
|
||
|
|
i--
|
||
|
|
dAtA[i] = 0x22
|
||
|
|
}
|
||
|
|
if x.Source != nil {
|
||
|
|
encoded, err := options.Marshal(x.Source)
|
||
|
|
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.ConnectionId) > 0 {
|
||
|
|
i -= len(x.ConnectionId)
|
||
|
|
copy(dAtA[i:], x.ConnectionId)
|
||
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ConnectionId)))
|
||
|
|
i--
|
||
|
|
dAtA[i] = 0x12
|
||
|
|
}
|
||
|
|
if len(x.Did) > 0 {
|
||
|
|
i -= len(x.Did)
|
||
|
|
copy(dAtA[i:], x.Did)
|
||
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Did)))
|
||
|
|
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().(*EventSwapExecuted)
|
||
|
|
if x == nil {
|
||
|
|
return protoiface.UnmarshalOutput{
|
||
|
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
||
|
|
Flags: input.Flags,
|
||
|
|
}, nil
|
||
|
|
}
|
||
|
|
options := runtime.UnmarshalInputToOptions(input)
|
||
|
|
_ = options
|
||
|
|
dAtA := input.Buf
|
||
|
|
l := len(dAtA)
|
||
|
|
iNdEx := 0
|
||
|
|
for iNdEx < l {
|
||
|
|
preIndex := iNdEx
|
||
|
|
var wire uint64
|
||
|
|
for shift := uint(0); ; shift += 7 {
|
||
|
|
if shift >= 64 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
|
||
|
|
}
|
||
|
|
if iNdEx >= l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
b := dAtA[iNdEx]
|
||
|
|
iNdEx++
|
||
|
|
wire |= uint64(b&0x7F) << shift
|
||
|
|
if b < 0x80 {
|
||
|
|
break
|
||
|
|
}
|
||
|
|
}
|
||
|
|
fieldNum := int32(wire >> 3)
|
||
|
|
wireType := int(wire & 0x7)
|
||
|
|
if wireType == 4 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventSwapExecuted: wiretype end group for non-group")
|
||
|
|
}
|
||
|
|
if fieldNum <= 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventSwapExecuted: 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 Did", wireType)
|
||
|
|
}
|
||
|
|
var stringLen uint64
|
||
|
|
for shift := uint(0); ; shift += 7 {
|
||
|
|
if shift >= 64 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
|
||
|
|
}
|
||
|
|
if iNdEx >= l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
b := dAtA[iNdEx]
|
||
|
|
iNdEx++
|
||
|
|
stringLen |= uint64(b&0x7F) << shift
|
||
|
|
if b < 0x80 {
|
||
|
|
break
|
||
|
|
}
|
||
|
|
}
|
||
|
|
intStringLen := int(stringLen)
|
||
|
|
if intStringLen < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
postIndex := iNdEx + intStringLen
|
||
|
|
if postIndex < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
if postIndex > l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
x.Did = 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 ConnectionId", wireType)
|
||
|
|
}
|
||
|
|
var stringLen uint64
|
||
|
|
for shift := uint(0); ; shift += 7 {
|
||
|
|
if shift >= 64 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
|
||
|
|
}
|
||
|
|
if iNdEx >= l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
b := dAtA[iNdEx]
|
||
|
|
iNdEx++
|
||
|
|
stringLen |= uint64(b&0x7F) << shift
|
||
|
|
if b < 0x80 {
|
||
|
|
break
|
||
|
|
}
|
||
|
|
}
|
||
|
|
intStringLen := int(stringLen)
|
||
|
|
if intStringLen < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
postIndex := iNdEx + intStringLen
|
||
|
|
if postIndex < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
if postIndex > l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
x.ConnectionId = 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 Source", 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.Source == nil {
|
||
|
|
x.Source = &v1beta1.Coin{}
|
||
|
|
}
|
||
|
|
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Source); err != nil {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
||
|
|
}
|
||
|
|
iNdEx = postIndex
|
||
|
|
case 4:
|
||
|
|
if wireType != 2 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Target", 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.Target == nil {
|
||
|
|
x.Target = &v1beta1.Coin{}
|
||
|
|
}
|
||
|
|
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Target); err != nil {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
||
|
|
}
|
||
|
|
iNdEx = postIndex
|
||
|
|
case 5:
|
||
|
|
if wireType != 2 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TxHash", wireType)
|
||
|
|
}
|
||
|
|
var stringLen uint64
|
||
|
|
for shift := uint(0); ; shift += 7 {
|
||
|
|
if shift >= 64 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
|
||
|
|
}
|
||
|
|
if iNdEx >= l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
b := dAtA[iNdEx]
|
||
|
|
iNdEx++
|
||
|
|
stringLen |= uint64(b&0x7F) << shift
|
||
|
|
if b < 0x80 {
|
||
|
|
break
|
||
|
|
}
|
||
|
|
}
|
||
|
|
intStringLen := int(stringLen)
|
||
|
|
if intStringLen < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
postIndex := iNdEx + intStringLen
|
||
|
|
if postIndex < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
if postIndex > l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
x.TxHash = string(dAtA[iNdEx:postIndex])
|
||
|
|
iNdEx = postIndex
|
||
|
|
case 6:
|
||
|
|
if wireType != 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Sequence", wireType)
|
||
|
|
}
|
||
|
|
x.Sequence = 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.Sequence |= 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 = (*_EventLiquidityProvided_4_list)(nil)
|
||
|
|
|
||
|
|
type _EventLiquidityProvided_4_list struct {
|
||
|
|
list *[]*v1beta1.Coin
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *_EventLiquidityProvided_4_list) Len() int {
|
||
|
|
if x.list == nil {
|
||
|
|
return 0
|
||
|
|
}
|
||
|
|
return len(*x.list)
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *_EventLiquidityProvided_4_list) Get(i int) protoreflect.Value {
|
||
|
|
return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect())
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *_EventLiquidityProvided_4_list) Set(i int, value protoreflect.Value) {
|
||
|
|
valueUnwrapped := value.Message()
|
||
|
|
concreteValue := valueUnwrapped.Interface().(*v1beta1.Coin)
|
||
|
|
(*x.list)[i] = concreteValue
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *_EventLiquidityProvided_4_list) Append(value protoreflect.Value) {
|
||
|
|
valueUnwrapped := value.Message()
|
||
|
|
concreteValue := valueUnwrapped.Interface().(*v1beta1.Coin)
|
||
|
|
*x.list = append(*x.list, concreteValue)
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *_EventLiquidityProvided_4_list) AppendMutable() protoreflect.Value {
|
||
|
|
v := new(v1beta1.Coin)
|
||
|
|
*x.list = append(*x.list, v)
|
||
|
|
return protoreflect.ValueOfMessage(v.ProtoReflect())
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *_EventLiquidityProvided_4_list) Truncate(n int) {
|
||
|
|
for i := n; i < len(*x.list); i++ {
|
||
|
|
(*x.list)[i] = nil
|
||
|
|
}
|
||
|
|
*x.list = (*x.list)[:n]
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *_EventLiquidityProvided_4_list) NewElement() protoreflect.Value {
|
||
|
|
v := new(v1beta1.Coin)
|
||
|
|
return protoreflect.ValueOfMessage(v.ProtoReflect())
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *_EventLiquidityProvided_4_list) IsValid() bool {
|
||
|
|
return x.list != nil
|
||
|
|
}
|
||
|
|
|
||
|
|
var (
|
||
|
|
md_EventLiquidityProvided protoreflect.MessageDescriptor
|
||
|
|
fd_EventLiquidityProvided_did protoreflect.FieldDescriptor
|
||
|
|
fd_EventLiquidityProvided_connection_id protoreflect.FieldDescriptor
|
||
|
|
fd_EventLiquidityProvided_pool_id protoreflect.FieldDescriptor
|
||
|
|
fd_EventLiquidityProvided_assets protoreflect.FieldDescriptor
|
||
|
|
fd_EventLiquidityProvided_shares_received protoreflect.FieldDescriptor
|
||
|
|
fd_EventLiquidityProvided_tx_hash protoreflect.FieldDescriptor
|
||
|
|
)
|
||
|
|
|
||
|
|
func init() {
|
||
|
|
file_dex_v1_events_proto_init()
|
||
|
|
md_EventLiquidityProvided = File_dex_v1_events_proto.Messages().ByName("EventLiquidityProvided")
|
||
|
|
fd_EventLiquidityProvided_did = md_EventLiquidityProvided.Fields().ByName("did")
|
||
|
|
fd_EventLiquidityProvided_connection_id = md_EventLiquidityProvided.Fields().ByName("connection_id")
|
||
|
|
fd_EventLiquidityProvided_pool_id = md_EventLiquidityProvided.Fields().ByName("pool_id")
|
||
|
|
fd_EventLiquidityProvided_assets = md_EventLiquidityProvided.Fields().ByName("assets")
|
||
|
|
fd_EventLiquidityProvided_shares_received = md_EventLiquidityProvided.Fields().ByName("shares_received")
|
||
|
|
fd_EventLiquidityProvided_tx_hash = md_EventLiquidityProvided.Fields().ByName("tx_hash")
|
||
|
|
}
|
||
|
|
|
||
|
|
var _ protoreflect.Message = (*fastReflection_EventLiquidityProvided)(nil)
|
||
|
|
|
||
|
|
type fastReflection_EventLiquidityProvided EventLiquidityProvided
|
||
|
|
|
||
|
|
func (x *EventLiquidityProvided) ProtoReflect() protoreflect.Message {
|
||
|
|
return (*fastReflection_EventLiquidityProvided)(x)
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *EventLiquidityProvided) slowProtoReflect() protoreflect.Message {
|
||
|
|
mi := &file_dex_v1_events_proto_msgTypes[2]
|
||
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
||
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
|
if ms.LoadMessageInfo() == nil {
|
||
|
|
ms.StoreMessageInfo(mi)
|
||
|
|
}
|
||
|
|
return ms
|
||
|
|
}
|
||
|
|
return mi.MessageOf(x)
|
||
|
|
}
|
||
|
|
|
||
|
|
var _fastReflection_EventLiquidityProvided_messageType fastReflection_EventLiquidityProvided_messageType
|
||
|
|
var _ protoreflect.MessageType = fastReflection_EventLiquidityProvided_messageType{}
|
||
|
|
|
||
|
|
type fastReflection_EventLiquidityProvided_messageType struct{}
|
||
|
|
|
||
|
|
func (x fastReflection_EventLiquidityProvided_messageType) Zero() protoreflect.Message {
|
||
|
|
return (*fastReflection_EventLiquidityProvided)(nil)
|
||
|
|
}
|
||
|
|
func (x fastReflection_EventLiquidityProvided_messageType) New() protoreflect.Message {
|
||
|
|
return new(fastReflection_EventLiquidityProvided)
|
||
|
|
}
|
||
|
|
func (x fastReflection_EventLiquidityProvided_messageType) Descriptor() protoreflect.MessageDescriptor {
|
||
|
|
return md_EventLiquidityProvided
|
||
|
|
}
|
||
|
|
|
||
|
|
// Descriptor returns message descriptor, which contains only the protobuf
|
||
|
|
// type information for the message.
|
||
|
|
func (x *fastReflection_EventLiquidityProvided) Descriptor() protoreflect.MessageDescriptor {
|
||
|
|
return md_EventLiquidityProvided
|
||
|
|
}
|
||
|
|
|
||
|
|
// Type returns the message type, which encapsulates both Go and protobuf
|
||
|
|
// type information. If the Go type information is not needed,
|
||
|
|
// it is recommended that the message descriptor be used instead.
|
||
|
|
func (x *fastReflection_EventLiquidityProvided) Type() protoreflect.MessageType {
|
||
|
|
return _fastReflection_EventLiquidityProvided_messageType
|
||
|
|
}
|
||
|
|
|
||
|
|
// New returns a newly allocated and mutable empty message.
|
||
|
|
func (x *fastReflection_EventLiquidityProvided) New() protoreflect.Message {
|
||
|
|
return new(fastReflection_EventLiquidityProvided)
|
||
|
|
}
|
||
|
|
|
||
|
|
// Interface unwraps the message reflection interface and
|
||
|
|
// returns the underlying ProtoMessage interface.
|
||
|
|
func (x *fastReflection_EventLiquidityProvided) Interface() protoreflect.ProtoMessage {
|
||
|
|
return (*EventLiquidityProvided)(x)
|
||
|
|
}
|
||
|
|
|
||
|
|
// Range iterates over every populated field in an undefined order,
|
||
|
|
// calling f for each field descriptor and value encountered.
|
||
|
|
// Range returns immediately if f returns false.
|
||
|
|
// While iterating, mutating operations may only be performed
|
||
|
|
// on the current field descriptor.
|
||
|
|
func (x *fastReflection_EventLiquidityProvided) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
|
||
|
|
if x.Did != "" {
|
||
|
|
value := protoreflect.ValueOfString(x.Did)
|
||
|
|
if !f(fd_EventLiquidityProvided_did, value) {
|
||
|
|
return
|
||
|
|
}
|
||
|
|
}
|
||
|
|
if x.ConnectionId != "" {
|
||
|
|
value := protoreflect.ValueOfString(x.ConnectionId)
|
||
|
|
if !f(fd_EventLiquidityProvided_connection_id, value) {
|
||
|
|
return
|
||
|
|
}
|
||
|
|
}
|
||
|
|
if x.PoolId != "" {
|
||
|
|
value := protoreflect.ValueOfString(x.PoolId)
|
||
|
|
if !f(fd_EventLiquidityProvided_pool_id, value) {
|
||
|
|
return
|
||
|
|
}
|
||
|
|
}
|
||
|
|
if len(x.Assets) != 0 {
|
||
|
|
value := protoreflect.ValueOfList(&_EventLiquidityProvided_4_list{list: &x.Assets})
|
||
|
|
if !f(fd_EventLiquidityProvided_assets, value) {
|
||
|
|
return
|
||
|
|
}
|
||
|
|
}
|
||
|
|
if x.SharesReceived != "" {
|
||
|
|
value := protoreflect.ValueOfString(x.SharesReceived)
|
||
|
|
if !f(fd_EventLiquidityProvided_shares_received, value) {
|
||
|
|
return
|
||
|
|
}
|
||
|
|
}
|
||
|
|
if x.TxHash != "" {
|
||
|
|
value := protoreflect.ValueOfString(x.TxHash)
|
||
|
|
if !f(fd_EventLiquidityProvided_tx_hash, value) {
|
||
|
|
return
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// Has reports whether a field is populated.
|
||
|
|
//
|
||
|
|
// Some fields have the property of nullability where it is possible to
|
||
|
|
// distinguish between the default value of a field and whether the field
|
||
|
|
// was explicitly populated with the default value. Singular message fields,
|
||
|
|
// member fields of a oneof, and proto2 scalar fields are nullable. Such
|
||
|
|
// fields are populated only if explicitly set.
|
||
|
|
//
|
||
|
|
// In other cases (aside from the nullable cases above),
|
||
|
|
// a proto3 scalar field is populated if it contains a non-zero value, and
|
||
|
|
// a repeated field is populated if it is non-empty.
|
||
|
|
func (x *fastReflection_EventLiquidityProvided) Has(fd protoreflect.FieldDescriptor) bool {
|
||
|
|
switch fd.FullName() {
|
||
|
|
case "dex.v1.EventLiquidityProvided.did":
|
||
|
|
return x.Did != ""
|
||
|
|
case "dex.v1.EventLiquidityProvided.connection_id":
|
||
|
|
return x.ConnectionId != ""
|
||
|
|
case "dex.v1.EventLiquidityProvided.pool_id":
|
||
|
|
return x.PoolId != ""
|
||
|
|
case "dex.v1.EventLiquidityProvided.assets":
|
||
|
|
return len(x.Assets) != 0
|
||
|
|
case "dex.v1.EventLiquidityProvided.shares_received":
|
||
|
|
return x.SharesReceived != ""
|
||
|
|
case "dex.v1.EventLiquidityProvided.tx_hash":
|
||
|
|
return x.TxHash != ""
|
||
|
|
default:
|
||
|
|
if fd.IsExtension() {
|
||
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: dex.v1.EventLiquidityProvided"))
|
||
|
|
}
|
||
|
|
panic(fmt.Errorf("message dex.v1.EventLiquidityProvided does not contain field %s", fd.FullName()))
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// Clear clears the field such that a subsequent Has call reports false.
|
||
|
|
//
|
||
|
|
// Clearing an extension field clears both the extension type and value
|
||
|
|
// associated with the given field number.
|
||
|
|
//
|
||
|
|
// Clear is a mutating operation and unsafe for concurrent use.
|
||
|
|
func (x *fastReflection_EventLiquidityProvided) Clear(fd protoreflect.FieldDescriptor) {
|
||
|
|
switch fd.FullName() {
|
||
|
|
case "dex.v1.EventLiquidityProvided.did":
|
||
|
|
x.Did = ""
|
||
|
|
case "dex.v1.EventLiquidityProvided.connection_id":
|
||
|
|
x.ConnectionId = ""
|
||
|
|
case "dex.v1.EventLiquidityProvided.pool_id":
|
||
|
|
x.PoolId = ""
|
||
|
|
case "dex.v1.EventLiquidityProvided.assets":
|
||
|
|
x.Assets = nil
|
||
|
|
case "dex.v1.EventLiquidityProvided.shares_received":
|
||
|
|
x.SharesReceived = ""
|
||
|
|
case "dex.v1.EventLiquidityProvided.tx_hash":
|
||
|
|
x.TxHash = ""
|
||
|
|
default:
|
||
|
|
if fd.IsExtension() {
|
||
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: dex.v1.EventLiquidityProvided"))
|
||
|
|
}
|
||
|
|
panic(fmt.Errorf("message dex.v1.EventLiquidityProvided does not contain field %s", fd.FullName()))
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// Get retrieves the value for a field.
|
||
|
|
//
|
||
|
|
// For unpopulated scalars, it returns the default value, where
|
||
|
|
// the default value of a bytes scalar is guaranteed to be a copy.
|
||
|
|
// For unpopulated composite types, it returns an empty, read-only view
|
||
|
|
// of the value; to obtain a mutable reference, use Mutable.
|
||
|
|
func (x *fastReflection_EventLiquidityProvided) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
|
switch descriptor.FullName() {
|
||
|
|
case "dex.v1.EventLiquidityProvided.did":
|
||
|
|
value := x.Did
|
||
|
|
return protoreflect.ValueOfString(value)
|
||
|
|
case "dex.v1.EventLiquidityProvided.connection_id":
|
||
|
|
value := x.ConnectionId
|
||
|
|
return protoreflect.ValueOfString(value)
|
||
|
|
case "dex.v1.EventLiquidityProvided.pool_id":
|
||
|
|
value := x.PoolId
|
||
|
|
return protoreflect.ValueOfString(value)
|
||
|
|
case "dex.v1.EventLiquidityProvided.assets":
|
||
|
|
if len(x.Assets) == 0 {
|
||
|
|
return protoreflect.ValueOfList(&_EventLiquidityProvided_4_list{})
|
||
|
|
}
|
||
|
|
listValue := &_EventLiquidityProvided_4_list{list: &x.Assets}
|
||
|
|
return protoreflect.ValueOfList(listValue)
|
||
|
|
case "dex.v1.EventLiquidityProvided.shares_received":
|
||
|
|
value := x.SharesReceived
|
||
|
|
return protoreflect.ValueOfString(value)
|
||
|
|
case "dex.v1.EventLiquidityProvided.tx_hash":
|
||
|
|
value := x.TxHash
|
||
|
|
return protoreflect.ValueOfString(value)
|
||
|
|
default:
|
||
|
|
if descriptor.IsExtension() {
|
||
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: dex.v1.EventLiquidityProvided"))
|
||
|
|
}
|
||
|
|
panic(fmt.Errorf("message dex.v1.EventLiquidityProvided does not contain field %s", descriptor.FullName()))
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// Set stores the value for a field.
|
||
|
|
//
|
||
|
|
// For a field belonging to a oneof, it implicitly clears any other field
|
||
|
|
// that may be currently set within the same oneof.
|
||
|
|
// For extension fields, it implicitly stores the provided ExtensionType.
|
||
|
|
// When setting a composite type, it is unspecified whether the stored value
|
||
|
|
// aliases the source's memory in any way. If the composite value is an
|
||
|
|
// empty, read-only value, then it panics.
|
||
|
|
//
|
||
|
|
// Set is a mutating operation and unsafe for concurrent use.
|
||
|
|
func (x *fastReflection_EventLiquidityProvided) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
||
|
|
switch fd.FullName() {
|
||
|
|
case "dex.v1.EventLiquidityProvided.did":
|
||
|
|
x.Did = value.Interface().(string)
|
||
|
|
case "dex.v1.EventLiquidityProvided.connection_id":
|
||
|
|
x.ConnectionId = value.Interface().(string)
|
||
|
|
case "dex.v1.EventLiquidityProvided.pool_id":
|
||
|
|
x.PoolId = value.Interface().(string)
|
||
|
|
case "dex.v1.EventLiquidityProvided.assets":
|
||
|
|
lv := value.List()
|
||
|
|
clv := lv.(*_EventLiquidityProvided_4_list)
|
||
|
|
x.Assets = *clv.list
|
||
|
|
case "dex.v1.EventLiquidityProvided.shares_received":
|
||
|
|
x.SharesReceived = value.Interface().(string)
|
||
|
|
case "dex.v1.EventLiquidityProvided.tx_hash":
|
||
|
|
x.TxHash = value.Interface().(string)
|
||
|
|
default:
|
||
|
|
if fd.IsExtension() {
|
||
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: dex.v1.EventLiquidityProvided"))
|
||
|
|
}
|
||
|
|
panic(fmt.Errorf("message dex.v1.EventLiquidityProvided does not contain field %s", fd.FullName()))
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// Mutable returns a mutable reference to a composite type.
|
||
|
|
//
|
||
|
|
// If the field is unpopulated, it may allocate a composite value.
|
||
|
|
// For a field belonging to a oneof, it implicitly clears any other field
|
||
|
|
// that may be currently set within the same oneof.
|
||
|
|
// For extension fields, it implicitly stores the provided ExtensionType
|
||
|
|
// if not already stored.
|
||
|
|
// It panics if the field does not contain a composite type.
|
||
|
|
//
|
||
|
|
// Mutable is a mutating operation and unsafe for concurrent use.
|
||
|
|
func (x *fastReflection_EventLiquidityProvided) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
|
switch fd.FullName() {
|
||
|
|
case "dex.v1.EventLiquidityProvided.assets":
|
||
|
|
if x.Assets == nil {
|
||
|
|
x.Assets = []*v1beta1.Coin{}
|
||
|
|
}
|
||
|
|
value := &_EventLiquidityProvided_4_list{list: &x.Assets}
|
||
|
|
return protoreflect.ValueOfList(value)
|
||
|
|
case "dex.v1.EventLiquidityProvided.did":
|
||
|
|
panic(fmt.Errorf("field did of message dex.v1.EventLiquidityProvided is not mutable"))
|
||
|
|
case "dex.v1.EventLiquidityProvided.connection_id":
|
||
|
|
panic(fmt.Errorf("field connection_id of message dex.v1.EventLiquidityProvided is not mutable"))
|
||
|
|
case "dex.v1.EventLiquidityProvided.pool_id":
|
||
|
|
panic(fmt.Errorf("field pool_id of message dex.v1.EventLiquidityProvided is not mutable"))
|
||
|
|
case "dex.v1.EventLiquidityProvided.shares_received":
|
||
|
|
panic(fmt.Errorf("field shares_received of message dex.v1.EventLiquidityProvided is not mutable"))
|
||
|
|
case "dex.v1.EventLiquidityProvided.tx_hash":
|
||
|
|
panic(fmt.Errorf("field tx_hash of message dex.v1.EventLiquidityProvided is not mutable"))
|
||
|
|
default:
|
||
|
|
if fd.IsExtension() {
|
||
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: dex.v1.EventLiquidityProvided"))
|
||
|
|
}
|
||
|
|
panic(fmt.Errorf("message dex.v1.EventLiquidityProvided does not contain field %s", fd.FullName()))
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// NewField returns a new value that is assignable to the field
|
||
|
|
// for the given descriptor. For scalars, this returns the default value.
|
||
|
|
// For lists, maps, and messages, this returns a new, empty, mutable value.
|
||
|
|
func (x *fastReflection_EventLiquidityProvided) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
|
switch fd.FullName() {
|
||
|
|
case "dex.v1.EventLiquidityProvided.did":
|
||
|
|
return protoreflect.ValueOfString("")
|
||
|
|
case "dex.v1.EventLiquidityProvided.connection_id":
|
||
|
|
return protoreflect.ValueOfString("")
|
||
|
|
case "dex.v1.EventLiquidityProvided.pool_id":
|
||
|
|
return protoreflect.ValueOfString("")
|
||
|
|
case "dex.v1.EventLiquidityProvided.assets":
|
||
|
|
list := []*v1beta1.Coin{}
|
||
|
|
return protoreflect.ValueOfList(&_EventLiquidityProvided_4_list{list: &list})
|
||
|
|
case "dex.v1.EventLiquidityProvided.shares_received":
|
||
|
|
return protoreflect.ValueOfString("")
|
||
|
|
case "dex.v1.EventLiquidityProvided.tx_hash":
|
||
|
|
return protoreflect.ValueOfString("")
|
||
|
|
default:
|
||
|
|
if fd.IsExtension() {
|
||
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: dex.v1.EventLiquidityProvided"))
|
||
|
|
}
|
||
|
|
panic(fmt.Errorf("message dex.v1.EventLiquidityProvided does not contain field %s", fd.FullName()))
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// WhichOneof reports which field within the oneof is populated,
|
||
|
|
// returning nil if none are populated.
|
||
|
|
// It panics if the oneof descriptor does not belong to this message.
|
||
|
|
func (x *fastReflection_EventLiquidityProvided) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
||
|
|
switch d.FullName() {
|
||
|
|
default:
|
||
|
|
panic(fmt.Errorf("%s is not a oneof field in dex.v1.EventLiquidityProvided", d.FullName()))
|
||
|
|
}
|
||
|
|
panic("unreachable")
|
||
|
|
}
|
||
|
|
|
||
|
|
// GetUnknown retrieves the entire list of unknown fields.
|
||
|
|
// The caller may only mutate the contents of the RawFields
|
||
|
|
// if the mutated bytes are stored back into the message with SetUnknown.
|
||
|
|
func (x *fastReflection_EventLiquidityProvided) GetUnknown() protoreflect.RawFields {
|
||
|
|
return x.unknownFields
|
||
|
|
}
|
||
|
|
|
||
|
|
// SetUnknown stores an entire list of unknown fields.
|
||
|
|
// The raw fields must be syntactically valid according to the wire format.
|
||
|
|
// An implementation may panic if this is not the case.
|
||
|
|
// Once stored, the caller must not mutate the content of the RawFields.
|
||
|
|
// An empty RawFields may be passed to clear the fields.
|
||
|
|
//
|
||
|
|
// SetUnknown is a mutating operation and unsafe for concurrent use.
|
||
|
|
func (x *fastReflection_EventLiquidityProvided) SetUnknown(fields protoreflect.RawFields) {
|
||
|
|
x.unknownFields = fields
|
||
|
|
}
|
||
|
|
|
||
|
|
// IsValid reports whether the message is valid.
|
||
|
|
//
|
||
|
|
// An invalid message is an empty, read-only value.
|
||
|
|
//
|
||
|
|
// An invalid message often corresponds to a nil pointer of the concrete
|
||
|
|
// message type, but the details are implementation dependent.
|
||
|
|
// Validity is not part of the protobuf data model, and may not
|
||
|
|
// be preserved in marshaling or other operations.
|
||
|
|
func (x *fastReflection_EventLiquidityProvided) IsValid() bool {
|
||
|
|
return x != nil
|
||
|
|
}
|
||
|
|
|
||
|
|
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
|
||
|
|
// This method may return nil.
|
||
|
|
//
|
||
|
|
// The returned methods type is identical to
|
||
|
|
// "google.golang.org/protobuf/runtime/protoiface".Methods.
|
||
|
|
// Consult the protoiface package documentation for details.
|
||
|
|
func (x *fastReflection_EventLiquidityProvided) ProtoMethods() *protoiface.Methods {
|
||
|
|
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
|
||
|
|
x := input.Message.Interface().(*EventLiquidityProvided)
|
||
|
|
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.Did)
|
||
|
|
if l > 0 {
|
||
|
|
n += 1 + l + runtime.Sov(uint64(l))
|
||
|
|
}
|
||
|
|
l = len(x.ConnectionId)
|
||
|
|
if l > 0 {
|
||
|
|
n += 1 + l + runtime.Sov(uint64(l))
|
||
|
|
}
|
||
|
|
l = len(x.PoolId)
|
||
|
|
if l > 0 {
|
||
|
|
n += 1 + l + runtime.Sov(uint64(l))
|
||
|
|
}
|
||
|
|
if len(x.Assets) > 0 {
|
||
|
|
for _, e := range x.Assets {
|
||
|
|
l = options.Size(e)
|
||
|
|
n += 1 + l + runtime.Sov(uint64(l))
|
||
|
|
}
|
||
|
|
}
|
||
|
|
l = len(x.SharesReceived)
|
||
|
|
if l > 0 {
|
||
|
|
n += 1 + l + runtime.Sov(uint64(l))
|
||
|
|
}
|
||
|
|
l = len(x.TxHash)
|
||
|
|
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().(*EventLiquidityProvided)
|
||
|
|
if x == nil {
|
||
|
|
return protoiface.MarshalOutput{
|
||
|
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
||
|
|
Buf: input.Buf,
|
||
|
|
}, nil
|
||
|
|
}
|
||
|
|
options := runtime.MarshalInputToOptions(input)
|
||
|
|
_ = options
|
||
|
|
size := options.Size(x)
|
||
|
|
dAtA := make([]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.TxHash) > 0 {
|
||
|
|
i -= len(x.TxHash)
|
||
|
|
copy(dAtA[i:], x.TxHash)
|
||
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TxHash)))
|
||
|
|
i--
|
||
|
|
dAtA[i] = 0x32
|
||
|
|
}
|
||
|
|
if len(x.SharesReceived) > 0 {
|
||
|
|
i -= len(x.SharesReceived)
|
||
|
|
copy(dAtA[i:], x.SharesReceived)
|
||
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.SharesReceived)))
|
||
|
|
i--
|
||
|
|
dAtA[i] = 0x2a
|
||
|
|
}
|
||
|
|
if len(x.Assets) > 0 {
|
||
|
|
for iNdEx := len(x.Assets) - 1; iNdEx >= 0; iNdEx-- {
|
||
|
|
encoded, err := options.Marshal(x.Assets[iNdEx])
|
||
|
|
if err != nil {
|
||
|
|
return protoiface.MarshalOutput{
|
||
|
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
||
|
|
Buf: input.Buf,
|
||
|
|
}, err
|
||
|
|
}
|
||
|
|
i -= len(encoded)
|
||
|
|
copy(dAtA[i:], encoded)
|
||
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
|
||
|
|
i--
|
||
|
|
dAtA[i] = 0x22
|
||
|
|
}
|
||
|
|
}
|
||
|
|
if len(x.PoolId) > 0 {
|
||
|
|
i -= len(x.PoolId)
|
||
|
|
copy(dAtA[i:], x.PoolId)
|
||
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.PoolId)))
|
||
|
|
i--
|
||
|
|
dAtA[i] = 0x1a
|
||
|
|
}
|
||
|
|
if len(x.ConnectionId) > 0 {
|
||
|
|
i -= len(x.ConnectionId)
|
||
|
|
copy(dAtA[i:], x.ConnectionId)
|
||
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ConnectionId)))
|
||
|
|
i--
|
||
|
|
dAtA[i] = 0x12
|
||
|
|
}
|
||
|
|
if len(x.Did) > 0 {
|
||
|
|
i -= len(x.Did)
|
||
|
|
copy(dAtA[i:], x.Did)
|
||
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Did)))
|
||
|
|
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().(*EventLiquidityProvided)
|
||
|
|
if x == nil {
|
||
|
|
return protoiface.UnmarshalOutput{
|
||
|
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
||
|
|
Flags: input.Flags,
|
||
|
|
}, nil
|
||
|
|
}
|
||
|
|
options := runtime.UnmarshalInputToOptions(input)
|
||
|
|
_ = options
|
||
|
|
dAtA := input.Buf
|
||
|
|
l := len(dAtA)
|
||
|
|
iNdEx := 0
|
||
|
|
for iNdEx < l {
|
||
|
|
preIndex := iNdEx
|
||
|
|
var wire uint64
|
||
|
|
for shift := uint(0); ; shift += 7 {
|
||
|
|
if shift >= 64 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
|
||
|
|
}
|
||
|
|
if iNdEx >= l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
b := dAtA[iNdEx]
|
||
|
|
iNdEx++
|
||
|
|
wire |= uint64(b&0x7F) << shift
|
||
|
|
if b < 0x80 {
|
||
|
|
break
|
||
|
|
}
|
||
|
|
}
|
||
|
|
fieldNum := int32(wire >> 3)
|
||
|
|
wireType := int(wire & 0x7)
|
||
|
|
if wireType == 4 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventLiquidityProvided: wiretype end group for non-group")
|
||
|
|
}
|
||
|
|
if fieldNum <= 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventLiquidityProvided: 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 Did", wireType)
|
||
|
|
}
|
||
|
|
var stringLen uint64
|
||
|
|
for shift := uint(0); ; shift += 7 {
|
||
|
|
if shift >= 64 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
|
||
|
|
}
|
||
|
|
if iNdEx >= l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
b := dAtA[iNdEx]
|
||
|
|
iNdEx++
|
||
|
|
stringLen |= uint64(b&0x7F) << shift
|
||
|
|
if b < 0x80 {
|
||
|
|
break
|
||
|
|
}
|
||
|
|
}
|
||
|
|
intStringLen := int(stringLen)
|
||
|
|
if intStringLen < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
postIndex := iNdEx + intStringLen
|
||
|
|
if postIndex < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
if postIndex > l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
x.Did = 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 ConnectionId", wireType)
|
||
|
|
}
|
||
|
|
var stringLen uint64
|
||
|
|
for shift := uint(0); ; shift += 7 {
|
||
|
|
if shift >= 64 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
|
||
|
|
}
|
||
|
|
if iNdEx >= l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
b := dAtA[iNdEx]
|
||
|
|
iNdEx++
|
||
|
|
stringLen |= uint64(b&0x7F) << shift
|
||
|
|
if b < 0x80 {
|
||
|
|
break
|
||
|
|
}
|
||
|
|
}
|
||
|
|
intStringLen := int(stringLen)
|
||
|
|
if intStringLen < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
postIndex := iNdEx + intStringLen
|
||
|
|
if postIndex < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
if postIndex > l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
x.ConnectionId = 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 PoolId", wireType)
|
||
|
|
}
|
||
|
|
var stringLen uint64
|
||
|
|
for shift := uint(0); ; shift += 7 {
|
||
|
|
if shift >= 64 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
|
||
|
|
}
|
||
|
|
if iNdEx >= l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
b := dAtA[iNdEx]
|
||
|
|
iNdEx++
|
||
|
|
stringLen |= uint64(b&0x7F) << shift
|
||
|
|
if b < 0x80 {
|
||
|
|
break
|
||
|
|
}
|
||
|
|
}
|
||
|
|
intStringLen := int(stringLen)
|
||
|
|
if intStringLen < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
postIndex := iNdEx + intStringLen
|
||
|
|
if postIndex < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
if postIndex > l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
x.PoolId = string(dAtA[iNdEx:postIndex])
|
||
|
|
iNdEx = postIndex
|
||
|
|
case 4:
|
||
|
|
if wireType != 2 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Assets", 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.Assets = append(x.Assets, &v1beta1.Coin{})
|
||
|
|
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Assets[len(x.Assets)-1]); err != nil {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
||
|
|
}
|
||
|
|
iNdEx = postIndex
|
||
|
|
case 5:
|
||
|
|
if wireType != 2 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SharesReceived", wireType)
|
||
|
|
}
|
||
|
|
var stringLen uint64
|
||
|
|
for shift := uint(0); ; shift += 7 {
|
||
|
|
if shift >= 64 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
|
||
|
|
}
|
||
|
|
if iNdEx >= l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
b := dAtA[iNdEx]
|
||
|
|
iNdEx++
|
||
|
|
stringLen |= uint64(b&0x7F) << shift
|
||
|
|
if b < 0x80 {
|
||
|
|
break
|
||
|
|
}
|
||
|
|
}
|
||
|
|
intStringLen := int(stringLen)
|
||
|
|
if intStringLen < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
postIndex := iNdEx + intStringLen
|
||
|
|
if postIndex < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
if postIndex > l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
x.SharesReceived = string(dAtA[iNdEx:postIndex])
|
||
|
|
iNdEx = postIndex
|
||
|
|
case 6:
|
||
|
|
if wireType != 2 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TxHash", wireType)
|
||
|
|
}
|
||
|
|
var stringLen uint64
|
||
|
|
for shift := uint(0); ; shift += 7 {
|
||
|
|
if shift >= 64 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
|
||
|
|
}
|
||
|
|
if iNdEx >= l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
b := dAtA[iNdEx]
|
||
|
|
iNdEx++
|
||
|
|
stringLen |= uint64(b&0x7F) << shift
|
||
|
|
if b < 0x80 {
|
||
|
|
break
|
||
|
|
}
|
||
|
|
}
|
||
|
|
intStringLen := int(stringLen)
|
||
|
|
if intStringLen < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
postIndex := iNdEx + intStringLen
|
||
|
|
if postIndex < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
if postIndex > l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
x.TxHash = 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 = (*_EventLiquidityRemoved_5_list)(nil)
|
||
|
|
|
||
|
|
type _EventLiquidityRemoved_5_list struct {
|
||
|
|
list *[]*v1beta1.Coin
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *_EventLiquidityRemoved_5_list) Len() int {
|
||
|
|
if x.list == nil {
|
||
|
|
return 0
|
||
|
|
}
|
||
|
|
return len(*x.list)
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *_EventLiquidityRemoved_5_list) Get(i int) protoreflect.Value {
|
||
|
|
return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect())
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *_EventLiquidityRemoved_5_list) Set(i int, value protoreflect.Value) {
|
||
|
|
valueUnwrapped := value.Message()
|
||
|
|
concreteValue := valueUnwrapped.Interface().(*v1beta1.Coin)
|
||
|
|
(*x.list)[i] = concreteValue
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *_EventLiquidityRemoved_5_list) Append(value protoreflect.Value) {
|
||
|
|
valueUnwrapped := value.Message()
|
||
|
|
concreteValue := valueUnwrapped.Interface().(*v1beta1.Coin)
|
||
|
|
*x.list = append(*x.list, concreteValue)
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *_EventLiquidityRemoved_5_list) AppendMutable() protoreflect.Value {
|
||
|
|
v := new(v1beta1.Coin)
|
||
|
|
*x.list = append(*x.list, v)
|
||
|
|
return protoreflect.ValueOfMessage(v.ProtoReflect())
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *_EventLiquidityRemoved_5_list) Truncate(n int) {
|
||
|
|
for i := n; i < len(*x.list); i++ {
|
||
|
|
(*x.list)[i] = nil
|
||
|
|
}
|
||
|
|
*x.list = (*x.list)[:n]
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *_EventLiquidityRemoved_5_list) NewElement() protoreflect.Value {
|
||
|
|
v := new(v1beta1.Coin)
|
||
|
|
return protoreflect.ValueOfMessage(v.ProtoReflect())
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *_EventLiquidityRemoved_5_list) IsValid() bool {
|
||
|
|
return x.list != nil
|
||
|
|
}
|
||
|
|
|
||
|
|
var (
|
||
|
|
md_EventLiquidityRemoved protoreflect.MessageDescriptor
|
||
|
|
fd_EventLiquidityRemoved_did protoreflect.FieldDescriptor
|
||
|
|
fd_EventLiquidityRemoved_connection_id protoreflect.FieldDescriptor
|
||
|
|
fd_EventLiquidityRemoved_pool_id protoreflect.FieldDescriptor
|
||
|
|
fd_EventLiquidityRemoved_shares_removed protoreflect.FieldDescriptor
|
||
|
|
fd_EventLiquidityRemoved_assets protoreflect.FieldDescriptor
|
||
|
|
fd_EventLiquidityRemoved_tx_hash protoreflect.FieldDescriptor
|
||
|
|
)
|
||
|
|
|
||
|
|
func init() {
|
||
|
|
file_dex_v1_events_proto_init()
|
||
|
|
md_EventLiquidityRemoved = File_dex_v1_events_proto.Messages().ByName("EventLiquidityRemoved")
|
||
|
|
fd_EventLiquidityRemoved_did = md_EventLiquidityRemoved.Fields().ByName("did")
|
||
|
|
fd_EventLiquidityRemoved_connection_id = md_EventLiquidityRemoved.Fields().ByName("connection_id")
|
||
|
|
fd_EventLiquidityRemoved_pool_id = md_EventLiquidityRemoved.Fields().ByName("pool_id")
|
||
|
|
fd_EventLiquidityRemoved_shares_removed = md_EventLiquidityRemoved.Fields().ByName("shares_removed")
|
||
|
|
fd_EventLiquidityRemoved_assets = md_EventLiquidityRemoved.Fields().ByName("assets")
|
||
|
|
fd_EventLiquidityRemoved_tx_hash = md_EventLiquidityRemoved.Fields().ByName("tx_hash")
|
||
|
|
}
|
||
|
|
|
||
|
|
var _ protoreflect.Message = (*fastReflection_EventLiquidityRemoved)(nil)
|
||
|
|
|
||
|
|
type fastReflection_EventLiquidityRemoved EventLiquidityRemoved
|
||
|
|
|
||
|
|
func (x *EventLiquidityRemoved) ProtoReflect() protoreflect.Message {
|
||
|
|
return (*fastReflection_EventLiquidityRemoved)(x)
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *EventLiquidityRemoved) slowProtoReflect() protoreflect.Message {
|
||
|
|
mi := &file_dex_v1_events_proto_msgTypes[3]
|
||
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
||
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
|
if ms.LoadMessageInfo() == nil {
|
||
|
|
ms.StoreMessageInfo(mi)
|
||
|
|
}
|
||
|
|
return ms
|
||
|
|
}
|
||
|
|
return mi.MessageOf(x)
|
||
|
|
}
|
||
|
|
|
||
|
|
var _fastReflection_EventLiquidityRemoved_messageType fastReflection_EventLiquidityRemoved_messageType
|
||
|
|
var _ protoreflect.MessageType = fastReflection_EventLiquidityRemoved_messageType{}
|
||
|
|
|
||
|
|
type fastReflection_EventLiquidityRemoved_messageType struct{}
|
||
|
|
|
||
|
|
func (x fastReflection_EventLiquidityRemoved_messageType) Zero() protoreflect.Message {
|
||
|
|
return (*fastReflection_EventLiquidityRemoved)(nil)
|
||
|
|
}
|
||
|
|
func (x fastReflection_EventLiquidityRemoved_messageType) New() protoreflect.Message {
|
||
|
|
return new(fastReflection_EventLiquidityRemoved)
|
||
|
|
}
|
||
|
|
func (x fastReflection_EventLiquidityRemoved_messageType) Descriptor() protoreflect.MessageDescriptor {
|
||
|
|
return md_EventLiquidityRemoved
|
||
|
|
}
|
||
|
|
|
||
|
|
// Descriptor returns message descriptor, which contains only the protobuf
|
||
|
|
// type information for the message.
|
||
|
|
func (x *fastReflection_EventLiquidityRemoved) Descriptor() protoreflect.MessageDescriptor {
|
||
|
|
return md_EventLiquidityRemoved
|
||
|
|
}
|
||
|
|
|
||
|
|
// Type returns the message type, which encapsulates both Go and protobuf
|
||
|
|
// type information. If the Go type information is not needed,
|
||
|
|
// it is recommended that the message descriptor be used instead.
|
||
|
|
func (x *fastReflection_EventLiquidityRemoved) Type() protoreflect.MessageType {
|
||
|
|
return _fastReflection_EventLiquidityRemoved_messageType
|
||
|
|
}
|
||
|
|
|
||
|
|
// New returns a newly allocated and mutable empty message.
|
||
|
|
func (x *fastReflection_EventLiquidityRemoved) New() protoreflect.Message {
|
||
|
|
return new(fastReflection_EventLiquidityRemoved)
|
||
|
|
}
|
||
|
|
|
||
|
|
// Interface unwraps the message reflection interface and
|
||
|
|
// returns the underlying ProtoMessage interface.
|
||
|
|
func (x *fastReflection_EventLiquidityRemoved) Interface() protoreflect.ProtoMessage {
|
||
|
|
return (*EventLiquidityRemoved)(x)
|
||
|
|
}
|
||
|
|
|
||
|
|
// Range iterates over every populated field in an undefined order,
|
||
|
|
// calling f for each field descriptor and value encountered.
|
||
|
|
// Range returns immediately if f returns false.
|
||
|
|
// While iterating, mutating operations may only be performed
|
||
|
|
// on the current field descriptor.
|
||
|
|
func (x *fastReflection_EventLiquidityRemoved) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
|
||
|
|
if x.Did != "" {
|
||
|
|
value := protoreflect.ValueOfString(x.Did)
|
||
|
|
if !f(fd_EventLiquidityRemoved_did, value) {
|
||
|
|
return
|
||
|
|
}
|
||
|
|
}
|
||
|
|
if x.ConnectionId != "" {
|
||
|
|
value := protoreflect.ValueOfString(x.ConnectionId)
|
||
|
|
if !f(fd_EventLiquidityRemoved_connection_id, value) {
|
||
|
|
return
|
||
|
|
}
|
||
|
|
}
|
||
|
|
if x.PoolId != "" {
|
||
|
|
value := protoreflect.ValueOfString(x.PoolId)
|
||
|
|
if !f(fd_EventLiquidityRemoved_pool_id, value) {
|
||
|
|
return
|
||
|
|
}
|
||
|
|
}
|
||
|
|
if x.SharesRemoved != "" {
|
||
|
|
value := protoreflect.ValueOfString(x.SharesRemoved)
|
||
|
|
if !f(fd_EventLiquidityRemoved_shares_removed, value) {
|
||
|
|
return
|
||
|
|
}
|
||
|
|
}
|
||
|
|
if len(x.Assets) != 0 {
|
||
|
|
value := protoreflect.ValueOfList(&_EventLiquidityRemoved_5_list{list: &x.Assets})
|
||
|
|
if !f(fd_EventLiquidityRemoved_assets, value) {
|
||
|
|
return
|
||
|
|
}
|
||
|
|
}
|
||
|
|
if x.TxHash != "" {
|
||
|
|
value := protoreflect.ValueOfString(x.TxHash)
|
||
|
|
if !f(fd_EventLiquidityRemoved_tx_hash, value) {
|
||
|
|
return
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// Has reports whether a field is populated.
|
||
|
|
//
|
||
|
|
// Some fields have the property of nullability where it is possible to
|
||
|
|
// distinguish between the default value of a field and whether the field
|
||
|
|
// was explicitly populated with the default value. Singular message fields,
|
||
|
|
// member fields of a oneof, and proto2 scalar fields are nullable. Such
|
||
|
|
// fields are populated only if explicitly set.
|
||
|
|
//
|
||
|
|
// In other cases (aside from the nullable cases above),
|
||
|
|
// a proto3 scalar field is populated if it contains a non-zero value, and
|
||
|
|
// a repeated field is populated if it is non-empty.
|
||
|
|
func (x *fastReflection_EventLiquidityRemoved) Has(fd protoreflect.FieldDescriptor) bool {
|
||
|
|
switch fd.FullName() {
|
||
|
|
case "dex.v1.EventLiquidityRemoved.did":
|
||
|
|
return x.Did != ""
|
||
|
|
case "dex.v1.EventLiquidityRemoved.connection_id":
|
||
|
|
return x.ConnectionId != ""
|
||
|
|
case "dex.v1.EventLiquidityRemoved.pool_id":
|
||
|
|
return x.PoolId != ""
|
||
|
|
case "dex.v1.EventLiquidityRemoved.shares_removed":
|
||
|
|
return x.SharesRemoved != ""
|
||
|
|
case "dex.v1.EventLiquidityRemoved.assets":
|
||
|
|
return len(x.Assets) != 0
|
||
|
|
case "dex.v1.EventLiquidityRemoved.tx_hash":
|
||
|
|
return x.TxHash != ""
|
||
|
|
default:
|
||
|
|
if fd.IsExtension() {
|
||
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: dex.v1.EventLiquidityRemoved"))
|
||
|
|
}
|
||
|
|
panic(fmt.Errorf("message dex.v1.EventLiquidityRemoved does not contain field %s", fd.FullName()))
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// Clear clears the field such that a subsequent Has call reports false.
|
||
|
|
//
|
||
|
|
// Clearing an extension field clears both the extension type and value
|
||
|
|
// associated with the given field number.
|
||
|
|
//
|
||
|
|
// Clear is a mutating operation and unsafe for concurrent use.
|
||
|
|
func (x *fastReflection_EventLiquidityRemoved) Clear(fd protoreflect.FieldDescriptor) {
|
||
|
|
switch fd.FullName() {
|
||
|
|
case "dex.v1.EventLiquidityRemoved.did":
|
||
|
|
x.Did = ""
|
||
|
|
case "dex.v1.EventLiquidityRemoved.connection_id":
|
||
|
|
x.ConnectionId = ""
|
||
|
|
case "dex.v1.EventLiquidityRemoved.pool_id":
|
||
|
|
x.PoolId = ""
|
||
|
|
case "dex.v1.EventLiquidityRemoved.shares_removed":
|
||
|
|
x.SharesRemoved = ""
|
||
|
|
case "dex.v1.EventLiquidityRemoved.assets":
|
||
|
|
x.Assets = nil
|
||
|
|
case "dex.v1.EventLiquidityRemoved.tx_hash":
|
||
|
|
x.TxHash = ""
|
||
|
|
default:
|
||
|
|
if fd.IsExtension() {
|
||
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: dex.v1.EventLiquidityRemoved"))
|
||
|
|
}
|
||
|
|
panic(fmt.Errorf("message dex.v1.EventLiquidityRemoved does not contain field %s", fd.FullName()))
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// Get retrieves the value for a field.
|
||
|
|
//
|
||
|
|
// For unpopulated scalars, it returns the default value, where
|
||
|
|
// the default value of a bytes scalar is guaranteed to be a copy.
|
||
|
|
// For unpopulated composite types, it returns an empty, read-only view
|
||
|
|
// of the value; to obtain a mutable reference, use Mutable.
|
||
|
|
func (x *fastReflection_EventLiquidityRemoved) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
|
switch descriptor.FullName() {
|
||
|
|
case "dex.v1.EventLiquidityRemoved.did":
|
||
|
|
value := x.Did
|
||
|
|
return protoreflect.ValueOfString(value)
|
||
|
|
case "dex.v1.EventLiquidityRemoved.connection_id":
|
||
|
|
value := x.ConnectionId
|
||
|
|
return protoreflect.ValueOfString(value)
|
||
|
|
case "dex.v1.EventLiquidityRemoved.pool_id":
|
||
|
|
value := x.PoolId
|
||
|
|
return protoreflect.ValueOfString(value)
|
||
|
|
case "dex.v1.EventLiquidityRemoved.shares_removed":
|
||
|
|
value := x.SharesRemoved
|
||
|
|
return protoreflect.ValueOfString(value)
|
||
|
|
case "dex.v1.EventLiquidityRemoved.assets":
|
||
|
|
if len(x.Assets) == 0 {
|
||
|
|
return protoreflect.ValueOfList(&_EventLiquidityRemoved_5_list{})
|
||
|
|
}
|
||
|
|
listValue := &_EventLiquidityRemoved_5_list{list: &x.Assets}
|
||
|
|
return protoreflect.ValueOfList(listValue)
|
||
|
|
case "dex.v1.EventLiquidityRemoved.tx_hash":
|
||
|
|
value := x.TxHash
|
||
|
|
return protoreflect.ValueOfString(value)
|
||
|
|
default:
|
||
|
|
if descriptor.IsExtension() {
|
||
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: dex.v1.EventLiquidityRemoved"))
|
||
|
|
}
|
||
|
|
panic(fmt.Errorf("message dex.v1.EventLiquidityRemoved does not contain field %s", descriptor.FullName()))
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// Set stores the value for a field.
|
||
|
|
//
|
||
|
|
// For a field belonging to a oneof, it implicitly clears any other field
|
||
|
|
// that may be currently set within the same oneof.
|
||
|
|
// For extension fields, it implicitly stores the provided ExtensionType.
|
||
|
|
// When setting a composite type, it is unspecified whether the stored value
|
||
|
|
// aliases the source's memory in any way. If the composite value is an
|
||
|
|
// empty, read-only value, then it panics.
|
||
|
|
//
|
||
|
|
// Set is a mutating operation and unsafe for concurrent use.
|
||
|
|
func (x *fastReflection_EventLiquidityRemoved) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
||
|
|
switch fd.FullName() {
|
||
|
|
case "dex.v1.EventLiquidityRemoved.did":
|
||
|
|
x.Did = value.Interface().(string)
|
||
|
|
case "dex.v1.EventLiquidityRemoved.connection_id":
|
||
|
|
x.ConnectionId = value.Interface().(string)
|
||
|
|
case "dex.v1.EventLiquidityRemoved.pool_id":
|
||
|
|
x.PoolId = value.Interface().(string)
|
||
|
|
case "dex.v1.EventLiquidityRemoved.shares_removed":
|
||
|
|
x.SharesRemoved = value.Interface().(string)
|
||
|
|
case "dex.v1.EventLiquidityRemoved.assets":
|
||
|
|
lv := value.List()
|
||
|
|
clv := lv.(*_EventLiquidityRemoved_5_list)
|
||
|
|
x.Assets = *clv.list
|
||
|
|
case "dex.v1.EventLiquidityRemoved.tx_hash":
|
||
|
|
x.TxHash = value.Interface().(string)
|
||
|
|
default:
|
||
|
|
if fd.IsExtension() {
|
||
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: dex.v1.EventLiquidityRemoved"))
|
||
|
|
}
|
||
|
|
panic(fmt.Errorf("message dex.v1.EventLiquidityRemoved does not contain field %s", fd.FullName()))
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// Mutable returns a mutable reference to a composite type.
|
||
|
|
//
|
||
|
|
// If the field is unpopulated, it may allocate a composite value.
|
||
|
|
// For a field belonging to a oneof, it implicitly clears any other field
|
||
|
|
// that may be currently set within the same oneof.
|
||
|
|
// For extension fields, it implicitly stores the provided ExtensionType
|
||
|
|
// if not already stored.
|
||
|
|
// It panics if the field does not contain a composite type.
|
||
|
|
//
|
||
|
|
// Mutable is a mutating operation and unsafe for concurrent use.
|
||
|
|
func (x *fastReflection_EventLiquidityRemoved) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
|
switch fd.FullName() {
|
||
|
|
case "dex.v1.EventLiquidityRemoved.assets":
|
||
|
|
if x.Assets == nil {
|
||
|
|
x.Assets = []*v1beta1.Coin{}
|
||
|
|
}
|
||
|
|
value := &_EventLiquidityRemoved_5_list{list: &x.Assets}
|
||
|
|
return protoreflect.ValueOfList(value)
|
||
|
|
case "dex.v1.EventLiquidityRemoved.did":
|
||
|
|
panic(fmt.Errorf("field did of message dex.v1.EventLiquidityRemoved is not mutable"))
|
||
|
|
case "dex.v1.EventLiquidityRemoved.connection_id":
|
||
|
|
panic(fmt.Errorf("field connection_id of message dex.v1.EventLiquidityRemoved is not mutable"))
|
||
|
|
case "dex.v1.EventLiquidityRemoved.pool_id":
|
||
|
|
panic(fmt.Errorf("field pool_id of message dex.v1.EventLiquidityRemoved is not mutable"))
|
||
|
|
case "dex.v1.EventLiquidityRemoved.shares_removed":
|
||
|
|
panic(fmt.Errorf("field shares_removed of message dex.v1.EventLiquidityRemoved is not mutable"))
|
||
|
|
case "dex.v1.EventLiquidityRemoved.tx_hash":
|
||
|
|
panic(fmt.Errorf("field tx_hash of message dex.v1.EventLiquidityRemoved is not mutable"))
|
||
|
|
default:
|
||
|
|
if fd.IsExtension() {
|
||
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: dex.v1.EventLiquidityRemoved"))
|
||
|
|
}
|
||
|
|
panic(fmt.Errorf("message dex.v1.EventLiquidityRemoved does not contain field %s", fd.FullName()))
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// NewField returns a new value that is assignable to the field
|
||
|
|
// for the given descriptor. For scalars, this returns the default value.
|
||
|
|
// For lists, maps, and messages, this returns a new, empty, mutable value.
|
||
|
|
func (x *fastReflection_EventLiquidityRemoved) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
|
switch fd.FullName() {
|
||
|
|
case "dex.v1.EventLiquidityRemoved.did":
|
||
|
|
return protoreflect.ValueOfString("")
|
||
|
|
case "dex.v1.EventLiquidityRemoved.connection_id":
|
||
|
|
return protoreflect.ValueOfString("")
|
||
|
|
case "dex.v1.EventLiquidityRemoved.pool_id":
|
||
|
|
return protoreflect.ValueOfString("")
|
||
|
|
case "dex.v1.EventLiquidityRemoved.shares_removed":
|
||
|
|
return protoreflect.ValueOfString("")
|
||
|
|
case "dex.v1.EventLiquidityRemoved.assets":
|
||
|
|
list := []*v1beta1.Coin{}
|
||
|
|
return protoreflect.ValueOfList(&_EventLiquidityRemoved_5_list{list: &list})
|
||
|
|
case "dex.v1.EventLiquidityRemoved.tx_hash":
|
||
|
|
return protoreflect.ValueOfString("")
|
||
|
|
default:
|
||
|
|
if fd.IsExtension() {
|
||
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: dex.v1.EventLiquidityRemoved"))
|
||
|
|
}
|
||
|
|
panic(fmt.Errorf("message dex.v1.EventLiquidityRemoved does not contain field %s", fd.FullName()))
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// WhichOneof reports which field within the oneof is populated,
|
||
|
|
// returning nil if none are populated.
|
||
|
|
// It panics if the oneof descriptor does not belong to this message.
|
||
|
|
func (x *fastReflection_EventLiquidityRemoved) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
||
|
|
switch d.FullName() {
|
||
|
|
default:
|
||
|
|
panic(fmt.Errorf("%s is not a oneof field in dex.v1.EventLiquidityRemoved", d.FullName()))
|
||
|
|
}
|
||
|
|
panic("unreachable")
|
||
|
|
}
|
||
|
|
|
||
|
|
// GetUnknown retrieves the entire list of unknown fields.
|
||
|
|
// The caller may only mutate the contents of the RawFields
|
||
|
|
// if the mutated bytes are stored back into the message with SetUnknown.
|
||
|
|
func (x *fastReflection_EventLiquidityRemoved) GetUnknown() protoreflect.RawFields {
|
||
|
|
return x.unknownFields
|
||
|
|
}
|
||
|
|
|
||
|
|
// SetUnknown stores an entire list of unknown fields.
|
||
|
|
// The raw fields must be syntactically valid according to the wire format.
|
||
|
|
// An implementation may panic if this is not the case.
|
||
|
|
// Once stored, the caller must not mutate the content of the RawFields.
|
||
|
|
// An empty RawFields may be passed to clear the fields.
|
||
|
|
//
|
||
|
|
// SetUnknown is a mutating operation and unsafe for concurrent use.
|
||
|
|
func (x *fastReflection_EventLiquidityRemoved) SetUnknown(fields protoreflect.RawFields) {
|
||
|
|
x.unknownFields = fields
|
||
|
|
}
|
||
|
|
|
||
|
|
// IsValid reports whether the message is valid.
|
||
|
|
//
|
||
|
|
// An invalid message is an empty, read-only value.
|
||
|
|
//
|
||
|
|
// An invalid message often corresponds to a nil pointer of the concrete
|
||
|
|
// message type, but the details are implementation dependent.
|
||
|
|
// Validity is not part of the protobuf data model, and may not
|
||
|
|
// be preserved in marshaling or other operations.
|
||
|
|
func (x *fastReflection_EventLiquidityRemoved) IsValid() bool {
|
||
|
|
return x != nil
|
||
|
|
}
|
||
|
|
|
||
|
|
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
|
||
|
|
// This method may return nil.
|
||
|
|
//
|
||
|
|
// The returned methods type is identical to
|
||
|
|
// "google.golang.org/protobuf/runtime/protoiface".Methods.
|
||
|
|
// Consult the protoiface package documentation for details.
|
||
|
|
func (x *fastReflection_EventLiquidityRemoved) ProtoMethods() *protoiface.Methods {
|
||
|
|
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
|
||
|
|
x := input.Message.Interface().(*EventLiquidityRemoved)
|
||
|
|
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.Did)
|
||
|
|
if l > 0 {
|
||
|
|
n += 1 + l + runtime.Sov(uint64(l))
|
||
|
|
}
|
||
|
|
l = len(x.ConnectionId)
|
||
|
|
if l > 0 {
|
||
|
|
n += 1 + l + runtime.Sov(uint64(l))
|
||
|
|
}
|
||
|
|
l = len(x.PoolId)
|
||
|
|
if l > 0 {
|
||
|
|
n += 1 + l + runtime.Sov(uint64(l))
|
||
|
|
}
|
||
|
|
l = len(x.SharesRemoved)
|
||
|
|
if l > 0 {
|
||
|
|
n += 1 + l + runtime.Sov(uint64(l))
|
||
|
|
}
|
||
|
|
if len(x.Assets) > 0 {
|
||
|
|
for _, e := range x.Assets {
|
||
|
|
l = options.Size(e)
|
||
|
|
n += 1 + l + runtime.Sov(uint64(l))
|
||
|
|
}
|
||
|
|
}
|
||
|
|
l = len(x.TxHash)
|
||
|
|
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().(*EventLiquidityRemoved)
|
||
|
|
if x == nil {
|
||
|
|
return protoiface.MarshalOutput{
|
||
|
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
||
|
|
Buf: input.Buf,
|
||
|
|
}, nil
|
||
|
|
}
|
||
|
|
options := runtime.MarshalInputToOptions(input)
|
||
|
|
_ = options
|
||
|
|
size := options.Size(x)
|
||
|
|
dAtA := make([]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.TxHash) > 0 {
|
||
|
|
i -= len(x.TxHash)
|
||
|
|
copy(dAtA[i:], x.TxHash)
|
||
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TxHash)))
|
||
|
|
i--
|
||
|
|
dAtA[i] = 0x32
|
||
|
|
}
|
||
|
|
if len(x.Assets) > 0 {
|
||
|
|
for iNdEx := len(x.Assets) - 1; iNdEx >= 0; iNdEx-- {
|
||
|
|
encoded, err := options.Marshal(x.Assets[iNdEx])
|
||
|
|
if err != nil {
|
||
|
|
return protoiface.MarshalOutput{
|
||
|
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
||
|
|
Buf: input.Buf,
|
||
|
|
}, err
|
||
|
|
}
|
||
|
|
i -= len(encoded)
|
||
|
|
copy(dAtA[i:], encoded)
|
||
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
|
||
|
|
i--
|
||
|
|
dAtA[i] = 0x2a
|
||
|
|
}
|
||
|
|
}
|
||
|
|
if len(x.SharesRemoved) > 0 {
|
||
|
|
i -= len(x.SharesRemoved)
|
||
|
|
copy(dAtA[i:], x.SharesRemoved)
|
||
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.SharesRemoved)))
|
||
|
|
i--
|
||
|
|
dAtA[i] = 0x22
|
||
|
|
}
|
||
|
|
if len(x.PoolId) > 0 {
|
||
|
|
i -= len(x.PoolId)
|
||
|
|
copy(dAtA[i:], x.PoolId)
|
||
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.PoolId)))
|
||
|
|
i--
|
||
|
|
dAtA[i] = 0x1a
|
||
|
|
}
|
||
|
|
if len(x.ConnectionId) > 0 {
|
||
|
|
i -= len(x.ConnectionId)
|
||
|
|
copy(dAtA[i:], x.ConnectionId)
|
||
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ConnectionId)))
|
||
|
|
i--
|
||
|
|
dAtA[i] = 0x12
|
||
|
|
}
|
||
|
|
if len(x.Did) > 0 {
|
||
|
|
i -= len(x.Did)
|
||
|
|
copy(dAtA[i:], x.Did)
|
||
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Did)))
|
||
|
|
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().(*EventLiquidityRemoved)
|
||
|
|
if x == nil {
|
||
|
|
return protoiface.UnmarshalOutput{
|
||
|
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
||
|
|
Flags: input.Flags,
|
||
|
|
}, nil
|
||
|
|
}
|
||
|
|
options := runtime.UnmarshalInputToOptions(input)
|
||
|
|
_ = options
|
||
|
|
dAtA := input.Buf
|
||
|
|
l := len(dAtA)
|
||
|
|
iNdEx := 0
|
||
|
|
for iNdEx < l {
|
||
|
|
preIndex := iNdEx
|
||
|
|
var wire uint64
|
||
|
|
for shift := uint(0); ; shift += 7 {
|
||
|
|
if shift >= 64 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
|
||
|
|
}
|
||
|
|
if iNdEx >= l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
b := dAtA[iNdEx]
|
||
|
|
iNdEx++
|
||
|
|
wire |= uint64(b&0x7F) << shift
|
||
|
|
if b < 0x80 {
|
||
|
|
break
|
||
|
|
}
|
||
|
|
}
|
||
|
|
fieldNum := int32(wire >> 3)
|
||
|
|
wireType := int(wire & 0x7)
|
||
|
|
if wireType == 4 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventLiquidityRemoved: wiretype end group for non-group")
|
||
|
|
}
|
||
|
|
if fieldNum <= 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventLiquidityRemoved: 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 Did", wireType)
|
||
|
|
}
|
||
|
|
var stringLen uint64
|
||
|
|
for shift := uint(0); ; shift += 7 {
|
||
|
|
if shift >= 64 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
|
||
|
|
}
|
||
|
|
if iNdEx >= l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
b := dAtA[iNdEx]
|
||
|
|
iNdEx++
|
||
|
|
stringLen |= uint64(b&0x7F) << shift
|
||
|
|
if b < 0x80 {
|
||
|
|
break
|
||
|
|
}
|
||
|
|
}
|
||
|
|
intStringLen := int(stringLen)
|
||
|
|
if intStringLen < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
postIndex := iNdEx + intStringLen
|
||
|
|
if postIndex < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
if postIndex > l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
x.Did = 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 ConnectionId", wireType)
|
||
|
|
}
|
||
|
|
var stringLen uint64
|
||
|
|
for shift := uint(0); ; shift += 7 {
|
||
|
|
if shift >= 64 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
|
||
|
|
}
|
||
|
|
if iNdEx >= l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
b := dAtA[iNdEx]
|
||
|
|
iNdEx++
|
||
|
|
stringLen |= uint64(b&0x7F) << shift
|
||
|
|
if b < 0x80 {
|
||
|
|
break
|
||
|
|
}
|
||
|
|
}
|
||
|
|
intStringLen := int(stringLen)
|
||
|
|
if intStringLen < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
postIndex := iNdEx + intStringLen
|
||
|
|
if postIndex < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
if postIndex > l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
x.ConnectionId = 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 PoolId", wireType)
|
||
|
|
}
|
||
|
|
var stringLen uint64
|
||
|
|
for shift := uint(0); ; shift += 7 {
|
||
|
|
if shift >= 64 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
|
||
|
|
}
|
||
|
|
if iNdEx >= l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
b := dAtA[iNdEx]
|
||
|
|
iNdEx++
|
||
|
|
stringLen |= uint64(b&0x7F) << shift
|
||
|
|
if b < 0x80 {
|
||
|
|
break
|
||
|
|
}
|
||
|
|
}
|
||
|
|
intStringLen := int(stringLen)
|
||
|
|
if intStringLen < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
postIndex := iNdEx + intStringLen
|
||
|
|
if postIndex < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
if postIndex > l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
x.PoolId = string(dAtA[iNdEx:postIndex])
|
||
|
|
iNdEx = postIndex
|
||
|
|
case 4:
|
||
|
|
if wireType != 2 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SharesRemoved", wireType)
|
||
|
|
}
|
||
|
|
var stringLen uint64
|
||
|
|
for shift := uint(0); ; shift += 7 {
|
||
|
|
if shift >= 64 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
|
||
|
|
}
|
||
|
|
if iNdEx >= l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
b := dAtA[iNdEx]
|
||
|
|
iNdEx++
|
||
|
|
stringLen |= uint64(b&0x7F) << shift
|
||
|
|
if b < 0x80 {
|
||
|
|
break
|
||
|
|
}
|
||
|
|
}
|
||
|
|
intStringLen := int(stringLen)
|
||
|
|
if intStringLen < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
postIndex := iNdEx + intStringLen
|
||
|
|
if postIndex < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
if postIndex > l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
x.SharesRemoved = string(dAtA[iNdEx:postIndex])
|
||
|
|
iNdEx = postIndex
|
||
|
|
case 5:
|
||
|
|
if wireType != 2 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Assets", 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.Assets = append(x.Assets, &v1beta1.Coin{})
|
||
|
|
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Assets[len(x.Assets)-1]); err != nil {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
||
|
|
}
|
||
|
|
iNdEx = postIndex
|
||
|
|
case 6:
|
||
|
|
if wireType != 2 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TxHash", wireType)
|
||
|
|
}
|
||
|
|
var stringLen uint64
|
||
|
|
for shift := uint(0); ; shift += 7 {
|
||
|
|
if shift >= 64 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
|
||
|
|
}
|
||
|
|
if iNdEx >= l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
b := dAtA[iNdEx]
|
||
|
|
iNdEx++
|
||
|
|
stringLen |= uint64(b&0x7F) << shift
|
||
|
|
if b < 0x80 {
|
||
|
|
break
|
||
|
|
}
|
||
|
|
}
|
||
|
|
intStringLen := int(stringLen)
|
||
|
|
if intStringLen < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
postIndex := iNdEx + intStringLen
|
||
|
|
if postIndex < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
if postIndex > l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
x.TxHash = 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_EventOrderCreated protoreflect.MessageDescriptor
|
||
|
|
fd_EventOrderCreated_did protoreflect.FieldDescriptor
|
||
|
|
fd_EventOrderCreated_connection_id protoreflect.FieldDescriptor
|
||
|
|
fd_EventOrderCreated_order_id protoreflect.FieldDescriptor
|
||
|
|
fd_EventOrderCreated_sell_denom protoreflect.FieldDescriptor
|
||
|
|
fd_EventOrderCreated_buy_denom protoreflect.FieldDescriptor
|
||
|
|
fd_EventOrderCreated_amount protoreflect.FieldDescriptor
|
||
|
|
fd_EventOrderCreated_price protoreflect.FieldDescriptor
|
||
|
|
fd_EventOrderCreated_tx_hash protoreflect.FieldDescriptor
|
||
|
|
)
|
||
|
|
|
||
|
|
func init() {
|
||
|
|
file_dex_v1_events_proto_init()
|
||
|
|
md_EventOrderCreated = File_dex_v1_events_proto.Messages().ByName("EventOrderCreated")
|
||
|
|
fd_EventOrderCreated_did = md_EventOrderCreated.Fields().ByName("did")
|
||
|
|
fd_EventOrderCreated_connection_id = md_EventOrderCreated.Fields().ByName("connection_id")
|
||
|
|
fd_EventOrderCreated_order_id = md_EventOrderCreated.Fields().ByName("order_id")
|
||
|
|
fd_EventOrderCreated_sell_denom = md_EventOrderCreated.Fields().ByName("sell_denom")
|
||
|
|
fd_EventOrderCreated_buy_denom = md_EventOrderCreated.Fields().ByName("buy_denom")
|
||
|
|
fd_EventOrderCreated_amount = md_EventOrderCreated.Fields().ByName("amount")
|
||
|
|
fd_EventOrderCreated_price = md_EventOrderCreated.Fields().ByName("price")
|
||
|
|
fd_EventOrderCreated_tx_hash = md_EventOrderCreated.Fields().ByName("tx_hash")
|
||
|
|
}
|
||
|
|
|
||
|
|
var _ protoreflect.Message = (*fastReflection_EventOrderCreated)(nil)
|
||
|
|
|
||
|
|
type fastReflection_EventOrderCreated EventOrderCreated
|
||
|
|
|
||
|
|
func (x *EventOrderCreated) ProtoReflect() protoreflect.Message {
|
||
|
|
return (*fastReflection_EventOrderCreated)(x)
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *EventOrderCreated) slowProtoReflect() protoreflect.Message {
|
||
|
|
mi := &file_dex_v1_events_proto_msgTypes[4]
|
||
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
||
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
|
if ms.LoadMessageInfo() == nil {
|
||
|
|
ms.StoreMessageInfo(mi)
|
||
|
|
}
|
||
|
|
return ms
|
||
|
|
}
|
||
|
|
return mi.MessageOf(x)
|
||
|
|
}
|
||
|
|
|
||
|
|
var _fastReflection_EventOrderCreated_messageType fastReflection_EventOrderCreated_messageType
|
||
|
|
var _ protoreflect.MessageType = fastReflection_EventOrderCreated_messageType{}
|
||
|
|
|
||
|
|
type fastReflection_EventOrderCreated_messageType struct{}
|
||
|
|
|
||
|
|
func (x fastReflection_EventOrderCreated_messageType) Zero() protoreflect.Message {
|
||
|
|
return (*fastReflection_EventOrderCreated)(nil)
|
||
|
|
}
|
||
|
|
func (x fastReflection_EventOrderCreated_messageType) New() protoreflect.Message {
|
||
|
|
return new(fastReflection_EventOrderCreated)
|
||
|
|
}
|
||
|
|
func (x fastReflection_EventOrderCreated_messageType) Descriptor() protoreflect.MessageDescriptor {
|
||
|
|
return md_EventOrderCreated
|
||
|
|
}
|
||
|
|
|
||
|
|
// Descriptor returns message descriptor, which contains only the protobuf
|
||
|
|
// type information for the message.
|
||
|
|
func (x *fastReflection_EventOrderCreated) Descriptor() protoreflect.MessageDescriptor {
|
||
|
|
return md_EventOrderCreated
|
||
|
|
}
|
||
|
|
|
||
|
|
// Type returns the message type, which encapsulates both Go and protobuf
|
||
|
|
// type information. If the Go type information is not needed,
|
||
|
|
// it is recommended that the message descriptor be used instead.
|
||
|
|
func (x *fastReflection_EventOrderCreated) Type() protoreflect.MessageType {
|
||
|
|
return _fastReflection_EventOrderCreated_messageType
|
||
|
|
}
|
||
|
|
|
||
|
|
// New returns a newly allocated and mutable empty message.
|
||
|
|
func (x *fastReflection_EventOrderCreated) New() protoreflect.Message {
|
||
|
|
return new(fastReflection_EventOrderCreated)
|
||
|
|
}
|
||
|
|
|
||
|
|
// Interface unwraps the message reflection interface and
|
||
|
|
// returns the underlying ProtoMessage interface.
|
||
|
|
func (x *fastReflection_EventOrderCreated) Interface() protoreflect.ProtoMessage {
|
||
|
|
return (*EventOrderCreated)(x)
|
||
|
|
}
|
||
|
|
|
||
|
|
// Range iterates over every populated field in an undefined order,
|
||
|
|
// calling f for each field descriptor and value encountered.
|
||
|
|
// Range returns immediately if f returns false.
|
||
|
|
// While iterating, mutating operations may only be performed
|
||
|
|
// on the current field descriptor.
|
||
|
|
func (x *fastReflection_EventOrderCreated) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
|
||
|
|
if x.Did != "" {
|
||
|
|
value := protoreflect.ValueOfString(x.Did)
|
||
|
|
if !f(fd_EventOrderCreated_did, value) {
|
||
|
|
return
|
||
|
|
}
|
||
|
|
}
|
||
|
|
if x.ConnectionId != "" {
|
||
|
|
value := protoreflect.ValueOfString(x.ConnectionId)
|
||
|
|
if !f(fd_EventOrderCreated_connection_id, value) {
|
||
|
|
return
|
||
|
|
}
|
||
|
|
}
|
||
|
|
if x.OrderId != "" {
|
||
|
|
value := protoreflect.ValueOfString(x.OrderId)
|
||
|
|
if !f(fd_EventOrderCreated_order_id, value) {
|
||
|
|
return
|
||
|
|
}
|
||
|
|
}
|
||
|
|
if x.SellDenom != "" {
|
||
|
|
value := protoreflect.ValueOfString(x.SellDenom)
|
||
|
|
if !f(fd_EventOrderCreated_sell_denom, value) {
|
||
|
|
return
|
||
|
|
}
|
||
|
|
}
|
||
|
|
if x.BuyDenom != "" {
|
||
|
|
value := protoreflect.ValueOfString(x.BuyDenom)
|
||
|
|
if !f(fd_EventOrderCreated_buy_denom, value) {
|
||
|
|
return
|
||
|
|
}
|
||
|
|
}
|
||
|
|
if x.Amount != "" {
|
||
|
|
value := protoreflect.ValueOfString(x.Amount)
|
||
|
|
if !f(fd_EventOrderCreated_amount, value) {
|
||
|
|
return
|
||
|
|
}
|
||
|
|
}
|
||
|
|
if x.Price != "" {
|
||
|
|
value := protoreflect.ValueOfString(x.Price)
|
||
|
|
if !f(fd_EventOrderCreated_price, value) {
|
||
|
|
return
|
||
|
|
}
|
||
|
|
}
|
||
|
|
if x.TxHash != "" {
|
||
|
|
value := protoreflect.ValueOfString(x.TxHash)
|
||
|
|
if !f(fd_EventOrderCreated_tx_hash, value) {
|
||
|
|
return
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// Has reports whether a field is populated.
|
||
|
|
//
|
||
|
|
// Some fields have the property of nullability where it is possible to
|
||
|
|
// distinguish between the default value of a field and whether the field
|
||
|
|
// was explicitly populated with the default value. Singular message fields,
|
||
|
|
// member fields of a oneof, and proto2 scalar fields are nullable. Such
|
||
|
|
// fields are populated only if explicitly set.
|
||
|
|
//
|
||
|
|
// In other cases (aside from the nullable cases above),
|
||
|
|
// a proto3 scalar field is populated if it contains a non-zero value, and
|
||
|
|
// a repeated field is populated if it is non-empty.
|
||
|
|
func (x *fastReflection_EventOrderCreated) Has(fd protoreflect.FieldDescriptor) bool {
|
||
|
|
switch fd.FullName() {
|
||
|
|
case "dex.v1.EventOrderCreated.did":
|
||
|
|
return x.Did != ""
|
||
|
|
case "dex.v1.EventOrderCreated.connection_id":
|
||
|
|
return x.ConnectionId != ""
|
||
|
|
case "dex.v1.EventOrderCreated.order_id":
|
||
|
|
return x.OrderId != ""
|
||
|
|
case "dex.v1.EventOrderCreated.sell_denom":
|
||
|
|
return x.SellDenom != ""
|
||
|
|
case "dex.v1.EventOrderCreated.buy_denom":
|
||
|
|
return x.BuyDenom != ""
|
||
|
|
case "dex.v1.EventOrderCreated.amount":
|
||
|
|
return x.Amount != ""
|
||
|
|
case "dex.v1.EventOrderCreated.price":
|
||
|
|
return x.Price != ""
|
||
|
|
case "dex.v1.EventOrderCreated.tx_hash":
|
||
|
|
return x.TxHash != ""
|
||
|
|
default:
|
||
|
|
if fd.IsExtension() {
|
||
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: dex.v1.EventOrderCreated"))
|
||
|
|
}
|
||
|
|
panic(fmt.Errorf("message dex.v1.EventOrderCreated does not contain field %s", fd.FullName()))
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// Clear clears the field such that a subsequent Has call reports false.
|
||
|
|
//
|
||
|
|
// Clearing an extension field clears both the extension type and value
|
||
|
|
// associated with the given field number.
|
||
|
|
//
|
||
|
|
// Clear is a mutating operation and unsafe for concurrent use.
|
||
|
|
func (x *fastReflection_EventOrderCreated) Clear(fd protoreflect.FieldDescriptor) {
|
||
|
|
switch fd.FullName() {
|
||
|
|
case "dex.v1.EventOrderCreated.did":
|
||
|
|
x.Did = ""
|
||
|
|
case "dex.v1.EventOrderCreated.connection_id":
|
||
|
|
x.ConnectionId = ""
|
||
|
|
case "dex.v1.EventOrderCreated.order_id":
|
||
|
|
x.OrderId = ""
|
||
|
|
case "dex.v1.EventOrderCreated.sell_denom":
|
||
|
|
x.SellDenom = ""
|
||
|
|
case "dex.v1.EventOrderCreated.buy_denom":
|
||
|
|
x.BuyDenom = ""
|
||
|
|
case "dex.v1.EventOrderCreated.amount":
|
||
|
|
x.Amount = ""
|
||
|
|
case "dex.v1.EventOrderCreated.price":
|
||
|
|
x.Price = ""
|
||
|
|
case "dex.v1.EventOrderCreated.tx_hash":
|
||
|
|
x.TxHash = ""
|
||
|
|
default:
|
||
|
|
if fd.IsExtension() {
|
||
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: dex.v1.EventOrderCreated"))
|
||
|
|
}
|
||
|
|
panic(fmt.Errorf("message dex.v1.EventOrderCreated does not contain field %s", fd.FullName()))
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// Get retrieves the value for a field.
|
||
|
|
//
|
||
|
|
// For unpopulated scalars, it returns the default value, where
|
||
|
|
// the default value of a bytes scalar is guaranteed to be a copy.
|
||
|
|
// For unpopulated composite types, it returns an empty, read-only view
|
||
|
|
// of the value; to obtain a mutable reference, use Mutable.
|
||
|
|
func (x *fastReflection_EventOrderCreated) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
|
switch descriptor.FullName() {
|
||
|
|
case "dex.v1.EventOrderCreated.did":
|
||
|
|
value := x.Did
|
||
|
|
return protoreflect.ValueOfString(value)
|
||
|
|
case "dex.v1.EventOrderCreated.connection_id":
|
||
|
|
value := x.ConnectionId
|
||
|
|
return protoreflect.ValueOfString(value)
|
||
|
|
case "dex.v1.EventOrderCreated.order_id":
|
||
|
|
value := x.OrderId
|
||
|
|
return protoreflect.ValueOfString(value)
|
||
|
|
case "dex.v1.EventOrderCreated.sell_denom":
|
||
|
|
value := x.SellDenom
|
||
|
|
return protoreflect.ValueOfString(value)
|
||
|
|
case "dex.v1.EventOrderCreated.buy_denom":
|
||
|
|
value := x.BuyDenom
|
||
|
|
return protoreflect.ValueOfString(value)
|
||
|
|
case "dex.v1.EventOrderCreated.amount":
|
||
|
|
value := x.Amount
|
||
|
|
return protoreflect.ValueOfString(value)
|
||
|
|
case "dex.v1.EventOrderCreated.price":
|
||
|
|
value := x.Price
|
||
|
|
return protoreflect.ValueOfString(value)
|
||
|
|
case "dex.v1.EventOrderCreated.tx_hash":
|
||
|
|
value := x.TxHash
|
||
|
|
return protoreflect.ValueOfString(value)
|
||
|
|
default:
|
||
|
|
if descriptor.IsExtension() {
|
||
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: dex.v1.EventOrderCreated"))
|
||
|
|
}
|
||
|
|
panic(fmt.Errorf("message dex.v1.EventOrderCreated does not contain field %s", descriptor.FullName()))
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// Set stores the value for a field.
|
||
|
|
//
|
||
|
|
// For a field belonging to a oneof, it implicitly clears any other field
|
||
|
|
// that may be currently set within the same oneof.
|
||
|
|
// For extension fields, it implicitly stores the provided ExtensionType.
|
||
|
|
// When setting a composite type, it is unspecified whether the stored value
|
||
|
|
// aliases the source's memory in any way. If the composite value is an
|
||
|
|
// empty, read-only value, then it panics.
|
||
|
|
//
|
||
|
|
// Set is a mutating operation and unsafe for concurrent use.
|
||
|
|
func (x *fastReflection_EventOrderCreated) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
||
|
|
switch fd.FullName() {
|
||
|
|
case "dex.v1.EventOrderCreated.did":
|
||
|
|
x.Did = value.Interface().(string)
|
||
|
|
case "dex.v1.EventOrderCreated.connection_id":
|
||
|
|
x.ConnectionId = value.Interface().(string)
|
||
|
|
case "dex.v1.EventOrderCreated.order_id":
|
||
|
|
x.OrderId = value.Interface().(string)
|
||
|
|
case "dex.v1.EventOrderCreated.sell_denom":
|
||
|
|
x.SellDenom = value.Interface().(string)
|
||
|
|
case "dex.v1.EventOrderCreated.buy_denom":
|
||
|
|
x.BuyDenom = value.Interface().(string)
|
||
|
|
case "dex.v1.EventOrderCreated.amount":
|
||
|
|
x.Amount = value.Interface().(string)
|
||
|
|
case "dex.v1.EventOrderCreated.price":
|
||
|
|
x.Price = value.Interface().(string)
|
||
|
|
case "dex.v1.EventOrderCreated.tx_hash":
|
||
|
|
x.TxHash = value.Interface().(string)
|
||
|
|
default:
|
||
|
|
if fd.IsExtension() {
|
||
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: dex.v1.EventOrderCreated"))
|
||
|
|
}
|
||
|
|
panic(fmt.Errorf("message dex.v1.EventOrderCreated does not contain field %s", fd.FullName()))
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// Mutable returns a mutable reference to a composite type.
|
||
|
|
//
|
||
|
|
// If the field is unpopulated, it may allocate a composite value.
|
||
|
|
// For a field belonging to a oneof, it implicitly clears any other field
|
||
|
|
// that may be currently set within the same oneof.
|
||
|
|
// For extension fields, it implicitly stores the provided ExtensionType
|
||
|
|
// if not already stored.
|
||
|
|
// It panics if the field does not contain a composite type.
|
||
|
|
//
|
||
|
|
// Mutable is a mutating operation and unsafe for concurrent use.
|
||
|
|
func (x *fastReflection_EventOrderCreated) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
|
switch fd.FullName() {
|
||
|
|
case "dex.v1.EventOrderCreated.did":
|
||
|
|
panic(fmt.Errorf("field did of message dex.v1.EventOrderCreated is not mutable"))
|
||
|
|
case "dex.v1.EventOrderCreated.connection_id":
|
||
|
|
panic(fmt.Errorf("field connection_id of message dex.v1.EventOrderCreated is not mutable"))
|
||
|
|
case "dex.v1.EventOrderCreated.order_id":
|
||
|
|
panic(fmt.Errorf("field order_id of message dex.v1.EventOrderCreated is not mutable"))
|
||
|
|
case "dex.v1.EventOrderCreated.sell_denom":
|
||
|
|
panic(fmt.Errorf("field sell_denom of message dex.v1.EventOrderCreated is not mutable"))
|
||
|
|
case "dex.v1.EventOrderCreated.buy_denom":
|
||
|
|
panic(fmt.Errorf("field buy_denom of message dex.v1.EventOrderCreated is not mutable"))
|
||
|
|
case "dex.v1.EventOrderCreated.amount":
|
||
|
|
panic(fmt.Errorf("field amount of message dex.v1.EventOrderCreated is not mutable"))
|
||
|
|
case "dex.v1.EventOrderCreated.price":
|
||
|
|
panic(fmt.Errorf("field price of message dex.v1.EventOrderCreated is not mutable"))
|
||
|
|
case "dex.v1.EventOrderCreated.tx_hash":
|
||
|
|
panic(fmt.Errorf("field tx_hash of message dex.v1.EventOrderCreated is not mutable"))
|
||
|
|
default:
|
||
|
|
if fd.IsExtension() {
|
||
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: dex.v1.EventOrderCreated"))
|
||
|
|
}
|
||
|
|
panic(fmt.Errorf("message dex.v1.EventOrderCreated does not contain field %s", fd.FullName()))
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// NewField returns a new value that is assignable to the field
|
||
|
|
// for the given descriptor. For scalars, this returns the default value.
|
||
|
|
// For lists, maps, and messages, this returns a new, empty, mutable value.
|
||
|
|
func (x *fastReflection_EventOrderCreated) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
|
switch fd.FullName() {
|
||
|
|
case "dex.v1.EventOrderCreated.did":
|
||
|
|
return protoreflect.ValueOfString("")
|
||
|
|
case "dex.v1.EventOrderCreated.connection_id":
|
||
|
|
return protoreflect.ValueOfString("")
|
||
|
|
case "dex.v1.EventOrderCreated.order_id":
|
||
|
|
return protoreflect.ValueOfString("")
|
||
|
|
case "dex.v1.EventOrderCreated.sell_denom":
|
||
|
|
return protoreflect.ValueOfString("")
|
||
|
|
case "dex.v1.EventOrderCreated.buy_denom":
|
||
|
|
return protoreflect.ValueOfString("")
|
||
|
|
case "dex.v1.EventOrderCreated.amount":
|
||
|
|
return protoreflect.ValueOfString("")
|
||
|
|
case "dex.v1.EventOrderCreated.price":
|
||
|
|
return protoreflect.ValueOfString("")
|
||
|
|
case "dex.v1.EventOrderCreated.tx_hash":
|
||
|
|
return protoreflect.ValueOfString("")
|
||
|
|
default:
|
||
|
|
if fd.IsExtension() {
|
||
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: dex.v1.EventOrderCreated"))
|
||
|
|
}
|
||
|
|
panic(fmt.Errorf("message dex.v1.EventOrderCreated does not contain field %s", fd.FullName()))
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// WhichOneof reports which field within the oneof is populated,
|
||
|
|
// returning nil if none are populated.
|
||
|
|
// It panics if the oneof descriptor does not belong to this message.
|
||
|
|
func (x *fastReflection_EventOrderCreated) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
||
|
|
switch d.FullName() {
|
||
|
|
default:
|
||
|
|
panic(fmt.Errorf("%s is not a oneof field in dex.v1.EventOrderCreated", d.FullName()))
|
||
|
|
}
|
||
|
|
panic("unreachable")
|
||
|
|
}
|
||
|
|
|
||
|
|
// GetUnknown retrieves the entire list of unknown fields.
|
||
|
|
// The caller may only mutate the contents of the RawFields
|
||
|
|
// if the mutated bytes are stored back into the message with SetUnknown.
|
||
|
|
func (x *fastReflection_EventOrderCreated) GetUnknown() protoreflect.RawFields {
|
||
|
|
return x.unknownFields
|
||
|
|
}
|
||
|
|
|
||
|
|
// SetUnknown stores an entire list of unknown fields.
|
||
|
|
// The raw fields must be syntactically valid according to the wire format.
|
||
|
|
// An implementation may panic if this is not the case.
|
||
|
|
// Once stored, the caller must not mutate the content of the RawFields.
|
||
|
|
// An empty RawFields may be passed to clear the fields.
|
||
|
|
//
|
||
|
|
// SetUnknown is a mutating operation and unsafe for concurrent use.
|
||
|
|
func (x *fastReflection_EventOrderCreated) SetUnknown(fields protoreflect.RawFields) {
|
||
|
|
x.unknownFields = fields
|
||
|
|
}
|
||
|
|
|
||
|
|
// IsValid reports whether the message is valid.
|
||
|
|
//
|
||
|
|
// An invalid message is an empty, read-only value.
|
||
|
|
//
|
||
|
|
// An invalid message often corresponds to a nil pointer of the concrete
|
||
|
|
// message type, but the details are implementation dependent.
|
||
|
|
// Validity is not part of the protobuf data model, and may not
|
||
|
|
// be preserved in marshaling or other operations.
|
||
|
|
func (x *fastReflection_EventOrderCreated) IsValid() bool {
|
||
|
|
return x != nil
|
||
|
|
}
|
||
|
|
|
||
|
|
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
|
||
|
|
// This method may return nil.
|
||
|
|
//
|
||
|
|
// The returned methods type is identical to
|
||
|
|
// "google.golang.org/protobuf/runtime/protoiface".Methods.
|
||
|
|
// Consult the protoiface package documentation for details.
|
||
|
|
func (x *fastReflection_EventOrderCreated) ProtoMethods() *protoiface.Methods {
|
||
|
|
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
|
||
|
|
x := input.Message.Interface().(*EventOrderCreated)
|
||
|
|
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.Did)
|
||
|
|
if l > 0 {
|
||
|
|
n += 1 + l + runtime.Sov(uint64(l))
|
||
|
|
}
|
||
|
|
l = len(x.ConnectionId)
|
||
|
|
if l > 0 {
|
||
|
|
n += 1 + l + runtime.Sov(uint64(l))
|
||
|
|
}
|
||
|
|
l = len(x.OrderId)
|
||
|
|
if l > 0 {
|
||
|
|
n += 1 + l + runtime.Sov(uint64(l))
|
||
|
|
}
|
||
|
|
l = len(x.SellDenom)
|
||
|
|
if l > 0 {
|
||
|
|
n += 1 + l + runtime.Sov(uint64(l))
|
||
|
|
}
|
||
|
|
l = len(x.BuyDenom)
|
||
|
|
if l > 0 {
|
||
|
|
n += 1 + l + runtime.Sov(uint64(l))
|
||
|
|
}
|
||
|
|
l = len(x.Amount)
|
||
|
|
if l > 0 {
|
||
|
|
n += 1 + l + runtime.Sov(uint64(l))
|
||
|
|
}
|
||
|
|
l = len(x.Price)
|
||
|
|
if l > 0 {
|
||
|
|
n += 1 + l + runtime.Sov(uint64(l))
|
||
|
|
}
|
||
|
|
l = len(x.TxHash)
|
||
|
|
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().(*EventOrderCreated)
|
||
|
|
if x == nil {
|
||
|
|
return protoiface.MarshalOutput{
|
||
|
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
||
|
|
Buf: input.Buf,
|
||
|
|
}, nil
|
||
|
|
}
|
||
|
|
options := runtime.MarshalInputToOptions(input)
|
||
|
|
_ = options
|
||
|
|
size := options.Size(x)
|
||
|
|
dAtA := make([]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.TxHash) > 0 {
|
||
|
|
i -= len(x.TxHash)
|
||
|
|
copy(dAtA[i:], x.TxHash)
|
||
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TxHash)))
|
||
|
|
i--
|
||
|
|
dAtA[i] = 0x42
|
||
|
|
}
|
||
|
|
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] = 0x3a
|
||
|
|
}
|
||
|
|
if len(x.Amount) > 0 {
|
||
|
|
i -= len(x.Amount)
|
||
|
|
copy(dAtA[i:], x.Amount)
|
||
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Amount)))
|
||
|
|
i--
|
||
|
|
dAtA[i] = 0x32
|
||
|
|
}
|
||
|
|
if len(x.BuyDenom) > 0 {
|
||
|
|
i -= len(x.BuyDenom)
|
||
|
|
copy(dAtA[i:], x.BuyDenom)
|
||
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.BuyDenom)))
|
||
|
|
i--
|
||
|
|
dAtA[i] = 0x2a
|
||
|
|
}
|
||
|
|
if len(x.SellDenom) > 0 {
|
||
|
|
i -= len(x.SellDenom)
|
||
|
|
copy(dAtA[i:], x.SellDenom)
|
||
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.SellDenom)))
|
||
|
|
i--
|
||
|
|
dAtA[i] = 0x22
|
||
|
|
}
|
||
|
|
if len(x.OrderId) > 0 {
|
||
|
|
i -= len(x.OrderId)
|
||
|
|
copy(dAtA[i:], x.OrderId)
|
||
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.OrderId)))
|
||
|
|
i--
|
||
|
|
dAtA[i] = 0x1a
|
||
|
|
}
|
||
|
|
if len(x.ConnectionId) > 0 {
|
||
|
|
i -= len(x.ConnectionId)
|
||
|
|
copy(dAtA[i:], x.ConnectionId)
|
||
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ConnectionId)))
|
||
|
|
i--
|
||
|
|
dAtA[i] = 0x12
|
||
|
|
}
|
||
|
|
if len(x.Did) > 0 {
|
||
|
|
i -= len(x.Did)
|
||
|
|
copy(dAtA[i:], x.Did)
|
||
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Did)))
|
||
|
|
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().(*EventOrderCreated)
|
||
|
|
if x == nil {
|
||
|
|
return protoiface.UnmarshalOutput{
|
||
|
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
||
|
|
Flags: input.Flags,
|
||
|
|
}, nil
|
||
|
|
}
|
||
|
|
options := runtime.UnmarshalInputToOptions(input)
|
||
|
|
_ = options
|
||
|
|
dAtA := input.Buf
|
||
|
|
l := len(dAtA)
|
||
|
|
iNdEx := 0
|
||
|
|
for iNdEx < l {
|
||
|
|
preIndex := iNdEx
|
||
|
|
var wire uint64
|
||
|
|
for shift := uint(0); ; shift += 7 {
|
||
|
|
if shift >= 64 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
|
||
|
|
}
|
||
|
|
if iNdEx >= l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
b := dAtA[iNdEx]
|
||
|
|
iNdEx++
|
||
|
|
wire |= uint64(b&0x7F) << shift
|
||
|
|
if b < 0x80 {
|
||
|
|
break
|
||
|
|
}
|
||
|
|
}
|
||
|
|
fieldNum := int32(wire >> 3)
|
||
|
|
wireType := int(wire & 0x7)
|
||
|
|
if wireType == 4 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventOrderCreated: wiretype end group for non-group")
|
||
|
|
}
|
||
|
|
if fieldNum <= 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventOrderCreated: 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 Did", wireType)
|
||
|
|
}
|
||
|
|
var stringLen uint64
|
||
|
|
for shift := uint(0); ; shift += 7 {
|
||
|
|
if shift >= 64 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
|
||
|
|
}
|
||
|
|
if iNdEx >= l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
b := dAtA[iNdEx]
|
||
|
|
iNdEx++
|
||
|
|
stringLen |= uint64(b&0x7F) << shift
|
||
|
|
if b < 0x80 {
|
||
|
|
break
|
||
|
|
}
|
||
|
|
}
|
||
|
|
intStringLen := int(stringLen)
|
||
|
|
if intStringLen < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
postIndex := iNdEx + intStringLen
|
||
|
|
if postIndex < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
if postIndex > l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
x.Did = 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 ConnectionId", wireType)
|
||
|
|
}
|
||
|
|
var stringLen uint64
|
||
|
|
for shift := uint(0); ; shift += 7 {
|
||
|
|
if shift >= 64 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
|
||
|
|
}
|
||
|
|
if iNdEx >= l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
b := dAtA[iNdEx]
|
||
|
|
iNdEx++
|
||
|
|
stringLen |= uint64(b&0x7F) << shift
|
||
|
|
if b < 0x80 {
|
||
|
|
break
|
||
|
|
}
|
||
|
|
}
|
||
|
|
intStringLen := int(stringLen)
|
||
|
|
if intStringLen < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
postIndex := iNdEx + intStringLen
|
||
|
|
if postIndex < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
if postIndex > l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
x.ConnectionId = 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 OrderId", wireType)
|
||
|
|
}
|
||
|
|
var stringLen uint64
|
||
|
|
for shift := uint(0); ; shift += 7 {
|
||
|
|
if shift >= 64 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
|
||
|
|
}
|
||
|
|
if iNdEx >= l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
b := dAtA[iNdEx]
|
||
|
|
iNdEx++
|
||
|
|
stringLen |= uint64(b&0x7F) << shift
|
||
|
|
if b < 0x80 {
|
||
|
|
break
|
||
|
|
}
|
||
|
|
}
|
||
|
|
intStringLen := int(stringLen)
|
||
|
|
if intStringLen < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
postIndex := iNdEx + intStringLen
|
||
|
|
if postIndex < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
if postIndex > l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
x.OrderId = string(dAtA[iNdEx:postIndex])
|
||
|
|
iNdEx = postIndex
|
||
|
|
case 4:
|
||
|
|
if wireType != 2 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SellDenom", wireType)
|
||
|
|
}
|
||
|
|
var stringLen uint64
|
||
|
|
for shift := uint(0); ; shift += 7 {
|
||
|
|
if shift >= 64 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
|
||
|
|
}
|
||
|
|
if iNdEx >= l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
b := dAtA[iNdEx]
|
||
|
|
iNdEx++
|
||
|
|
stringLen |= uint64(b&0x7F) << shift
|
||
|
|
if b < 0x80 {
|
||
|
|
break
|
||
|
|
}
|
||
|
|
}
|
||
|
|
intStringLen := int(stringLen)
|
||
|
|
if intStringLen < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
postIndex := iNdEx + intStringLen
|
||
|
|
if postIndex < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
if postIndex > l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
x.SellDenom = string(dAtA[iNdEx:postIndex])
|
||
|
|
iNdEx = postIndex
|
||
|
|
case 5:
|
||
|
|
if wireType != 2 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BuyDenom", wireType)
|
||
|
|
}
|
||
|
|
var stringLen uint64
|
||
|
|
for shift := uint(0); ; shift += 7 {
|
||
|
|
if shift >= 64 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
|
||
|
|
}
|
||
|
|
if iNdEx >= l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
b := dAtA[iNdEx]
|
||
|
|
iNdEx++
|
||
|
|
stringLen |= uint64(b&0x7F) << shift
|
||
|
|
if b < 0x80 {
|
||
|
|
break
|
||
|
|
}
|
||
|
|
}
|
||
|
|
intStringLen := int(stringLen)
|
||
|
|
if intStringLen < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
postIndex := iNdEx + intStringLen
|
||
|
|
if postIndex < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
if postIndex > l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
x.BuyDenom = string(dAtA[iNdEx:postIndex])
|
||
|
|
iNdEx = postIndex
|
||
|
|
case 6:
|
||
|
|
if wireType != 2 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType)
|
||
|
|
}
|
||
|
|
var stringLen uint64
|
||
|
|
for shift := uint(0); ; shift += 7 {
|
||
|
|
if shift >= 64 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
|
||
|
|
}
|
||
|
|
if iNdEx >= l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
b := dAtA[iNdEx]
|
||
|
|
iNdEx++
|
||
|
|
stringLen |= uint64(b&0x7F) << shift
|
||
|
|
if b < 0x80 {
|
||
|
|
break
|
||
|
|
}
|
||
|
|
}
|
||
|
|
intStringLen := int(stringLen)
|
||
|
|
if intStringLen < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
postIndex := iNdEx + intStringLen
|
||
|
|
if postIndex < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
if postIndex > l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
x.Amount = string(dAtA[iNdEx:postIndex])
|
||
|
|
iNdEx = postIndex
|
||
|
|
case 7:
|
||
|
|
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 8:
|
||
|
|
if wireType != 2 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TxHash", wireType)
|
||
|
|
}
|
||
|
|
var stringLen uint64
|
||
|
|
for shift := uint(0); ; shift += 7 {
|
||
|
|
if shift >= 64 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
|
||
|
|
}
|
||
|
|
if iNdEx >= l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
b := dAtA[iNdEx]
|
||
|
|
iNdEx++
|
||
|
|
stringLen |= uint64(b&0x7F) << shift
|
||
|
|
if b < 0x80 {
|
||
|
|
break
|
||
|
|
}
|
||
|
|
}
|
||
|
|
intStringLen := int(stringLen)
|
||
|
|
if intStringLen < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
postIndex := iNdEx + intStringLen
|
||
|
|
if postIndex < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
if postIndex > l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
x.TxHash = 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_EventOrderCancelled protoreflect.MessageDescriptor
|
||
|
|
fd_EventOrderCancelled_did protoreflect.FieldDescriptor
|
||
|
|
fd_EventOrderCancelled_connection_id protoreflect.FieldDescriptor
|
||
|
|
fd_EventOrderCancelled_order_id protoreflect.FieldDescriptor
|
||
|
|
fd_EventOrderCancelled_tx_hash protoreflect.FieldDescriptor
|
||
|
|
)
|
||
|
|
|
||
|
|
func init() {
|
||
|
|
file_dex_v1_events_proto_init()
|
||
|
|
md_EventOrderCancelled = File_dex_v1_events_proto.Messages().ByName("EventOrderCancelled")
|
||
|
|
fd_EventOrderCancelled_did = md_EventOrderCancelled.Fields().ByName("did")
|
||
|
|
fd_EventOrderCancelled_connection_id = md_EventOrderCancelled.Fields().ByName("connection_id")
|
||
|
|
fd_EventOrderCancelled_order_id = md_EventOrderCancelled.Fields().ByName("order_id")
|
||
|
|
fd_EventOrderCancelled_tx_hash = md_EventOrderCancelled.Fields().ByName("tx_hash")
|
||
|
|
}
|
||
|
|
|
||
|
|
var _ protoreflect.Message = (*fastReflection_EventOrderCancelled)(nil)
|
||
|
|
|
||
|
|
type fastReflection_EventOrderCancelled EventOrderCancelled
|
||
|
|
|
||
|
|
func (x *EventOrderCancelled) ProtoReflect() protoreflect.Message {
|
||
|
|
return (*fastReflection_EventOrderCancelled)(x)
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *EventOrderCancelled) slowProtoReflect() protoreflect.Message {
|
||
|
|
mi := &file_dex_v1_events_proto_msgTypes[5]
|
||
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
||
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
|
if ms.LoadMessageInfo() == nil {
|
||
|
|
ms.StoreMessageInfo(mi)
|
||
|
|
}
|
||
|
|
return ms
|
||
|
|
}
|
||
|
|
return mi.MessageOf(x)
|
||
|
|
}
|
||
|
|
|
||
|
|
var _fastReflection_EventOrderCancelled_messageType fastReflection_EventOrderCancelled_messageType
|
||
|
|
var _ protoreflect.MessageType = fastReflection_EventOrderCancelled_messageType{}
|
||
|
|
|
||
|
|
type fastReflection_EventOrderCancelled_messageType struct{}
|
||
|
|
|
||
|
|
func (x fastReflection_EventOrderCancelled_messageType) Zero() protoreflect.Message {
|
||
|
|
return (*fastReflection_EventOrderCancelled)(nil)
|
||
|
|
}
|
||
|
|
func (x fastReflection_EventOrderCancelled_messageType) New() protoreflect.Message {
|
||
|
|
return new(fastReflection_EventOrderCancelled)
|
||
|
|
}
|
||
|
|
func (x fastReflection_EventOrderCancelled_messageType) Descriptor() protoreflect.MessageDescriptor {
|
||
|
|
return md_EventOrderCancelled
|
||
|
|
}
|
||
|
|
|
||
|
|
// Descriptor returns message descriptor, which contains only the protobuf
|
||
|
|
// type information for the message.
|
||
|
|
func (x *fastReflection_EventOrderCancelled) Descriptor() protoreflect.MessageDescriptor {
|
||
|
|
return md_EventOrderCancelled
|
||
|
|
}
|
||
|
|
|
||
|
|
// Type returns the message type, which encapsulates both Go and protobuf
|
||
|
|
// type information. If the Go type information is not needed,
|
||
|
|
// it is recommended that the message descriptor be used instead.
|
||
|
|
func (x *fastReflection_EventOrderCancelled) Type() protoreflect.MessageType {
|
||
|
|
return _fastReflection_EventOrderCancelled_messageType
|
||
|
|
}
|
||
|
|
|
||
|
|
// New returns a newly allocated and mutable empty message.
|
||
|
|
func (x *fastReflection_EventOrderCancelled) New() protoreflect.Message {
|
||
|
|
return new(fastReflection_EventOrderCancelled)
|
||
|
|
}
|
||
|
|
|
||
|
|
// Interface unwraps the message reflection interface and
|
||
|
|
// returns the underlying ProtoMessage interface.
|
||
|
|
func (x *fastReflection_EventOrderCancelled) Interface() protoreflect.ProtoMessage {
|
||
|
|
return (*EventOrderCancelled)(x)
|
||
|
|
}
|
||
|
|
|
||
|
|
// Range iterates over every populated field in an undefined order,
|
||
|
|
// calling f for each field descriptor and value encountered.
|
||
|
|
// Range returns immediately if f returns false.
|
||
|
|
// While iterating, mutating operations may only be performed
|
||
|
|
// on the current field descriptor.
|
||
|
|
func (x *fastReflection_EventOrderCancelled) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
|
||
|
|
if x.Did != "" {
|
||
|
|
value := protoreflect.ValueOfString(x.Did)
|
||
|
|
if !f(fd_EventOrderCancelled_did, value) {
|
||
|
|
return
|
||
|
|
}
|
||
|
|
}
|
||
|
|
if x.ConnectionId != "" {
|
||
|
|
value := protoreflect.ValueOfString(x.ConnectionId)
|
||
|
|
if !f(fd_EventOrderCancelled_connection_id, value) {
|
||
|
|
return
|
||
|
|
}
|
||
|
|
}
|
||
|
|
if x.OrderId != "" {
|
||
|
|
value := protoreflect.ValueOfString(x.OrderId)
|
||
|
|
if !f(fd_EventOrderCancelled_order_id, value) {
|
||
|
|
return
|
||
|
|
}
|
||
|
|
}
|
||
|
|
if x.TxHash != "" {
|
||
|
|
value := protoreflect.ValueOfString(x.TxHash)
|
||
|
|
if !f(fd_EventOrderCancelled_tx_hash, value) {
|
||
|
|
return
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// Has reports whether a field is populated.
|
||
|
|
//
|
||
|
|
// Some fields have the property of nullability where it is possible to
|
||
|
|
// distinguish between the default value of a field and whether the field
|
||
|
|
// was explicitly populated with the default value. Singular message fields,
|
||
|
|
// member fields of a oneof, and proto2 scalar fields are nullable. Such
|
||
|
|
// fields are populated only if explicitly set.
|
||
|
|
//
|
||
|
|
// In other cases (aside from the nullable cases above),
|
||
|
|
// a proto3 scalar field is populated if it contains a non-zero value, and
|
||
|
|
// a repeated field is populated if it is non-empty.
|
||
|
|
func (x *fastReflection_EventOrderCancelled) Has(fd protoreflect.FieldDescriptor) bool {
|
||
|
|
switch fd.FullName() {
|
||
|
|
case "dex.v1.EventOrderCancelled.did":
|
||
|
|
return x.Did != ""
|
||
|
|
case "dex.v1.EventOrderCancelled.connection_id":
|
||
|
|
return x.ConnectionId != ""
|
||
|
|
case "dex.v1.EventOrderCancelled.order_id":
|
||
|
|
return x.OrderId != ""
|
||
|
|
case "dex.v1.EventOrderCancelled.tx_hash":
|
||
|
|
return x.TxHash != ""
|
||
|
|
default:
|
||
|
|
if fd.IsExtension() {
|
||
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: dex.v1.EventOrderCancelled"))
|
||
|
|
}
|
||
|
|
panic(fmt.Errorf("message dex.v1.EventOrderCancelled does not contain field %s", fd.FullName()))
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// Clear clears the field such that a subsequent Has call reports false.
|
||
|
|
//
|
||
|
|
// Clearing an extension field clears both the extension type and value
|
||
|
|
// associated with the given field number.
|
||
|
|
//
|
||
|
|
// Clear is a mutating operation and unsafe for concurrent use.
|
||
|
|
func (x *fastReflection_EventOrderCancelled) Clear(fd protoreflect.FieldDescriptor) {
|
||
|
|
switch fd.FullName() {
|
||
|
|
case "dex.v1.EventOrderCancelled.did":
|
||
|
|
x.Did = ""
|
||
|
|
case "dex.v1.EventOrderCancelled.connection_id":
|
||
|
|
x.ConnectionId = ""
|
||
|
|
case "dex.v1.EventOrderCancelled.order_id":
|
||
|
|
x.OrderId = ""
|
||
|
|
case "dex.v1.EventOrderCancelled.tx_hash":
|
||
|
|
x.TxHash = ""
|
||
|
|
default:
|
||
|
|
if fd.IsExtension() {
|
||
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: dex.v1.EventOrderCancelled"))
|
||
|
|
}
|
||
|
|
panic(fmt.Errorf("message dex.v1.EventOrderCancelled does not contain field %s", fd.FullName()))
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// Get retrieves the value for a field.
|
||
|
|
//
|
||
|
|
// For unpopulated scalars, it returns the default value, where
|
||
|
|
// the default value of a bytes scalar is guaranteed to be a copy.
|
||
|
|
// For unpopulated composite types, it returns an empty, read-only view
|
||
|
|
// of the value; to obtain a mutable reference, use Mutable.
|
||
|
|
func (x *fastReflection_EventOrderCancelled) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
|
switch descriptor.FullName() {
|
||
|
|
case "dex.v1.EventOrderCancelled.did":
|
||
|
|
value := x.Did
|
||
|
|
return protoreflect.ValueOfString(value)
|
||
|
|
case "dex.v1.EventOrderCancelled.connection_id":
|
||
|
|
value := x.ConnectionId
|
||
|
|
return protoreflect.ValueOfString(value)
|
||
|
|
case "dex.v1.EventOrderCancelled.order_id":
|
||
|
|
value := x.OrderId
|
||
|
|
return protoreflect.ValueOfString(value)
|
||
|
|
case "dex.v1.EventOrderCancelled.tx_hash":
|
||
|
|
value := x.TxHash
|
||
|
|
return protoreflect.ValueOfString(value)
|
||
|
|
default:
|
||
|
|
if descriptor.IsExtension() {
|
||
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: dex.v1.EventOrderCancelled"))
|
||
|
|
}
|
||
|
|
panic(fmt.Errorf("message dex.v1.EventOrderCancelled does not contain field %s", descriptor.FullName()))
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// Set stores the value for a field.
|
||
|
|
//
|
||
|
|
// For a field belonging to a oneof, it implicitly clears any other field
|
||
|
|
// that may be currently set within the same oneof.
|
||
|
|
// For extension fields, it implicitly stores the provided ExtensionType.
|
||
|
|
// When setting a composite type, it is unspecified whether the stored value
|
||
|
|
// aliases the source's memory in any way. If the composite value is an
|
||
|
|
// empty, read-only value, then it panics.
|
||
|
|
//
|
||
|
|
// Set is a mutating operation and unsafe for concurrent use.
|
||
|
|
func (x *fastReflection_EventOrderCancelled) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
||
|
|
switch fd.FullName() {
|
||
|
|
case "dex.v1.EventOrderCancelled.did":
|
||
|
|
x.Did = value.Interface().(string)
|
||
|
|
case "dex.v1.EventOrderCancelled.connection_id":
|
||
|
|
x.ConnectionId = value.Interface().(string)
|
||
|
|
case "dex.v1.EventOrderCancelled.order_id":
|
||
|
|
x.OrderId = value.Interface().(string)
|
||
|
|
case "dex.v1.EventOrderCancelled.tx_hash":
|
||
|
|
x.TxHash = value.Interface().(string)
|
||
|
|
default:
|
||
|
|
if fd.IsExtension() {
|
||
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: dex.v1.EventOrderCancelled"))
|
||
|
|
}
|
||
|
|
panic(fmt.Errorf("message dex.v1.EventOrderCancelled does not contain field %s", fd.FullName()))
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// Mutable returns a mutable reference to a composite type.
|
||
|
|
//
|
||
|
|
// If the field is unpopulated, it may allocate a composite value.
|
||
|
|
// For a field belonging to a oneof, it implicitly clears any other field
|
||
|
|
// that may be currently set within the same oneof.
|
||
|
|
// For extension fields, it implicitly stores the provided ExtensionType
|
||
|
|
// if not already stored.
|
||
|
|
// It panics if the field does not contain a composite type.
|
||
|
|
//
|
||
|
|
// Mutable is a mutating operation and unsafe for concurrent use.
|
||
|
|
func (x *fastReflection_EventOrderCancelled) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
|
switch fd.FullName() {
|
||
|
|
case "dex.v1.EventOrderCancelled.did":
|
||
|
|
panic(fmt.Errorf("field did of message dex.v1.EventOrderCancelled is not mutable"))
|
||
|
|
case "dex.v1.EventOrderCancelled.connection_id":
|
||
|
|
panic(fmt.Errorf("field connection_id of message dex.v1.EventOrderCancelled is not mutable"))
|
||
|
|
case "dex.v1.EventOrderCancelled.order_id":
|
||
|
|
panic(fmt.Errorf("field order_id of message dex.v1.EventOrderCancelled is not mutable"))
|
||
|
|
case "dex.v1.EventOrderCancelled.tx_hash":
|
||
|
|
panic(fmt.Errorf("field tx_hash of message dex.v1.EventOrderCancelled is not mutable"))
|
||
|
|
default:
|
||
|
|
if fd.IsExtension() {
|
||
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: dex.v1.EventOrderCancelled"))
|
||
|
|
}
|
||
|
|
panic(fmt.Errorf("message dex.v1.EventOrderCancelled does not contain field %s", fd.FullName()))
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// NewField returns a new value that is assignable to the field
|
||
|
|
// for the given descriptor. For scalars, this returns the default value.
|
||
|
|
// For lists, maps, and messages, this returns a new, empty, mutable value.
|
||
|
|
func (x *fastReflection_EventOrderCancelled) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
|
switch fd.FullName() {
|
||
|
|
case "dex.v1.EventOrderCancelled.did":
|
||
|
|
return protoreflect.ValueOfString("")
|
||
|
|
case "dex.v1.EventOrderCancelled.connection_id":
|
||
|
|
return protoreflect.ValueOfString("")
|
||
|
|
case "dex.v1.EventOrderCancelled.order_id":
|
||
|
|
return protoreflect.ValueOfString("")
|
||
|
|
case "dex.v1.EventOrderCancelled.tx_hash":
|
||
|
|
return protoreflect.ValueOfString("")
|
||
|
|
default:
|
||
|
|
if fd.IsExtension() {
|
||
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: dex.v1.EventOrderCancelled"))
|
||
|
|
}
|
||
|
|
panic(fmt.Errorf("message dex.v1.EventOrderCancelled does not contain field %s", fd.FullName()))
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// WhichOneof reports which field within the oneof is populated,
|
||
|
|
// returning nil if none are populated.
|
||
|
|
// It panics if the oneof descriptor does not belong to this message.
|
||
|
|
func (x *fastReflection_EventOrderCancelled) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
||
|
|
switch d.FullName() {
|
||
|
|
default:
|
||
|
|
panic(fmt.Errorf("%s is not a oneof field in dex.v1.EventOrderCancelled", d.FullName()))
|
||
|
|
}
|
||
|
|
panic("unreachable")
|
||
|
|
}
|
||
|
|
|
||
|
|
// GetUnknown retrieves the entire list of unknown fields.
|
||
|
|
// The caller may only mutate the contents of the RawFields
|
||
|
|
// if the mutated bytes are stored back into the message with SetUnknown.
|
||
|
|
func (x *fastReflection_EventOrderCancelled) GetUnknown() protoreflect.RawFields {
|
||
|
|
return x.unknownFields
|
||
|
|
}
|
||
|
|
|
||
|
|
// SetUnknown stores an entire list of unknown fields.
|
||
|
|
// The raw fields must be syntactically valid according to the wire format.
|
||
|
|
// An implementation may panic if this is not the case.
|
||
|
|
// Once stored, the caller must not mutate the content of the RawFields.
|
||
|
|
// An empty RawFields may be passed to clear the fields.
|
||
|
|
//
|
||
|
|
// SetUnknown is a mutating operation and unsafe for concurrent use.
|
||
|
|
func (x *fastReflection_EventOrderCancelled) SetUnknown(fields protoreflect.RawFields) {
|
||
|
|
x.unknownFields = fields
|
||
|
|
}
|
||
|
|
|
||
|
|
// IsValid reports whether the message is valid.
|
||
|
|
//
|
||
|
|
// An invalid message is an empty, read-only value.
|
||
|
|
//
|
||
|
|
// An invalid message often corresponds to a nil pointer of the concrete
|
||
|
|
// message type, but the details are implementation dependent.
|
||
|
|
// Validity is not part of the protobuf data model, and may not
|
||
|
|
// be preserved in marshaling or other operations.
|
||
|
|
func (x *fastReflection_EventOrderCancelled) IsValid() bool {
|
||
|
|
return x != nil
|
||
|
|
}
|
||
|
|
|
||
|
|
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
|
||
|
|
// This method may return nil.
|
||
|
|
//
|
||
|
|
// The returned methods type is identical to
|
||
|
|
// "google.golang.org/protobuf/runtime/protoiface".Methods.
|
||
|
|
// Consult the protoiface package documentation for details.
|
||
|
|
func (x *fastReflection_EventOrderCancelled) ProtoMethods() *protoiface.Methods {
|
||
|
|
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
|
||
|
|
x := input.Message.Interface().(*EventOrderCancelled)
|
||
|
|
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.Did)
|
||
|
|
if l > 0 {
|
||
|
|
n += 1 + l + runtime.Sov(uint64(l))
|
||
|
|
}
|
||
|
|
l = len(x.ConnectionId)
|
||
|
|
if l > 0 {
|
||
|
|
n += 1 + l + runtime.Sov(uint64(l))
|
||
|
|
}
|
||
|
|
l = len(x.OrderId)
|
||
|
|
if l > 0 {
|
||
|
|
n += 1 + l + runtime.Sov(uint64(l))
|
||
|
|
}
|
||
|
|
l = len(x.TxHash)
|
||
|
|
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().(*EventOrderCancelled)
|
||
|
|
if x == nil {
|
||
|
|
return protoiface.MarshalOutput{
|
||
|
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
||
|
|
Buf: input.Buf,
|
||
|
|
}, nil
|
||
|
|
}
|
||
|
|
options := runtime.MarshalInputToOptions(input)
|
||
|
|
_ = options
|
||
|
|
size := options.Size(x)
|
||
|
|
dAtA := make([]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.TxHash) > 0 {
|
||
|
|
i -= len(x.TxHash)
|
||
|
|
copy(dAtA[i:], x.TxHash)
|
||
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TxHash)))
|
||
|
|
i--
|
||
|
|
dAtA[i] = 0x22
|
||
|
|
}
|
||
|
|
if len(x.OrderId) > 0 {
|
||
|
|
i -= len(x.OrderId)
|
||
|
|
copy(dAtA[i:], x.OrderId)
|
||
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.OrderId)))
|
||
|
|
i--
|
||
|
|
dAtA[i] = 0x1a
|
||
|
|
}
|
||
|
|
if len(x.ConnectionId) > 0 {
|
||
|
|
i -= len(x.ConnectionId)
|
||
|
|
copy(dAtA[i:], x.ConnectionId)
|
||
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ConnectionId)))
|
||
|
|
i--
|
||
|
|
dAtA[i] = 0x12
|
||
|
|
}
|
||
|
|
if len(x.Did) > 0 {
|
||
|
|
i -= len(x.Did)
|
||
|
|
copy(dAtA[i:], x.Did)
|
||
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Did)))
|
||
|
|
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().(*EventOrderCancelled)
|
||
|
|
if x == nil {
|
||
|
|
return protoiface.UnmarshalOutput{
|
||
|
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
||
|
|
Flags: input.Flags,
|
||
|
|
}, nil
|
||
|
|
}
|
||
|
|
options := runtime.UnmarshalInputToOptions(input)
|
||
|
|
_ = options
|
||
|
|
dAtA := input.Buf
|
||
|
|
l := len(dAtA)
|
||
|
|
iNdEx := 0
|
||
|
|
for iNdEx < l {
|
||
|
|
preIndex := iNdEx
|
||
|
|
var wire uint64
|
||
|
|
for shift := uint(0); ; shift += 7 {
|
||
|
|
if shift >= 64 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
|
||
|
|
}
|
||
|
|
if iNdEx >= l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
b := dAtA[iNdEx]
|
||
|
|
iNdEx++
|
||
|
|
wire |= uint64(b&0x7F) << shift
|
||
|
|
if b < 0x80 {
|
||
|
|
break
|
||
|
|
}
|
||
|
|
}
|
||
|
|
fieldNum := int32(wire >> 3)
|
||
|
|
wireType := int(wire & 0x7)
|
||
|
|
if wireType == 4 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventOrderCancelled: wiretype end group for non-group")
|
||
|
|
}
|
||
|
|
if fieldNum <= 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventOrderCancelled: 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 Did", wireType)
|
||
|
|
}
|
||
|
|
var stringLen uint64
|
||
|
|
for shift := uint(0); ; shift += 7 {
|
||
|
|
if shift >= 64 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
|
||
|
|
}
|
||
|
|
if iNdEx >= l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
b := dAtA[iNdEx]
|
||
|
|
iNdEx++
|
||
|
|
stringLen |= uint64(b&0x7F) << shift
|
||
|
|
if b < 0x80 {
|
||
|
|
break
|
||
|
|
}
|
||
|
|
}
|
||
|
|
intStringLen := int(stringLen)
|
||
|
|
if intStringLen < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
postIndex := iNdEx + intStringLen
|
||
|
|
if postIndex < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
if postIndex > l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
x.Did = 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 ConnectionId", wireType)
|
||
|
|
}
|
||
|
|
var stringLen uint64
|
||
|
|
for shift := uint(0); ; shift += 7 {
|
||
|
|
if shift >= 64 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
|
||
|
|
}
|
||
|
|
if iNdEx >= l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
b := dAtA[iNdEx]
|
||
|
|
iNdEx++
|
||
|
|
stringLen |= uint64(b&0x7F) << shift
|
||
|
|
if b < 0x80 {
|
||
|
|
break
|
||
|
|
}
|
||
|
|
}
|
||
|
|
intStringLen := int(stringLen)
|
||
|
|
if intStringLen < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
postIndex := iNdEx + intStringLen
|
||
|
|
if postIndex < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
if postIndex > l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
x.ConnectionId = 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 OrderId", wireType)
|
||
|
|
}
|
||
|
|
var stringLen uint64
|
||
|
|
for shift := uint(0); ; shift += 7 {
|
||
|
|
if shift >= 64 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
|
||
|
|
}
|
||
|
|
if iNdEx >= l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
b := dAtA[iNdEx]
|
||
|
|
iNdEx++
|
||
|
|
stringLen |= uint64(b&0x7F) << shift
|
||
|
|
if b < 0x80 {
|
||
|
|
break
|
||
|
|
}
|
||
|
|
}
|
||
|
|
intStringLen := int(stringLen)
|
||
|
|
if intStringLen < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
postIndex := iNdEx + intStringLen
|
||
|
|
if postIndex < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
if postIndex > l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
x.OrderId = string(dAtA[iNdEx:postIndex])
|
||
|
|
iNdEx = postIndex
|
||
|
|
case 4:
|
||
|
|
if wireType != 2 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TxHash", wireType)
|
||
|
|
}
|
||
|
|
var stringLen uint64
|
||
|
|
for shift := uint(0); ; shift += 7 {
|
||
|
|
if shift >= 64 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
|
||
|
|
}
|
||
|
|
if iNdEx >= l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
b := dAtA[iNdEx]
|
||
|
|
iNdEx++
|
||
|
|
stringLen |= uint64(b&0x7F) << shift
|
||
|
|
if b < 0x80 {
|
||
|
|
break
|
||
|
|
}
|
||
|
|
}
|
||
|
|
intStringLen := int(stringLen)
|
||
|
|
if intStringLen < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
postIndex := iNdEx + intStringLen
|
||
|
|
if postIndex < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
if postIndex > l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
x.TxHash = 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_EventOrderFilled protoreflect.MessageDescriptor
|
||
|
|
fd_EventOrderFilled_did protoreflect.FieldDescriptor
|
||
|
|
fd_EventOrderFilled_connection_id protoreflect.FieldDescriptor
|
||
|
|
fd_EventOrderFilled_order_id protoreflect.FieldDescriptor
|
||
|
|
fd_EventOrderFilled_fill_amount protoreflect.FieldDescriptor
|
||
|
|
fd_EventOrderFilled_fill_price protoreflect.FieldDescriptor
|
||
|
|
fd_EventOrderFilled_tx_hash protoreflect.FieldDescriptor
|
||
|
|
)
|
||
|
|
|
||
|
|
func init() {
|
||
|
|
file_dex_v1_events_proto_init()
|
||
|
|
md_EventOrderFilled = File_dex_v1_events_proto.Messages().ByName("EventOrderFilled")
|
||
|
|
fd_EventOrderFilled_did = md_EventOrderFilled.Fields().ByName("did")
|
||
|
|
fd_EventOrderFilled_connection_id = md_EventOrderFilled.Fields().ByName("connection_id")
|
||
|
|
fd_EventOrderFilled_order_id = md_EventOrderFilled.Fields().ByName("order_id")
|
||
|
|
fd_EventOrderFilled_fill_amount = md_EventOrderFilled.Fields().ByName("fill_amount")
|
||
|
|
fd_EventOrderFilled_fill_price = md_EventOrderFilled.Fields().ByName("fill_price")
|
||
|
|
fd_EventOrderFilled_tx_hash = md_EventOrderFilled.Fields().ByName("tx_hash")
|
||
|
|
}
|
||
|
|
|
||
|
|
var _ protoreflect.Message = (*fastReflection_EventOrderFilled)(nil)
|
||
|
|
|
||
|
|
type fastReflection_EventOrderFilled EventOrderFilled
|
||
|
|
|
||
|
|
func (x *EventOrderFilled) ProtoReflect() protoreflect.Message {
|
||
|
|
return (*fastReflection_EventOrderFilled)(x)
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *EventOrderFilled) slowProtoReflect() protoreflect.Message {
|
||
|
|
mi := &file_dex_v1_events_proto_msgTypes[6]
|
||
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
||
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
|
if ms.LoadMessageInfo() == nil {
|
||
|
|
ms.StoreMessageInfo(mi)
|
||
|
|
}
|
||
|
|
return ms
|
||
|
|
}
|
||
|
|
return mi.MessageOf(x)
|
||
|
|
}
|
||
|
|
|
||
|
|
var _fastReflection_EventOrderFilled_messageType fastReflection_EventOrderFilled_messageType
|
||
|
|
var _ protoreflect.MessageType = fastReflection_EventOrderFilled_messageType{}
|
||
|
|
|
||
|
|
type fastReflection_EventOrderFilled_messageType struct{}
|
||
|
|
|
||
|
|
func (x fastReflection_EventOrderFilled_messageType) Zero() protoreflect.Message {
|
||
|
|
return (*fastReflection_EventOrderFilled)(nil)
|
||
|
|
}
|
||
|
|
func (x fastReflection_EventOrderFilled_messageType) New() protoreflect.Message {
|
||
|
|
return new(fastReflection_EventOrderFilled)
|
||
|
|
}
|
||
|
|
func (x fastReflection_EventOrderFilled_messageType) Descriptor() protoreflect.MessageDescriptor {
|
||
|
|
return md_EventOrderFilled
|
||
|
|
}
|
||
|
|
|
||
|
|
// Descriptor returns message descriptor, which contains only the protobuf
|
||
|
|
// type information for the message.
|
||
|
|
func (x *fastReflection_EventOrderFilled) Descriptor() protoreflect.MessageDescriptor {
|
||
|
|
return md_EventOrderFilled
|
||
|
|
}
|
||
|
|
|
||
|
|
// Type returns the message type, which encapsulates both Go and protobuf
|
||
|
|
// type information. If the Go type information is not needed,
|
||
|
|
// it is recommended that the message descriptor be used instead.
|
||
|
|
func (x *fastReflection_EventOrderFilled) Type() protoreflect.MessageType {
|
||
|
|
return _fastReflection_EventOrderFilled_messageType
|
||
|
|
}
|
||
|
|
|
||
|
|
// New returns a newly allocated and mutable empty message.
|
||
|
|
func (x *fastReflection_EventOrderFilled) New() protoreflect.Message {
|
||
|
|
return new(fastReflection_EventOrderFilled)
|
||
|
|
}
|
||
|
|
|
||
|
|
// Interface unwraps the message reflection interface and
|
||
|
|
// returns the underlying ProtoMessage interface.
|
||
|
|
func (x *fastReflection_EventOrderFilled) Interface() protoreflect.ProtoMessage {
|
||
|
|
return (*EventOrderFilled)(x)
|
||
|
|
}
|
||
|
|
|
||
|
|
// Range iterates over every populated field in an undefined order,
|
||
|
|
// calling f for each field descriptor and value encountered.
|
||
|
|
// Range returns immediately if f returns false.
|
||
|
|
// While iterating, mutating operations may only be performed
|
||
|
|
// on the current field descriptor.
|
||
|
|
func (x *fastReflection_EventOrderFilled) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
|
||
|
|
if x.Did != "" {
|
||
|
|
value := protoreflect.ValueOfString(x.Did)
|
||
|
|
if !f(fd_EventOrderFilled_did, value) {
|
||
|
|
return
|
||
|
|
}
|
||
|
|
}
|
||
|
|
if x.ConnectionId != "" {
|
||
|
|
value := protoreflect.ValueOfString(x.ConnectionId)
|
||
|
|
if !f(fd_EventOrderFilled_connection_id, value) {
|
||
|
|
return
|
||
|
|
}
|
||
|
|
}
|
||
|
|
if x.OrderId != "" {
|
||
|
|
value := protoreflect.ValueOfString(x.OrderId)
|
||
|
|
if !f(fd_EventOrderFilled_order_id, value) {
|
||
|
|
return
|
||
|
|
}
|
||
|
|
}
|
||
|
|
if x.FillAmount != "" {
|
||
|
|
value := protoreflect.ValueOfString(x.FillAmount)
|
||
|
|
if !f(fd_EventOrderFilled_fill_amount, value) {
|
||
|
|
return
|
||
|
|
}
|
||
|
|
}
|
||
|
|
if x.FillPrice != "" {
|
||
|
|
value := protoreflect.ValueOfString(x.FillPrice)
|
||
|
|
if !f(fd_EventOrderFilled_fill_price, value) {
|
||
|
|
return
|
||
|
|
}
|
||
|
|
}
|
||
|
|
if x.TxHash != "" {
|
||
|
|
value := protoreflect.ValueOfString(x.TxHash)
|
||
|
|
if !f(fd_EventOrderFilled_tx_hash, value) {
|
||
|
|
return
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// Has reports whether a field is populated.
|
||
|
|
//
|
||
|
|
// Some fields have the property of nullability where it is possible to
|
||
|
|
// distinguish between the default value of a field and whether the field
|
||
|
|
// was explicitly populated with the default value. Singular message fields,
|
||
|
|
// member fields of a oneof, and proto2 scalar fields are nullable. Such
|
||
|
|
// fields are populated only if explicitly set.
|
||
|
|
//
|
||
|
|
// In other cases (aside from the nullable cases above),
|
||
|
|
// a proto3 scalar field is populated if it contains a non-zero value, and
|
||
|
|
// a repeated field is populated if it is non-empty.
|
||
|
|
func (x *fastReflection_EventOrderFilled) Has(fd protoreflect.FieldDescriptor) bool {
|
||
|
|
switch fd.FullName() {
|
||
|
|
case "dex.v1.EventOrderFilled.did":
|
||
|
|
return x.Did != ""
|
||
|
|
case "dex.v1.EventOrderFilled.connection_id":
|
||
|
|
return x.ConnectionId != ""
|
||
|
|
case "dex.v1.EventOrderFilled.order_id":
|
||
|
|
return x.OrderId != ""
|
||
|
|
case "dex.v1.EventOrderFilled.fill_amount":
|
||
|
|
return x.FillAmount != ""
|
||
|
|
case "dex.v1.EventOrderFilled.fill_price":
|
||
|
|
return x.FillPrice != ""
|
||
|
|
case "dex.v1.EventOrderFilled.tx_hash":
|
||
|
|
return x.TxHash != ""
|
||
|
|
default:
|
||
|
|
if fd.IsExtension() {
|
||
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: dex.v1.EventOrderFilled"))
|
||
|
|
}
|
||
|
|
panic(fmt.Errorf("message dex.v1.EventOrderFilled does not contain field %s", fd.FullName()))
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// Clear clears the field such that a subsequent Has call reports false.
|
||
|
|
//
|
||
|
|
// Clearing an extension field clears both the extension type and value
|
||
|
|
// associated with the given field number.
|
||
|
|
//
|
||
|
|
// Clear is a mutating operation and unsafe for concurrent use.
|
||
|
|
func (x *fastReflection_EventOrderFilled) Clear(fd protoreflect.FieldDescriptor) {
|
||
|
|
switch fd.FullName() {
|
||
|
|
case "dex.v1.EventOrderFilled.did":
|
||
|
|
x.Did = ""
|
||
|
|
case "dex.v1.EventOrderFilled.connection_id":
|
||
|
|
x.ConnectionId = ""
|
||
|
|
case "dex.v1.EventOrderFilled.order_id":
|
||
|
|
x.OrderId = ""
|
||
|
|
case "dex.v1.EventOrderFilled.fill_amount":
|
||
|
|
x.FillAmount = ""
|
||
|
|
case "dex.v1.EventOrderFilled.fill_price":
|
||
|
|
x.FillPrice = ""
|
||
|
|
case "dex.v1.EventOrderFilled.tx_hash":
|
||
|
|
x.TxHash = ""
|
||
|
|
default:
|
||
|
|
if fd.IsExtension() {
|
||
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: dex.v1.EventOrderFilled"))
|
||
|
|
}
|
||
|
|
panic(fmt.Errorf("message dex.v1.EventOrderFilled does not contain field %s", fd.FullName()))
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// Get retrieves the value for a field.
|
||
|
|
//
|
||
|
|
// For unpopulated scalars, it returns the default value, where
|
||
|
|
// the default value of a bytes scalar is guaranteed to be a copy.
|
||
|
|
// For unpopulated composite types, it returns an empty, read-only view
|
||
|
|
// of the value; to obtain a mutable reference, use Mutable.
|
||
|
|
func (x *fastReflection_EventOrderFilled) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
|
switch descriptor.FullName() {
|
||
|
|
case "dex.v1.EventOrderFilled.did":
|
||
|
|
value := x.Did
|
||
|
|
return protoreflect.ValueOfString(value)
|
||
|
|
case "dex.v1.EventOrderFilled.connection_id":
|
||
|
|
value := x.ConnectionId
|
||
|
|
return protoreflect.ValueOfString(value)
|
||
|
|
case "dex.v1.EventOrderFilled.order_id":
|
||
|
|
value := x.OrderId
|
||
|
|
return protoreflect.ValueOfString(value)
|
||
|
|
case "dex.v1.EventOrderFilled.fill_amount":
|
||
|
|
value := x.FillAmount
|
||
|
|
return protoreflect.ValueOfString(value)
|
||
|
|
case "dex.v1.EventOrderFilled.fill_price":
|
||
|
|
value := x.FillPrice
|
||
|
|
return protoreflect.ValueOfString(value)
|
||
|
|
case "dex.v1.EventOrderFilled.tx_hash":
|
||
|
|
value := x.TxHash
|
||
|
|
return protoreflect.ValueOfString(value)
|
||
|
|
default:
|
||
|
|
if descriptor.IsExtension() {
|
||
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: dex.v1.EventOrderFilled"))
|
||
|
|
}
|
||
|
|
panic(fmt.Errorf("message dex.v1.EventOrderFilled does not contain field %s", descriptor.FullName()))
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// Set stores the value for a field.
|
||
|
|
//
|
||
|
|
// For a field belonging to a oneof, it implicitly clears any other field
|
||
|
|
// that may be currently set within the same oneof.
|
||
|
|
// For extension fields, it implicitly stores the provided ExtensionType.
|
||
|
|
// When setting a composite type, it is unspecified whether the stored value
|
||
|
|
// aliases the source's memory in any way. If the composite value is an
|
||
|
|
// empty, read-only value, then it panics.
|
||
|
|
//
|
||
|
|
// Set is a mutating operation and unsafe for concurrent use.
|
||
|
|
func (x *fastReflection_EventOrderFilled) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
||
|
|
switch fd.FullName() {
|
||
|
|
case "dex.v1.EventOrderFilled.did":
|
||
|
|
x.Did = value.Interface().(string)
|
||
|
|
case "dex.v1.EventOrderFilled.connection_id":
|
||
|
|
x.ConnectionId = value.Interface().(string)
|
||
|
|
case "dex.v1.EventOrderFilled.order_id":
|
||
|
|
x.OrderId = value.Interface().(string)
|
||
|
|
case "dex.v1.EventOrderFilled.fill_amount":
|
||
|
|
x.FillAmount = value.Interface().(string)
|
||
|
|
case "dex.v1.EventOrderFilled.fill_price":
|
||
|
|
x.FillPrice = value.Interface().(string)
|
||
|
|
case "dex.v1.EventOrderFilled.tx_hash":
|
||
|
|
x.TxHash = value.Interface().(string)
|
||
|
|
default:
|
||
|
|
if fd.IsExtension() {
|
||
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: dex.v1.EventOrderFilled"))
|
||
|
|
}
|
||
|
|
panic(fmt.Errorf("message dex.v1.EventOrderFilled does not contain field %s", fd.FullName()))
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// Mutable returns a mutable reference to a composite type.
|
||
|
|
//
|
||
|
|
// If the field is unpopulated, it may allocate a composite value.
|
||
|
|
// For a field belonging to a oneof, it implicitly clears any other field
|
||
|
|
// that may be currently set within the same oneof.
|
||
|
|
// For extension fields, it implicitly stores the provided ExtensionType
|
||
|
|
// if not already stored.
|
||
|
|
// It panics if the field does not contain a composite type.
|
||
|
|
//
|
||
|
|
// Mutable is a mutating operation and unsafe for concurrent use.
|
||
|
|
func (x *fastReflection_EventOrderFilled) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
|
switch fd.FullName() {
|
||
|
|
case "dex.v1.EventOrderFilled.did":
|
||
|
|
panic(fmt.Errorf("field did of message dex.v1.EventOrderFilled is not mutable"))
|
||
|
|
case "dex.v1.EventOrderFilled.connection_id":
|
||
|
|
panic(fmt.Errorf("field connection_id of message dex.v1.EventOrderFilled is not mutable"))
|
||
|
|
case "dex.v1.EventOrderFilled.order_id":
|
||
|
|
panic(fmt.Errorf("field order_id of message dex.v1.EventOrderFilled is not mutable"))
|
||
|
|
case "dex.v1.EventOrderFilled.fill_amount":
|
||
|
|
panic(fmt.Errorf("field fill_amount of message dex.v1.EventOrderFilled is not mutable"))
|
||
|
|
case "dex.v1.EventOrderFilled.fill_price":
|
||
|
|
panic(fmt.Errorf("field fill_price of message dex.v1.EventOrderFilled is not mutable"))
|
||
|
|
case "dex.v1.EventOrderFilled.tx_hash":
|
||
|
|
panic(fmt.Errorf("field tx_hash of message dex.v1.EventOrderFilled is not mutable"))
|
||
|
|
default:
|
||
|
|
if fd.IsExtension() {
|
||
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: dex.v1.EventOrderFilled"))
|
||
|
|
}
|
||
|
|
panic(fmt.Errorf("message dex.v1.EventOrderFilled does not contain field %s", fd.FullName()))
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// NewField returns a new value that is assignable to the field
|
||
|
|
// for the given descriptor. For scalars, this returns the default value.
|
||
|
|
// For lists, maps, and messages, this returns a new, empty, mutable value.
|
||
|
|
func (x *fastReflection_EventOrderFilled) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
|
switch fd.FullName() {
|
||
|
|
case "dex.v1.EventOrderFilled.did":
|
||
|
|
return protoreflect.ValueOfString("")
|
||
|
|
case "dex.v1.EventOrderFilled.connection_id":
|
||
|
|
return protoreflect.ValueOfString("")
|
||
|
|
case "dex.v1.EventOrderFilled.order_id":
|
||
|
|
return protoreflect.ValueOfString("")
|
||
|
|
case "dex.v1.EventOrderFilled.fill_amount":
|
||
|
|
return protoreflect.ValueOfString("")
|
||
|
|
case "dex.v1.EventOrderFilled.fill_price":
|
||
|
|
return protoreflect.ValueOfString("")
|
||
|
|
case "dex.v1.EventOrderFilled.tx_hash":
|
||
|
|
return protoreflect.ValueOfString("")
|
||
|
|
default:
|
||
|
|
if fd.IsExtension() {
|
||
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: dex.v1.EventOrderFilled"))
|
||
|
|
}
|
||
|
|
panic(fmt.Errorf("message dex.v1.EventOrderFilled does not contain field %s", fd.FullName()))
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// WhichOneof reports which field within the oneof is populated,
|
||
|
|
// returning nil if none are populated.
|
||
|
|
// It panics if the oneof descriptor does not belong to this message.
|
||
|
|
func (x *fastReflection_EventOrderFilled) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
||
|
|
switch d.FullName() {
|
||
|
|
default:
|
||
|
|
panic(fmt.Errorf("%s is not a oneof field in dex.v1.EventOrderFilled", d.FullName()))
|
||
|
|
}
|
||
|
|
panic("unreachable")
|
||
|
|
}
|
||
|
|
|
||
|
|
// GetUnknown retrieves the entire list of unknown fields.
|
||
|
|
// The caller may only mutate the contents of the RawFields
|
||
|
|
// if the mutated bytes are stored back into the message with SetUnknown.
|
||
|
|
func (x *fastReflection_EventOrderFilled) GetUnknown() protoreflect.RawFields {
|
||
|
|
return x.unknownFields
|
||
|
|
}
|
||
|
|
|
||
|
|
// SetUnknown stores an entire list of unknown fields.
|
||
|
|
// The raw fields must be syntactically valid according to the wire format.
|
||
|
|
// An implementation may panic if this is not the case.
|
||
|
|
// Once stored, the caller must not mutate the content of the RawFields.
|
||
|
|
// An empty RawFields may be passed to clear the fields.
|
||
|
|
//
|
||
|
|
// SetUnknown is a mutating operation and unsafe for concurrent use.
|
||
|
|
func (x *fastReflection_EventOrderFilled) SetUnknown(fields protoreflect.RawFields) {
|
||
|
|
x.unknownFields = fields
|
||
|
|
}
|
||
|
|
|
||
|
|
// IsValid reports whether the message is valid.
|
||
|
|
//
|
||
|
|
// An invalid message is an empty, read-only value.
|
||
|
|
//
|
||
|
|
// An invalid message often corresponds to a nil pointer of the concrete
|
||
|
|
// message type, but the details are implementation dependent.
|
||
|
|
// Validity is not part of the protobuf data model, and may not
|
||
|
|
// be preserved in marshaling or other operations.
|
||
|
|
func (x *fastReflection_EventOrderFilled) IsValid() bool {
|
||
|
|
return x != nil
|
||
|
|
}
|
||
|
|
|
||
|
|
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
|
||
|
|
// This method may return nil.
|
||
|
|
//
|
||
|
|
// The returned methods type is identical to
|
||
|
|
// "google.golang.org/protobuf/runtime/protoiface".Methods.
|
||
|
|
// Consult the protoiface package documentation for details.
|
||
|
|
func (x *fastReflection_EventOrderFilled) ProtoMethods() *protoiface.Methods {
|
||
|
|
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
|
||
|
|
x := input.Message.Interface().(*EventOrderFilled)
|
||
|
|
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.Did)
|
||
|
|
if l > 0 {
|
||
|
|
n += 1 + l + runtime.Sov(uint64(l))
|
||
|
|
}
|
||
|
|
l = len(x.ConnectionId)
|
||
|
|
if l > 0 {
|
||
|
|
n += 1 + l + runtime.Sov(uint64(l))
|
||
|
|
}
|
||
|
|
l = len(x.OrderId)
|
||
|
|
if l > 0 {
|
||
|
|
n += 1 + l + runtime.Sov(uint64(l))
|
||
|
|
}
|
||
|
|
l = len(x.FillAmount)
|
||
|
|
if l > 0 {
|
||
|
|
n += 1 + l + runtime.Sov(uint64(l))
|
||
|
|
}
|
||
|
|
l = len(x.FillPrice)
|
||
|
|
if l > 0 {
|
||
|
|
n += 1 + l + runtime.Sov(uint64(l))
|
||
|
|
}
|
||
|
|
l = len(x.TxHash)
|
||
|
|
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().(*EventOrderFilled)
|
||
|
|
if x == nil {
|
||
|
|
return protoiface.MarshalOutput{
|
||
|
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
||
|
|
Buf: input.Buf,
|
||
|
|
}, nil
|
||
|
|
}
|
||
|
|
options := runtime.MarshalInputToOptions(input)
|
||
|
|
_ = options
|
||
|
|
size := options.Size(x)
|
||
|
|
dAtA := make([]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.TxHash) > 0 {
|
||
|
|
i -= len(x.TxHash)
|
||
|
|
copy(dAtA[i:], x.TxHash)
|
||
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TxHash)))
|
||
|
|
i--
|
||
|
|
dAtA[i] = 0x32
|
||
|
|
}
|
||
|
|
if len(x.FillPrice) > 0 {
|
||
|
|
i -= len(x.FillPrice)
|
||
|
|
copy(dAtA[i:], x.FillPrice)
|
||
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.FillPrice)))
|
||
|
|
i--
|
||
|
|
dAtA[i] = 0x2a
|
||
|
|
}
|
||
|
|
if len(x.FillAmount) > 0 {
|
||
|
|
i -= len(x.FillAmount)
|
||
|
|
copy(dAtA[i:], x.FillAmount)
|
||
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.FillAmount)))
|
||
|
|
i--
|
||
|
|
dAtA[i] = 0x22
|
||
|
|
}
|
||
|
|
if len(x.OrderId) > 0 {
|
||
|
|
i -= len(x.OrderId)
|
||
|
|
copy(dAtA[i:], x.OrderId)
|
||
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.OrderId)))
|
||
|
|
i--
|
||
|
|
dAtA[i] = 0x1a
|
||
|
|
}
|
||
|
|
if len(x.ConnectionId) > 0 {
|
||
|
|
i -= len(x.ConnectionId)
|
||
|
|
copy(dAtA[i:], x.ConnectionId)
|
||
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ConnectionId)))
|
||
|
|
i--
|
||
|
|
dAtA[i] = 0x12
|
||
|
|
}
|
||
|
|
if len(x.Did) > 0 {
|
||
|
|
i -= len(x.Did)
|
||
|
|
copy(dAtA[i:], x.Did)
|
||
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Did)))
|
||
|
|
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().(*EventOrderFilled)
|
||
|
|
if x == nil {
|
||
|
|
return protoiface.UnmarshalOutput{
|
||
|
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
||
|
|
Flags: input.Flags,
|
||
|
|
}, nil
|
||
|
|
}
|
||
|
|
options := runtime.UnmarshalInputToOptions(input)
|
||
|
|
_ = options
|
||
|
|
dAtA := input.Buf
|
||
|
|
l := len(dAtA)
|
||
|
|
iNdEx := 0
|
||
|
|
for iNdEx < l {
|
||
|
|
preIndex := iNdEx
|
||
|
|
var wire uint64
|
||
|
|
for shift := uint(0); ; shift += 7 {
|
||
|
|
if shift >= 64 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
|
||
|
|
}
|
||
|
|
if iNdEx >= l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
b := dAtA[iNdEx]
|
||
|
|
iNdEx++
|
||
|
|
wire |= uint64(b&0x7F) << shift
|
||
|
|
if b < 0x80 {
|
||
|
|
break
|
||
|
|
}
|
||
|
|
}
|
||
|
|
fieldNum := int32(wire >> 3)
|
||
|
|
wireType := int(wire & 0x7)
|
||
|
|
if wireType == 4 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventOrderFilled: wiretype end group for non-group")
|
||
|
|
}
|
||
|
|
if fieldNum <= 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventOrderFilled: 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 Did", wireType)
|
||
|
|
}
|
||
|
|
var stringLen uint64
|
||
|
|
for shift := uint(0); ; shift += 7 {
|
||
|
|
if shift >= 64 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
|
||
|
|
}
|
||
|
|
if iNdEx >= l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
b := dAtA[iNdEx]
|
||
|
|
iNdEx++
|
||
|
|
stringLen |= uint64(b&0x7F) << shift
|
||
|
|
if b < 0x80 {
|
||
|
|
break
|
||
|
|
}
|
||
|
|
}
|
||
|
|
intStringLen := int(stringLen)
|
||
|
|
if intStringLen < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
postIndex := iNdEx + intStringLen
|
||
|
|
if postIndex < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
if postIndex > l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
x.Did = 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 ConnectionId", wireType)
|
||
|
|
}
|
||
|
|
var stringLen uint64
|
||
|
|
for shift := uint(0); ; shift += 7 {
|
||
|
|
if shift >= 64 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
|
||
|
|
}
|
||
|
|
if iNdEx >= l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
b := dAtA[iNdEx]
|
||
|
|
iNdEx++
|
||
|
|
stringLen |= uint64(b&0x7F) << shift
|
||
|
|
if b < 0x80 {
|
||
|
|
break
|
||
|
|
}
|
||
|
|
}
|
||
|
|
intStringLen := int(stringLen)
|
||
|
|
if intStringLen < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
postIndex := iNdEx + intStringLen
|
||
|
|
if postIndex < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
if postIndex > l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
x.ConnectionId = 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 OrderId", wireType)
|
||
|
|
}
|
||
|
|
var stringLen uint64
|
||
|
|
for shift := uint(0); ; shift += 7 {
|
||
|
|
if shift >= 64 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
|
||
|
|
}
|
||
|
|
if iNdEx >= l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
b := dAtA[iNdEx]
|
||
|
|
iNdEx++
|
||
|
|
stringLen |= uint64(b&0x7F) << shift
|
||
|
|
if b < 0x80 {
|
||
|
|
break
|
||
|
|
}
|
||
|
|
}
|
||
|
|
intStringLen := int(stringLen)
|
||
|
|
if intStringLen < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
postIndex := iNdEx + intStringLen
|
||
|
|
if postIndex < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
if postIndex > l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
x.OrderId = string(dAtA[iNdEx:postIndex])
|
||
|
|
iNdEx = postIndex
|
||
|
|
case 4:
|
||
|
|
if wireType != 2 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field FillAmount", wireType)
|
||
|
|
}
|
||
|
|
var stringLen uint64
|
||
|
|
for shift := uint(0); ; shift += 7 {
|
||
|
|
if shift >= 64 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
|
||
|
|
}
|
||
|
|
if iNdEx >= l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
b := dAtA[iNdEx]
|
||
|
|
iNdEx++
|
||
|
|
stringLen |= uint64(b&0x7F) << shift
|
||
|
|
if b < 0x80 {
|
||
|
|
break
|
||
|
|
}
|
||
|
|
}
|
||
|
|
intStringLen := int(stringLen)
|
||
|
|
if intStringLen < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
postIndex := iNdEx + intStringLen
|
||
|
|
if postIndex < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
if postIndex > l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
x.FillAmount = string(dAtA[iNdEx:postIndex])
|
||
|
|
iNdEx = postIndex
|
||
|
|
case 5:
|
||
|
|
if wireType != 2 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field FillPrice", wireType)
|
||
|
|
}
|
||
|
|
var stringLen uint64
|
||
|
|
for shift := uint(0); ; shift += 7 {
|
||
|
|
if shift >= 64 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
|
||
|
|
}
|
||
|
|
if iNdEx >= l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
b := dAtA[iNdEx]
|
||
|
|
iNdEx++
|
||
|
|
stringLen |= uint64(b&0x7F) << shift
|
||
|
|
if b < 0x80 {
|
||
|
|
break
|
||
|
|
}
|
||
|
|
}
|
||
|
|
intStringLen := int(stringLen)
|
||
|
|
if intStringLen < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
postIndex := iNdEx + intStringLen
|
||
|
|
if postIndex < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
if postIndex > l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
x.FillPrice = string(dAtA[iNdEx:postIndex])
|
||
|
|
iNdEx = postIndex
|
||
|
|
case 6:
|
||
|
|
if wireType != 2 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TxHash", wireType)
|
||
|
|
}
|
||
|
|
var stringLen uint64
|
||
|
|
for shift := uint(0); ; shift += 7 {
|
||
|
|
if shift >= 64 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
|
||
|
|
}
|
||
|
|
if iNdEx >= l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
b := dAtA[iNdEx]
|
||
|
|
iNdEx++
|
||
|
|
stringLen |= uint64(b&0x7F) << shift
|
||
|
|
if b < 0x80 {
|
||
|
|
break
|
||
|
|
}
|
||
|
|
}
|
||
|
|
intStringLen := int(stringLen)
|
||
|
|
if intStringLen < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
postIndex := iNdEx + intStringLen
|
||
|
|
if postIndex < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
if postIndex > l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
x.TxHash = 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_EventICAPacketSent protoreflect.MessageDescriptor
|
||
|
|
fd_EventICAPacketSent_did protoreflect.FieldDescriptor
|
||
|
|
fd_EventICAPacketSent_connection_id protoreflect.FieldDescriptor
|
||
|
|
fd_EventICAPacketSent_packet_type protoreflect.FieldDescriptor
|
||
|
|
fd_EventICAPacketSent_sequence protoreflect.FieldDescriptor
|
||
|
|
)
|
||
|
|
|
||
|
|
func init() {
|
||
|
|
file_dex_v1_events_proto_init()
|
||
|
|
md_EventICAPacketSent = File_dex_v1_events_proto.Messages().ByName("EventICAPacketSent")
|
||
|
|
fd_EventICAPacketSent_did = md_EventICAPacketSent.Fields().ByName("did")
|
||
|
|
fd_EventICAPacketSent_connection_id = md_EventICAPacketSent.Fields().ByName("connection_id")
|
||
|
|
fd_EventICAPacketSent_packet_type = md_EventICAPacketSent.Fields().ByName("packet_type")
|
||
|
|
fd_EventICAPacketSent_sequence = md_EventICAPacketSent.Fields().ByName("sequence")
|
||
|
|
}
|
||
|
|
|
||
|
|
var _ protoreflect.Message = (*fastReflection_EventICAPacketSent)(nil)
|
||
|
|
|
||
|
|
type fastReflection_EventICAPacketSent EventICAPacketSent
|
||
|
|
|
||
|
|
func (x *EventICAPacketSent) ProtoReflect() protoreflect.Message {
|
||
|
|
return (*fastReflection_EventICAPacketSent)(x)
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *EventICAPacketSent) slowProtoReflect() protoreflect.Message {
|
||
|
|
mi := &file_dex_v1_events_proto_msgTypes[7]
|
||
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
||
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
|
if ms.LoadMessageInfo() == nil {
|
||
|
|
ms.StoreMessageInfo(mi)
|
||
|
|
}
|
||
|
|
return ms
|
||
|
|
}
|
||
|
|
return mi.MessageOf(x)
|
||
|
|
}
|
||
|
|
|
||
|
|
var _fastReflection_EventICAPacketSent_messageType fastReflection_EventICAPacketSent_messageType
|
||
|
|
var _ protoreflect.MessageType = fastReflection_EventICAPacketSent_messageType{}
|
||
|
|
|
||
|
|
type fastReflection_EventICAPacketSent_messageType struct{}
|
||
|
|
|
||
|
|
func (x fastReflection_EventICAPacketSent_messageType) Zero() protoreflect.Message {
|
||
|
|
return (*fastReflection_EventICAPacketSent)(nil)
|
||
|
|
}
|
||
|
|
func (x fastReflection_EventICAPacketSent_messageType) New() protoreflect.Message {
|
||
|
|
return new(fastReflection_EventICAPacketSent)
|
||
|
|
}
|
||
|
|
func (x fastReflection_EventICAPacketSent_messageType) Descriptor() protoreflect.MessageDescriptor {
|
||
|
|
return md_EventICAPacketSent
|
||
|
|
}
|
||
|
|
|
||
|
|
// Descriptor returns message descriptor, which contains only the protobuf
|
||
|
|
// type information for the message.
|
||
|
|
func (x *fastReflection_EventICAPacketSent) Descriptor() protoreflect.MessageDescriptor {
|
||
|
|
return md_EventICAPacketSent
|
||
|
|
}
|
||
|
|
|
||
|
|
// Type returns the message type, which encapsulates both Go and protobuf
|
||
|
|
// type information. If the Go type information is not needed,
|
||
|
|
// it is recommended that the message descriptor be used instead.
|
||
|
|
func (x *fastReflection_EventICAPacketSent) Type() protoreflect.MessageType {
|
||
|
|
return _fastReflection_EventICAPacketSent_messageType
|
||
|
|
}
|
||
|
|
|
||
|
|
// New returns a newly allocated and mutable empty message.
|
||
|
|
func (x *fastReflection_EventICAPacketSent) New() protoreflect.Message {
|
||
|
|
return new(fastReflection_EventICAPacketSent)
|
||
|
|
}
|
||
|
|
|
||
|
|
// Interface unwraps the message reflection interface and
|
||
|
|
// returns the underlying ProtoMessage interface.
|
||
|
|
func (x *fastReflection_EventICAPacketSent) Interface() protoreflect.ProtoMessage {
|
||
|
|
return (*EventICAPacketSent)(x)
|
||
|
|
}
|
||
|
|
|
||
|
|
// Range iterates over every populated field in an undefined order,
|
||
|
|
// calling f for each field descriptor and value encountered.
|
||
|
|
// Range returns immediately if f returns false.
|
||
|
|
// While iterating, mutating operations may only be performed
|
||
|
|
// on the current field descriptor.
|
||
|
|
func (x *fastReflection_EventICAPacketSent) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
|
||
|
|
if x.Did != "" {
|
||
|
|
value := protoreflect.ValueOfString(x.Did)
|
||
|
|
if !f(fd_EventICAPacketSent_did, value) {
|
||
|
|
return
|
||
|
|
}
|
||
|
|
}
|
||
|
|
if x.ConnectionId != "" {
|
||
|
|
value := protoreflect.ValueOfString(x.ConnectionId)
|
||
|
|
if !f(fd_EventICAPacketSent_connection_id, value) {
|
||
|
|
return
|
||
|
|
}
|
||
|
|
}
|
||
|
|
if x.PacketType != "" {
|
||
|
|
value := protoreflect.ValueOfString(x.PacketType)
|
||
|
|
if !f(fd_EventICAPacketSent_packet_type, value) {
|
||
|
|
return
|
||
|
|
}
|
||
|
|
}
|
||
|
|
if x.Sequence != uint64(0) {
|
||
|
|
value := protoreflect.ValueOfUint64(x.Sequence)
|
||
|
|
if !f(fd_EventICAPacketSent_sequence, value) {
|
||
|
|
return
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// Has reports whether a field is populated.
|
||
|
|
//
|
||
|
|
// Some fields have the property of nullability where it is possible to
|
||
|
|
// distinguish between the default value of a field and whether the field
|
||
|
|
// was explicitly populated with the default value. Singular message fields,
|
||
|
|
// member fields of a oneof, and proto2 scalar fields are nullable. Such
|
||
|
|
// fields are populated only if explicitly set.
|
||
|
|
//
|
||
|
|
// In other cases (aside from the nullable cases above),
|
||
|
|
// a proto3 scalar field is populated if it contains a non-zero value, and
|
||
|
|
// a repeated field is populated if it is non-empty.
|
||
|
|
func (x *fastReflection_EventICAPacketSent) Has(fd protoreflect.FieldDescriptor) bool {
|
||
|
|
switch fd.FullName() {
|
||
|
|
case "dex.v1.EventICAPacketSent.did":
|
||
|
|
return x.Did != ""
|
||
|
|
case "dex.v1.EventICAPacketSent.connection_id":
|
||
|
|
return x.ConnectionId != ""
|
||
|
|
case "dex.v1.EventICAPacketSent.packet_type":
|
||
|
|
return x.PacketType != ""
|
||
|
|
case "dex.v1.EventICAPacketSent.sequence":
|
||
|
|
return x.Sequence != uint64(0)
|
||
|
|
default:
|
||
|
|
if fd.IsExtension() {
|
||
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: dex.v1.EventICAPacketSent"))
|
||
|
|
}
|
||
|
|
panic(fmt.Errorf("message dex.v1.EventICAPacketSent does not contain field %s", fd.FullName()))
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// Clear clears the field such that a subsequent Has call reports false.
|
||
|
|
//
|
||
|
|
// Clearing an extension field clears both the extension type and value
|
||
|
|
// associated with the given field number.
|
||
|
|
//
|
||
|
|
// Clear is a mutating operation and unsafe for concurrent use.
|
||
|
|
func (x *fastReflection_EventICAPacketSent) Clear(fd protoreflect.FieldDescriptor) {
|
||
|
|
switch fd.FullName() {
|
||
|
|
case "dex.v1.EventICAPacketSent.did":
|
||
|
|
x.Did = ""
|
||
|
|
case "dex.v1.EventICAPacketSent.connection_id":
|
||
|
|
x.ConnectionId = ""
|
||
|
|
case "dex.v1.EventICAPacketSent.packet_type":
|
||
|
|
x.PacketType = ""
|
||
|
|
case "dex.v1.EventICAPacketSent.sequence":
|
||
|
|
x.Sequence = uint64(0)
|
||
|
|
default:
|
||
|
|
if fd.IsExtension() {
|
||
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: dex.v1.EventICAPacketSent"))
|
||
|
|
}
|
||
|
|
panic(fmt.Errorf("message dex.v1.EventICAPacketSent does not contain field %s", fd.FullName()))
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// Get retrieves the value for a field.
|
||
|
|
//
|
||
|
|
// For unpopulated scalars, it returns the default value, where
|
||
|
|
// the default value of a bytes scalar is guaranteed to be a copy.
|
||
|
|
// For unpopulated composite types, it returns an empty, read-only view
|
||
|
|
// of the value; to obtain a mutable reference, use Mutable.
|
||
|
|
func (x *fastReflection_EventICAPacketSent) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
|
switch descriptor.FullName() {
|
||
|
|
case "dex.v1.EventICAPacketSent.did":
|
||
|
|
value := x.Did
|
||
|
|
return protoreflect.ValueOfString(value)
|
||
|
|
case "dex.v1.EventICAPacketSent.connection_id":
|
||
|
|
value := x.ConnectionId
|
||
|
|
return protoreflect.ValueOfString(value)
|
||
|
|
case "dex.v1.EventICAPacketSent.packet_type":
|
||
|
|
value := x.PacketType
|
||
|
|
return protoreflect.ValueOfString(value)
|
||
|
|
case "dex.v1.EventICAPacketSent.sequence":
|
||
|
|
value := x.Sequence
|
||
|
|
return protoreflect.ValueOfUint64(value)
|
||
|
|
default:
|
||
|
|
if descriptor.IsExtension() {
|
||
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: dex.v1.EventICAPacketSent"))
|
||
|
|
}
|
||
|
|
panic(fmt.Errorf("message dex.v1.EventICAPacketSent does not contain field %s", descriptor.FullName()))
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// Set stores the value for a field.
|
||
|
|
//
|
||
|
|
// For a field belonging to a oneof, it implicitly clears any other field
|
||
|
|
// that may be currently set within the same oneof.
|
||
|
|
// For extension fields, it implicitly stores the provided ExtensionType.
|
||
|
|
// When setting a composite type, it is unspecified whether the stored value
|
||
|
|
// aliases the source's memory in any way. If the composite value is an
|
||
|
|
// empty, read-only value, then it panics.
|
||
|
|
//
|
||
|
|
// Set is a mutating operation and unsafe for concurrent use.
|
||
|
|
func (x *fastReflection_EventICAPacketSent) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
||
|
|
switch fd.FullName() {
|
||
|
|
case "dex.v1.EventICAPacketSent.did":
|
||
|
|
x.Did = value.Interface().(string)
|
||
|
|
case "dex.v1.EventICAPacketSent.connection_id":
|
||
|
|
x.ConnectionId = value.Interface().(string)
|
||
|
|
case "dex.v1.EventICAPacketSent.packet_type":
|
||
|
|
x.PacketType = value.Interface().(string)
|
||
|
|
case "dex.v1.EventICAPacketSent.sequence":
|
||
|
|
x.Sequence = value.Uint()
|
||
|
|
default:
|
||
|
|
if fd.IsExtension() {
|
||
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: dex.v1.EventICAPacketSent"))
|
||
|
|
}
|
||
|
|
panic(fmt.Errorf("message dex.v1.EventICAPacketSent does not contain field %s", fd.FullName()))
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// Mutable returns a mutable reference to a composite type.
|
||
|
|
//
|
||
|
|
// If the field is unpopulated, it may allocate a composite value.
|
||
|
|
// For a field belonging to a oneof, it implicitly clears any other field
|
||
|
|
// that may be currently set within the same oneof.
|
||
|
|
// For extension fields, it implicitly stores the provided ExtensionType
|
||
|
|
// if not already stored.
|
||
|
|
// It panics if the field does not contain a composite type.
|
||
|
|
//
|
||
|
|
// Mutable is a mutating operation and unsafe for concurrent use.
|
||
|
|
func (x *fastReflection_EventICAPacketSent) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
|
switch fd.FullName() {
|
||
|
|
case "dex.v1.EventICAPacketSent.did":
|
||
|
|
panic(fmt.Errorf("field did of message dex.v1.EventICAPacketSent is not mutable"))
|
||
|
|
case "dex.v1.EventICAPacketSent.connection_id":
|
||
|
|
panic(fmt.Errorf("field connection_id of message dex.v1.EventICAPacketSent is not mutable"))
|
||
|
|
case "dex.v1.EventICAPacketSent.packet_type":
|
||
|
|
panic(fmt.Errorf("field packet_type of message dex.v1.EventICAPacketSent is not mutable"))
|
||
|
|
case "dex.v1.EventICAPacketSent.sequence":
|
||
|
|
panic(fmt.Errorf("field sequence of message dex.v1.EventICAPacketSent is not mutable"))
|
||
|
|
default:
|
||
|
|
if fd.IsExtension() {
|
||
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: dex.v1.EventICAPacketSent"))
|
||
|
|
}
|
||
|
|
panic(fmt.Errorf("message dex.v1.EventICAPacketSent does not contain field %s", fd.FullName()))
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// NewField returns a new value that is assignable to the field
|
||
|
|
// for the given descriptor. For scalars, this returns the default value.
|
||
|
|
// For lists, maps, and messages, this returns a new, empty, mutable value.
|
||
|
|
func (x *fastReflection_EventICAPacketSent) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
|
switch fd.FullName() {
|
||
|
|
case "dex.v1.EventICAPacketSent.did":
|
||
|
|
return protoreflect.ValueOfString("")
|
||
|
|
case "dex.v1.EventICAPacketSent.connection_id":
|
||
|
|
return protoreflect.ValueOfString("")
|
||
|
|
case "dex.v1.EventICAPacketSent.packet_type":
|
||
|
|
return protoreflect.ValueOfString("")
|
||
|
|
case "dex.v1.EventICAPacketSent.sequence":
|
||
|
|
return protoreflect.ValueOfUint64(uint64(0))
|
||
|
|
default:
|
||
|
|
if fd.IsExtension() {
|
||
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: dex.v1.EventICAPacketSent"))
|
||
|
|
}
|
||
|
|
panic(fmt.Errorf("message dex.v1.EventICAPacketSent does not contain field %s", fd.FullName()))
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// WhichOneof reports which field within the oneof is populated,
|
||
|
|
// returning nil if none are populated.
|
||
|
|
// It panics if the oneof descriptor does not belong to this message.
|
||
|
|
func (x *fastReflection_EventICAPacketSent) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
||
|
|
switch d.FullName() {
|
||
|
|
default:
|
||
|
|
panic(fmt.Errorf("%s is not a oneof field in dex.v1.EventICAPacketSent", d.FullName()))
|
||
|
|
}
|
||
|
|
panic("unreachable")
|
||
|
|
}
|
||
|
|
|
||
|
|
// GetUnknown retrieves the entire list of unknown fields.
|
||
|
|
// The caller may only mutate the contents of the RawFields
|
||
|
|
// if the mutated bytes are stored back into the message with SetUnknown.
|
||
|
|
func (x *fastReflection_EventICAPacketSent) GetUnknown() protoreflect.RawFields {
|
||
|
|
return x.unknownFields
|
||
|
|
}
|
||
|
|
|
||
|
|
// SetUnknown stores an entire list of unknown fields.
|
||
|
|
// The raw fields must be syntactically valid according to the wire format.
|
||
|
|
// An implementation may panic if this is not the case.
|
||
|
|
// Once stored, the caller must not mutate the content of the RawFields.
|
||
|
|
// An empty RawFields may be passed to clear the fields.
|
||
|
|
//
|
||
|
|
// SetUnknown is a mutating operation and unsafe for concurrent use.
|
||
|
|
func (x *fastReflection_EventICAPacketSent) SetUnknown(fields protoreflect.RawFields) {
|
||
|
|
x.unknownFields = fields
|
||
|
|
}
|
||
|
|
|
||
|
|
// IsValid reports whether the message is valid.
|
||
|
|
//
|
||
|
|
// An invalid message is an empty, read-only value.
|
||
|
|
//
|
||
|
|
// An invalid message often corresponds to a nil pointer of the concrete
|
||
|
|
// message type, but the details are implementation dependent.
|
||
|
|
// Validity is not part of the protobuf data model, and may not
|
||
|
|
// be preserved in marshaling or other operations.
|
||
|
|
func (x *fastReflection_EventICAPacketSent) IsValid() bool {
|
||
|
|
return x != nil
|
||
|
|
}
|
||
|
|
|
||
|
|
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
|
||
|
|
// This method may return nil.
|
||
|
|
//
|
||
|
|
// The returned methods type is identical to
|
||
|
|
// "google.golang.org/protobuf/runtime/protoiface".Methods.
|
||
|
|
// Consult the protoiface package documentation for details.
|
||
|
|
func (x *fastReflection_EventICAPacketSent) ProtoMethods() *protoiface.Methods {
|
||
|
|
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
|
||
|
|
x := input.Message.Interface().(*EventICAPacketSent)
|
||
|
|
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.Did)
|
||
|
|
if l > 0 {
|
||
|
|
n += 1 + l + runtime.Sov(uint64(l))
|
||
|
|
}
|
||
|
|
l = len(x.ConnectionId)
|
||
|
|
if l > 0 {
|
||
|
|
n += 1 + l + runtime.Sov(uint64(l))
|
||
|
|
}
|
||
|
|
l = len(x.PacketType)
|
||
|
|
if l > 0 {
|
||
|
|
n += 1 + l + runtime.Sov(uint64(l))
|
||
|
|
}
|
||
|
|
if x.Sequence != 0 {
|
||
|
|
n += 1 + runtime.Sov(uint64(x.Sequence))
|
||
|
|
}
|
||
|
|
if x.unknownFields != nil {
|
||
|
|
n += len(x.unknownFields)
|
||
|
|
}
|
||
|
|
return protoiface.SizeOutput{
|
||
|
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
||
|
|
Size: n,
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
|
||
|
|
x := input.Message.Interface().(*EventICAPacketSent)
|
||
|
|
if x == nil {
|
||
|
|
return protoiface.MarshalOutput{
|
||
|
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
||
|
|
Buf: input.Buf,
|
||
|
|
}, nil
|
||
|
|
}
|
||
|
|
options := runtime.MarshalInputToOptions(input)
|
||
|
|
_ = options
|
||
|
|
size := options.Size(x)
|
||
|
|
dAtA := make([]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.Sequence != 0 {
|
||
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(x.Sequence))
|
||
|
|
i--
|
||
|
|
dAtA[i] = 0x20
|
||
|
|
}
|
||
|
|
if len(x.PacketType) > 0 {
|
||
|
|
i -= len(x.PacketType)
|
||
|
|
copy(dAtA[i:], x.PacketType)
|
||
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.PacketType)))
|
||
|
|
i--
|
||
|
|
dAtA[i] = 0x1a
|
||
|
|
}
|
||
|
|
if len(x.ConnectionId) > 0 {
|
||
|
|
i -= len(x.ConnectionId)
|
||
|
|
copy(dAtA[i:], x.ConnectionId)
|
||
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ConnectionId)))
|
||
|
|
i--
|
||
|
|
dAtA[i] = 0x12
|
||
|
|
}
|
||
|
|
if len(x.Did) > 0 {
|
||
|
|
i -= len(x.Did)
|
||
|
|
copy(dAtA[i:], x.Did)
|
||
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Did)))
|
||
|
|
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().(*EventICAPacketSent)
|
||
|
|
if x == nil {
|
||
|
|
return protoiface.UnmarshalOutput{
|
||
|
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
||
|
|
Flags: input.Flags,
|
||
|
|
}, nil
|
||
|
|
}
|
||
|
|
options := runtime.UnmarshalInputToOptions(input)
|
||
|
|
_ = options
|
||
|
|
dAtA := input.Buf
|
||
|
|
l := len(dAtA)
|
||
|
|
iNdEx := 0
|
||
|
|
for iNdEx < l {
|
||
|
|
preIndex := iNdEx
|
||
|
|
var wire uint64
|
||
|
|
for shift := uint(0); ; shift += 7 {
|
||
|
|
if shift >= 64 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
|
||
|
|
}
|
||
|
|
if iNdEx >= l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
b := dAtA[iNdEx]
|
||
|
|
iNdEx++
|
||
|
|
wire |= uint64(b&0x7F) << shift
|
||
|
|
if b < 0x80 {
|
||
|
|
break
|
||
|
|
}
|
||
|
|
}
|
||
|
|
fieldNum := int32(wire >> 3)
|
||
|
|
wireType := int(wire & 0x7)
|
||
|
|
if wireType == 4 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventICAPacketSent: wiretype end group for non-group")
|
||
|
|
}
|
||
|
|
if fieldNum <= 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventICAPacketSent: 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 Did", wireType)
|
||
|
|
}
|
||
|
|
var stringLen uint64
|
||
|
|
for shift := uint(0); ; shift += 7 {
|
||
|
|
if shift >= 64 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
|
||
|
|
}
|
||
|
|
if iNdEx >= l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
b := dAtA[iNdEx]
|
||
|
|
iNdEx++
|
||
|
|
stringLen |= uint64(b&0x7F) << shift
|
||
|
|
if b < 0x80 {
|
||
|
|
break
|
||
|
|
}
|
||
|
|
}
|
||
|
|
intStringLen := int(stringLen)
|
||
|
|
if intStringLen < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
postIndex := iNdEx + intStringLen
|
||
|
|
if postIndex < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
if postIndex > l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
x.Did = 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 ConnectionId", wireType)
|
||
|
|
}
|
||
|
|
var stringLen uint64
|
||
|
|
for shift := uint(0); ; shift += 7 {
|
||
|
|
if shift >= 64 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
|
||
|
|
}
|
||
|
|
if iNdEx >= l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
b := dAtA[iNdEx]
|
||
|
|
iNdEx++
|
||
|
|
stringLen |= uint64(b&0x7F) << shift
|
||
|
|
if b < 0x80 {
|
||
|
|
break
|
||
|
|
}
|
||
|
|
}
|
||
|
|
intStringLen := int(stringLen)
|
||
|
|
if intStringLen < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
postIndex := iNdEx + intStringLen
|
||
|
|
if postIndex < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
if postIndex > l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
x.ConnectionId = 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 PacketType", wireType)
|
||
|
|
}
|
||
|
|
var stringLen uint64
|
||
|
|
for shift := uint(0); ; shift += 7 {
|
||
|
|
if shift >= 64 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
|
||
|
|
}
|
||
|
|
if iNdEx >= l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
b := dAtA[iNdEx]
|
||
|
|
iNdEx++
|
||
|
|
stringLen |= uint64(b&0x7F) << shift
|
||
|
|
if b < 0x80 {
|
||
|
|
break
|
||
|
|
}
|
||
|
|
}
|
||
|
|
intStringLen := int(stringLen)
|
||
|
|
if intStringLen < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
postIndex := iNdEx + intStringLen
|
||
|
|
if postIndex < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
if postIndex > l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
x.PacketType = string(dAtA[iNdEx:postIndex])
|
||
|
|
iNdEx = postIndex
|
||
|
|
case 4:
|
||
|
|
if wireType != 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Sequence", wireType)
|
||
|
|
}
|
||
|
|
x.Sequence = 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.Sequence |= 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_EventICAPacketAcknowledged protoreflect.MessageDescriptor
|
||
|
|
fd_EventICAPacketAcknowledged_did protoreflect.FieldDescriptor
|
||
|
|
fd_EventICAPacketAcknowledged_connection_id protoreflect.FieldDescriptor
|
||
|
|
fd_EventICAPacketAcknowledged_packet_type protoreflect.FieldDescriptor
|
||
|
|
fd_EventICAPacketAcknowledged_sequence protoreflect.FieldDescriptor
|
||
|
|
fd_EventICAPacketAcknowledged_success protoreflect.FieldDescriptor
|
||
|
|
fd_EventICAPacketAcknowledged_error protoreflect.FieldDescriptor
|
||
|
|
)
|
||
|
|
|
||
|
|
func init() {
|
||
|
|
file_dex_v1_events_proto_init()
|
||
|
|
md_EventICAPacketAcknowledged = File_dex_v1_events_proto.Messages().ByName("EventICAPacketAcknowledged")
|
||
|
|
fd_EventICAPacketAcknowledged_did = md_EventICAPacketAcknowledged.Fields().ByName("did")
|
||
|
|
fd_EventICAPacketAcknowledged_connection_id = md_EventICAPacketAcknowledged.Fields().ByName("connection_id")
|
||
|
|
fd_EventICAPacketAcknowledged_packet_type = md_EventICAPacketAcknowledged.Fields().ByName("packet_type")
|
||
|
|
fd_EventICAPacketAcknowledged_sequence = md_EventICAPacketAcknowledged.Fields().ByName("sequence")
|
||
|
|
fd_EventICAPacketAcknowledged_success = md_EventICAPacketAcknowledged.Fields().ByName("success")
|
||
|
|
fd_EventICAPacketAcknowledged_error = md_EventICAPacketAcknowledged.Fields().ByName("error")
|
||
|
|
}
|
||
|
|
|
||
|
|
var _ protoreflect.Message = (*fastReflection_EventICAPacketAcknowledged)(nil)
|
||
|
|
|
||
|
|
type fastReflection_EventICAPacketAcknowledged EventICAPacketAcknowledged
|
||
|
|
|
||
|
|
func (x *EventICAPacketAcknowledged) ProtoReflect() protoreflect.Message {
|
||
|
|
return (*fastReflection_EventICAPacketAcknowledged)(x)
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *EventICAPacketAcknowledged) slowProtoReflect() protoreflect.Message {
|
||
|
|
mi := &file_dex_v1_events_proto_msgTypes[8]
|
||
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
||
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
|
if ms.LoadMessageInfo() == nil {
|
||
|
|
ms.StoreMessageInfo(mi)
|
||
|
|
}
|
||
|
|
return ms
|
||
|
|
}
|
||
|
|
return mi.MessageOf(x)
|
||
|
|
}
|
||
|
|
|
||
|
|
var _fastReflection_EventICAPacketAcknowledged_messageType fastReflection_EventICAPacketAcknowledged_messageType
|
||
|
|
var _ protoreflect.MessageType = fastReflection_EventICAPacketAcknowledged_messageType{}
|
||
|
|
|
||
|
|
type fastReflection_EventICAPacketAcknowledged_messageType struct{}
|
||
|
|
|
||
|
|
func (x fastReflection_EventICAPacketAcknowledged_messageType) Zero() protoreflect.Message {
|
||
|
|
return (*fastReflection_EventICAPacketAcknowledged)(nil)
|
||
|
|
}
|
||
|
|
func (x fastReflection_EventICAPacketAcknowledged_messageType) New() protoreflect.Message {
|
||
|
|
return new(fastReflection_EventICAPacketAcknowledged)
|
||
|
|
}
|
||
|
|
func (x fastReflection_EventICAPacketAcknowledged_messageType) Descriptor() protoreflect.MessageDescriptor {
|
||
|
|
return md_EventICAPacketAcknowledged
|
||
|
|
}
|
||
|
|
|
||
|
|
// Descriptor returns message descriptor, which contains only the protobuf
|
||
|
|
// type information for the message.
|
||
|
|
func (x *fastReflection_EventICAPacketAcknowledged) Descriptor() protoreflect.MessageDescriptor {
|
||
|
|
return md_EventICAPacketAcknowledged
|
||
|
|
}
|
||
|
|
|
||
|
|
// Type returns the message type, which encapsulates both Go and protobuf
|
||
|
|
// type information. If the Go type information is not needed,
|
||
|
|
// it is recommended that the message descriptor be used instead.
|
||
|
|
func (x *fastReflection_EventICAPacketAcknowledged) Type() protoreflect.MessageType {
|
||
|
|
return _fastReflection_EventICAPacketAcknowledged_messageType
|
||
|
|
}
|
||
|
|
|
||
|
|
// New returns a newly allocated and mutable empty message.
|
||
|
|
func (x *fastReflection_EventICAPacketAcknowledged) New() protoreflect.Message {
|
||
|
|
return new(fastReflection_EventICAPacketAcknowledged)
|
||
|
|
}
|
||
|
|
|
||
|
|
// Interface unwraps the message reflection interface and
|
||
|
|
// returns the underlying ProtoMessage interface.
|
||
|
|
func (x *fastReflection_EventICAPacketAcknowledged) Interface() protoreflect.ProtoMessage {
|
||
|
|
return (*EventICAPacketAcknowledged)(x)
|
||
|
|
}
|
||
|
|
|
||
|
|
// Range iterates over every populated field in an undefined order,
|
||
|
|
// calling f for each field descriptor and value encountered.
|
||
|
|
// Range returns immediately if f returns false.
|
||
|
|
// While iterating, mutating operations may only be performed
|
||
|
|
// on the current field descriptor.
|
||
|
|
func (x *fastReflection_EventICAPacketAcknowledged) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
|
||
|
|
if x.Did != "" {
|
||
|
|
value := protoreflect.ValueOfString(x.Did)
|
||
|
|
if !f(fd_EventICAPacketAcknowledged_did, value) {
|
||
|
|
return
|
||
|
|
}
|
||
|
|
}
|
||
|
|
if x.ConnectionId != "" {
|
||
|
|
value := protoreflect.ValueOfString(x.ConnectionId)
|
||
|
|
if !f(fd_EventICAPacketAcknowledged_connection_id, value) {
|
||
|
|
return
|
||
|
|
}
|
||
|
|
}
|
||
|
|
if x.PacketType != "" {
|
||
|
|
value := protoreflect.ValueOfString(x.PacketType)
|
||
|
|
if !f(fd_EventICAPacketAcknowledged_packet_type, value) {
|
||
|
|
return
|
||
|
|
}
|
||
|
|
}
|
||
|
|
if x.Sequence != uint64(0) {
|
||
|
|
value := protoreflect.ValueOfUint64(x.Sequence)
|
||
|
|
if !f(fd_EventICAPacketAcknowledged_sequence, value) {
|
||
|
|
return
|
||
|
|
}
|
||
|
|
}
|
||
|
|
if x.Success != false {
|
||
|
|
value := protoreflect.ValueOfBool(x.Success)
|
||
|
|
if !f(fd_EventICAPacketAcknowledged_success, value) {
|
||
|
|
return
|
||
|
|
}
|
||
|
|
}
|
||
|
|
if x.Error != "" {
|
||
|
|
value := protoreflect.ValueOfString(x.Error)
|
||
|
|
if !f(fd_EventICAPacketAcknowledged_error, value) {
|
||
|
|
return
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// Has reports whether a field is populated.
|
||
|
|
//
|
||
|
|
// Some fields have the property of nullability where it is possible to
|
||
|
|
// distinguish between the default value of a field and whether the field
|
||
|
|
// was explicitly populated with the default value. Singular message fields,
|
||
|
|
// member fields of a oneof, and proto2 scalar fields are nullable. Such
|
||
|
|
// fields are populated only if explicitly set.
|
||
|
|
//
|
||
|
|
// In other cases (aside from the nullable cases above),
|
||
|
|
// a proto3 scalar field is populated if it contains a non-zero value, and
|
||
|
|
// a repeated field is populated if it is non-empty.
|
||
|
|
func (x *fastReflection_EventICAPacketAcknowledged) Has(fd protoreflect.FieldDescriptor) bool {
|
||
|
|
switch fd.FullName() {
|
||
|
|
case "dex.v1.EventICAPacketAcknowledged.did":
|
||
|
|
return x.Did != ""
|
||
|
|
case "dex.v1.EventICAPacketAcknowledged.connection_id":
|
||
|
|
return x.ConnectionId != ""
|
||
|
|
case "dex.v1.EventICAPacketAcknowledged.packet_type":
|
||
|
|
return x.PacketType != ""
|
||
|
|
case "dex.v1.EventICAPacketAcknowledged.sequence":
|
||
|
|
return x.Sequence != uint64(0)
|
||
|
|
case "dex.v1.EventICAPacketAcknowledged.success":
|
||
|
|
return x.Success != false
|
||
|
|
case "dex.v1.EventICAPacketAcknowledged.error":
|
||
|
|
return x.Error != ""
|
||
|
|
default:
|
||
|
|
if fd.IsExtension() {
|
||
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: dex.v1.EventICAPacketAcknowledged"))
|
||
|
|
}
|
||
|
|
panic(fmt.Errorf("message dex.v1.EventICAPacketAcknowledged does not contain field %s", fd.FullName()))
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// Clear clears the field such that a subsequent Has call reports false.
|
||
|
|
//
|
||
|
|
// Clearing an extension field clears both the extension type and value
|
||
|
|
// associated with the given field number.
|
||
|
|
//
|
||
|
|
// Clear is a mutating operation and unsafe for concurrent use.
|
||
|
|
func (x *fastReflection_EventICAPacketAcknowledged) Clear(fd protoreflect.FieldDescriptor) {
|
||
|
|
switch fd.FullName() {
|
||
|
|
case "dex.v1.EventICAPacketAcknowledged.did":
|
||
|
|
x.Did = ""
|
||
|
|
case "dex.v1.EventICAPacketAcknowledged.connection_id":
|
||
|
|
x.ConnectionId = ""
|
||
|
|
case "dex.v1.EventICAPacketAcknowledged.packet_type":
|
||
|
|
x.PacketType = ""
|
||
|
|
case "dex.v1.EventICAPacketAcknowledged.sequence":
|
||
|
|
x.Sequence = uint64(0)
|
||
|
|
case "dex.v1.EventICAPacketAcknowledged.success":
|
||
|
|
x.Success = false
|
||
|
|
case "dex.v1.EventICAPacketAcknowledged.error":
|
||
|
|
x.Error = ""
|
||
|
|
default:
|
||
|
|
if fd.IsExtension() {
|
||
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: dex.v1.EventICAPacketAcknowledged"))
|
||
|
|
}
|
||
|
|
panic(fmt.Errorf("message dex.v1.EventICAPacketAcknowledged does not contain field %s", fd.FullName()))
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// Get retrieves the value for a field.
|
||
|
|
//
|
||
|
|
// For unpopulated scalars, it returns the default value, where
|
||
|
|
// the default value of a bytes scalar is guaranteed to be a copy.
|
||
|
|
// For unpopulated composite types, it returns an empty, read-only view
|
||
|
|
// of the value; to obtain a mutable reference, use Mutable.
|
||
|
|
func (x *fastReflection_EventICAPacketAcknowledged) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
|
switch descriptor.FullName() {
|
||
|
|
case "dex.v1.EventICAPacketAcknowledged.did":
|
||
|
|
value := x.Did
|
||
|
|
return protoreflect.ValueOfString(value)
|
||
|
|
case "dex.v1.EventICAPacketAcknowledged.connection_id":
|
||
|
|
value := x.ConnectionId
|
||
|
|
return protoreflect.ValueOfString(value)
|
||
|
|
case "dex.v1.EventICAPacketAcknowledged.packet_type":
|
||
|
|
value := x.PacketType
|
||
|
|
return protoreflect.ValueOfString(value)
|
||
|
|
case "dex.v1.EventICAPacketAcknowledged.sequence":
|
||
|
|
value := x.Sequence
|
||
|
|
return protoreflect.ValueOfUint64(value)
|
||
|
|
case "dex.v1.EventICAPacketAcknowledged.success":
|
||
|
|
value := x.Success
|
||
|
|
return protoreflect.ValueOfBool(value)
|
||
|
|
case "dex.v1.EventICAPacketAcknowledged.error":
|
||
|
|
value := x.Error
|
||
|
|
return protoreflect.ValueOfString(value)
|
||
|
|
default:
|
||
|
|
if descriptor.IsExtension() {
|
||
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: dex.v1.EventICAPacketAcknowledged"))
|
||
|
|
}
|
||
|
|
panic(fmt.Errorf("message dex.v1.EventICAPacketAcknowledged does not contain field %s", descriptor.FullName()))
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// Set stores the value for a field.
|
||
|
|
//
|
||
|
|
// For a field belonging to a oneof, it implicitly clears any other field
|
||
|
|
// that may be currently set within the same oneof.
|
||
|
|
// For extension fields, it implicitly stores the provided ExtensionType.
|
||
|
|
// When setting a composite type, it is unspecified whether the stored value
|
||
|
|
// aliases the source's memory in any way. If the composite value is an
|
||
|
|
// empty, read-only value, then it panics.
|
||
|
|
//
|
||
|
|
// Set is a mutating operation and unsafe for concurrent use.
|
||
|
|
func (x *fastReflection_EventICAPacketAcknowledged) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
||
|
|
switch fd.FullName() {
|
||
|
|
case "dex.v1.EventICAPacketAcknowledged.did":
|
||
|
|
x.Did = value.Interface().(string)
|
||
|
|
case "dex.v1.EventICAPacketAcknowledged.connection_id":
|
||
|
|
x.ConnectionId = value.Interface().(string)
|
||
|
|
case "dex.v1.EventICAPacketAcknowledged.packet_type":
|
||
|
|
x.PacketType = value.Interface().(string)
|
||
|
|
case "dex.v1.EventICAPacketAcknowledged.sequence":
|
||
|
|
x.Sequence = value.Uint()
|
||
|
|
case "dex.v1.EventICAPacketAcknowledged.success":
|
||
|
|
x.Success = value.Bool()
|
||
|
|
case "dex.v1.EventICAPacketAcknowledged.error":
|
||
|
|
x.Error = value.Interface().(string)
|
||
|
|
default:
|
||
|
|
if fd.IsExtension() {
|
||
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: dex.v1.EventICAPacketAcknowledged"))
|
||
|
|
}
|
||
|
|
panic(fmt.Errorf("message dex.v1.EventICAPacketAcknowledged does not contain field %s", fd.FullName()))
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// Mutable returns a mutable reference to a composite type.
|
||
|
|
//
|
||
|
|
// If the field is unpopulated, it may allocate a composite value.
|
||
|
|
// For a field belonging to a oneof, it implicitly clears any other field
|
||
|
|
// that may be currently set within the same oneof.
|
||
|
|
// For extension fields, it implicitly stores the provided ExtensionType
|
||
|
|
// if not already stored.
|
||
|
|
// It panics if the field does not contain a composite type.
|
||
|
|
//
|
||
|
|
// Mutable is a mutating operation and unsafe for concurrent use.
|
||
|
|
func (x *fastReflection_EventICAPacketAcknowledged) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
|
switch fd.FullName() {
|
||
|
|
case "dex.v1.EventICAPacketAcknowledged.did":
|
||
|
|
panic(fmt.Errorf("field did of message dex.v1.EventICAPacketAcknowledged is not mutable"))
|
||
|
|
case "dex.v1.EventICAPacketAcknowledged.connection_id":
|
||
|
|
panic(fmt.Errorf("field connection_id of message dex.v1.EventICAPacketAcknowledged is not mutable"))
|
||
|
|
case "dex.v1.EventICAPacketAcknowledged.packet_type":
|
||
|
|
panic(fmt.Errorf("field packet_type of message dex.v1.EventICAPacketAcknowledged is not mutable"))
|
||
|
|
case "dex.v1.EventICAPacketAcknowledged.sequence":
|
||
|
|
panic(fmt.Errorf("field sequence of message dex.v1.EventICAPacketAcknowledged is not mutable"))
|
||
|
|
case "dex.v1.EventICAPacketAcknowledged.success":
|
||
|
|
panic(fmt.Errorf("field success of message dex.v1.EventICAPacketAcknowledged is not mutable"))
|
||
|
|
case "dex.v1.EventICAPacketAcknowledged.error":
|
||
|
|
panic(fmt.Errorf("field error of message dex.v1.EventICAPacketAcknowledged is not mutable"))
|
||
|
|
default:
|
||
|
|
if fd.IsExtension() {
|
||
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: dex.v1.EventICAPacketAcknowledged"))
|
||
|
|
}
|
||
|
|
panic(fmt.Errorf("message dex.v1.EventICAPacketAcknowledged does not contain field %s", fd.FullName()))
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// NewField returns a new value that is assignable to the field
|
||
|
|
// for the given descriptor. For scalars, this returns the default value.
|
||
|
|
// For lists, maps, and messages, this returns a new, empty, mutable value.
|
||
|
|
func (x *fastReflection_EventICAPacketAcknowledged) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
|
switch fd.FullName() {
|
||
|
|
case "dex.v1.EventICAPacketAcknowledged.did":
|
||
|
|
return protoreflect.ValueOfString("")
|
||
|
|
case "dex.v1.EventICAPacketAcknowledged.connection_id":
|
||
|
|
return protoreflect.ValueOfString("")
|
||
|
|
case "dex.v1.EventICAPacketAcknowledged.packet_type":
|
||
|
|
return protoreflect.ValueOfString("")
|
||
|
|
case "dex.v1.EventICAPacketAcknowledged.sequence":
|
||
|
|
return protoreflect.ValueOfUint64(uint64(0))
|
||
|
|
case "dex.v1.EventICAPacketAcknowledged.success":
|
||
|
|
return protoreflect.ValueOfBool(false)
|
||
|
|
case "dex.v1.EventICAPacketAcknowledged.error":
|
||
|
|
return protoreflect.ValueOfString("")
|
||
|
|
default:
|
||
|
|
if fd.IsExtension() {
|
||
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: dex.v1.EventICAPacketAcknowledged"))
|
||
|
|
}
|
||
|
|
panic(fmt.Errorf("message dex.v1.EventICAPacketAcknowledged does not contain field %s", fd.FullName()))
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// WhichOneof reports which field within the oneof is populated,
|
||
|
|
// returning nil if none are populated.
|
||
|
|
// It panics if the oneof descriptor does not belong to this message.
|
||
|
|
func (x *fastReflection_EventICAPacketAcknowledged) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
||
|
|
switch d.FullName() {
|
||
|
|
default:
|
||
|
|
panic(fmt.Errorf("%s is not a oneof field in dex.v1.EventICAPacketAcknowledged", d.FullName()))
|
||
|
|
}
|
||
|
|
panic("unreachable")
|
||
|
|
}
|
||
|
|
|
||
|
|
// GetUnknown retrieves the entire list of unknown fields.
|
||
|
|
// The caller may only mutate the contents of the RawFields
|
||
|
|
// if the mutated bytes are stored back into the message with SetUnknown.
|
||
|
|
func (x *fastReflection_EventICAPacketAcknowledged) GetUnknown() protoreflect.RawFields {
|
||
|
|
return x.unknownFields
|
||
|
|
}
|
||
|
|
|
||
|
|
// SetUnknown stores an entire list of unknown fields.
|
||
|
|
// The raw fields must be syntactically valid according to the wire format.
|
||
|
|
// An implementation may panic if this is not the case.
|
||
|
|
// Once stored, the caller must not mutate the content of the RawFields.
|
||
|
|
// An empty RawFields may be passed to clear the fields.
|
||
|
|
//
|
||
|
|
// SetUnknown is a mutating operation and unsafe for concurrent use.
|
||
|
|
func (x *fastReflection_EventICAPacketAcknowledged) SetUnknown(fields protoreflect.RawFields) {
|
||
|
|
x.unknownFields = fields
|
||
|
|
}
|
||
|
|
|
||
|
|
// IsValid reports whether the message is valid.
|
||
|
|
//
|
||
|
|
// An invalid message is an empty, read-only value.
|
||
|
|
//
|
||
|
|
// An invalid message often corresponds to a nil pointer of the concrete
|
||
|
|
// message type, but the details are implementation dependent.
|
||
|
|
// Validity is not part of the protobuf data model, and may not
|
||
|
|
// be preserved in marshaling or other operations.
|
||
|
|
func (x *fastReflection_EventICAPacketAcknowledged) IsValid() bool {
|
||
|
|
return x != nil
|
||
|
|
}
|
||
|
|
|
||
|
|
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
|
||
|
|
// This method may return nil.
|
||
|
|
//
|
||
|
|
// The returned methods type is identical to
|
||
|
|
// "google.golang.org/protobuf/runtime/protoiface".Methods.
|
||
|
|
// Consult the protoiface package documentation for details.
|
||
|
|
func (x *fastReflection_EventICAPacketAcknowledged) ProtoMethods() *protoiface.Methods {
|
||
|
|
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
|
||
|
|
x := input.Message.Interface().(*EventICAPacketAcknowledged)
|
||
|
|
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.Did)
|
||
|
|
if l > 0 {
|
||
|
|
n += 1 + l + runtime.Sov(uint64(l))
|
||
|
|
}
|
||
|
|
l = len(x.ConnectionId)
|
||
|
|
if l > 0 {
|
||
|
|
n += 1 + l + runtime.Sov(uint64(l))
|
||
|
|
}
|
||
|
|
l = len(x.PacketType)
|
||
|
|
if l > 0 {
|
||
|
|
n += 1 + l + runtime.Sov(uint64(l))
|
||
|
|
}
|
||
|
|
if x.Sequence != 0 {
|
||
|
|
n += 1 + runtime.Sov(uint64(x.Sequence))
|
||
|
|
}
|
||
|
|
if x.Success {
|
||
|
|
n += 2
|
||
|
|
}
|
||
|
|
l = len(x.Error)
|
||
|
|
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().(*EventICAPacketAcknowledged)
|
||
|
|
if x == nil {
|
||
|
|
return protoiface.MarshalOutput{
|
||
|
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
||
|
|
Buf: input.Buf,
|
||
|
|
}, nil
|
||
|
|
}
|
||
|
|
options := runtime.MarshalInputToOptions(input)
|
||
|
|
_ = options
|
||
|
|
size := options.Size(x)
|
||
|
|
dAtA := make([]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.Error) > 0 {
|
||
|
|
i -= len(x.Error)
|
||
|
|
copy(dAtA[i:], x.Error)
|
||
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Error)))
|
||
|
|
i--
|
||
|
|
dAtA[i] = 0x32
|
||
|
|
}
|
||
|
|
if x.Success {
|
||
|
|
i--
|
||
|
|
if x.Success {
|
||
|
|
dAtA[i] = 1
|
||
|
|
} else {
|
||
|
|
dAtA[i] = 0
|
||
|
|
}
|
||
|
|
i--
|
||
|
|
dAtA[i] = 0x28
|
||
|
|
}
|
||
|
|
if x.Sequence != 0 {
|
||
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(x.Sequence))
|
||
|
|
i--
|
||
|
|
dAtA[i] = 0x20
|
||
|
|
}
|
||
|
|
if len(x.PacketType) > 0 {
|
||
|
|
i -= len(x.PacketType)
|
||
|
|
copy(dAtA[i:], x.PacketType)
|
||
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.PacketType)))
|
||
|
|
i--
|
||
|
|
dAtA[i] = 0x1a
|
||
|
|
}
|
||
|
|
if len(x.ConnectionId) > 0 {
|
||
|
|
i -= len(x.ConnectionId)
|
||
|
|
copy(dAtA[i:], x.ConnectionId)
|
||
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ConnectionId)))
|
||
|
|
i--
|
||
|
|
dAtA[i] = 0x12
|
||
|
|
}
|
||
|
|
if len(x.Did) > 0 {
|
||
|
|
i -= len(x.Did)
|
||
|
|
copy(dAtA[i:], x.Did)
|
||
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Did)))
|
||
|
|
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().(*EventICAPacketAcknowledged)
|
||
|
|
if x == nil {
|
||
|
|
return protoiface.UnmarshalOutput{
|
||
|
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
||
|
|
Flags: input.Flags,
|
||
|
|
}, nil
|
||
|
|
}
|
||
|
|
options := runtime.UnmarshalInputToOptions(input)
|
||
|
|
_ = options
|
||
|
|
dAtA := input.Buf
|
||
|
|
l := len(dAtA)
|
||
|
|
iNdEx := 0
|
||
|
|
for iNdEx < l {
|
||
|
|
preIndex := iNdEx
|
||
|
|
var wire uint64
|
||
|
|
for shift := uint(0); ; shift += 7 {
|
||
|
|
if shift >= 64 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
|
||
|
|
}
|
||
|
|
if iNdEx >= l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
b := dAtA[iNdEx]
|
||
|
|
iNdEx++
|
||
|
|
wire |= uint64(b&0x7F) << shift
|
||
|
|
if b < 0x80 {
|
||
|
|
break
|
||
|
|
}
|
||
|
|
}
|
||
|
|
fieldNum := int32(wire >> 3)
|
||
|
|
wireType := int(wire & 0x7)
|
||
|
|
if wireType == 4 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventICAPacketAcknowledged: wiretype end group for non-group")
|
||
|
|
}
|
||
|
|
if fieldNum <= 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventICAPacketAcknowledged: 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 Did", wireType)
|
||
|
|
}
|
||
|
|
var stringLen uint64
|
||
|
|
for shift := uint(0); ; shift += 7 {
|
||
|
|
if shift >= 64 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
|
||
|
|
}
|
||
|
|
if iNdEx >= l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
b := dAtA[iNdEx]
|
||
|
|
iNdEx++
|
||
|
|
stringLen |= uint64(b&0x7F) << shift
|
||
|
|
if b < 0x80 {
|
||
|
|
break
|
||
|
|
}
|
||
|
|
}
|
||
|
|
intStringLen := int(stringLen)
|
||
|
|
if intStringLen < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
postIndex := iNdEx + intStringLen
|
||
|
|
if postIndex < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
if postIndex > l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
x.Did = 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 ConnectionId", wireType)
|
||
|
|
}
|
||
|
|
var stringLen uint64
|
||
|
|
for shift := uint(0); ; shift += 7 {
|
||
|
|
if shift >= 64 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
|
||
|
|
}
|
||
|
|
if iNdEx >= l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
b := dAtA[iNdEx]
|
||
|
|
iNdEx++
|
||
|
|
stringLen |= uint64(b&0x7F) << shift
|
||
|
|
if b < 0x80 {
|
||
|
|
break
|
||
|
|
}
|
||
|
|
}
|
||
|
|
intStringLen := int(stringLen)
|
||
|
|
if intStringLen < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
postIndex := iNdEx + intStringLen
|
||
|
|
if postIndex < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
if postIndex > l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
x.ConnectionId = 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 PacketType", wireType)
|
||
|
|
}
|
||
|
|
var stringLen uint64
|
||
|
|
for shift := uint(0); ; shift += 7 {
|
||
|
|
if shift >= 64 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
|
||
|
|
}
|
||
|
|
if iNdEx >= l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
b := dAtA[iNdEx]
|
||
|
|
iNdEx++
|
||
|
|
stringLen |= uint64(b&0x7F) << shift
|
||
|
|
if b < 0x80 {
|
||
|
|
break
|
||
|
|
}
|
||
|
|
}
|
||
|
|
intStringLen := int(stringLen)
|
||
|
|
if intStringLen < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
postIndex := iNdEx + intStringLen
|
||
|
|
if postIndex < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
if postIndex > l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
x.PacketType = string(dAtA[iNdEx:postIndex])
|
||
|
|
iNdEx = postIndex
|
||
|
|
case 4:
|
||
|
|
if wireType != 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Sequence", wireType)
|
||
|
|
}
|
||
|
|
x.Sequence = 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.Sequence |= uint64(b&0x7F) << shift
|
||
|
|
if b < 0x80 {
|
||
|
|
break
|
||
|
|
}
|
||
|
|
}
|
||
|
|
case 5:
|
||
|
|
if wireType != 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Success", wireType)
|
||
|
|
}
|
||
|
|
var v int
|
||
|
|
for shift := uint(0); ; shift += 7 {
|
||
|
|
if shift >= 64 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
|
||
|
|
}
|
||
|
|
if iNdEx >= l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
b := dAtA[iNdEx]
|
||
|
|
iNdEx++
|
||
|
|
v |= int(b&0x7F) << shift
|
||
|
|
if b < 0x80 {
|
||
|
|
break
|
||
|
|
}
|
||
|
|
}
|
||
|
|
x.Success = bool(v != 0)
|
||
|
|
case 6:
|
||
|
|
if wireType != 2 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Error", wireType)
|
||
|
|
}
|
||
|
|
var stringLen uint64
|
||
|
|
for shift := uint(0); ; shift += 7 {
|
||
|
|
if shift >= 64 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
|
||
|
|
}
|
||
|
|
if iNdEx >= l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
b := dAtA[iNdEx]
|
||
|
|
iNdEx++
|
||
|
|
stringLen |= uint64(b&0x7F) << shift
|
||
|
|
if b < 0x80 {
|
||
|
|
break
|
||
|
|
}
|
||
|
|
}
|
||
|
|
intStringLen := int(stringLen)
|
||
|
|
if intStringLen < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
postIndex := iNdEx + intStringLen
|
||
|
|
if postIndex < 0 {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
|
}
|
||
|
|
if postIndex > l {
|
||
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||
|
|
}
|
||
|
|
x.Error = 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: dex/v1/events.proto
|
||
|
|
|
||
|
|
const (
|
||
|
|
// Verify that this generated code is sufficiently up-to-date.
|
||
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
||
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
||
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||
|
|
)
|
||
|
|
|
||
|
|
// EventDEXAccountRegistered is emitted when a new DEX account is registered
|
||
|
|
type EventDEXAccountRegistered struct {
|
||
|
|
state protoimpl.MessageState
|
||
|
|
sizeCache protoimpl.SizeCache
|
||
|
|
unknownFields protoimpl.UnknownFields
|
||
|
|
|
||
|
|
// DID of the account owner
|
||
|
|
Did string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty"`
|
||
|
|
// IBC connection ID
|
||
|
|
ConnectionId string `protobuf:"bytes,2,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"`
|
||
|
|
// Generated port ID
|
||
|
|
PortId string `protobuf:"bytes,3,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"`
|
||
|
|
// Remote account address (when available)
|
||
|
|
AccountAddress string `protobuf:"bytes,4,opt,name=account_address,json=accountAddress,proto3" json:"account_address,omitempty"`
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *EventDEXAccountRegistered) Reset() {
|
||
|
|
*x = EventDEXAccountRegistered{}
|
||
|
|
if protoimpl.UnsafeEnabled {
|
||
|
|
mi := &file_dex_v1_events_proto_msgTypes[0]
|
||
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
|
ms.StoreMessageInfo(mi)
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *EventDEXAccountRegistered) String() string {
|
||
|
|
return protoimpl.X.MessageStringOf(x)
|
||
|
|
}
|
||
|
|
|
||
|
|
func (*EventDEXAccountRegistered) ProtoMessage() {}
|
||
|
|
|
||
|
|
// Deprecated: Use EventDEXAccountRegistered.ProtoReflect.Descriptor instead.
|
||
|
|
func (*EventDEXAccountRegistered) Descriptor() ([]byte, []int) {
|
||
|
|
return file_dex_v1_events_proto_rawDescGZIP(), []int{0}
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *EventDEXAccountRegistered) GetDid() string {
|
||
|
|
if x != nil {
|
||
|
|
return x.Did
|
||
|
|
}
|
||
|
|
return ""
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *EventDEXAccountRegistered) GetConnectionId() string {
|
||
|
|
if x != nil {
|
||
|
|
return x.ConnectionId
|
||
|
|
}
|
||
|
|
return ""
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *EventDEXAccountRegistered) GetPortId() string {
|
||
|
|
if x != nil {
|
||
|
|
return x.PortId
|
||
|
|
}
|
||
|
|
return ""
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *EventDEXAccountRegistered) GetAccountAddress() string {
|
||
|
|
if x != nil {
|
||
|
|
return x.AccountAddress
|
||
|
|
}
|
||
|
|
return ""
|
||
|
|
}
|
||
|
|
|
||
|
|
// EventSwapExecuted is emitted when a swap is executed
|
||
|
|
type EventSwapExecuted struct {
|
||
|
|
state protoimpl.MessageState
|
||
|
|
sizeCache protoimpl.SizeCache
|
||
|
|
unknownFields protoimpl.UnknownFields
|
||
|
|
|
||
|
|
// DID of the trader
|
||
|
|
Did string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty"`
|
||
|
|
// IBC connection ID
|
||
|
|
ConnectionId string `protobuf:"bytes,2,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"`
|
||
|
|
// Source token and amount
|
||
|
|
Source *v1beta1.Coin `protobuf:"bytes,3,opt,name=source,proto3" json:"source,omitempty"`
|
||
|
|
// Target token and amount received
|
||
|
|
Target *v1beta1.Coin `protobuf:"bytes,4,opt,name=target,proto3" json:"target,omitempty"`
|
||
|
|
// Transaction hash on remote chain
|
||
|
|
TxHash string `protobuf:"bytes,5,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"`
|
||
|
|
// IBC packet sequence
|
||
|
|
Sequence uint64 `protobuf:"varint,6,opt,name=sequence,proto3" json:"sequence,omitempty"`
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *EventSwapExecuted) Reset() {
|
||
|
|
*x = EventSwapExecuted{}
|
||
|
|
if protoimpl.UnsafeEnabled {
|
||
|
|
mi := &file_dex_v1_events_proto_msgTypes[1]
|
||
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
|
ms.StoreMessageInfo(mi)
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *EventSwapExecuted) String() string {
|
||
|
|
return protoimpl.X.MessageStringOf(x)
|
||
|
|
}
|
||
|
|
|
||
|
|
func (*EventSwapExecuted) ProtoMessage() {}
|
||
|
|
|
||
|
|
// Deprecated: Use EventSwapExecuted.ProtoReflect.Descriptor instead.
|
||
|
|
func (*EventSwapExecuted) Descriptor() ([]byte, []int) {
|
||
|
|
return file_dex_v1_events_proto_rawDescGZIP(), []int{1}
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *EventSwapExecuted) GetDid() string {
|
||
|
|
if x != nil {
|
||
|
|
return x.Did
|
||
|
|
}
|
||
|
|
return ""
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *EventSwapExecuted) GetConnectionId() string {
|
||
|
|
if x != nil {
|
||
|
|
return x.ConnectionId
|
||
|
|
}
|
||
|
|
return ""
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *EventSwapExecuted) GetSource() *v1beta1.Coin {
|
||
|
|
if x != nil {
|
||
|
|
return x.Source
|
||
|
|
}
|
||
|
|
return nil
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *EventSwapExecuted) GetTarget() *v1beta1.Coin {
|
||
|
|
if x != nil {
|
||
|
|
return x.Target
|
||
|
|
}
|
||
|
|
return nil
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *EventSwapExecuted) GetTxHash() string {
|
||
|
|
if x != nil {
|
||
|
|
return x.TxHash
|
||
|
|
}
|
||
|
|
return ""
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *EventSwapExecuted) GetSequence() uint64 {
|
||
|
|
if x != nil {
|
||
|
|
return x.Sequence
|
||
|
|
}
|
||
|
|
return 0
|
||
|
|
}
|
||
|
|
|
||
|
|
// EventLiquidityProvided is emitted when liquidity is added
|
||
|
|
type EventLiquidityProvided struct {
|
||
|
|
state protoimpl.MessageState
|
||
|
|
sizeCache protoimpl.SizeCache
|
||
|
|
unknownFields protoimpl.UnknownFields
|
||
|
|
|
||
|
|
// DID of the liquidity provider
|
||
|
|
Did string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty"`
|
||
|
|
// IBC connection ID
|
||
|
|
ConnectionId string `protobuf:"bytes,2,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"`
|
||
|
|
// Pool ID
|
||
|
|
PoolId string `protobuf:"bytes,3,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"`
|
||
|
|
// Assets provided
|
||
|
|
Assets []*v1beta1.Coin `protobuf:"bytes,4,rep,name=assets,proto3" json:"assets,omitempty"`
|
||
|
|
// Shares received
|
||
|
|
SharesReceived string `protobuf:"bytes,5,opt,name=shares_received,json=sharesReceived,proto3" json:"shares_received,omitempty"`
|
||
|
|
// Transaction hash on remote chain
|
||
|
|
TxHash string `protobuf:"bytes,6,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"`
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *EventLiquidityProvided) Reset() {
|
||
|
|
*x = EventLiquidityProvided{}
|
||
|
|
if protoimpl.UnsafeEnabled {
|
||
|
|
mi := &file_dex_v1_events_proto_msgTypes[2]
|
||
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
|
ms.StoreMessageInfo(mi)
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *EventLiquidityProvided) String() string {
|
||
|
|
return protoimpl.X.MessageStringOf(x)
|
||
|
|
}
|
||
|
|
|
||
|
|
func (*EventLiquidityProvided) ProtoMessage() {}
|
||
|
|
|
||
|
|
// Deprecated: Use EventLiquidityProvided.ProtoReflect.Descriptor instead.
|
||
|
|
func (*EventLiquidityProvided) Descriptor() ([]byte, []int) {
|
||
|
|
return file_dex_v1_events_proto_rawDescGZIP(), []int{2}
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *EventLiquidityProvided) GetDid() string {
|
||
|
|
if x != nil {
|
||
|
|
return x.Did
|
||
|
|
}
|
||
|
|
return ""
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *EventLiquidityProvided) GetConnectionId() string {
|
||
|
|
if x != nil {
|
||
|
|
return x.ConnectionId
|
||
|
|
}
|
||
|
|
return ""
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *EventLiquidityProvided) GetPoolId() string {
|
||
|
|
if x != nil {
|
||
|
|
return x.PoolId
|
||
|
|
}
|
||
|
|
return ""
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *EventLiquidityProvided) GetAssets() []*v1beta1.Coin {
|
||
|
|
if x != nil {
|
||
|
|
return x.Assets
|
||
|
|
}
|
||
|
|
return nil
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *EventLiquidityProvided) GetSharesReceived() string {
|
||
|
|
if x != nil {
|
||
|
|
return x.SharesReceived
|
||
|
|
}
|
||
|
|
return ""
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *EventLiquidityProvided) GetTxHash() string {
|
||
|
|
if x != nil {
|
||
|
|
return x.TxHash
|
||
|
|
}
|
||
|
|
return ""
|
||
|
|
}
|
||
|
|
|
||
|
|
// EventLiquidityRemoved is emitted when liquidity is removed
|
||
|
|
type EventLiquidityRemoved struct {
|
||
|
|
state protoimpl.MessageState
|
||
|
|
sizeCache protoimpl.SizeCache
|
||
|
|
unknownFields protoimpl.UnknownFields
|
||
|
|
|
||
|
|
// DID of the liquidity provider
|
||
|
|
Did string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty"`
|
||
|
|
// IBC connection ID
|
||
|
|
ConnectionId string `protobuf:"bytes,2,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"`
|
||
|
|
// Pool ID
|
||
|
|
PoolId string `protobuf:"bytes,3,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"`
|
||
|
|
// Shares removed
|
||
|
|
SharesRemoved string `protobuf:"bytes,4,opt,name=shares_removed,json=sharesRemoved,proto3" json:"shares_removed,omitempty"`
|
||
|
|
// Assets received
|
||
|
|
Assets []*v1beta1.Coin `protobuf:"bytes,5,rep,name=assets,proto3" json:"assets,omitempty"`
|
||
|
|
// Transaction hash on remote chain
|
||
|
|
TxHash string `protobuf:"bytes,6,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"`
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *EventLiquidityRemoved) Reset() {
|
||
|
|
*x = EventLiquidityRemoved{}
|
||
|
|
if protoimpl.UnsafeEnabled {
|
||
|
|
mi := &file_dex_v1_events_proto_msgTypes[3]
|
||
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
|
ms.StoreMessageInfo(mi)
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *EventLiquidityRemoved) String() string {
|
||
|
|
return protoimpl.X.MessageStringOf(x)
|
||
|
|
}
|
||
|
|
|
||
|
|
func (*EventLiquidityRemoved) ProtoMessage() {}
|
||
|
|
|
||
|
|
// Deprecated: Use EventLiquidityRemoved.ProtoReflect.Descriptor instead.
|
||
|
|
func (*EventLiquidityRemoved) Descriptor() ([]byte, []int) {
|
||
|
|
return file_dex_v1_events_proto_rawDescGZIP(), []int{3}
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *EventLiquidityRemoved) GetDid() string {
|
||
|
|
if x != nil {
|
||
|
|
return x.Did
|
||
|
|
}
|
||
|
|
return ""
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *EventLiquidityRemoved) GetConnectionId() string {
|
||
|
|
if x != nil {
|
||
|
|
return x.ConnectionId
|
||
|
|
}
|
||
|
|
return ""
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *EventLiquidityRemoved) GetPoolId() string {
|
||
|
|
if x != nil {
|
||
|
|
return x.PoolId
|
||
|
|
}
|
||
|
|
return ""
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *EventLiquidityRemoved) GetSharesRemoved() string {
|
||
|
|
if x != nil {
|
||
|
|
return x.SharesRemoved
|
||
|
|
}
|
||
|
|
return ""
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *EventLiquidityRemoved) GetAssets() []*v1beta1.Coin {
|
||
|
|
if x != nil {
|
||
|
|
return x.Assets
|
||
|
|
}
|
||
|
|
return nil
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *EventLiquidityRemoved) GetTxHash() string {
|
||
|
|
if x != nil {
|
||
|
|
return x.TxHash
|
||
|
|
}
|
||
|
|
return ""
|
||
|
|
}
|
||
|
|
|
||
|
|
// EventOrderCreated is emitted when a limit order is created
|
||
|
|
type EventOrderCreated struct {
|
||
|
|
state protoimpl.MessageState
|
||
|
|
sizeCache protoimpl.SizeCache
|
||
|
|
unknownFields protoimpl.UnknownFields
|
||
|
|
|
||
|
|
// DID of the trader
|
||
|
|
Did string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty"`
|
||
|
|
// IBC connection ID
|
||
|
|
ConnectionId string `protobuf:"bytes,2,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"`
|
||
|
|
// Order ID on remote chain
|
||
|
|
OrderId string `protobuf:"bytes,3,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
|
||
|
|
// Order details
|
||
|
|
SellDenom string `protobuf:"bytes,4,opt,name=sell_denom,json=sellDenom,proto3" json:"sell_denom,omitempty"`
|
||
|
|
BuyDenom string `protobuf:"bytes,5,opt,name=buy_denom,json=buyDenom,proto3" json:"buy_denom,omitempty"`
|
||
|
|
Amount string `protobuf:"bytes,6,opt,name=amount,proto3" json:"amount,omitempty"`
|
||
|
|
Price string `protobuf:"bytes,7,opt,name=price,proto3" json:"price,omitempty"`
|
||
|
|
// Transaction hash on remote chain
|
||
|
|
TxHash string `protobuf:"bytes,8,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"`
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *EventOrderCreated) Reset() {
|
||
|
|
*x = EventOrderCreated{}
|
||
|
|
if protoimpl.UnsafeEnabled {
|
||
|
|
mi := &file_dex_v1_events_proto_msgTypes[4]
|
||
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
|
ms.StoreMessageInfo(mi)
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *EventOrderCreated) String() string {
|
||
|
|
return protoimpl.X.MessageStringOf(x)
|
||
|
|
}
|
||
|
|
|
||
|
|
func (*EventOrderCreated) ProtoMessage() {}
|
||
|
|
|
||
|
|
// Deprecated: Use EventOrderCreated.ProtoReflect.Descriptor instead.
|
||
|
|
func (*EventOrderCreated) Descriptor() ([]byte, []int) {
|
||
|
|
return file_dex_v1_events_proto_rawDescGZIP(), []int{4}
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *EventOrderCreated) GetDid() string {
|
||
|
|
if x != nil {
|
||
|
|
return x.Did
|
||
|
|
}
|
||
|
|
return ""
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *EventOrderCreated) GetConnectionId() string {
|
||
|
|
if x != nil {
|
||
|
|
return x.ConnectionId
|
||
|
|
}
|
||
|
|
return ""
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *EventOrderCreated) GetOrderId() string {
|
||
|
|
if x != nil {
|
||
|
|
return x.OrderId
|
||
|
|
}
|
||
|
|
return ""
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *EventOrderCreated) GetSellDenom() string {
|
||
|
|
if x != nil {
|
||
|
|
return x.SellDenom
|
||
|
|
}
|
||
|
|
return ""
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *EventOrderCreated) GetBuyDenom() string {
|
||
|
|
if x != nil {
|
||
|
|
return x.BuyDenom
|
||
|
|
}
|
||
|
|
return ""
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *EventOrderCreated) GetAmount() string {
|
||
|
|
if x != nil {
|
||
|
|
return x.Amount
|
||
|
|
}
|
||
|
|
return ""
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *EventOrderCreated) GetPrice() string {
|
||
|
|
if x != nil {
|
||
|
|
return x.Price
|
||
|
|
}
|
||
|
|
return ""
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *EventOrderCreated) GetTxHash() string {
|
||
|
|
if x != nil {
|
||
|
|
return x.TxHash
|
||
|
|
}
|
||
|
|
return ""
|
||
|
|
}
|
||
|
|
|
||
|
|
// EventOrderCancelled is emitted when an order is cancelled
|
||
|
|
type EventOrderCancelled struct {
|
||
|
|
state protoimpl.MessageState
|
||
|
|
sizeCache protoimpl.SizeCache
|
||
|
|
unknownFields protoimpl.UnknownFields
|
||
|
|
|
||
|
|
// DID of the trader
|
||
|
|
Did string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty"`
|
||
|
|
// IBC connection ID
|
||
|
|
ConnectionId string `protobuf:"bytes,2,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"`
|
||
|
|
// Order ID that was cancelled
|
||
|
|
OrderId string `protobuf:"bytes,3,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
|
||
|
|
// Transaction hash on remote chain
|
||
|
|
TxHash string `protobuf:"bytes,4,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"`
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *EventOrderCancelled) Reset() {
|
||
|
|
*x = EventOrderCancelled{}
|
||
|
|
if protoimpl.UnsafeEnabled {
|
||
|
|
mi := &file_dex_v1_events_proto_msgTypes[5]
|
||
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
|
ms.StoreMessageInfo(mi)
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *EventOrderCancelled) String() string {
|
||
|
|
return protoimpl.X.MessageStringOf(x)
|
||
|
|
}
|
||
|
|
|
||
|
|
func (*EventOrderCancelled) ProtoMessage() {}
|
||
|
|
|
||
|
|
// Deprecated: Use EventOrderCancelled.ProtoReflect.Descriptor instead.
|
||
|
|
func (*EventOrderCancelled) Descriptor() ([]byte, []int) {
|
||
|
|
return file_dex_v1_events_proto_rawDescGZIP(), []int{5}
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *EventOrderCancelled) GetDid() string {
|
||
|
|
if x != nil {
|
||
|
|
return x.Did
|
||
|
|
}
|
||
|
|
return ""
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *EventOrderCancelled) GetConnectionId() string {
|
||
|
|
if x != nil {
|
||
|
|
return x.ConnectionId
|
||
|
|
}
|
||
|
|
return ""
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *EventOrderCancelled) GetOrderId() string {
|
||
|
|
if x != nil {
|
||
|
|
return x.OrderId
|
||
|
|
}
|
||
|
|
return ""
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *EventOrderCancelled) GetTxHash() string {
|
||
|
|
if x != nil {
|
||
|
|
return x.TxHash
|
||
|
|
}
|
||
|
|
return ""
|
||
|
|
}
|
||
|
|
|
||
|
|
// EventOrderFilled is emitted when an order is filled
|
||
|
|
type EventOrderFilled struct {
|
||
|
|
state protoimpl.MessageState
|
||
|
|
sizeCache protoimpl.SizeCache
|
||
|
|
unknownFields protoimpl.UnknownFields
|
||
|
|
|
||
|
|
// DID of the trader
|
||
|
|
Did string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty"`
|
||
|
|
// IBC connection ID
|
||
|
|
ConnectionId string `protobuf:"bytes,2,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"`
|
||
|
|
// Order ID that was filled
|
||
|
|
OrderId string `protobuf:"bytes,3,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
|
||
|
|
// Fill details
|
||
|
|
FillAmount string `protobuf:"bytes,4,opt,name=fill_amount,json=fillAmount,proto3" json:"fill_amount,omitempty"`
|
||
|
|
FillPrice string `protobuf:"bytes,5,opt,name=fill_price,json=fillPrice,proto3" json:"fill_price,omitempty"`
|
||
|
|
// Transaction hash on remote chain
|
||
|
|
TxHash string `protobuf:"bytes,6,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"`
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *EventOrderFilled) Reset() {
|
||
|
|
*x = EventOrderFilled{}
|
||
|
|
if protoimpl.UnsafeEnabled {
|
||
|
|
mi := &file_dex_v1_events_proto_msgTypes[6]
|
||
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
|
ms.StoreMessageInfo(mi)
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *EventOrderFilled) String() string {
|
||
|
|
return protoimpl.X.MessageStringOf(x)
|
||
|
|
}
|
||
|
|
|
||
|
|
func (*EventOrderFilled) ProtoMessage() {}
|
||
|
|
|
||
|
|
// Deprecated: Use EventOrderFilled.ProtoReflect.Descriptor instead.
|
||
|
|
func (*EventOrderFilled) Descriptor() ([]byte, []int) {
|
||
|
|
return file_dex_v1_events_proto_rawDescGZIP(), []int{6}
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *EventOrderFilled) GetDid() string {
|
||
|
|
if x != nil {
|
||
|
|
return x.Did
|
||
|
|
}
|
||
|
|
return ""
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *EventOrderFilled) GetConnectionId() string {
|
||
|
|
if x != nil {
|
||
|
|
return x.ConnectionId
|
||
|
|
}
|
||
|
|
return ""
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *EventOrderFilled) GetOrderId() string {
|
||
|
|
if x != nil {
|
||
|
|
return x.OrderId
|
||
|
|
}
|
||
|
|
return ""
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *EventOrderFilled) GetFillAmount() string {
|
||
|
|
if x != nil {
|
||
|
|
return x.FillAmount
|
||
|
|
}
|
||
|
|
return ""
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *EventOrderFilled) GetFillPrice() string {
|
||
|
|
if x != nil {
|
||
|
|
return x.FillPrice
|
||
|
|
}
|
||
|
|
return ""
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *EventOrderFilled) GetTxHash() string {
|
||
|
|
if x != nil {
|
||
|
|
return x.TxHash
|
||
|
|
}
|
||
|
|
return ""
|
||
|
|
}
|
||
|
|
|
||
|
|
// EventICAPacketSent is emitted when an ICA packet is sent
|
||
|
|
type EventICAPacketSent struct {
|
||
|
|
state protoimpl.MessageState
|
||
|
|
sizeCache protoimpl.SizeCache
|
||
|
|
unknownFields protoimpl.UnknownFields
|
||
|
|
|
||
|
|
// DID of the sender
|
||
|
|
Did string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty"`
|
||
|
|
// IBC connection ID
|
||
|
|
ConnectionId string `protobuf:"bytes,2,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"`
|
||
|
|
// Packet type (swap, liquidity, order, etc.)
|
||
|
|
PacketType string `protobuf:"bytes,3,opt,name=packet_type,json=packetType,proto3" json:"packet_type,omitempty"`
|
||
|
|
// IBC packet sequence
|
||
|
|
Sequence uint64 `protobuf:"varint,4,opt,name=sequence,proto3" json:"sequence,omitempty"`
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *EventICAPacketSent) Reset() {
|
||
|
|
*x = EventICAPacketSent{}
|
||
|
|
if protoimpl.UnsafeEnabled {
|
||
|
|
mi := &file_dex_v1_events_proto_msgTypes[7]
|
||
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
|
ms.StoreMessageInfo(mi)
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *EventICAPacketSent) String() string {
|
||
|
|
return protoimpl.X.MessageStringOf(x)
|
||
|
|
}
|
||
|
|
|
||
|
|
func (*EventICAPacketSent) ProtoMessage() {}
|
||
|
|
|
||
|
|
// Deprecated: Use EventICAPacketSent.ProtoReflect.Descriptor instead.
|
||
|
|
func (*EventICAPacketSent) Descriptor() ([]byte, []int) {
|
||
|
|
return file_dex_v1_events_proto_rawDescGZIP(), []int{7}
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *EventICAPacketSent) GetDid() string {
|
||
|
|
if x != nil {
|
||
|
|
return x.Did
|
||
|
|
}
|
||
|
|
return ""
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *EventICAPacketSent) GetConnectionId() string {
|
||
|
|
if x != nil {
|
||
|
|
return x.ConnectionId
|
||
|
|
}
|
||
|
|
return ""
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *EventICAPacketSent) GetPacketType() string {
|
||
|
|
if x != nil {
|
||
|
|
return x.PacketType
|
||
|
|
}
|
||
|
|
return ""
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *EventICAPacketSent) GetSequence() uint64 {
|
||
|
|
if x != nil {
|
||
|
|
return x.Sequence
|
||
|
|
}
|
||
|
|
return 0
|
||
|
|
}
|
||
|
|
|
||
|
|
// EventICAPacketAcknowledged is emitted when an ICA packet is acknowledged
|
||
|
|
type EventICAPacketAcknowledged struct {
|
||
|
|
state protoimpl.MessageState
|
||
|
|
sizeCache protoimpl.SizeCache
|
||
|
|
unknownFields protoimpl.UnknownFields
|
||
|
|
|
||
|
|
// DID of the sender
|
||
|
|
Did string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty"`
|
||
|
|
// IBC connection ID
|
||
|
|
ConnectionId string `protobuf:"bytes,2,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"`
|
||
|
|
// Packet type
|
||
|
|
PacketType string `protobuf:"bytes,3,opt,name=packet_type,json=packetType,proto3" json:"packet_type,omitempty"`
|
||
|
|
// IBC packet sequence
|
||
|
|
Sequence uint64 `protobuf:"varint,4,opt,name=sequence,proto3" json:"sequence,omitempty"`
|
||
|
|
// Success status
|
||
|
|
Success bool `protobuf:"varint,5,opt,name=success,proto3" json:"success,omitempty"`
|
||
|
|
// Error message if failed
|
||
|
|
Error string `protobuf:"bytes,6,opt,name=error,proto3" json:"error,omitempty"`
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *EventICAPacketAcknowledged) Reset() {
|
||
|
|
*x = EventICAPacketAcknowledged{}
|
||
|
|
if protoimpl.UnsafeEnabled {
|
||
|
|
mi := &file_dex_v1_events_proto_msgTypes[8]
|
||
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
|
ms.StoreMessageInfo(mi)
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *EventICAPacketAcknowledged) String() string {
|
||
|
|
return protoimpl.X.MessageStringOf(x)
|
||
|
|
}
|
||
|
|
|
||
|
|
func (*EventICAPacketAcknowledged) ProtoMessage() {}
|
||
|
|
|
||
|
|
// Deprecated: Use EventICAPacketAcknowledged.ProtoReflect.Descriptor instead.
|
||
|
|
func (*EventICAPacketAcknowledged) Descriptor() ([]byte, []int) {
|
||
|
|
return file_dex_v1_events_proto_rawDescGZIP(), []int{8}
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *EventICAPacketAcknowledged) GetDid() string {
|
||
|
|
if x != nil {
|
||
|
|
return x.Did
|
||
|
|
}
|
||
|
|
return ""
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *EventICAPacketAcknowledged) GetConnectionId() string {
|
||
|
|
if x != nil {
|
||
|
|
return x.ConnectionId
|
||
|
|
}
|
||
|
|
return ""
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *EventICAPacketAcknowledged) GetPacketType() string {
|
||
|
|
if x != nil {
|
||
|
|
return x.PacketType
|
||
|
|
}
|
||
|
|
return ""
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *EventICAPacketAcknowledged) GetSequence() uint64 {
|
||
|
|
if x != nil {
|
||
|
|
return x.Sequence
|
||
|
|
}
|
||
|
|
return 0
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *EventICAPacketAcknowledged) GetSuccess() bool {
|
||
|
|
if x != nil {
|
||
|
|
return x.Success
|
||
|
|
}
|
||
|
|
return false
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *EventICAPacketAcknowledged) GetError() string {
|
||
|
|
if x != nil {
|
||
|
|
return x.Error
|
||
|
|
}
|
||
|
|
return ""
|
||
|
|
}
|
||
|
|
|
||
|
|
var File_dex_v1_events_proto protoreflect.FileDescriptor
|
||
|
|
|
||
|
|
var file_dex_v1_events_proto_rawDesc = []byte{
|
||
|
|
0x0a, 0x13, 0x64, 0x65, 0x78, 0x2f, 0x76, 0x31, 0x2f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e,
|
||
|
|
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x64, 0x65, 0x78, 0x2e, 0x76, 0x31, 0x1a, 0x14, 0x67,
|
||
|
|
0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72,
|
||
|
|
0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65,
|
||
|
|
0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x63, 0x6f, 0x69, 0x6e, 0x2e, 0x70, 0x72,
|
||
|
|
0x6f, 0x74, 0x6f, 0x22, 0x94, 0x01, 0x0a, 0x19, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x44, 0x45, 0x58,
|
||
|
|
0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x65,
|
||
|
|
0x64, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03,
|
||
|
|
0x64, 0x69, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f,
|
||
|
|
0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x6f, 0x6e, 0x6e,
|
||
|
|
0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x70, 0x6f, 0x72, 0x74,
|
||
|
|
0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x6f, 0x72, 0x74, 0x49,
|
||
|
|
0x64, 0x12, 0x27, 0x0a, 0x0f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x61, 0x64, 0x64,
|
||
|
|
0x72, 0x65, 0x73, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x61, 0x63, 0x63, 0x6f,
|
||
|
|
0x75, 0x6e, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0xf1, 0x01, 0x0a, 0x11, 0x45,
|
||
|
|
0x76, 0x65, 0x6e, 0x74, 0x53, 0x77, 0x61, 0x70, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x64,
|
||
|
|
0x12, 0x10, 0x0a, 0x03, 0x64, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x64,
|
||
|
|
0x69, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e,
|
||
|
|
0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x6f, 0x6e, 0x6e, 0x65,
|
||
|
|
0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x37, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63,
|
||
|
|
0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73,
|
||
|
|
0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f,
|
||
|
|
0x69, 0x6e, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
|
||
|
|
0x12, 0x37, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b,
|
||
|
|
0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,
|
||
|
|
0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x42, 0x04, 0xc8, 0xde, 0x1f,
|
||
|
|
0x00, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x74, 0x78, 0x5f,
|
||
|
|
0x68, 0x61, 0x73, 0x68, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x78, 0x48, 0x61,
|
||
|
|
0x73, 0x68, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x06,
|
||
|
|
0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x22, 0x8f,
|
||
|
|
0x02, 0x0a, 0x16, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x71, 0x75, 0x69, 0x64, 0x69, 0x74,
|
||
|
|
0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x69, 0x64,
|
||
|
|
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x64, 0x69, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x63,
|
||
|
|
0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01,
|
||
|
|
0x28, 0x09, 0x52, 0x0c, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64,
|
||
|
|
0x12, 0x17, 0x0a, 0x07, 0x70, 0x6f, 0x6f, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28,
|
||
|
|
0x09, 0x52, 0x06, 0x70, 0x6f, 0x6f, 0x6c, 0x49, 0x64, 0x12, 0x63, 0x0a, 0x06, 0x61, 0x73, 0x73,
|
||
|
|
0x65, 0x74, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d,
|
||
|
|
0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e,
|
||
|
|
0x43, 0x6f, 0x69, 0x6e, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xaa, 0xdf, 0x1f, 0x28, 0x67, 0x69,
|
||
|
|
0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f,
|
||
|
|
0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73,
|
||
|
|
0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x73, 0x52, 0x06, 0x61, 0x73, 0x73, 0x65, 0x74, 0x73, 0x12, 0x27,
|
||
|
|
0x0a, 0x0f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x5f, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65,
|
||
|
|
0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x52,
|
||
|
|
0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x74, 0x78, 0x5f, 0x68, 0x61,
|
||
|
|
0x73, 0x68, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x78, 0x48, 0x61, 0x73, 0x68,
|
||
|
|
0x22, 0x8c, 0x02, 0x0a, 0x15, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x71, 0x75, 0x69, 0x64,
|
||
|
|
0x69, 0x74, 0x79, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x69,
|
||
|
|
0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x64, 0x69, 0x64, 0x12, 0x23, 0x0a, 0x0d,
|
||
|
|
0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20,
|
||
|
|
0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49,
|
||
|
|
0x64, 0x12, 0x17, 0x0a, 0x07, 0x70, 0x6f, 0x6f, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01,
|
||
|
|
0x28, 0x09, 0x52, 0x06, 0x70, 0x6f, 0x6f, 0x6c, 0x49, 0x64, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x68,
|
||
|
|
0x61, 0x72, 0x65, 0x73, 0x5f, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01,
|
||
|
|
0x28, 0x09, 0x52, 0x0d, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65,
|
||
|
|
0x64, 0x12, 0x63, 0x0a, 0x06, 0x61, 0x73, 0x73, 0x65, 0x74, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28,
|
||
|
|
0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e,
|
||
|
|
0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x42, 0x30, 0xc8, 0xde,
|
||
|
|
0x1f, 0x00, 0xaa, 0xdf, 0x1f, 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d,
|
||
|
|
0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73,
|
||
|
|
0x64, 0x6b, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x73, 0x52, 0x06,
|
||
|
|
0x61, 0x73, 0x73, 0x65, 0x74, 0x73, 0x12, 0x17, 0x0a, 0x07, 0x74, 0x78, 0x5f, 0x68, 0x61, 0x73,
|
||
|
|
0x68, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x78, 0x48, 0x61, 0x73, 0x68, 0x22,
|
||
|
|
0xe8, 0x01, 0x0a, 0x11, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x43, 0x72,
|
||
|
|
0x65, 0x61, 0x74, 0x65, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
|
||
|
|
0x28, 0x09, 0x52, 0x03, 0x64, 0x69, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x6e, 0x65,
|
||
|
|
0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c,
|
||
|
|
0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08,
|
||
|
|
0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,
|
||
|
|
0x6f, 0x72, 0x64, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x6c, 0x6c, 0x5f,
|
||
|
|
0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x65, 0x6c,
|
||
|
|
0x6c, 0x44, 0x65, 0x6e, 0x6f, 0x6d, 0x12, 0x1b, 0x0a, 0x09, 0x62, 0x75, 0x79, 0x5f, 0x64, 0x65,
|
||
|
|
0x6e, 0x6f, 0x6d, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x62, 0x75, 0x79, 0x44, 0x65,
|
||
|
|
0x6e, 0x6f, 0x6d, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x06, 0x20,
|
||
|
|
0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x70,
|
||
|
|
0x72, 0x69, 0x63, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x72, 0x69, 0x63,
|
||
|
|
0x65, 0x12, 0x17, 0x0a, 0x07, 0x74, 0x78, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x08, 0x20, 0x01,
|
||
|
|
0x28, 0x09, 0x52, 0x06, 0x74, 0x78, 0x48, 0x61, 0x73, 0x68, 0x22, 0x80, 0x01, 0x0a, 0x13, 0x45,
|
||
|
|
0x76, 0x65, 0x6e, 0x74, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x6c,
|
||
|
|
0x65, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
|
||
|
|
0x03, 0x64, 0x69, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69,
|
||
|
|
0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x6f, 0x6e,
|
||
|
|
0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x72, 0x64,
|
||
|
|
0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x72, 0x64,
|
||
|
|
0x65, 0x72, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x74, 0x78, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18,
|
||
|
|
0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x78, 0x48, 0x61, 0x73, 0x68, 0x22, 0xbd, 0x01,
|
||
|
|
0x0a, 0x10, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x46, 0x69, 0x6c, 0x6c,
|
||
|
|
0x65, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
|
||
|
|
0x03, 0x64, 0x69, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69,
|
||
|
|
0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x6f, 0x6e,
|
||
|
|
0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x72, 0x64,
|
||
|
|
0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x72, 0x64,
|
||
|
|
0x65, 0x72, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x66, 0x69, 0x6c, 0x6c, 0x5f, 0x61, 0x6d, 0x6f,
|
||
|
|
0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x66, 0x69, 0x6c, 0x6c, 0x41,
|
||
|
|
0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x69, 0x6c, 0x6c, 0x5f, 0x70, 0x72,
|
||
|
|
0x69, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x66, 0x69, 0x6c, 0x6c, 0x50,
|
||
|
|
0x72, 0x69, 0x63, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x74, 0x78, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18,
|
||
|
|
0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x78, 0x48, 0x61, 0x73, 0x68, 0x22, 0x88, 0x01,
|
||
|
|
0x0a, 0x12, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x49, 0x43, 0x41, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74,
|
||
|
|
0x53, 0x65, 0x6e, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
|
||
|
|
0x09, 0x52, 0x03, 0x64, 0x69, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63,
|
||
|
|
0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63,
|
||
|
|
0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x70,
|
||
|
|
0x61, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
|
||
|
|
0x52, 0x0a, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x08,
|
||
|
|
0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08,
|
||
|
|
0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x22, 0xc0, 0x01, 0x0a, 0x1a, 0x45, 0x76, 0x65,
|
||
|
|
0x6e, 0x74, 0x49, 0x43, 0x41, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x41, 0x63, 0x6b, 0x6e, 0x6f,
|
||
|
|
0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x69, 0x64, 0x18, 0x01,
|
||
|
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x64, 0x69, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x6f, 0x6e,
|
||
|
|
0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
|
||
|
|
0x52, 0x0c, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x1f,
|
||
|
|
0x0a, 0x0b, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20,
|
||
|
|
0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12,
|
||
|
|
0x1a, 0x0a, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28,
|
||
|
|
0x04, 0x52, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x73,
|
||
|
|
0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x73, 0x75,
|
||
|
|
0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x06,
|
||
|
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x42, 0x7c, 0x0a, 0x0a, 0x63,
|
||
|
|
0x6f, 0x6d, 0x2e, 0x64, 0x65, 0x78, 0x2e, 0x76, 0x31, 0x42, 0x0b, 0x45, 0x76, 0x65, 0x6e, 0x74,
|
||
|
|
0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62,
|
||
|
|
0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x6f, 0x6e, 0x72, 0x2d, 0x69, 0x6f, 0x2f, 0x73, 0x6f, 0x6e,
|
||
|
|
0x72, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x64, 0x65, 0x78, 0x2f, 0x76, 0x31, 0x3b, 0x64, 0x65, 0x78,
|
||
|
|
0x76, 0x31, 0xa2, 0x02, 0x03, 0x44, 0x58, 0x58, 0xaa, 0x02, 0x06, 0x44, 0x65, 0x78, 0x2e, 0x56,
|
||
|
|
0x31, 0xca, 0x02, 0x06, 0x44, 0x65, 0x78, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x12, 0x44, 0x65, 0x78,
|
||
|
|
0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea,
|
||
|
|
0x02, 0x07, 0x44, 0x65, 0x78, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
||
|
|
0x33,
|
||
|
|
}
|
||
|
|
|
||
|
|
var (
|
||
|
|
file_dex_v1_events_proto_rawDescOnce sync.Once
|
||
|
|
file_dex_v1_events_proto_rawDescData = file_dex_v1_events_proto_rawDesc
|
||
|
|
)
|
||
|
|
|
||
|
|
func file_dex_v1_events_proto_rawDescGZIP() []byte {
|
||
|
|
file_dex_v1_events_proto_rawDescOnce.Do(func() {
|
||
|
|
file_dex_v1_events_proto_rawDescData = protoimpl.X.CompressGZIP(file_dex_v1_events_proto_rawDescData)
|
||
|
|
})
|
||
|
|
return file_dex_v1_events_proto_rawDescData
|
||
|
|
}
|
||
|
|
|
||
|
|
var file_dex_v1_events_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
|
||
|
|
var file_dex_v1_events_proto_goTypes = []interface{}{
|
||
|
|
(*EventDEXAccountRegistered)(nil), // 0: dex.v1.EventDEXAccountRegistered
|
||
|
|
(*EventSwapExecuted)(nil), // 1: dex.v1.EventSwapExecuted
|
||
|
|
(*EventLiquidityProvided)(nil), // 2: dex.v1.EventLiquidityProvided
|
||
|
|
(*EventLiquidityRemoved)(nil), // 3: dex.v1.EventLiquidityRemoved
|
||
|
|
(*EventOrderCreated)(nil), // 4: dex.v1.EventOrderCreated
|
||
|
|
(*EventOrderCancelled)(nil), // 5: dex.v1.EventOrderCancelled
|
||
|
|
(*EventOrderFilled)(nil), // 6: dex.v1.EventOrderFilled
|
||
|
|
(*EventICAPacketSent)(nil), // 7: dex.v1.EventICAPacketSent
|
||
|
|
(*EventICAPacketAcknowledged)(nil), // 8: dex.v1.EventICAPacketAcknowledged
|
||
|
|
(*v1beta1.Coin)(nil), // 9: cosmos.base.v1beta1.Coin
|
||
|
|
}
|
||
|
|
var file_dex_v1_events_proto_depIdxs = []int32{
|
||
|
|
9, // 0: dex.v1.EventSwapExecuted.source:type_name -> cosmos.base.v1beta1.Coin
|
||
|
|
9, // 1: dex.v1.EventSwapExecuted.target:type_name -> cosmos.base.v1beta1.Coin
|
||
|
|
9, // 2: dex.v1.EventLiquidityProvided.assets:type_name -> cosmos.base.v1beta1.Coin
|
||
|
|
9, // 3: dex.v1.EventLiquidityRemoved.assets:type_name -> cosmos.base.v1beta1.Coin
|
||
|
|
4, // [4:4] is the sub-list for method output_type
|
||
|
|
4, // [4:4] 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_dex_v1_events_proto_init() }
|
||
|
|
func file_dex_v1_events_proto_init() {
|
||
|
|
if File_dex_v1_events_proto != nil {
|
||
|
|
return
|
||
|
|
}
|
||
|
|
if !protoimpl.UnsafeEnabled {
|
||
|
|
file_dex_v1_events_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||
|
|
switch v := v.(*EventDEXAccountRegistered); i {
|
||
|
|
case 0:
|
||
|
|
return &v.state
|
||
|
|
case 1:
|
||
|
|
return &v.sizeCache
|
||
|
|
case 2:
|
||
|
|
return &v.unknownFields
|
||
|
|
default:
|
||
|
|
return nil
|
||
|
|
}
|
||
|
|
}
|
||
|
|
file_dex_v1_events_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||
|
|
switch v := v.(*EventSwapExecuted); i {
|
||
|
|
case 0:
|
||
|
|
return &v.state
|
||
|
|
case 1:
|
||
|
|
return &v.sizeCache
|
||
|
|
case 2:
|
||
|
|
return &v.unknownFields
|
||
|
|
default:
|
||
|
|
return nil
|
||
|
|
}
|
||
|
|
}
|
||
|
|
file_dex_v1_events_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||
|
|
switch v := v.(*EventLiquidityProvided); i {
|
||
|
|
case 0:
|
||
|
|
return &v.state
|
||
|
|
case 1:
|
||
|
|
return &v.sizeCache
|
||
|
|
case 2:
|
||
|
|
return &v.unknownFields
|
||
|
|
default:
|
||
|
|
return nil
|
||
|
|
}
|
||
|
|
}
|
||
|
|
file_dex_v1_events_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||
|
|
switch v := v.(*EventLiquidityRemoved); i {
|
||
|
|
case 0:
|
||
|
|
return &v.state
|
||
|
|
case 1:
|
||
|
|
return &v.sizeCache
|
||
|
|
case 2:
|
||
|
|
return &v.unknownFields
|
||
|
|
default:
|
||
|
|
return nil
|
||
|
|
}
|
||
|
|
}
|
||
|
|
file_dex_v1_events_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
||
|
|
switch v := v.(*EventOrderCreated); i {
|
||
|
|
case 0:
|
||
|
|
return &v.state
|
||
|
|
case 1:
|
||
|
|
return &v.sizeCache
|
||
|
|
case 2:
|
||
|
|
return &v.unknownFields
|
||
|
|
default:
|
||
|
|
return nil
|
||
|
|
}
|
||
|
|
}
|
||
|
|
file_dex_v1_events_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
||
|
|
switch v := v.(*EventOrderCancelled); i {
|
||
|
|
case 0:
|
||
|
|
return &v.state
|
||
|
|
case 1:
|
||
|
|
return &v.sizeCache
|
||
|
|
case 2:
|
||
|
|
return &v.unknownFields
|
||
|
|
default:
|
||
|
|
return nil
|
||
|
|
}
|
||
|
|
}
|
||
|
|
file_dex_v1_events_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
||
|
|
switch v := v.(*EventOrderFilled); i {
|
||
|
|
case 0:
|
||
|
|
return &v.state
|
||
|
|
case 1:
|
||
|
|
return &v.sizeCache
|
||
|
|
case 2:
|
||
|
|
return &v.unknownFields
|
||
|
|
default:
|
||
|
|
return nil
|
||
|
|
}
|
||
|
|
}
|
||
|
|
file_dex_v1_events_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
||
|
|
switch v := v.(*EventICAPacketSent); i {
|
||
|
|
case 0:
|
||
|
|
return &v.state
|
||
|
|
case 1:
|
||
|
|
return &v.sizeCache
|
||
|
|
case 2:
|
||
|
|
return &v.unknownFields
|
||
|
|
default:
|
||
|
|
return nil
|
||
|
|
}
|
||
|
|
}
|
||
|
|
file_dex_v1_events_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
|
||
|
|
switch v := v.(*EventICAPacketAcknowledged); 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_dex_v1_events_proto_rawDesc,
|
||
|
|
NumEnums: 0,
|
||
|
|
NumMessages: 9,
|
||
|
|
NumExtensions: 0,
|
||
|
|
NumServices: 0,
|
||
|
|
},
|
||
|
|
GoTypes: file_dex_v1_events_proto_goTypes,
|
||
|
|
DependencyIndexes: file_dex_v1_events_proto_depIdxs,
|
||
|
|
MessageInfos: file_dex_v1_events_proto_msgTypes,
|
||
|
|
}.Build()
|
||
|
|
File_dex_v1_events_proto = out.File
|
||
|
|
file_dex_v1_events_proto_rawDesc = nil
|
||
|
|
file_dex_v1_events_proto_goTypes = nil
|
||
|
|
file_dex_v1_events_proto_depIdxs = nil
|
||
|
|
}
|