package
0.48.0
Repository: https://github.com/elys-network/elys.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

AbsDifferenceWithSign returns | a - b |, (a - b).sign() a is mutated and returned.
ApplyDiscount applies discount to swap fee if applicable.
CalcExitPool returns how many tokens should come out, when exiting k LP shares against a "standard" CFMM.
No description provided by the author
E.g.
DefaultGenesis returns the default genesis state.
DefaultParams returns a default set of parameters.
DenomLiquidityKey returns the store key to retrieve a DenomLiquidity from the index fields.
No description provided by the author
No description provided by the author
No description provided by the author
ensureDenomInPool check to make sure the input denoms exist in the provided pool asset map.
No description provided by the author
No description provided by the author
No description provided by the author
GetPoolAssetsByDenom return a mapping from pool asset denom to the pool asset itself.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
MaximalExactRatioJoin calculates the maximal amount of tokens that can be joined whilst maintaining pool asset's ratio returning the number of shares that'd be and how many coins would be left over.
No description provided by the author
NewPool returns a weighted CPMM pool with the provided parameters, and initial assets.
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
No description provided by the author
No description provided by the author
No description provided by the author
Creates hooks for the Amm Module.
NewParams creates a new Params instance.
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
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
PoolKey returns the store key to retrieve a Pool from the index fields.
Pow computes base^(exp) However since the exponent is not an integer, we must do an approximation algorithm.
No description provided by the author
No description provided by the author
No description provided by the author
RegisterQueryHandler registers the http handlers for service Query to "mux".
RegisterQueryHandlerClient registers the http handlers for service Query to "mux".
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
RegisterQueryHandlerServer registers the http handlers for service Query to "mux".
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

# Constants

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
DefaultIndex is the default global index.
DenomLiquidityKeyPrefix is the prefix to retrieve all DenomLiquidity.
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
No description provided by the author
No description provided by the author
ModuleName defines the module name.
No description provided by the author
OraclePoolSlippageTrackPrefix is the prefix to retrieve slippage tracked.
ParamsKey is the prefix to retrieve all Params.
PoolKeyPrefix is the prefix to retrieve all Pool.
RouterKey defines the module's message routing key.
StoreKey defines the primary module store key.
No description provided by the author
TStoreKey defines the transient store key.
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
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
No description provided by the author

# Variables

x/amm module sentinel errors.
x/amm module sentinel errors.
x/amm module sentinel errors.
x/amm module sentinel errors.
x/amm module sentinel errors.
x/amm module sentinel errors.
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
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
x/amm module sentinel errors.
x/amm module sentinel errors.
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
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
x/amm module sentinel errors.
x/amm module sentinel errors.
x/amm module sentinel errors.
x/amm module sentinel errors.
x/amm module sentinel errors.
x/amm module sentinel errors.
x/amm module sentinel errors.
x/amm module sentinel errors.
x/amm module sentinel errors.
x/amm module sentinel errors.
x/amm module sentinel errors.
x/amm module sentinel errors.
x/amm module sentinel errors.
x/amm module sentinel errors.
x/amm module sentinel errors.
x/amm module sentinel errors.
x/amm module sentinel errors.
x/amm module sentinel errors.
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
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
GuaranteedWeightPrecision Scaling factor for every weight.
InitPoolSharesSupply is the amount of new shares to initialize a pool with.
No description provided by the author
OneShare represents the amount of subshares in a single pool share.

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ExternalLiquidity defines price, volume, and time information for an exchange rate.
GenesisState defines the amm module's genesis state.
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
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
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
Params defines the parameters for the module.
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
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
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
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
QueryParamsRequest is request type for the Query/Params RPC method.
QueryParamsResponse is response type for the Query/Params RPC method.
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
No description provided by the author
No description provided by the author
No description provided by the author
UnimplementedMsgServer can be embedded to have forward compatible implementations.
UnimplementedQueryServer can be embedded to have forward compatible implementations.

# Interfaces

AccountedPoolKeeper defines the expected interfaces go:generate mockery --srcpkg .
AccountKeeper defines the expected account keeper used for simulations (noalias).
No description provided by the author
AssetProfileKeeper defines the expected interfaces.
BankKeeper defines the expected interface needed to retrieve account balances.
MsgClient is the client API for Msg service.
MsgServer is the server API for Msg service.
No description provided by the author
OracleKeeper defines the expected interface needed to retrieve price info go:generate mockery --srcpkg .
QueryClient is the client API for Query service.
QueryServer is the server API for Query service.

# Type aliases

No description provided by the author
combine multiple amm hooks, all hook functions are run in array sequence.
No description provided by the author
No description provided by the author