wasm

package
v0.40.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildUnbondingDelegationResponseCW added in v0.15.0

func BuildUnbondingDelegationResponseCW(unbondingDelegations []stakingtypes.UnbondingDelegation) []types.UnbondingDelegation

Types

type Messenger

type Messenger struct {
	// contains filtered or unexported fields
}

Messenger handles messages for the Commitment module.

func NewMessenger

func NewMessenger(keeper *keeper.Keeper, stakingKeeper *stakingkeeper.Keeper, assetProfileKeeper *assetProfileKeeper.Keeper, stableKeeper *stableKeeper.Keeper, parameterKeeper *parameterkeeper.Keeper) *Messenger

func (*Messenger) HandleMsg

func (m *Messenger) HandleMsg(ctx sdk.Context, contractAddr sdk.AccAddress, contractIBCPortID string, msg wasmbindingstypes.ElysMsg) ([]sdk.Event, [][]byte, error)

type Querier

type Querier struct {
	// contains filtered or unexported fields
}

Querier handles queries for the Commitment module.

func NewQuerier

func NewQuerier(
	keeper *keeper.Keeper,
	stakingKeeper *stakingkeeper.Keeper,
	epochKeeper *epochkeeper.Keeper,
	ammKeeper *ammkeeper.Keeper,
	assetKeeper *assetkeeper.Keeper,
	stableKeeper *stablekeeper.Keeper,
	oracleKeeper *oraclekeeper.Keeper,
) *Querier

func (*Querier) BuildAllValidatorsResponseCW added in v0.15.0

func (oq *Querier) BuildAllValidatorsResponseCW(ctx sdk.Context, allValidators []stakingtypes.Validator, validators []stakingtypes.Validator, totalBonded cosmos_sdk_math.Int, delegatorAddress string) []commitmenttypes.ValidatorDetail

func (*Querier) BuildDelegatorValidatorsResponseCW added in v0.15.0

func (oq *Querier) BuildDelegatorValidatorsResponseCW(ctx sdk.Context, validators []stakingtypes.Validator, totalBonded cosmos_sdk_math.Int, delegatorAddress string) []commitmenttypes.ValidatorDetail

func (*Querier) BuildStakedPositionResponseCW added in v0.15.0

func (oq *Querier) BuildStakedPositionResponseCW(ctx sdk.Context, validators []stakingtypes.Validator, totalBonded cosmos_sdk_math.Int, delegatorAddress string) []commitmenttypes.StakedPosition

func (*Querier) BuildUnStakedPositionResponseCW added in v0.15.0

func (oq *Querier) BuildUnStakedPositionResponseCW(ctx sdk.Context, unbondingDelegations []stakingtypes.UnbondingDelegation, totalBonded cosmos_sdk_math.Int, delegatorAddress string) []commitmenttypes.UnstakedPosition

func (*Querier) DelegationToDelegationResponse added in v0.15.0

func (oq *Querier) DelegationToDelegationResponse(ctx sdk.Context, del stakingtypes.Delegation) (types.DelegationResponse, error)

func (*Querier) DelegationsToDelegationResponses added in v0.15.0

func (oq *Querier) DelegationsToDelegationResponses(ctx sdk.Context, delegations stakingtypes.Delegations) ([]types.DelegationResponse, error)

func (*Querier) HandleQuery

func (oq *Querier) HandleQuery(ctx sdk.Context, query wasmbindingstypes.ElysQuery) ([]byte, error)

Jump to

Keyboard shortcuts

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