* beginning thinking on issue * ... * working * working * working fee pool distribution * spek outline * spec update * gas refund calculations * simulation saved to ~/.gaiad/simulations/ * lean simulation output int * cleanup bank simulation messages * operation messges int * lint * move simulation to its own module * move simulation log code to log.go * logger overhaul int * distribution comments * fix compiling * cleanup modifications to x/distribution/keeper/allocation.go int int int * gov bug * result.IsOK() minimization * importExport typo bug * pending * address @alexanderbez comments * simple @cwgoes comments addressed * event logging unified approach * distr module name constant * implementing * compiles * gaia integration * proper constant fee removal * crisis genesis * go.sum update * ... * debugging * fix sum errors * missing err checks * working implementing CLI * remove query command * crisis expected keepers in other modules * crisis testing infrastructure * working * tests complete * modify handler to still panic if not enough pool coins, docs working * spec tags * docs complete * CL * assert invariants on a blockly basis gaiad functionality * gaiad CL * transaction details in runtime invariance panic * Apply suggestions from code review Co-Authored-By: rigelrozanski <rigel.rozanski@gmail.com> * sender tags * @mossid suggestions int * @cwgoes comments final * Apply suggestions from code review Co-Authored-By: rigelrozanski <rigel.rozanski@gmail.com> * bug seems fixed (#3998) * delete unused line in zero height export bug
76 lines
3.0 KiB
Go
76 lines
3.0 KiB
Go
// nolint
|
|
package distribution
|
|
|
|
import (
|
|
"github.com/cosmos/cosmos-sdk/x/distribution/keeper"
|
|
"github.com/cosmos/cosmos-sdk/x/distribution/tags"
|
|
"github.com/cosmos/cosmos-sdk/x/distribution/types"
|
|
)
|
|
|
|
type (
|
|
Keeper = keeper.Keeper
|
|
Hooks = keeper.Hooks
|
|
|
|
MsgSetWithdrawAddress = types.MsgSetWithdrawAddress
|
|
MsgWithdrawDelegatorReward = types.MsgWithdrawDelegatorReward
|
|
MsgWithdrawValidatorCommission = types.MsgWithdrawValidatorCommission
|
|
|
|
GenesisState = types.GenesisState
|
|
|
|
// expected keepers
|
|
StakingKeeper = types.StakingKeeper
|
|
BankKeeper = types.BankKeeper
|
|
FeeCollectionKeeper = types.FeeCollectionKeeper
|
|
|
|
// querier param types
|
|
QueryValidatorCommissionParams = keeper.QueryValidatorCommissionParams
|
|
QueryValidatorSlashesParams = keeper.QueryValidatorSlashesParams
|
|
QueryDelegationRewardsParams = keeper.QueryDelegationRewardsParams
|
|
QueryDelegatorWithdrawAddrParams = keeper.QueryDelegatorWithdrawAddrParams
|
|
)
|
|
|
|
const (
|
|
DefaultCodespace = types.DefaultCodespace
|
|
CodeInvalidInput = types.CodeInvalidInput
|
|
StoreKey = types.StoreKey
|
|
TStoreKey = types.TStoreKey
|
|
RouterKey = types.RouterKey
|
|
QuerierRoute = types.QuerierRoute
|
|
)
|
|
|
|
var (
|
|
ErrNilDelegatorAddr = types.ErrNilDelegatorAddr
|
|
ErrNilWithdrawAddr = types.ErrNilWithdrawAddr
|
|
ErrNilValidatorAddr = types.ErrNilValidatorAddr
|
|
|
|
TagValidator = tags.Validator
|
|
TagDelegator = tags.Delegator
|
|
|
|
NewMsgSetWithdrawAddress = types.NewMsgSetWithdrawAddress
|
|
NewMsgWithdrawDelegatorReward = types.NewMsgWithdrawDelegatorReward
|
|
NewMsgWithdrawValidatorCommission = types.NewMsgWithdrawValidatorCommission
|
|
|
|
NewKeeper = keeper.NewKeeper
|
|
NewQuerier = keeper.NewQuerier
|
|
NewQueryValidatorOutstandingRewardsParams = keeper.NewQueryValidatorOutstandingRewardsParams
|
|
NewQueryValidatorCommissionParams = keeper.NewQueryValidatorCommissionParams
|
|
NewQueryValidatorSlashesParams = keeper.NewQueryValidatorSlashesParams
|
|
NewQueryDelegationRewardsParams = keeper.NewQueryDelegationRewardsParams
|
|
NewQueryDelegatorParams = keeper.NewQueryDelegatorParams
|
|
NewQueryDelegatorWithdrawAddrParams = keeper.NewQueryDelegatorWithdrawAddrParams
|
|
DefaultParamspace = keeper.DefaultParamspace
|
|
RegisterInvariants = keeper.RegisterInvariants
|
|
AllInvariants = keeper.AllInvariants
|
|
NonNegativeOutstandingInvariant = keeper.NonNegativeOutstandingInvariant
|
|
CanWithdrawInvariant = keeper.CanWithdrawInvariant
|
|
ReferenceCountInvariant = keeper.ReferenceCountInvariant
|
|
CreateTestInputDefault = keeper.CreateTestInputDefault
|
|
CreateTestInputAdvanced = keeper.CreateTestInputAdvanced
|
|
TestAddrs = keeper.TestAddrs
|
|
|
|
RegisterCodec = types.RegisterCodec
|
|
DefaultGenesisState = types.DefaultGenesisState
|
|
ValidateGenesis = types.ValidateGenesis
|
|
InitialFeePool = types.InitialFeePool
|
|
)
|