cfeminter

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: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareCfeminterParams

func CompareCfeminterParams(t require.TestingT, m1 types.Params, m2 types.Params)

func CompareMinterStates

func CompareMinterStates(t require.TestingT, expected types.MinterState, state types.MinterState)

Types

type C4eMinterKeeperUtils

type C4eMinterKeeperUtils struct {
	// contains filtered or unexported fields
}

func NewC4eMinterKeeperUtils

func NewC4eMinterKeeperUtils(t *testing.T, helperCfevestingKeeper *cfemintermodulekeeper.Keeper) C4eMinterKeeperUtils

type C4eMinterUtils

type C4eMinterUtils struct {
	// contains filtered or unexported fields
}

func NewC4eMinterUtils

func NewC4eMinterUtils(t require.TestingT, helperCfeminterKeeper *cfemintermodulekeeper.Keeper,
	helperAccountKeeper *authkeeper.AccountKeeper,
	bankUtils *testcosmos.BankUtils) C4eMinterUtils

func (*C4eMinterUtils) ExportGenesis

func (m *C4eMinterUtils) ExportGenesis(ctx sdk.Context, expected cfemintertypes.GenesisState)

func (*C4eMinterUtils) ExportGenesisAndValidate

func (m *C4eMinterUtils) ExportGenesisAndValidate(ctx sdk.Context)

func (*C4eMinterUtils) GetC4eMinterKeeper

func (h *C4eMinterUtils) GetC4eMinterKeeper() *cfemintermodulekeeper.Keeper

func (*C4eMinterUtils) InitGenesis

func (m *C4eMinterUtils) InitGenesis(ctx sdk.Context, genState cfemintertypes.GenesisState)

func (*C4eMinterUtils) MessageBurn

func (m *C4eMinterUtils) MessageBurn(ctx sdk.Context, address string, amount sdk.Coins)

func (*C4eMinterUtils) MessageBurnError

func (m *C4eMinterUtils) MessageBurnError(ctx sdk.Context, address string, amount sdk.Coins, errorMessage string)

func (*C4eMinterUtils) Mint

func (m *C4eMinterUtils) Mint(ctx sdk.Context, expectedMintedAmount math.Int, expectedMinterStateSequenceId uint32, expectedMinterStateAmountMinted math.Int,
	expectedMinterStateRemainderToMint sdk.Dec, expectedMinterStateLastMintBlockTime time.Time, expectedMinterStateRemainderFromPreviousMinter sdk.Dec,
	expectedMintingReceiverAmount math.Int, expectedMinterStateHistory ...cfemintertypes.MinterState)

func (*C4eMinterUtils) MintError

func (m *C4eMinterUtils) MintError(ctx sdk.Context, errorMessage string)

func (*C4eMinterUtils) SetMinterState

func (m *C4eMinterUtils) SetMinterState(ctx sdk.Context, sequenceId uint32, amountMinted math.Int,
	remainderToMint sdk.Dec, lastMintBlockTime time.Time, remainderFromPreviousMinter sdk.Dec)

func (*C4eMinterUtils) SetParams

func (m *C4eMinterUtils) SetParams(ctx sdk.Context, params cfemintertypes.Params)

func (*C4eMinterUtils) UpdateParams

func (m *C4eMinterUtils) UpdateParams(ctx sdk.Context, authority string, params cfemintertypes.Params)

func (*C4eMinterUtils) UpdateParamsError

func (m *C4eMinterUtils) UpdateParamsError(ctx sdk.Context, authority string, params cfemintertypes.Params, error string)

func (*C4eMinterUtils) VerifyInflation

func (m *C4eMinterUtils) VerifyInflation(ctx sdk.Context, expectedInflation sdk.Dec)

func (*C4eMinterUtils) VerifyMinterHistory

func (m *C4eMinterUtils) VerifyMinterHistory(ctx sdk.Context, expectedMinterStateHistory ...cfemintertypes.MinterState)

func (*C4eMinterUtils) VerifyMinterState

