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

# Functions

Utility function to add a new coin or aggregate the amount if coin with same denom already exists.
CalculateFundingRate calculates and returns the funding rate based on long and short amounts.
No description provided by the author
CalcTakeAmount calculates the take amount in the custody asset based on the funding rate.
No description provided by the author
No description provided by the author
DefaultGenesis returns the default genesis state.
DefaultParams returns a default set of parameters.
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
GetUint64Bytes returns the byte representation of the ID.
GetUint64FromBytes returns ID in uint64 format from a byte array.
No description provided by the author
Check if amm pool has sufficcient balance.
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
Creates hooks for the Amm Module.
NewParams creates a new Params instance.
Generate a new perpetual collateral wallet per position.
Generate a new perpetual custody wallet per position.
No description provided by the author
No description provided by the author
ParamKeyTable the param key table for launch module.
ReachedTakeProfitPrice tells if the take profit price is reached.
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

# Constants

DefaultIndex is the default global index.
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
MemStoreKey defines the in-memory store key.
ModuleName defines the module name.
ParamsKey is the prefix for parameters of perpetual module.
No description provided by the author
No description provided by the author
No description provided by the author
RouterKey defines the module's message routing key.
StoreKey defines the primary module 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

# Variables

x/perpetual module sentinel errors.
x/perpetual module sentinel errors.
x/perpetual module sentinel errors.
x/perpetual module sentinel errors.
x/perpetual module sentinel errors.
x/perpetual module sentinel errors.
x/perpetual 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
x/perpetual module sentinel errors.
x/perpetual module sentinel errors.
x/perpetual module sentinel errors.
x/perpetual 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
x/perpetual module sentinel errors.
x/perpetual module sentinel errors.
x/perpetual module sentinel errors.
x/perpetual module sentinel errors.
x/perpetual module sentinel errors.
x/perpetual module sentinel errors.
x/perpetual module sentinel errors.
x/perpetual module sentinel errors.
x/perpetual module sentinel errors.
x/perpetual module sentinel errors.
x/perpetual module sentinel errors.
x/perpetual module sentinel errors.
x/perpetual module sentinel errors.
x/perpetual module sentinel errors.
x/perpetual module sentinel errors.
x/perpetual 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
x/perpetual module sentinel errors.
x/perpetual 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
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
10^40.
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
GenesisState defines the perpetual 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
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.
ParamsRequest is request type for the Query/Params RPC method.
ParamsResponse 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
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
UnimplementedMsgServer can be embedded to have forward compatible implementations.
UnimplementedQueryServer can be embedded to have forward compatible implementations.
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

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
MsgClient is the client API for Msg service.
MsgServer is the server API for Msg service.
No description provided by the author
No description provided by the author
QueryClient is the client API for Query service.
QueryServer is the server API for Query service.

# Type aliases

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