v1

package
v1.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type Params

type Params struct {
	VersionedParams VersionedParams `protobuf:"bytes,1,opt,name=versioned_params,json=versionedParams,proto3" json:"versioned_params"`
	// The maximum number of payment accounts that can be created by one user
	PaymentAccountCountLimit uint64 `` /* 173-byte string literal not displayed */
	// Time duration threshold of forced settlement.
	// If dynamic balance is less than NetOutFlowRate * forcedSettleTime, the account can be forced settled.
	ForcedSettleTime uint64 `` /* 138-byte string literal not displayed */
	// the maximum number of flows that will be auto forced settled in one block
	MaxAutoSettleFlowCount uint64 `` /* 168-byte string literal not displayed */
	// the maximum number of flows that will be auto resumed in one block
	MaxAutoResumeFlowCount uint64 `` /* 168-byte string literal not displayed */
	// The denom of fee charged in payment module
	FeeDenom string `protobuf:"bytes,6,opt,name=fee_denom,json=feeDenom,proto3" json:"fee_denom,omitempty" yaml:"fee_denom"`
}

Params defines the parameters for the module.

func (*Params) Descriptor

func (*Params) Descriptor() ([]byte, []int)

func (*Params) GetFeeDenom

func (m *Params) GetFeeDenom() string

func (*Params) GetForcedSettleTime

func (m *Params) GetForcedSettleTime() uint64

func (*Params) GetMaxAutoResumeFlowCount

func (m *Params) GetMaxAutoResumeFlowCount() uint64

func (*Params) GetMaxAutoSettleFlowCount

func (m *Params) GetMaxAutoSettleFlowCount() uint64

func (*Params) GetPaymentAccountCountLimit

func (m *Params) GetPaymentAccountCountLimit() uint64

func (*Params) GetVersionedParams

func (m *Params) GetVersionedParams() VersionedParams

func (*Params) Marshal

func (m *Params) Marshal() (dAtA []byte, err error)

func (*Params) MarshalTo

func (m *Params) MarshalTo(dAtA []byte) (int, error)

func (*Params) MarshalToSizedBuffer

func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

func (m *Params) Size() (n int)

func (*Params) String

func (m *Params) String() string

func (*Params) Unmarshal

func (m *Params) Unmarshal(dAtA []byte) error

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Params) XXX_Merge

func (m *Params) XXX_Merge(src proto.Message)

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

func (m *Params) XXX_Unmarshal(b []byte) error

type VersionedParams

type VersionedParams struct {
	// Time duration which the buffer balance need to be reserved for NetOutFlow e.g. 6 month
	ReserveTime uint64 `protobuf:"varint,1,opt,name=reserve_time,json=reserveTime,proto3" json:"reserve_time,omitempty" yaml:"reserve_time"`
	// The tax rate to pay for validators in storage payment. The default value is 1%(0.01)
	ValidatorTaxRate github_com_cosmos_cosmos_sdk_types.Dec `` /* 151-byte string literal not displayed */
}

VersionedParams defines the parameters with multiple versions, each version is stored with different timestamp.

func (*VersionedParams) Descriptor

func (*VersionedParams) Descriptor() ([]byte, []int)

func (*VersionedParams) GetReserveTime

func (m *VersionedParams) GetReserveTime() uint64

func (*VersionedParams) Marshal

func (m *VersionedParams) Marshal() (dAtA []byte, err error)

func (*VersionedParams) MarshalTo

func (m *VersionedParams) MarshalTo(dAtA []byte) (int, error)

func (*VersionedParams) MarshalToSizedBuffer

func (m *VersionedParams) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*VersionedParams) ProtoMessage

func (*VersionedParams) ProtoMessage()

func (*VersionedParams) Reset

func (m *VersionedParams) Reset()

func (*VersionedParams) Size

func (m *VersionedParams) Size() (n int)

func (*VersionedParams) String

func (m *VersionedParams) String() string

func (*VersionedParams) Unmarshal

func (m *VersionedParams) Unmarshal(dAtA []byte) error

func (*VersionedParams) XXX_DiscardUnknown

func (m *VersionedParams) XXX_DiscardUnknown()

func (*VersionedParams) XXX_Marshal

func (m *VersionedParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VersionedParams) XXX_Merge

func (m *VersionedParams) XXX_Merge(src proto.Message)

func (*VersionedParams) XXX_Size

func (m *VersionedParams) XXX_Size() int

func (*VersionedParams) XXX_Unmarshal

func (m *VersionedParams) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL