Documentation ¶
Index ¶
- Constants
- Variables
- func DefaultGenesisState() types.GenesisState
- func ExportGenesis(ctx sdk.Context, bk keeper.BulletinBoardKeeper) types.GenesisState
- func InitGenesis(ctx sdk.Context, bk keeper.BulletinBoardKeeper, data types.GenesisState)
- func MakeCodec() *codec.Codec
- func NewHandler(keeper BulletinBoardKeeper) sdk.Handler
- func ValidateGenesis(genesisState types.GenesisState) error
- type AppModule
- func (am AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock)
- func (am AppModule) EndBlock(sdk.Context, abci.RequestEndBlock) []abci.ValidatorUpdate
- func (am AppModule) ExportGenesis(ctx sdk.Context) json.RawMessage
- func (am AppModule) InitGenesis(ctx sdk.Context, data json.RawMessage) []abci.ValidatorUpdate
- func (AppModule) Name() string
- func (am AppModule) NewHandler() sdk.Handler
- func (am AppModule) NewQuerierHandler() sdk.Querier
- func (am AppModule) QuerierRoute() string
- func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)
- func (am AppModule) Route() string
- type AppModuleBasic
- func (AppModuleBasic) DefaultGenesis() json.RawMessage
- func (AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command
- func (AppModuleBasic) GetTxCmd(cdc *codec.Codec) *cobra.Command
- func (AppModuleBasic) Name() string
- func (AppModuleBasic) RegisterCodec(cdc *codec.Codec)
- func (AppModuleBasic) RegisterRESTRoutes(ctx context.CLIContext, rtr *mux.Router)
- func (AppModuleBasic) ValidateGenesis(bz json.RawMessage) error
- type Ballot
- type BulletinBoardApp
- func (app *BulletinBoardApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock
- func (app *BulletinBoardApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock
- func (app *BulletinBoardApp) ExportAppStateAndValidators(forZeroHeight bool, jailWhiteList []string) (appState json.RawMessage, validators []tmtypes.GenesisValidator, err error)
- func (app *BulletinBoardApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain
- func (app *BulletinBoardApp) LoadHeight(height int64) error
- func (app *BulletinBoardApp) ModuleAccountAddrs() map[string]bool
- type BulletinBoardKeeper
- type MsgPutBallot
- type MsgPutVoterCredential
- type Params
- type QueryResVoterCredentials
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 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 (am AppModule) EndBlock(sdk.Context, abci.RequestEndBlock) []abci.ValidatorUpdate
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) NewHandler ¶
func (AppModule) NewQuerierHandler ¶
func (AppModule) QuerierRoute ¶
func (AppModule) RegisterInvariants ¶
func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)
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 BulletinBoardApp ¶
func NewBulletinBoardApp ¶
func (*BulletinBoardApp) BeginBlocker ¶
func (app *BulletinBoardApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock
func (*BulletinBoardApp) EndBlocker ¶
func (app *BulletinBoardApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock
func (*BulletinBoardApp) ExportAppStateAndValidators ¶
func (app *BulletinBoardApp) ExportAppStateAndValidators(forZeroHeight bool, jailWhiteList []string, ) (appState json.RawMessage, validators []tmtypes.GenesisValidator, err error)
func (*BulletinBoardApp) InitChainer ¶
func (app *BulletinBoardApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain
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 QueryResVoterCredentials ¶
type QueryResVoterCredentials = types.QueryResVoterCredentials
Click to show internal directories.
Click to hide internal directories.