Documentation
¶
Index ¶
- func CompareMinterConfigs(t *testing.T, m1 types.MinterConfig, m2 types.MinterConfig)
- func CompareMinterStates(t *testing.T, expected types.MinterState, state types.MinterState)
- type C4eMinterUtils
- func (m *C4eMinterUtils) ExportGenesis(ctx sdk.Context, expected cfemintertypes.GenesisState)
- func (m *C4eMinterUtils) ExportGenesisAndValidate(ctx sdk.Context)
- func (h *C4eMinterUtils) GetC4eMinterKeeper() *cfemintermodulekeeper.Keeper
- func (m *C4eMinterUtils) InitGenesis(ctx sdk.Context, genState cfemintertypes.GenesisState)
- func (m *C4eMinterUtils) Mint(ctx sdk.Context, expectedMintedAmount sdk.Int, ...)
- func (m *C4eMinterUtils) MintError(ctx sdk.Context, errorMessage string)
- func (m *C4eMinterUtils) SetMinterState(ctx sdk.Context, sequenceId uint32, amountMinted sdk.Int, ...)
- func (m *C4eMinterUtils) SetParams(ctx sdk.Context, params cfemintertypes.Params)
- func (m *C4eMinterUtils) VerifyInflation(ctx sdk.Context, expectedInflation sdk.Dec)
- func (m *C4eMinterUtils) VerifyMinterHistory(ctx sdk.Context, expectedMinterStateHistory ...cfemintertypes.MinterState)
- func (m *C4eMinterUtils) VerifyMinterState(ctx sdk.Context, expectedMinterStateSequenceId uint32, ...)
- type ContextC4eMinterUtils
- func (m *ContextC4eMinterUtils) ExportGenesis(expected cfemintertypes.GenesisState)
- func (m *ContextC4eMinterUtils) ExportGenesisAndValidate()
- func (m *ContextC4eMinterUtils) InitGenesis(genState cfemintertypes.GenesisState)
- func (m *ContextC4eMinterUtils) Mint(expectedMintedAmount sdk.Int, expectedMinterStateSequenceId uint32, ...)
- func (m *ContextC4eMinterUtils) MintError(errorMessage string)
- func (m *ContextC4eMinterUtils) SetMinterState(sequenceId uint32, amountMinted sdk.Int, remainderToMint sdk.Dec, ...)
- func (m *ContextC4eMinterUtils) SetParams(params cfemintertypes.Params)
- func (m *ContextC4eMinterUtils) VerifyInflation(expectedInflation sdk.Dec)
- func (m *ContextC4eMinterUtils) VerifyMinterHistory(expectedMinterStateHistory ...cfemintertypes.MinterState)
- func (m *ContextC4eMinterUtils) VerifyMinterState(expectedMinterStateSequenceId uint32, expectedMinterStateAmountMinted sdk.Int, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareMinterConfigs ¶ added in v1.1.0
func CompareMinterConfigs(t *testing.T, m1 types.MinterConfig, m2 types.MinterConfig)
func CompareMinterStates ¶ added in v1.1.0
func CompareMinterStates(t *testing.T, expected types.MinterState, state types.MinterState)
Types ¶
type C4eMinterUtils ¶ added in v1.1.0
type C4eMinterUtils struct {
// contains filtered or unexported fields
}
func NewC4eMinterUtils ¶ added in v1.1.0
func NewC4eMinterUtils(t *testing.T, helperCfeminterKeeper *cfemintermodulekeeper.Keeper, helperAccountKeeper *authkeeper.AccountKeeper, bankUtils *testcosmos.BankUtils) C4eMinterUtils
func (*C4eMinterUtils) ExportGenesis ¶ added in v1.1.0
func (m *C4eMinterUtils) ExportGenesis(ctx sdk.Context, expected cfemintertypes.GenesisState)
func (*C4eMinterUtils) ExportGenesisAndValidate ¶ added in v1.1.0
func (m *C4eMinterUtils) ExportGenesisAndValidate(ctx sdk.Context)
func (*C4eMinterUtils) GetC4eMinterKeeper ¶ added in v1.1.0
func (h *C4eMinterUtils) GetC4eMinterKeeper() *cfemintermodulekeeper.Keeper
func (*C4eMinterUtils) InitGenesis ¶ added in v1.1.0
func (m *C4eMinterUtils) InitGenesis(ctx sdk.Context, genState cfemintertypes.GenesisState)
func (*C4eMinterUtils) Mint ¶ added in v1.1.0
func (m *C4eMinterUtils) Mint(ctx sdk.Context, expectedMintedAmount sdk.Int, expectedMinterStateSequenceId uint32, expectedMinterStateAmountMinted sdk.Int, expectedMinterStateRemainderToMint sdk.Dec, expectedMinterStateLastMintBlockTime time.Time, expectedMinterStateRemainderFromPreviousPeriod sdk.Dec, expectedMintingReceiverAmount sdk.Int, expectedMinterStateHistory ...cfemintertypes.MinterState)
func (*C4eMinterUtils) MintError ¶ added in v1.1.0
func (m *C4eMinterUtils) MintError(ctx sdk.Context, errorMessage string)
func (*C4eMinterUtils) SetMinterState ¶ added in v1.1.0
func (*C4eMinterUtils) SetParams ¶ added in v1.1.0
func (m *C4eMinterUtils) SetParams(ctx sdk.Context, params cfemintertypes.Params)
func (*C4eMinterUtils) VerifyInflation ¶ added in v1.1.0
func (m *C4eMinterUtils) VerifyInflation(ctx sdk.Context, expectedInflation sdk.Dec)
func (*C4eMinterUtils) VerifyMinterHistory ¶ added in v1.1.0
func (m *C4eMinterUtils) VerifyMinterHistory(ctx sdk.Context, expectedMinterStateHistory ...cfemintertypes.MinterState)
func (*C4eMinterUtils) VerifyMinterState ¶ added in v1.1.0
type ContextC4eMinterUtils ¶ added in v1.1.0
type ContextC4eMinterUtils struct {
C4eMinterUtils
// contains filtered or unexported fields
}
func NewContextC4eMinterUtils ¶ added in v1.1.0
func NewContextC4eMinterUtils(t *testing.T, testContext testenv.TestContext, helperCfeminterKeeper *cfemintermodulekeeper.Keeper, helperAccountKeeper *authkeeper.AccountKeeper, bankUtils *testcosmos.BankUtils) *ContextC4eMinterUtils
func (*ContextC4eMinterUtils) ExportGenesis ¶ added in v1.1.0
func (m *ContextC4eMinterUtils) ExportGenesis(expected cfemintertypes.GenesisState)
func (*ContextC4eMinterUtils) ExportGenesisAndValidate ¶ added in v1.1.0
func (m *ContextC4eMinterUtils) ExportGenesisAndValidate()
func (*ContextC4eMinterUtils) InitGenesis ¶ added in v1.1.0
func (m *ContextC4eMinterUtils) InitGenesis(genState cfemintertypes.GenesisState)
func (*ContextC4eMinterUtils) Mint ¶ added in v1.1.0
func (m *ContextC4eMinterUtils) Mint(expectedMintedAmount sdk.Int, expectedMinterStateSequenceId uint32, expectedMinterStateAmountMinted sdk.Int, expectedMinterStateRemainderToMint sdk.Dec, expectedMinterStateLastMintBlockTime time.Time, expectedMinterStateRemainderFromPreviousPeriod sdk.Dec, expectedMintingReceiverAmount sdk.Int, expectedMinterStateHistory ...cfemintertypes.MinterState)
func (*ContextC4eMinterUtils) MintError ¶ added in v1.1.0
func (m *ContextC4eMinterUtils) MintError(errorMessage string)
func (*ContextC4eMinterUtils) SetMinterState ¶ added in v1.1.0
func (*ContextC4eMinterUtils) SetParams ¶ added in v1.1.0
func (m *ContextC4eMinterUtils) SetParams(params cfemintertypes.Params)
func (*ContextC4eMinterUtils) VerifyInflation ¶ added in v1.1.0
func (m *ContextC4eMinterUtils) VerifyInflation(expectedInflation sdk.Dec)
func (*ContextC4eMinterUtils) VerifyMinterHistory ¶ added in v1.1.0
func (m *ContextC4eMinterUtils) VerifyMinterHistory(expectedMinterStateHistory ...cfemintertypes.MinterState)
func (*ContextC4eMinterUtils) VerifyMinterState ¶ added in v1.1.0
Click to show internal directories.
Click to hide internal directories.