Documentation ¶
Index ¶
- func GetAccountTestId(id, suffix, accType string) string
- func GetTestMaccPerms() map[string][]string
- func SetTestMaccPerms()
- type C4eDistributorKeeperUtils
- func (h *C4eDistributorKeeperUtils) CheckNonNegativeCoinStateInvariant(ctx sdk.Context, failed bool, message string)
- func (h *C4eDistributorKeeperUtils) CheckStateSumBalanceCheckInvariant(ctx sdk.Context, failed bool, message string)
- func (h *C4eDistributorKeeperUtils) GetC4eDistributorKeeper() *cfedistributormodulekeeper.Keeper
- func (d *C4eDistributorKeeperUtils) SetState(ctx sdk.Context, state cfedistributortypes.State)
- func (d *C4eDistributorKeeperUtils) SetSubDistributorsParams(ctx sdk.Context, subdistributors []cfedistributortypes.SubDistributor)
- type C4eDistributorUtils
- func (m *C4eDistributorUtils) ExportGenesis(ctx sdk.Context, expected cfedistributortypes.GenesisState)
- func (m *C4eDistributorUtils) ExportGenesisAndValidate(ctx sdk.Context)
- func (d *C4eDistributorUtils) InitGenesis(ctx sdk.Context, genState cfedistributortypes.GenesisState)
- func (h *C4eDistributorUtils) InitGenesisError(ctx sdk.Context, genState cfedistributortypes.GenesisState, ...)
- func (m *C4eDistributorUtils) SetParams(ctx sdk.Context, params cfedistributortypes.Params)
- func (m *C4eDistributorUtils) ValidateInvariants(ctx sdk.Context)
- func (d *C4eDistributorUtils) VerifyBurnStateAmount(ctx sdk.Context, denom string, expectedRemains sdk.Dec)
- func (d *C4eDistributorUtils) VerifyDefaultDenomBurnStateAmount(ctx sdk.Context, expectedRemains sdk.Dec)
- func (d *C4eDistributorUtils) VerifyDefaultDenomStateAmount(ctx sdk.Context, account cfedistributortypes.Account, expectedRemains sdk.Dec)
- func (d *C4eDistributorUtils) VerifyNumberOfStates(ctx sdk.Context, expectedNumberOfStates int)
- func (d *C4eDistributorUtils) VerifyStateAmount(ctx sdk.Context, stateName string, denom string, expectedRemains sdk.Dec)
- type ContextC4eDistributorUtils
- func (m *ContextC4eDistributorUtils) CheckStateSumBalanceCheckInvariant(failed bool, message string)
- func (m *ContextC4eDistributorUtils) ExportGenesis(expected cfedistributortypes.GenesisState)
- func (m *ContextC4eDistributorUtils) InitGenesis(genState cfedistributortypes.GenesisState)
- func (h *ContextC4eDistributorUtils) InitGenesisError(genState cfedistributortypes.GenesisState, errorMessage string)
- func (m *ContextC4eDistributorUtils) SetParams(params cfedistributortypes.Params)
- func (m *ContextC4eDistributorUtils) SetState(state cfedistributortypes.State)
- func (d *ContextC4eDistributorUtils) SetSubDistributorsParams(subdistributors []cfedistributortypes.SubDistributor)
- func (m *ContextC4eDistributorUtils) ValidateGenesisAndInvariants()
- func (d *ContextC4eDistributorUtils) VerifyBurnStateAmount(denom string, expectedRemains sdk.Dec)
- func (d *ContextC4eDistributorUtils) VerifyDefaultDenomBurnStateAmount(expectedRemains sdk.Dec)
- func (d *ContextC4eDistributorUtils) VerifyDefaultDenomStateAmount(account cfedistributortypes.Account, expectedRemains sdk.Dec)
- func (d *ContextC4eDistributorUtils) VerifyNumberOfStates(expectedNumberOfStates int)
- func (d *ContextC4eDistributorUtils) VerifyStateAmount(stateName string, denom string, expectedRemains sdk.Dec)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAccountTestId ¶
func GetTestMaccPerms ¶
func SetTestMaccPerms ¶
func SetTestMaccPerms()
Types ¶
type C4eDistributorKeeperUtils ¶
type C4eDistributorKeeperUtils struct {
// contains filtered or unexported fields
}
func NewC4eDistributorKeeperUtils ¶
func NewC4eDistributorKeeperUtils(t require.TestingT, helperCfedistributorKeeper *cfedistributormodulekeeper.Keeper) C4eDistributorKeeperUtils
func (*C4eDistributorKeeperUtils) CheckNonNegativeCoinStateInvariant ¶
func (h *C4eDistributorKeeperUtils) CheckNonNegativeCoinStateInvariant(ctx sdk.Context, failed bool, message string)
func (*C4eDistributorKeeperUtils) CheckStateSumBalanceCheckInvariant ¶
func (h *C4eDistributorKeeperUtils) CheckStateSumBalanceCheckInvariant(ctx sdk.Context, failed bool, message string)
func (*C4eDistributorKeeperUtils) GetC4eDistributorKeeper ¶
func (h *C4eDistributorKeeperUtils) GetC4eDistributorKeeper() *cfedistributormodulekeeper.Keeper
func (*C4eDistributorKeeperUtils) SetState ¶
func (d *C4eDistributorKeeperUtils) SetState(ctx sdk.Context, state cfedistributortypes.State)
func (*C4eDistributorKeeperUtils) SetSubDistributorsParams ¶
func (d *C4eDistributorKeeperUtils) SetSubDistributorsParams(ctx sdk.Context, subdistributors []cfedistributortypes.SubDistributor)
type C4eDistributorUtils ¶
type C4eDistributorUtils struct { C4eDistributorKeeperUtils // contains filtered or unexported fields }
func NewC4eDistributorUtils ¶
func NewC4eDistributorUtils(t require.TestingT, helperCfedistributorKeeper *cfedistributormodulekeeper.Keeper, helperAccountKeeper *authkeeper.AccountKeeper, bankUtils *testcosmos.BankUtils) C4eDistributorUtils
func (*C4eDistributorUtils) ExportGenesis ¶
func (m *C4eDistributorUtils) ExportGenesis(ctx sdk.Context, expected cfedistributortypes.GenesisState)
func (*C4eDistributorUtils) ExportGenesisAndValidate ¶
func (m *C4eDistributorUtils) ExportGenesisAndValidate(ctx sdk.Context)
func (*C4eDistributorUtils) InitGenesis ¶
func (d *C4eDistributorUtils) InitGenesis(ctx sdk.Context, genState cfedistributortypes.GenesisState)
func (*C4eDistributorUtils) InitGenesisError ¶
func (h *C4eDistributorUtils) InitGenesisError(ctx sdk.Context, genState cfedistributortypes.GenesisState, errorMessage string)
func (*C4eDistributorUtils) SetParams ¶
func (m *C4eDistributorUtils) SetParams(ctx sdk.Context, params cfedistributortypes.Params)
func (*C4eDistributorUtils) ValidateInvariants ¶
func (m *C4eDistributorUtils) ValidateInvariants(ctx sdk.Context)
func (*C4eDistributorUtils) VerifyBurnStateAmount ¶
func (*C4eDistributorUtils) VerifyDefaultDenomBurnStateAmount ¶
func (d *C4eDistributorUtils) VerifyDefaultDenomBurnStateAmount(ctx sdk.Context, expectedRemains sdk.Dec)
func (*C4eDistributorUtils) VerifyDefaultDenomStateAmount ¶
func (d *C4eDistributorUtils) VerifyDefaultDenomStateAmount(ctx sdk.Context, account cfedistributortypes.Account, expectedRemains sdk.Dec)
func (*C4eDistributorUtils) VerifyNumberOfStates ¶
func (d *C4eDistributorUtils) VerifyNumberOfStates(ctx sdk.Context, expectedNumberOfStates int)
func (*C4eDistributorUtils) VerifyStateAmount ¶
type ContextC4eDistributorUtils ¶
type ContextC4eDistributorUtils struct { C4eDistributorUtils // contains filtered or unexported fields }
func NewContextC4eDistributorUtils ¶
func NewContextC4eDistributorUtils(t require.TestingT, testContext testenv.TestContext, helperCfedistributorKeeper *cfedistributormodulekeeper.Keeper, helperAccountKeeper *authkeeper.AccountKeeper, bankUtils *testcosmos.BankUtils) *ContextC4eDistributorUtils
func (*ContextC4eDistributorUtils) CheckStateSumBalanceCheckInvariant ¶
func (m *ContextC4eDistributorUtils) CheckStateSumBalanceCheckInvariant(failed bool, message string)
func (*ContextC4eDistributorUtils) ExportGenesis ¶
func (m *ContextC4eDistributorUtils) ExportGenesis(expected cfedistributortypes.GenesisState)
func (*ContextC4eDistributorUtils) InitGenesis ¶
func (m *ContextC4eDistributorUtils) InitGenesis(genState cfedistributortypes.GenesisState)
func (*ContextC4eDistributorUtils) InitGenesisError ¶
func (h *ContextC4eDistributorUtils) InitGenesisError(genState cfedistributortypes.GenesisState, errorMessage string)
func (*ContextC4eDistributorUtils) SetParams ¶
func (m *ContextC4eDistributorUtils) SetParams(params cfedistributortypes.Params)
func (*ContextC4eDistributorUtils) SetState ¶
func (m *ContextC4eDistributorUtils) SetState(state cfedistributortypes.State)
func (*ContextC4eDistributorUtils) SetSubDistributorsParams ¶
func (d *ContextC4eDistributorUtils) SetSubDistributorsParams(subdistributors []cfedistributortypes.SubDistributor)
func (*ContextC4eDistributorUtils) ValidateGenesisAndInvariants ¶
func (m *ContextC4eDistributorUtils) ValidateGenesisAndInvariants()
func (*ContextC4eDistributorUtils) VerifyBurnStateAmount ¶
func (d *ContextC4eDistributorUtils) VerifyBurnStateAmount(denom string, expectedRemains sdk.Dec)
func (*ContextC4eDistributorUtils) VerifyDefaultDenomBurnStateAmount ¶
func (d *ContextC4eDistributorUtils) VerifyDefaultDenomBurnStateAmount(expectedRemains sdk.Dec)
func (*ContextC4eDistributorUtils) VerifyDefaultDenomStateAmount ¶
func (d *ContextC4eDistributorUtils) VerifyDefaultDenomStateAmount(account cfedistributortypes.Account, expectedRemains sdk.Dec)
func (*ContextC4eDistributorUtils) VerifyNumberOfStates ¶
func (d *ContextC4eDistributorUtils) VerifyNumberOfStates(expectedNumberOfStates int)
func (*ContextC4eDistributorUtils) VerifyStateAmount ¶
func (d *ContextC4eDistributorUtils) VerifyStateAmount(stateName string, denom string, expectedRemains sdk.Dec)
Click to show internal directories.
Click to hide internal directories.