types

package
v4.0.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	// ModuleName defines the module name
	ModuleName = "liquidstake"

	// RouterKey is the message router key for the liquidstake module
	RouterKey = ModuleName

	// StoreKey is the default store key for the liquidstake module
	StoreKey = ModuleName

	// Epoch identifiers
	// TODO: comment out 2min it is for local testing
	AutocompoundEpoch = "2min"
	RebalanceEpoch    = "2min"
)
View Source
const MsgTypeLiquidStake = "liquid_stake"

-------------------------- LIQUID STAKE --------------------------

View Source
const MsgTypeLiquidUnstake = "liquid_unstake"

-------------------------- LIQUID UNSTAKE --------------------------

View Source
const MsgTypeSetModulePaused = "set_module_paused"

-------------------------- SET MODULE PAUSED --------------------------

View Source
const MsgTypeUpdateParams = "update_params"

-------------------------- UPDATE PARAMS --------------------------

View Source
const MsgTypeUpdateWeightedRewardsReceivers = "update_weighted_rewards_receivers"

-------------------------- UPDATE WEIGHTED REWARDS RECEIVERS --------------------------

View Source
const MsgTypeUpdateWhitelistedValidators = "update_whitelisted_validators"

-------------------------- UPDATE WHITELISTED VALIDATORS --------------------------

Variables

View Source
var (
	ErrActiveLiquidValidatorsNotExists              = errors.Register(ModuleName, 1, "active liquid validators not exists")
	ErrInvalidBondDenom                             = errors.Register(ModuleName, 2, "invalid bond denom")
	ErrInvalidLiquidBondDenom                       = errors.Register(ModuleName, 3, "invalid liquid bond denom")
	ErrLessThanMinLiquidStakeAmount                 = errors.Register(ModuleName, 4, "staking amount should be over params.min_liquid_stake_amount")
	ErrInvalidStkIXOSupply                          = errors.Register(ModuleName, 5, "invalid liquid bond denom supply")
	ErrInvalidActiveLiquidValidators                = errors.Register(ModuleName, 6, "invalid active liquid validators")
	ErrLiquidValidatorsNotExists                    = errors.Register(ModuleName, 7, "liquid validators not exists")
	ErrInsufficientProxyAccBalance                  = errors.Register(ModuleName, 8, "insufficient liquid tokens or balance of proxy account, need to wait for new liquid validator to be added or unbonding of proxy account to be completed")
	ErrTooSmallLiquidStakeAmount                    = errors.Register(ModuleName, 9, "liquid stake amount is too small, the result becomes zero")
	ErrTooSmallLiquidUnstakingAmount                = errors.Register(ModuleName, 10, "liquid unstaking amount is too small, the result becomes zero")
	ErrLSMTokenizeFailed                            = errors.Register(ModuleName, 11, "LSM tokenization failed")
	ErrLSMRedeemFailed                              = errors.Register(ModuleName, 12, "LSM redemption failed")
	ErrWhitelistedValidatorsList                    = errors.Register(ModuleName, 13, "whitelisted validators list incorrect")
	ErrActiveLiquidValidatorsWeightQuorumNotReached = errors.Register(ModuleName, 14, "active liquid validators weight quorum not reached")
	ErrModulePaused                                 = errors.Register(ModuleName, 15, "module functions have been paused")
	ErrDelegationFailed                             = errors.Register(ModuleName, 16, "delegation failed")
	ErrInvalidResponse                              = errors.Register(ModuleName, 17, "invalid response")
	ErrUnstakeFailed                                = errors.Register(ModuleName, 18, "Unstaking failed")
	ErrRedelegateFailed                             = errors.Register(ModuleName, 19, "Redelegate failed")
	ErrRatioMoreThanOne                             = errors.Register(ModuleName, 20, "ratio should be less than or equal to 1")
)

Sentinel errors for the liquidstake module.

View Source
var (
	ErrInvalidLengthEvent        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEvent          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupEvent = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ParamsKey = []byte{0x01}
	// LiquidValidatorsKey defines prefix for each key to a liquid validator
	LiquidValidatorsKey = []byte{0x02}
)
View Source
var (
	ErrInvalidLengthLiquidstake        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowLiquidstake          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupLiquidstake = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	DefaultLiquidBondDenom = "uzero"

	// DefaultUnstakeFeeRate is the default Unstake Fee Rate.
	DefaultUnstakeFeeRate = math.LegacyMustNewDecFromStr("0.0")

	// DefaultAutocompoundFeeRate is the default fee rate for auto redelegating the stake rewards.
	DefaultAutocompoundFeeRate = math.LegacyMustNewDecFromStr("0.0")

	// DefaultMinLiquidStakeAmount is the default minimum liquid stake amount.
	DefaultMinLiquidStakeAmount = math.NewInt(1000000)

	// TotalValidatorWeight specifies the target sum of validator weights in the whitelist.
	TotalValidatorWeight = math.NewInt(10000)

	// ActiveLiquidValidatorsWeightQuorum is the minium required weight quorum for liquid validators set
	ActiveLiquidValidatorsWeightQuorum = math.LegacyNewDecWithPrec(3333, 4) // "0.333300000000000000"

	// RebalancingTrigger if the maximum difference and needed each redelegation amount exceeds it, asset rebalacing will be executed.
	RebalancingTrigger = math.LegacyNewDecWithPrec(1, 3) // "0.001000000000000000"

	// LiquidStakeProxyAcc is a proxy reserve account for delegation and undelegation.
	//
	// Important: derive this address using module.Address to obtain a 32-byte version distinguishable for LSM
	// authtypes.NewModuleAddress returns 20-byte addresses.
	LiquidStakeProxyAcc = sdk.AccAddress(address.Module(ModuleName, []byte("-LiquidStakeProxyAcc")))

	// DummyFeeAccountAcc is a dummy fee collection account that should be replaced via params.
	//
	// Note: it could be authtypes.NewModuleAddress, but made it derived as well, for consistency.
	DummyFeeAccountAcc = sdk.AccAddress(address.Module(ModuleName, []byte("-FeeAcc")))
)

Parameter store keys

View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var ValidatorStatus_name = map[int32]string{
	0: "VALIDATOR_STATUS_UNSPECIFIED",
	1: "VALIDATOR_STATUS_ACTIVE",
	2: "VALIDATOR_STATUS_INACTIVE",
}
View Source
var ValidatorStatus_value = map[string]int32{
	"VALIDATOR_STATUS_UNSPECIFIED": 0,
	"VALIDATOR_STATUS_ACTIVE":      1,
	"VALIDATOR_STATUS_INACTIVE":    2,
}

Functions

func ActiveCondition

func ActiveCondition(validator stakingtypes.Validator, whitelisted, tombstoned bool) bool

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

func DeductFeeRate

func DeductFeeRate(input, feeRate math.LegacyDec) (feeDeductedOutput math.LegacyDec)

DeductFeeRate returns Input * (1-FeeRate) with truncations

func DivideByCurrentWeight

func DivideByCurrentWeight(lvs LiquidValidators, input math.LegacyDec, totalLiquidTokens math.Int, liquidTokenMap map[string]math.Int) (outputs []math.LegacyDec, crumb math.LegacyDec)

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.

func DivideByWeight

func DivideByWeight(avs ActiveLiquidValidators, input math.Int, whitelistedValsMap WhitelistedValsMap) (outputs []math.Int, crumb math.Int)

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.

func GetLiquidValidatorKey

func GetLiquidValidatorKey(operatorAddr sdk.ValAddress) []byte

GetLiquidValidatorKey creates the key for the liquid validator with address VALUE: liquidstake/LiquidValidator

func MustMarshalLiquidValidator

func MustMarshalLiquidValidator(cdc codec.BinaryCodec, val *LiquidValidator) []byte

func NativeTokenToStkIXO

func NativeTokenToStkIXO(nativeTokenAmount math.Int) (stkIXOAmount math.Int)

NativeTokenToStkIXO is always 1, 1 IXO = 1 ZERO, thus always return the input amount

func RegisterInterfaces

func RegisterInterfaces(registry types.InterfaceRegistry)

RegisterInterfaces registers the x/liquidstake interfaces types with the interface registry.

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

RegisterLegacyAminoCodec registers the necessary x/liquidstake interfaces and concrete types on the provided LegacyAmino codec. These types are used for Amino JSON serialization.

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterQueryHandlerClient

func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error

RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.

func RegisterQueryHandlerFromEndpoint

func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterQueryHandlerServer

func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error

RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func StkIXOToNativeToken

func StkIXOToNativeToken(stkIXOAmount, stkIXOTotalSupplyAmount math.Int, netAmount math.LegacyDec) (nativeTokenAmount math.LegacyDec)

StkIXOToNativeToken returns stkIXOAmount * netAmount / StkixoTotalSupply with truncations

func ValidateGenesis

func ValidateGenesis(data GenesisState) error

ValidateGenesis validates GenesisState.

Types

type AccountKeeper

type AccountKeeper interface {
	GetModuleAddress(moduleName string) sdk.AccAddress
	GetModuleAccount(ctx context.Context, moduleName string) sdk.ModuleAccountI
}

AccountKeeper defines the expected account keeper

type ActiveLiquidValidators

