Documentation ¶
Overview ¶
nolint autogenerated code using github.com/rigelrozanski/multitool aliases generated for the following subdirectories: ALIASGEN: github.com/terra-project/core/x/treasury/internal/types/ ALIASGEN: github.com/terra-project/core/x/treasury/internal/keeper/
Index ¶
- Constants
- Variables
- func EndBlocker(ctx sdk.Context, k Keeper)
- func InitGenesis(ctx sdk.Context, keeper Keeper, data GenesisState)
- func NewTreasuryPolicyUpdateHandler(k Keeper) govtypes.Handler
- type AppModule
- func (am AppModule) BeginBlock(ctx sdk.Context, req abci.RequestBeginBlock)
- func (am AppModule) EndBlock(ctx sdk.Context, _ abci.RequestEndBlock) []abci.ValidatorUpdate
- func (am AppModule) ExportGenesis(ctx sdk.Context) json.RawMessage
- func (AppModule) GenerateGenesisState(simState *module.SimulationState)
- 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(_ module.SimulationState) []sim.WeightedProposalContent
- func (AppModule) QuerierRoute() string
- func (AppModule) RandomizedParams(r *rand.Rand) []sim.ParamChange
- func (AppModule) RegisterInvariants(_ sdk.InvariantRegistry)
- func (AppModule) RegisterStoreDecoder(sdr sdk.StoreDecoderRegistry)
- func (AppModule) Route() string
- func (am AppModule) WeightedOperations(simState module.SimulationState) []sim.WeightedOperation
- type AppModuleBasic
- func (AppModuleBasic) DefaultGenesis() json.RawMessage
- func (AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command
- func (AppModuleBasic) GetTxCmd(_ *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 DistributionKeeper
- type GenesisState
- type Keeper
- type MarketKeeper
- type Params
- type PolicyConstraints
- type QueryTaxCapParams
- type RewardWeightUpdateProposal
- type StakingKeeper
- type SupplyKeeper
- type TaxRateUpdateProposal
Constants ¶
const ( ModuleName = types.ModuleName StoreKey = types.StoreKey RouterKey = types.RouterKey QuerierRoute = types.QuerierRoute DefaultParamspace = types.DefaultParamspace ProposalTypeTaxRateUpdate = types.ProposalTypeTaxRateUpdate ProposalTypeRewardWeightUpdate = types.ProposalTypeRewardWeightUpdate QueryTaxRate = types.QueryTaxRate QueryTaxCap = types.QueryTaxCap QueryRewardWeight = types.QueryRewardWeight QuerySeigniorageProceeds = types.QuerySeigniorageProceeds QueryTaxProceeds = types.QueryTaxProceeds QueryParameters = types.QueryParameters )
Variables ¶
var ( // functions aliases RegisterCodec = types.RegisterCodec NewGenesisState = types.NewGenesisState DefaultGenesisState = types.DefaultGenesisState ValidateGenesis = types.ValidateGenesis GetTaxCapKey = types.GetTaxCapKey GetTRKey = types.GetTRKey GetSRKey = types.GetSRKey GetTSLKey = types.GetTSLKey GetSubkeyByEpoch = types.GetSubkeyByEpoch DefaultParams = types.DefaultParams NewTaxRateUpdateProposal = types.NewTaxRateUpdateProposal NewRewardWeightUpdateProposal = types.NewRewardWeightUpdateProposal NewQueryTaxCapParams = types.NewQueryTaxCapParams ParamKeyTable = types.ParamKeyTable NewKeeper = keeper.NewKeeper NewQuerier = keeper.NewQuerier // variable aliases ModuleCdc = types.ModuleCdc TaxRateKey = types.TaxRateKey RewardWeightKey = types.RewardWeightKey TaxCapKey = types.TaxCapKey TaxProceedsKey = types.TaxProceedsKey EpochInitialIssuanceKey = types.EpochInitialIssuanceKey CumulatedHeightKey = types.CumulatedHeightKey TRKey = types.TRKey SRKey = types.SRKey TSLKey = types.TSLKey ParamStoreKeyTaxPolicy = types.ParamStoreKeyTaxPolicy ParamStoreKeyRewardPolicy = types.ParamStoreKeyRewardPolicy ParamStoreKeySeigniorageBurdenTarget = types.ParamStoreKeySeigniorageBurdenTarget ParamStoreKeyMiningIncrement = types.ParamStoreKeyMiningIncrement ParamStoreKeyWindowShort = types.ParamStoreKeyWindowShort ParamStoreKeyWindowLong = types.ParamStoreKeyWindowLong ParamStoreKeyWindowProbation = types.ParamStoreKeyWindowProbation DefaultTaxPolicy = types.DefaultTaxPolicy DefaultRewardPolicy = types.DefaultRewardPolicy DefaultSeigniorageBurdenTarget = types.DefaultSeigniorageBurdenTarget DefaultMiningIncrement = types.DefaultMiningIncrement DefaultWindowShort = types.DefaultWindowShort DefaultWindowLong = types.DefaultWindowLong DefaultWindowProbation = types.DefaultWindowProbation DefaultTaxRate = types.DefaultTaxRate DefaultRewardWeight = types.DefaultRewardWeight )
Functions ¶
func EndBlocker ¶ added in v0.0.5
EndBlocker is called at the end of every block
func InitGenesis ¶ added in v0.0.5
func InitGenesis(ctx sdk.Context, keeper Keeper, data GenesisState)
InitGenesis initializes default parameters and the keeper's address to pubkey map
func NewTreasuryPolicyUpdateHandler ¶ added in v0.3.0
NewTreasuryPolicyUpdateHandler custom gov proposal handler
Types ¶
type AppModule ¶ added in v0.3.0
type AppModule struct { AppModuleBasic // contains filtered or unexported fields }
AppModule implements an application module for the treasury module.
func NewAppModule ¶ added in v0.3.0
NewAppModule creates a new AppModule object
func (AppModule) BeginBlock ¶ added in v0.3.0
func (am AppModule) BeginBlock(ctx sdk.Context, req abci.RequestBeginBlock)
BeginBlock returns the begin blocker for the treasury module.
func (AppModule) EndBlock ¶ added in v0.3.0
func (am AppModule) EndBlock(ctx sdk.Context, _ abci.RequestEndBlock) []abci.ValidatorUpdate
EndBlock returns the end blocker for the treasury module.
func (AppModule) ExportGenesis ¶ added in v0.3.0
func (am AppModule) ExportGenesis(ctx sdk.Context) json.RawMessage
ExportGenesis returns the exported genesis state as raw bytes for the treasury module.
func (AppModule) GenerateGenesisState ¶ added in v0.4.0
func (AppModule) GenerateGenesisState(simState *module.SimulationState)
GenerateGenesisState creates a randomized GenState of the distribution module.
func (AppModule) InitGenesis ¶ added in v0.3.0
func (am AppModule) InitGenesis(ctx sdk.Context, data json.RawMessage) []abci.ValidatorUpdate
InitGenesis performs genesis initialization for the treasury module.
func (AppModule) NewHandler ¶ added in v0.3.0
NewHandler returns an sdk.Handler for the treasury module.
func (AppModule) NewQuerierHandler ¶ added in v0.3.0
NewQuerierHandler returns the treasury module sdk.Querier.
func (AppModule) ProposalContents ¶ added in v0.4.0
func (am AppModule) ProposalContents(_ module.SimulationState) []sim.WeightedProposalContent
ProposalContents returns all the distribution content functions used to simulate governance proposals.
func (AppModule) QuerierRoute ¶ added in v0.3.0
QuerierRoute returns the treasury module's querier route name.
func (AppModule) RandomizedParams ¶ added in v0.4.0
func (AppModule) RandomizedParams(r *rand.Rand) []sim.ParamChange
RandomizedParams creates randomized distribution param changes for the simulator.
func (AppModule) RegisterInvariants ¶ added in v0.3.0
func (AppModule) RegisterInvariants(_ sdk.InvariantRegistry)
RegisterInvariants registers the treasury module invariants.
func (AppModule) RegisterStoreDecoder ¶ added in v0.4.0
func (AppModule) RegisterStoreDecoder(sdr sdk.StoreDecoderRegistry)
RegisterStoreDecoder registers a decoder for distribution module's types
func (AppModule) Route ¶ added in v0.3.0
Route returns the message routing key for the treasury module.
func (AppModule) WeightedOperations ¶ added in v0.4.0
func (am AppModule) WeightedOperations(simState module.SimulationState) []sim.WeightedOperation
WeightedOperations returns the all the gov module operations with their respective weights.
type AppModuleBasic ¶ added in v0.3.0
type AppModuleBasic struct{}
AppModuleBasic defines the basic application module used by the treasury module.
func (AppModuleBasic) DefaultGenesis ¶ added in v0.3.0
func (AppModuleBasic) DefaultGenesis() json.RawMessage
DefaultGenesis returns default genesis state as raw bytes for the treasury module.
func (AppModuleBasic) GetQueryCmd ¶ added in v0.3.0
func (AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command
GetQueryCmd returns the root query command for the treasury module.
func (AppModuleBasic) GetTxCmd ¶ added in v0.3.0
func (AppModuleBasic) GetTxCmd(_ *codec.Codec) *cobra.Command
GetTxCmd returns the root tx command for the treasury module.
func (AppModuleBasic) Name ¶ added in v0.3.0
func (AppModuleBasic) Name() string
Name returns the treasury module's name
func (AppModuleBasic) RegisterCodec ¶ added in v0.3.0
func (AppModuleBasic) RegisterCodec(cdc *codec.Codec)
RegisterCodec registers the treasury module's types for the given codec.
func (AppModuleBasic) RegisterRESTRoutes ¶ added in v0.3.0
func (AppModuleBasic) RegisterRESTRoutes(ctx context.CLIContext, rtr *mux.Router)
RegisterRESTRoutes registers the REST routes for the treasury module.
func (AppModuleBasic) ValidateGenesis ¶ added in v0.3.0
func (AppModuleBasic) ValidateGenesis(bz json.RawMessage) error
ValidateGenesis performs genesis state validation for the treasury module.
type DistributionKeeper ¶ added in v0.2.0
type DistributionKeeper = types.DistributionKeeper
type GenesisState ¶ added in v0.0.5
type GenesisState = types.GenesisState
func ExportGenesis ¶ added in v0.0.5
func ExportGenesis(ctx sdk.Context, keeper Keeper) (data GenesisState)
ExportGenesis writes the current store values to a genesis file, which can be imported again with InitGenesis
type MarketKeeper ¶ added in v0.2.0
type MarketKeeper = types.MarketKeeper
type PolicyConstraints ¶ added in v0.0.7
type PolicyConstraints = types.PolicyConstraints
type QueryTaxCapParams ¶ added in v0.3.0
type QueryTaxCapParams = types.QueryTaxCapParams
type RewardWeightUpdateProposal ¶ added in v0.3.0
type RewardWeightUpdateProposal = types.RewardWeightUpdateProposal
type StakingKeeper ¶ added in v0.3.0
type StakingKeeper = types.StakingKeeper
type SupplyKeeper ¶ added in v0.3.0
type SupplyKeeper = types.SupplyKeeper
type TaxRateUpdateProposal ¶ added in v0.3.0
type TaxRateUpdateProposal = types.TaxRateUpdateProposal