keeper

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2025 License: MIT Imports: 76 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AccountAddressPrefix = "pell"
)

Variables

View Source
var (
	AccountPubKeyPrefix    = AccountAddressPrefix + "pub"
	ValidatorAddressPrefix = AccountAddressPrefix + "valoper"
	ValidatorPubKeyPrefix  = AccountAddressPrefix + "valoperpub"
	ConsNodeAddressPrefix  = AccountAddressPrefix + "valcons"
	ConsNodePubKeyPrefix   = AccountAddressPrefix + "valconspub"
)
View Source
var (
	LightclientMocksAll = LightclientMockOptions{
		UseAuthorityMock: true,
	}
	LightclientNoMocks = LightclientMockOptions{}
)
View Source
var (
	PevmMocksAll = PevmMockOptions{
		UseBankMock:      true,
		UseAccountMock:   true,
		UseObserverMock:  true,
		UseEVMMock:       true,
		UseAuthorityMock: true,
	}
	PevmNoMocks = PevmMockOptions{}
)
View Source
var (
	RelayerMocksAll = RelayerMockOptions{
		UseStakingMock:     true,
		UseSlashingMock:    true,
		UseAuthorityMock:   true,
		UseLightclientMock: true,
		UsePevmMock:        true,
	}
	RelayerNoMocks = RelayerMockOptions{}
)
View Source
var (
	RestakingMocksAll = RestakingMockOptions{
		UseBankMock:      true,
		UseAccountMock:   true,
		UseAuthorityMock: true,
		UseEvmMock:       true,
		UseRelayerMock:   true,
		UsePevmMock:      true,
	}
	RestakingNoMocks = RestakingMockOptions{}
)
View Source
var (
	XmsgMocksAll = XmsgMockOptions{
		UseBankMock:        true,
		UseAccountMock:     true,
		UseStakingMock:     true,
		UseObserverMock:    true,
		UsePevmMock:        true,
		UseAuthorityMock:   true,
		UseLightclientMock: true,
	}
	XmsgNoMocks = XmsgMockOptions{}
)
View Source
var (
	XSecurityMocksAll = XSecurityMockOptions{
		UseStakingMock:      true,
		UseSlashingMock:     true,
		UseStakingHooksMock: true,
		UseAuthorityMock:    true,
		UseRelayerMock:      true,
		UsePevmMock:         true,
		UseRestakingMock:    true,
	}

	XSecurityNoMocks = XSecurityMockOptions{}
)
View Source
var (
	AuthorityGovAddress = sample.Bech32AccAddress()
)

Functions

func AccountKeeper

func AccountKeeper(
	cdc codec.Codec,
	db *dbm.MemDB,
	ss store.CommitMultiStore,
	paramKeeper paramskeeper.Keeper,
) authkeeper.AccountKeeper

AccountKeeper instantiates an account keeper for testing purposes

func AuthorityKeeper

func AuthorityKeeper(t testing.TB) (*keeper.Keeper, sdk.Context)

AuthorityKeeper instantiates an authority keeper for testing purposes

func BankKeeper

func BankKeeper(
	cdc codec.Codec,
	db *dbm.MemDB,
	ss store.CommitMultiStore,
	paramKeeper paramskeeper.Keeper,
	authKeeper authkeeper.AccountKeeper,
) bankkeeper.Keeper

BankKeeper instantiates a bank keeper for testing purposes

func DistributionKeeper

func DistributionKeeper(
	cdc codec.Codec,
	db *dbm.MemDB,
	ss store.CommitMultiStore,
	authKeeper authkeeper.AccountKeeper,
	bankKeeper bankkeeper.Keeper,
	stakingKeeper *stakingkeeper.Keeper,
	paramKeeper paramskeeper.Keeper,
) distrkeeper.Keeper

DistributionKeeper instantiates a distribution keeper for testing purposes

func EVMKeeper

func EVMKeeper(
	cdc codec.Codec,
	db *dbm.MemDB,
	ss store.CommitMultiStore,
	authKeeper authkeeper.AccountKeeper,
	bankKeeper bankkeeper.Keeper,
	stakingKeeper stakingkeeper.Keeper,
	feemarketKeeper feemarketkeeper.Keeper,
	paramKeeper paramskeeper.Keeper,
) *evmkeeper.Keeper

EVMKeeper instantiates an evm keeper for testing purposes

func EmissionKeeperWithMockOptions

