keeper

package
v0.6.7-rc4 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMsgServerImpl

func NewMsgServerImpl(keeper *Keeper) types.MsgServer

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 (k Keeper) ChainStateStore(ctx sdk.Context) prefix.Store

func (Keeper) ExportGenesis

func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState

func (Keeper) GetChainState

func (k Keeper) GetChainState(ctx sdk.Context, chainDenom string) (*types.ChainInfo, error)

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

func (k Keeper) GetOracleAddress(ctx sdk.Context, zoneId string) types.OracleAddressInfo

get oracle address

func (Keeper) GetOracleAddressStore added in v0.6.2

func (k Keeper) GetOracleAddressStore(ctx sdk.Context) prefix.Store

set oracle

func (Keeper) GetOracleVersion

func (k Keeper) GetOracleVersion(ctx sdk.Context, zoneId string) (version uint64, height uint64)

func (Keeper) GetParams

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

GetParams gets the auth module's parameters.

func (Keeper) InitGenesis

func (k Keeper) InitGenesis(ctx sdk.Context, genState *types.GenesisState)

func (Keeper) IsValidOracleAddress added in v0.6.2

func (k Keeper) IsValidOracleAddress(ctx sdk.Context, zoneId, address string) bool

func (Keeper) IsValidOracleKeyManager added in v0.6.2

func (k Keeper) IsValidOracleKeyManager(ctx sdk.Context, oracleAddress string) bool

IsValidOracleKeyManager verifies that the parameter address is the correct key manager address.

func (Keeper) Logger

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

func (Keeper) SetOracleAddress added in v0.6.2

func (k Keeper) SetOracleAddress(ctx sdk.Context, zoneId string, oracleAddrs []string)

set oracle address

func (Keeper) SetOracleVersion

func (k Keeper) SetOracleVersion(ctx sdk.Context, zoneId string, trace types.IBCTrace)

func (Keeper) SetParams

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

SetParams sets the auth module's parameters.

func (Keeper) UpdateChainState

func (k Keeper) UpdateChainState(ctx sdk.Context, chainInfo *types.ChainInfo) error

UpdateChainState updates the status of the zones stored in Oracle with a new status.

func (Keeper) ValidZoneAddress added in v0.6.5

func (k Keeper) ValidZoneAddress(ctx sdk.Context, zoneId string) bool

type Querier

type Querier struct {
	Keeper
}

func NewQuerier

func NewQuerier(k Keeper) Querier

func (Querier) OracleVersion

func (Querier) Params

func (Querier) State

Jump to

Keyboard shortcuts

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