Documentation ¶
Index ¶
- func NewMsgServerImpl(k Keeper) types.MsgServer
- func NewQueryServerImpl(k Keeper) types.QueryServer
- type Keeper
- func (k Keeper) ExportGenesis(_ sdk.Context) *types.GenesisState
- func (k Keeper) GetModuleAddress() sdk.AccAddress
- func (k Keeper) GetOwnerAndPortID() (sdk.AccAddress, string, error)
- func (k Keeper) InitGenesis(ctx sdk.Context, _ *types.GenesisState)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
NewMsgServerImpl creates an implementation of the `MsgServer` interface for the given keeper.
func NewQueryServerImpl ¶
func NewQueryServerImpl(k Keeper) types.QueryServer
NewQuerySErverImpl creates an implementation of the `QueryServer` interface for the given keeper.
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
Keeper is the envoy module's keeper.
func NewKeeper ¶
func NewKeeper( cdc codec.Codec, accountKeeper authkeeper.AccountKeeper, bankKeeper bankkeeper.Keeper, distrKeeper distrkeeper.Keeper, channelKeeper ibcchannelkeeper.Keeper, icaControllerKeeper icacontrollerkeeper.Keeper, router *baseapp.MsgServiceRouter, authorities []string, ) Keeper
NewKeeper creates a new envoy module keeper.
func (Keeper) ExportGenesis ¶
func (k Keeper) ExportGenesis(_ sdk.Context) *types.GenesisState
ExportGenesis returns a genesis state for a given context and keeper.
func (Keeper) GetModuleAddress ¶
func (k Keeper) GetModuleAddress() sdk.AccAddress
GetModuleAddress returns the envoy module account's address.
func (Keeper) GetOwnerAndPortID ¶
func (k Keeper) GetOwnerAndPortID() (sdk.AccAddress, string, error)
GetOwnerAndPortID is a convenience method that returns the envoy module account, which acts as the owner of interchain accounts, as well as the ICA controller port ID associated with it.
func (Keeper) InitGenesis ¶
func (k Keeper) InitGenesis(ctx sdk.Context, _ *types.GenesisState)
InitGenesis initializes the envoy module's storage according to the provided genesis state.
NOTE: we call `GetModuleAccount` instead of `SetModuleAccount` because the "get" function automatically sets the module account if it doesn't exist.