Documentation ¶
Index ¶
- Constants
- func NewQuerier(keeper Keeper, cdc *codec.Codec) sdk.Querier
- type Keeper
- func (k Keeper) GetMintedCoins(ctx sdk.Context, amtEngDust sdk.Dec) sdk.Coins
- func (k Keeper) GetMintingEnabled(ctx sdk.Context) (enabled bool)
- func (k Keeper) GetMintingMultiplier(ctx sdk.Context) (percent sdk.Dec)
- func (k Keeper) GetMultisigApproveAddress(ctx sdk.Context) (addr sdk.AccAddress)
- func (k Keeper) GetParams(ctx sdk.Context) (params types.Params)
- func (k Keeper) GetPastTokenSwapRequest(ctx sdk.Context, ethereumTxHash types.EthereumTxHash) (types.TokenSwapRecord, error)
- func (k Keeper) GetTokenSwapRecordsIterator(ctx sdk.Context) sdk.Iterator
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) ProcessTokenSwapRequest(ctx sdk.Context, request types.MsgSwapRequest) error
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) SwapIsEnabled(ctx sdk.Context) error
- func (k Keeper) ValidateTokenSwapSigner(ctx sdk.Context, signer sdk.AccAddress) error
Constants ¶
const (
GetTokenSwap = "get"
)
query endpoints supported by the tokenswap Querier
Variables ¶
This section is empty.
Functions ¶
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 (Keeper) GetMintingEnabled ¶
GetBonusProposerReward returns the current distribution bonus proposer reward rate.
func (Keeper) GetMintingMultiplier ¶
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) GetPastTokenSwapRequest ¶
func (k Keeper) GetPastTokenSwapRequest(ctx sdk.Context, ethereumTxHash types.EthereumTxHash) (types.TokenSwapRecord, error)
GetPastTokenSwapRequest retrives a past token swap request
func (Keeper) GetTokenSwapRecordsIterator ¶
GetTokenSwapRecordsIterator get an iterator over tokenswap records
func (Keeper) ProcessTokenSwapRequest ¶
ProcessTokenSwapRequest processes a claim that has just completed successfully with consensus Also note that at this stage we already validated the swap request parameters