rand

package
v0.16.1 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultCodespace     = types.DefaultCodespace
	DefaultParamSpace    = types.DefaultParamSpace
	DefaultParams        = types.DefaultParams
	DefaultParamsForTest = types.DefaultParamsForTest
	ValidateParams       = types.ValidateParams
	RegisterCodec        = types.RegisterCodec

	NewMsgRequestRand    = types.NewMsgRequestRand
	NewRand              = types.NewRand
	NewRequest           = types.NewRequest
	MakePRNG             = types.MakePRNG
	GenerateRequestID    = types.GenerateRequestID
	CheckReqID           = types.CheckReqID
	DefaultBlockInterval = types.DefaultBlockInterval
	RandPrec             = types.RandPrec

	QueryRand             = types.QueryRand
	QueryRandRequestQueue = types.QueryRandRequestQueue

	TagReqID      = types.TagReqID
	TagRandHeight = types.TagRandHeight
	TagRand       = types.TagRand

	NewKeeper  = keeper.NewKeeper
	NewQuerier = keeper.NewQuerier
)

exported variables and functions

Functions

func BeginBlocker

func BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock, k Keeper) (tags sdk.Tags)

BeginBlocker handles block beginning logic for rand

func InitGenesis

func InitGenesis(ctx sdk.Context, k Keeper, data GenesisState)

InitGenesis stores genesis data

func NewHandler

func NewHandler(k Keeper) sdk.Handler

NewHandler handles all "rand" messages

func SortAddresses

func SortAddresses(addrs []sdk.AccAddress)

Sorts Addresses

func SortByteArrays

func SortByteArrays(src [][]byte) [][]byte

Public

Types

type GenesisState

type GenesisState = types.GenesisState

exported types

func DefaultGenesisState

func DefaultGenesisState() GenesisState

DefaultGenesisState gets the default genesis state

func DefaultGenesisStateForTest

func DefaultGenesisStateForTest() GenesisState

DefaultGenesisStateForTest gets the default genesis state for test

func ExportGenesis

func ExportGenesis(ctx sdk.Context, k Keeper) GenesisState

ExportGenesis outputs genesis data

type Keeper

type Keeper = keeper.Keeper

exported types

type MsgRequestRand

type MsgRequestRand = types.MsgRequestRand

exported types

type Params

type Params = types.Params

exported types

type QueryRandParams

type QueryRandParams = types.QueryRandParams

exported types

type QueryRandRequestQueueParams

type QueryRandRequestQueueParams = types.QueryRandRequestQueueParams

exported types

type Rand

type Rand = types.Rand

exported types

type Request

type Request = types.Request

exported types

type Requests

type Requests = types.Requests

exported types

Directories

Path Synopsis
internal
types
nolint nolint
nolint nolint

Jump to

Keyboard shortcuts

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