pbb

package
v0.0.0-...-ccbdc65 Latest Latest
Warning

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

Go to latest
Published: May 16, 2020 License: GPL-3.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BulletinBoardModuleName = types.BulletinBoardModuleName
	BallotStoreKey          = types.BallotStoreKey
	VoterCredentialStoreKey = types.VoterCredentialStoreKey
	PolynomialStoreKey      = types.PolynomialStoreKey
	DefaultParamSpace       = types.DefaultParamSpace
)
View Source
const (
	EventTypeBallot          = "ballot"
	EventTypeVoterCredential = "voterCredential"

	AttributeKeyElectionCredential = "electionCredential"
	AttributeKeyVote               = "vote"
	AttributeKeyVoterCredential    = "voterCredential"
)

Variables

View Source
var (
	NewBulletinBoardKeeper = keeper.NewBulletinBoardKeeper
	NewQuerier             = keeper.NewQuerier
	ModuleCdc              = types.ModuleCdc
	RegisterCodec          = types.RegisterCodec
)
View Source
var (
	// ModuleManager is in charge of setting up basic module elements.
	ModuleManager = module.NewBasicManager(
		genaccounts.AppModuleBasic{},
		genutil.AppModuleBasic{},
		auth.AppModuleBasic{},
		bank.AppModuleBasic{},
		staking.AppModuleBasic{},
		supply.AppModuleBasic{},
		distr.AppModuleBasic{},
		params.AppModuleBasic{},
		AppModule{},
	)
)

Functions

func DefaultGenesisState

func DefaultGenesisState() types.GenesisState

func ExportGenesis

func ExportGenesis(ctx sdk.Context, bk keeper.BulletinBoardKeeper) types.GenesisState

ExportGenesis returns a GenesisState for a given context and bulletinBoardKeeper

func InitGenesis

func InitGenesis(ctx sdk.Context, bk keeper.BulletinBoardKeeper, data types.GenesisState)

InitGenesis - Init parameter store from genesis data

func MakeCodec

func MakeCodec() *codec.Codec

MakeCodec generates the necessary codecs for Amino

func NewHandler

func NewHandler(keeper BulletinBoardKeeper) sdk.Handler

NewHandler returns a handler for bulletin board messages

func ValidateGenesis

func ValidateGenesis(genesisState types.GenesisState) error

Types

type AppModule

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

func NewAppModule

func NewAppModule(k BulletinBoardKeeper) AppModule

func (AppModule) BeginBlock

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

func (AppModule) EndBlock

func (AppModule) ExportGenesis

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

func (AppModule) InitGenesis

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

func (AppModule) Name

func (AppModule) Name() string

func (AppModule) NewHandler

func (am AppModule) NewHandler() sdk.Handler

func (AppModule) NewQuerierHandler

func (am AppModule) NewQuerierHandler() sdk.Querier

func (AppModule) QuerierRoute

func (am AppModule) QuerierRoute() string

func (AppModule) RegisterInvariants

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

func (AppModule) Route

func (am AppModule) Route() string

type AppModuleBasic

type AppModuleBasic struct{}

func (AppModuleBasic) DefaultGenesis

func (AppModuleBasic) DefaultGenesis() json.RawMessage

func (AppModuleBasic) GetQueryCmd

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

Get the root query command of this module

func (AppModuleBasic) GetTxCmd

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

Get the root tx command of this module

func (AppModuleBasic) Name

func (AppModuleBasic) Name() string

func (AppModuleBasic) RegisterCodec

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

func (AppModuleBasic) RegisterRESTRoutes

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

Register rest routes

func (AppModuleBasic) ValidateGenesis

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

ValidateGenesis validates the Genesis block information given in the JSON message.

type Ballot

type Ballot = types.Ballot

type BulletinBoardApp

type BulletinBoardApp struct {
	*bam.BaseApp
	// contains filtered or unexported fields
}

func NewBulletinBoardApp

func NewBulletinBoardApp(logger log.Logger, db dbm.DB,
	baseAppOptions ...func(*bam.BaseApp)) *BulletinBoardApp

func (*BulletinBoardApp) BeginBlocker

func (*BulletinBoardApp) EndBlocker

func (*BulletinBoardApp) ExportAppStateAndValidators

func (app *BulletinBoardApp) ExportAppStateAndValidators(forZeroHeight bool, jailWhiteList []string,
) (appState json.RawMessage, validators []tmtypes.GenesisValidator, err error)

func (*BulletinBoardApp) InitChainer

func (*BulletinBoardApp) LoadHeight

func (app *BulletinBoardApp) LoadHeight(height int64) error

func (*BulletinBoardApp) ModuleAccountAddrs

func (app *BulletinBoardApp) ModuleAccountAddrs() map[string]bool

ModuleAccountAddrs returns all the app's module account addresses.

type BulletinBoardKeeper

type BulletinBoardKeeper = keeper.BulletinBoardKeeper

type MsgPutBallot

type MsgPutBallot = types.MsgPutBallot

type MsgPutVoterCredential

type MsgPutVoterCredential = types.MsgPutVoterCredential

type Params

type Params = types.Params

type QueryResVoterCredentials

type QueryResVoterCredentials = types.QueryResVoterCredentials

Directories

Path Synopsis
client
cli
internal

Jump to

Keyboard shortcuts

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