Versions in this module Expand all Collapse all v0 v0.5.14 Jan 24, 2022 Changes in this version + var Addrs = []sdk.AccAddress + var InitCoins = sdk.NewCoins(sdk.NewCoin(core.MicroCacaoDenom, InitTokens)) + var InitTokens = sdk.TokensFromConsensusPower(200, sdk.DefaultPowerReduction) + var ModuleBasics = module.NewBasicManager(customauth.AppModuleBasic{}, custombank.AppModuleBasic{}, ...) + var PubKeys = []crypto.PubKey + var ValAddrs = []sdk.ValAddress + var ValPubKeys = simapp.CreateTestPubKeys(5) + func FundAccount(input TestInput, addr sdk.AccAddress, amounts sdk.Coins) error + func MR(ctx sdk.Context, epoch int64, k Keeper) sdk.Dec + func MakeEncodingConfig(_ *testing.T) simparams.EncodingConfig + func MakeTestCodec(t *testing.T) codec.Codec + func NewLegacyQuerier(k Keeper, legacyQuerierCdc *codec.LegacyAmino) sdk.Querier + func NewQuerier(keeper Keeper) types.QueryServer + func NewTestMsgCreateValidator(address sdk.ValAddress, pubKey cryptotypes.PubKey, amt sdk.Int) *stakingtypes.MsgCreateValidator + func SR(ctx sdk.Context, epoch int64, k Keeper) sdk.Dec + func TRL(ctx sdk.Context, epoch int64, k Keeper) sdk.Dec + type Keeper struct + func NewKeeper(cdc codec.BinaryCodec, storeKey sdk.StoreKey, paramSpace paramstypes.Subspace, ...) Keeper + func (k Keeper) BurnCoinsFromBurnAccount(ctx sdk.Context) + func (k Keeper) ClearSRs(ctx sdk.Context) + func (k Keeper) ClearTRs(ctx sdk.Context) + func (k Keeper) ClearTSLs(ctx sdk.Context) + func (k Keeper) GetBurnModuleAccount(ctx sdk.Context) authtypes.ModuleAccountI + func (k Keeper) GetEpoch(ctx sdk.Context) int64 + func (k Keeper) GetEpochInitialIssuance(ctx sdk.Context) sdk.Coins + func (k Keeper) GetParams(ctx sdk.Context) (params types.Params) + func (k Keeper) GetRewardWeight(ctx sdk.Context) sdk.Dec + func (k Keeper) GetSR(ctx sdk.Context, epoch int64) sdk.Dec + func (k Keeper) GetTR(ctx sdk.Context, epoch int64) sdk.Dec + func (k Keeper) GetTSL(ctx sdk.Context, epoch int64) sdk.Int + func (k Keeper) GetTaxCap(ctx sdk.Context, denom string) sdk.Int + func (k Keeper) GetTaxRate(ctx sdk.Context) sdk.Dec + func (k Keeper) GetTreasuryModuleAccount(ctx sdk.Context) authtypes.ModuleAccountI + func (k Keeper) IterateTaxCap(ctx sdk.Context, handler func(denom string, taxCap sdk.Int) (stop bool)) + func (k Keeper) Logger(ctx sdk.Context) log.Logger + func (k Keeper) MiningIncrement(ctx sdk.Context) (res sdk.Dec) + func (k Keeper) PeekEpochSeigniorage(ctx sdk.Context) sdk.Int + func (k Keeper) PeekEpochTaxProceeds(ctx sdk.Context) sdk.Coins + func (k Keeper) RecordEpochInitialIssuance(ctx sdk.Context) + func (k Keeper) RecordEpochTaxProceeds(ctx sdk.Context, delta sdk.Coins) + func (k Keeper) RewardPolicy(ctx sdk.Context) (res types.PolicyConstraints) + func (k Keeper) SeigniorageBurdenTarget(ctx sdk.Context) (res sdk.Dec) + func (k Keeper) SetEpochInitialIssuance(ctx sdk.Context, issuance sdk.Coins) + func (k Keeper) SetEpochTaxProceeds(ctx sdk.Context, taxProceeds sdk.Coins) + func (k Keeper) SetParams(ctx sdk.Context, params types.Params) + func (k Keeper) SetRewardWeight(ctx sdk.Context, rewardWeight sdk.Dec) + func (k Keeper) SetSR(ctx sdk.Context, epoch int64, SR sdk.Dec) + func (k Keeper) SetTR(ctx sdk.Context, epoch int64, TR sdk.Dec) + func (k Keeper) SetTSL(ctx sdk.Context, epoch int64, TSL sdk.Int) + func (k Keeper) SetTaxCap(ctx sdk.Context, denom string, cap sdk.Int) + func (k Keeper) SetTaxRate(ctx sdk.Context, taxRate sdk.Dec) + func (k Keeper) SettleSeigniorage(ctx sdk.Context) + func (k Keeper) TaxPolicy(ctx sdk.Context) (res types.PolicyConstraints) + func (k Keeper) UpdateIndicators(ctx sdk.Context) + func (k Keeper) UpdateRewardPolicy(ctx sdk.Context) (newRewardWeight sdk.Dec) + func (k Keeper) UpdateTaxCap(ctx sdk.Context) sdk.Coins + func (k Keeper) UpdateTaxPolicy(ctx sdk.Context) (newTaxRate sdk.Dec) + func (k Keeper) WindowLong(ctx sdk.Context) (res uint64) + func (k Keeper) WindowProbation(ctx sdk.Context) (res uint64) + func (k Keeper) WindowShort(ctx sdk.Context) (res uint64) + type TestInput struct + AccountKeeper authkeeper.AccountKeeper + BankKeeper bankkeeper.Keeper + Cdc *codec.LegacyAmino + Ctx sdk.Context + DistrKeeper distrkeeper.Keeper + MarketKeeper types.MarketKeeper + OracleKeeper types.OracleKeeper + StakingKeeper stakingkeeper.Keeper + TreasuryKeeper Keeper + func CreateTestInput(t *testing.T) TestInput