Documentation ¶
Index ¶
- func GetSpecIDBytes(id uint64) []byte
- func GetSpecIDFromBytes(bz []byte) uint64
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) ExpandSpec(ctx sdk.Context, spec types.Spec) (types.Spec, error)
- func (k Keeper) GeolocationCount(ctx sdk.Context) (res uint64)
- func (k Keeper) GetAllChainIDs(ctx sdk.Context) (chainIDs []string)
- func (k Keeper) GetAllSpec(ctx sdk.Context) (list []types.Spec)
- func (k Keeper) GetExpectedInterfacesForSpec(ctx sdk.Context, chainID string) (expectedInterfaces map[string]bool)
- func (k Keeper) GetParams(ctx sdk.Context) types.Params
- func (k Keeper) GetSpec(ctx sdk.Context, index string) (val types.Spec, found bool)
- func (k Keeper) IsFinalizedBlock(ctx sdk.Context, chainID string, requestedBlock int64, latestBlock int64) bool
- func (k Keeper) IsSpecFoundAndActive(ctx sdk.Context, chainID string) (foundAndActive bool, found bool)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) MaxCU(ctx sdk.Context) (res uint64)
- func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) RemoveSpec(ctx sdk.Context, index string)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) SetSpec(ctx sdk.Context, spec types.Spec)
- func (k Keeper) ShowAllChains(goCtx context.Context, req *types.QueryShowAllChainsRequest) (*types.QueryShowAllChainsResponse, error)
- func (k Keeper) ShowChainInfo(goCtx context.Context, req *types.QueryShowChainInfoRequest) (*types.QueryShowChainInfoResponse, error)
- func (k Keeper) Spec(c context.Context, req *types.QueryGetSpecRequest) (*types.QueryGetSpecResponse, error)
- func (k Keeper) SpecAll(c context.Context, req *types.QueryAllSpecRequest) (*types.QueryAllSpecResponse, error)
- func (k Keeper) SpecAllRaw(c context.Context, req *types.QueryAllSpecRequest) (*types.QueryAllSpecResponse, error)
- func (k Keeper) SpecRaw(c context.Context, req *types.QueryGetSpecRequest) (*types.QueryGetSpecResponse, error)
- func (k Keeper) ValidateSpec(ctx sdk.Context, spec types.Spec) (map[string]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSpecIDBytes ¶
GetSpecIDBytes returns the byte representation of the ID
func GetSpecIDFromBytes ¶
GetSpecIDFromBytes returns ID in uint64 format from a byte array
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, ps paramtypes.Subspace, ) *Keeper
func (Keeper) ExpandSpec ¶
ExpandSpec takes a (raw) Spec and expands the "imports" field of the spec -if needed, recursively- to add to the current Spec those additional APIs from the imported Spec(s). It returns the expanded Spec.
func (Keeper) GeolocationCount ¶ added in v0.4.3
GeolocationCount returns the GeolocationCount param
func (Keeper) GetAllSpec ¶
GetAllSpec returns all Spec
func (Keeper) GetExpectedInterfacesForSpec ¶ added in v0.4.3
func (Keeper) IsFinalizedBlock ¶
func (Keeper) IsSpecFoundAndActive ¶
func (k Keeper) IsSpecFoundAndActive(ctx sdk.Context, chainID string) (foundAndActive bool, found bool)
returns whether a spec name is a valid spec in the consensus first return value is found and active, second argument is found only
func (Keeper) Params ¶
func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) RemoveSpec ¶
RemoveSpec removes a Spec from the store
func (Keeper) ShowAllChains ¶
func (k Keeper) ShowAllChains(goCtx context.Context, req *types.QueryShowAllChainsRequest) (*types.QueryShowAllChainsResponse, error)
func (Keeper) ShowChainInfo ¶
func (k Keeper) ShowChainInfo(goCtx context.Context, req *types.QueryShowChainInfoRequest) (*types.QueryShowChainInfoResponse, error)
func (Keeper) Spec ¶
func (k Keeper) Spec(c context.Context, req *types.QueryGetSpecRequest) (*types.QueryGetSpecResponse, error)
func (Keeper) SpecAll ¶
func (k Keeper) SpecAll(c context.Context, req *types.QueryAllSpecRequest) (*types.QueryAllSpecResponse, error)
func (Keeper) SpecAllRaw ¶
func (k Keeper) SpecAllRaw(c context.Context, req *types.QueryAllSpecRequest) (*types.QueryAllSpecResponse, error)
func (Keeper) SpecRaw ¶
func (k Keeper) SpecRaw(c context.Context, req *types.QueryGetSpecRequest) (*types.QueryGetSpecResponse, error)