rand

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

README

x/rand

난수 관련 모듈

Keeper

  • SetRound
  • GetRound
  • GetOwner
  • GetTargets
  • SetTargets
  • SetNonce
  • GetIDsIterator

Msgs

  • NewMsgNewRound
  • NewMsgDeployNonce
  • NewMsgAddTargets
  • NewMsgRemoveTargets

Handler

  • handleMsgNewRound
  • handleMsgDeployNonce
  • handleMsgAddTargets
  • handleMsgRemoveTargets

Documentation

Index

Constants

View Source
const (
	// ModuleName -
	ModuleName = types.ModuleName

	// RouterKey -
	RouterKey = types.RouterKey

	// StoreKey -
	StoreKey = types.StoreKey
)

Variables

View Source
var (
	NewKeeper  = keeper.NewKeeper
	NewQuerier = keeper.NewQuerier

	// NewMsgNewRound -
	NewMsgNewRound = types.NewMsgNewRound

	// NewMsgDeployNonce -
	NewMsgDeployNonce = types.NewMsgDeployNonce

	// NewMsgAddTargets -
	NewMsgAddTargets = types.NewMsgAddTargets

	// NewMsgUpdateTargets -
	NewMsgUpdateTargets = types.NewMsgUpdateTargets

	// ModuleCdc -
	ModuleCdc = types.ModuleCdc

	// RegisterCodec -
	RegisterCodec = types.RegisterCodec
)

Functions

func InitGenesis

func InitGenesis(ctx sdk.Context, keeper Keeper, data GenesisState) []abci.ValidatorUpdate

InitGenesis -

func NewHandler

func NewHandler(keeper Keeper) sdk.Handler

NewHandler -

func ValidateGenesis

func ValidateGenesis(data GenesisState) error

ValidateGenesis -

Types

type AppModule

type AppModule struct {
	AppModuleBasic
	// contains filtered or unexported fields
}

AppModule -

func NewAppModule

func NewAppModule(k Keeper, bankKeeper bank.Keeper) AppModule

NewAppModule -

func (AppModule) BeginBlock

func (am AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock)

BeginBlock -

func (AppModule) EndBlock

EndBlock -

func (AppModule) ExportGenesis

func (am AppModule) ExportGenesis(ctx sdk.Context) json.RawMessage

ExportGenesis -

func (AppModule) InitGenesis

func (am AppModule) InitGenesis(ctx sdk.Context, data json.RawMessage) []abci.ValidatorUpdate

InitGenesis -

func (AppModule) Name

func (AppModule) Name() string

Name -

func (AppModule) NewHandler

func (am AppModule) NewHandler() sdk.Handler

NewHandler -

func (AppModule) NewQuerierHandler

func (am AppModule) NewQuerierHandler() sdk.Querier

NewQuerierHandler -

func (AppModule) QuerierRoute

func (am AppModule) QuerierRoute() string

QuerierRoute -

func (AppModule) RegisterInvariants

func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)

RegisterInvariants -

func (AppModule) Route

func (am AppModule) Route() string

Route -

type AppModuleBasic

type AppModuleBasic struct{}

AppModuleBasic -

func (AppModuleBasic) DefaultGenesis

func (AppModuleBasic) DefaultGenesis() json.RawMessage

DefaultGenesis -

func (AppModuleBasic) GetQueryCmd

func (AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command

GetQueryCmd -

func (AppModuleBasic) GetTxCmd

func (AppModuleBasic) GetTxCmd(cdc *codec.Codec) *cobra.Command

GetTxCmd -

func (AppModuleBasic) Name

func (AppModuleBasic) Name() string

Name -

func (AppModuleBasic) RegisterCodec

func (AppModuleBasic) RegisterCodec(cdc *codec.Codec)

RegisterCodec -

func (AppModuleBasic) RegisterRESTRoutes

func (AppModuleBasic) RegisterRESTRoutes(ctx context.CLIContext, rtr *mux.Router)

RegisterRESTRoutes -

func (AppModuleBasic) ValidateGenesis

func (AppModuleBasic) ValidateGenesis(bz json.RawMessage) error

ValidateGenesis -

type GenesisState

type GenesisState struct {
	StartingBlockHeight uint64 `json:"starting_block_height"`
	Rounds              Rounds `json:"rounds"`
}

GenesisState -

func DefaultGenesisState

func DefaultGenesisState() GenesisState

DefaultGenesisState -

func ExportGenesis

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

ExportGenesis returns a GenesisState for a given context and keeper.

func NewGenesisState

func NewGenesisState(startingBlockHeight uint64) GenesisState

NewGenesisState -

type Keeper

type Keeper = keeper.Keeper

type MsgAddTargets

type MsgAddTargets = types.MsgAddTargets

MsgAddTargets -

type MsgDeployNonce

type MsgDeployNonce = types.MsgDeployNonce

MsgDeployNonce -

type MsgNewRound

type MsgNewRound = types.MsgNewRound

MsgNewRound -

type MsgUpdateTargets

type MsgUpdateTargets = types.MsgUpdateTargets

MsgUpdateTargets -

type Nonce added in v0.1.3

type Nonce = types.Nonce

Nonce -

type QueryResRoundIDs

type QueryResRoundIDs = types.QueryResRoundIDs

QueryResRoundIDs -

type Round

type Round = types.Round

Round -

type Rounds

type Rounds = types.Rounds

Rounds -

Directories

Path Synopsis
client
cli
internal

Jump to

Keyboard shortcuts

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