Documentation ¶
Index ¶
- Constants
- Variables
- func NewQuerier(k Keeper) sdk.Querier
- type Keeper
- func (k *Keeper) Create(ctx sdk.Context, msg types.MsgCreate) (*executionpb.Execution, error)
- func (k *Keeper) Get(ctx sdk.Context, hash hash.Hash) (*executionpb.Execution, error)
- func (k Keeper) GetParams(ctx sdk.Context) types.Params
- func (k *Keeper) List(ctx sdk.Context, filter types.ListFilter) ([]*executionpb.Execution, error)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) MinPrice(ctx sdk.Context) string
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k *Keeper) Update(ctx sdk.Context, msg types.MsgUpdate) (*executionpb.Execution, error)
- type Metric
Constants ¶
View Source
const (
DefaultParamspace = types.ModuleName
)
Default parameter namespace
Variables ¶
View Source
var M = NewMetric()
M is global metric variable.
Functions ¶
func NewQuerier ¶
NewQuerier creates a new querier for execution clients.
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
Keeper of the execution store
func NewKeeper ¶
func NewKeeper(cdc *codec.Codec, key sdk.StoreKey, bankKeeper types.BankKeeper, serviceKeeper types.ServiceKeeper, instanceKeeper types.InstanceKeeper, runnerKeeper types.RunnerKeeper, processKeeper types.ProcessKeeper, paramstore params.Subspace) Keeper
NewKeeper creates a execution keeper
func (*Keeper) Create ¶
Create creates a new execution with proposed status. The execution reaches consensus only when more than 2/3 of emitters proposed the same execution. TODO: we should split the message and keeper function of execution create from user and for process.
func (*Keeper) List ¶
func (k *Keeper) List(ctx sdk.Context, filter types.ListFilter) ([]*executionpb.Execution, error)
List returns all executions.
Click to show internal directories.
Click to hide internal directories.