keeper

package
v0.5.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Keeper

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

func NewKeeper

func NewKeeper(cdc *codec.Codec, key sdk.StoreKey, params params.Subspace, supply expected.SupplyKeeper) Keeper

func (Keeper) ApproveBy

func (k Keeper) ApproveBy(ctx sdk.Context) (address sdk.AccAddress)

func (Keeper) GetParams

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

func (Keeper) GetSwap

func (k Keeper) GetSwap(ctx sdk.Context, txHash types.EthereumHash) (swap types.Swap, found bool)

func (Keeper) GetSwaps

func (k Keeper) GetSwaps(ctx sdk.Context, skip, limit int) (items types.Swaps)

func (Keeper) HasSwap

func (k Keeper) HasSwap(ctx sdk.Context, txHash types.EthereumHash) bool

func (Keeper) Logger

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

func (Keeper) MintCoin

func (k Keeper) MintCoin(ctx sdk.Context, coin sdk.Coin) error

func (Keeper) SendCoinFromModuleToAccount

func (k Keeper) SendCoinFromModuleToAccount(ctx sdk.Context, address sdk.AccAddress, coin sdk.Coin) error

func (Keeper) SetParams

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

func (Keeper) SetSwap

func (k Keeper) SetSwap(ctx sdk.Context, swap types.Swap)

func (Keeper) Store

func (k Keeper) Store(ctx sdk.Context) sdk.KVStore

func (Keeper) SwapDenom

func (k Keeper) SwapDenom(ctx sdk.Context) (denom string)

func (Keeper) SwapEnabled

func (k Keeper) SwapEnabled(ctx sdk.Context) (yes bool)

Jump to

Keyboard shortcuts

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