func EmissionKeeperWithMockOptions(
	t testing.TB,
	mockOptions EmissionMockOptions,
) (*keeper.Keeper, sdk.Context, SDKKeepers, PellKeepers)

func EmissionsKeeper

func EmissionsKeeper(t testing.TB) (*keeper.Keeper, sdk.Context, SDKKeepers, PellKeepers)

func FeeMarketKeeper

func FeeMarketKeeper(
	cdc codec.Codec,
	db *dbm.MemDB,
	ss store.CommitMultiStore,
	paramKeeper paramskeeper.Keeper,
) feemarketkeeper.Keeper

FeeMarketKeeper instantiates a feemarket keeper for testing purposes

func GetEmissionsBankMock

func GetEmissionsBankMock(t testing.TB, keeper *keeper.Keeper) *emissionsmocks.EmissionBankKeeper

func GetEmissionsParamStoreMock

func GetEmissionsParamStoreMock(t testing.TB, keeper *keeper.Keeper) *emissionsmocks.EmissionParamStore

func GetEmissionsStakingMock

func GetEmissionsStakingMock(t testing.TB, keeper *keeper.Keeper) *emissionsmocks.EmissionStakingKeeper

func GetLightclientAuthorityMock

func GetLightclientAuthorityMock(t testing.TB, keeper *keeper.Keeper) *lightclientmocks.LightclientAuthorityKeeper

GetLightclientAuthorityMock returns a new lightclient authority keeper mock

func GetObserverPevmMock

func GetObserverPevmMock(t testing.TB, keeper *keeper.Keeper) *relayermocks.RelayerPevmKeeper

GetRelayerPevmMock returns a new relayer pevm keeper mock

func GetPevmAccountMock

func GetPevmAccountMock(t testing.TB, keeper *keeper.Keeper) *pevmmocks.PevmAccountKeeper

func GetPevmAuthorityMock

func GetPevmAuthorityMock(t testing.TB, keeper *keeper.Keeper) *pevmmocks.PevmAuthorityKeeper

GetPevmAuthorityMock returns a new pevm authority keeper mock

func GetPevmBankMock

func GetPevmBankMock(t testing.TB, keeper *keeper.Keeper) *pevmmocks.PevmBankKeeper

func GetPevmObserverMock

func GetPevmObserverMock(t testing.TB, keeper *keeper.Keeper) *pevmmocks.PevmRelayerKeeper

func GetRelayerAuthorityMock

func GetRelayerAuthorityMock(t testing.TB, keeper *keeper.Keeper) *relayermocks.RelayerAuthorityKeeper

GetRelayerAuthorityMock returns a new relayer authority keeper mock

func GetRelayerLightclientMock

func GetRelayerLightclientMock(t testing.TB, keeper *keeper.Keeper) *relayermocks.RelayerLightclientKeeper

GetRelayerLightclientMock returns a new relayer lightclient keeper mock

func GetRestakingAuthorityMock

func GetRestakingAuthorityMock(t testing.TB, keeper *keeper.Keeper) *restakingmocks.RestakingAuthorityKeeper

**Mock GetAuthorityKeeper**

func GetRestakingBankMock

func GetRestakingBankMock(t testing.TB, keeper *keeper.Keeper) *restakingmocks.RestakingBankKeeper

**Mock GetBankKeeper**

func GetRestakingEvmMock

func GetRestakingEvmMock(t testing.TB, keeper *keeper.Keeper) *restakingmocks.RestakingEVMKeeper

**Mock GetEVMKeeper**

func GetRestakingRelayerMock

func GetRestakingRelayerMock(t testing.TB, keeper *keeper.Keeper) *restakingmocks.RestakingRelayerKeeper

**Mock GetRelayerKeeper**

func GetXSecurityAuthorityMock

func GetXSecurityAuthorityMock(t testing.TB, keeper *keeper.Keeper) *xsecuritymocks.XSecurityAuthorityKeeper

GetXSecurityAuthorityMock returns the mocked authority keeper

func GetXSecurityPEVMKeeperMock

func GetXSecurityPEVMKeeperMock(t testing.TB, keeper *keeper.Keeper) *xsecuritymocks.XSecurityPevmKeeper

GetXSecurityPEVMKeeperMock returns the mocked pevm keeper

func GetXSecurityPevmMock

func GetXSecurityPevmMock(t testing.TB, keeper *keeper.Keeper) *xsecuritymocks.XSecurityPevmKeeper

