Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) AddKeysToProject(ctx sdk.Context, projectID, adminKey string, projectKeys []types.ProjectKey) error
- func (k Keeper) ChargeComputeUnitsToProject(ctx sdk.Context, project types.Project, blockHeight, cu uint64) (err error)
- func (k Keeper) CreateAdminProject(ctx sdk.Context, subAddr string, plan plantypes.Plan) error
- func (k Keeper) CreateProject(ctx sdk.Context, subAddr string, projectData types.ProjectData, ...) error
- func (k Keeper) DelKeysFromProject(ctx sdk.Context, projectID, adminKey string, projectKeys []types.ProjectKey) error
- func (k Keeper) DeleteProject(ctx sdk.Context, creator, projectID string) error
- func (k Keeper) Developer(goCtx context.Context, req *types.QueryDeveloperRequest) (*types.QueryDeveloperResponse, error)
- func (k Keeper) ExportDevelopers(ctx sdk.Context) fixationtypes.GenesisState
- func (k Keeper) ExportProjects(ctx sdk.Context) fixationtypes.GenesisState
- func (k Keeper) GetAllProjectsForSubscription(ctx sdk.Context, subscription string) []string
- func (k Keeper) GetParams(ctx sdk.Context) types.Params
- func (k Keeper) GetProjectDeveloperData(ctx sdk.Context, developerKey string, blockHeight uint64) (types.ProtoDeveloperData, error)
- func (k Keeper) GetProjectForBlock(ctx sdk.Context, projectID string, block uint64) (types.Project, error)
- func (k Keeper) GetProjectForDeveloper(ctx sdk.Context, developerKey string, blockHeight uint64) (proj types.Project, errRet error)
- func (k Keeper) Info(goCtx context.Context, req *types.QueryInfoRequest) (*types.QueryInfoResponse, error)
- func (k Keeper) InitDevelopers(ctx sdk.Context, gs fixationtypes.GenesisState)
- func (k Keeper) InitProjects(ctx sdk.Context, gs fixationtypes.GenesisState)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) SetProjectPolicy(ctx sdk.Context, projectIDs []string, policy *planstypes.Policy, key string, ...) error
- func (k Keeper) SnapshotSubscriptionProjects(ctx sdk.Context, subscriptionAddr string, block uint64)
- type Migrator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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, epochstorageKeeper types.EpochStorageKeeper, fixationStoreKeeper types.FixationStoreKeeper, ) *Keeper
func (Keeper) AddKeysToProject ¶
func (k Keeper) AddKeysToProject(ctx sdk.Context, projectID, adminKey string, projectKeys []types.ProjectKey) error
AddKeysToProject adds keys to a project. Keys are added immediately, retroactively effective at the start of this epoch. The adminKey must be valid (and specifically, not already marked for deletion by next epoch).
func (Keeper) ChargeComputeUnitsToProject ¶
func (k Keeper) ChargeComputeUnitsToProject(ctx sdk.Context, project types.Project, blockHeight, cu uint64) (err error)
ChargeComputUnitsToProject charges use of CU to the project at a given block. Propgage the charge to subsequent versions (blocks) within the same snapshot.
func (Keeper) CreateAdminProject ¶
CreateAdminProject creates the (default) admin project
func (Keeper) CreateProject ¶
func (k Keeper) CreateProject(ctx sdk.Context, subAddr string, projectData types.ProjectData, plan plantypes.Plan) error
CreateProject adds a new project to a subscription (takes effect retroactively at the beginning of this epoch)
func (Keeper) DelKeysFromProject ¶
func (k Keeper) DelKeysFromProject(ctx sdk.Context, projectID, adminKey string, projectKeys []types.ProjectKey) error
DelKeysFromProject delete keys from a project. Keys are marked for deleteion due by the beginning of next epoch. The adminKey must be valid (specifically, not already marked for deletion by next epoch).
func (Keeper) DeleteProject ¶
DeleteProject deletes a project from a subscription (takes effect at the beginning of next epoch)
func (Keeper) Developer ¶
func (k Keeper) Developer(goCtx context.Context, req *types.QueryDeveloperRequest) (*types.QueryDeveloperResponse, error)
func (Keeper) ExportDevelopers ¶
func (k Keeper) ExportDevelopers(ctx sdk.Context) fixationtypes.GenesisState
func (Keeper) ExportProjects ¶
func (k Keeper) ExportProjects(ctx sdk.Context) fixationtypes.GenesisState
func (Keeper) GetAllProjectsForSubscription ¶
GetAllProjectsForSubscription returns a list of all projectID for a subscription
func (Keeper) GetProjectDeveloperData ¶
func (Keeper) GetProjectForBlock ¶
func (k Keeper) GetProjectForBlock(ctx sdk.Context, projectID string, block uint64) (types.Project, error)
GetProjectForBlock returns the version of a given project at a given block
func (Keeper) GetProjectForDeveloper ¶
func (Keeper) Info ¶
func (k Keeper) Info(goCtx context.Context, req *types.QueryInfoRequest) (*types.QueryInfoResponse, error)
func (Keeper) InitDevelopers ¶
func (k Keeper) InitDevelopers(ctx sdk.Context, gs fixationtypes.GenesisState)
func (Keeper) InitProjects ¶
func (k Keeper) InitProjects(ctx sdk.Context, gs fixationtypes.GenesisState)
func (Keeper) Params ¶
func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) SetProjectPolicy ¶
func (k Keeper) SetProjectPolicy(ctx sdk.Context, projectIDs []string, policy *planstypes.Policy, key string, setPolicyEnum types.SetPolicyEnum) error
SetProjectPolicy applies new policies to project(s). The change will take effect in the beginning of the next epoch. The adminKey must be valid (and specifically, not already marked for deletion by next epoch).
type Migrator ¶
type Migrator struct {
// contains filtered or unexported fields
}