Documentation ¶
Index ¶
- Constants
- Variables
- func BeginBlocker(ctx sdk.Context, _ abci.RequestBeginBlock, k Keeper)
- func InitGenesis(ctx sdk.Context, keeper Keeper, gs GenesisState)
- func NewHandler(k keeper.Keeper) sdk.Handler
- func NewProposalHandler(k Keeper) govtypes.Handler
- type AllowedAssetParam
- type AllowedAssetParams
- type AllowedCollateralParam
- type AllowedCollateralParams
- type AllowedDebtParam
- type AllowedMarket
- type AllowedMarkets
- type AllowedParam
- type AllowedParams
- type AppModule
- func (am AppModule) BeginBlock(ctx sdk.Context, req 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) ProposalContents(simState module.SimulationState) []sim.WeightedProposalContent
- func (AppModule) QuerierRoute() string
- func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)
- func (AppModule) Route() string
- func (am AppModule) WeightedOperations(simState module.SimulationState) []sim.WeightedOperation
- type AppModuleBasic
- func (AppModuleBasic) DefaultGenesis() json.RawMessage
- func (AppModuleBasic) GenerateGenesisState(simState *module.SimulationState)
- func (AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command
- func (AppModuleBasic) GetTxCmd(cdc *codec.Codec) *cobra.Command
- func (AppModuleBasic) Name() string
- func (AppModuleBasic) RandomizedParams(r *rand.Rand) []sim.ParamChange
- func (AppModuleBasic) RegisterCodec(cdc *codec.Codec)
- func (AppModuleBasic) RegisterRESTRoutes(ctx context.CLIContext, rtr *mux.Router)
- func (AppModuleBasic) RegisterStoreDecoder(sdr sdk.StoreDecoderRegistry)
- func (AppModuleBasic) ValidateGenesis(bz json.RawMessage) error
- type Committee
- type CommitteeChangeProposal
- type CommitteeDeleteProposal
- type GenesisState
- type GodPermission
- type Keeper
- type MsgSubmitProposal
- type MsgVote
- type ParamKeeper
- type Permission
- type Proposal
- type PubProposal
- type QueryCommitteeParams
- type QueryProposalParams
- type QueryVoteParams
- type SimpleParamChangePermission
- type SoftwareUpgradePermission
- type SubParamChangePermission
- type TextPermission
- type Vote
Constants ¶
const ( AttributeKeyCommitteeID = types.AttributeKeyCommitteeID AttributeKeyProposalCloseStatus = types.AttributeKeyProposalCloseStatus AttributeKeyProposalID = types.AttributeKeyProposalID AttributeKeyVoter = types.AttributeKeyVoter AttributeValueCategory = types.AttributeValueCategory AttributeValueProposalFailed = types.AttributeValueProposalFailed AttributeValueProposalPassed = types.AttributeValueProposalPassed AttributeValueProposalTimeout = types.AttributeValueProposalTimeout DefaultNextProposalID = types.DefaultNextProposalID DefaultParamspace = types.DefaultParamspace EventTypeProposalClose = types.EventTypeProposalClose EventTypeProposalSubmit = types.EventTypeProposalSubmit EventTypeProposalVote = types.EventTypeProposalVote MaxCommitteeDescriptionLength = types.MaxCommitteeDescriptionLength ModuleName = types.ModuleName ProposalTypeCommitteeChange = types.ProposalTypeCommitteeChange ProposalTypeCommitteeDelete = types.ProposalTypeCommitteeDelete QuerierRoute = types.QuerierRoute QueryCommittee = types.QueryCommittee QueryCommittees = types.QueryCommittees QueryProposal = types.QueryProposal QueryProposals = types.QueryProposals QueryTally = types.QueryTally QueryVote = types.QueryVote QueryVotes = types.QueryVotes RouterKey = types.RouterKey StoreKey = types.StoreKey TypeMsgSubmitProposal = types.TypeMsgSubmitProposal TypeMsgVote = types.TypeMsgVote )
Variables ¶
var ( // function aliases NewKeeper = keeper.NewKeeper NewQuerier = keeper.NewQuerier RegisterInvariants = keeper.RegisterInvariants ValidCommitteesInvariant = keeper.ValidCommitteesInvariant ValidProposalsInvariant = keeper.ValidProposalsInvariant ValidVotesInvariant = keeper.ValidVotesInvariant DefaultGenesisState = types.DefaultGenesisState GetKeyFromID = types.GetKeyFromID GetVoteKey = types.GetVoteKey NewCommittee = types.NewCommittee NewCommitteeChangeProposal = types.NewCommitteeChangeProposal NewCommitteeDeleteProposal = types.NewCommitteeDeleteProposal NewGenesisState = types.NewGenesisState NewMsgSubmitProposal = types.NewMsgSubmitProposal NewMsgVote = types.NewMsgVote NewProposal = types.NewProposal NewQueryCommitteeParams = types.NewQueryCommitteeParams NewQueryProposalParams = types.NewQueryProposalParams NewQueryVoteParams = types.NewQueryVoteParams NewVote = types.NewVote RegisterCodec = types.RegisterCodec RegisterPermissionTypeCodec = types.RegisterPermissionTypeCodec RegisterProposalTypeCodec = types.RegisterProposalTypeCodec Uint64FromBytes = types.Uint64FromBytes // variable aliases ProposalHandler = client.ProposalHandler CommitteeKeyPrefix = types.CommitteeKeyPrefix ErrInvalidCommittee = types.ErrInvalidCommittee ErrInvalidGenesis = types.ErrInvalidGenesis ErrInvalidPubProposal = types.ErrInvalidPubProposal ErrNoProposalHandlerExists = types.ErrNoProposalHandlerExists ErrProposalExpired = types.ErrProposalExpired ErrUnknownCommittee = types.ErrUnknownCommittee ErrUnknownProposal = types.ErrUnknownProposal ErrUnknownVote = types.ErrUnknownVote ModuleCdc = types.ModuleCdc NextProposalIDKey = types.NextProposalIDKey ProposalKeyPrefix = types.ProposalKeyPrefix VoteKeyPrefix = types.VoteKeyPrefix )
Functions ¶
func BeginBlocker ¶
func BeginBlocker(ctx sdk.Context, _ abci.RequestBeginBlock, k Keeper)
BeginBlocker runs at the start of every block.
func InitGenesis ¶
func InitGenesis(ctx sdk.Context, keeper Keeper, gs GenesisState)
InitGenesis initializes the store state from a genesis state.
func NewHandler ¶
NewHandler creates an sdk.Handler for committee messages
func NewProposalHandler ¶
Types ¶
type AllowedAssetParam ¶
type AllowedAssetParam = types.AllowedAssetParam
type AllowedAssetParams ¶
type AllowedAssetParams = types.AllowedAssetParams
type AllowedCollateralParam ¶
type AllowedCollateralParam = types.AllowedCollateralParam
type AllowedCollateralParams ¶
type AllowedCollateralParams = types.AllowedCollateralParams
type AllowedDebtParam ¶
type AllowedDebtParam = types.AllowedDebtParam
type AllowedMarket ¶
type AllowedMarket = types.AllowedMarket
type AllowedMarkets ¶
type AllowedMarkets = types.AllowedMarkets
type AllowedParam ¶
type AllowedParam = types.AllowedParam
type AllowedParams ¶
type AllowedParams = types.AllowedParams
type AppModule ¶
type AppModule struct { AppModuleBasic // contains filtered or unexported fields }
AppModule app module type
func NewAppModule ¶
func NewAppModule(keeper Keeper, accountKeeper auth.AccountKeeper) AppModule
NewAppModule creates a new AppModule object
func (AppModule) BeginBlock ¶
func (am AppModule) BeginBlock(ctx sdk.Context, req abci.RequestBeginBlock)
BeginBlock module begin-block
func (AppModule) EndBlock ¶
func (am AppModule) EndBlock(_ sdk.Context, _ abci.RequestEndBlock) []abci.ValidatorUpdate
EndBlock module end-block
func (AppModule) ExportGenesis ¶
func (am AppModule) ExportGenesis(ctx sdk.Context) json.RawMessage
ExportGenesis module export genesis
func (AppModule) InitGenesis ¶
func (am AppModule) InitGenesis(ctx sdk.Context, data json.RawMessage) []abci.ValidatorUpdate
InitGenesis module init-genesis
func (AppModule) NewHandler ¶
NewHandler module handler
func (AppModule) NewQuerierHandler ¶
NewQuerierHandler module querier
func (AppModule) ProposalContents ¶
func (am AppModule) ProposalContents(simState module.SimulationState) []sim.WeightedProposalContent
ProposalContents returns functions that generate gov proposals for the module
func (AppModule) QuerierRoute ¶
QuerierRoute module querier route name
func (AppModule) RegisterInvariants ¶
func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)
RegisterInvariants register module invariants
func (AppModule) WeightedOperations ¶
func (am AppModule) WeightedOperations(simState module.SimulationState) []sim.WeightedOperation
WeightedOperations returns the module operations for use in simulations
type AppModuleBasic ¶
type AppModuleBasic struct{}
AppModuleBasic app module basics object
func (AppModuleBasic) DefaultGenesis ¶
func (AppModuleBasic) DefaultGenesis() json.RawMessage
DefaultGenesis default genesis state
func (AppModuleBasic) GenerateGenesisState ¶
func (AppModuleBasic) GenerateGenesisState(simState *module.SimulationState)
GenerateGenesisState creates a randomized GenState for the module
func (AppModuleBasic) GetQueryCmd ¶
func (AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command
GetQueryCmd returns the root query command for the module.
func (AppModuleBasic) GetTxCmd ¶
func (AppModuleBasic) GetTxCmd(cdc *codec.Codec) *cobra.Command
GetTxCmd returns the root tx command for the module.
func (AppModuleBasic) RandomizedParams ¶
func (AppModuleBasic) RandomizedParams(r *rand.Rand) []sim.ParamChange
RandomizedParams returns functions that generate params for the module
func (AppModuleBasic) RegisterCodec ¶
func (AppModuleBasic) RegisterCodec(cdc *codec.Codec)
RegisterCodec register module codec
func (AppModuleBasic) RegisterRESTRoutes ¶
func (AppModuleBasic) RegisterRESTRoutes(ctx context.CLIContext, rtr *mux.Router)
RegisterRESTRoutes registers the REST routes for the module.
func (AppModuleBasic) RegisterStoreDecoder ¶
func (AppModuleBasic) RegisterStoreDecoder(sdr sdk.StoreDecoderRegistry)
RegisterStoreDecoder registers a decoder for the module's types
func (AppModuleBasic) ValidateGenesis ¶
func (AppModuleBasic) ValidateGenesis(bz json.RawMessage) error
ValidateGenesis module validate genesis
type CommitteeChangeProposal ¶
type CommitteeChangeProposal = types.CommitteeChangeProposal
type CommitteeDeleteProposal ¶
type CommitteeDeleteProposal = types.CommitteeDeleteProposal
type GenesisState ¶
type GenesisState = types.GenesisState
func ExportGenesis ¶
func ExportGenesis(ctx sdk.Context, keeper Keeper) GenesisState
ExportGenesis returns a GenesisState for a given context and keeper.
type GodPermission ¶
type GodPermission = types.GodPermission
type MsgSubmitProposal ¶
type MsgSubmitProposal = types.MsgSubmitProposal
type ParamKeeper ¶
type ParamKeeper = types.ParamKeeper
type Permission ¶
type Permission = types.Permission
type PubProposal ¶
type PubProposal = types.PubProposal
type QueryCommitteeParams ¶
type QueryCommitteeParams = types.QueryCommitteeParams
type QueryProposalParams ¶
type QueryProposalParams = types.QueryProposalParams
type QueryVoteParams ¶
type QueryVoteParams = types.QueryVoteParams
type SimpleParamChangePermission ¶
type SimpleParamChangePermission = types.SimpleParamChangePermission
type SoftwareUpgradePermission ¶
type SoftwareUpgradePermission = types.SoftwareUpgradePermission
type SubParamChangePermission ¶
type SubParamChangePermission = types.SubParamChangePermission
type TextPermission ¶
type TextPermission = types.TextPermission