cfedistributorutils

package
v2.0.0-rc6 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAccountTestId

func GetAccountTestId(id, suffix, accType string) string

func GetTestMaccPerms

func GetTestMaccPerms() map[string][]string

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 (*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 (d *C4eDistributorUtils) VerifyBurnStateAmount(ctx sdk.Context, denom string, expectedRemains sdk.Dec)

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

func (d *C4eDistributorUtils) VerifyStateAmount(ctx sdk.Context, stateName string, denom string, expectedRemains sdk.Dec)

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 (*ContextC4eDistributorUtils) InitGenesisError

func (h *ContextC4eDistributorUtils) InitGenesisError(genState cfedistributortypes.GenesisState, errorMessage string)

func (*ContextC4eDistributorUtils) SetParams

func (*ContextC4eDistributorUtils) SetState

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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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