package
1.1.0
Repository: https://github.com/crescent-network/crescent.git
Documentation: pkg.go.dev

# Functions

ActiveCondition checks the liquid validator could be active by below cases- included on whitelist- existed valid validator on staking module ( existed, not nil del shares and tokens, valid exchange rate)- not tombstoned.
BTokenToNativeToken returns bTokenAmount * netAmount / bTokenTotalSupply with truncations.
DeductFeeRate returns Input * (1-FeeRate) with truncations.
DefaultGenesisState returns the default genesis state.
DefaultParams returns the default liquidstaking module parameters.
DivideByCurrentWeight divide the input value by the ratio of the weight of the liquid validator's liquid token and return it with crumb which is may occur while dividing according to the weight of liquid validators by decimal error, outputs is truncated decimal.
DivideByWeight divide the input value by the ratio of the param weight of the liquid validator and return it with crumb which is may occur while dividing according to the weight of active liquid validators by decimal error.
GetLiquidValidatorKey creates the key for the liquid validator with address VALUE: liquidstaking/LiquidValidator.
No description provided by the author
No description provided by the author
must unmarshal a liquid validator from a store value.
NativeTokenToBToken returns bTokenTotalSupply * nativeTokenAmount / netAmount.
NewGenesisState returns new GenesisState instance.
No description provided by the author
NewMsgLiquidStake creates a new MsgLiquidStake.
NewMsgLiquidUnstake creates a new MsgLiquidUnstake.
No description provided by the author
ParamKeyTable returns the parameter key table.
RegisterInterfaces registers the x/liquidstaking interfaces types with the interface registry.
RegisterLegacyAminoCodec registers the necessary x/liquidstaking interfaces and concrete types on the provided LegacyAmino codec.
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
unmarshal a liquid validator from a store value.
ValidateGenesis validates GenesisState.

# Constants

Event types for the liquidstaking module.
Event types for the liquidstaking module.
Event types for the liquidstaking module.
Event types for the liquidstaking module.
Event types for the liquidstaking module.
Event types for the liquidstaking module.
Event types for the liquidstaking module.
Event types for the liquidstaking module.
Event types for the liquidstaking module.
Event types for the liquidstaking module.
Event types for the liquidstaking module.
Event types for the liquidstaking module.
Event types for the liquidstaking module.
Event types for the liquidstaking module.
Event types for the liquidstaking module.
Event types for the liquidstaking module.
Event types for the liquidstaking module.
ModuleName is the name of the liquidstaking module.
QuerierRoute is the querier route for the liquidstaking module.
RouterKey is the message router key for the liquidstaking module.
StoreKey is the default store key for the liquidstaking module.
Message types for the liquidstaking module.
Message types for the liquidstaking module.
VALIDATOR_STATUS_ACTIVE defines the active, valid status.
VALIDATOR_STATUS_INACTIVE defines the inactive, invalid status.
VALIDATOR_STATUS_UNSPECIFIED defines the unspecified invalid status.

# Variables

Parameter store keys.
DefaultMinLiquidStakingAmount is the default minimum liquid staking amount.
"0.001000000000000000".
Sentinel errors for the liquidstaking module.
Sentinel errors for the liquidstaking 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
Sentinel errors for the liquidstaking module.
Sentinel errors for the liquidstaking module.
Sentinel errors for the liquidstaking module.
Sentinel errors for the liquidstaking 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
Sentinel errors for the liquidstaking module.
Sentinel errors for the liquidstaking module.
Sentinel errors for the liquidstaking module.
Sentinel errors for the liquidstaking module.
Sentinel errors for the liquidstaking module.
Sentinel errors for the liquidstaking 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
Parameter store keys.
Parameter store keys.
Parameter store keys.
Parameter store keys.
LiquidStakingProxyAcc is a proxy reserve account for delegation and undelegation.
prefix for each key to a liquid validator.
ModuleCdc references the global x/liquidstaking module codec.
"0.001000000000000000".
"0.001000000000000000".
No description provided by the author
No description provided by the author

# Structs

GenesisState defines the liquidstaking module's genesis state.
LiquidValidator defines a Validator that can be the target of LiquidStaking and LiquidUnstaking, Active, Weight, etc.
LiquidValidatorState is type LiquidValidator with state added to return to query results.
MsgLiquidStake defines a SDK message for performing a liquid stake of coins from a delegator to whitelisted validators.
MsgLiquidStakeResponse defines the Msg/LiquidStake response type.
MsgLiquidUnstake defines a SDK message for performing an undelegation of liquid staking from a delegate.
MsgLiquidUnstakeResponse defines the Msg/LiquidUnstake response type.
NetAmountState is type for net amount raw data and mint rate, This is a value that depends on the several module state every time, so it is used only for calculation and query and is not stored in kv.
Params defines the set of params for the liquidstaking module.
QueryLiquidValidatorsRequest is the request type for the Query/LiquidValidators RPC method.
QueryLiquidValidatorsResponse is the response type for the Query/LiquidValidators RPC method.
QueryParamsRequest is the request type for the Query/Params RPC method.
QueryParamsResponse is the response type for the Query/Params RPC method.
QueryStatesRequest is the request type for the Query/States RPC method.
QueryStatesResponse is the response type for the Query/States RPC method.
QueryVotingPowerRequest is the request type for the Query/States RPC method.
QueryVotingPowerResponse is the response type for the Query/States RPC method.
No description provided by the author
UnimplementedMsgServer can be embedded to have forward compatible implementations.
UnimplementedQueryServer can be embedded to have forward compatible implementations.
VotingPower is type for current voting power of the voter including staking module's voting power and liquid staking module's voting power, It depends on the amount of delegation of staking module, the bonded state of the delegated validator, the value of btoken(liquid_bond_denom), and the pool coin and farming position containing btoken..
WhitelistedValidator consists of the validator operator address and the target weight, which is a value for calculating the real weight to be derived according to the active status.

# Interfaces

AccountKeeper defines the expected account keeper.
BankKeeper defines the expected bank send keeper.
DistrKeeper expected distribution keeper (noalias).
FarmingKeeper expected farming keeper (noalias).
GovKeeper expected gov keeper (noalias).
Liquidity expected liquidity keeper (noalias).
MsgClient is the client API for Msg service.
MsgServer is the server API for Msg service.
QueryClient is the client API for Query service.
QueryServer is the server API for Query service.
SlashingKeeper expected slashing keeper (noalias).
StakingHooks event hooks for staking validator object (noalias).
StakingKeeper expected staking keeper (noalias).

# Type aliases

No description provided by the author
LiquidValidators is a collection of LiquidValidator.
No description provided by the author
ValidatorStatus enumerates the status of a liquid validator.
No description provided by the author