func (m *C4eMinterUtils) VerifyMinterState(ctx sdk.Context, expectedMinterStateSequenceId uint32, expectedMinterStateAmountMinted math.Int,
	expectedMinterStateRemainderToMint sdk.Dec, expectedMinterStateLastMintBlockTime time.Time, expectedMinterStateRemainderFromPreviousMinter sdk.Dec)

type ContextC4eMinterUtils

type ContextC4eMinterUtils struct {
	C4eMinterUtils
	// contains filtered or unexported fields
}

func NewContextC4eMinterUtils

func NewContextC4eMinterUtils(t require.TestingT, testContext testenv.TestContext, helperCfeminterKeeper *cfemintermodulekeeper.Keeper,
	helperAccountKeeper *authkeeper.AccountKeeper,
	bankUtils *testcosmos.BankUtils) *ContextC4eMinterUtils

func (*ContextC4eMinterUtils) ExportGenesis

func (m *ContextC4eMinterUtils) ExportGenesis(expected cfemintertypes.GenesisState)

func (*ContextC4eMinterUtils) ExportGenesisAndValidate

func (m *ContextC4eMinterUtils) ExportGenesisAndValidate()

func (*ContextC4eMinterUtils) InitGenesis

func (m *ContextC4eMinterUtils) InitGenesis(genState cfemintertypes.GenesisState)

func (*ContextC4eMinterUtils) MessageBurn

func (m *ContextC4eMinterUtils) MessageBurn(address string, amount sdk.Coins)

func (*ContextC4eMinterUtils) MessageBurnError

func (m *ContextC4eMinterUtils) MessageBurnError(address string, amount sdk.Coins, errorMessage string)

func (*ContextC4eMinterUtils) Mint

func (m *ContextC4eMinterUtils) Mint(expectedMintedAmount math.Int, expectedMinterStateSequenceId uint32, expectedMinterStateAmountMinted math.Int,
	expectedMinterStateRemainderToMint sdk.Dec, expectedMinterStateLastMintBlockTime time.Time, expectedMinterStateRemainderFromPreviousMinter sdk.Dec,
	expectedMintingReceiverAmount math.Int, expectedMinterStateHistory ...cfemintertypes.MinterState)

func (*ContextC4eMinterUtils) MintError

func (m *ContextC4eMinterUtils) MintError(errorMessage string)

func (*ContextC4eMinterUtils) SetMinterState

func (m *ContextC4eMinterUtils) SetMinterState(sequenceId uint32, amountMinted math.Int,
	remainderToMint sdk.Dec, lastMintBlockTime time.Time, remainderFromPreviousMinter sdk.Dec)

func (*ContextC4eMinterUtils) SetParams

func (m *ContextC4eMinterUtils) SetParams(params cfemintertypes.Params)

func (*ContextC4eMinterUtils) UpdateParams

func (m *ContextC4eMinterUtils) UpdateParams(authority string, params cfemintertypes.Params)

func (*ContextC4eMinterUtils) UpdateParamsError

func (m *ContextC4eMinterUtils) UpdateParamsError(authority string, params cfemintertypes.Params, error string)

func (*ContextC4eMinterUtils) VerifyInflation

func (m *ContextC4eMinterUtils) VerifyInflation(expectedInflation sdk.Dec)

func (*ContextC4eMinterUtils) VerifyMinterHistory

func (m *ContextC4eMinterUtils) VerifyMinterHistory(expectedMinterStateHistory ...cfemintertypes.MinterState)

func (*ContextC4eMinterUtils) VerifyMinterState

func (m *ContextC4eMinterUtils) VerifyMinterState(expectedMinterStateSequenceId uint32, expectedMinterStateAmountMinted math.Int,
	expectedMinterStateRemainderToMint sdk.Dec, expectedMinterStateLastMintBlockTime time.Time, expectedMinterStateRemainderFromPreviousMinter sdk.Dec)

Jump to

Keyboard shortcuts

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