cfeminter

package
v1.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareMinterStates added in v1.1.0

func CompareMinterStates(t *testing.T, expected types.MinterState, state types.MinterState)

func CompareMinters

func CompareMinters(t *testing.T, m1 types.Minter, m2 types.Minter)

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 *commontestutils.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) 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, expectedMinterStatePosition int32, 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 (m *C4eMinterUtils) SetMinterState(ctx sdk.Context, position int32, amountMinted sdk.Int,
	remainderToMint sdk.Dec, lastMintBlockTime time.Time, remainderFromPreviousPeriod sdk.Dec)

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

func (m *C4eMinterUtils) VerifyMinterState(ctx sdk.Context, expectedMinterStatePosition int32, expectedMinterStateAmountMinted sdk.Int,
	expectedMinterStateRemainderToMint sdk.Dec, expectedMinterStateLastMintBlockTime time.Time, expectedMinterStateRemainderFromPreviousPeriod sdk.Dec)

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 commontestutils.TestContext, helperCfeminterKeeper *cfemintermodulekeeper.Keeper,
	helperAccountKeeper *authkeeper.AccountKeeper,
	bankUtils *commontestutils.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, expectedMinterStatePosition int32, 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 (m *ContextC4eMinterUtils) SetMinterState(position int32, amountMinted sdk.Int,
	remainderToMint sdk.Dec, lastMintBlockTime time.Time, remainderFromPreviousPeriod sdk.Dec)

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

func (m *ContextC4eMinterUtils) VerifyMinterState(expectedMinterStatePosition int32, expectedMinterStateAmountMinted sdk.Int,
	expectedMinterStateRemainderToMint sdk.Dec, expectedMinterStateLastMintBlockTime time.Time, expectedMinterStateRemainderFromPreviousPeriod sdk.Dec)

Jump to

Keyboard shortcuts

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