Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- func NewQuerier(k Keeper, legacyQuerierCdc *codec.LegacyAmino) sdk.Querier
- type Keeper
- func (k *Keeper) AlreadySwapped(ctx sdk.Context, txHash string) bool
- func (k *Keeper) GetParams(ctx sdk.Context) types.Params
- func (k Keeper) GetSwap(ctx sdk.Context, txHash string) (swap types.Tokenswap, err error)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k *Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) SetSwap(ctx sdk.Context, swap types.Tokenswap)
- func (k *Keeper) Signer(ctx sdk.Context) (signer string)
- func (k *Keeper) Store(ctx sdk.Context) sdk.KVStore
- func (k Keeper) Swap(ctx sdk.Context, swap types.Tokenswap) error
- func (k *Keeper) Swappable(ctx sdk.Context) (swappable bool)
- type Querier
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.
func NewQuerier ¶
func NewQuerier(k Keeper, legacyQuerierCdc *codec.LegacyAmino) sdk.Querier
creates a querier for legacy rest endpoints
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func NewKeeper ¶
func NewKeeper( cdc codec.Marshaler, storeKey sdk.StoreKey, params paramtypes.Subspace, bankKeeper types.BankKeeper, ) Keeper
func (*Keeper) AlreadySwapped ¶
AlreadySwapped returns true if tx hash has existed
type Querier ¶
type Querier struct {
Keeper
}
func (Querier) Params ¶
func (k Querier) Params(c context.Context, _ *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
Params queries the parameters of tokenswap
func (Querier) Tokenswap ¶
func (k Querier) Tokenswap(c context.Context, req *types.QueryTokenswapRequest) (*types.QueryTokenswapResponse, error)
Tokenswap queries a tokenswap item by tx hash
Click to show internal directories.
Click to hide internal directories.