cfeminter

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareCfeminterParams added in v1.2.0

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

func CompareMinterStates added in v1.1.0

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

Types

type C4eMinterKeeperUtils added in v1.2.0

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

func NewC4eMinterKeeperUtils added in v1.2.0

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

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 require.TestingT, 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) MessageBurn added in v1.3.0

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

func (*C4eMinterUtils) MessageBurnError added in v1.3.0

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

func (*C4eMinterUtils) Mint added in v1.1.0

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 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, sequenceId uint32, amountMinted math.Int,
	remainderToMint sdk.Dec, lastMintBlockTime time.Time, remainderFromPreviousMinter sdk.Dec)

func (*C4eMinterUtils) SetParams added in v1.1.0

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

func (*C4eMinterUtils) UpdateParams added in v1.2.0

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

func (*C4eMinterUtils) UpdateParamsError added in v1.2.0

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

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, expectedMinterStateSequenceId uint32, expectedMinterStateAmountMinted math.Int,
	expectedMinterStateRemainderToMint sdk.Dec, expectedMinterStateLastMintBlockTime time.Time, expectedMinterStateRemainderFromPreviousMinter 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 require.TestingT, 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) MessageBurn added in v1.3.0

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

func (*ContextC4eMinterUtils) MessageBurnError added in v1.3.0

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

func (*ContextC4eMinterUtils) Mint added in v1.1.0

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 added in v1.1.0

func (m *ContextC4eMinterUtils) MintError(errorMessage string)

func (*ContextC4eMinterUtils) SetMinterState added in v1.1.0

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

func (*ContextC4eMinterUtils) SetParams added in v1.1.0

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

func (*ContextC4eMinterUtils) UpdateParams added in v1.2.0

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

func (*ContextC4eMinterUtils) UpdateParamsError added in v1.2.0

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

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(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