type ActiveLiquidValidators LiquidValidators

LiquidValidators is a collection of LiquidValidator

func (ActiveLiquidValidators) Len

func (avs ActiveLiquidValidators) Len() int

func (ActiveLiquidValidators) TotalActiveLiquidTokens

func (avs ActiveLiquidValidators) TotalActiveLiquidTokens(ctx sdk.Context, sk StakingKeeper, onlyBonded bool) (math.Int, map[string]math.Int)

func (ActiveLiquidValidators) TotalWeight

func (avs ActiveLiquidValidators) TotalWeight(whitelistedValsMap WhitelistedValsMap) math.Int

TotalWeight for active liquid validator

type AddLiquidValidatorEvent

type AddLiquidValidatorEvent struct {
	Validator string `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator,omitempty"`
}

LiquidRedelegateEvent is triggered when a liquid validator is added.

func (*AddLiquidValidatorEvent) Descriptor

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

func (*AddLiquidValidatorEvent) Marshal

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

func (*AddLiquidValidatorEvent) MarshalTo

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

func (*AddLiquidValidatorEvent) MarshalToSizedBuffer

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

func (*AddLiquidValidatorEvent) ProtoMessage

func (*AddLiquidValidatorEvent) ProtoMessage()

func (*AddLiquidValidatorEvent) Reset

func (m *AddLiquidValidatorEvent) Reset()

func (*AddLiquidValidatorEvent) Size

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

func (*AddLiquidValidatorEvent) String

func (m *AddLiquidValidatorEvent) String() string

func (*AddLiquidValidatorEvent) Unmarshal

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

func (*AddLiquidValidatorEvent) XXX_DiscardUnknown

func (m *AddLiquidValidatorEvent) XXX_DiscardUnknown()

func (*AddLiquidValidatorEvent) XXX_Marshal

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

func (*AddLiquidValidatorEvent) XXX_Merge

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

func (*AddLiquidValidatorEvent) XXX_Size

func (m *AddLiquidValidatorEvent) XXX_Size() int

func (*AddLiquidValidatorEvent) XXX_Unmarshal

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

type AutocompoundStakingRewardsEvent

type AutocompoundStakingRewardsEvent struct {
	Delegator             string `protobuf:"bytes,1,opt,name=delegator,proto3" json:"delegator,omitempty"`
	TotalAmount           string `protobuf:"bytes,2,opt,name=total_amount,json=totalAmount,proto3" json:"total_amount,omitempty"`
	FeeAmount             string `protobuf:"bytes,3,opt,name=fee_amount,json=feeAmount,proto3" json:"fee_amount,omitempty"`
	RedelegateAmount      string `protobuf:"bytes,4,opt,name=redelegate_amount,json=redelegateAmount,proto3" json:"redelegate_amount,omitempty"`
	WeightedRewardsAmount string `` /* 126-byte string literal not displayed */
}

AutocompoundEvent is triggered after a epoch is triggered for autocompound.

func (*AutocompoundStakingRewardsEvent) Descriptor

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

func (*AutocompoundStakingRewardsEvent) Marshal

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

func (*AutocompoundStakingRewardsEvent) MarshalTo

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

func (*AutocompoundStakingRewardsEvent) MarshalToSizedBuffer

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

func (*AutocompoundStakingRewardsEvent) ProtoMessage

func (*AutocompoundStakingRewardsEvent) ProtoMessage()

func (*AutocompoundStakingRewardsEvent) Reset

func (*AutocompoundStakingRewardsEvent) Size

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

func (*AutocompoundStakingRewardsEvent) String

func (*AutocompoundStakingRewardsEvent) Unmarshal

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

func (*AutocompoundStakingRewardsEvent) XXX_DiscardUnknown

func (m *AutocompoundStakingRewardsEvent) XXX_DiscardUnknown()

func (*AutocompoundStakingRewardsEvent) XXX_Marshal

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

func (*AutocompoundStakingRewardsEvent) XXX_Merge

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

func (*AutocompoundStakingRewardsEvent) XXX_Size

func (m *AutocompoundStakingRewardsEvent) XXX_Size() int

func (*AutocompoundStakingRewardsEvent) XXX_Unmarshal

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

type BankKeeper

