2025-10-03 14:45:52 -04:00
// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
package dexv1
import (
v1beta1 "cosmossdk.io/api/cosmos/base/v1beta1"
2025-10-21 12:04:29 -04:00
fmt "fmt"
2025-10-03 14:45:52 -04:00
_ "github.com/cosmos/cosmos-proto"
runtime "github.com/cosmos/cosmos-proto/runtime"
_ "github.com/cosmos/gogoproto/gogoproto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoiface "google.golang.org/protobuf/runtime/protoiface"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
2025-10-21 12:04:29 -04:00
io "io"
reflect "reflect"
sync "sync"
2025-10-03 14:45:52 -04:00
)
var _ protoreflect . List = ( * _InterchainDEXAccount_7_list )( nil )
type _InterchainDEXAccount_7_list struct {
list * [] string
}
func ( x * _InterchainDEXAccount_7_list ) Len () int {
if x . list == nil {
return 0
}
return len ( * x . list )
}
func ( x * _InterchainDEXAccount_7_list ) Get ( i int ) protoreflect . Value {
return protoreflect . ValueOfString (( * x . list )[ i ])
}
func ( x * _InterchainDEXAccount_7_list ) Set ( i int , value protoreflect . Value ) {
valueUnwrapped := value . String ()
concreteValue := valueUnwrapped
( * x . list )[ i ] = concreteValue
}
func ( x * _InterchainDEXAccount_7_list ) Append ( value protoreflect . Value ) {
valueUnwrapped := value . String ()
concreteValue := valueUnwrapped
* x . list = append ( * x . list , concreteValue )
}
func ( x * _InterchainDEXAccount_7_list ) AppendMutable () protoreflect . Value {
panic ( fmt . Errorf ( "AppendMutable can not be called on message InterchainDEXAccount at list field EnabledFeatures as it is not of Message kind" ))
}
func ( x * _InterchainDEXAccount_7_list ) Truncate ( n int ) {
* x . list = ( * x . list )[: n ]
}
func ( x * _InterchainDEXAccount_7_list ) NewElement () protoreflect . Value {
v := ""
return protoreflect . ValueOfString ( v )
}
func ( x * _InterchainDEXAccount_7_list ) IsValid () bool {
return x . list != nil
}
var (
md_InterchainDEXAccount protoreflect . MessageDescriptor
fd_InterchainDEXAccount_did protoreflect . FieldDescriptor
fd_InterchainDEXAccount_connection_id protoreflect . FieldDescriptor
fd_InterchainDEXAccount_host_chain_id protoreflect . FieldDescriptor
fd_InterchainDEXAccount_account_address protoreflect . FieldDescriptor
fd_InterchainDEXAccount_port_id protoreflect . FieldDescriptor
fd_InterchainDEXAccount_created_at protoreflect . FieldDescriptor
fd_InterchainDEXAccount_enabled_features protoreflect . FieldDescriptor
fd_InterchainDEXAccount_status protoreflect . FieldDescriptor
)
func init () {
file_dex_v1_ica_proto_init ()
md_InterchainDEXAccount = File_dex_v1_ica_proto . Messages (). ByName ( "InterchainDEXAccount" )
fd_InterchainDEXAccount_did = md_InterchainDEXAccount . Fields (). ByName ( "did" )
fd_InterchainDEXAccount_connection_id = md_InterchainDEXAccount . Fields (). ByName ( "connection_id" )
fd_InterchainDEXAccount_host_chain_id = md_InterchainDEXAccount . Fields (). ByName ( "host_chain_id" )
fd_InterchainDEXAccount_account_address = md_InterchainDEXAccount . Fields (). ByName ( "account_address" )
fd_InterchainDEXAccount_port_id = md_InterchainDEXAccount . Fields (). ByName ( "port_id" )
fd_InterchainDEXAccount_created_at = md_InterchainDEXAccount . Fields (). ByName ( "created_at" )
fd_InterchainDEXAccount_enabled_features = md_InterchainDEXAccount . Fields (). ByName ( "enabled_features" )
fd_InterchainDEXAccount_status = md_InterchainDEXAccount . Fields (). ByName ( "status" )
}
var _ protoreflect . Message = ( * fastReflection_InterchainDEXAccount )( nil )
type fastReflection_InterchainDEXAccount InterchainDEXAccount
func ( x * InterchainDEXAccount ) ProtoReflect () protoreflect . Message {
return ( * fastReflection_InterchainDEXAccount )( x )
}
func ( x * InterchainDEXAccount ) slowProtoReflect () protoreflect . Message {
mi := & file_dex_v1_ica_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_InterchainDEXAccount_messageType fastReflection_InterchainDEXAccount_messageType
var _ protoreflect . MessageType = fastReflection_InterchainDEXAccount_messageType {}
type fastReflection_InterchainDEXAccount_messageType struct {}
func ( x fastReflection_InterchainDEXAccount_messageType ) Zero () protoreflect . Message {
return ( * fastReflection_InterchainDEXAccount )( nil )
}
func ( x fastReflection_InterchainDEXAccount_messageType ) New () protoreflect . Message {
return new ( fastReflection_InterchainDEXAccount )
}
func ( x fastReflection_InterchainDEXAccount_messageType ) Descriptor () protoreflect . MessageDescriptor {
return md_InterchainDEXAccount
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func ( x * fastReflection_InterchainDEXAccount ) Descriptor () protoreflect . MessageDescriptor {
return md_InterchainDEXAccount
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func ( x * fastReflection_InterchainDEXAccount ) Type () protoreflect . MessageType {
return _fastReflection_InterchainDEXAccount_messageType
}
// New returns a newly allocated and mutable empty message.
func ( x * fastReflection_InterchainDEXAccount ) New () protoreflect . Message {
return new ( fastReflection_InterchainDEXAccount )
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func ( x * fastReflection_InterchainDEXAccount ) Interface () protoreflect . ProtoMessage {
return ( * InterchainDEXAccount )( x )
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func ( x * fastReflection_InterchainDEXAccount ) Range ( f func ( protoreflect . FieldDescriptor , protoreflect . Value ) bool ) {
if x . Did != "" {
value := protoreflect . ValueOfString ( x . Did )
if ! f ( fd_InterchainDEXAccount_did , value ) {
return
}
}
if x . ConnectionId != "" {
value := protoreflect . ValueOfString ( x . ConnectionId )
if ! f ( fd_InterchainDEXAccount_connection_id , value ) {
return
}
}
if x . HostChainId != "" {
value := protoreflect . ValueOfString ( x . HostChainId )
if ! f ( fd_InterchainDEXAccount_host_chain_id , value ) {
return
}
}
if x . AccountAddress != "" {
value := protoreflect . ValueOfString ( x . AccountAddress )
if ! f ( fd_InterchainDEXAccount_account_address , value ) {
return
}
}
if x . PortId != "" {
value := protoreflect . ValueOfString ( x . PortId )
if ! f ( fd_InterchainDEXAccount_port_id , value ) {
return
}
}
if x . CreatedAt != nil {
value := protoreflect . ValueOfMessage ( x . CreatedAt . ProtoReflect ())
if ! f ( fd_InterchainDEXAccount_created_at , value ) {
return
}
}
if len ( x . EnabledFeatures ) != 0 {
value := protoreflect . ValueOfList ( & _InterchainDEXAccount_7_list { list : & x . EnabledFeatures })
if ! f ( fd_InterchainDEXAccount_enabled_features , value ) {
return
}
}
if x . Status != 0 {
value := protoreflect . ValueOfEnum (( protoreflect . EnumNumber )( x . Status ))
if ! f ( fd_InterchainDEXAccount_status , value ) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func ( x * fastReflection_InterchainDEXAccount ) Has ( fd protoreflect . FieldDescriptor ) bool {
switch fd . FullName () {
case "dex.v1.InterchainDEXAccount.did" :
return x . Did != ""
case "dex.v1.InterchainDEXAccount.connection_id" :
return x . ConnectionId != ""
case "dex.v1.InterchainDEXAccount.host_chain_id" :
return x . HostChainId != ""
case "dex.v1.InterchainDEXAccount.account_address" :
return x . AccountAddress != ""
case "dex.v1.InterchainDEXAccount.port_id" :
return x . PortId != ""
case "dex.v1.InterchainDEXAccount.created_at" :
return x . CreatedAt != nil
case "dex.v1.InterchainDEXAccount.enabled_features" :
return len ( x . EnabledFeatures ) != 0
case "dex.v1.InterchainDEXAccount.status" :
return x . Status != 0
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.InterchainDEXAccount" ))
}
panic ( fmt . Errorf ( "message dex.v1.InterchainDEXAccount does not contain field %s" , fd . FullName ()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func ( x * fastReflection_InterchainDEXAccount ) Clear ( fd protoreflect . FieldDescriptor ) {
switch fd . FullName () {
case "dex.v1.InterchainDEXAccount.did" :
x . Did = ""
case "dex.v1.InterchainDEXAccount.connection_id" :
x . ConnectionId = ""
case "dex.v1.InterchainDEXAccount.host_chain_id" :
x . HostChainId = ""
case "dex.v1.InterchainDEXAccount.account_address" :
x . AccountAddress = ""
case "dex.v1.InterchainDEXAccount.port_id" :
x . PortId = ""
case "dex.v1.InterchainDEXAccount.created_at" :
x . CreatedAt = nil
case "dex.v1.InterchainDEXAccount.enabled_features" :
x . EnabledFeatures = nil
case "dex.v1.InterchainDEXAccount.status" :
x . Status = 0
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.InterchainDEXAccount" ))
}
panic ( fmt . Errorf ( "message dex.v1.InterchainDEXAccount does not contain field %s" , fd . FullName ()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func ( x * fastReflection_InterchainDEXAccount ) Get ( descriptor protoreflect . FieldDescriptor ) protoreflect . Value {
switch descriptor . FullName () {
case "dex.v1.InterchainDEXAccount.did" :
value := x . Did
return protoreflect . ValueOfString ( value )
case "dex.v1.InterchainDEXAccount.connection_id" :
value := x . ConnectionId
return protoreflect . ValueOfString ( value )
case "dex.v1.InterchainDEXAccount.host_chain_id" :
value := x . HostChainId
return protoreflect . ValueOfString ( value )
case "dex.v1.InterchainDEXAccount.account_address" :
value := x . AccountAddress
return protoreflect . ValueOfString ( value )
case "dex.v1.InterchainDEXAccount.port_id" :
value := x . PortId
return protoreflect . ValueOfString ( value )
case "dex.v1.InterchainDEXAccount.created_at" :
value := x . CreatedAt
return protoreflect . ValueOfMessage ( value . ProtoReflect ())
case "dex.v1.InterchainDEXAccount.enabled_features" :
if len ( x . EnabledFeatures ) == 0 {
return protoreflect . ValueOfList ( & _InterchainDEXAccount_7_list {})
}
listValue := & _InterchainDEXAccount_7_list { list : & x . EnabledFeatures }
return protoreflect . ValueOfList ( listValue )
case "dex.v1.InterchainDEXAccount.status" :
value := x . Status
return protoreflect . ValueOfEnum (( protoreflect . EnumNumber )( value ))
default :
if descriptor . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.InterchainDEXAccount" ))
}
panic ( fmt . Errorf ( "message dex.v1.InterchainDEXAccount does not contain field %s" , descriptor . FullName ()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func ( x * fastReflection_InterchainDEXAccount ) Set ( fd protoreflect . FieldDescriptor , value protoreflect . Value ) {
switch fd . FullName () {
case "dex.v1.InterchainDEXAccount.did" :
x . Did = value . Interface ().( string )
case "dex.v1.InterchainDEXAccount.connection_id" :
x . ConnectionId = value . Interface ().( string )
case "dex.v1.InterchainDEXAccount.host_chain_id" :
x . HostChainId = value . Interface ().( string )
case "dex.v1.InterchainDEXAccount.account_address" :
x . AccountAddress = value . Interface ().( string )
case "dex.v1.InterchainDEXAccount.port_id" :
x . PortId = value . Interface ().( string )
case "dex.v1.InterchainDEXAccount.created_at" :
x . CreatedAt = value . Message (). Interface ().( * timestamppb . Timestamp )
case "dex.v1.InterchainDEXAccount.enabled_features" :
lv := value . List ()
clv := lv .( * _InterchainDEXAccount_7_list )
x . EnabledFeatures = * clv . list
case "dex.v1.InterchainDEXAccount.status" :
x . Status = ( AccountStatus )( value . Enum ())
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.InterchainDEXAccount" ))
}
panic ( fmt . Errorf ( "message dex.v1.InterchainDEXAccount does not contain field %s" , fd . FullName ()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func ( x * fastReflection_InterchainDEXAccount ) Mutable ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
switch fd . FullName () {
case "dex.v1.InterchainDEXAccount.created_at" :
if x . CreatedAt == nil {
x . CreatedAt = new ( timestamppb . Timestamp )
}
return protoreflect . ValueOfMessage ( x . CreatedAt . ProtoReflect ())
case "dex.v1.InterchainDEXAccount.enabled_features" :
if x . EnabledFeatures == nil {
x . EnabledFeatures = [] string {}
}
value := & _InterchainDEXAccount_7_list { list : & x . EnabledFeatures }
return protoreflect . ValueOfList ( value )
case "dex.v1.InterchainDEXAccount.did" :
panic ( fmt . Errorf ( "field did of message dex.v1.InterchainDEXAccount is not mutable" ))
case "dex.v1.InterchainDEXAccount.connection_id" :
panic ( fmt . Errorf ( "field connection_id of message dex.v1.InterchainDEXAccount is not mutable" ))
case "dex.v1.InterchainDEXAccount.host_chain_id" :
panic ( fmt . Errorf ( "field host_chain_id of message dex.v1.InterchainDEXAccount is not mutable" ))
case "dex.v1.InterchainDEXAccount.account_address" :
panic ( fmt . Errorf ( "field account_address of message dex.v1.InterchainDEXAccount is not mutable" ))
case "dex.v1.InterchainDEXAccount.port_id" :
panic ( fmt . Errorf ( "field port_id of message dex.v1.InterchainDEXAccount is not mutable" ))
case "dex.v1.InterchainDEXAccount.status" :
panic ( fmt . Errorf ( "field status of message dex.v1.InterchainDEXAccount is not mutable" ))
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.InterchainDEXAccount" ))
}
panic ( fmt . Errorf ( "message dex.v1.InterchainDEXAccount does not contain field %s" , fd . FullName ()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func ( x * fastReflection_InterchainDEXAccount ) NewField ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
switch fd . FullName () {
case "dex.v1.InterchainDEXAccount.did" :
return protoreflect . ValueOfString ( "" )
case "dex.v1.InterchainDEXAccount.connection_id" :
return protoreflect . ValueOfString ( "" )
case "dex.v1.InterchainDEXAccount.host_chain_id" :
return protoreflect . ValueOfString ( "" )
case "dex.v1.InterchainDEXAccount.account_address" :
return protoreflect . ValueOfString ( "" )
case "dex.v1.InterchainDEXAccount.port_id" :
return protoreflect . ValueOfString ( "" )
case "dex.v1.InterchainDEXAccount.created_at" :
m := new ( timestamppb . Timestamp )
return protoreflect . ValueOfMessage ( m . ProtoReflect ())
case "dex.v1.InterchainDEXAccount.enabled_features" :
list := [] string {}
return protoreflect . ValueOfList ( & _InterchainDEXAccount_7_list { list : & list })
case "dex.v1.InterchainDEXAccount.status" :
return protoreflect . ValueOfEnum ( 0 )
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.InterchainDEXAccount" ))
}
panic ( fmt . Errorf ( "message dex.v1.InterchainDEXAccount does not contain field %s" , fd . FullName ()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func ( x * fastReflection_InterchainDEXAccount ) WhichOneof ( d protoreflect . OneofDescriptor ) protoreflect . FieldDescriptor {
switch d . FullName () {
default :
panic ( fmt . Errorf ( "%s is not a oneof field in dex.v1.InterchainDEXAccount" , d . FullName ()))
}
panic ( "unreachable" )
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func ( x * fastReflection_InterchainDEXAccount ) GetUnknown () protoreflect . RawFields {
return x . unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func ( x * fastReflection_InterchainDEXAccount ) SetUnknown ( fields protoreflect . RawFields ) {
x . unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func ( x * fastReflection_InterchainDEXAccount ) IsValid () bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func ( x * fastReflection_InterchainDEXAccount ) ProtoMethods () * protoiface . Methods {
size := func ( input protoiface . SizeInput ) protoiface . SizeOutput {
x := input . Message . Interface ().( * InterchainDEXAccount )
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 . HostChainId )
if l > 0 {
n += 1 + l + runtime . Sov ( uint64 ( l ))
}
l = len ( x . AccountAddress )
if l > 0 {
n += 1 + l + runtime . Sov ( uint64 ( l ))
}
l = len ( x . PortId )
if l > 0 {
n += 1 + l + runtime . Sov ( uint64 ( l ))
}
if x . CreatedAt != nil {
l = options . Size ( x . CreatedAt )
n += 1 + l + runtime . Sov ( uint64 ( l ))
}
if len ( x . EnabledFeatures ) > 0 {
for _ , s := range x . EnabledFeatures {
l = len ( s )
n += 1 + l + runtime . Sov ( uint64 ( l ))
}
}
if x . Status != 0 {
n += 1 + runtime . Sov ( uint64 ( x . Status ))
}
if x . unknownFields != nil {
n += len ( x . unknownFields )
}
return protoiface . SizeOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Size : n ,
}
}
marshal := func ( input protoiface . MarshalInput ) ( protoiface . MarshalOutput , error ) {
x := input . Message . Interface ().( * InterchainDEXAccount )
if x == nil {
return protoiface . MarshalOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Buf : input . Buf ,
}, nil
}
options := runtime . MarshalInputToOptions ( input )
_ = options
size := options . Size ( x )
dAtA := make ([] byte , size )
i := len ( dAtA )
_ = i
var l int
_ = l
if x . unknownFields != nil {
i -= len ( x . unknownFields )
copy ( dAtA [ i :], x . unknownFields )
}
if x . Status != 0 {
i = runtime . EncodeVarint ( dAtA , i , uint64 ( x . Status ))
i --
dAtA [ i ] = 0x40
}
if len ( x . EnabledFeatures ) > 0 {
for iNdEx := len ( x . EnabledFeatures ) - 1 ; iNdEx >= 0 ; iNdEx -- {
i -= len ( x . EnabledFeatures [ iNdEx ])
copy ( dAtA [ i :], x . EnabledFeatures [ iNdEx ])
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( x . EnabledFeatures [ iNdEx ])))
i --
dAtA [ i ] = 0x3a
}
}
if x . CreatedAt != nil {
encoded , err := options . Marshal ( x . CreatedAt )
if err != nil {
return protoiface . MarshalOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Buf : input . Buf ,
}, err
}
i -= len ( encoded )
copy ( dAtA [ i :], encoded )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( encoded )))
i --
dAtA [ i ] = 0x32
}
if len ( x . PortId ) > 0 {
i -= len ( x . PortId )
copy ( dAtA [ i :], x . PortId )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( x . PortId )))
i --
dAtA [ i ] = 0x2a
}
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 . HostChainId ) > 0 {
i -= len ( x . HostChainId )
copy ( dAtA [ i :], x . HostChainId )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( x . HostChainId )))
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 ().( * InterchainDEXAccount )
if x == nil {
return protoiface . UnmarshalOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Flags : input . Flags ,
}, nil
}
options := runtime . UnmarshalInputToOptions ( input )
_ = options
dAtA := input . Buf
l := len ( dAtA )
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint ( 0 ); ; shift += 7 {
if shift >= 64 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrIntOverflow
}
if iNdEx >= l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
wire |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
fieldNum := int32 ( wire >> 3 )
wireType := int ( wire & 0x7 )
if wireType == 4 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: InterchainDEXAccount: wiretype end group for non-group" )
}
if fieldNum <= 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: InterchainDEXAccount: 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 HostChainId" , wireType )
}
var stringLen uint64
for shift := uint ( 0 ); ; shift += 7 {
if shift >= 64 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrIntOverflow
}
if iNdEx >= l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
stringLen |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
intStringLen := int ( stringLen )
if intStringLen < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrInvalidLength
}
if postIndex > l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, io . ErrUnexpectedEOF
}
x . HostChainId = 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
case 5 :
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 6 :
if wireType != 2 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: wrong wireType = %d for field CreatedAt" , 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 . CreatedAt == nil {
x . CreatedAt = & timestamppb . Timestamp {}
}
if err := options . Unmarshal ( dAtA [ iNdEx : postIndex ], x . CreatedAt ); err != nil {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, err
}
iNdEx = postIndex
case 7 :
if wireType != 2 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: wrong wireType = %d for field EnabledFeatures" , wireType )
}
var stringLen uint64
for shift := uint ( 0 ); ; shift += 7 {
if shift >= 64 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrIntOverflow
}
if iNdEx >= l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
stringLen |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
intStringLen := int ( stringLen )
if intStringLen < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrInvalidLength
}
if postIndex > l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, io . ErrUnexpectedEOF
}
x . EnabledFeatures = append ( x . EnabledFeatures , string ( dAtA [ iNdEx : postIndex ]))
iNdEx = postIndex
case 8 :
if wireType != 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: wrong wireType = %d for field Status" , wireType )
}
x . Status = 0
for shift := uint ( 0 ); ; shift += 7 {
if shift >= 64 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrIntOverflow
}
if iNdEx >= l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
x . Status |= AccountStatus ( 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 = ( * _DEXActivity_9_list )( nil )
type _DEXActivity_9_list struct {
list * [] * v1beta1 . Coin
}
func ( x * _DEXActivity_9_list ) Len () int {
if x . list == nil {
return 0
}
return len ( * x . list )
}
func ( x * _DEXActivity_9_list ) Get ( i int ) protoreflect . Value {
return protoreflect . ValueOfMessage (( * x . list )[ i ]. ProtoReflect ())
}
func ( x * _DEXActivity_9_list ) Set ( i int , value protoreflect . Value ) {
valueUnwrapped := value . Message ()
concreteValue := valueUnwrapped . Interface ().( * v1beta1 . Coin )
( * x . list )[ i ] = concreteValue
}
func ( x * _DEXActivity_9_list ) Append ( value protoreflect . Value ) {
valueUnwrapped := value . Message ()
concreteValue := valueUnwrapped . Interface ().( * v1beta1 . Coin )
* x . list = append ( * x . list , concreteValue )
}
func ( x * _DEXActivity_9_list ) AppendMutable () protoreflect . Value {
v := new ( v1beta1 . Coin )
* x . list = append ( * x . list , v )
return protoreflect . ValueOfMessage ( v . ProtoReflect ())
}
func ( x * _DEXActivity_9_list ) Truncate ( n int ) {
for i := n ; i < len ( * x . list ); i ++ {
( * x . list )[ i ] = nil
}
* x . list = ( * x . list )[: n ]
}
func ( x * _DEXActivity_9_list ) NewElement () protoreflect . Value {
v := new ( v1beta1 . Coin )
return protoreflect . ValueOfMessage ( v . ProtoReflect ())
}
func ( x * _DEXActivity_9_list ) IsValid () bool {
return x . list != nil
}
var (
md_DEXActivity protoreflect . MessageDescriptor
fd_DEXActivity_type protoreflect . FieldDescriptor
fd_DEXActivity_did protoreflect . FieldDescriptor
fd_DEXActivity_connection_id protoreflect . FieldDescriptor
fd_DEXActivity_tx_hash protoreflect . FieldDescriptor
fd_DEXActivity_block_height protoreflect . FieldDescriptor
fd_DEXActivity_timestamp protoreflect . FieldDescriptor
fd_DEXActivity_details protoreflect . FieldDescriptor
fd_DEXActivity_status protoreflect . FieldDescriptor
fd_DEXActivity_amount protoreflect . FieldDescriptor
fd_DEXActivity_gas_used protoreflect . FieldDescriptor
)
func init () {
file_dex_v1_ica_proto_init ()
md_DEXActivity = File_dex_v1_ica_proto . Messages (). ByName ( "DEXActivity" )
fd_DEXActivity_type = md_DEXActivity . Fields (). ByName ( "type" )
fd_DEXActivity_did = md_DEXActivity . Fields (). ByName ( "did" )
fd_DEXActivity_connection_id = md_DEXActivity . Fields (). ByName ( "connection_id" )
fd_DEXActivity_tx_hash = md_DEXActivity . Fields (). ByName ( "tx_hash" )
fd_DEXActivity_block_height = md_DEXActivity . Fields (). ByName ( "block_height" )
fd_DEXActivity_timestamp = md_DEXActivity . Fields (). ByName ( "timestamp" )
fd_DEXActivity_details = md_DEXActivity . Fields (). ByName ( "details" )
fd_DEXActivity_status = md_DEXActivity . Fields (). ByName ( "status" )
fd_DEXActivity_amount = md_DEXActivity . Fields (). ByName ( "amount" )
fd_DEXActivity_gas_used = md_DEXActivity . Fields (). ByName ( "gas_used" )
}
var _ protoreflect . Message = ( * fastReflection_DEXActivity )( nil )
type fastReflection_DEXActivity DEXActivity
func ( x * DEXActivity ) ProtoReflect () protoreflect . Message {
return ( * fastReflection_DEXActivity )( x )
}
func ( x * DEXActivity ) slowProtoReflect () protoreflect . Message {
mi := & file_dex_v1_ica_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_DEXActivity_messageType fastReflection_DEXActivity_messageType
var _ protoreflect . MessageType = fastReflection_DEXActivity_messageType {}
type fastReflection_DEXActivity_messageType struct {}
func ( x fastReflection_DEXActivity_messageType ) Zero () protoreflect . Message {
return ( * fastReflection_DEXActivity )( nil )
}
func ( x fastReflection_DEXActivity_messageType ) New () protoreflect . Message {
return new ( fastReflection_DEXActivity )
}
func ( x fastReflection_DEXActivity_messageType ) Descriptor () protoreflect . MessageDescriptor {
return md_DEXActivity
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func ( x * fastReflection_DEXActivity ) Descriptor () protoreflect . MessageDescriptor {
return md_DEXActivity
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func ( x * fastReflection_DEXActivity ) Type () protoreflect . MessageType {
return _fastReflection_DEXActivity_messageType
}
// New returns a newly allocated and mutable empty message.
func ( x * fastReflection_DEXActivity ) New () protoreflect . Message {
return new ( fastReflection_DEXActivity )
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func ( x * fastReflection_DEXActivity ) Interface () protoreflect . ProtoMessage {
return ( * DEXActivity )( x )
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func ( x * fastReflection_DEXActivity ) Range ( f func ( protoreflect . FieldDescriptor , protoreflect . Value ) bool ) {
if x . Type_ != "" {
value := protoreflect . ValueOfString ( x . Type_ )
if ! f ( fd_DEXActivity_type , value ) {
return
}
}
if x . Did != "" {
value := protoreflect . ValueOfString ( x . Did )
if ! f ( fd_DEXActivity_did , value ) {
return
}
}
if x . ConnectionId != "" {
value := protoreflect . ValueOfString ( x . ConnectionId )
if ! f ( fd_DEXActivity_connection_id , value ) {
return
}
}
if x . TxHash != "" {
value := protoreflect . ValueOfString ( x . TxHash )
if ! f ( fd_DEXActivity_tx_hash , value ) {
return
}
}
if x . BlockHeight != int64 ( 0 ) {
value := protoreflect . ValueOfInt64 ( x . BlockHeight )
if ! f ( fd_DEXActivity_block_height , value ) {
return
}
}
if x . Timestamp != nil {
value := protoreflect . ValueOfMessage ( x . Timestamp . ProtoReflect ())
if ! f ( fd_DEXActivity_timestamp , value ) {
return
}
}
if x . Details != "" {
value := protoreflect . ValueOfString ( x . Details )
if ! f ( fd_DEXActivity_details , value ) {
return
}
}
if x . Status != "" {
value := protoreflect . ValueOfString ( x . Status )
if ! f ( fd_DEXActivity_status , value ) {
return
}
}
if len ( x . Amount ) != 0 {
value := protoreflect . ValueOfList ( & _DEXActivity_9_list { list : & x . Amount })
if ! f ( fd_DEXActivity_amount , value ) {
return
}
}
if x . GasUsed != uint64 ( 0 ) {
value := protoreflect . ValueOfUint64 ( x . GasUsed )
if ! f ( fd_DEXActivity_gas_used , value ) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func ( x * fastReflection_DEXActivity ) Has ( fd protoreflect . FieldDescriptor ) bool {
switch fd . FullName () {
case "dex.v1.DEXActivity.type" :
return x . Type_ != ""
case "dex.v1.DEXActivity.did" :
return x . Did != ""
case "dex.v1.DEXActivity.connection_id" :
return x . ConnectionId != ""
case "dex.v1.DEXActivity.tx_hash" :
return x . TxHash != ""
case "dex.v1.DEXActivity.block_height" :
return x . BlockHeight != int64 ( 0 )
case "dex.v1.DEXActivity.timestamp" :
return x . Timestamp != nil
case "dex.v1.DEXActivity.details" :
return x . Details != ""
case "dex.v1.DEXActivity.status" :
return x . Status != ""
case "dex.v1.DEXActivity.amount" :
return len ( x . Amount ) != 0
case "dex.v1.DEXActivity.gas_used" :
return x . GasUsed != uint64 ( 0 )
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.DEXActivity" ))
}
panic ( fmt . Errorf ( "message dex.v1.DEXActivity does not contain field %s" , fd . FullName ()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func ( x * fastReflection_DEXActivity ) Clear ( fd protoreflect . FieldDescriptor ) {
switch fd . FullName () {
case "dex.v1.DEXActivity.type" :
x . Type_ = ""
case "dex.v1.DEXActivity.did" :
x . Did = ""
case "dex.v1.DEXActivity.connection_id" :
x . ConnectionId = ""
case "dex.v1.DEXActivity.tx_hash" :
x . TxHash = ""
case "dex.v1.DEXActivity.block_height" :
x . BlockHeight = int64 ( 0 )
case "dex.v1.DEXActivity.timestamp" :
x . Timestamp = nil
case "dex.v1.DEXActivity.details" :
x . Details = ""
case "dex.v1.DEXActivity.status" :
x . Status = ""
case "dex.v1.DEXActivity.amount" :
x . Amount = nil
case "dex.v1.DEXActivity.gas_used" :
x . GasUsed = uint64 ( 0 )
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.DEXActivity" ))
}
panic ( fmt . Errorf ( "message dex.v1.DEXActivity does not contain field %s" , fd . FullName ()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func ( x * fastReflection_DEXActivity ) Get ( descriptor protoreflect . FieldDescriptor ) protoreflect . Value {
switch descriptor . FullName () {
case "dex.v1.DEXActivity.type" :
value := x . Type_
return protoreflect . ValueOfString ( value )
case "dex.v1.DEXActivity.did" :
value := x . Did
return protoreflect . ValueOfString ( value )
case "dex.v1.DEXActivity.connection_id" :
value := x . ConnectionId
return protoreflect . ValueOfString ( value )
case "dex.v1.DEXActivity.tx_hash" :
value := x . TxHash
return protoreflect . ValueOfString ( value )
case "dex.v1.DEXActivity.block_height" :
value := x . BlockHeight
return protoreflect . ValueOfInt64 ( value )
case "dex.v1.DEXActivity.timestamp" :
value := x . Timestamp
return protoreflect . ValueOfMessage ( value . ProtoReflect ())
case "dex.v1.DEXActivity.details" :
value := x . Details
return protoreflect . ValueOfString ( value )
case "dex.v1.DEXActivity.status" :
value := x . Status
return protoreflect . ValueOfString ( value )
case "dex.v1.DEXActivity.amount" :
if len ( x . Amount ) == 0 {
return protoreflect . ValueOfList ( & _DEXActivity_9_list {})
}
listValue := & _DEXActivity_9_list { list : & x . Amount }
return protoreflect . ValueOfList ( listValue )
case "dex.v1.DEXActivity.gas_used" :
value := x . GasUsed
return protoreflect . ValueOfUint64 ( value )
default :
if descriptor . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.DEXActivity" ))
}
panic ( fmt . Errorf ( "message dex.v1.DEXActivity does not contain field %s" , descriptor . FullName ()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func ( x * fastReflection_DEXActivity ) Set ( fd protoreflect . FieldDescriptor , value protoreflect . Value ) {
switch fd . FullName () {
case "dex.v1.DEXActivity.type" :
x . Type_ = value . Interface ().( string )
case "dex.v1.DEXActivity.did" :
x . Did = value . Interface ().( string )
case "dex.v1.DEXActivity.connection_id" :
x . ConnectionId = value . Interface ().( string )
case "dex.v1.DEXActivity.tx_hash" :
x . TxHash = value . Interface ().( string )
case "dex.v1.DEXActivity.block_height" :
x . BlockHeight = value . Int ()
case "dex.v1.DEXActivity.timestamp" :
x . Timestamp = value . Message (). Interface ().( * timestamppb . Timestamp )
case "dex.v1.DEXActivity.details" :
x . Details = value . Interface ().( string )
case "dex.v1.DEXActivity.status" :
x . Status = value . Interface ().( string )
case "dex.v1.DEXActivity.amount" :
lv := value . List ()
clv := lv .( * _DEXActivity_9_list )
x . Amount = * clv . list
case "dex.v1.DEXActivity.gas_used" :
x . GasUsed = value . Uint ()
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.DEXActivity" ))
}
panic ( fmt . Errorf ( "message dex.v1.DEXActivity does not contain field %s" , fd . FullName ()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func ( x * fastReflection_DEXActivity ) Mutable ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
switch fd . FullName () {
case "dex.v1.DEXActivity.timestamp" :
if x . Timestamp == nil {
x . Timestamp = new ( timestamppb . Timestamp )
}
return protoreflect . ValueOfMessage ( x . Timestamp . ProtoReflect ())
case "dex.v1.DEXActivity.amount" :
if x . Amount == nil {
x . Amount = [] * v1beta1 . Coin {}
}
value := & _DEXActivity_9_list { list : & x . Amount }
return protoreflect . ValueOfList ( value )
case "dex.v1.DEXActivity.type" :
panic ( fmt . Errorf ( "field type of message dex.v1.DEXActivity is not mutable" ))
case "dex.v1.DEXActivity.did" :
panic ( fmt . Errorf ( "field did of message dex.v1.DEXActivity is not mutable" ))
case "dex.v1.DEXActivity.connection_id" :
panic ( fmt . Errorf ( "field connection_id of message dex.v1.DEXActivity is not mutable" ))
case "dex.v1.DEXActivity.tx_hash" :
panic ( fmt . Errorf ( "field tx_hash of message dex.v1.DEXActivity is not mutable" ))
case "dex.v1.DEXActivity.block_height" :
panic ( fmt . Errorf ( "field block_height of message dex.v1.DEXActivity is not mutable" ))
case "dex.v1.DEXActivity.details" :
panic ( fmt . Errorf ( "field details of message dex.v1.DEXActivity is not mutable" ))
case "dex.v1.DEXActivity.status" :
panic ( fmt . Errorf ( "field status of message dex.v1.DEXActivity is not mutable" ))
case "dex.v1.DEXActivity.gas_used" :
panic ( fmt . Errorf ( "field gas_used of message dex.v1.DEXActivity is not mutable" ))
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.DEXActivity" ))
}
panic ( fmt . Errorf ( "message dex.v1.DEXActivity does not contain field %s" , fd . FullName ()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func ( x * fastReflection_DEXActivity ) NewField ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
switch fd . FullName () {
case "dex.v1.DEXActivity.type" :
return protoreflect . ValueOfString ( "" )
case "dex.v1.DEXActivity.did" :
return protoreflect . ValueOfString ( "" )
case "dex.v1.DEXActivity.connection_id" :
return protoreflect . ValueOfString ( "" )
case "dex.v1.DEXActivity.tx_hash" :
return protoreflect . ValueOfString ( "" )
case "dex.v1.DEXActivity.block_height" :
return protoreflect . ValueOfInt64 ( int64 ( 0 ))
case "dex.v1.DEXActivity.timestamp" :
m := new ( timestamppb . Timestamp )
return protoreflect . ValueOfMessage ( m . ProtoReflect ())
case "dex.v1.DEXActivity.details" :
return protoreflect . ValueOfString ( "" )
case "dex.v1.DEXActivity.status" :
return protoreflect . ValueOfString ( "" )
case "dex.v1.DEXActivity.amount" :
list := [] * v1beta1 . Coin {}
return protoreflect . ValueOfList ( & _DEXActivity_9_list { list : & list })
case "dex.v1.DEXActivity.gas_used" :
return protoreflect . ValueOfUint64 ( uint64 ( 0 ))
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.DEXActivity" ))
}
panic ( fmt . Errorf ( "message dex.v1.DEXActivity does not contain field %s" , fd . FullName ()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func ( x * fastReflection_DEXActivity ) WhichOneof ( d protoreflect . OneofDescriptor ) protoreflect . FieldDescriptor {
switch d . FullName () {
default :
panic ( fmt . Errorf ( "%s is not a oneof field in dex.v1.DEXActivity" , d . FullName ()))
}
panic ( "unreachable" )
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func ( x * fastReflection_DEXActivity ) GetUnknown () protoreflect . RawFields {
return x . unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func ( x * fastReflection_DEXActivity ) SetUnknown ( fields protoreflect . RawFields ) {
x . unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func ( x * fastReflection_DEXActivity ) IsValid () bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func ( x * fastReflection_DEXActivity ) ProtoMethods () * protoiface . Methods {
size := func ( input protoiface . SizeInput ) protoiface . SizeOutput {
x := input . Message . Interface ().( * DEXActivity )
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 . Type_ )
if l > 0 {
n += 1 + l + runtime . Sov ( uint64 ( 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 . TxHash )
if l > 0 {
n += 1 + l + runtime . Sov ( uint64 ( l ))
}
if x . BlockHeight != 0 {
n += 1 + runtime . Sov ( uint64 ( x . BlockHeight ))
}
if x . Timestamp != nil {
l = options . Size ( x . Timestamp )
n += 1 + l + runtime . Sov ( uint64 ( l ))
}
l = len ( x . Details )
if l > 0 {
n += 1 + l + runtime . Sov ( uint64 ( l ))
}
l = len ( x . Status )
if l > 0 {
n += 1 + l + runtime . Sov ( uint64 ( l ))
}
if len ( x . Amount ) > 0 {
for _ , e := range x . Amount {
l = options . Size ( e )
n += 1 + l + runtime . Sov ( uint64 ( l ))
}
}
if x . GasUsed != 0 {
n += 1 + runtime . Sov ( uint64 ( x . GasUsed ))
}
if x . unknownFields != nil {
n += len ( x . unknownFields )
}
return protoiface . SizeOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Size : n ,
}
}
marshal := func ( input protoiface . MarshalInput ) ( protoiface . MarshalOutput , error ) {
x := input . Message . Interface ().( * DEXActivity )
if x == nil {
return protoiface . MarshalOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Buf : input . Buf ,
}, nil
}
options := runtime . MarshalInputToOptions ( input )
_ = options
size := options . Size ( x )
dAtA := make ([] 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 . GasUsed != 0 {
i = runtime . EncodeVarint ( dAtA , i , uint64 ( x . GasUsed ))
i --
dAtA [ i ] = 0x50
}
if len ( x . Amount ) > 0 {
for iNdEx := len ( x . Amount ) - 1 ; iNdEx >= 0 ; iNdEx -- {
encoded , err := options . Marshal ( x . Amount [ 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 ] = 0x4a
}
}
if len ( x . Status ) > 0 {
i -= len ( x . Status )
copy ( dAtA [ i :], x . Status )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( x . Status )))
i --
dAtA [ i ] = 0x42
}
if len ( x . Details ) > 0 {
i -= len ( x . Details )
copy ( dAtA [ i :], x . Details )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( x . Details )))
i --
dAtA [ i ] = 0x3a
}
if x . Timestamp != nil {
encoded , err := options . Marshal ( x . Timestamp )
if err != nil {
return protoiface . MarshalOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Buf : input . Buf ,
}, err
}
i -= len ( encoded )
copy ( dAtA [ i :], encoded )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( encoded )))
i --
dAtA [ i ] = 0x32
}
if x . BlockHeight != 0 {
i = runtime . EncodeVarint ( dAtA , i , uint64 ( x . BlockHeight ))
i --
dAtA [ i ] = 0x28
}
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 . ConnectionId ) > 0 {
i -= len ( x . ConnectionId )
copy ( dAtA [ i :], x . ConnectionId )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( x . ConnectionId )))
i --
dAtA [ i ] = 0x1a
}
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 ] = 0x12
}
if len ( x . Type_ ) > 0 {
i -= len ( x . Type_ )
copy ( dAtA [ i :], x . Type_ )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( x . Type_ )))
i --
dAtA [ i ] = 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 ().( * DEXActivity )
if x == nil {
return protoiface . UnmarshalOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Flags : input . Flags ,
}, nil
}
options := runtime . UnmarshalInputToOptions ( input )
_ = options
dAtA := input . Buf
l := len ( dAtA )
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint ( 0 ); ; shift += 7 {
if shift >= 64 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrIntOverflow
}
if iNdEx >= l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
wire |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
fieldNum := int32 ( wire >> 3 )
wireType := int ( wire & 0x7 )
if wireType == 4 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: DEXActivity: wiretype end group for non-group" )
}
if fieldNum <= 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: DEXActivity: 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 Type_" , wireType )
}
var stringLen uint64
for shift := uint ( 0 ); ; shift += 7 {
if shift >= 64 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrIntOverflow
}
if iNdEx >= l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
stringLen |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
intStringLen := int ( stringLen )
if intStringLen < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrInvalidLength
}
if postIndex > l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, io . ErrUnexpectedEOF
}
x . Type_ = string ( dAtA [ iNdEx : postIndex ])
iNdEx = postIndex
case 2 :
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 3 :
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 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
case 5 :
if wireType != 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: wrong wireType = %d for field BlockHeight" , wireType )
}
x . BlockHeight = 0
for shift := uint ( 0 ); ; shift += 7 {
if shift >= 64 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrIntOverflow
}
if iNdEx >= l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
x . BlockHeight |= int64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
case 6 :
if wireType != 2 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: wrong wireType = %d for field Timestamp" , wireType )
}
var msglen int
for shift := uint ( 0 ); ; shift += 7 {
if shift >= 64 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrIntOverflow
}
if iNdEx >= l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
msglen |= int ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrInvalidLength
}
if postIndex > l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, io . ErrUnexpectedEOF
}
if x . Timestamp == nil {
x . Timestamp = & timestamppb . Timestamp {}
}
if err := options . Unmarshal ( dAtA [ iNdEx : postIndex ], x . Timestamp ); err != nil {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, err
}
iNdEx = postIndex
case 7 :
if wireType != 2 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: wrong wireType = %d for field Details" , wireType )
}
var stringLen uint64
for shift := uint ( 0 ); ; shift += 7 {
if shift >= 64 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrIntOverflow
}
if iNdEx >= l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
stringLen |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
intStringLen := int ( stringLen )
if intStringLen < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrInvalidLength
}
if postIndex > l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, io . ErrUnexpectedEOF
}
x . Details = 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 Status" , wireType )
}
var stringLen uint64
for shift := uint ( 0 ); ; shift += 7 {
if shift >= 64 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrIntOverflow
}
if iNdEx >= l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
stringLen |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
intStringLen := int ( stringLen )
if intStringLen < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrInvalidLength
}
if postIndex > l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, io . ErrUnexpectedEOF
}
x . Status = string ( dAtA [ iNdEx : postIndex ])
iNdEx = postIndex
case 9 :
if wireType != 2 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: wrong wireType = %d for field Amount" , wireType )
}
var msglen int
for shift := uint ( 0 ); ; shift += 7 {
if shift >= 64 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrIntOverflow
}
if iNdEx >= l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
msglen |= int ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrInvalidLength
}
if postIndex > l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, io . ErrUnexpectedEOF
}
x . Amount = append ( x . Amount , & v1beta1 . Coin {})
if err := options . Unmarshal ( dAtA [ iNdEx : postIndex ], x . Amount [ len ( x . Amount ) - 1 ]); err != nil {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, err
}
iNdEx = postIndex
case 10 :
if wireType != 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: wrong wireType = %d for field GasUsed" , wireType )
}
x . GasUsed = 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 . GasUsed |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
default :
iNdEx = preIndex
skippy , err := runtime . Skip ( dAtA [ iNdEx :])
if err != nil {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, err
}
if ( skippy < 0 ) || ( iNdEx + skippy ) < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrInvalidLength
}
if ( iNdEx + skippy ) > l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, io . ErrUnexpectedEOF
}
if ! options . DiscardUnknown {
x . unknownFields = append ( x . unknownFields , dAtA [ iNdEx : iNdEx + skippy ] ... )
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, io . ErrUnexpectedEOF
}
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, nil
}
return & protoiface . Methods {
NoUnkeyedLiterals : struct {}{},
Flags : protoiface . SupportMarshalDeterministic | protoiface . SupportUnmarshalDiscardUnknown ,
Size : size ,
Marshal : marshal ,
Unmarshal : unmarshal ,
Merge : nil ,
CheckInitialized : nil ,
}
}
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.0
// protoc (unknown)
// source: dex/v1/ica.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 )
)
// AccountStatus defines the status of an ICA account
type AccountStatus int32
const (
// Account is pending creation
AccountStatus_ACCOUNT_STATUS_PENDING AccountStatus = 0
// Account is active and ready
AccountStatus_ACCOUNT_STATUS_ACTIVE AccountStatus = 1
// Account is temporarily disabled
AccountStatus_ACCOUNT_STATUS_DISABLED AccountStatus = 2
// Account creation failed
AccountStatus_ACCOUNT_STATUS_FAILED AccountStatus = 3
)
// Enum value maps for AccountStatus.
var (
AccountStatus_name = map [ int32 ] string {
0 : "ACCOUNT_STATUS_PENDING" ,
1 : "ACCOUNT_STATUS_ACTIVE" ,
2 : "ACCOUNT_STATUS_DISABLED" ,
3 : "ACCOUNT_STATUS_FAILED" ,
}
AccountStatus_value = map [ string ] int32 {
"ACCOUNT_STATUS_PENDING" : 0 ,
"ACCOUNT_STATUS_ACTIVE" : 1 ,
"ACCOUNT_STATUS_DISABLED" : 2 ,
"ACCOUNT_STATUS_FAILED" : 3 ,
}
)
func ( x AccountStatus ) Enum () * AccountStatus {
p := new ( AccountStatus )
* p = x
return p
}
func ( x AccountStatus ) String () string {
return protoimpl . X . EnumStringOf ( x . Descriptor (), protoreflect . EnumNumber ( x ))
}
func ( AccountStatus ) Descriptor () protoreflect . EnumDescriptor {
return file_dex_v1_ica_proto_enumTypes [ 0 ]. Descriptor ()
}
func ( AccountStatus ) Type () protoreflect . EnumType {
return & file_dex_v1_ica_proto_enumTypes [ 0 ]
}
func ( x AccountStatus ) Number () protoreflect . EnumNumber {
return protoreflect . EnumNumber ( x )
}
// Deprecated: Use AccountStatus.Descriptor instead.
func ( AccountStatus ) EnumDescriptor () ([] byte , [] int ) {
return file_dex_v1_ica_proto_rawDescGZIP (), [] int { 0 }
}
// DEXFeatures defines available features for DEX accounts
type DEXFeatures int32
const (
// Basic swap functionality
DEXFeatures_DEX_FEATURE_SWAP DEXFeatures = 0
// Liquidity provision
DEXFeatures_DEX_FEATURE_LIQUIDITY DEXFeatures = 1
// Limit orders
DEXFeatures_DEX_FEATURE_ORDERS DEXFeatures = 2
// Staking operations
DEXFeatures_DEX_FEATURE_STAKING DEXFeatures = 3
// Governance participation
DEXFeatures_DEX_FEATURE_GOVERNANCE DEXFeatures = 4
)
// Enum value maps for DEXFeatures.
var (
DEXFeatures_name = map [ int32 ] string {
0 : "DEX_FEATURE_SWAP" ,
1 : "DEX_FEATURE_LIQUIDITY" ,
2 : "DEX_FEATURE_ORDERS" ,
3 : "DEX_FEATURE_STAKING" ,
4 : "DEX_FEATURE_GOVERNANCE" ,
}
DEXFeatures_value = map [ string ] int32 {
"DEX_FEATURE_SWAP" : 0 ,
"DEX_FEATURE_LIQUIDITY" : 1 ,
"DEX_FEATURE_ORDERS" : 2 ,
"DEX_FEATURE_STAKING" : 3 ,
"DEX_FEATURE_GOVERNANCE" : 4 ,
}
)
func ( x DEXFeatures ) Enum () * DEXFeatures {
p := new ( DEXFeatures )
* p = x
return p
}
func ( x DEXFeatures ) String () string {
return protoimpl . X . EnumStringOf ( x . Descriptor (), protoreflect . EnumNumber ( x ))
}
func ( DEXFeatures ) Descriptor () protoreflect . EnumDescriptor {
return file_dex_v1_ica_proto_enumTypes [ 1 ]. Descriptor ()
}
func ( DEXFeatures ) Type () protoreflect . EnumType {
return & file_dex_v1_ica_proto_enumTypes [ 1 ]
}
func ( x DEXFeatures ) Number () protoreflect . EnumNumber {
return protoreflect . EnumNumber ( x )
}
// Deprecated: Use DEXFeatures.Descriptor instead.
func ( DEXFeatures ) EnumDescriptor () ([] byte , [] int ) {
return file_dex_v1_ica_proto_rawDescGZIP (), [] int { 1 }
}
// InterchainDEXAccount represents a DEX account on a remote chain
type InterchainDEXAccount struct {
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
// DID controller of this account
Did string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty"`
// IBC connection to the remote chain
ConnectionId string `protobuf:"bytes,2,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"`
// Remote chain ID (e.g., osmosis-1)
HostChainId string `protobuf:"bytes,3,opt,name=host_chain_id,json=hostChainId,proto3" json:"host_chain_id,omitempty"`
// Account address on the remote chain
AccountAddress string `protobuf:"bytes,4,opt,name=account_address,json=accountAddress,proto3" json:"account_address,omitempty"`
// ICA port ID for this account
PortId string `protobuf:"bytes,5,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"`
// Account creation timestamp
CreatedAt * timestamppb . Timestamp `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
// Enabled features for this account
EnabledFeatures [] string `protobuf:"bytes,7,rep,name=enabled_features,json=enabledFeatures,proto3" json:"enabled_features,omitempty"`
// Account status
Status AccountStatus `protobuf:"varint,8,opt,name=status,proto3,enum=dex.v1.AccountStatus" json:"status,omitempty"`
}
func ( x * InterchainDEXAccount ) Reset () {
* x = InterchainDEXAccount {}
if protoimpl . UnsafeEnabled {
mi := & file_dex_v1_ica_proto_msgTypes [ 0 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ))
ms . StoreMessageInfo ( mi )
}
}
func ( x * InterchainDEXAccount ) String () string {
return protoimpl . X . MessageStringOf ( x )
}
func ( * InterchainDEXAccount ) ProtoMessage () {}
// Deprecated: Use InterchainDEXAccount.ProtoReflect.Descriptor instead.
func ( * InterchainDEXAccount ) Descriptor () ([] byte , [] int ) {
return file_dex_v1_ica_proto_rawDescGZIP (), [] int { 0 }
}
func ( x * InterchainDEXAccount ) GetDid () string {
if x != nil {
return x . Did
}
return ""
}
func ( x * InterchainDEXAccount ) GetConnectionId () string {
if x != nil {
return x . ConnectionId
}
return ""
}
func ( x * InterchainDEXAccount ) GetHostChainId () string {
if x != nil {
return x . HostChainId
}
return ""
}
func ( x * InterchainDEXAccount ) GetAccountAddress () string {
if x != nil {
return x . AccountAddress
}
return ""
}
func ( x * InterchainDEXAccount ) GetPortId () string {
if x != nil {
return x . PortId
}
return ""
}
func ( x * InterchainDEXAccount ) GetCreatedAt () * timestamppb . Timestamp {
if x != nil {
return x . CreatedAt
}
return nil
}
func ( x * InterchainDEXAccount ) GetEnabledFeatures () [] string {
if x != nil {
return x . EnabledFeatures
}
return nil
}
func ( x * InterchainDEXAccount ) GetStatus () AccountStatus {
if x != nil {
return x . Status
}
return AccountStatus_ACCOUNT_STATUS_PENDING
}
// DEXActivity represents a DEX operation activity record
type DEXActivity struct {
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
// Type of activity (swap, provide_liquidity, remove_liquidity, create_order, cancel_order)
Type_ string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
// DID that performed the activity
Did string `protobuf:"bytes,2,opt,name=did,proto3" json:"did,omitempty"`
// Connection ID where the activity occurred
ConnectionId string `protobuf:"bytes,3,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"`
// Transaction hash of the activity
TxHash string `protobuf:"bytes,4,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"`
// Block height when the activity occurred
BlockHeight int64 `protobuf:"varint,5,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"`
// Timestamp of the activity
Timestamp * timestamppb . Timestamp `protobuf:"bytes,6,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
// Activity-specific details (JSON encoded)
Details string `protobuf:"bytes,7,opt,name=details,proto3" json:"details,omitempty"`
// Status of the activity (pending, success, failed)
Status string `protobuf:"bytes,8,opt,name=status,proto3" json:"status,omitempty"`
// Amount involved in the activity (if applicable)
Amount [] * v1beta1 . Coin `protobuf:"bytes,9,rep,name=amount,proto3" json:"amount,omitempty"`
// Gas used for the activity
GasUsed uint64 `protobuf:"varint,10,opt,name=gas_used,json=gasUsed,proto3" json:"gas_used,omitempty"`
}
func ( x * DEXActivity ) Reset () {
* x = DEXActivity {}
if protoimpl . UnsafeEnabled {
mi := & file_dex_v1_ica_proto_msgTypes [ 1 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ))
ms . StoreMessageInfo ( mi )
}
}
func ( x * DEXActivity ) String () string {
return protoimpl . X . MessageStringOf ( x )
}
func ( * DEXActivity ) ProtoMessage () {}
// Deprecated: Use DEXActivity.ProtoReflect.Descriptor instead.
func ( * DEXActivity ) Descriptor () ([] byte , [] int ) {
return file_dex_v1_ica_proto_rawDescGZIP (), [] int { 1 }
}
func ( x * DEXActivity ) GetType_ () string {
if x != nil {
return x . Type_
}
return ""
}
func ( x * DEXActivity ) GetDid () string {
if x != nil {
return x . Did
}
return ""
}
func ( x * DEXActivity ) GetConnectionId () string {
if x != nil {
return x . ConnectionId
}
return ""
}
func ( x * DEXActivity ) GetTxHash () string {
if x != nil {
return x . TxHash
}
return ""
}
func ( x * DEXActivity ) GetBlockHeight () int64 {
if x != nil {
return x . BlockHeight
}
return 0
}
func ( x * DEXActivity ) GetTimestamp () * timestamppb . Timestamp {
if x != nil {
return x . Timestamp
}
return nil
}
func ( x * DEXActivity ) GetDetails () string {
if x != nil {
return x . Details
}
return ""
}
func ( x * DEXActivity ) GetStatus () string {
if x != nil {
return x . Status
}
return ""
}
func ( x * DEXActivity ) GetAmount () [] * v1beta1 . Coin {
if x != nil {
return x . Amount
}
return nil
}
func ( x * DEXActivity ) GetGasUsed () uint64 {
if x != nil {
return x . GasUsed
}
return 0
}
var File_dex_v1_ica_proto protoreflect . FileDescriptor
var file_dex_v1_ica_proto_rawDesc = [] byte {
0x0a , 0x10 , 0x64 , 0x65 , 0x78 , 0x2f , 0x76 , 0x31 , 0x2f , 0x69 , 0x63 , 0x61 , 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 , 0x19 , 0x63 , 0x6f , 0x73 , 0x6d , 0x6f , 0x73 , 0x5f , 0x70 , 0x72 , 0x6f , 0x74 , 0x6f , 0x2f , 0x63 ,
0x6f , 0x73 , 0x6d , 0x6f , 0x73 , 0x2e , 0x70 , 0x72 , 0x6f , 0x74 , 0x6f , 0x1a , 0x1f , 0x67 , 0x6f , 0x6f ,
0x67 , 0x6c , 0x65 , 0x2f , 0x70 , 0x72 , 0x6f , 0x74 , 0x6f , 0x62 , 0x75 , 0x66 , 0x2f , 0x74 , 0x69 , 0x6d ,
0x65 , 0x73 , 0x74 , 0x61 , 0x6d , 0x70 , 0x2e , 0x70 , 0x72 , 0x6f , 0x74 , 0x6f , 0x1a , 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 , 0xf2 , 0x02 , 0x0a ,
0x14 , 0x49 , 0x6e , 0x74 , 0x65 , 0x72 , 0x63 , 0x68 , 0x61 , 0x69 , 0x6e , 0x44 , 0x45 , 0x58 , 0x41 , 0x63 ,
0x63 , 0x6f , 0x75 , 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 , 0x22 , 0x0a , 0x0d ,
0x68 , 0x6f , 0x73 , 0x74 , 0x5f , 0x63 , 0x68 , 0x61 , 0x69 , 0x6e , 0x5f , 0x69 , 0x64 , 0x18 , 0x03 , 0x20 ,
0x01 , 0x28 , 0x09 , 0x52 , 0x0b , 0x68 , 0x6f , 0x73 , 0x74 , 0x43 , 0x68 , 0x61 , 0x69 , 0x6e , 0x49 , 0x64 ,
0x12 , 0x41 , 0x0a , 0x0f , 0x61 , 0x63 , 0x63 , 0x6f , 0x75 , 0x6e , 0x74 , 0x5f , 0x61 , 0x64 , 0x64 , 0x72 ,
0x65 , 0x73 , 0x73 , 0x18 , 0x04 , 0x20 , 0x01 , 0x28 , 0x09 , 0x42 , 0x18 , 0xd2 , 0xb4 , 0x2d , 0x14 , 0x63 ,
0x6f , 0x73 , 0x6d , 0x6f , 0x73 , 0x2e , 0x41 , 0x64 , 0x64 , 0x72 , 0x65 , 0x73 , 0x73 , 0x53 , 0x74 , 0x72 ,
0x69 , 0x6e , 0x67 , 0x52 , 0x0e , 0x61 , 0x63 , 0x63 , 0x6f , 0x75 , 0x6e , 0x74 , 0x41 , 0x64 , 0x64 , 0x72 ,
0x65 , 0x73 , 0x73 , 0x12 , 0x17 , 0x0a , 0x07 , 0x70 , 0x6f , 0x72 , 0x74 , 0x5f , 0x69 , 0x64 , 0x18 , 0x05 ,
0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x06 , 0x70 , 0x6f , 0x72 , 0x74 , 0x49 , 0x64 , 0x12 , 0x43 , 0x0a , 0x0a ,
0x63 , 0x72 , 0x65 , 0x61 , 0x74 , 0x65 , 0x64 , 0x5f , 0x61 , 0x74 , 0x18 , 0x06 , 0x20 , 0x01 , 0x28 , 0x0b ,
0x32 , 0x1a , 0x2e , 0x67 , 0x6f , 0x6f , 0x67 , 0x6c , 0x65 , 0x2e , 0x70 , 0x72 , 0x6f , 0x74 , 0x6f , 0x62 ,
0x75 , 0x66 , 0x2e , 0x54 , 0x69 , 0x6d , 0x65 , 0x73 , 0x74 , 0x61 , 0x6d , 0x70 , 0x42 , 0x08 , 0xc8 , 0xde ,
0x1f , 0x00 , 0x90 , 0xdf , 0x1f , 0x01 , 0x52 , 0x09 , 0x63 , 0x72 , 0x65 , 0x61 , 0x74 , 0x65 , 0x64 , 0x41 ,
0x74 , 0x12 , 0x29 , 0x0a , 0x10 , 0x65 , 0x6e , 0x61 , 0x62 , 0x6c , 0x65 , 0x64 , 0x5f , 0x66 , 0x65 , 0x61 ,
0x74 , 0x75 , 0x72 , 0x65 , 0x73 , 0x18 , 0x07 , 0x20 , 0x03 , 0x28 , 0x09 , 0x52 , 0x0f , 0x65 , 0x6e , 0x61 ,
0x62 , 0x6c , 0x65 , 0x64 , 0x46 , 0x65 , 0x61 , 0x74 , 0x75 , 0x72 , 0x65 , 0x73 , 0x12 , 0x2d , 0x0a , 0x06 ,
0x73 , 0x74 , 0x61 , 0x74 , 0x75 , 0x73 , 0x18 , 0x08 , 0x20 , 0x01 , 0x28 , 0x0e , 0x32 , 0x15 , 0x2e , 0x64 ,
0x65 , 0x78 , 0x2e , 0x76 , 0x31 , 0x2e , 0x41 , 0x63 , 0x63 , 0x6f , 0x75 , 0x6e , 0x74 , 0x53 , 0x74 , 0x61 ,
0x74 , 0x75 , 0x73 , 0x52 , 0x06 , 0x73 , 0x74 , 0x61 , 0x74 , 0x75 , 0x73 , 0x3a , 0x04 , 0x88 , 0xa0 , 0x1f ,
0x00 , 0x22 , 0x8a , 0x03 , 0x0a , 0x0b , 0x44 , 0x45 , 0x58 , 0x41 , 0x63 , 0x74 , 0x69 , 0x76 , 0x69 , 0x74 ,
0x79 , 0x12 , 0x12 , 0x0a , 0x04 , 0x74 , 0x79 , 0x70 , 0x65 , 0x18 , 0x01 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 ,
0x04 , 0x74 , 0x79 , 0x70 , 0x65 , 0x12 , 0x10 , 0x0a , 0x03 , 0x64 , 0x69 , 0x64 , 0x18 , 0x02 , 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 , 0x03 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x0c ,
0x63 , 0x6f , 0x6e , 0x6e , 0x65 , 0x63 , 0x74 , 0x69 , 0x6f , 0x6e , 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 , 0x12 , 0x21 , 0x0a , 0x0c , 0x62 , 0x6c , 0x6f , 0x63 , 0x6b , 0x5f , 0x68 ,
0x65 , 0x69 , 0x67 , 0x68 , 0x74 , 0x18 , 0x05 , 0x20 , 0x01 , 0x28 , 0x03 , 0x52 , 0x0b , 0x62 , 0x6c , 0x6f ,
0x63 , 0x6b , 0x48 , 0x65 , 0x69 , 0x67 , 0x68 , 0x74 , 0x12 , 0x42 , 0x0a , 0x09 , 0x74 , 0x69 , 0x6d , 0x65 ,
0x73 , 0x74 , 0x61 , 0x6d , 0x70 , 0x18 , 0x06 , 0x20 , 0x01 , 0x28 , 0x0b , 0x32 , 0x1a , 0x2e , 0x67 , 0x6f ,
0x6f , 0x67 , 0x6c , 0x65 , 0x2e , 0x70 , 0x72 , 0x6f , 0x74 , 0x6f , 0x62 , 0x75 , 0x66 , 0x2e , 0x54 , 0x69 ,
0x6d , 0x65 , 0x73 , 0x74 , 0x61 , 0x6d , 0x70 , 0x42 , 0x08 , 0xc8 , 0xde , 0x1f , 0x00 , 0x90 , 0xdf , 0x1f ,
0x01 , 0x52 , 0x09 , 0x74 , 0x69 , 0x6d , 0x65 , 0x73 , 0x74 , 0x61 , 0x6d , 0x70 , 0x12 , 0x18 , 0x0a , 0x07 ,
0x64 , 0x65 , 0x74 , 0x61 , 0x69 , 0x6c , 0x73 , 0x18 , 0x07 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x07 , 0x64 ,
0x65 , 0x74 , 0x61 , 0x69 , 0x6c , 0x73 , 0x12 , 0x16 , 0x0a , 0x06 , 0x73 , 0x74 , 0x61 , 0x74 , 0x75 , 0x73 ,
0x18 , 0x08 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x06 , 0x73 , 0x74 , 0x61 , 0x74 , 0x75 , 0x73 , 0x12 , 0x63 ,
0x0a , 0x06 , 0x61 , 0x6d , 0x6f , 0x75 , 0x6e , 0x74 , 0x18 , 0x09 , 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 , 0x6d , 0x6f ,
0x75 , 0x6e , 0x74 , 0x12 , 0x19 , 0x0a , 0x08 , 0x67 , 0x61 , 0x73 , 0x5f , 0x75 , 0x73 , 0x65 , 0x64 , 0x18 ,
0x0a , 0x20 , 0x01 , 0x28 , 0x04 , 0x52 , 0x07 , 0x67 , 0x61 , 0x73 , 0x55 , 0x73 , 0x65 , 0x64 , 0x2a , 0x84 ,
0x01 , 0x0a , 0x0d , 0x41 , 0x63 , 0x63 , 0x6f , 0x75 , 0x6e , 0x74 , 0x53 , 0x74 , 0x61 , 0x74 , 0x75 , 0x73 ,
0x12 , 0x1a , 0x0a , 0x16 , 0x41 , 0x43 , 0x43 , 0x4f , 0x55 , 0x4e , 0x54 , 0x5f , 0x53 , 0x54 , 0x41 , 0x54 ,
0x55 , 0x53 , 0x5f , 0x50 , 0x45 , 0x4e , 0x44 , 0x49 , 0x4e , 0x47 , 0x10 , 0x00 , 0x12 , 0x19 , 0x0a , 0x15 ,
0x41 , 0x43 , 0x43 , 0x4f , 0x55 , 0x4e , 0x54 , 0x5f , 0x53 , 0x54 , 0x41 , 0x54 , 0x55 , 0x53 , 0x5f , 0x41 ,
0x43 , 0x54 , 0x49 , 0x56 , 0x45 , 0x10 , 0x01 , 0x12 , 0x1b , 0x0a , 0x17 , 0x41 , 0x43 , 0x43 , 0x4f , 0x55 ,
0x4e , 0x54 , 0x5f , 0x53 , 0x54 , 0x41 , 0x54 , 0x55 , 0x53 , 0x5f , 0x44 , 0x49 , 0x53 , 0x41 , 0x42 , 0x4c ,
0x45 , 0x44 , 0x10 , 0x02 , 0x12 , 0x19 , 0x0a , 0x15 , 0x41 , 0x43 , 0x43 , 0x4f , 0x55 , 0x4e , 0x54 , 0x5f ,
0x53 , 0x54 , 0x41 , 0x54 , 0x55 , 0x53 , 0x5f , 0x46 , 0x41 , 0x49 , 0x4c , 0x45 , 0x44 , 0x10 , 0x03 , 0x1a ,
0x04 , 0x88 , 0xa3 , 0x1e , 0x00 , 0x2a , 0x91 , 0x01 , 0x0a , 0x0b , 0x44 , 0x45 , 0x58 , 0x46 , 0x65 , 0x61 ,
0x74 , 0x75 , 0x72 , 0x65 , 0x73 , 0x12 , 0x14 , 0x0a , 0x10 , 0x44 , 0x45 , 0x58 , 0x5f , 0x46 , 0x45 , 0x41 ,
0x54 , 0x55 , 0x52 , 0x45 , 0x5f , 0x53 , 0x57 , 0x41 , 0x50 , 0x10 , 0x00 , 0x12 , 0x19 , 0x0a , 0x15 , 0x44 ,
0x45 , 0x58 , 0x5f , 0x46 , 0x45 , 0x41 , 0x54 , 0x55 , 0x52 , 0x45 , 0x5f , 0x4c , 0x49 , 0x51 , 0x55 , 0x49 ,
0x44 , 0x49 , 0x54 , 0x59 , 0x10 , 0x01 , 0x12 , 0x16 , 0x0a , 0x12 , 0x44 , 0x45 , 0x58 , 0x5f , 0x46 , 0x45 ,
0x41 , 0x54 , 0x55 , 0x52 , 0x45 , 0x5f , 0x4f , 0x52 , 0x44 , 0x45 , 0x52 , 0x53 , 0x10 , 0x02 , 0x12 , 0x17 ,
0x0a , 0x13 , 0x44 , 0x45 , 0x58 , 0x5f , 0x46 , 0x45 , 0x41 , 0x54 , 0x55 , 0x52 , 0x45 , 0x5f , 0x53 , 0x54 ,
0x41 , 0x4b , 0x49 , 0x4e , 0x47 , 0x10 , 0x03 , 0x12 , 0x1a , 0x0a , 0x16 , 0x44 , 0x45 , 0x58 , 0x5f , 0x46 ,
0x45 , 0x41 , 0x54 , 0x55 , 0x52 , 0x45 , 0x5f , 0x47 , 0x4f , 0x56 , 0x45 , 0x52 , 0x4e , 0x41 , 0x4e , 0x43 ,
0x45 , 0x10 , 0x04 , 0x1a , 0x04 , 0x88 , 0xa3 , 0x1e , 0x00 , 0x42 , 0x79 , 0x0a , 0x0a , 0x63 , 0x6f , 0x6d ,
0x2e , 0x64 , 0x65 , 0x78 , 0x2e , 0x76 , 0x31 , 0x42 , 0x08 , 0x49 , 0x63 , 0x61 , 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_ica_proto_rawDescOnce sync . Once
file_dex_v1_ica_proto_rawDescData = file_dex_v1_ica_proto_rawDesc
)
func file_dex_v1_ica_proto_rawDescGZIP () [] byte {
file_dex_v1_ica_proto_rawDescOnce . Do ( func () {
file_dex_v1_ica_proto_rawDescData = protoimpl . X . CompressGZIP ( file_dex_v1_ica_proto_rawDescData )
})
return file_dex_v1_ica_proto_rawDescData
}
var file_dex_v1_ica_proto_enumTypes = make ([] protoimpl . EnumInfo , 2 )
var file_dex_v1_ica_proto_msgTypes = make ([] protoimpl . MessageInfo , 2 )
var file_dex_v1_ica_proto_goTypes = [] interface {}{
( AccountStatus )( 0 ), // 0: dex.v1.AccountStatus
( DEXFeatures )( 0 ), // 1: dex.v1.DEXFeatures
( * InterchainDEXAccount )( nil ), // 2: dex.v1.InterchainDEXAccount
( * DEXActivity )( nil ), // 3: dex.v1.DEXActivity
( * timestamppb . Timestamp )( nil ), // 4: google.protobuf.Timestamp
( * v1beta1 . Coin )( nil ), // 5: cosmos.base.v1beta1.Coin
}
var file_dex_v1_ica_proto_depIdxs = [] int32 {
4 , // 0: dex.v1.InterchainDEXAccount.created_at:type_name -> google.protobuf.Timestamp
0 , // 1: dex.v1.InterchainDEXAccount.status:type_name -> dex.v1.AccountStatus
4 , // 2: dex.v1.DEXActivity.timestamp:type_name -> google.protobuf.Timestamp
5 , // 3: dex.v1.DEXActivity.amount: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_ica_proto_init () }
func file_dex_v1_ica_proto_init () {
if File_dex_v1_ica_proto != nil {
return
}
if ! protoimpl . UnsafeEnabled {
file_dex_v1_ica_proto_msgTypes [ 0 ]. Exporter = func ( v interface {}, i int ) interface {} {
switch v := v .( * InterchainDEXAccount ); i {
case 0 :
return & v . state
case 1 :
return & v . sizeCache
case 2 :
return & v . unknownFields
default :
return nil
}
}
file_dex_v1_ica_proto_msgTypes [ 1 ]. Exporter = func ( v interface {}, i int ) interface {} {
switch v := v .( * DEXActivity ); 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_ica_proto_rawDesc ,
NumEnums : 2 ,
NumMessages : 2 ,
NumExtensions : 0 ,
NumServices : 0 ,
},
GoTypes : file_dex_v1_ica_proto_goTypes ,
DependencyIndexes : file_dex_v1_ica_proto_depIdxs ,
EnumInfos : file_dex_v1_ica_proto_enumTypes ,
MessageInfos : file_dex_v1_ica_proto_msgTypes ,
}. Build ()
File_dex_v1_ica_proto = out . File
file_dex_v1_ica_proto_rawDesc = nil
file_dex_v1_ica_proto_goTypes = nil
file_dex_v1_ica_proto_depIdxs = nil
}