GetXSecurityPevmMock returns the mocked pevm keeper

func GetXSecurityRelayerMock

func GetXSecurityRelayerMock(t testing.TB, keeper *keeper.Keeper) *xsecuritymocks.XSecurityRelayerKeeper

GetXSecurityRelayerMock returns the mocked relayer keeper

func GetXSecurityRestakingMock

func GetXSecurityRestakingMock(t testing.TB, keeper *keeper.Keeper) *xsecuritymocks.XSecurityRestakingKeeper

GetXSecurityRestakingMock returns the mocked restaking keeper

func GetXSecuritySlashingMock

func GetXSecuritySlashingMock(t testing.TB, keeper *keeper.Keeper) *xsecuritymocks.XSecuritySlashingKeeper

GetXSecuritySlashingMock returns the mocked slashing keeper

func GetXSecurityStakingMock

func GetXSecurityStakingMock(t testing.TB, keeper *keeper.Keeper) *xsecuritymocks.XSecurityStakingKeeper

GetXSecurityStakingMock returns the mocked staking keeper

func GetXmsgAccountMock

func GetXmsgAccountMock(t testing.TB, keeper *keeper.Keeper) *xmsgmocks.XmsgAccountKeeper

func GetXmsgAuthorityMock

func GetXmsgAuthorityMock(t testing.TB, keeper *keeper.Keeper) *xmsgmocks.XmsgAuthorityKeeper

GetXmsgAuthorityMock returns a new xmsg authority keeper mock

func GetXmsgBankMock

func GetXmsgBankMock(t testing.TB, keeper *keeper.Keeper) *xmsgmocks.XmsgBankKeeper

func GetXmsgLightclientMock

func GetXmsgLightclientMock(t testing.TB, keeper *keeper.Keeper) *xmsgmocks.XmsgLightclientKeeper

GetXmsgLightclientMock returns a new xmsg lightclient keeper mock

func GetXmsgObserverMock

func GetXmsgObserverMock(t testing.TB, keeper *keeper.Keeper) *xmsgmocks.XmsgRelayerKeeper

func GetXmsgPevmMock

func GetXmsgPevmMock(t testing.TB, keeper *keeper.Keeper) *xmsgmocks.XmsgPevmKeeper

func GetXmsgStakingMock

func GetXmsgStakingMock(t testing.TB, keeper *keeper.Keeper) *xmsgmocks.XmsgStakingKeeper

func LightclientKeeper

func LightclientKeeper(t testing.TB) (*keeper.Keeper, sdk.Context, SDKKeepers, PellKeepers)

LightclientKeeper instantiates an lightclient keeper for testing purposes

func LightclientKeeperWithMocks

func LightclientKeeperWithMocks(t testing.TB, mockOptions LightclientMockOptions) (*keeper.Keeper, sdk.Context, SDKKeepers, PellKeepers)

LightclientKeeperWithMocks instantiates a lightclient keeper for testing purposes with the option to mock specific keepers

func MockGetOutBound_pell

func MockGetOutBound_pell(m *xmsgmocks.XmsgRelayerKeeper, ctx sdk.Context)

func MockGetSupportedChainFromChainID_pell

func MockGetSupportedChainFromChainID_pell(m *xmsgmocks.XmsgRelayerKeeper, senderChain *chains.Chain)

func MockIsAuthorized

func MockIsAuthorized(m *mock.Mock, address string, policyType types.PolicyType, isAuthorized bool)

MockIsAuthorized mocks the IsAuthorized method of an authority keeper mock

func MockPayGasAndUpdateXmsg_pell

func MockPayGasAndUpdateXmsg_pell(m *xmsgmocks.XmsgPevmKeeper, m2 *xmsgmocks.XmsgRelayerKeeper, ctx sdk.Context, k keeper.Keeper, senderChain chains.Chain)

func MockProcessFailedOutboundForPEVMTx_pell

func MockProcessFailedOutboundForPEVMTx_pell(m *xmsgmocks.XmsgPevmKeeper, ctx sdk.Context, xmsg *types.Xmsg)

func MockRevertForHandleEVMEvents_pell

func MockRevertForHandleEVMEvents_pell(m *xmsgmocks.XmsgPevmKeeper, senderChainID int64, err error)

func MockSaveOutBoundNewRevertCreated_pell

func MockSaveOutBoundNewRevertCreated_pell(m *xmsgmocks.XmsgRelayerKeeper, ctx sdk.Context, xmsg *types.Xmsg, tss relayertypes.TSS)