type BankKeeper interface {
	SendCoins(ctx context.Context, fromAddr, toAddr sdk.AccAddress, amt sdk.Coins) error
	GetSupply(ctx context.Context, denom string) sdk.Coin
	SendCoinsFromModuleToAccount(ctx context.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error
	SendCoinsFromAccountToModule(ctx context.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error
	BurnCoins(ctx context.Context, moduleName string, amt sdk.Coins) error
	MintCoins(ctx context.Context, moduleName string, amt sdk.Coins) error
	SpendableCoins(ctx context.Context, addr sdk.AccAddress) sdk.Coins
}

BankKeeper defines the expected bank send keeper

type DistrKeeper

type DistrKeeper interface {
	IncrementValidatorPeriod(ctx context.Context, val stakingtypes.ValidatorI) (uint64, error)
	CalculateDelegationRewards(
		ctx context.Context, val stakingtypes.ValidatorI, del stakingtypes.DelegationI, endingPeriod uint64,
	) (rewards sdk.DecCoins, err error)
}

DistrKeeper expected distribution keeper (noalias)

type GenesisState

type GenesisState struct {
	Params           Params            `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	LiquidValidators []LiquidValidator `protobuf:"bytes,2,rep,name=liquid_validators,json=liquidValidators,proto3" json:"liquid_validators"`
}

GenesisState defines the liquidstake module's genesis state.

func DefaultGenesisState

func DefaultGenesisState() *GenesisState

DefaultGenesisState returns the default genesis state.

func NewGenesisState

func NewGenesisState(params Params, liquidValidators []LiquidValidator) *GenesisState

NewGenesisState returns new GenesisState instance.

func (*GenesisState) Descriptor

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

func (*GenesisState) Marshal

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

func (*GenesisState) MarshalTo

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

func (*GenesisState) MarshalToSizedBuffer

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

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

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

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

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

func (*GenesisState) XXX_DiscardUnknown

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal

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

func (*GenesisState) XXX_Merge

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

func (*GenesisState) XXX_Size

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal

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

type LiquidStakeEvent

type LiquidStakeEvent struct {
	Delegator          string `protobuf:"bytes,1,opt,name=delegator,proto3" json:"delegator,omitempty"`
	LiquidAmount       string `protobuf:"bytes,2,opt,name=liquid_amount,json=liquidAmount,proto3" json:"liquid_amount,omitempty"`
	StkIxoMintedAmount string `protobuf:"bytes,3,opt,name=stk_ixo_minted_amount,json=stkIxoMintedAmount,proto3" json:"stk_ixo_minted_amount,omitempty"`
}

LiquidStakeEvent is triggered when a liquid stake is performed.

func (*LiquidStakeEvent) Descriptor

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

func (*LiquidStakeEvent) Marshal

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

func (*LiquidStakeEvent) MarshalTo

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

func (*LiquidStakeEvent) MarshalToSizedBuffer

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

func (*LiquidStakeEvent) ProtoMessage

func (*LiquidStakeEvent) ProtoMessage()

func (*LiquidStakeEvent) Reset

func (m *LiquidStakeEvent) Reset()

func (*LiquidStakeEvent) Size

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

func (*LiquidStakeEvent) String

func (m *LiquidStakeEvent) String() string

func (*LiquidStakeEvent) Unmarshal

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

func (*LiquidStakeEvent) XXX_DiscardUnknown

func (m *LiquidStakeEvent) XXX_DiscardUnknown()

func (*LiquidStakeEvent) XXX_Marshal

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

func (*LiquidStakeEvent) XXX_Merge

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

func (*LiquidStakeEvent) XXX_Size

func (m *LiquidStakeEvent) XXX_Size() int

func (*LiquidStakeEvent) XXX_Unmarshal

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

type LiquidStakeParamsUpdatedEvent

type LiquidStakeParamsUpdatedEvent struct {
	Params    *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
	Authority string  `protobuf:"bytes,2,opt,name=authority,proto3" json:"authority,omitempty"`
}

LiquidStakeParamsUpdatedEvent is triggered when a the Params is updated.

func (*LiquidStakeParamsUpdatedEvent) Descriptor

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

func (*LiquidStakeParamsUpdatedEvent) Marshal

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

func (*LiquidStakeParamsUpdatedEvent) MarshalTo

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

func (*LiquidStakeParamsUpdatedEvent) MarshalToSizedBuffer

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

func (*LiquidStakeParamsUpdatedEvent) ProtoMessage

func (*LiquidStakeParamsUpdatedEvent) ProtoMessage()

func (*LiquidStakeParamsUpdatedEvent) Reset

func (m *LiquidStakeParamsUpdatedEvent) Reset()

func (*LiquidStakeParamsUpdatedEvent) Size

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

func (*LiquidStakeParamsUpdatedEvent) String

func (*LiquidStakeParamsUpdatedEvent) Unmarshal

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

func (*LiquidStakeParamsUpdatedEvent) XXX_DiscardUnknown

func (m *LiquidStakeParamsUpdatedEvent) XXX_DiscardUnknown()

func (*LiquidStakeParamsUpdatedEvent) XXX_Marshal

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

func (*LiquidStakeParamsUpdatedEvent) XXX_Merge

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

func (*LiquidStakeParamsUpdatedEvent) XXX_Size

func (m *LiquidStakeParamsUpdatedEvent) XXX_Size() int

func (*LiquidStakeParamsUpdatedEvent) XXX_Unmarshal

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

type LiquidUnstakeEvent

type LiquidUnstakeEvent struct {
	Delegator       string `protobuf:"bytes,1,opt,name=delegator,proto3" json:"delegator,omitempty"`
	UnstakeAmount   string `protobuf:"bytes,2,opt,name=unstake_amount,json=unstakeAmount,proto3" json:"unstake_amount,omitempty"`
	UnbondingAmount string `protobuf:"bytes,3,opt,name=unbonding_amount,json=unbondingAmount,proto3" json:"unbonding_amount,omitempty"`
	UnbondedAmount  string `protobuf:"bytes,4,opt,name=unbonded_amount,json=unbondedAmount,proto3" json:"unbonded_amount,omitempty"`
	CompletionTime  string `protobuf:"bytes,5,opt,name=completion_time,json=completionTime,proto3" json:"completion_time,omitempty"`
}

LiquidUnstakeEvent is triggered when a liquid unstake is performed.

func (*LiquidUnstakeEvent) Descriptor

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

func (*LiquidUnstakeEvent) Marshal

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

func (*LiquidUnstakeEvent) MarshalTo

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

func (*LiquidUnstakeEvent) MarshalToSizedBuffer

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

func (*LiquidUnstakeEvent) ProtoMessage

func (*LiquidUnstakeEvent) ProtoMessage()

func (*LiquidUnstakeEvent) Reset

func (m *LiquidUnstakeEvent) Reset()

func (*LiquidUnstakeEvent) Size

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

func (*LiquidUnstakeEvent) String

func (m *LiquidUnstakeEvent) String() string

func (*LiquidUnstakeEvent) Unmarshal

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

func (*LiquidUnstakeEvent) XXX_DiscardUnknown

func (m *LiquidUnstakeEvent) XXX_DiscardUnknown()

func (*LiquidUnstakeEvent) XXX_Marshal

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

func (*LiquidUnstakeEvent) XXX_Merge

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

func (*LiquidUnstakeEvent) XXX_Size

func (m *LiquidUnstakeEvent) XXX_Size() int

func (*LiquidUnstakeEvent) XXX_Unmarshal

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

type LiquidValidator

type LiquidValidator struct {
	// operator_address defines the address of the validator's operator; bech
	// encoded in JSON.
	OperatorAddress string `protobuf:"bytes,1,opt,name=operator_address,json=operatorAddress,proto3" json:"operator_address,omitempty"`
}

LiquidValidator defines a Validator that can be the target of LiquidStaking and LiquidUnstaking, Active, Weight, etc. fields are derived as functions to deal with by maintaining consistency with the state of the staking module.

func MustUnmarshalLiquidValidator

func MustUnmarshalLiquidValidator(cdc codec.BinaryCodec, value []byte) LiquidValidator

must unmarshal a liquid validator from a store value

func UnmarshalLiquidValidator

func UnmarshalLiquidValidator(cdc codec.BinaryCodec, value []byte) (val LiquidValidator, err error)

unmarshal a liquid validator from a store value

func (*LiquidValidator) Descriptor

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

func (LiquidValidator) GetDelShares

func (v LiquidValidator) GetDelShares(ctx sdk.Context, sk StakingKeeper) math.LegacyDec

func (LiquidValidator) GetLiquidTokens

func (v LiquidValidator) GetLiquidTokens(ctx sdk.Context, sk StakingKeeper, onlyBonded bool) math.Int

func (LiquidValidator) GetOperator

func (v LiquidValidator) GetOperator() sdk.ValAddress

func (LiquidValidator) GetStatus

func (v LiquidValidator) GetStatus(activeCondition bool) ValidatorStatus

func (LiquidValidator) GetWeight

func (v LiquidValidator) GetWeight(whitelistedValsMap WhitelistedValsMap, active bool) math.Int

GetWeight returns the weight of the liquid validator, based on whether it is active or not and returne weight defined in the whitelisted validator

func (*LiquidValidator) Marshal

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

func (*LiquidValidator) MarshalTo

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

func (*LiquidValidator) MarshalToSizedBuffer

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

func (*LiquidValidator) ProtoMessage

func (*LiquidValidator) ProtoMessage()

func (*LiquidValidator) Reset

func (m *LiquidValidator) Reset()

func (*LiquidValidator) Size

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

func (*LiquidValidator) String

func (m *LiquidValidator) String() string

func (*LiquidValidator) Unmarshal

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

func (LiquidValidator) Validate

func (v LiquidValidator) Validate() error

Validate validates LiquidValidator.

func (*LiquidValidator) XXX_DiscardUnknown

func (m *LiquidValidator) XXX_DiscardUnknown()

func (*LiquidValidator) XXX_Marshal

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

func (*LiquidValidator) XXX_Merge

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

func (*LiquidValidator) XXX_Size

func (m *LiquidValidator) XXX_Size() int

func (*LiquidValidator) XXX_Unmarshal

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

type LiquidValidatorState

type LiquidValidatorState struct {
	// operator_address defines the address of the validator's operator; bech
	// encoded in JSON.
	OperatorAddress string `protobuf:"bytes,1,opt,name=operator_address,json=operatorAddress,proto3" json:"operator_address,omitempty"`
	// weight specifies the weight for liquid staking, unstaking amount
	Weight cosmossdk_io_math.Int `protobuf:"bytes,2,opt,name=weight,proto3,customtype=cosmossdk.io/math.Int" json:"weight"`
	// status is the liquid validator status
	Status ValidatorStatus `protobuf:"varint,3,opt,name=status,proto3,enum=ixo.liquidstake.v1beta1.ValidatorStatus" json:"status,omitempty"`
	// del_shares define the delegation shares of the validator
	DelShares cosmossdk_io_math.LegacyDec `protobuf:"bytes,4,opt,name=del_shares,json=delShares,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"del_shares"`
	// liquid_tokens define the token amount worth of delegation shares of the
	// validator (slashing applied amount)
	LiquidTokens cosmossdk_io_math.Int `protobuf:"bytes,5,opt,name=liquid_tokens,json=liquidTokens,proto3,customtype=cosmossdk.io/math.Int" json:"liquid_tokens"`
}

LiquidValidatorState is type LiquidValidator with state added to return to query results.

func (*LiquidValidatorState) Descriptor

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

func (*LiquidValidatorState) Marshal

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

func (*LiquidValidatorState) MarshalTo

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

func (*LiquidValidatorState) MarshalToSizedBuffer

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

func (*LiquidValidatorState) ProtoMessage

func (*LiquidValidatorState) ProtoMessage()

func (*LiquidValidatorState) Reset

func (m *LiquidValidatorState) Reset()

func (*LiquidValidatorState) Size

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

func (*LiquidValidatorState) String

func (m *LiquidValidatorState) String() string

func (*LiquidValidatorState) Unmarshal

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

func (*LiquidValidatorState) XXX_DiscardUnknown

func (m *LiquidValidatorState) XXX_DiscardUnknown()

func (*LiquidValidatorState) XXX_Marshal

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

func (*LiquidValidatorState) XXX_Merge

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

func (*LiquidValidatorState) XXX_Size

func (m *LiquidValidatorState) XXX_Size() int

func (*LiquidValidatorState) XXX_Unmarshal

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

type LiquidValidatorStates

type LiquidValidatorStates []LiquidValidatorState

type LiquidValidators

type LiquidValidators []LiquidValidator

LiquidValidators is a collection of LiquidValidator

func (LiquidValidators) Len

func (vs LiquidValidators) Len() int

func (LiquidValidators) Map

func (vs LiquidValidators) Map() map[string]struct{}

func (LiquidValidators) MinMaxGap

func (vs LiquidValidators) MinMaxGap(targetMap, liquidTokenMap map[string]math.Int) (minGapVal, maxGapVal LiquidValidator, amountNeeded math.Int, lastRedelegation bool)

MinMaxGap Return the list of LiquidValidator with the maximum gap and minimum gap from the target weight of LiquidValidators, respectively.

func (LiquidValidators) TotalLiquidTokens

func (vs LiquidValidators) TotalLiquidTokens(ctx sdk.Context, sk StakingKeeper, onlyBonded bool) (math.Int, map[string]math.Int)

Gets the total liquid tokens of the liquid validators, as well as a map of operator address to liquid token amount

type MsgClient

type MsgClient interface {
	// LiquidStake defines a method for performing a delegation of coins
	// from a delegator to whitelisted validators.
	LiquidStake(ctx context.Context, in *MsgLiquidStake, opts ...grpc.CallOption) (*MsgLiquidStakeResponse, error)
	// LiquidUnstake defines a method for performing an undelegation of liquid
	// staking from a delegate.
	LiquidUnstake(ctx context.Context, in *MsgLiquidUnstake, opts ...grpc.CallOption) (*MsgLiquidUnstakeResponse, error)
	// UpdateParams defines a method to update the module params.
	UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error)
	// UpdateWhitelistedValidators defines a method to update the whitelisted
	// validators list.
	UpdateWhitelistedValidators(ctx context.Context, in *MsgUpdateWhitelistedValidators, opts ...grpc.CallOption) (*MsgUpdateWhitelistedValidatorsResponse, error)
	// UpdateWhitelistedValidators defines a method to update the whitelisted
	// validators list. Only the whitelist admin address can update this list.
	UpdateWeightedRewardsReceivers(ctx context.Context, in *MsgUpdateWeightedRewardsReceivers, opts ...grpc.CallOption) (*MsgUpdateWeightedRewardsReceiversResponse, error)
	// SetModulePaused  defines a method to update the module's pause status,
	// setting value of the safety flag in params.
	SetModulePaused(ctx context.Context, in *MsgSetModulePaused, opts ...grpc.CallOption) (*MsgSetModulePausedResponse, error)
}

MsgClient is the client API for Msg service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewMsgClient

func NewMsgClient(cc grpc1.ClientConn) MsgClient

type MsgLiquidStake

type MsgLiquidStake struct {
	DelegatorAddress string     `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
	Amount           types.Coin `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount"`
}

MsgLiquidStake defines a SDK message for performing a liquid stake of coins from a delegator to whitelisted validators.

func NewMsgLiquidStake

func NewMsgLiquidStake(
	liquidStaker sdk.AccAddress,
	amount sdk.Coin,
) *MsgLiquidStake

NewMsgLiquidStake creates a new MsgLiquidStake.

func (*MsgLiquidStake) Descriptor

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

func (*MsgLiquidStake) GetDelegator

func (m *MsgLiquidStake) GetDelegator() sdk.AccAddress

func (*MsgLiquidStake) Marshal

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

func (*MsgLiquidStake) MarshalTo

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

func (*MsgLiquidStake) MarshalToSizedBuffer

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

func (*MsgLiquidStake) ProtoMessage

func (*MsgLiquidStake) ProtoMessage()

func (*MsgLiquidStake) Reset

func (m *MsgLiquidStake) Reset()

func (*MsgLiquidStake) Route

func (m *MsgLiquidStake) Route() string

func (*MsgLiquidStake) Size

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

func (*MsgLiquidStake) String

func (m *MsgLiquidStake) String() string

func (*MsgLiquidStake) Type

func (m *MsgLiquidStake) Type() string

func (*MsgLiquidStake) Unmarshal

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

func (*MsgLiquidStake) ValidateBasic

func (m *MsgLiquidStake) ValidateBasic() error

func (*MsgLiquidStake) XXX_DiscardUnknown

func (m *MsgLiquidStake) XXX_DiscardUnknown()

func (*MsgLiquidStake) XXX_Marshal

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

func (*MsgLiquidStake) XXX_Merge

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

func (*MsgLiquidStake) XXX_Size

func (m *MsgLiquidStake) XXX_Size() int

func (*MsgLiquidStake) XXX_Unmarshal

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

type MsgLiquidStakeResponse

type MsgLiquidStakeResponse struct {
}

MsgLiquidStakeResponse defines the MsgLiquidStake response type.

func (*MsgLiquidStakeResponse) Descriptor

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

func (*MsgLiquidStakeResponse) Marshal

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

func (*MsgLiquidStakeResponse) MarshalTo

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

func (*MsgLiquidStakeResponse) MarshalToSizedBuffer

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

func (*MsgLiquidStakeResponse) ProtoMessage

func (*MsgLiquidStakeResponse) ProtoMessage()

func (*MsgLiquidStakeResponse) Reset

func (m *MsgLiquidStakeResponse) Reset()

func (*MsgLiquidStakeResponse) Size

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

func (*MsgLiquidStakeResponse) String

func (m *MsgLiquidStakeResponse) String() string

func (*MsgLiquidStakeResponse) Unmarshal

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

func (*MsgLiquidStakeResponse) XXX_DiscardUnknown

func (m *MsgLiquidStakeResponse) XXX_DiscardUnknown()

func (*MsgLiquidStakeResponse) XXX_Marshal

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

func (*MsgLiquidStakeResponse) XXX_Merge

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

func (*MsgLiquidStakeResponse) XXX_Size

func (m *MsgLiquidStakeResponse) XXX_Size() int

func (*MsgLiquidStakeResponse) XXX_Unmarshal

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

type MsgLiquidUnstake

type MsgLiquidUnstake struct {
	DelegatorAddress string     `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
	Amount           types.Coin `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount"`
}

MsgLiquidUnstake defines a SDK message for performing an undelegation of liquid staking from a delegate.

func NewMsgLiquidUnstake

func NewMsgLiquidUnstake(
	liquidStaker sdk.AccAddress,
	amount sdk.Coin,
) *MsgLiquidUnstake

NewMsgLiquidUnstake creates a new MsgLiquidUnstake.

func (*MsgLiquidUnstake) Descriptor

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

func (*MsgLiquidUnstake) GetDelegator

func (m *MsgLiquidUnstake) GetDelegator() sdk.AccAddress

func (*MsgLiquidUnstake) Marshal

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

func (*MsgLiquidUnstake) MarshalTo

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

func (*MsgLiquidUnstake) MarshalToSizedBuffer

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

func (*MsgLiquidUnstake) ProtoMessage

func (*MsgLiquidUnstake) ProtoMessage()

func (*MsgLiquidUnstake) Reset

func (m *MsgLiquidUnstake) Reset()

func (*MsgLiquidUnstake) Route

func (m *MsgLiquidUnstake) Route() string

func (*MsgLiquidUnstake) Size

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

func (*MsgLiquidUnstake) String

func (m *MsgLiquidUnstake) String() string

func (*MsgLiquidUnstake) Type

func (m *MsgLiquidUnstake) Type() string

func (*MsgLiquidUnstake) Unmarshal

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

func (*MsgLiquidUnstake) ValidateBasic

func (m *MsgLiquidUnstake) ValidateBasic() error

func (*MsgLiquidUnstake) XXX_DiscardUnknown

func (m *MsgLiquidUnstake) XXX_DiscardUnknown()

func (*MsgLiquidUnstake) XXX_Marshal

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

func (*MsgLiquidUnstake) XXX_Merge

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

func (*MsgLiquidUnstake) XXX_Size

func (m *MsgLiquidUnstake) XXX_Size() int

func (*MsgLiquidUnstake) XXX_Unmarshal

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

type MsgLiquidUnstakeResponse

type MsgLiquidUnstakeResponse struct {
	CompletionTime time.Time `protobuf:"bytes,1,opt,name=completion_time,json=completionTime,proto3,stdtime" json:"completion_time"`
}

MsgLiquidUnstakeResponse defines the MsgLiquidUnstake response type.

func (*MsgLiquidUnstakeResponse) Descriptor

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

func (*MsgLiquidUnstakeResponse) GetCompletionTime

func (m *MsgLiquidUnstakeResponse) GetCompletionTime() time.Time

func (*MsgLiquidUnstakeResponse) Marshal

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

func (*MsgLiquidUnstakeResponse) MarshalTo

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

func (*MsgLiquidUnstakeResponse) MarshalToSizedBuffer

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

func (*MsgLiquidUnstakeResponse) ProtoMessage

func (*MsgLiquidUnstakeResponse) ProtoMessage()

func (*MsgLiquidUnstakeResponse) Reset

func (m *MsgLiquidUnstakeResponse) Reset()

func (*MsgLiquidUnstakeResponse) Size

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

func (*MsgLiquidUnstakeResponse) String

func (m *MsgLiquidUnstakeResponse) String() string

func (*MsgLiquidUnstakeResponse) Unmarshal

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

func (*MsgLiquidUnstakeResponse) XXX_DiscardUnknown

func (m *MsgLiquidUnstakeResponse) XXX_DiscardUnknown()

func (*MsgLiquidUnstakeResponse) XXX_Marshal

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

func (*MsgLiquidUnstakeResponse) XXX_Merge

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

func (*MsgLiquidUnstakeResponse) XXX_Size

func (m *MsgLiquidUnstakeResponse) XXX_Size() int

func (*MsgLiquidUnstakeResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// LiquidStake defines a method for performing a delegation of coins
	// from a delegator to whitelisted validators.
	LiquidStake(context.Context, *MsgLiquidStake) (*MsgLiquidStakeResponse, error)
	// LiquidUnstake defines a method for performing an undelegation of liquid
	// staking from a delegate.
	LiquidUnstake(context.Context, *MsgLiquidUnstake) (*MsgLiquidUnstakeResponse, error)
	// UpdateParams defines a method to update the module params.
	UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
	// UpdateWhitelistedValidators defines a method to update the whitelisted
	// validators list.
	UpdateWhitelistedValidators(context.Context, *MsgUpdateWhitelistedValidators) (*MsgUpdateWhitelistedValidatorsResponse, error)
	// UpdateWhitelistedValidators defines a method to update the whitelisted
	// validators list. Only the whitelist admin address can update this list.
	UpdateWeightedRewardsReceivers(context.Context, *MsgUpdateWeightedRewardsReceivers) (*MsgUpdateWeightedRewardsReceiversResponse, error)
	// SetModulePaused  defines a method to update the module's pause status,
	// setting value of the safety flag in params.
	SetModulePaused(context.Context, *MsgSetModulePaused) (*MsgSetModulePausedResponse, error)
}

MsgServer is the server API for Msg service.

type MsgSetModulePaused

type MsgSetModulePaused struct {
	// Authority is the address that is allowed to update module's paused state,
	// defined as admin address in params (WhitelistAdminAddress).
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	// IsPaused represents the target state of the paused flag.
	IsPaused bool `protobuf:"varint,2,opt,name=is_paused,json=isPaused,proto3" json:"is_paused,omitempty"`
}

func NewMsgSetModulePaused

func NewMsgSetModulePaused(authority sdk.AccAddress, isPaused bool) *MsgSetModulePaused

NewMsgSetModulePaused creates a new MsgSetModulePaused.

func (*MsgSetModulePaused) Descriptor

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

func (*MsgSetModulePaused) Marshal

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

func (*MsgSetModulePaused) MarshalTo

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

func (*MsgSetModulePaused) MarshalToSizedBuffer

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

func (*MsgSetModulePaused) ProtoMessage

func (*MsgSetModulePaused) ProtoMessage()

func (*MsgSetModulePaused) Reset

func (m *MsgSetModulePaused) Reset()

func (*MsgSetModulePaused) Route

func (m *MsgSetModulePaused) Route() string

func (*MsgSetModulePaused) Size

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

func (*MsgSetModulePaused) String

func (m *MsgSetModulePaused) String() string

func (*MsgSetModulePaused) Type

func (m *MsgSetModulePaused) Type() string

Type should return the action

func (*MsgSetModulePaused) Unmarshal

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

func (*MsgSetModulePaused) ValidateBasic

func (m *MsgSetModulePaused) ValidateBasic() error

func (*MsgSetModulePaused) XXX_DiscardUnknown

func (m *MsgSetModulePaused) XXX_DiscardUnknown()

func (*MsgSetModulePaused) XXX_Marshal

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

func (*MsgSetModulePaused) XXX_Merge

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

func (*MsgSetModulePaused) XXX_Size

func (m *MsgSetModulePaused) XXX_Size() int

func (*MsgSetModulePaused) XXX_Unmarshal

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

type MsgSetModulePausedResponse

type MsgSetModulePausedResponse struct {
}

MsgSetModulePausedResponse defines the response structure for executing a

func (*MsgSetModulePausedResponse) Descriptor

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

func (*MsgSetModulePausedResponse) Marshal

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

func (*MsgSetModulePausedResponse) MarshalTo

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

func (*MsgSetModulePausedResponse) MarshalToSizedBuffer

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

func (*MsgSetModulePausedResponse) ProtoMessage

func (*MsgSetModulePausedResponse) ProtoMessage()

func (*MsgSetModulePausedResponse) Reset

func (m *MsgSetModulePausedResponse) Reset()

func (*MsgSetModulePausedResponse) Size

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

func (*MsgSetModulePausedResponse) String

func (m *MsgSetModulePausedResponse) String() string

func (*MsgSetModulePausedResponse) Unmarshal

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

func (*MsgSetModulePausedResponse) XXX_DiscardUnknown

func (m *MsgSetModulePausedResponse) XXX_DiscardUnknown()

func (*MsgSetModulePausedResponse) XXX_Marshal

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

func (*MsgSetModulePausedResponse) XXX_Merge

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

func (*MsgSetModulePausedResponse) XXX_Size

func (m *MsgSetModulePausedResponse) XXX_Size() int

func (*MsgSetModulePausedResponse) XXX_Unmarshal

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

type MsgUpdateParams

type MsgUpdateParams struct {
	// authority is the address that controls the module (defaults to x/gov unless
	// overwritten).
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	// params defines the parameters to update.
	// NOTE: denom and whitelisted_validators and weighted_rewards_receivers are
	// not updated.
	Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"`
}

func NewMsgUpdateParams

func NewMsgUpdateParams(authority sdk.AccAddress, amount Params) *MsgUpdateParams

NewMsgUpdateParams creates a new MsgUpdateParams.

func (*MsgUpdateParams) Descriptor

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

func (*MsgUpdateParams) Marshal

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

func (*MsgUpdateParams) MarshalTo

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

func (*MsgUpdateParams) MarshalToSizedBuffer

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

func (*MsgUpdateParams) ProtoMessage

func (*MsgUpdateParams) ProtoMessage()

func (*MsgUpdateParams) Reset

func (m *MsgUpdateParams) Reset()

func (*MsgUpdateParams) Route

func (m *MsgUpdateParams) Route() string

func (*MsgUpdateParams) Size

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

func (*MsgUpdateParams) String

func (m *MsgUpdateParams) String() string

func (*MsgUpdateParams) Type

func (m *MsgUpdateParams) Type() string

Type should return the action

func (*MsgUpdateParams) Unmarshal

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

func (*MsgUpdateParams) ValidateBasic

func (m *MsgUpdateParams) ValidateBasic() error

func (*MsgUpdateParams) XXX_DiscardUnknown

func (m *MsgUpdateParams) XXX_DiscardUnknown()

func (*MsgUpdateParams) XXX_Marshal

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

func (*MsgUpdateParams) XXX_Merge

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

func (*MsgUpdateParams) XXX_Size

func (m *MsgUpdateParams) XXX_Size() int

func (*MsgUpdateParams) XXX_Unmarshal

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

type MsgUpdateParamsResponse

type MsgUpdateParamsResponse struct {
}

MsgUpdateParamsResponse defines the response structure for executing a

func (*MsgUpdateParamsResponse) Descriptor

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

func (*MsgUpdateParamsResponse) Marshal

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

func (*MsgUpdateParamsResponse) MarshalTo

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

func (*MsgUpdateParamsResponse) MarshalToSizedBuffer

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

func (*MsgUpdateParamsResponse) ProtoMessage

func (*MsgUpdateParamsResponse) ProtoMessage()

func (*MsgUpdateParamsResponse) Reset

func (m *MsgUpdateParamsResponse) Reset()

func (*MsgUpdateParamsResponse) Size

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

func (*MsgUpdateParamsResponse) String

func (m *MsgUpdateParamsResponse) String() string

func (*MsgUpdateParamsResponse) Unmarshal

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

func (*MsgUpdateParamsResponse) XXX_DiscardUnknown

func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()

func (*MsgUpdateParamsResponse) XXX_Marshal

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

func (*MsgUpdateParamsResponse) XXX_Merge

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

func (*MsgUpdateParamsResponse) XXX_Size

func (m *MsgUpdateParamsResponse) XXX_Size() int

func (*MsgUpdateParamsResponse) XXX_Unmarshal

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

type MsgUpdateWeightedRewardsReceivers

type MsgUpdateWeightedRewardsReceivers struct {
	// Authority is the address that is allowed to update wieghted rewards
	// receivers, defined as admin address in params (WhitelistAdminAddress).
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	// WhitelistedValidators specifies the validators elected to become Active
	// Liquid Validators.
	WeightedRewardsReceivers []WeightedAddress `protobuf:"bytes,2,rep,name=weighted_rewards_receivers,json=weightedRewardsReceivers,proto3" json:"weighted_rewards_receivers"`
}

func NewMsgUpdateWeightedRewardsReceivers

func NewMsgUpdateWeightedRewardsReceivers(authority sdk.AccAddress, list []WeightedAddress) *MsgUpdateWeightedRewardsReceivers

NewMsgUpdateWeightedRewardsReceivers creates a new MsgUpdateWeightedRewardsReceivers.

func (*MsgUpdateWeightedRewardsReceivers) Descriptor

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

func (*MsgUpdateWeightedRewardsReceivers) Marshal

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

func (*MsgUpdateWeightedRewardsReceivers) MarshalTo

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

func (*MsgUpdateWeightedRewardsReceivers) MarshalToSizedBuffer

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

func (*MsgUpdateWeightedRewardsReceivers) ProtoMessage

func (*MsgUpdateWeightedRewardsReceivers) ProtoMessage()

func (*MsgUpdateWeightedRewardsReceivers) Reset

func (*MsgUpdateWeightedRewardsReceivers) Route

func (*MsgUpdateWeightedRewardsReceivers) Size

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

func (*MsgUpdateWeightedRewardsReceivers) String

func (*MsgUpdateWeightedRewardsReceivers) Type

Type should return the action

func (*MsgUpdateWeightedRewardsReceivers) Unmarshal

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

func (*MsgUpdateWeightedRewardsReceivers) ValidateBasic

func (m *MsgUpdateWeightedRewardsReceivers) ValidateBasic() error

func (*MsgUpdateWeightedRewardsReceivers) XXX_DiscardUnknown

func (m *MsgUpdateWeightedRewardsReceivers) XXX_DiscardUnknown()

func (*MsgUpdateWeightedRewardsReceivers) XXX_Marshal

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

func (*MsgUpdateWeightedRewardsReceivers) XXX_Merge

func (*MsgUpdateWeightedRewardsReceivers) XXX_Size

func (m *MsgUpdateWeightedRewardsReceivers) XXX_Size() int

func (*MsgUpdateWeightedRewardsReceivers) XXX_Unmarshal

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

type MsgUpdateWeightedRewardsReceiversResponse

type MsgUpdateWeightedRewardsReceiversResponse struct {
}

MsgUpdateWeightedRewardsReceiversResponse defines the response structure for executing a

func (*MsgUpdateWeightedRewardsReceiversResponse) Descriptor

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

func (*MsgUpdateWeightedRewardsReceiversResponse) Marshal

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

func (*MsgUpdateWeightedRewardsReceiversResponse) MarshalTo

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

func (*MsgUpdateWeightedRewardsReceiversResponse) MarshalToSizedBuffer

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

func (*MsgUpdateWeightedRewardsReceiversResponse) ProtoMessage

func (*MsgUpdateWeightedRewardsReceiversResponse) Reset

func (*MsgUpdateWeightedRewardsReceiversResponse) Size

func (*MsgUpdateWeightedRewardsReceiversResponse) String

func (*MsgUpdateWeightedRewardsReceiversResponse) Unmarshal

func (*MsgUpdateWeightedRewardsReceiversResponse) XXX_DiscardUnknown

func (m *MsgUpdateWeightedRewardsReceiversResponse) XXX_DiscardUnknown()

func (*MsgUpdateWeightedRewardsReceiversResponse) XXX_Marshal

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

func (*MsgUpdateWeightedRewardsReceiversResponse) XXX_Merge

func (*MsgUpdateWeightedRewardsReceiversResponse) XXX_Size

func (*MsgUpdateWeightedRewardsReceiversResponse) XXX_Unmarshal

type MsgUpdateWhitelistedValidators

type MsgUpdateWhitelistedValidators struct {
	// Authority is the address that is allowed to update whitelisted validators,
	// defined as admin address in params (WhitelistAdminAddress).
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	// WhitelistedValidators specifies the validators elected to become Active
	// Liquid Validators.
	WhitelistedValidators []WhitelistedValidator `protobuf:"bytes,2,rep,name=whitelisted_validators,json=whitelistedValidators,proto3" json:"whitelisted_validators"`
}

func NewMsgUpdateWhitelistedValidators

func NewMsgUpdateWhitelistedValidators(authority sdk.AccAddress, list []WhitelistedValidator) *MsgUpdateWhitelistedValidators

NewMsgUpdateWhitelistedValidators creates a new MsgUpdateWhitelistedValidators.

func (*MsgUpdateWhitelistedValidators) Descriptor

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

func (*MsgUpdateWhitelistedValidators) Marshal

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

func (*MsgUpdateWhitelistedValidators) MarshalTo

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

func (*MsgUpdateWhitelistedValidators) MarshalToSizedBuffer

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

func (*MsgUpdateWhitelistedValidators) ProtoMessage

func (*MsgUpdateWhitelistedValidators) ProtoMessage()

func (*MsgUpdateWhitelistedValidators) Reset

func (m *MsgUpdateWhitelistedValidators) Reset()

func (*MsgUpdateWhitelistedValidators) Route

func (*MsgUpdateWhitelistedValidators) Size

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

func (*MsgUpdateWhitelistedValidators) String

func (*MsgUpdateWhitelistedValidators) Type

Type should return the action

func (*MsgUpdateWhitelistedValidators) Unmarshal

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

func (*MsgUpdateWhitelistedValidators) ValidateBasic

func (m *MsgUpdateWhitelistedValidators) ValidateBasic() error

func (*MsgUpdateWhitelistedValidators) XXX_DiscardUnknown

func (m *MsgUpdateWhitelistedValidators) XXX_DiscardUnknown()

func (*MsgUpdateWhitelistedValidators) XXX_Marshal

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

func (*MsgUpdateWhitelistedValidators) XXX_Merge

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

func (*MsgUpdateWhitelistedValidators) XXX_Size

func (m *MsgUpdateWhitelistedValidators) XXX_Size() int

func (*MsgUpdateWhitelistedValidators) XXX_Unmarshal

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

type MsgUpdateWhitelistedValidatorsResponse

type MsgUpdateWhitelistedValidatorsResponse struct {
}

MsgUpdateWhitelistedValidatorsResponse defines the response structure for executing a

func (*MsgUpdateWhitelistedValidatorsResponse) Descriptor

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

func (*MsgUpdateWhitelistedValidatorsResponse) Marshal

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

func (*MsgUpdateWhitelistedValidatorsResponse) MarshalTo

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

func (*MsgUpdateWhitelistedValidatorsResponse) MarshalToSizedBuffer

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

func (*MsgUpdateWhitelistedValidatorsResponse) ProtoMessage

func (*MsgUpdateWhitelistedValidatorsResponse) Reset

func (*MsgUpdateWhitelistedValidatorsResponse) Size

func (*MsgUpdateWhitelistedValidatorsResponse) String

func (*MsgUpdateWhitelistedValidatorsResponse) Unmarshal

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

func (*MsgUpdateWhitelistedValidatorsResponse) XXX_DiscardUnknown

func (m *MsgUpdateWhitelistedValidatorsResponse) XXX_DiscardUnknown()

func (*MsgUpdateWhitelistedValidatorsResponse) XXX_Marshal

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

func (*MsgUpdateWhitelistedValidatorsResponse) XXX_Merge

func (*MsgUpdateWhitelistedValidatorsResponse) XXX_Size

func (*MsgUpdateWhitelistedValidatorsResponse) XXX_Unmarshal

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

type NetAmountState

type NetAmountState struct {
	// stake_rate is the rate at which the liquid staking module mints stkIXO
	StakeRate cosmossdk_io_math.LegacyDec `protobuf:"bytes,1,opt,name=stake_rate,json=stakeRate,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"stake_rate"`
	// unstake_rate is the rate at which the liquid staking module burns stkIXO
	UnstakeRate cosmossdk_io_math.LegacyDec `protobuf:"bytes,2,opt,name=unstake_rate,json=unstakeRate,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"unstake_rate"`
	// btoken_total_supply returns the total supply of uzero (stkIXO denom)
	StkixoTotalSupply cosmossdk_io_math.Int `` /* 137-byte string literal not displayed */
	// net_amount is proxy account's total liquid tokens + total unbonding balance
	NetAmount cosmossdk_io_math.LegacyDec `protobuf:"bytes,4,opt,name=net_amount,json=netAmount,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"net_amount"`
	// total_del_shares define the delegation shares of all liquid validators
	TotalDelShares cosmossdk_io_math.LegacyDec `` /* 134-byte string literal not displayed */
	// total_liquid_tokens define the token amount worth of delegation shares of
	// all liquid validator (slashing applied amount)
	TotalLiquidTokens cosmossdk_io_math.Int `` /* 137-byte string literal not displayed */
	// total_remaining_rewards define the sum of remaining rewards of proxy
	// account by all liquid validators
	TotalRemainingRewards cosmossdk_io_math.LegacyDec `` /* 155-byte string literal not displayed */
	// total_unbonding_balance define the unbonding balance of proxy account by
	// all liquid validator (slashing applied amount)
	TotalUnbondingBalance cosmossdk_io_math.Int `` /* 149-byte string literal not displayed */
	// proxy_acc_balance define the balance of proxy account for the native token
	ProxyAccBalance cosmossdk_io_math.Int `` /* 131-byte string literal not displayed */
}

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.

func (NetAmountState) CalcNetAmount

func (nas NetAmountState) CalcNetAmount() math.LegacyDec

CalcNetAmount returns the net amount of native tokens of liquid staked tokens + unbonding balance. Aka the amount on which proxy account will get staking rewards for.

func (*NetAmountState) Descriptor

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

func (*NetAmountState) Marshal

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

func (*NetAmountState) MarshalTo

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

func (*NetAmountState) MarshalToSizedBuffer

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

func (*NetAmountState) ProtoMessage

func (*NetAmountState) ProtoMessage()

func (*NetAmountState) Reset

func (m *NetAmountState) Reset()

func (*NetAmountState) Size

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

func (*NetAmountState) String

func (m *NetAmountState) String() string

func (*NetAmountState) Unmarshal

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

func (*NetAmountState) XXX_DiscardUnknown

func (m *NetAmountState) XXX_DiscardUnknown()

func (*NetAmountState) XXX_Marshal

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

func (*NetAmountState) XXX_Merge

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

func (*NetAmountState) XXX_Size

func (m *NetAmountState) XXX_Size() int

func (*NetAmountState) XXX_Unmarshal

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

type Params

type Params struct {
	// LiquidBondDenom specifies the denomination of the token receiving after
	// liquid stake, The value is calculated through NetAmount.
	LiquidBondDenom string `protobuf:"bytes,1,opt,name=liquid_bond_denom,json=liquidBondDenom,proto3" json:"liquid_bond_denom,omitempty"`
	// WhitelistedValidators specifies the validators elected to become Active
	// Liquid Validators.
	WhitelistedValidators []WhitelistedValidator `protobuf:"bytes,2,rep,name=whitelisted_validators,json=whitelistedValidators,proto3" json:"whitelisted_validators"`
	// UnstakeFeeRate specifies the fee rate when liquid unstake is requested,
	// unbonded by subtracting it from unbondingAmount
	UnstakeFeeRate cosmossdk_io_math.LegacyDec `` /* 134-byte string literal not displayed */
	// MinLiquidStakingAmount specifies the minimum number of coins to be staked
	// to the active liquid validators on liquid staking to minimize decimal loss
	// and consider gas efficiency.
	MinLiquidStakeAmount cosmossdk_io_math.Int `` /* 148-byte string literal not displayed */
	// FeeAccountAddress defines the bech32-encoded address of
	// an account responsible for accumulating protocol fees.
	FeeAccountAddress string `protobuf:"bytes,5,opt,name=fee_account_address,json=feeAccountAddress,proto3" json:"fee_account_address,omitempty"`
	// AutocompoundFeeRate specifies the fee rate for auto redelegating the stake
	// rewards. The fee is taken in favour of the fee account (see
	// FeeAccountAddress).
	AutocompoundFeeRate cosmossdk_io_math.LegacyDec `` /* 149-byte string literal not displayed */
	// WhitelistAdminAddress the bech32-encoded address of an admin authority
	// that is allowed to update whitelisted validators or pause liquidstaking
	// module entirely. It is also the only address that can update the
	// weighted_rewards_receivers.
	// The key is controlled by the ZERO dao.
	// Pausing of the module can be required during important migrations or
	// failures.
	WhitelistAdminAddress string `` /* 126-byte string literal not displayed */
	// ModulePaused is a safety toggle that allows to stop main module functions
	// such as stake/unstake/stake-to-lp and the BeginBlocker logic.
	ModulePaused bool `protobuf:"varint,8,opt,name=module_paused,json=modulePaused,proto3" json:"module_paused,omitempty"`
	// weighted_rewards_receivers is the addresses to receive the staking
	// rewards on autocompounding with weights assigned to each address.
	// The total of weights in the list in not allowed to be greater than 1.
	//
	// Eg. if the list has 1 address with weight 0.2, then on autocompounding
	// the staking rewards will be split between 0.2 for the weighted receiver
	// and 0.8 gets auto-compounded to the proxy account.
	WeightedRewardsReceivers []WeightedAddress `` /* 156-byte string literal not displayed */
}

Params defines the set of params for the liquidstake module.

func DefaultParams

func DefaultParams() Params

DefaultParams returns the default liquidstake module parameters.

func (*Params) Descriptor

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

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 (p Params) String() string

String returns a human-readable string representation of the parameters.

func (*Params) Unmarshal

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

func (Params) Validate

func (p Params) Validate() error

Validate validates parameters.

func (Params) WhitelistedValsMap

func (p Params) WhitelistedValsMap() WhitelistedValsMap

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 QueryClient

type QueryClient interface {
	// Params returns parameters of the liquidstake module.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// LiquidValidators returns liquid validators with states of the liquidstake
	// module.
	LiquidValidators(ctx context.Context, in *QueryLiquidValidatorsRequest, opts ...grpc.CallOption) (*QueryLiquidValidatorsResponse, error)
	// States returns states of the liquidstake module.
	States(ctx context.Context, in *QueryStatesRequest, opts ...grpc.CallOption) (*QueryStatesResponse, error)
}

QueryClient is the client API for Query service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewQueryClient

func NewQueryClient(cc grpc1.ClientConn) QueryClient

type QueryLiquidValidatorsRequest

type QueryLiquidValidatorsRequest struct {
}

func (*QueryLiquidValidatorsRequest) Descriptor

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

func (*QueryLiquidValidatorsRequest) Marshal

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

func (*QueryLiquidValidatorsRequest) MarshalTo

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

func (*QueryLiquidValidatorsRequest) MarshalToSizedBuffer

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

func (*QueryLiquidValidatorsRequest) ProtoMessage

func (*QueryLiquidValidatorsRequest) ProtoMessage()

func (*QueryLiquidValidatorsRequest) Reset

func (m *QueryLiquidValidatorsRequest) Reset()

func (*QueryLiquidValidatorsRequest) Size

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

func (*QueryLiquidValidatorsRequest) String

func (*QueryLiquidValidatorsRequest) Unmarshal

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

func (*QueryLiquidValidatorsRequest) XXX_DiscardUnknown

func (m *QueryLiquidValidatorsRequest) XXX_DiscardUnknown()

func (*QueryLiquidValidatorsRequest) XXX_Marshal

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

func (*QueryLiquidValidatorsRequest) XXX_Merge

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

func (*QueryLiquidValidatorsRequest) XXX_Size

func (m *QueryLiquidValidatorsRequest) XXX_Size() int

func (*QueryLiquidValidatorsRequest) XXX_Unmarshal

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

type QueryLiquidValidatorsResponse

type QueryLiquidValidatorsResponse struct {
	LiquidValidators []LiquidValidatorState `protobuf:"bytes,1,rep,name=liquid_validators,json=liquidValidators,proto3" json:"liquid_validators"`
}

func (*QueryLiquidValidatorsResponse) Descriptor

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

func (*QueryLiquidValidatorsResponse) GetLiquidValidators

func (m *QueryLiquidValidatorsResponse) GetLiquidValidators() []LiquidValidatorState

func (*QueryLiquidValidatorsResponse) Marshal

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

func (*QueryLiquidValidatorsResponse) MarshalTo

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

func (*QueryLiquidValidatorsResponse) MarshalToSizedBuffer

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

func (*QueryLiquidValidatorsResponse) ProtoMessage

func (*QueryLiquidValidatorsResponse) ProtoMessage()

func (*QueryLiquidValidatorsResponse) Reset

func (m *QueryLiquidValidatorsResponse) Reset()

func (*QueryLiquidValidatorsResponse) Size

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

func (*QueryLiquidValidatorsResponse) String

func (*QueryLiquidValidatorsResponse) Unmarshal

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

func (*QueryLiquidValidatorsResponse) XXX_DiscardUnknown

func (m *QueryLiquidValidatorsResponse) XXX_DiscardUnknown()

func (*QueryLiquidValidatorsResponse) XXX_Marshal

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

func (*QueryLiquidValidatorsResponse) XXX_Merge

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

func (*QueryLiquidValidatorsResponse) XXX_Size

func (m *QueryLiquidValidatorsResponse) XXX_Size() int

func (*QueryLiquidValidatorsResponse) XXX_Unmarshal

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

type QueryParamsRequest

type QueryParamsRequest struct {
}

func (*QueryParamsRequest) Descriptor

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

func (*QueryParamsRequest) Marshal

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

func (*QueryParamsRequest) MarshalTo

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

func (*QueryParamsRequest) MarshalToSizedBuffer

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

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size

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

func (*QueryParamsRequest) String

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal

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

func (*QueryParamsRequest) XXX_DiscardUnknown

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal

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

func (*QueryParamsRequest) XXX_Merge

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

func (*QueryParamsRequest) XXX_Size

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal

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

type QueryParamsResponse

type QueryParamsResponse struct {
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

func (*QueryParamsResponse) Descriptor

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

func (*QueryParamsResponse) GetParams

func (m *QueryParamsResponse) GetParams() Params

func (*QueryParamsResponse) Marshal

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

func (*QueryParamsResponse) MarshalTo

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

func (*QueryParamsResponse) MarshalToSizedBuffer

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

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size

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

func (*QueryParamsResponse) String

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal

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

func (*QueryParamsResponse) XXX_DiscardUnknown

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal

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

func (*QueryParamsResponse) XXX_Merge

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

func (*QueryParamsResponse) XXX_Size

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// Params returns parameters of the liquidstake module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// LiquidValidators returns liquid validators with states of the liquidstake
	// module.
	LiquidValidators(context.Context, *QueryLiquidValidatorsRequest) (*QueryLiquidValidatorsResponse, error)
	// States returns states of the liquidstake module.
	States(context.Context, *QueryStatesRequest) (*QueryStatesResponse, error)
}

QueryServer is the server API for Query service.

type QueryStatesRequest

type QueryStatesRequest struct {
}

func (*QueryStatesRequest) Descriptor

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

func (*QueryStatesRequest) Marshal

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

func (*QueryStatesRequest) MarshalTo

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

func (*QueryStatesRequest) MarshalToSizedBuffer

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

func (*QueryStatesRequest) ProtoMessage

func (*QueryStatesRequest) ProtoMessage()

func (*QueryStatesRequest) Reset

func (m *QueryStatesRequest) Reset()

func (*QueryStatesRequest) Size

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

func (*QueryStatesRequest) String

func (m *QueryStatesRequest) String() string

func (*QueryStatesRequest) Unmarshal

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

func (*QueryStatesRequest) XXX_DiscardUnknown

func (m *QueryStatesRequest) XXX_DiscardUnknown()

func (*QueryStatesRequest) XXX_Marshal

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

func (*QueryStatesRequest) XXX_Merge

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

func (*QueryStatesRequest) XXX_Size

func (m *QueryStatesRequest) XXX_Size() int

func (*QueryStatesRequest) XXX_Unmarshal

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

type QueryStatesResponse

type QueryStatesResponse struct {
	NetAmountState NetAmountState `protobuf:"bytes,1,opt,name=net_amount_state,json=netAmountState,proto3" json:"net_amount_state"`
}

func (*QueryStatesResponse) Descriptor

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

func (*QueryStatesResponse) GetNetAmountState

func (m *QueryStatesResponse) GetNetAmountState() NetAmountState

func (*QueryStatesResponse) Marshal

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

func (*QueryStatesResponse) MarshalTo

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

func (*QueryStatesResponse) MarshalToSizedBuffer

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

func (*QueryStatesResponse) ProtoMessage

func (*QueryStatesResponse) ProtoMessage()

func (*QueryStatesResponse) Reset

func (m *QueryStatesResponse) Reset()

func (*QueryStatesResponse) Size

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

func (*QueryStatesResponse) String

func (m *QueryStatesResponse) String() string

func (*QueryStatesResponse) Unmarshal

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

func (*QueryStatesResponse) XXX_DiscardUnknown

func (m *QueryStatesResponse) XXX_DiscardUnknown()

func (*QueryStatesResponse) XXX_Marshal

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

func (*QueryStatesResponse) XXX_Merge

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

func (*QueryStatesResponse) XXX_Size

func (m *QueryStatesResponse) XXX_Size() int

func (*QueryStatesResponse) XXX_Unmarshal

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

type RebalancedLiquidStakeEvent

type RebalancedLiquidStakeEvent struct {
	Delegator             string `protobuf:"bytes,1,opt,name=delegator,proto3" json:"delegator,omitempty"`
	RedelegationCount     string `protobuf:"bytes,2,opt,name=redelegation_count,json=redelegationCount,proto3" json:"redelegation_count,omitempty"`
	RedelegationFailCount string `` /* 126-byte string literal not displayed */
}

RebalancedEvent is triggered after a rebalance is performed.

func (*RebalancedLiquidStakeEvent) Descriptor

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

func (*RebalancedLiquidStakeEvent) Marshal

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

func (*RebalancedLiquidStakeEvent) MarshalTo

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

func (*RebalancedLiquidStakeEvent) MarshalToSizedBuffer

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

func (*RebalancedLiquidStakeEvent) ProtoMessage

func (*RebalancedLiquidStakeEvent) ProtoMessage()

func (*RebalancedLiquidStakeEvent) Reset

func (m *RebalancedLiquidStakeEvent) Reset()

func (*RebalancedLiquidStakeEvent) Size

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

func (*RebalancedLiquidStakeEvent) String

func (m *RebalancedLiquidStakeEvent) String() string

func (*RebalancedLiquidStakeEvent) Unmarshal

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

func (*RebalancedLiquidStakeEvent) XXX_DiscardUnknown

func (m *RebalancedLiquidStakeEvent) XXX_DiscardUnknown()

func (*RebalancedLiquidStakeEvent) XXX_Marshal

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

func (*RebalancedLiquidStakeEvent) XXX_Merge

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

func (*RebalancedLiquidStakeEvent) XXX_Size

func (m *RebalancedLiquidStakeEvent) XXX_Size() int

func (*RebalancedLiquidStakeEvent) XXX_Unmarshal

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

type Redelegation

type Redelegation struct {
	Delegator    sdk.AccAddress
	SrcValidator LiquidValidator
	DstValidator LiquidValidator
	Amount       math.Int
	Last         bool
	Error        error
}

type SlashingKeeper

type SlashingKeeper interface {
	IsTombstoned(ctx context.Context, consAddr sdk.ConsAddress) bool
}

SlashingKeeper expected slashing keeper (noalias)

type StakingKeeper

type StakingKeeper interface {
	Validator(ctx context.Context, addr sdk.ValAddress) (stakingtypes.ValidatorI, error)
	GetValidator(ctx context.Context, addr sdk.ValAddress) (validator stakingtypes.Validator, err error)
	ValidatorAddressCodec() addresscodec.Codec
	GetDelegation(ctx context.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) (stakingtypes.Delegation, error)
	IterateDelegations(ctx context.Context, delAddr sdk.AccAddress, fn func(index int64, del stakingtypes.DelegationI) (stop bool)) error
	BondDenom(ctx context.Context) (res string, err error)
	UnbondingTime(ctx context.Context) (res time.Duration, err error)
	ValidateUnbondAmount(
		ctx context.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress, amt math.Int,
	) (shares math.LegacyDec, err error)
	GetUnbondingDelegation(ctx context.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) (stakingtypes.UnbondingDelegation, error)
	GetAllUnbondingDelegations(ctx context.Context, delAddr sdk.AccAddress) ([]stakingtypes.UnbondingDelegation, error)
	HasReceivingRedelegation(ctx context.Context, delAddr sdk.AccAddress, valDstAddr sdk.ValAddress) (bool, error)
	HasMaxUnbondingDelegationEntries(ctx context.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) (bool, error)
}

StakingKeeper expected staking keeper (noalias)

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) LiquidStake

