package
0.1.0
Repository: https://github.com/qosgroup/qos.git
Documentation: pkg.go.dev

# Functions

intended to be used with require/assert: require.True(DecEq(...)).
test if two decimal arrays are equal.
No description provided by the author
FormatInvariant returns a standardized invariant message along with a boolean indicating whether the invariant has been broken.
Get default chain-id.
从flag中解析Int值.
maximum decimal between two.
minimum decimal between two.
Decimal from string, panic on error.
No description provided by the author
create a new Dec from integer assuming whole number.
create a new Dec from big integer assuming whole numbers CONTRACT: prec <= Precision.
create a new Dec from big integer assuming whole numbers CONTRACT: prec <= Precision.
create a new Dec from big integer assuming whole numbers CONTRACT: prec <= Precision.
create a new Dec from big integer with decimal place at prec CONTRACT: prec <= Precision.
create a decimal from an input decimal string.
create a new Dec from integer with decimal place at prec CONTRACT: prec <= Precision.
No description provided by the author
No description provided by the author
NewGenesisOnlyAppModule creates a new GenesisOnlyAppModule object.
NewInvarRoute - create an InvarRoute object.
NewModuleManager creates a new Manager object.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Parse accounts from string address16lwp3kykkjdc2gdknpjy6u9uhfpa9q4vj78ytd,1000000qos,1000000qstars.
Parse QOS and QSCs from string str example : 100qos,100qstar.
No description provided by the author
为包内定义结构注册codec.
Uint64ToBigEndian - marshals uint64 to a bigendian byte slice so it can be sorted.
nolint - common values.
No description provided by the author

# Constants

4位精度.
bytes required to represent the above precision Ceiling[Log2[999 999 999 999 999 999]].
number of decimal places.
No description provided by the author
100亿.

# Variables

5 seconds.
No description provided by the author
No description provided by the author
total QOS amount.
event type for invariant checking.
QOS unit.
1 QOS = 100 gas.

# Structs

NOTE: never use new(Dec) or else we will panic unmarshalling into the nil embedded big.Int.
No description provided by the author
___________________________ app module.
invariant route.
No description provided by the author
____________________________________________________________________________ module manager provides the high level utility for managing and executing operations for a group of modules.
mapper for db.
No description provided by the author

# Interfaces

AppModule is the standard form for an application module.
No description provided by the author
_________________________________________________________ AppModuleGenesis is the standard form for an application module genesis functions.
hooks for mappers.
No description provided by the author
No description provided by the author
expected interface for registering invariants.
No description provided by the author
参数接口,不同模块参数结构必须实现该接口并注册到params模块才能正常使用params提供的参数管理方法。.
No description provided by the author
No description provided by the author

# Type aliases

collections of AppModuleBasic.
No description provided by the author
An Invariant is a function which tests a particular invariant.
Invariants defines a group of invariants.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author