committee

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2021 License: Apache-2.0 Imports: 20 Imported by: 1

Documentation

Index

Constants

View Source
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
	QueryNextProposalID             = types.QueryNextProposalID
	QueryProposal                   = types.QueryProposal
	QueryProposals                  = types.QueryProposals
	QueryRawParams                  = types.QueryRawParams
	QueryTally                      = types.QueryTally
	QueryVote                       = types.QueryVote
	QueryVotes                      = types.QueryVotes
	RouterKey                       = types.RouterKey
	StoreKey                        = types.StoreKey
	TypeMsgSubmitProposal           = types.TypeMsgSubmitProposal
	TypeMsgVote                     = types.TypeMsgVote
)

Variables

View Source
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
	NewAllowedCollateralParam   = types.NewAllowedCollateralParam
	NewAllowedMoneyMarket       = types.NewAllowedMoneyMarket
	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
	NewQueryRawParamsParams     = types.NewQueryRawParamsParams
	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
	ErrUnknownSubspace         = types.ErrUnknownSubspace
	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

func NewHandler(k keeper.Keeper) sdk.Handler

NewHandler creates an sdk.Handler for committee messages

func NewProposalHandler

func NewProposalHandler(k Keeper) govtypes.Handler

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 AllowedMoneyMarket added in v0.13.0

type AllowedMoneyMarket = types.AllowedMoneyMarket

type AllowedMoneyMarkets added in v0.13.0

type AllowedMoneyMarkets = types.AllowedMoneyMarkets

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

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) Name

func (AppModule) Name() string

Name module name

func (AppModule) NewHandler

func (am AppModule) NewHandler() sdk.Handler

NewHandler module handler

func (AppModule) NewQuerierHandler

func (am AppModule) NewQuerierHandler() sdk.Querier

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

func (AppModule) QuerierRoute() string

QuerierRoute module querier route name

func (AppModule) RegisterInvariants

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

RegisterInvariants register module invariants

func (AppModule) Route

func (AppModule) Route() string

Route module message route name

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) Name

func (AppModuleBasic) Name() string

Name gets the module name

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 Committee

type Committee = types.Committee

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 Keeper

type Keeper = keeper.Keeper

type MsgSubmitProposal

type MsgSubmitProposal = types.MsgSubmitProposal

type MsgVote

type MsgVote = types.MsgVote

type ParamKeeper

type ParamKeeper = types.ParamKeeper

type Permission

type Permission = types.Permission

type Proposal

type Proposal = types.Proposal

type PubProposal

type PubProposal = types.PubProposal

type QueryCommitteeParams

type QueryCommitteeParams = types.QueryCommitteeParams

type QueryProposalParams

type QueryProposalParams = types.QueryProposalParams

type QueryRawParamsParams added in v0.11.0

type QueryRawParamsParams = types.QueryRawParamsParams

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

type Vote

type Vote = types.Vote

Directories

Path Synopsis
cli
legacy

Jump to

Keyboard shortcuts

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