func (*UnimplementedMsgServer) LiquidUnstake

func (*UnimplementedMsgServer) SetModulePaused

func (*UnimplementedMsgServer) UpdateParams

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) LiquidValidators

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) States

type ValidatorStatus

type ValidatorStatus int32

ValidatorStatus enumerates the status of a liquid validator.

const (
	// VALIDATOR_STATUS_UNSPECIFIED defines the unspecified invalid status.
	ValidatorStatusUnspecified ValidatorStatus = 0
	// VALIDATOR_STATUS_ACTIVE defines the active, valid status
	ValidatorStatusActive ValidatorStatus = 1
	// VALIDATOR_STATUS_INACTIVE defines the inactive, invalid status
	ValidatorStatusInactive ValidatorStatus = 2
)

func (ValidatorStatus) EnumDescriptor

func (ValidatorStatus) EnumDescriptor() ([]byte, []int)

func (ValidatorStatus) String

func (x ValidatorStatus) String() string

type WeightedAddress

type WeightedAddress struct {
	Address string                      `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty" yaml:"address"`
	Weight  cosmossdk_io_math.LegacyDec `protobuf:"bytes,2,opt,name=weight,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"weight" yaml:"weight"`
}

WeightedAddress represents an address with a weight assigned to it. The weight is used to determine the proportion of autocompounding rewards to be paid to the address.

