Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) AddRelayer(ctx sdk.Context, arena, denom, addr string)
- func (k Keeper) GetAllRelayer(ctx sdk.Context) []types.Relayer
- func (k Keeper) GetAllThreshold(ctx sdk.Context) (list []types.Threshold)
- func (k Keeper) GetRelayer(ctx sdk.Context, arena, denom string) []string
- func (k Keeper) GetThreshold(ctx sdk.Context, arena, denom string) (val types.Threshold, found bool)
- func (k Keeper) HasRelayer(ctx sdk.Context, arena, denom, addr string) bool
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) Relayers(c context.Context, req *types.QueryRelayersRequest) (*types.QueryRelayersResponse, error)
- func (k Keeper) RemoveRelayer(ctx sdk.Context, arena, denom, addr string)
- func (k Keeper) SetThreshold(ctx sdk.Context, threshold types.Threshold)
- func (k Keeper) Threshold(c context.Context, req *types.QueryThresholdRequest) (*types.QueryThresholdResponse, error)
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.
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, storeKey, memKey sdk.StoreKey, sudoKeeper types.SudoKeeper, bankKeeper types.BankKeeper, ) *Keeper
func (Keeper) GetAllRelayer ¶
used for export genesis
func (Keeper) GetAllThreshold ¶
GetAllThreshold returns all threshold
func (Keeper) GetRelayer ¶
func (Keeper) GetThreshold ¶
func (k Keeper) GetThreshold(ctx sdk.Context, arena, denom string) (val types.Threshold, found bool)
GetThreshold returns a threshold from its index
func (Keeper) HasRelayer ¶
func (Keeper) Relayers ¶
func (k Keeper) Relayers(c context.Context, req *types.QueryRelayersRequest) (*types.QueryRelayersResponse, error)
func (Keeper) RemoveRelayer ¶
func (Keeper) SetThreshold ¶
SetThreshold set a specific threshold in the store from its denom
func (Keeper) Threshold ¶
func (k Keeper) Threshold(c context.Context, req *types.QueryThresholdRequest) (*types.QueryThresholdResponse, error)
Click to show internal directories.
Click to hide internal directories.