keeper

package
v0.0.0-...-aba6083 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 27, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMsgServerImpl

func NewMsgServerImpl(keeper Keeper) types.MsgServer

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

func (k Keeper) DowntimeDuration(ctx sdk.Context) (res string)

DowntimeDuration returns the DowntimeDuration param

func (Keeper) GetAllJoin

func (k Keeper) GetAllJoin(ctx sdk.Context) (list []types.Join)

GetAllJoin returns all join

func (Keeper) GetAllOracles

func (k Keeper) GetAllOracles(ctx sdk.Context) (list []types.Oracle)

func (Keeper) GetJoin

func (k Keeper) GetJoin(ctx sdk.Context, joinID uint64) (val types.Join, found bool)

GetJoin returns a join from its index

func (Keeper) GetNextJoinID

func (k Keeper) GetNextJoinID(ctx sdk.Context) uint64

func (Keeper) GetOracle

func (k Keeper) GetOracle(ctx sdk.Context, operatorAddress string) (oracle types.Oracle, found bool)

func (Keeper) GetOracleCount

func (k Keeper) GetOracleCount(ctx sdk.Context) uint32

func (Keeper) GetOraclePubKey

func (k Keeper) GetOraclePubKey(ctx sdk.Context) (pubKey types.OraclePubKey, found bool)

func (Keeper) GetParams

func (k Keeper) GetParams(ctx sdk.Context) types.Params

GetParams get all parameters as types.Params

func (Keeper) InsertToPendingJoinQueue

func (k Keeper) InsertToPendingJoinQueue(ctx sdk.Context, joinID uint64)

func (Keeper) IteratePendingJoinQueue

func (k Keeper) IteratePendingJoinQueue(ctx sdk.Context, cb func(join types.Join) (stop bool))

func (Keeper) IterateVoteForJoins

func (k Keeper) IterateVoteForJoins(ctx sdk.Context, joinID uint64, cb func(vote types.VoteForJoin) (stop bool))

func (Keeper) Logger

func (k Keeper) Logger(ctx sdk.Context) log.Logger

func (Keeper) MaxOracles

func (k Keeper) MaxOracles(ctx sdk.Context) (res uint64)

MaxOracles returns the MaxOracles param

func (Keeper) Params

func (Keeper) PendingJoinQueueIterator

func (k Keeper) PendingJoinQueueIterator(ctx sdk.Context) sdk.Iterator

func (Keeper) RemoveFromPendingJoinQueue

func (k Keeper) RemoveFromPendingJoinQueue(ctx sdk.Context, joinID uint64)

func (Keeper) SetJoin

func (k Keeper) SetJoin(ctx sdk.Context, join types.Join)

SetJoin set a specific join in the store from its index

func (Keeper) SetNextJoinID

func (k Keeper) SetNextJoinID(ctx sdk.Context, id uint64)

func (Keeper) SetOracle

func (k Keeper) SetOracle(ctx sdk.Context, oracle types.Oracle)

func (Keeper) SetOraclePubKey

func (k Keeper) SetOraclePubKey(ctx sdk.Context, pubKey types.OraclePubKey)

func (Keeper) SetParams

func (k Keeper) SetParams(ctx sdk.Context, params types.Params)

SetParams set the params

func (Keeper) SetVoteForJoin

func (k Keeper) SetVoteForJoin(ctx sdk.Context, vote types.VoteForJoin) error

AddVoteForJoin adds a vote on a specific join

func (Keeper) SlashFractionDowntime

func (k Keeper) SlashFractionDowntime(ctx sdk.Context) (res string)

SlashFractionDowntime returns the SlashFractionDowntime param

func (Keeper) SlashFractionWrongVote

func (k Keeper) SlashFractionWrongVote(ctx sdk.Context) (res string)

SlashFractionWrongVote returns the SlashFractionWrongVote param

func (Keeper) Tally

func (k Keeper) Tally(ctx sdk.Context, join types.Join) (done bool, approved bool, tallyResults types.TallyResult)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL