keeper

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2020 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GetTokenSwap = "get"
)

query endpoints supported by the tokenswap Querier

Variables

This section is empty.

Functions

func NewQuerier

func NewQuerier(keeper Keeper, cdc *codec.Codec) sdk.Querier

NewQuerier is the module level router for state queries

Types

type Keeper

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

Keeper maintains the link to data storage and exposes getter/setter methods for the various parts of the state machine

func NewKeeper

func NewKeeper(cdc *codec.Codec, storeKey sdk.StoreKey, params paramtypes.Subspace, supplyKeeper types.SupplyKeeper) Keeper

NewKeeper creates new instances of the Keeper

func (Keeper) GetMintedCoins

func (k Keeper) GetMintedCoins(ctx sdk.Context, amtEngDust sdk.Dec) sdk.Coins

func (Keeper) GetMintingEnabled

func (k Keeper) GetMintingEnabled(ctx sdk.Context) (enabled bool)

GetBonusProposerReward returns the current distribution bonus proposer reward rate.

func (Keeper) GetMintingMultiplier

func (k Keeper) GetMintingMultiplier(ctx sdk.Context) (percent sdk.Dec)

GetBaseProposerReward returns the current distribution base proposer rate.

func (Keeper) GetMultisigApproveAddress

func (k Keeper) GetMultisigApproveAddress(ctx sdk.Context) (addr sdk.AccAddress)

GetCommunityTax returns the current distribution community tax.

func (Keeper) GetParams

func (k Keeper) GetParams(ctx sdk.Context) (params types.Params)

GetParams returns the total set of distribution parameters.

func (Keeper) GetPastTokenSwapRequest

func (k Keeper) GetPastTokenSwapRequest(ctx sdk.Context, ethereumTxHash types.EthereumTxHash) (types.TokenSwapRecord, error)

GetPastTokenSwapRequest retrives a past token swap request

func (Keeper) GetTokenSwapRecordsIterator

func (k Keeper) GetTokenSwapRecordsIterator(ctx sdk.Context) sdk.Iterator

GetTokenSwapRecordsIterator get an iterator over tokenswap records

func (Keeper) Logger

func (k Keeper) Logger(ctx sdk.Context) log.Logger

Logger returns a module-specific logger.

func (Keeper) ProcessTokenSwapRequest

func (k Keeper) ProcessTokenSwapRequest(
	ctx sdk.Context, request types.MsgSwapRequest) error

ProcessTokenSwapRequest processes a claim that has just completed successfully with consensus Also note that at this stage we already validated the swap request parameters

func (Keeper) SetParams

func (k Keeper) SetParams(ctx sdk.Context, params types.Params)

SetParams sets the distribution parameters to the param space.

func (Keeper) SwapIsEnabled

func (k Keeper) SwapIsEnabled(ctx sdk.Context) error

func (Keeper) ValidateTokenSwapSigner

func (k Keeper) ValidateTokenSwapSigner(ctx sdk.Context, signer sdk.AccAddress) error

Jump to

Keyboard shortcuts

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