2025-10-03 14:45:52 -04:00
// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
package dexv1
import (
fmt "fmt"
runtime "github.com/cosmos/cosmos-proto/runtime"
_ "github.com/cosmos/gogoproto/gogoproto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoiface "google.golang.org/protobuf/runtime/protoiface"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
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 = ( * _GenesisState_3_list )( nil )
type _GenesisState_3_list struct {
list * [] * InterchainDEXAccount
}
func ( x * _GenesisState_3_list ) Len () int {
if x . list == nil {
return 0
}
return len ( * x . list )
}
func ( x * _GenesisState_3_list ) Get ( i int ) protoreflect . Value {
return protoreflect . ValueOfMessage (( * x . list )[ i ]. ProtoReflect ())
}
func ( x * _GenesisState_3_list ) Set ( i int , value protoreflect . Value ) {
valueUnwrapped := value . Message ()
concreteValue := valueUnwrapped . Interface ().( * InterchainDEXAccount )
( * x . list )[ i ] = concreteValue
}
func ( x * _GenesisState_3_list ) Append ( value protoreflect . Value ) {
valueUnwrapped := value . Message ()
concreteValue := valueUnwrapped . Interface ().( * InterchainDEXAccount )
* x . list = append ( * x . list , concreteValue )
}
func ( x * _GenesisState_3_list ) AppendMutable () protoreflect . Value {
v := new ( InterchainDEXAccount )
* x . list = append ( * x . list , v )
return protoreflect . ValueOfMessage ( v . ProtoReflect ())
}
func ( x * _GenesisState_3_list ) Truncate ( n int ) {
for i := n ; i < len ( * x . list ); i ++ {
( * x . list )[ i ] = nil
}
* x . list = ( * x . list )[: n ]
}
func ( x * _GenesisState_3_list ) NewElement () protoreflect . Value {
v := new ( InterchainDEXAccount )
return protoreflect . ValueOfMessage ( v . ProtoReflect ())
}
func ( x * _GenesisState_3_list ) IsValid () bool {
return x . list != nil
}
var (
md_GenesisState protoreflect . MessageDescriptor
fd_GenesisState_params protoreflect . FieldDescriptor
fd_GenesisState_port_id protoreflect . FieldDescriptor
fd_GenesisState_accounts protoreflect . FieldDescriptor
fd_GenesisState_account_sequence protoreflect . FieldDescriptor
)
func init () {
file_dex_v1_genesis_proto_init ()
md_GenesisState = File_dex_v1_genesis_proto . Messages (). ByName ( "GenesisState" )
fd_GenesisState_params = md_GenesisState . Fields (). ByName ( "params" )
fd_GenesisState_port_id = md_GenesisState . Fields (). ByName ( "port_id" )
fd_GenesisState_accounts = md_GenesisState . Fields (). ByName ( "accounts" )
fd_GenesisState_account_sequence = md_GenesisState . Fields (). ByName ( "account_sequence" )
}
var _ protoreflect . Message = ( * fastReflection_GenesisState )( nil )
type fastReflection_GenesisState GenesisState
func ( x * GenesisState ) ProtoReflect () protoreflect . Message {
return ( * fastReflection_GenesisState )( x )
}
func ( x * GenesisState ) slowProtoReflect () protoreflect . Message {
mi := & file_dex_v1_genesis_proto_msgTypes [ 0 ]
if protoimpl . UnsafeEnabled && x != nil {
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ))
if ms . LoadMessageInfo () == nil {
ms . StoreMessageInfo ( mi )
}
return ms
}
return mi . MessageOf ( x )
}
var _fastReflection_GenesisState_messageType fastReflection_GenesisState_messageType
var _ protoreflect . MessageType = fastReflection_GenesisState_messageType {}
type fastReflection_GenesisState_messageType struct {}
func ( x fastReflection_GenesisState_messageType ) Zero () protoreflect . Message {
return ( * fastReflection_GenesisState )( nil )
}
func ( x fastReflection_GenesisState_messageType ) New () protoreflect . Message {
return new ( fastReflection_GenesisState )
}
func ( x fastReflection_GenesisState_messageType ) Descriptor () protoreflect . MessageDescriptor {
return md_GenesisState
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func ( x * fastReflection_GenesisState ) Descriptor () protoreflect . MessageDescriptor {
return md_GenesisState
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func ( x * fastReflection_GenesisState ) Type () protoreflect . MessageType {
return _fastReflection_GenesisState_messageType
}
// New returns a newly allocated and mutable empty message.
func ( x * fastReflection_GenesisState ) New () protoreflect . Message {
return new ( fastReflection_GenesisState )
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func ( x * fastReflection_GenesisState ) Interface () protoreflect . ProtoMessage {
return ( * GenesisState )( x )
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func ( x * fastReflection_GenesisState ) Range ( f func ( protoreflect . FieldDescriptor , protoreflect . Value ) bool ) {
if x . Params != nil {
value := protoreflect . ValueOfMessage ( x . Params . ProtoReflect ())
if ! f ( fd_GenesisState_params , value ) {
return
}
}
if x . PortId != "" {
value := protoreflect . ValueOfString ( x . PortId )
if ! f ( fd_GenesisState_port_id , value ) {
return
}
}
if len ( x . Accounts ) != 0 {
value := protoreflect . ValueOfList ( & _GenesisState_3_list { list : & x . Accounts })
if ! f ( fd_GenesisState_accounts , value ) {
return
}
}
if x . AccountSequence != uint64 ( 0 ) {
value := protoreflect . ValueOfUint64 ( x . AccountSequence )
if ! f ( fd_GenesisState_account_sequence , value ) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func ( x * fastReflection_GenesisState ) Has ( fd protoreflect . FieldDescriptor ) bool {
switch fd . FullName () {
case "dex.v1.GenesisState.params" :
return x . Params != nil
case "dex.v1.GenesisState.port_id" :
return x . PortId != ""
case "dex.v1.GenesisState.accounts" :
return len ( x . Accounts ) != 0
case "dex.v1.GenesisState.account_sequence" :
return x . AccountSequence != uint64 ( 0 )
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.GenesisState" ))
}
panic ( fmt . Errorf ( "message dex.v1.GenesisState does not contain field %s" , fd . FullName ()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func ( x * fastReflection_GenesisState ) Clear ( fd protoreflect . FieldDescriptor ) {
switch fd . FullName () {
case "dex.v1.GenesisState.params" :
x . Params = nil
case "dex.v1.GenesisState.port_id" :
x . PortId = ""
case "dex.v1.GenesisState.accounts" :
x . Accounts = nil
case "dex.v1.GenesisState.account_sequence" :
x . AccountSequence = uint64 ( 0 )
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.GenesisState" ))
}
panic ( fmt . Errorf ( "message dex.v1.GenesisState does not contain field %s" , fd . FullName ()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func ( x * fastReflection_GenesisState ) Get ( descriptor protoreflect . FieldDescriptor ) protoreflect . Value {
switch descriptor . FullName () {
case "dex.v1.GenesisState.params" :
value := x . Params
return protoreflect . ValueOfMessage ( value . ProtoReflect ())
case "dex.v1.GenesisState.port_id" :
value := x . PortId
return protoreflect . ValueOfString ( value )
case "dex.v1.GenesisState.accounts" :
if len ( x . Accounts ) == 0 {
return protoreflect . ValueOfList ( & _GenesisState_3_list {})
}
listValue := & _GenesisState_3_list { list : & x . Accounts }
return protoreflect . ValueOfList ( listValue )
case "dex.v1.GenesisState.account_sequence" :
value := x . AccountSequence
return protoreflect . ValueOfUint64 ( value )
default :
if descriptor . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.GenesisState" ))
}
panic ( fmt . Errorf ( "message dex.v1.GenesisState does not contain field %s" , descriptor . FullName ()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func ( x * fastReflection_GenesisState ) Set ( fd protoreflect . FieldDescriptor , value protoreflect . Value ) {
switch fd . FullName () {
case "dex.v1.GenesisState.params" :
x . Params = value . Message (). Interface ().( * Params )
case "dex.v1.GenesisState.port_id" :
x . PortId = value . Interface ().( string )
case "dex.v1.GenesisState.accounts" :
lv := value . List ()
clv := lv .( * _GenesisState_3_list )
x . Accounts = * clv . list
case "dex.v1.GenesisState.account_sequence" :
x . AccountSequence = value . Uint ()
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.GenesisState" ))
}
panic ( fmt . Errorf ( "message dex.v1.GenesisState does not contain field %s" , fd . FullName ()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func ( x * fastReflection_GenesisState ) Mutable ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
switch fd . FullName () {
case "dex.v1.GenesisState.params" :
if x . Params == nil {
x . Params = new ( Params )
}
return protoreflect . ValueOfMessage ( x . Params . ProtoReflect ())
case "dex.v1.GenesisState.accounts" :
if x . Accounts == nil {
x . Accounts = [] * InterchainDEXAccount {}
}
value := & _GenesisState_3_list { list : & x . Accounts }
return protoreflect . ValueOfList ( value )
case "dex.v1.GenesisState.port_id" :
panic ( fmt . Errorf ( "field port_id of message dex.v1.GenesisState is not mutable" ))
case "dex.v1.GenesisState.account_sequence" :
panic ( fmt . Errorf ( "field account_sequence of message dex.v1.GenesisState is not mutable" ))
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.GenesisState" ))
}
panic ( fmt . Errorf ( "message dex.v1.GenesisState does not contain field %s" , fd . FullName ()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func ( x * fastReflection_GenesisState ) NewField ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
switch fd . FullName () {
case "dex.v1.GenesisState.params" :
m := new ( Params )
return protoreflect . ValueOfMessage ( m . ProtoReflect ())
case "dex.v1.GenesisState.port_id" :
return protoreflect . ValueOfString ( "" )
case "dex.v1.GenesisState.accounts" :
list := [] * InterchainDEXAccount {}
return protoreflect . ValueOfList ( & _GenesisState_3_list { list : & list })
case "dex.v1.GenesisState.account_sequence" :
return protoreflect . ValueOfUint64 ( uint64 ( 0 ))
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.GenesisState" ))
}
panic ( fmt . Errorf ( "message dex.v1.GenesisState does not contain field %s" , fd . FullName ()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func ( x * fastReflection_GenesisState ) WhichOneof ( d protoreflect . OneofDescriptor ) protoreflect . FieldDescriptor {
switch d . FullName () {
default :
panic ( fmt . Errorf ( "%s is not a oneof field in dex.v1.GenesisState" , d . FullName ()))
}
panic ( "unreachable" )
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func ( x * fastReflection_GenesisState ) GetUnknown () protoreflect . RawFields {
return x . unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func ( x * fastReflection_GenesisState ) SetUnknown ( fields protoreflect . RawFields ) {
x . unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func ( x * fastReflection_GenesisState ) IsValid () bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func ( x * fastReflection_GenesisState ) ProtoMethods () * protoiface . Methods {
size := func ( input protoiface . SizeInput ) protoiface . SizeOutput {
x := input . Message . Interface ().( * GenesisState )
if x == nil {
return protoiface . SizeOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Size : 0 ,
}
}
options := runtime . SizeInputToOptions ( input )
_ = options
var n int
var l int
_ = l
if x . Params != nil {
l = options . Size ( x . Params )
n += 1 + l + runtime . Sov ( uint64 ( l ))
}
l = len ( x . PortId )
if l > 0 {
n += 1 + l + runtime . Sov ( uint64 ( l ))
}
if len ( x . Accounts ) > 0 {
for _ , e := range x . Accounts {
l = options . Size ( e )
n += 1 + l + runtime . Sov ( uint64 ( l ))
}
}
if x . AccountSequence != 0 {
n += 1 + runtime . Sov ( uint64 ( x . AccountSequence ))
}
if x . unknownFields != nil {
n += len ( x . unknownFields )
}
return protoiface . SizeOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Size : n ,
}
}
marshal := func ( input protoiface . MarshalInput ) ( protoiface . MarshalOutput , error ) {
x := input . Message . Interface ().( * GenesisState )
if x == nil {
return protoiface . MarshalOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Buf : input . Buf ,
}, nil
}
options := runtime . MarshalInputToOptions ( input )
_ = options
size := options . Size ( x )
dAtA := make ([] byte , size )
i := len ( dAtA )
_ = i
var l int
_ = l
if x . unknownFields != nil {
i -= len ( x . unknownFields )
copy ( dAtA [ i :], x . unknownFields )
}
if x . AccountSequence != 0 {
i = runtime . EncodeVarint ( dAtA , i , uint64 ( x . AccountSequence ))
i --
dAtA [ i ] = 0x20
}
if len ( x . Accounts ) > 0 {
for iNdEx := len ( x . Accounts ) - 1 ; iNdEx >= 0 ; iNdEx -- {
encoded , err := options . Marshal ( x . Accounts [ iNdEx ])
if err != nil {
return protoiface . MarshalOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Buf : input . Buf ,
}, err
}
i -= len ( encoded )
copy ( dAtA [ i :], encoded )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( encoded )))
i --
dAtA [ i ] = 0x1a
}
}
if 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 ] = 0x12
}
if x . Params != nil {
encoded , err := options . Marshal ( x . Params )
if err != nil {
return protoiface . MarshalOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Buf : input . Buf ,
}, err
}
i -= len ( encoded )
copy ( dAtA [ i :], encoded )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( encoded )))
i --
dAtA [ i ] = 0xa
}
if input . Buf != nil {
input . Buf = append ( input . Buf , dAtA ... )
} else {
input . Buf = dAtA
}
return protoiface . MarshalOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Buf : input . Buf ,
}, nil
}
unmarshal := func ( input protoiface . UnmarshalInput ) ( protoiface . UnmarshalOutput , error ) {
x := input . Message . Interface ().( * GenesisState )
if x == nil {
return protoiface . UnmarshalOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Flags : input . Flags ,
}, nil
}
options := runtime . UnmarshalInputToOptions ( input )
_ = options
dAtA := input . Buf
l := len ( dAtA )
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint ( 0 ); ; shift += 7 {
if shift >= 64 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrIntOverflow
}
if iNdEx >= l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
wire |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
fieldNum := int32 ( wire >> 3 )
wireType := int ( wire & 0x7 )
if wireType == 4 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: GenesisState: wiretype end group for non-group" )
}
if fieldNum <= 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: GenesisState: illegal tag %d (wire type %d)" , fieldNum , wire )
}
switch fieldNum {
case 1 :
if wireType != 2 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: wrong wireType = %d for field Params" , wireType )
}
var msglen int
for shift := uint ( 0 ); ; shift += 7 {
if shift >= 64 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrIntOverflow
}
if iNdEx >= l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
msglen |= int ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrInvalidLength
}
if postIndex > l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, io . ErrUnexpectedEOF
}
if x . Params == nil {
x . Params = & Params {}
}
if err := options . Unmarshal ( dAtA [ iNdEx : postIndex ], x . Params ); err != nil {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, err
}
iNdEx = postIndex
case 2 :
if wireType != 2 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: wrong wireType = %d for field 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 3 :
if wireType != 2 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: wrong wireType = %d for field Accounts" , 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 . Accounts = append ( x . Accounts , & InterchainDEXAccount {})
if err := options . Unmarshal ( dAtA [ iNdEx : postIndex ], x . Accounts [ len ( x . Accounts ) - 1 ]); err != nil {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, err
}
iNdEx = postIndex
case 4 :
if wireType != 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: wrong wireType = %d for field AccountSequence" , wireType )
}
x . AccountSequence = 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 . AccountSequence |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
default :
iNdEx = preIndex
skippy , err := runtime . Skip ( dAtA [ iNdEx :])
if err != nil {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, err
}
if ( skippy < 0 ) || ( iNdEx + skippy ) < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrInvalidLength
}
if ( iNdEx + skippy ) > l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, io . ErrUnexpectedEOF
}
if ! options . DiscardUnknown {
x . unknownFields = append ( x . unknownFields , dAtA [ iNdEx : iNdEx + skippy ] ... )
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, io . ErrUnexpectedEOF
}
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, nil
}
return & protoiface . Methods {
NoUnkeyedLiterals : struct {}{},
Flags : protoiface . SupportMarshalDeterministic | protoiface . SupportUnmarshalDiscardUnknown ,
Size : size ,
Marshal : marshal ,
Unmarshal : unmarshal ,
Merge : nil ,
CheckInitialized : nil ,
}
}
var _ protoreflect . List = ( * _Params_4_list )( nil )
type _Params_4_list struct {
list * [] string
}
func ( x * _Params_4_list ) Len () int {
if x . list == nil {
return 0
}
return len ( * x . list )
}
func ( x * _Params_4_list ) Get ( i int ) protoreflect . Value {
return protoreflect . ValueOfString (( * x . list )[ i ])
}
func ( x * _Params_4_list ) Set ( i int , value protoreflect . Value ) {
valueUnwrapped := value . String ()
concreteValue := valueUnwrapped
( * x . list )[ i ] = concreteValue
}
func ( x * _Params_4_list ) Append ( value protoreflect . Value ) {
valueUnwrapped := value . String ()
concreteValue := valueUnwrapped
* x . list = append ( * x . list , concreteValue )
}
func ( x * _Params_4_list ) AppendMutable () protoreflect . Value {
panic ( fmt . Errorf ( "AppendMutable can not be called on message Params at list field AllowedConnections as it is not of Message kind" ))
}
func ( x * _Params_4_list ) Truncate ( n int ) {
* x . list = ( * x . list )[: n ]
}
func ( x * _Params_4_list ) NewElement () protoreflect . Value {
v := ""
return protoreflect . ValueOfString ( v )
}
func ( x * _Params_4_list ) IsValid () bool {
return x . list != nil
}
var (
md_Params protoreflect . MessageDescriptor
fd_Params_enabled protoreflect . FieldDescriptor
fd_Params_max_accounts_per_did protoreflect . FieldDescriptor
fd_Params_default_timeout_seconds protoreflect . FieldDescriptor
fd_Params_allowed_connections protoreflect . FieldDescriptor
fd_Params_min_swap_amount protoreflect . FieldDescriptor
fd_Params_max_daily_volume protoreflect . FieldDescriptor
fd_Params_rate_limits protoreflect . FieldDescriptor
fd_Params_fees protoreflect . FieldDescriptor
)
func init () {
file_dex_v1_genesis_proto_init ()
md_Params = File_dex_v1_genesis_proto . Messages (). ByName ( "Params" )
fd_Params_enabled = md_Params . Fields (). ByName ( "enabled" )
fd_Params_max_accounts_per_did = md_Params . Fields (). ByName ( "max_accounts_per_did" )
fd_Params_default_timeout_seconds = md_Params . Fields (). ByName ( "default_timeout_seconds" )
fd_Params_allowed_connections = md_Params . Fields (). ByName ( "allowed_connections" )
fd_Params_min_swap_amount = md_Params . Fields (). ByName ( "min_swap_amount" )
fd_Params_max_daily_volume = md_Params . Fields (). ByName ( "max_daily_volume" )
fd_Params_rate_limits = md_Params . Fields (). ByName ( "rate_limits" )
fd_Params_fees = md_Params . Fields (). ByName ( "fees" )
}
var _ protoreflect . Message = ( * fastReflection_Params )( nil )
type fastReflection_Params Params
func ( x * Params ) ProtoReflect () protoreflect . Message {
return ( * fastReflection_Params )( x )
}
func ( x * Params ) slowProtoReflect () protoreflect . Message {
mi := & file_dex_v1_genesis_proto_msgTypes [ 1 ]
if protoimpl . UnsafeEnabled && x != nil {
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ))
if ms . LoadMessageInfo () == nil {
ms . StoreMessageInfo ( mi )
}
return ms
}
return mi . MessageOf ( x )
}
var _fastReflection_Params_messageType fastReflection_Params_messageType
var _ protoreflect . MessageType = fastReflection_Params_messageType {}
type fastReflection_Params_messageType struct {}
func ( x fastReflection_Params_messageType ) Zero () protoreflect . Message {
return ( * fastReflection_Params )( nil )
}
func ( x fastReflection_Params_messageType ) New () protoreflect . Message {
return new ( fastReflection_Params )
}
func ( x fastReflection_Params_messageType ) Descriptor () protoreflect . MessageDescriptor {
return md_Params
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func ( x * fastReflection_Params ) Descriptor () protoreflect . MessageDescriptor {
return md_Params
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func ( x * fastReflection_Params ) Type () protoreflect . MessageType {
return _fastReflection_Params_messageType
}
// New returns a newly allocated and mutable empty message.
func ( x * fastReflection_Params ) New () protoreflect . Message {
return new ( fastReflection_Params )
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func ( x * fastReflection_Params ) Interface () protoreflect . ProtoMessage {
return ( * Params )( x )
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func ( x * fastReflection_Params ) Range ( f func ( protoreflect . FieldDescriptor , protoreflect . Value ) bool ) {
if x . Enabled != false {
value := protoreflect . ValueOfBool ( x . Enabled )
if ! f ( fd_Params_enabled , value ) {
return
}
}
if x . MaxAccountsPerDid != uint32 ( 0 ) {
value := protoreflect . ValueOfUint32 ( x . MaxAccountsPerDid )
if ! f ( fd_Params_max_accounts_per_did , value ) {
return
}
}
if x . DefaultTimeoutSeconds != uint64 ( 0 ) {
value := protoreflect . ValueOfUint64 ( x . DefaultTimeoutSeconds )
if ! f ( fd_Params_default_timeout_seconds , value ) {
return
}
}
if len ( x . AllowedConnections ) != 0 {
value := protoreflect . ValueOfList ( & _Params_4_list { list : & x . AllowedConnections })
if ! f ( fd_Params_allowed_connections , value ) {
return
}
}
if x . MinSwapAmount != "" {
value := protoreflect . ValueOfString ( x . MinSwapAmount )
if ! f ( fd_Params_min_swap_amount , value ) {
return
}
}
if x . MaxDailyVolume != "" {
value := protoreflect . ValueOfString ( x . MaxDailyVolume )
if ! f ( fd_Params_max_daily_volume , value ) {
return
}
}
if x . RateLimits != nil {
value := protoreflect . ValueOfMessage ( x . RateLimits . ProtoReflect ())
if ! f ( fd_Params_rate_limits , value ) {
return
}
}
if x . Fees != nil {
value := protoreflect . ValueOfMessage ( x . Fees . ProtoReflect ())
if ! f ( fd_Params_fees , value ) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func ( x * fastReflection_Params ) Has ( fd protoreflect . FieldDescriptor ) bool {
switch fd . FullName () {
case "dex.v1.Params.enabled" :
return x . Enabled != false
case "dex.v1.Params.max_accounts_per_did" :
return x . MaxAccountsPerDid != uint32 ( 0 )
case "dex.v1.Params.default_timeout_seconds" :
return x . DefaultTimeoutSeconds != uint64 ( 0 )
case "dex.v1.Params.allowed_connections" :
return len ( x . AllowedConnections ) != 0
case "dex.v1.Params.min_swap_amount" :
return x . MinSwapAmount != ""
case "dex.v1.Params.max_daily_volume" :
return x . MaxDailyVolume != ""
case "dex.v1.Params.rate_limits" :
return x . RateLimits != nil
case "dex.v1.Params.fees" :
return x . Fees != nil
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.Params" ))
}
panic ( fmt . Errorf ( "message dex.v1.Params does not contain field %s" , fd . FullName ()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func ( x * fastReflection_Params ) Clear ( fd protoreflect . FieldDescriptor ) {
switch fd . FullName () {
case "dex.v1.Params.enabled" :
x . Enabled = false
case "dex.v1.Params.max_accounts_per_did" :
x . MaxAccountsPerDid = uint32 ( 0 )
case "dex.v1.Params.default_timeout_seconds" :
x . DefaultTimeoutSeconds = uint64 ( 0 )
case "dex.v1.Params.allowed_connections" :
x . AllowedConnections = nil
case "dex.v1.Params.min_swap_amount" :
x . MinSwapAmount = ""
case "dex.v1.Params.max_daily_volume" :
x . MaxDailyVolume = ""
case "dex.v1.Params.rate_limits" :
x . RateLimits = nil
case "dex.v1.Params.fees" :
x . Fees = nil
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.Params" ))
}
panic ( fmt . Errorf ( "message dex.v1.Params does not contain field %s" , fd . FullName ()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func ( x * fastReflection_Params ) Get ( descriptor protoreflect . FieldDescriptor ) protoreflect . Value {
switch descriptor . FullName () {
case "dex.v1.Params.enabled" :
value := x . Enabled
return protoreflect . ValueOfBool ( value )
case "dex.v1.Params.max_accounts_per_did" :
value := x . MaxAccountsPerDid
return protoreflect . ValueOfUint32 ( value )
case "dex.v1.Params.default_timeout_seconds" :
value := x . DefaultTimeoutSeconds
return protoreflect . ValueOfUint64 ( value )
case "dex.v1.Params.allowed_connections" :
if len ( x . AllowedConnections ) == 0 {
return protoreflect . ValueOfList ( & _Params_4_list {})
}
listValue := & _Params_4_list { list : & x . AllowedConnections }
return protoreflect . ValueOfList ( listValue )
case "dex.v1.Params.min_swap_amount" :
value := x . MinSwapAmount
return protoreflect . ValueOfString ( value )
case "dex.v1.Params.max_daily_volume" :
value := x . MaxDailyVolume
return protoreflect . ValueOfString ( value )
case "dex.v1.Params.rate_limits" :
value := x . RateLimits
return protoreflect . ValueOfMessage ( value . ProtoReflect ())
case "dex.v1.Params.fees" :
value := x . Fees
return protoreflect . ValueOfMessage ( value . ProtoReflect ())
default :
if descriptor . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.Params" ))
}
panic ( fmt . Errorf ( "message dex.v1.Params does not contain field %s" , descriptor . FullName ()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func ( x * fastReflection_Params ) Set ( fd protoreflect . FieldDescriptor , value protoreflect . Value ) {
switch fd . FullName () {
case "dex.v1.Params.enabled" :
x . Enabled = value . Bool ()
case "dex.v1.Params.max_accounts_per_did" :
x . MaxAccountsPerDid = uint32 ( value . Uint ())
case "dex.v1.Params.default_timeout_seconds" :
x . DefaultTimeoutSeconds = value . Uint ()
case "dex.v1.Params.allowed_connections" :
lv := value . List ()
clv := lv .( * _Params_4_list )
x . AllowedConnections = * clv . list
case "dex.v1.Params.min_swap_amount" :
x . MinSwapAmount = value . Interface ().( string )
case "dex.v1.Params.max_daily_volume" :
x . MaxDailyVolume = value . Interface ().( string )
case "dex.v1.Params.rate_limits" :
x . RateLimits = value . Message (). Interface ().( * RateLimitParams )
case "dex.v1.Params.fees" :
x . Fees = value . Message (). Interface ().( * FeeParams )
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.Params" ))
}
panic ( fmt . Errorf ( "message dex.v1.Params does not contain field %s" , fd . FullName ()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func ( x * fastReflection_Params ) Mutable ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
switch fd . FullName () {
case "dex.v1.Params.allowed_connections" :
if x . AllowedConnections == nil {
x . AllowedConnections = [] string {}
}
value := & _Params_4_list { list : & x . AllowedConnections }
return protoreflect . ValueOfList ( value )
case "dex.v1.Params.rate_limits" :
if x . RateLimits == nil {
x . RateLimits = new ( RateLimitParams )
}
return protoreflect . ValueOfMessage ( x . RateLimits . ProtoReflect ())
case "dex.v1.Params.fees" :
if x . Fees == nil {
x . Fees = new ( FeeParams )
}
return protoreflect . ValueOfMessage ( x . Fees . ProtoReflect ())
case "dex.v1.Params.enabled" :
panic ( fmt . Errorf ( "field enabled of message dex.v1.Params is not mutable" ))
case "dex.v1.Params.max_accounts_per_did" :
panic ( fmt . Errorf ( "field max_accounts_per_did of message dex.v1.Params is not mutable" ))
case "dex.v1.Params.default_timeout_seconds" :
panic ( fmt . Errorf ( "field default_timeout_seconds of message dex.v1.Params is not mutable" ))
case "dex.v1.Params.min_swap_amount" :
panic ( fmt . Errorf ( "field min_swap_amount of message dex.v1.Params is not mutable" ))
case "dex.v1.Params.max_daily_volume" :
panic ( fmt . Errorf ( "field max_daily_volume of message dex.v1.Params is not mutable" ))
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.Params" ))
}
panic ( fmt . Errorf ( "message dex.v1.Params does not contain field %s" , fd . FullName ()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func ( x * fastReflection_Params ) NewField ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
switch fd . FullName () {
case "dex.v1.Params.enabled" :
return protoreflect . ValueOfBool ( false )
case "dex.v1.Params.max_accounts_per_did" :
return protoreflect . ValueOfUint32 ( uint32 ( 0 ))
case "dex.v1.Params.default_timeout_seconds" :
return protoreflect . ValueOfUint64 ( uint64 ( 0 ))
case "dex.v1.Params.allowed_connections" :
list := [] string {}
return protoreflect . ValueOfList ( & _Params_4_list { list : & list })
case "dex.v1.Params.min_swap_amount" :
return protoreflect . ValueOfString ( "" )
case "dex.v1.Params.max_daily_volume" :
return protoreflect . ValueOfString ( "" )
case "dex.v1.Params.rate_limits" :
m := new ( RateLimitParams )
return protoreflect . ValueOfMessage ( m . ProtoReflect ())
case "dex.v1.Params.fees" :
m := new ( FeeParams )
return protoreflect . ValueOfMessage ( m . ProtoReflect ())
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.Params" ))
}
panic ( fmt . Errorf ( "message dex.v1.Params does not contain field %s" , fd . FullName ()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func ( x * fastReflection_Params ) WhichOneof ( d protoreflect . OneofDescriptor ) protoreflect . FieldDescriptor {
switch d . FullName () {
default :
panic ( fmt . Errorf ( "%s is not a oneof field in dex.v1.Params" , d . FullName ()))
}
panic ( "unreachable" )
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func ( x * fastReflection_Params ) GetUnknown () protoreflect . RawFields {
return x . unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func ( x * fastReflection_Params ) SetUnknown ( fields protoreflect . RawFields ) {
x . unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func ( x * fastReflection_Params ) IsValid () bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func ( x * fastReflection_Params ) ProtoMethods () * protoiface . Methods {
size := func ( input protoiface . SizeInput ) protoiface . SizeOutput {
x := input . Message . Interface ().( * Params )
if x == nil {
return protoiface . SizeOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Size : 0 ,
}
}
options := runtime . SizeInputToOptions ( input )
_ = options
var n int
var l int
_ = l
if x . Enabled {
n += 2
}
if x . MaxAccountsPerDid != 0 {
n += 1 + runtime . Sov ( uint64 ( x . MaxAccountsPerDid ))
}
if x . DefaultTimeoutSeconds != 0 {
n += 1 + runtime . Sov ( uint64 ( x . DefaultTimeoutSeconds ))
}
if len ( x . AllowedConnections ) > 0 {
for _ , s := range x . AllowedConnections {
l = len ( s )
n += 1 + l + runtime . Sov ( uint64 ( l ))
}
}
l = len ( x . MinSwapAmount )
if l > 0 {
n += 1 + l + runtime . Sov ( uint64 ( l ))
}
l = len ( x . MaxDailyVolume )
if l > 0 {
n += 1 + l + runtime . Sov ( uint64 ( l ))
}
if x . RateLimits != nil {
l = options . Size ( x . RateLimits )
n += 1 + l + runtime . Sov ( uint64 ( l ))
}
if x . Fees != nil {
l = options . Size ( x . Fees )
n += 1 + l + runtime . Sov ( uint64 ( l ))
}
if x . unknownFields != nil {
n += len ( x . unknownFields )
}
return protoiface . SizeOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Size : n ,
}
}
marshal := func ( input protoiface . MarshalInput ) ( protoiface . MarshalOutput , error ) {
x := input . Message . Interface ().( * Params )
if x == nil {
return protoiface . MarshalOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Buf : input . Buf ,
}, nil
}
options := runtime . MarshalInputToOptions ( input )
_ = options
size := options . Size ( x )
dAtA := make ([] byte , size )
i := len ( dAtA )
_ = i
var l int
_ = l
if x . unknownFields != nil {
i -= len ( x . unknownFields )
copy ( dAtA [ i :], x . unknownFields )
}
if x . Fees != nil {
encoded , err := options . Marshal ( x . Fees )
if err != nil {
return protoiface . MarshalOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Buf : input . Buf ,
}, err
}
i -= len ( encoded )
copy ( dAtA [ i :], encoded )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( encoded )))
i --
dAtA [ i ] = 0x42
}
if x . RateLimits != nil {
encoded , err := options . Marshal ( x . RateLimits )
if err != nil {
return protoiface . MarshalOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Buf : input . Buf ,
}, err
}
i -= len ( encoded )
copy ( dAtA [ i :], encoded )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( encoded )))
i --
dAtA [ i ] = 0x3a
}
if len ( x . MaxDailyVolume ) > 0 {
i -= len ( x . MaxDailyVolume )
copy ( dAtA [ i :], x . MaxDailyVolume )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( x . MaxDailyVolume )))
i --
dAtA [ i ] = 0x32
}
if len ( x . MinSwapAmount ) > 0 {
i -= len ( x . MinSwapAmount )
copy ( dAtA [ i :], x . MinSwapAmount )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( x . MinSwapAmount )))
i --
dAtA [ i ] = 0x2a
}
if len ( x . AllowedConnections ) > 0 {
for iNdEx := len ( x . AllowedConnections ) - 1 ; iNdEx >= 0 ; iNdEx -- {
i -= len ( x . AllowedConnections [ iNdEx ])
copy ( dAtA [ i :], x . AllowedConnections [ iNdEx ])
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( x . AllowedConnections [ iNdEx ])))
i --
dAtA [ i ] = 0x22
}
}
if x . DefaultTimeoutSeconds != 0 {
i = runtime . EncodeVarint ( dAtA , i , uint64 ( x . DefaultTimeoutSeconds ))
i --
dAtA [ i ] = 0x18
}
if x . MaxAccountsPerDid != 0 {
i = runtime . EncodeVarint ( dAtA , i , uint64 ( x . MaxAccountsPerDid ))
i --
dAtA [ i ] = 0x10
}
if x . Enabled {
i --
if x . Enabled {
dAtA [ i ] = 1
} else {
dAtA [ i ] = 0
}
i --
dAtA [ i ] = 0x8
}
if input . Buf != nil {
input . Buf = append ( input . Buf , dAtA ... )
} else {
input . Buf = dAtA
}
return protoiface . MarshalOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Buf : input . Buf ,
}, nil
}
unmarshal := func ( input protoiface . UnmarshalInput ) ( protoiface . UnmarshalOutput , error ) {
x := input . Message . Interface ().( * Params )
if x == nil {
return protoiface . UnmarshalOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Flags : input . Flags ,
}, nil
}
options := runtime . UnmarshalInputToOptions ( input )
_ = options
dAtA := input . Buf
l := len ( dAtA )
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint ( 0 ); ; shift += 7 {
if shift >= 64 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrIntOverflow
}
if iNdEx >= l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
wire |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
fieldNum := int32 ( wire >> 3 )
wireType := int ( wire & 0x7 )
if wireType == 4 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: Params: wiretype end group for non-group" )
}
if fieldNum <= 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: Params: illegal tag %d (wire type %d)" , fieldNum , wire )
}
switch fieldNum {
case 1 :
if wireType != 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: wrong wireType = %d for field Enabled" , wireType )
}
var v int
for shift := uint ( 0 ); ; shift += 7 {
if shift >= 64 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrIntOverflow
}
if iNdEx >= l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
v |= int ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
x . Enabled = bool ( v != 0 )
case 2 :
if wireType != 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: wrong wireType = %d for field MaxAccountsPerDid" , wireType )
}
x . MaxAccountsPerDid = 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 . MaxAccountsPerDid |= uint32 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
case 3 :
if wireType != 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: wrong wireType = %d for field DefaultTimeoutSeconds" , wireType )
}
x . DefaultTimeoutSeconds = 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 . DefaultTimeoutSeconds |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
case 4 :
if wireType != 2 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: wrong wireType = %d for field AllowedConnections" , wireType )
}
var stringLen uint64
for shift := uint ( 0 ); ; shift += 7 {
if shift >= 64 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrIntOverflow
}
if iNdEx >= l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
stringLen |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
intStringLen := int ( stringLen )
if intStringLen < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrInvalidLength
}
if postIndex > l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, io . ErrUnexpectedEOF
}
x . AllowedConnections = append ( x . AllowedConnections , 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 MinSwapAmount" , wireType )
}
var stringLen uint64
for shift := uint ( 0 ); ; shift += 7 {
if shift >= 64 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrIntOverflow
}
if iNdEx >= l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
stringLen |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
intStringLen := int ( stringLen )
if intStringLen < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrInvalidLength
}
if postIndex > l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, io . ErrUnexpectedEOF
}
x . MinSwapAmount = 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 MaxDailyVolume" , wireType )
}
var stringLen uint64
for shift := uint ( 0 ); ; shift += 7 {
if shift >= 64 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrIntOverflow
}
if iNdEx >= l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
stringLen |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
intStringLen := int ( stringLen )
if intStringLen < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrInvalidLength
}
if postIndex > l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, io . ErrUnexpectedEOF
}
x . MaxDailyVolume = string ( dAtA [ iNdEx : postIndex ])
iNdEx = postIndex
case 7 :
if wireType != 2 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: wrong wireType = %d for field RateLimits" , 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 . RateLimits == nil {
x . RateLimits = & RateLimitParams {}
}
if err := options . Unmarshal ( dAtA [ iNdEx : postIndex ], x . RateLimits ); err != nil {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, err
}
iNdEx = postIndex
case 8 :
if wireType != 2 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: wrong wireType = %d for field Fees" , 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 . Fees == nil {
x . Fees = & FeeParams {}
}
if err := options . Unmarshal ( dAtA [ iNdEx : postIndex ], x . Fees ); err != nil {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, err
}
iNdEx = postIndex
default :
iNdEx = preIndex
skippy , err := runtime . Skip ( dAtA [ iNdEx :])
if err != nil {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, err
}
if ( skippy < 0 ) || ( iNdEx + skippy ) < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrInvalidLength
}
if ( iNdEx + skippy ) > l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, io . ErrUnexpectedEOF
}
if ! options . DiscardUnknown {
x . unknownFields = append ( x . unknownFields , dAtA [ iNdEx : iNdEx + skippy ] ... )
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, io . ErrUnexpectedEOF
}
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, nil
}
return & protoiface . Methods {
NoUnkeyedLiterals : struct {}{},
Flags : protoiface . SupportMarshalDeterministic | protoiface . SupportUnmarshalDiscardUnknown ,
Size : size ,
Marshal : marshal ,
Unmarshal : unmarshal ,
Merge : nil ,
CheckInitialized : nil ,
}
}
var (
md_RateLimitParams protoreflect . MessageDescriptor
fd_RateLimitParams_max_ops_per_block protoreflect . FieldDescriptor
fd_RateLimitParams_max_ops_per_did_per_day protoreflect . FieldDescriptor
fd_RateLimitParams_cooldown_blocks protoreflect . FieldDescriptor
)
func init () {
file_dex_v1_genesis_proto_init ()
md_RateLimitParams = File_dex_v1_genesis_proto . Messages (). ByName ( "RateLimitParams" )
fd_RateLimitParams_max_ops_per_block = md_RateLimitParams . Fields (). ByName ( "max_ops_per_block" )
fd_RateLimitParams_max_ops_per_did_per_day = md_RateLimitParams . Fields (). ByName ( "max_ops_per_did_per_day" )
fd_RateLimitParams_cooldown_blocks = md_RateLimitParams . Fields (). ByName ( "cooldown_blocks" )
}
var _ protoreflect . Message = ( * fastReflection_RateLimitParams )( nil )
type fastReflection_RateLimitParams RateLimitParams
func ( x * RateLimitParams ) ProtoReflect () protoreflect . Message {
return ( * fastReflection_RateLimitParams )( x )
}
func ( x * RateLimitParams ) slowProtoReflect () protoreflect . Message {
mi := & file_dex_v1_genesis_proto_msgTypes [ 2 ]
if protoimpl . UnsafeEnabled && x != nil {
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ))
if ms . LoadMessageInfo () == nil {
ms . StoreMessageInfo ( mi )
}
return ms
}
return mi . MessageOf ( x )
}
var _fastReflection_RateLimitParams_messageType fastReflection_RateLimitParams_messageType
var _ protoreflect . MessageType = fastReflection_RateLimitParams_messageType {}
type fastReflection_RateLimitParams_messageType struct {}
func ( x fastReflection_RateLimitParams_messageType ) Zero () protoreflect . Message {
return ( * fastReflection_RateLimitParams )( nil )
}
func ( x fastReflection_RateLimitParams_messageType ) New () protoreflect . Message {
return new ( fastReflection_RateLimitParams )
}
func ( x fastReflection_RateLimitParams_messageType ) Descriptor () protoreflect . MessageDescriptor {
return md_RateLimitParams
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func ( x * fastReflection_RateLimitParams ) Descriptor () protoreflect . MessageDescriptor {
return md_RateLimitParams
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func ( x * fastReflection_RateLimitParams ) Type () protoreflect . MessageType {
return _fastReflection_RateLimitParams_messageType
}
// New returns a newly allocated and mutable empty message.
func ( x * fastReflection_RateLimitParams ) New () protoreflect . Message {
return new ( fastReflection_RateLimitParams )
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func ( x * fastReflection_RateLimitParams ) Interface () protoreflect . ProtoMessage {
return ( * RateLimitParams )( x )
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func ( x * fastReflection_RateLimitParams ) Range ( f func ( protoreflect . FieldDescriptor , protoreflect . Value ) bool ) {
if x . MaxOpsPerBlock != uint32 ( 0 ) {
value := protoreflect . ValueOfUint32 ( x . MaxOpsPerBlock )
if ! f ( fd_RateLimitParams_max_ops_per_block , value ) {
return
}
}
if x . MaxOpsPerDidPerDay != uint32 ( 0 ) {
value := protoreflect . ValueOfUint32 ( x . MaxOpsPerDidPerDay )
if ! f ( fd_RateLimitParams_max_ops_per_did_per_day , value ) {
return
}
}
if x . CooldownBlocks != uint32 ( 0 ) {
value := protoreflect . ValueOfUint32 ( x . CooldownBlocks )
if ! f ( fd_RateLimitParams_cooldown_blocks , value ) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func ( x * fastReflection_RateLimitParams ) Has ( fd protoreflect . FieldDescriptor ) bool {
switch fd . FullName () {
case "dex.v1.RateLimitParams.max_ops_per_block" :
return x . MaxOpsPerBlock != uint32 ( 0 )
case "dex.v1.RateLimitParams.max_ops_per_did_per_day" :
return x . MaxOpsPerDidPerDay != uint32 ( 0 )
case "dex.v1.RateLimitParams.cooldown_blocks" :
return x . CooldownBlocks != uint32 ( 0 )
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.RateLimitParams" ))
}
panic ( fmt . Errorf ( "message dex.v1.RateLimitParams does not contain field %s" , fd . FullName ()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func ( x * fastReflection_RateLimitParams ) Clear ( fd protoreflect . FieldDescriptor ) {
switch fd . FullName () {
case "dex.v1.RateLimitParams.max_ops_per_block" :
x . MaxOpsPerBlock = uint32 ( 0 )
case "dex.v1.RateLimitParams.max_ops_per_did_per_day" :
x . MaxOpsPerDidPerDay = uint32 ( 0 )
case "dex.v1.RateLimitParams.cooldown_blocks" :
x . CooldownBlocks = uint32 ( 0 )
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.RateLimitParams" ))
}
panic ( fmt . Errorf ( "message dex.v1.RateLimitParams does not contain field %s" , fd . FullName ()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func ( x * fastReflection_RateLimitParams ) Get ( descriptor protoreflect . FieldDescriptor ) protoreflect . Value {
switch descriptor . FullName () {
case "dex.v1.RateLimitParams.max_ops_per_block" :
value := x . MaxOpsPerBlock
return protoreflect . ValueOfUint32 ( value )
case "dex.v1.RateLimitParams.max_ops_per_did_per_day" :
value := x . MaxOpsPerDidPerDay
return protoreflect . ValueOfUint32 ( value )
case "dex.v1.RateLimitParams.cooldown_blocks" :
value := x . CooldownBlocks
return protoreflect . ValueOfUint32 ( value )
default :
if descriptor . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.RateLimitParams" ))
}
panic ( fmt . Errorf ( "message dex.v1.RateLimitParams does not contain field %s" , descriptor . FullName ()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func ( x * fastReflection_RateLimitParams ) Set ( fd protoreflect . FieldDescriptor , value protoreflect . Value ) {
switch fd . FullName () {
case "dex.v1.RateLimitParams.max_ops_per_block" :
x . MaxOpsPerBlock = uint32 ( value . Uint ())
case "dex.v1.RateLimitParams.max_ops_per_did_per_day" :
x . MaxOpsPerDidPerDay = uint32 ( value . Uint ())
case "dex.v1.RateLimitParams.cooldown_blocks" :
x . CooldownBlocks = uint32 ( value . Uint ())
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.RateLimitParams" ))
}
panic ( fmt . Errorf ( "message dex.v1.RateLimitParams does not contain field %s" , fd . FullName ()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func ( x * fastReflection_RateLimitParams ) Mutable ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
switch fd . FullName () {
case "dex.v1.RateLimitParams.max_ops_per_block" :
panic ( fmt . Errorf ( "field max_ops_per_block of message dex.v1.RateLimitParams is not mutable" ))
case "dex.v1.RateLimitParams.max_ops_per_did_per_day" :
panic ( fmt . Errorf ( "field max_ops_per_did_per_day of message dex.v1.RateLimitParams is not mutable" ))
case "dex.v1.RateLimitParams.cooldown_blocks" :
panic ( fmt . Errorf ( "field cooldown_blocks of message dex.v1.RateLimitParams is not mutable" ))
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.RateLimitParams" ))
}
panic ( fmt . Errorf ( "message dex.v1.RateLimitParams does not contain field %s" , fd . FullName ()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func ( x * fastReflection_RateLimitParams ) NewField ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
switch fd . FullName () {
case "dex.v1.RateLimitParams.max_ops_per_block" :
return protoreflect . ValueOfUint32 ( uint32 ( 0 ))
case "dex.v1.RateLimitParams.max_ops_per_did_per_day" :
return protoreflect . ValueOfUint32 ( uint32 ( 0 ))
case "dex.v1.RateLimitParams.cooldown_blocks" :
return protoreflect . ValueOfUint32 ( uint32 ( 0 ))
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.RateLimitParams" ))
}
panic ( fmt . Errorf ( "message dex.v1.RateLimitParams does not contain field %s" , fd . FullName ()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func ( x * fastReflection_RateLimitParams ) WhichOneof ( d protoreflect . OneofDescriptor ) protoreflect . FieldDescriptor {
switch d . FullName () {
default :
panic ( fmt . Errorf ( "%s is not a oneof field in dex.v1.RateLimitParams" , d . FullName ()))
}
panic ( "unreachable" )
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func ( x * fastReflection_RateLimitParams ) GetUnknown () protoreflect . RawFields {
return x . unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func ( x * fastReflection_RateLimitParams ) SetUnknown ( fields protoreflect . RawFields ) {
x . unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func ( x * fastReflection_RateLimitParams ) IsValid () bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func ( x * fastReflection_RateLimitParams ) ProtoMethods () * protoiface . Methods {
size := func ( input protoiface . SizeInput ) protoiface . SizeOutput {
x := input . Message . Interface ().( * RateLimitParams )
if x == nil {
return protoiface . SizeOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Size : 0 ,
}
}
options := runtime . SizeInputToOptions ( input )
_ = options
var n int
var l int
_ = l
if x . MaxOpsPerBlock != 0 {
n += 1 + runtime . Sov ( uint64 ( x . MaxOpsPerBlock ))
}
if x . MaxOpsPerDidPerDay != 0 {
n += 1 + runtime . Sov ( uint64 ( x . MaxOpsPerDidPerDay ))
}
if x . CooldownBlocks != 0 {
n += 1 + runtime . Sov ( uint64 ( x . CooldownBlocks ))
}
if x . unknownFields != nil {
n += len ( x . unknownFields )
}
return protoiface . SizeOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Size : n ,
}
}
marshal := func ( input protoiface . MarshalInput ) ( protoiface . MarshalOutput , error ) {
x := input . Message . Interface ().( * RateLimitParams )
if x == nil {
return protoiface . MarshalOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Buf : input . Buf ,
}, nil
}
options := runtime . MarshalInputToOptions ( input )
_ = options
size := options . Size ( x )
dAtA := make ([] 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 . CooldownBlocks != 0 {
i = runtime . EncodeVarint ( dAtA , i , uint64 ( x . CooldownBlocks ))
i --
dAtA [ i ] = 0x18
}
if x . MaxOpsPerDidPerDay != 0 {
i = runtime . EncodeVarint ( dAtA , i , uint64 ( x . MaxOpsPerDidPerDay ))
i --
dAtA [ i ] = 0x10
}
if x . MaxOpsPerBlock != 0 {
i = runtime . EncodeVarint ( dAtA , i , uint64 ( x . MaxOpsPerBlock ))
i --
dAtA [ i ] = 0x8
}
if input . Buf != nil {
input . Buf = append ( input . Buf , dAtA ... )
} else {
input . Buf = dAtA
}
return protoiface . MarshalOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Buf : input . Buf ,
}, nil
}
unmarshal := func ( input protoiface . UnmarshalInput ) ( protoiface . UnmarshalOutput , error ) {
x := input . Message . Interface ().( * RateLimitParams )
if x == nil {
return protoiface . UnmarshalOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Flags : input . Flags ,
}, nil
}
options := runtime . UnmarshalInputToOptions ( input )
_ = options
dAtA := input . Buf
l := len ( dAtA )
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint ( 0 ); ; shift += 7 {
if shift >= 64 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrIntOverflow
}
if iNdEx >= l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
wire |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
fieldNum := int32 ( wire >> 3 )
wireType := int ( wire & 0x7 )
if wireType == 4 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: RateLimitParams: wiretype end group for non-group" )
}
if fieldNum <= 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: RateLimitParams: illegal tag %d (wire type %d)" , fieldNum , wire )
}
switch fieldNum {
case 1 :
if wireType != 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: wrong wireType = %d for field MaxOpsPerBlock" , wireType )
}
x . MaxOpsPerBlock = 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 . MaxOpsPerBlock |= uint32 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
case 2 :
if wireType != 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: wrong wireType = %d for field MaxOpsPerDidPerDay" , wireType )
}
x . MaxOpsPerDidPerDay = 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 . MaxOpsPerDidPerDay |= uint32 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
case 3 :
if wireType != 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: wrong wireType = %d for field CooldownBlocks" , wireType )
}
x . CooldownBlocks = 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 . CooldownBlocks |= uint32 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
default :
iNdEx = preIndex
skippy , err := runtime . Skip ( dAtA [ iNdEx :])
if err != nil {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, err
}
if ( skippy < 0 ) || ( iNdEx + skippy ) < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrInvalidLength
}
if ( iNdEx + skippy ) > l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, io . ErrUnexpectedEOF
}
if ! options . DiscardUnknown {
x . unknownFields = append ( x . unknownFields , dAtA [ iNdEx : iNdEx + skippy ] ... )
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, io . ErrUnexpectedEOF
}
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, nil
}
return & protoiface . Methods {
NoUnkeyedLiterals : struct {}{},
Flags : protoiface . SupportMarshalDeterministic | protoiface . SupportUnmarshalDiscardUnknown ,
Size : size ,
Marshal : marshal ,
Unmarshal : unmarshal ,
Merge : nil ,
CheckInitialized : nil ,
}
}
var (
md_FeeParams protoreflect . MessageDescriptor
fd_FeeParams_swap_fee_bps protoreflect . FieldDescriptor
fd_FeeParams_liquidity_fee_bps protoreflect . FieldDescriptor
fd_FeeParams_order_fee_bps protoreflect . FieldDescriptor
fd_FeeParams_fee_collector protoreflect . FieldDescriptor
)
func init () {
file_dex_v1_genesis_proto_init ()
md_FeeParams = File_dex_v1_genesis_proto . Messages (). ByName ( "FeeParams" )
fd_FeeParams_swap_fee_bps = md_FeeParams . Fields (). ByName ( "swap_fee_bps" )
fd_FeeParams_liquidity_fee_bps = md_FeeParams . Fields (). ByName ( "liquidity_fee_bps" )
fd_FeeParams_order_fee_bps = md_FeeParams . Fields (). ByName ( "order_fee_bps" )
fd_FeeParams_fee_collector = md_FeeParams . Fields (). ByName ( "fee_collector" )
}
var _ protoreflect . Message = ( * fastReflection_FeeParams )( nil )
type fastReflection_FeeParams FeeParams
func ( x * FeeParams ) ProtoReflect () protoreflect . Message {
return ( * fastReflection_FeeParams )( x )
}
func ( x * FeeParams ) slowProtoReflect () protoreflect . Message {
mi := & file_dex_v1_genesis_proto_msgTypes [ 3 ]
if protoimpl . UnsafeEnabled && x != nil {
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ))
if ms . LoadMessageInfo () == nil {
ms . StoreMessageInfo ( mi )
}
return ms
}
return mi . MessageOf ( x )
}
var _fastReflection_FeeParams_messageType fastReflection_FeeParams_messageType
var _ protoreflect . MessageType = fastReflection_FeeParams_messageType {}
type fastReflection_FeeParams_messageType struct {}
func ( x fastReflection_FeeParams_messageType ) Zero () protoreflect . Message {
return ( * fastReflection_FeeParams )( nil )
}
func ( x fastReflection_FeeParams_messageType ) New () protoreflect . Message {
return new ( fastReflection_FeeParams )
}
func ( x fastReflection_FeeParams_messageType ) Descriptor () protoreflect . MessageDescriptor {
return md_FeeParams
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func ( x * fastReflection_FeeParams ) Descriptor () protoreflect . MessageDescriptor {
return md_FeeParams
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func ( x * fastReflection_FeeParams ) Type () protoreflect . MessageType {
return _fastReflection_FeeParams_messageType
}
// New returns a newly allocated and mutable empty message.
func ( x * fastReflection_FeeParams ) New () protoreflect . Message {
return new ( fastReflection_FeeParams )
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func ( x * fastReflection_FeeParams ) Interface () protoreflect . ProtoMessage {
return ( * FeeParams )( x )
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func ( x * fastReflection_FeeParams ) Range ( f func ( protoreflect . FieldDescriptor , protoreflect . Value ) bool ) {
if x . SwapFeeBps != uint32 ( 0 ) {
value := protoreflect . ValueOfUint32 ( x . SwapFeeBps )
if ! f ( fd_FeeParams_swap_fee_bps , value ) {
return
}
}
if x . LiquidityFeeBps != uint32 ( 0 ) {
value := protoreflect . ValueOfUint32 ( x . LiquidityFeeBps )
if ! f ( fd_FeeParams_liquidity_fee_bps , value ) {
return
}
}
if x . OrderFeeBps != uint32 ( 0 ) {
value := protoreflect . ValueOfUint32 ( x . OrderFeeBps )
if ! f ( fd_FeeParams_order_fee_bps , value ) {
return
}
}
if x . FeeCollector != "" {
value := protoreflect . ValueOfString ( x . FeeCollector )
if ! f ( fd_FeeParams_fee_collector , value ) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func ( x * fastReflection_FeeParams ) Has ( fd protoreflect . FieldDescriptor ) bool {
switch fd . FullName () {
case "dex.v1.FeeParams.swap_fee_bps" :
return x . SwapFeeBps != uint32 ( 0 )
case "dex.v1.FeeParams.liquidity_fee_bps" :
return x . LiquidityFeeBps != uint32 ( 0 )
case "dex.v1.FeeParams.order_fee_bps" :
return x . OrderFeeBps != uint32 ( 0 )
case "dex.v1.FeeParams.fee_collector" :
return x . FeeCollector != ""
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.FeeParams" ))
}
panic ( fmt . Errorf ( "message dex.v1.FeeParams does not contain field %s" , fd . FullName ()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func ( x * fastReflection_FeeParams ) Clear ( fd protoreflect . FieldDescriptor ) {
switch fd . FullName () {
case "dex.v1.FeeParams.swap_fee_bps" :
x . SwapFeeBps = uint32 ( 0 )
case "dex.v1.FeeParams.liquidity_fee_bps" :
x . LiquidityFeeBps = uint32 ( 0 )
case "dex.v1.FeeParams.order_fee_bps" :
x . OrderFeeBps = uint32 ( 0 )
case "dex.v1.FeeParams.fee_collector" :
x . FeeCollector = ""
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.FeeParams" ))
}
panic ( fmt . Errorf ( "message dex.v1.FeeParams does not contain field %s" , fd . FullName ()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func ( x * fastReflection_FeeParams ) Get ( descriptor protoreflect . FieldDescriptor ) protoreflect . Value {
switch descriptor . FullName () {
case "dex.v1.FeeParams.swap_fee_bps" :
value := x . SwapFeeBps
return protoreflect . ValueOfUint32 ( value )
case "dex.v1.FeeParams.liquidity_fee_bps" :
value := x . LiquidityFeeBps
return protoreflect . ValueOfUint32 ( value )
case "dex.v1.FeeParams.order_fee_bps" :
value := x . OrderFeeBps
return protoreflect . ValueOfUint32 ( value )
case "dex.v1.FeeParams.fee_collector" :
value := x . FeeCollector
return protoreflect . ValueOfString ( value )
default :
if descriptor . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.FeeParams" ))
}
panic ( fmt . Errorf ( "message dex.v1.FeeParams does not contain field %s" , descriptor . FullName ()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func ( x * fastReflection_FeeParams ) Set ( fd protoreflect . FieldDescriptor , value protoreflect . Value ) {
switch fd . FullName () {
case "dex.v1.FeeParams.swap_fee_bps" :
x . SwapFeeBps = uint32 ( value . Uint ())
case "dex.v1.FeeParams.liquidity_fee_bps" :
x . LiquidityFeeBps = uint32 ( value . Uint ())
case "dex.v1.FeeParams.order_fee_bps" :
x . OrderFeeBps = uint32 ( value . Uint ())
case "dex.v1.FeeParams.fee_collector" :
x . FeeCollector = value . Interface ().( string )
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.FeeParams" ))
}
panic ( fmt . Errorf ( "message dex.v1.FeeParams does not contain field %s" , fd . FullName ()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func ( x * fastReflection_FeeParams ) Mutable ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
switch fd . FullName () {
case "dex.v1.FeeParams.swap_fee_bps" :
panic ( fmt . Errorf ( "field swap_fee_bps of message dex.v1.FeeParams is not mutable" ))
case "dex.v1.FeeParams.liquidity_fee_bps" :
panic ( fmt . Errorf ( "field liquidity_fee_bps of message dex.v1.FeeParams is not mutable" ))
case "dex.v1.FeeParams.order_fee_bps" :
panic ( fmt . Errorf ( "field order_fee_bps of message dex.v1.FeeParams is not mutable" ))
case "dex.v1.FeeParams.fee_collector" :
panic ( fmt . Errorf ( "field fee_collector of message dex.v1.FeeParams is not mutable" ))
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.FeeParams" ))
}
panic ( fmt . Errorf ( "message dex.v1.FeeParams does not contain field %s" , fd . FullName ()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func ( x * fastReflection_FeeParams ) NewField ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
switch fd . FullName () {
case "dex.v1.FeeParams.swap_fee_bps" :
return protoreflect . ValueOfUint32 ( uint32 ( 0 ))
case "dex.v1.FeeParams.liquidity_fee_bps" :
return protoreflect . ValueOfUint32 ( uint32 ( 0 ))
case "dex.v1.FeeParams.order_fee_bps" :
return protoreflect . ValueOfUint32 ( uint32 ( 0 ))
case "dex.v1.FeeParams.fee_collector" :
return protoreflect . ValueOfString ( "" )
default :
if fd . IsExtension () {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: dex.v1.FeeParams" ))
}
panic ( fmt . Errorf ( "message dex.v1.FeeParams does not contain field %s" , fd . FullName ()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func ( x * fastReflection_FeeParams ) WhichOneof ( d protoreflect . OneofDescriptor ) protoreflect . FieldDescriptor {
switch d . FullName () {
default :
panic ( fmt . Errorf ( "%s is not a oneof field in dex.v1.FeeParams" , d . FullName ()))
}
panic ( "unreachable" )
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func ( x * fastReflection_FeeParams ) GetUnknown () protoreflect . RawFields {
return x . unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func ( x * fastReflection_FeeParams ) SetUnknown ( fields protoreflect . RawFields ) {
x . unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func ( x * fastReflection_FeeParams ) IsValid () bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func ( x * fastReflection_FeeParams ) ProtoMethods () * protoiface . Methods {
size := func ( input protoiface . SizeInput ) protoiface . SizeOutput {
x := input . Message . Interface ().( * FeeParams )
if x == nil {
return protoiface . SizeOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Size : 0 ,
}
}
options := runtime . SizeInputToOptions ( input )
_ = options
var n int
var l int
_ = l
if x . SwapFeeBps != 0 {
n += 1 + runtime . Sov ( uint64 ( x . SwapFeeBps ))
}
if x . LiquidityFeeBps != 0 {
n += 1 + runtime . Sov ( uint64 ( x . LiquidityFeeBps ))
}
if x . OrderFeeBps != 0 {
n += 1 + runtime . Sov ( uint64 ( x . OrderFeeBps ))
}
l = len ( x . FeeCollector )
if l > 0 {
n += 1 + l + runtime . Sov ( uint64 ( l ))
}
if x . unknownFields != nil {
n += len ( x . unknownFields )
}
return protoiface . SizeOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Size : n ,
}
}
marshal := func ( input protoiface . MarshalInput ) ( protoiface . MarshalOutput , error ) {
x := input . Message . Interface ().( * FeeParams )
if x == nil {
return protoiface . MarshalOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Buf : input . Buf ,
}, nil
}
options := runtime . MarshalInputToOptions ( input )
_ = options
size := options . Size ( x )
dAtA := make ([] byte , size )
i := len ( dAtA )
_ = i
var l int
_ = l
if x . unknownFields != nil {
i -= len ( x . unknownFields )
copy ( dAtA [ i :], x . unknownFields )
}
if len ( x . FeeCollector ) > 0 {
i -= len ( x . FeeCollector )
copy ( dAtA [ i :], x . FeeCollector )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( x . FeeCollector )))
i --
dAtA [ i ] = 0x22
}
if x . OrderFeeBps != 0 {
i = runtime . EncodeVarint ( dAtA , i , uint64 ( x . OrderFeeBps ))
i --
dAtA [ i ] = 0x18
}
if x . LiquidityFeeBps != 0 {
i = runtime . EncodeVarint ( dAtA , i , uint64 ( x . LiquidityFeeBps ))
i --
dAtA [ i ] = 0x10
}
if x . SwapFeeBps != 0 {
i = runtime . EncodeVarint ( dAtA , i , uint64 ( x . SwapFeeBps ))
i --
dAtA [ i ] = 0x8
}
if input . Buf != nil {
input . Buf = append ( input . Buf , dAtA ... )
} else {
input . Buf = dAtA
}
return protoiface . MarshalOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Buf : input . Buf ,
}, nil
}
unmarshal := func ( input protoiface . UnmarshalInput ) ( protoiface . UnmarshalOutput , error ) {
x := input . Message . Interface ().( * FeeParams )
if x == nil {
return protoiface . UnmarshalOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Flags : input . Flags ,
}, nil
}
options := runtime . UnmarshalInputToOptions ( input )
_ = options
dAtA := input . Buf
l := len ( dAtA )
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint ( 0 ); ; shift += 7 {
if shift >= 64 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrIntOverflow
}
if iNdEx >= l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
wire |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
fieldNum := int32 ( wire >> 3 )
wireType := int ( wire & 0x7 )
if wireType == 4 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: FeeParams: wiretype end group for non-group" )
}
if fieldNum <= 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: FeeParams: illegal tag %d (wire type %d)" , fieldNum , wire )
}
switch fieldNum {
case 1 :
if wireType != 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: wrong wireType = %d for field SwapFeeBps" , wireType )
}
x . SwapFeeBps = 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 . SwapFeeBps |= uint32 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
case 2 :
if wireType != 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: wrong wireType = %d for field LiquidityFeeBps" , wireType )
}
x . LiquidityFeeBps = 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 . LiquidityFeeBps |= uint32 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
case 3 :
if wireType != 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: wrong wireType = %d for field OrderFeeBps" , wireType )
}
x . OrderFeeBps = 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 . OrderFeeBps |= uint32 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
case 4 :
if wireType != 2 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, fmt . Errorf ( "proto: wrong wireType = %d for field FeeCollector" , wireType )
}
var stringLen uint64
for shift := uint ( 0 ); ; shift += 7 {
if shift >= 64 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrIntOverflow
}
if iNdEx >= l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
stringLen |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
intStringLen := int ( stringLen )
if intStringLen < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrInvalidLength
}
if postIndex > l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, io . ErrUnexpectedEOF
}
x . FeeCollector = string ( dAtA [ iNdEx : postIndex ])
iNdEx = postIndex
default :
iNdEx = preIndex
skippy , err := runtime . Skip ( dAtA [ iNdEx :])
if err != nil {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, err
}
if ( skippy < 0 ) || ( iNdEx + skippy ) < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, runtime . ErrInvalidLength
}
if ( iNdEx + skippy ) > l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, io . ErrUnexpectedEOF
}
if ! options . DiscardUnknown {
x . unknownFields = append ( x . unknownFields , dAtA [ iNdEx : iNdEx + skippy ] ... )
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, io . ErrUnexpectedEOF
}
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags }, nil
}
return & protoiface . Methods {
NoUnkeyedLiterals : struct {}{},
Flags : protoiface . SupportMarshalDeterministic | protoiface . SupportUnmarshalDiscardUnknown ,
Size : size ,
Marshal : marshal ,
Unmarshal : unmarshal ,
Merge : nil ,
CheckInitialized : nil ,
}
}
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.0
// protoc (unknown)
// source: dex/v1/genesis.proto
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl . EnforceVersion ( 20 - protoimpl . MinVersion )
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl . EnforceVersion ( protoimpl . MaxVersion - 20 )
)
// GenesisState defines the DEX module's genesis state
type GenesisState struct {
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
// Module parameters
Params * Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
// IBC port ID for the module
PortId string `protobuf:"bytes,2,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"`
// Registered DEX accounts
Accounts [] * InterchainDEXAccount `protobuf:"bytes,3,rep,name=accounts,proto3" json:"accounts,omitempty"`
// Account sequence counter
AccountSequence uint64 `protobuf:"varint,4,opt,name=account_sequence,json=accountSequence,proto3" json:"account_sequence,omitempty"`
}
func ( x * GenesisState ) Reset () {
* x = GenesisState {}
if protoimpl . UnsafeEnabled {
mi := & file_dex_v1_genesis_proto_msgTypes [ 0 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ))
ms . StoreMessageInfo ( mi )
}
}
func ( x * GenesisState ) String () string {
return protoimpl . X . MessageStringOf ( x )
}
func ( * GenesisState ) ProtoMessage () {}
// Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.
func ( * GenesisState ) Descriptor () ([] byte , [] int ) {
return file_dex_v1_genesis_proto_rawDescGZIP (), [] int { 0 }
}
func ( x * GenesisState ) GetParams () * Params {
if x != nil {
return x . Params
}
return nil
}
func ( x * GenesisState ) GetPortId () string {
if x != nil {
return x . PortId
}
return ""
}
func ( x * GenesisState ) GetAccounts () [] * InterchainDEXAccount {
if x != nil {
return x . Accounts
}
return nil
}
func ( x * GenesisState ) GetAccountSequence () uint64 {
if x != nil {
return x . AccountSequence
}
return 0
}
// Params defines the parameters for the DEX module
type Params struct {
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
// Enable/disable the module
Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
// Maximum accounts per DID
MaxAccountsPerDid uint32 `protobuf:"varint,2,opt,name=max_accounts_per_did,json=maxAccountsPerDid,proto3" json:"max_accounts_per_did,omitempty"`
// Default timeout for ICA operations (in seconds)
DefaultTimeoutSeconds uint64 `protobuf:"varint,3,opt,name=default_timeout_seconds,json=defaultTimeoutSeconds,proto3" json:"default_timeout_seconds,omitempty"`
// Allowed DEX connections
AllowedConnections [] string `protobuf:"bytes,4,rep,name=allowed_connections,json=allowedConnections,proto3" json:"allowed_connections,omitempty"`
// Minimum swap amount (in base denom)
MinSwapAmount string `protobuf:"bytes,5,opt,name=min_swap_amount,json=minSwapAmount,proto3" json:"min_swap_amount,omitempty"`
// Maximum daily volume per DID (in USD equivalent)
MaxDailyVolume string `protobuf:"bytes,6,opt,name=max_daily_volume,json=maxDailyVolume,proto3" json:"max_daily_volume,omitempty"`
// Rate limit parameters
RateLimits * RateLimitParams `protobuf:"bytes,7,opt,name=rate_limits,json=rateLimits,proto3" json:"rate_limits,omitempty"`
// Fee parameters
Fees * FeeParams `protobuf:"bytes,8,opt,name=fees,proto3" json:"fees,omitempty"`
}
func ( x * Params ) Reset () {
* x = Params {}
if protoimpl . UnsafeEnabled {
mi := & file_dex_v1_genesis_proto_msgTypes [ 1 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ))
ms . StoreMessageInfo ( mi )
}
}
func ( x * Params ) String () string {
return protoimpl . X . MessageStringOf ( x )
}
func ( * Params ) ProtoMessage () {}
// Deprecated: Use Params.ProtoReflect.Descriptor instead.
func ( * Params ) Descriptor () ([] byte , [] int ) {
return file_dex_v1_genesis_proto_rawDescGZIP (), [] int { 1 }
}
func ( x * Params ) GetEnabled () bool {
if x != nil {
return x . Enabled
}
return false
}
func ( x * Params ) GetMaxAccountsPerDid () uint32 {
if x != nil {
return x . MaxAccountsPerDid
}
return 0
}
func ( x * Params ) GetDefaultTimeoutSeconds () uint64 {
if x != nil {
return x . DefaultTimeoutSeconds
}
return 0
}
func ( x * Params ) GetAllowedConnections () [] string {
if x != nil {
return x . AllowedConnections
}
return nil
}
func ( x * Params ) GetMinSwapAmount () string {
if x != nil {
return x . MinSwapAmount
}
return ""
}
func ( x * Params ) GetMaxDailyVolume () string {
if x != nil {
return x . MaxDailyVolume
}
return ""
}
func ( x * Params ) GetRateLimits () * RateLimitParams {
if x != nil {
return x . RateLimits
}
return nil
}
func ( x * Params ) GetFees () * FeeParams {
if x != nil {
return x . Fees
}
return nil
}
// RateLimitParams defines rate limiting parameters
type RateLimitParams struct {
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
// Maximum operations per block
MaxOpsPerBlock uint32 `protobuf:"varint,1,opt,name=max_ops_per_block,json=maxOpsPerBlock,proto3" json:"max_ops_per_block,omitempty"`
// Maximum operations per DID per day
MaxOpsPerDidPerDay uint32 `protobuf:"varint,2,opt,name=max_ops_per_did_per_day,json=maxOpsPerDidPerDay,proto3" json:"max_ops_per_did_per_day,omitempty"`
// Cooldown period between operations (in blocks)
CooldownBlocks uint32 `protobuf:"varint,3,opt,name=cooldown_blocks,json=cooldownBlocks,proto3" json:"cooldown_blocks,omitempty"`
}
func ( x * RateLimitParams ) Reset () {
* x = RateLimitParams {}
if protoimpl . UnsafeEnabled {
mi := & file_dex_v1_genesis_proto_msgTypes [ 2 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ))
ms . StoreMessageInfo ( mi )
}
}
func ( x * RateLimitParams ) String () string {
return protoimpl . X . MessageStringOf ( x )
}
func ( * RateLimitParams ) ProtoMessage () {}
// Deprecated: Use RateLimitParams.ProtoReflect.Descriptor instead.
func ( * RateLimitParams ) Descriptor () ([] byte , [] int ) {
return file_dex_v1_genesis_proto_rawDescGZIP (), [] int { 2 }
}
func ( x * RateLimitParams ) GetMaxOpsPerBlock () uint32 {
if x != nil {
return x . MaxOpsPerBlock
}
return 0
}
func ( x * RateLimitParams ) GetMaxOpsPerDidPerDay () uint32 {
if x != nil {
return x . MaxOpsPerDidPerDay
}
return 0
}
func ( x * RateLimitParams ) GetCooldownBlocks () uint32 {
if x != nil {
return x . CooldownBlocks
}
return 0
}
// FeeParams defines fee parameters for DEX operations
type FeeParams struct {
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
// Platform fee for swaps (basis points, e.g., 30 = 0.3%)
SwapFeeBps uint32 `protobuf:"varint,1,opt,name=swap_fee_bps,json=swapFeeBps,proto3" json:"swap_fee_bps,omitempty"`
// Platform fee for liquidity operations
LiquidityFeeBps uint32 `protobuf:"varint,2,opt,name=liquidity_fee_bps,json=liquidityFeeBps,proto3" json:"liquidity_fee_bps,omitempty"`
// Platform fee for orders
OrderFeeBps uint32 `protobuf:"varint,3,opt,name=order_fee_bps,json=orderFeeBps,proto3" json:"order_fee_bps,omitempty"`
// Fee collector address
FeeCollector string `protobuf:"bytes,4,opt,name=fee_collector,json=feeCollector,proto3" json:"fee_collector,omitempty"`
}
func ( x * FeeParams ) Reset () {
* x = FeeParams {}
if protoimpl . UnsafeEnabled {
mi := & file_dex_v1_genesis_proto_msgTypes [ 3 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ))
ms . StoreMessageInfo ( mi )
}
}
func ( x * FeeParams ) String () string {
return protoimpl . X . MessageStringOf ( x )
}
func ( * FeeParams ) ProtoMessage () {}
// Deprecated: Use FeeParams.ProtoReflect.Descriptor instead.
func ( * FeeParams ) Descriptor () ([] byte , [] int ) {
return file_dex_v1_genesis_proto_rawDescGZIP (), [] int { 3 }
}
func ( x * FeeParams ) GetSwapFeeBps () uint32 {
if x != nil {
return x . SwapFeeBps
}
return 0
}
func ( x * FeeParams ) GetLiquidityFeeBps () uint32 {
if x != nil {
return x . LiquidityFeeBps
}
return 0
}
func ( x * FeeParams ) GetOrderFeeBps () uint32 {
if x != nil {
return x . OrderFeeBps
}
return 0
}
func ( x * FeeParams ) GetFeeCollector () string {
if x != nil {
return x . FeeCollector
}
return ""
}
var File_dex_v1_genesis_proto protoreflect . FileDescriptor
var file_dex_v1_genesis_proto_rawDesc = [] byte {
0x0a , 0x14 , 0x64 , 0x65 , 0x78 , 0x2f , 0x76 , 0x31 , 0x2f , 0x67 , 0x65 , 0x6e , 0x65 , 0x73 , 0x69 , 0x73 ,
0x2e , 0x70 , 0x72 , 0x6f , 0x74 , 0x6f , 0x12 , 0x06 , 0x64 , 0x65 , 0x78 , 0x2e , 0x76 , 0x31 , 0x1a , 0x14 ,
0x67 , 0x6f , 0x67 , 0x6f , 0x70 , 0x72 , 0x6f , 0x74 , 0x6f , 0x2f , 0x67 , 0x6f , 0x67 , 0x6f , 0x2e , 0x70 ,
0x72 , 0x6f , 0x74 , 0x6f , 0x1a , 0x10 , 0x64 , 0x65 , 0x78 , 0x2f , 0x76 , 0x31 , 0x2f , 0x69 , 0x63 , 0x61 ,
0x2e , 0x70 , 0x72 , 0x6f , 0x74 , 0x6f , 0x22 , 0xba , 0x01 , 0x0a , 0x0c , 0x47 , 0x65 , 0x6e , 0x65 , 0x73 ,
0x69 , 0x73 , 0x53 , 0x74 , 0x61 , 0x74 , 0x65 , 0x12 , 0x2c , 0x0a , 0x06 , 0x70 , 0x61 , 0x72 , 0x61 , 0x6d ,
0x73 , 0x18 , 0x01 , 0x20 , 0x01 , 0x28 , 0x0b , 0x32 , 0x0e , 0x2e , 0x64 , 0x65 , 0x78 , 0x2e , 0x76 , 0x31 ,
0x2e , 0x50 , 0x61 , 0x72 , 0x61 , 0x6d , 0x73 , 0x42 , 0x04 , 0xc8 , 0xde , 0x1f , 0x00 , 0x52 , 0x06 , 0x70 ,
0x61 , 0x72 , 0x61 , 0x6d , 0x73 , 0x12 , 0x17 , 0x0a , 0x07 , 0x70 , 0x6f , 0x72 , 0x74 , 0x5f , 0x69 , 0x64 ,
0x18 , 0x02 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x06 , 0x70 , 0x6f , 0x72 , 0x74 , 0x49 , 0x64 , 0x12 , 0x38 ,
0x0a , 0x08 , 0x61 , 0x63 , 0x63 , 0x6f , 0x75 , 0x6e , 0x74 , 0x73 , 0x18 , 0x03 , 0x20 , 0x03 , 0x28 , 0x0b ,
0x32 , 0x1c , 0x2e , 0x64 , 0x65 , 0x78 , 0x2e , 0x76 , 0x31 , 0x2e , 0x49 , 0x6e , 0x74 , 0x65 , 0x72 , 0x63 ,
0x68 , 0x61 , 0x69 , 0x6e , 0x44 , 0x45 , 0x58 , 0x41 , 0x63 , 0x63 , 0x6f , 0x75 , 0x6e , 0x74 , 0x52 , 0x08 ,
0x61 , 0x63 , 0x63 , 0x6f , 0x75 , 0x6e , 0x74 , 0x73 , 0x12 , 0x29 , 0x0a , 0x10 , 0x61 , 0x63 , 0x63 , 0x6f ,
0x75 , 0x6e , 0x74 , 0x5f , 0x73 , 0x65 , 0x71 , 0x75 , 0x65 , 0x6e , 0x63 , 0x65 , 0x18 , 0x04 , 0x20 , 0x01 ,
0x28 , 0x04 , 0x52 , 0x0f , 0x61 , 0x63 , 0x63 , 0x6f , 0x75 , 0x6e , 0x74 , 0x53 , 0x65 , 0x71 , 0x75 , 0x65 ,
0x6e , 0x63 , 0x65 , 0x22 , 0x81 , 0x03 , 0x0a , 0x06 , 0x50 , 0x61 , 0x72 , 0x61 , 0x6d , 0x73 , 0x12 , 0x18 ,
0x0a , 0x07 , 0x65 , 0x6e , 0x61 , 0x62 , 0x6c , 0x65 , 0x64 , 0x18 , 0x01 , 0x20 , 0x01 , 0x28 , 0x08 , 0x52 ,
0x07 , 0x65 , 0x6e , 0x61 , 0x62 , 0x6c , 0x65 , 0x64 , 0x12 , 0x2f , 0x0a , 0x14 , 0x6d , 0x61 , 0x78 , 0x5f ,
0x61 , 0x63 , 0x63 , 0x6f , 0x75 , 0x6e , 0x74 , 0x73 , 0x5f , 0x70 , 0x65 , 0x72 , 0x5f , 0x64 , 0x69 , 0x64 ,
0x18 , 0x02 , 0x20 , 0x01 , 0x28 , 0x0d , 0x52 , 0x11 , 0x6d , 0x61 , 0x78 , 0x41 , 0x63 , 0x63 , 0x6f , 0x75 ,
0x6e , 0x74 , 0x73 , 0x50 , 0x65 , 0x72 , 0x44 , 0x69 , 0x64 , 0x12 , 0x36 , 0x0a , 0x17 , 0x64 , 0x65 , 0x66 ,
0x61 , 0x75 , 0x6c , 0x74 , 0x5f , 0x74 , 0x69 , 0x6d , 0x65 , 0x6f , 0x75 , 0x74 , 0x5f , 0x73 , 0x65 , 0x63 ,
0x6f , 0x6e , 0x64 , 0x73 , 0x18 , 0x03 , 0x20 , 0x01 , 0x28 , 0x04 , 0x52 , 0x15 , 0x64 , 0x65 , 0x66 , 0x61 ,
0x75 , 0x6c , 0x74 , 0x54 , 0x69 , 0x6d , 0x65 , 0x6f , 0x75 , 0x74 , 0x53 , 0x65 , 0x63 , 0x6f , 0x6e , 0x64 ,
0x73 , 0x12 , 0x2f , 0x0a , 0x13 , 0x61 , 0x6c , 0x6c , 0x6f , 0x77 , 0x65 , 0x64 , 0x5f , 0x63 , 0x6f , 0x6e ,
0x6e , 0x65 , 0x63 , 0x74 , 0x69 , 0x6f , 0x6e , 0x73 , 0x18 , 0x04 , 0x20 , 0x03 , 0x28 , 0x09 , 0x52 , 0x12 ,
0x61 , 0x6c , 0x6c , 0x6f , 0x77 , 0x65 , 0x64 , 0x43 , 0x6f , 0x6e , 0x6e , 0x65 , 0x63 , 0x74 , 0x69 , 0x6f ,
0x6e , 0x73 , 0x12 , 0x26 , 0x0a , 0x0f , 0x6d , 0x69 , 0x6e , 0x5f , 0x73 , 0x77 , 0x61 , 0x70 , 0x5f , 0x61 ,
0x6d , 0x6f , 0x75 , 0x6e , 0x74 , 0x18 , 0x05 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x0d , 0x6d , 0x69 , 0x6e ,
0x53 , 0x77 , 0x61 , 0x70 , 0x41 , 0x6d , 0x6f , 0x75 , 0x6e , 0x74 , 0x12 , 0x28 , 0x0a , 0x10 , 0x6d , 0x61 ,
0x78 , 0x5f , 0x64 , 0x61 , 0x69 , 0x6c , 0x79 , 0x5f , 0x76 , 0x6f , 0x6c , 0x75 , 0x6d , 0x65 , 0x18 , 0x06 ,
0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x0e , 0x6d , 0x61 , 0x78 , 0x44 , 0x61 , 0x69 , 0x6c , 0x79 , 0x56 , 0x6f ,
0x6c , 0x75 , 0x6d , 0x65 , 0x12 , 0x3e , 0x0a , 0x0b , 0x72 , 0x61 , 0x74 , 0x65 , 0x5f , 0x6c , 0x69 , 0x6d ,
0x69 , 0x74 , 0x73 , 0x18 , 0x07 , 0x20 , 0x01 , 0x28 , 0x0b , 0x32 , 0x17 , 0x2e , 0x64 , 0x65 , 0x78 , 0x2e ,
0x76 , 0x31 , 0x2e , 0x52 , 0x61 , 0x74 , 0x65 , 0x4c , 0x69 , 0x6d , 0x69 , 0x74 , 0x50 , 0x61 , 0x72 , 0x61 ,
0x6d , 0x73 , 0x42 , 0x04 , 0xc8 , 0xde , 0x1f , 0x00 , 0x52 , 0x0a , 0x72 , 0x61 , 0x74 , 0x65 , 0x4c , 0x69 ,
0x6d , 0x69 , 0x74 , 0x73 , 0x12 , 0x2b , 0x0a , 0x04 , 0x66 , 0x65 , 0x65 , 0x73 , 0x18 , 0x08 , 0x20 , 0x01 ,
0x28 , 0x0b , 0x32 , 0x11 , 0x2e , 0x64 , 0x65 , 0x78 , 0x2e , 0x76 , 0x31 , 0x2e , 0x46 , 0x65 , 0x65 , 0x50 ,
0x61 , 0x72 , 0x61 , 0x6d , 0x73 , 0x42 , 0x04 , 0xc8 , 0xde , 0x1f , 0x00 , 0x52 , 0x04 , 0x66 , 0x65 , 0x65 ,
0x73 , 0x3a , 0x04 , 0x88 , 0xa0 , 0x1f , 0x00 , 0x22 , 0x9a , 0x01 , 0x0a , 0x0f , 0x52 , 0x61 , 0x74 , 0x65 ,
0x4c , 0x69 , 0x6d , 0x69 , 0x74 , 0x50 , 0x61 , 0x72 , 0x61 , 0x6d , 0x73 , 0x12 , 0x29 , 0x0a , 0x11 , 0x6d ,
0x61 , 0x78 , 0x5f , 0x6f , 0x70 , 0x73 , 0x5f , 0x70 , 0x65 , 0x72 , 0x5f , 0x62 , 0x6c , 0x6f , 0x63 , 0x6b ,
0x18 , 0x01 , 0x20 , 0x01 , 0x28 , 0x0d , 0x52 , 0x0e , 0x6d , 0x61 , 0x78 , 0x4f , 0x70 , 0x73 , 0x50 , 0x65 ,
0x72 , 0x42 , 0x6c , 0x6f , 0x63 , 0x6b , 0x12 , 0x33 , 0x0a , 0x17 , 0x6d , 0x61 , 0x78 , 0x5f , 0x6f , 0x70 ,
0x73 , 0x5f , 0x70 , 0x65 , 0x72 , 0x5f , 0x64 , 0x69 , 0x64 , 0x5f , 0x70 , 0x65 , 0x72 , 0x5f , 0x64 , 0x61 ,
0x79 , 0x18 , 0x02 , 0x20 , 0x01 , 0x28 , 0x0d , 0x52 , 0x12 , 0x6d , 0x61 , 0x78 , 0x4f , 0x70 , 0x73 , 0x50 ,
0x65 , 0x72 , 0x44 , 0x69 , 0x64 , 0x50 , 0x65 , 0x72 , 0x44 , 0x61 , 0x79 , 0x12 , 0x27 , 0x0a , 0x0f , 0x63 ,
0x6f , 0x6f , 0x6c , 0x64 , 0x6f , 0x77 , 0x6e , 0x5f , 0x62 , 0x6c , 0x6f , 0x63 , 0x6b , 0x73 , 0x18 , 0x03 ,
0x20 , 0x01 , 0x28 , 0x0d , 0x52 , 0x0e , 0x63 , 0x6f , 0x6f , 0x6c , 0x64 , 0x6f , 0x77 , 0x6e , 0x42 , 0x6c ,
0x6f , 0x63 , 0x6b , 0x73 , 0x22 , 0xa2 , 0x01 , 0x0a , 0x09 , 0x46 , 0x65 , 0x65 , 0x50 , 0x61 , 0x72 , 0x61 ,
0x6d , 0x73 , 0x12 , 0x20 , 0x0a , 0x0c , 0x73 , 0x77 , 0x61 , 0x70 , 0x5f , 0x66 , 0x65 , 0x65 , 0x5f , 0x62 ,
0x70 , 0x73 , 0x18 , 0x01 , 0x20 , 0x01 , 0x28 , 0x0d , 0x52 , 0x0a , 0x73 , 0x77 , 0x61 , 0x70 , 0x46 , 0x65 ,
0x65 , 0x42 , 0x70 , 0x73 , 0x12 , 0x2a , 0x0a , 0x11 , 0x6c , 0x69 , 0x71 , 0x75 , 0x69 , 0x64 , 0x69 , 0x74 ,
0x79 , 0x5f , 0x66 , 0x65 , 0x65 , 0x5f , 0x62 , 0x70 , 0x73 , 0x18 , 0x02 , 0x20 , 0x01 , 0x28 , 0x0d , 0x52 ,
0x0f , 0x6c , 0x69 , 0x71 , 0x75 , 0x69 , 0x64 , 0x69 , 0x74 , 0x79 , 0x46 , 0x65 , 0x65 , 0x42 , 0x70 , 0x73 ,
0x12 , 0x22 , 0x0a , 0x0d , 0x6f , 0x72 , 0x64 , 0x65 , 0x72 , 0x5f , 0x66 , 0x65 , 0x65 , 0x5f , 0x62 , 0x70 ,
0x73 , 0x18 , 0x03 , 0x20 , 0x01 , 0x28 , 0x0d , 0x52 , 0x0b , 0x6f , 0x72 , 0x64 , 0x65 , 0x72 , 0x46 , 0x65 ,
0x65 , 0x42 , 0x70 , 0x73 , 0x12 , 0x23 , 0x0a , 0x0d , 0x66 , 0x65 , 0x65 , 0x5f , 0x63 , 0x6f , 0x6c , 0x6c ,
0x65 , 0x63 , 0x74 , 0x6f , 0x72 , 0x18 , 0x04 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x0c , 0x66 , 0x65 , 0x65 ,
0x43 , 0x6f , 0x6c , 0x6c , 0x65 , 0x63 , 0x74 , 0x6f , 0x72 , 0x42 , 0x7d , 0x0a , 0x0a , 0x63 , 0x6f , 0x6d ,
0x2e , 0x64 , 0x65 , 0x78 , 0x2e , 0x76 , 0x31 , 0x42 , 0x0c , 0x47 , 0x65 , 0x6e , 0x65 , 0x73 , 0x69 , 0x73 ,
0x50 , 0x72 , 0x6f , 0x74 , 0x6f , 0x50 , 0x01 , 0x5a , 0x28 , 0x67 , 0x69 , 0x74 , 0x68 , 0x75 , 0x62 , 0x2e ,
0x63 , 0x6f , 0x6d , 0x2f , 0x73 , 0x6f , 0x6e , 0x72 , 0x2d , 0x69 , 0x6f , 0x2f , 0x73 , 0x6f , 0x6e , 0x72 ,
0x2f , 0x61 , 0x70 , 0x69 , 0x2f , 0x64 , 0x65 , 0x78 , 0x2f , 0x76 , 0x31 , 0x3b , 0x64 , 0x65 , 0x78 , 0x76 ,
0x31 , 0xa2 , 0x02 , 0x03 , 0x44 , 0x58 , 0x58 , 0xaa , 0x02 , 0x06 , 0x44 , 0x65 , 0x78 , 0x2e , 0x56 , 0x31 ,
0xca , 0x02 , 0x06 , 0x44 , 0x65 , 0x78 , 0x5c , 0x56 , 0x31 , 0xe2 , 0x02 , 0x12 , 0x44 , 0x65 , 0x78 , 0x5c ,
0x56 , 0x31 , 0x5c , 0x47 , 0x50 , 0x42 , 0x4d , 0x65 , 0x74 , 0x61 , 0x64 , 0x61 , 0x74 , 0x61 , 0xea , 0x02 ,
0x07 , 0x44 , 0x65 , 0x78 , 0x3a , 0x3a , 0x56 , 0x31 , 0x62 , 0x06 , 0x70 , 0x72 , 0x6f , 0x74 , 0x6f , 0x33 ,
}
var (
file_dex_v1_genesis_proto_rawDescOnce sync . Once
file_dex_v1_genesis_proto_rawDescData = file_dex_v1_genesis_proto_rawDesc
)
func file_dex_v1_genesis_proto_rawDescGZIP () [] byte {
file_dex_v1_genesis_proto_rawDescOnce . Do ( func () {
file_dex_v1_genesis_proto_rawDescData = protoimpl . X . CompressGZIP ( file_dex_v1_genesis_proto_rawDescData )
})
return file_dex_v1_genesis_proto_rawDescData
}
var file_dex_v1_genesis_proto_msgTypes = make ([] protoimpl . MessageInfo , 4 )
var file_dex_v1_genesis_proto_goTypes = [] interface {}{
( * GenesisState )( nil ), // 0: dex.v1.GenesisState
( * Params )( nil ), // 1: dex.v1.Params
( * RateLimitParams )( nil ), // 2: dex.v1.RateLimitParams
( * FeeParams )( nil ), // 3: dex.v1.FeeParams
( * InterchainDEXAccount )( nil ), // 4: dex.v1.InterchainDEXAccount
}
var file_dex_v1_genesis_proto_depIdxs = [] int32 {
1 , // 0: dex.v1.GenesisState.params:type_name -> dex.v1.Params
4 , // 1: dex.v1.GenesisState.accounts:type_name -> dex.v1.InterchainDEXAccount
2 , // 2: dex.v1.Params.rate_limits:type_name -> dex.v1.RateLimitParams
3 , // 3: dex.v1.Params.fees:type_name -> dex.v1.FeeParams
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_genesis_proto_init () }
func file_dex_v1_genesis_proto_init () {
if File_dex_v1_genesis_proto != nil {
return
}
file_dex_v1_ica_proto_init ()
if ! protoimpl . UnsafeEnabled {
file_dex_v1_genesis_proto_msgTypes [ 0 ]. Exporter = func ( v interface {}, i int ) interface {} {
switch v := v .( * GenesisState ); i {
case 0 :
return & v . state
case 1 :
return & v . sizeCache
case 2 :
return & v . unknownFields
default :
return nil
}
}
file_dex_v1_genesis_proto_msgTypes [ 1 ]. Exporter = func ( v interface {}, i int ) interface {} {
switch v := v .( * Params ); i {
case 0 :
return & v . state
case 1 :
return & v . sizeCache
case 2 :
return & v . unknownFields
default :
return nil
}
}
file_dex_v1_genesis_proto_msgTypes [ 2 ]. Exporter = func ( v interface {}, i int ) interface {} {
switch v := v .( * RateLimitParams ); i {
case 0 :
return & v . state
case 1 :
return & v . sizeCache
case 2 :
return & v . unknownFields
default :
return nil
}
}
file_dex_v1_genesis_proto_msgTypes [ 3 ]. Exporter = func ( v interface {}, i int ) interface {} {
switch v := v .( * FeeParams ); 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_genesis_proto_rawDesc ,
NumEnums : 0 ,
NumMessages : 4 ,
NumExtensions : 0 ,
NumServices : 0 ,
},
GoTypes : file_dex_v1_genesis_proto_goTypes ,
DependencyIndexes : file_dex_v1_genesis_proto_depIdxs ,
MessageInfos : file_dex_v1_genesis_proto_msgTypes ,
}. Build ()
File_dex_v1_genesis_proto = out . File
file_dex_v1_genesis_proto_rawDesc = nil
file_dex_v1_genesis_proto_goTypes = nil
file_dex_v1_genesis_proto_depIdxs = nil
}