Documentation ¶
Overview ¶
nolint
Index ¶
- Constants
- Variables
- func BuildAndSignMulti(cdc *codec.Codec, address sdk.Address, publicKey crypto.PublicKeyMultiSig, ...) (txBytes []byte, err error)
- func ChangeParamsTx(cdc *codec.Codec, tmNode client.Client, keybase keys.Keybase, ...) (*sdk.TxResponse, error)
- func DAOTransferTx(cdc *codec.Codec, tmNode client.Client, keybase keys.Keybase, ...) (*sdk.TxResponse, error)
- func NewHandler(k keeper.Keeper) sdk.Handler
- func QueryACL(cdc *codec.Codec, tmNode rpcclient.Client, height int64) (acl types.ACL, err error)
- func QueryDAO(cdc *codec.Codec, tmNode rpcclient.Client, height int64) (daoCoins sdk.Int, err error)
- func QueryDAOOwner(cdc *codec.Codec, tmNode rpcclient.Client, height int64) (daoOwner sdk.Address, err error)
- func QueryUpgrade(cdc *codec.Codec, tmNode rpcclient.Client, height int64) (upgrade types.Upgrade, err error)
- func SignMulti(cdc *codec.Codec, fromAddr sdk.Address, tx []byte, keys []crypto.PublicKey, ...) (txBytes []byte, err error)
- func UpgradeTx(cdc *codec.Codec, tmNode client.Client, keybase keys.Keybase, ...) (*sdk.TxResponse, error)
- type AppModule
- func (am AppModule) BeginBlock(ctx sdk.Ctx, req abci.RequestBeginBlock)
- func (am AppModule) EndBlock(ctx sdk.Ctx, req abci.RequestEndBlock) []abci.ValidatorUpdate
- func (am AppModule) ExportGenesis(ctx sdk.Ctx) json.RawMessage
- func (am AppModule) InitGenesis(ctx sdk.Ctx, data json.RawMessage) []abci.ValidatorUpdate
- func (AppModule) Name() string
- func (am AppModule) NewHandler() sdk.Handler
- func (am AppModule) NewQuerierHandler() sdk.Querier
- func (AppModule) QuerierRoute() string
- func (am AppModule) RegisterInvariants(_ sdk.InvariantRegistry)
- func (AppModule) Route() string
- type AppModuleBasic
Constants ¶
const ( StoreKey = types.StoreKey TStoreKey = types.TStoreKey DefaultCodespace = types.DefaultCodespace ModuleName = types.ModuleName RouterKey = types.RouterKey )
Variables ¶
var ( RegisterCodec = types.RegisterCodec // variable aliases ModuleCdc = types.ModuleCdc )
Functions ¶
func BuildAndSignMulti ¶
func ChangeParamsTx ¶
func DAOTransferTx ¶
func QueryDAOOwner ¶
func QueryUpgrade ¶
Types ¶
type AppModule ¶
type AppModule struct { AppModuleBasic // contains filtered or unexported fields }
AppModule implements an application module for the staking module.
func NewAppModule ¶
NewAppModule creates a new AppModule object
func (AppModule) BeginBlock ¶
func (am AppModule) BeginBlock(ctx sdk.Ctx, req abci.RequestBeginBlock)
module begin-block
func (AppModule) EndBlock ¶
func (am AppModule) EndBlock(ctx sdk.Ctx, req abci.RequestEndBlock) []abci.ValidatorUpdate
EndBlock returns the end blocker for the staking module. It returns no validator updates.
func (AppModule) ExportGenesis ¶
func (am AppModule) ExportGenesis(ctx sdk.Ctx) json.RawMessage
ExportGenesis returns the exported genesis state as raw bytes for the staking module.
func (AppModule) InitGenesis ¶
func (am AppModule) InitGenesis(ctx sdk.Ctx, data json.RawMessage) []abci.ValidatorUpdate
InitGenesis performs genesis initialization for the pos module. It returns no validator updates.
func (AppModule) NewHandler ¶
NewHandler returns an sdk.Handler for the staking module.
func (AppModule) NewQuerierHandler ¶
NewQuerierHandler returns the staking module sdk.Querier.
func (AppModule) QuerierRoute ¶
QuerierRoute returns the staking module's querier route name.
func (AppModule) RegisterInvariants ¶
func (am AppModule) RegisterInvariants(_ sdk.InvariantRegistry)
RegisterInvariants registers the staking module invariants.
type AppModuleBasic ¶
type AppModuleBasic struct{}
app module basics object
func (AppModuleBasic) DefaultGenesis ¶
func (AppModuleBasic) DefaultGenesis() json.RawMessage
default genesis state
func (AppModuleBasic) RegisterCodec ¶
func (AppModuleBasic) RegisterCodec(cdc *codec.Codec)
register module codec
func (AppModuleBasic) ValidateGenesis ¶
func (AppModuleBasic) ValidateGenesis(_ json.RawMessage) error
module validate genesis