Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) DowntimeDuration(ctx sdk.Context) (res string)
- func (k Keeper) GetAllJoin(ctx sdk.Context) (list []types.Join)
- func (k Keeper) GetAllOracles(ctx sdk.Context) (list []types.Oracle)
- func (k Keeper) GetJoin(ctx sdk.Context, joinID uint64) (val types.Join, found bool)
- func (k Keeper) GetNextJoinID(ctx sdk.Context) uint64
- func (k Keeper) GetOracle(ctx sdk.Context, operatorAddress string) (oracle types.Oracle, found bool)
- func (k Keeper) GetOracleCount(ctx sdk.Context) uint32
- func (k Keeper) GetOraclePubKey(ctx sdk.Context) (pubKey types.OraclePubKey, found bool)
- func (k Keeper) GetParams(ctx sdk.Context) types.Params
- func (k Keeper) InsertToPendingJoinQueue(ctx sdk.Context, joinID uint64)
- func (k Keeper) IteratePendingJoinQueue(ctx sdk.Context, cb func(join types.Join) (stop bool))
- func (k Keeper) IterateVoteForJoins(ctx sdk.Context, joinID uint64, cb func(vote types.VoteForJoin) (stop bool))
- func (k Keeper) Join(c context.Context, req *types.QueryGetJoinRequest) (*types.QueryGetJoinResponse, error)
- func (k Keeper) JoinAll(c context.Context, req *types.QueryAllJoinRequest) (*types.QueryAllJoinResponse, error)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) MaxOracles(ctx sdk.Context) (res uint64)
- func (k Keeper) Oracle(c context.Context, req *types.QueryGetOracleRequest) (*types.QueryGetOracleResponse, error)
- func (k Keeper) OracleAll(c context.Context, req *types.QueryAllOracleRequest) (*types.QueryAllOracleResponse, error)
- func (k Keeper) OraclePubKey(c context.Context, req *types.QueryGetOraclePubKeyRequest) (*types.QueryGetOraclePubKeyResponse, error)
- func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) PendingJoinQueueIterator(ctx sdk.Context) sdk.Iterator
- func (k Keeper) RemoveFromPendingJoinQueue(ctx sdk.Context, joinID uint64)
- func (k Keeper) SetJoin(ctx sdk.Context, join types.Join)
- func (k Keeper) SetNextJoinID(ctx sdk.Context, id uint64)
- func (k Keeper) SetOracle(ctx sdk.Context, oracle types.Oracle)
- func (k Keeper) SetOraclePubKey(ctx sdk.Context, pubKey types.OraclePubKey)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) SetVoteForJoin(ctx sdk.Context, vote types.VoteForJoin) error
- func (k Keeper) SlashFractionDowntime(ctx sdk.Context) (res string)
- func (k Keeper) SlashFractionWrongVote(ctx sdk.Context) (res string)
- func (k Keeper) Tally(ctx sdk.Context, join types.Join) (done bool, approved bool, tallyResults types.TallyResult)
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 sdk.StoreKey, ps paramtypes.Subspace, accountKeeper types.AccountKeeper, bankKeeper types.BankKeeper, ) *Keeper
func (Keeper) DowntimeDuration ¶
DowntimeDuration returns the DowntimeDuration param
func (Keeper) GetAllJoin ¶
GetAllJoin returns all join
func (Keeper) GetOraclePubKey ¶
func (Keeper) InsertToPendingJoinQueue ¶
func (Keeper) IteratePendingJoinQueue ¶
func (Keeper) IterateVoteForJoins ¶
func (Keeper) Join ¶
func (k Keeper) Join(c context.Context, req *types.QueryGetJoinRequest) (*types.QueryGetJoinResponse, error)
func (Keeper) JoinAll ¶
func (k Keeper) JoinAll(c context.Context, req *types.QueryAllJoinRequest) (*types.QueryAllJoinResponse, error)
func (Keeper) MaxOracles ¶
MaxOracles returns the MaxOracles param
func (Keeper) Oracle ¶
func (k Keeper) Oracle(c context.Context, req *types.QueryGetOracleRequest) (*types.QueryGetOracleResponse, error)
func (Keeper) OracleAll ¶
func (k Keeper) OracleAll(c context.Context, req *types.QueryAllOracleRequest) (*types.QueryAllOracleResponse, error)
func (Keeper) OraclePubKey ¶
func (k Keeper) OraclePubKey(c context.Context, req *types.QueryGetOraclePubKeyRequest) (*types.QueryGetOraclePubKeyResponse, error)
func (Keeper) Params ¶
func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) PendingJoinQueueIterator ¶
func (Keeper) RemoveFromPendingJoinQueue ¶
func (Keeper) SetOraclePubKey ¶
func (k Keeper) SetOraclePubKey(ctx sdk.Context, pubKey types.OraclePubKey)
func (Keeper) SetVoteForJoin ¶
AddVoteForJoin adds a vote on a specific join
func (Keeper) SlashFractionDowntime ¶
SlashFractionDowntime returns the SlashFractionDowntime param
func (Keeper) SlashFractionWrongVote ¶
SlashFractionWrongVote returns the SlashFractionWrongVote param
Click to show internal directories.
Click to hide internal directories.