func MockSaveOutBound_pell

func MockSaveOutBound_pell(m *xmsgmocks.XmsgRelayerKeeper, ctx sdk.Context, xmsg *types.Xmsg, tss relayertypes.TSS)

func MockUpdateNonce_pell

func MockUpdateNonce_pell(m *xmsgmocks.XmsgRelayerKeeper, senderChain chains.Chain) (nonce uint64)

func MockVoteOnOutboundFailedBallot_pell

func MockVoteOnOutboundFailedBallot_pell(m *xmsgmocks.XmsgRelayerKeeper, ctx sdk.Context, xmsg *types.Xmsg, senderChain chains.Chain, observer string)

func MockVoteOnOutboundSuccessBallot_pell

func MockVoteOnOutboundSuccessBallot_pell(m *xmsgmocks.XmsgRelayerKeeper, ctx sdk.Context, xmsg *types.Xmsg, senderChain chains.Chain, observer string)

func MockXmsgByNonce_pell

func MockXmsgByNonce_pell(
	t *testing.T,
	ctx sdk.Context,
	k keeper.Keeper,
	observerKeeper *xmsgmocks.XmsgRelayerKeeper,
	xmsgStatus types.XmsgStatus,
	isErr bool,
)

MockXmsgByNonce is a utility function using observer mock to returns a xmsg of the given status from xmsg keeper mocks the methods called by XmsgByNonce to directly return the given xmsg or error

func ModuleAccountAddrs

func ModuleAccountAddrs(maccPerms map[string][]string) map[string]bool

ModuleAccountAddrs returns all the app's module account addresses.

func NewCodec

func NewCodec() *codec.ProtoCodec

func NewContext

func NewContext(stateStore store.CommitMultiStore) sdk.Context

NewContext creates a new sdk.Context for testing purposes with initialized header

func ParamsKeeper

func ParamsKeeper(
	cdc codec.Codec,
	db *dbm.MemDB,
	ss store.CommitMultiStore,
) paramskeeper.Keeper

ParamsKeeper instantiates a param keeper for testing purposes

func PevmKeeper

PevmKeeper initializes a pevm keeper for testing purposes

func PevmKeeperAllMocks

func PevmKeeperAllMocks(t testing.TB) (*keeper.Keeper, sdk.Context)

PevmKeeperAllMocks initializes a pevm keeper for testing purposes with all keeper mocked

func PevmKeeperWithMocks

func PevmKeeperWithMocks(t testing.TB, mockOptions PevmMockOptions) (*keeper.Keeper, sdk.Context, SDKKeepers, PellKeepers)

PevmKeeperWithMocks initializes a pevm keeper for testing purposes with option to mock specific keepers

func RelayerKeeper

func RelayerKeeper(t testing.TB) (*keeper.Keeper, sdk.Context, SDKKeepers, PellKeepers)

RelayerKeeper instantiates an relayer keeper for testing purposes

func RelayerKeeperWithMocks

func RelayerKeeperWithMocks(t testing.TB, mockOptions RelayerMockOptions) (*keeper.Keeper, sdk.Context, SDKKeepers, PellKeepers)

RelayerKeeperWithMocks instantiates an relayer keeper for testing purposes with the option to mock specific keepers

func RestakingKeeper

func RestakingKeeper(t testing.TB) (*keeper.Keeper, sdk.Context)

**RestakingKeeper initializes a `restaking` keeper for testing without mocks.**

func RestakingKeeperAllMocks

func RestakingKeeperAllMocks(t testing.TB) (*keeper.Keeper, sdk.Context)

**RestakingKeeperAllMocks initializes a `restaking` keeper for testing with all mocks.**

func RestakingKeeperWithMocks

func RestakingKeeperWithMocks(
	t testing.TB,
	mockOptions RestakingMockOptions,
) (*keeper.Keeper, sdk.Context)

**RestakingKeeperWithMocks initializes a `restaking` keeper for testing with optional mocked dependencies.**

func SetAdminPolices

func SetAdminPolices(ctx sdk.Context, ak *keeper.Keeper) string

func SetConfig

func SetConfig(seal bool)

func SlashingKeeper

func SlashingKeeper(
	cdc codec.Codec,
	amino *codec.LegacyAmino,
	db *dbm.MemDB,
	ss store.CommitMultiStore,
	stakingKeeper stakingkeeper.Keeper,
	paramKeeper paramskeeper.Keeper,
) slashingkeeper.Keeper

