Versions in this module Expand all Collapse all v1 v1.3.1 Feb 6, 2021 v1.3.0 Jan 15, 2021 Changes in this version + const QueryOperator + const QueryOperators + const QueryResponse + const QueryTask + const QueryWithdraws + func NewQuerier(keeper Keeper) sdk.Querier + type Keeper struct + func NewKeeper(cdc *codec.Codec, storeKey sdk.StoreKey, authKeeper types.AuthKeeper, ...) Keeper + func (k Keeper) AddCollateral(ctx sdk.Context, address sdk.AccAddress, increment sdk.Coins) error + func (k Keeper) AddReward(ctx sdk.Context, address sdk.AccAddress, increment sdk.Coins) error + func (k Keeper) AddTotalCollateral(ctx sdk.Context, increment sdk.Coins) error + func (k Keeper) Aggregate(ctx sdk.Context, contract, function string) error + func (k Keeper) CollectBounty(ctx sdk.Context, value sdk.Coins, creator sdk.AccAddress) error + func (k Keeper) CreateOperator(ctx sdk.Context, address sdk.AccAddress, collateral sdk.Coins, ...) error + func (k Keeper) CreateTask(ctx sdk.Context, contract string, function string, bounty sdk.Coins, ...) error + func (k Keeper) CreateWithdraw(ctx sdk.Context, address sdk.AccAddress, amount sdk.Coins) error + func (k Keeper) DeleteClosingTaskIDs(ctx sdk.Context, closingBlock int64) + func (k Keeper) DeleteOperator(ctx sdk.Context, address sdk.AccAddress) error + func (k Keeper) DeleteTask(ctx sdk.Context, task types.Task) error + func (k Keeper) DeleteWithdraw(ctx sdk.Context, address sdk.AccAddress, startTime int64) error + func (k Keeper) DistributeBounty(ctx sdk.Context, task types.Task) error + func (k Keeper) FinalizeMatureWithdraws(ctx sdk.Context) + func (k Keeper) FundCommunityPool(ctx sdk.Context, amount sdk.Coins) error + func (k Keeper) GetAllOperators(ctx sdk.Context) types.Operators + func (k Keeper) GetAllTasks(ctx sdk.Context) (tasks []types.Task) + func (k Keeper) GetAllWithdraws(ctx sdk.Context) types.Withdraws + func (k Keeper) GetAllWithdrawsForExport(ctx sdk.Context) types.Withdraws + func (k Keeper) GetAuthKeeper() types.AuthKeeper + func (k Keeper) GetClosingTaskIDs(ctx sdk.Context, closingBlock int64) []types.TaskID + func (k Keeper) GetCollateralAmount(ctx sdk.Context, address sdk.AccAddress) (sdk.Int, error) + func (k Keeper) GetLockedPoolParams(ctx sdk.Context) types.LockedPoolParams + func (k Keeper) GetOperator(ctx sdk.Context, address sdk.AccAddress) (types.Operator, error) + func (k Keeper) GetTask(ctx sdk.Context, contract, function string) (types.Task, error) + func (k Keeper) GetTaskParams(ctx sdk.Context) types.TaskParams + func (k Keeper) GetTotalCollateral(ctx sdk.Context) (sdk.Coins, error) + func (k Keeper) IsBelowMinCollateral(ctx sdk.Context, currentCollateral sdk.Coins) bool + func (k Keeper) IsOperator(ctx sdk.Context, address sdk.AccAddress) bool + func (k Keeper) IsValidResponse(ctx sdk.Context, task types.Task, response types.Response) error + func (k Keeper) IterateAllOperators(ctx sdk.Context, callback func(operator types.Operator) (stop bool)) + func (k Keeper) IterateAllWithdraws(ctx sdk.Context, callback func(withdraw types.Withdraw) (stop bool)) + func (k Keeper) IterateMatureWithdraws(ctx sdk.Context, callback func(withdraw types.Withdraw) (stop bool)) + func (k Keeper) IteratorAllTasks(ctx sdk.Context, callback func(task types.Task) (stop bool)) + func (k Keeper) ReduceCollateral(ctx sdk.Context, address sdk.AccAddress, decrement sdk.Coins) error + func (k Keeper) ReduceTotalCollateral(ctx sdk.Context, decrement sdk.Coins) error + func (k Keeper) RemoveOperator(ctx sdk.Context, address sdk.AccAddress) error + func (k Keeper) RemoveTask(ctx sdk.Context, contract, function string, force bool, creator sdk.AccAddress) error + func (k Keeper) RespondToTask(ctx sdk.Context, contract string, function string, score int64, ...) error + func (k Keeper) SetClosingBlockStore(ctx sdk.Context, task types.Task) + func (k Keeper) SetLockedPoolParams(ctx sdk.Context, poolParams types.LockedPoolParams) + func (k Keeper) SetOperator(ctx sdk.Context, operator types.Operator) + func (k Keeper) SetTask(ctx sdk.Context, task types.Task) + func (k Keeper) SetTaskParams(ctx sdk.Context, taskParams types.TaskParams) + func (k Keeper) SetTotalCollateral(ctx sdk.Context, collateral sdk.Coins) + func (k Keeper) SetWithdraw(ctx sdk.Context, withdraw types.Withdraw) + func (k Keeper) TotalValidTaskCollateral(ctx sdk.Context, task types.Task) sdk.Int + func (k Keeper) UpdateAndGetAllTasks(ctx sdk.Context) (tasks []types.Task) + func (k Keeper) UpdateAndSetTask(ctx sdk.Context, task types.Task) + func (k Keeper) WithdrawAllReward(ctx sdk.Context, address sdk.AccAddress) (sdk.Coins, error) Other modules containing this package github.com/certikfoundation/shentu/v2