Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper *Keeper) types.MsgServer
- type Keeper
- func (k Keeper) ChainStateStore(ctx sdk.Context) prefix.Store
- func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState
- func (k Keeper) GetChainState(ctx sdk.Context, chainDenom string) (*types.ChainInfo, error)
- func (k Keeper) GetOracleAddress(ctx sdk.Context, zoneId string) types.OracleAddressInfo
- func (k Keeper) GetOracleAddressStore(ctx sdk.Context) prefix.Store
- func (k Keeper) GetOracleVersion(ctx sdk.Context, zoneId string) (version uint64, height uint64)
- func (k Keeper) GetParams(ctx sdk.Context) (params types.Params)
- func (k Keeper) InitGenesis(ctx sdk.Context, genState *types.GenesisState)
- func (k Keeper) IsValidOracleAddress(ctx sdk.Context, zoneId, address string) bool
- func (k Keeper) IsValidOracleKeyManager(ctx sdk.Context, oracleAddress string) bool
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) SetOracleAddress(ctx sdk.Context, zoneId string, oracleAddrs []string)
- func (k Keeper) SetOracleVersion(ctx sdk.Context, zoneId string, trace types.IBCTrace)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) UpdateChainState(ctx sdk.Context, chainInfo *types.ChainInfo) error
- func (k Keeper) ValidZoneAddress(ctx sdk.Context, zoneId string) bool
- type Querier
- func (q Querier) OracleVersion(goCtx context.Context, request *types.QueryOracleVersionRequest) (*types.QueryOracleVersionResponse, error)
- func (q Querier) Params(ctx context.Context, request *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (q Querier) State(ctx context.Context, request *types.QueryStateRequest) (*types.QueryStateResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func NewKeeper ¶
func NewKeeper(cdc codec.BinaryCodec, key sdk.StoreKey, paramSpace paramtypes.Subspace, icaControlKeeper icacontrolkeeper.Keeper) Keeper
func (Keeper) ChainStateStore ¶ added in v0.6.2
func (Keeper) ExportGenesis ¶
func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState
func (Keeper) GetChainState ¶
GetChainState returns the status of the Zone stored in Oracle. This result is used to calculate the equity token.
func (Keeper) GetOracleAddress ¶ added in v0.6.2
get oracle address
func (Keeper) GetOracleAddressStore ¶ added in v0.6.2
set oracle
func (Keeper) GetOracleVersion ¶
func (Keeper) InitGenesis ¶
func (k Keeper) InitGenesis(ctx sdk.Context, genState *types.GenesisState)
func (Keeper) IsValidOracleAddress ¶ added in v0.6.2
func (Keeper) IsValidOracleKeyManager ¶ added in v0.6.2
IsValidOracleKeyManager verifies that the parameter address is the correct key manager address.
func (Keeper) SetOracleAddress ¶ added in v0.6.2
set oracle address
func (Keeper) SetOracleVersion ¶
func (Keeper) UpdateChainState ¶
UpdateChainState updates the status of the zones stored in Oracle with a new status.
type Querier ¶
type Querier struct {
Keeper
}
func NewQuerier ¶
func (Querier) OracleVersion ¶
func (q Querier) OracleVersion(goCtx context.Context, request *types.QueryOracleVersionRequest) (*types.QueryOracleVersionResponse, error)
func (Querier) Params ¶
func (q Querier) Params(ctx context.Context, request *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Querier) State ¶
func (q Querier) State(ctx context.Context, request *types.QueryStateRequest) (*types.QueryStateResponse, error)
Click to show internal directories.
Click to hide internal directories.