SlashingKeeper instantiates a slashing keeper for testing purposes

func StakingKeeper

func StakingKeeper(
	cdc codec.Codec,
	db *dbm.MemDB,
	ss store.CommitMultiStore,
	authKeeper authkeeper.AccountKeeper,
	bankKeeper bankkeeper.Keeper,
	paramKeeper paramskeeper.Keeper,
) *stakingkeeper.Keeper

StakingKeeper instantiates a staking keeper for testing purposes

func UpgradeKeeper

func UpgradeKeeper(
	cdc codec.Codec,
	db *dbm.MemDB,
	ss store.CommitMultiStore,
) *upgradekeeper.Keeper

UpgradeKeeper instantiates an upgrade keeper for testing purposes

func XSecurityKeeper

func XSecurityKeeper(t testing.TB) (*keeper.Keeper, sdk.Context)

XSecurityKeeper initializes a `xsecurity` keeper for testing without mocks.

func XSecurityKeeperAllMocks

func XSecurityKeeperAllMocks(t testing.TB) (*keeper.Keeper, sdk.Context)

XSecurityKeeperAllMocks initializes a `xsecurity` keeper for testing with all mocks.

func XSecurityKeeperWithMocks

func XSecurityKeeperWithMocks(
	t testing.TB,
	mockOptions XSecurityMockOptions,
) (*keeper.Keeper, sdk.Context)

XSecurityKeeperWithMocks initializes a `xsecurity` keeper for testing with optional mocked dependencies.

func XmsgKeeper

XmsgKeeper initializes a xmsg keeper for testing purposes

func XmsgKeeperAllMocks

func XmsgKeeperAllMocks(t testing.TB) (*keeper.Keeper, sdk.Context)

XmsgKeeperAllMocks initializes a xmsg keeper for testing purposes with all mocks

func XmsgKeeperWithMocks

func XmsgKeeperWithMocks(
	t testing.TB,
	mockOptions XmsgMockOptions,
) (*keeper.Keeper, sdk.Context, SDKKeepers, PellKeepers)

XmsgKeeperWithMocks initializes a xmsg keeper for testing purposes with option to mock specific keepers

Types

type EmissionMockOptions

type EmissionMockOptions struct {
	UseBankMock       bool
	UseStakingMock    bool
	UseObserverMock   bool
	UseAccountMock    bool
	UseParamStoreMock bool
}

type LightclientMockOptions

type LightclientMockOptions struct {
	UseAuthorityMock bool
}

LightclientMockOptions represents options for instantiating a lightclient keeper with mocks

type PellKeepers

type PellKeepers struct {
	AuthorityKeeper   *authoritykeeper.Keeper
	EmissionsKeeper   *emissionskeeper.Keeper
	ObserverKeeper    *relayerkeeper.Keeper
	LightclientKeeper *lightclientkeeper.Keeper
	XmsgKeeper        *xmsgkeeper.Keeper
	PevmKeeper        *pevmkeeper.Keeper
}

PellKeepers is a struct containing Pell module keepers for test purposes

func (PellKeepers) InitGenesis

func (zk PellKeepers) InitGenesis(ctx sdk.Context)

InitGenesis initializes the test modules genesis state for defined Pell modules

type PevmMockEVMKeeper

type PevmMockEVMKeeper struct {
	*pevmmocks.PevmEVMKeeper
}

func GetPevmEVMMock

func GetPevmEVMMock(t testing.TB, keeper *keeper.Keeper) *PevmMockEVMKeeper

func (*PevmMockEVMKeeper) MockEVMFailCallOnce

func (m *PevmMockEVMKeeper) MockEVMFailCallOnce()

func (*PevmMockEVMKeeper) MockEVMSuccessCallOnce

func (m *PevmMockEVMKeeper) MockEVMSuccessCallOnce()

func (*PevmMockEVMKeeper) MockEVMSuccessCallOnceWithReturn

func (m *PevmMockEVMKeeper) MockEVMSuccessCallOnceWithReturn(ret *evmtypes.MsgEthereumTxResponse)

func (*PevmMockEVMKeeper) MockEVMSuccessCallTimes

func (m *PevmMockEVMKeeper) MockEVMSuccessCallTimes(times int)

func (*PevmMockEVMKeeper) MockEVMSuccessCallTimesWithReturn

func (m *PevmMockEVMKeeper) MockEVMSuccessCallTimesWithReturn(ret *evmtypes.MsgEthereumTxResponse, times int)

