Documentation ¶
Index ¶
- func GetSpecIDBytes(id uint64) []byte
- func GetSpecIDFromBytes(bz []byte) uint64
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) AllowlistReset(ctx sdk.Context)
- func (k Keeper) AllowlistedExpeditedMsgs(ctx sdk.Context) (res []string)
- func (k Keeper) BeginBlock(ctx sdk.Context)
- func (k Keeper) ExpandSpec(ctx sdk.Context, spec types.Spec) (types.Spec, error)
- func (k Keeper) GetAllChainIDs(ctx sdk.Context) (chainIDs []string)
- func (k Keeper) GetAllSpec(ctx sdk.Context) (list []types.Spec)
- func (k Keeper) GetContributorReward(ctx sdk.Context, chainId string) (contributors []sdk.AccAddress, percentage math.LegacyDec)
- func (k Keeper) GetExpandedSpec(ctx sdk.Context, index string) (types.Spec, error)
- func (k Keeper) GetExpectedServicesForExpandedSpec(expandedSpec types.Spec, mandatory bool) map[epochstoragetypes.EndpointService]struct{}
- func (k Keeper) GetExpectedServicesForSpec(ctx sdk.Context, chainID string, mandatory bool) (expectedServices map[epochstoragetypes.EndpointService]struct{}, err error)
- func (k Keeper) GetMinStake(ctx sdk.Context, chainID string) sdk.Coin
- 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, latestBlock int64) bool
- func (k Keeper) IsSpecFoundAndActive(ctx sdk.Context, chainID string) (foundAndActive, found bool, providersType types.Spec_ProvidersTypes)
- 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) RefreshSpec(ctx sdk.Context, spec types.Spec, ancestors []types.Spec) ([]string, 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)
- type Migrator
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 storetypes.StoreKey, ps paramtypes.Subspace, stakingKeeper types.StakingKeeper, ) *Keeper
func (Keeper) AllowlistReset ¶
func (Keeper) AllowlistedExpeditedMsgs ¶
AllowlistedExpeditedMsgs returns the AllowlistedExpeditedMsgs param
func (Keeper) BeginBlock ¶
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) GetAllSpec ¶
GetAllSpec returns all Spec
func (Keeper) GetContributorReward ¶
func (k Keeper) GetContributorReward(ctx sdk.Context, chainId string) (contributors []sdk.AccAddress, percentage math.LegacyDec)
returns the reward per contributor
func (Keeper) GetExpandedSpec ¶
func (Keeper) GetExpectedServicesForExpandedSpec ¶
func (k Keeper) GetExpectedServicesForExpandedSpec(expandedSpec types.Spec, mandatory bool) map[epochstoragetypes.EndpointService]struct{}
func (Keeper) GetExpectedServicesForSpec ¶
func (k Keeper) GetExpectedServicesForSpec(ctx sdk.Context, chainID string, mandatory bool) (expectedServices map[epochstoragetypes.EndpointService]struct{}, err error)
returns map[apiInterface][]addons
func (Keeper) IsFinalizedBlock ¶
func (Keeper) IsSpecFoundAndActive ¶
func (k Keeper) IsSpecFoundAndActive(ctx sdk.Context, chainID string) (foundAndActive, found bool, providersType types.Spec_ProvidersTypes)
IsSpecFoundAndActive returns whether a spec name is a valid spec in the consensus. It returns whether the spec is active (and found), whether it was found, and the provider's type (e.g. dynamic/static).
func (Keeper) Params ¶
func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) RefreshSpec ¶
func (k Keeper) RefreshSpec(ctx sdk.Context, spec types.Spec, ancestors []types.Spec) ([]string, error)
RefreshSpec checks which one Spec inherits from another (just recently updated) Spec, and if so updates the the BlockLastUpdated of the former.
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)
type Migrator ¶
type Migrator struct {
// contains filtered or unexported fields
}