func (*WeightedAddress) Descriptor

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

func (*WeightedAddress) Marshal

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

func (*WeightedAddress) MarshalTo

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

func (*WeightedAddress) MarshalToSizedBuffer

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

func (*WeightedAddress) ProtoMessage

func (*WeightedAddress) ProtoMessage()

func (*WeightedAddress) Reset

func (m *WeightedAddress) Reset()

func (*WeightedAddress) Size

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

func (*WeightedAddress) String

func (m *WeightedAddress) String() string

func (*WeightedAddress) Unmarshal

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

func (*WeightedAddress) XXX_DiscardUnknown

func (m *WeightedAddress) XXX_DiscardUnknown()

func (*WeightedAddress) XXX_Marshal

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

func (*WeightedAddress) XXX_Merge

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

func (*WeightedAddress) XXX_Size

func (m *WeightedAddress) XXX_Size() int

func (*WeightedAddress) XXX_Unmarshal

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

type WhitelistedValidator

type WhitelistedValidator struct {
	// validator_address defines the bech32-encoded address of the whitelisted
	// validator
	ValidatorAddress string `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
	// target_weight specifies the target weight for liquid staking, unstaking
	// amount, which is a value for calculating the real weight to be derived
	// according to the active status
	TargetWeight cosmossdk_io_math.Int `protobuf:"bytes,2,opt,name=target_weight,json=targetWeight,proto3,customtype=cosmossdk.io/math.Int" json:"target_weight"`
}

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.

func (*WhitelistedValidator) Descriptor

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

func (*WhitelistedValidator) GetValidatorAddress

func (w *WhitelistedValidator) GetValidatorAddress() sdk.ValAddress

func (*WhitelistedValidator) Marshal

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

func (*WhitelistedValidator) MarshalTo

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

func (*WhitelistedValidator) MarshalToSizedBuffer

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

func (*WhitelistedValidator) ProtoMessage

func (*WhitelistedValidator) ProtoMessage()

func (*WhitelistedValidator) Reset

func (m *WhitelistedValidator) Reset()

func (*WhitelistedValidator) Size

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

func (*WhitelistedValidator) String

func (m *WhitelistedValidator) String() string

func (*WhitelistedValidator) Unmarshal

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

func (*WhitelistedValidator) XXX_DiscardUnknown

func (m *WhitelistedValidator) XXX_DiscardUnknown()

func (*WhitelistedValidator) XXX_Marshal

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

func (*WhitelistedValidator) XXX_Merge

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

func (*WhitelistedValidator) XXX_Size

func (m *WhitelistedValidator) XXX_Size() int

func (*WhitelistedValidator) XXX_Unmarshal

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

type WhitelistedValsMap

type WhitelistedValsMap map[string]WhitelistedValidator

WhitelistedValsMap is a map of validator address to whitelisted validator

func GetWhitelistedValsMap

func GetWhitelistedValsMap(whitelistedValidators []WhitelistedValidator) WhitelistedValsMap

GetWhitelistedValsMap returns a WhitelistedValsMap from a list of whitelisted validators

func (WhitelistedValsMap) IsListed

func (whitelistedValsMap WhitelistedValsMap) IsListed(operatorAddr string) bool

Jump to

Keyboard shortcuts

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