func (*PevmMockEVMKeeper) SetupMockEVMKeeperForSystemContractDeployment

func (m *PevmMockEVMKeeper) SetupMockEVMKeeperForSystemContractDeployment()

type PevmMockOptions

type PevmMockOptions struct {
	UseBankMock      bool
	UseAccountMock   bool
	UseObserverMock  bool
	UseEVMMock       bool
	UseAuthorityMock bool
}

type ProtocolVersionSetter

type ProtocolVersionSetter struct{}

ProtocolVersionSetter mock

func (ProtocolVersionSetter) SetProtocolVersion

func (vs ProtocolVersionSetter) SetProtocolVersion(uint64)

type RelayerMockOptions

type RelayerMockOptions struct {
	UseStakingMock     bool
	UseSlashingMock    bool
	UseAuthorityMock   bool
	UseLightclientMock bool
	UsePevmMock        bool
}

RelayerMockOptions represents options for instantiating an relayer keeper with mocks

type RelayerMockSlashingKeeper

type RelayerMockSlashingKeeper struct {
	*relayermocks.RelayerSlashingKeeper
}

RelayerMockSlashingKeeper is a wrapper of the relayer slashing keeper mock that add methods to mock the IsTombstoned method

func GetRelayerSlashingMock

func GetRelayerSlashingMock(t testing.TB, keeper *keeper.Keeper) *RelayerMockSlashingKeeper

GetRelayerSlashingMock returns a new relayer slashing keeper mock

func (*RelayerMockSlashingKeeper) MockIsTombstoned

func (m *RelayerMockSlashingKeeper) MockIsTombstoned(isTombstoned bool)

type RelayerMockStakingKeeper

type RelayerMockStakingKeeper struct {
	*relayermocks.RelayerStakingKeeper
}

RelayerMockStakingKeeper is a wrapper of the relayer staking keeper mock that add methods to mock the GetValidator method

func GetRelayerStakingMock

func GetRelayerStakingMock(t testing.TB, keeper *keeper.Keeper) *RelayerMockStakingKeeper

GetRelayerStakingMock returns a new relayer staking keeper mock

func (*RelayerMockStakingKeeper) MockGetValidator

func (m *RelayerMockStakingKeeper) MockGetValidator(validator stakingtypes.Validator)

type RestakingMockOptions

type RestakingMockOptions struct {
	UseBankMock      bool
	UseAccountMock   bool
	UseAuthorityMock bool
	UseEvmMock       bool
	UseRelayerMock   bool
	UsePevmMock      bool
}

type SDKKeepers

type SDKKeepers struct {
	ParamsKeeper    paramskeeper.Keeper
	AuthKeeper      authkeeper.AccountKeeper
	BankKeeper      bankkeeper.Keeper
	StakingKeeper   stakingkeeper.Keeper
	SlashingKeeper  slashingkeeper.Keeper
	FeeMarketKeeper feemarketkeeper.Keeper
	EvmKeeper       *evmkeeper.Keeper
}

SDKKeepers is a struct containing regular SDK module keepers for test purposes

func NewSDKKeepers

func NewSDKKeepers(
	cdc codec.Codec,
	amino *codec.LegacyAmino,
	db *dbm.MemDB,
	ss store.CommitMultiStore,
) SDKKeepers

NewSDKKeepers instantiates regular Cosmos SDK keeper such as staking with local storage for testing purposes

func (SDKKeepers) InitBlockProposer

func (sdkk SDKKeepers) InitBlockProposer(t testing.TB, ctx sdk.Context) sdk.Context

InitBlockProposer initialize the block proposer for test purposes with an associated validator

func (SDKKeepers) InitGenesis

func (sdkk SDKKeepers) InitGenesis(ctx sdk.Context)

InitGenesis initializes the test modules genesis state

type XSecurityMockOptions

type XSecurityMockOptions struct {
	UseStakingMock      bool
	UseSlashingMock     bool
	UseStakingHooksMock bool
	UseAuthorityMock    bool
	UseRelayerMock      bool
	UsePevmMock         bool
	UseRestakingMock    bool
}

type XmsgMockOptions

type XmsgMockOptions struct {
	UseBankMock        bool
	UseAccountMock     bool
	UseStakingMock     bool
	UseObserverMock    bool
	UsePevmMock        bool
	UseAuthorityMock   bool
	UseLightclientMock bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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