Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // AppConfig application configuration (used by depinject) AppConfig = appconfig.Compose(&appv1alpha1.Config{ Modules: []*appv1alpha1.ModuleConfig{ { Name: "runtime", Config: appconfig.WrapAny(&runtimev1alpha1.Module{ AppName: "SimApp", BeginBlockers: []string{ upgradetypes.ModuleName, capabilitytypes.ModuleName, minttypes.ModuleName, distrtypes.ModuleName, slashingtypes.ModuleName, evidencetypes.ModuleName, stakingtypes.ModuleName, authtypes.ModuleName, banktypes.ModuleName, govtypes.ModuleName, crisistypes.ModuleName, genutiltypes.ModuleName, authz.ModuleName, feegrant.ModuleName, group.ModuleName, paramstypes.ModuleName, vestingtypes.ModuleName, coinswaptypes.ModuleName, farmtypes.ModuleName, htlctypes.ModuleName, mttypes.ModuleName, nfttypes.ModuleName, servicetypes.ModuleName, oracletypes.ModuleName, randomtypes.ModuleName, recordtypes.ModuleName, tokentypes.ModuleName, consensustypes.ModuleName, }, EndBlockers: []string{ crisistypes.ModuleName, govtypes.ModuleName, stakingtypes.ModuleName, capabilitytypes.ModuleName, authtypes.ModuleName, banktypes.ModuleName, distrtypes.ModuleName, slashingtypes.ModuleName, minttypes.ModuleName, genutiltypes.ModuleName, evidencetypes.ModuleName, authz.ModuleName, feegrant.ModuleName, group.ModuleName, paramstypes.ModuleName, upgradetypes.ModuleName, consensustypes.ModuleName, coinswaptypes.ModuleName, farmtypes.ModuleName, htlctypes.ModuleName, mttypes.ModuleName, nfttypes.ModuleName, servicetypes.ModuleName, oracletypes.ModuleName, randomtypes.ModuleName, recordtypes.ModuleName, tokentypes.ModuleName, vestingtypes.ModuleName, }, OverrideStoreKeys: []*runtimev1alpha1.StoreKeyConfig{ { ModuleName: authtypes.ModuleName, KvStoreKey: "acc", }, }, InitGenesis: genesisModuleOrder, }), }, { Name: authtypes.ModuleName, Config: appconfig.WrapAny(&authmodulev1.Module{ Bech32Prefix: "cosmos", ModuleAccountPermissions: moduleAccPerms, }), }, { Name: vestingtypes.ModuleName, Config: appconfig.WrapAny(&vestingmodulev1.Module{}), }, { Name: banktypes.ModuleName, Config: appconfig.WrapAny(&bankmodulev1.Module{ BlockedModuleAccountsOverride: blockAccAddrs, }), }, { Name: stakingtypes.ModuleName, Config: appconfig.WrapAny(&stakingmodulev1.Module{}), }, { Name: slashingtypes.ModuleName, Config: appconfig.WrapAny(&slashingmodulev1.Module{}), }, { Name: paramstypes.ModuleName, Config: appconfig.WrapAny(¶msmodulev1.Module{}), }, { Name: "tx", Config: appconfig.WrapAny(&txconfigv1.Config{}), }, { Name: genutiltypes.ModuleName, Config: appconfig.WrapAny(&genutilmodulev1.Module{}), }, { Name: authz.ModuleName, Config: appconfig.WrapAny(&authzmodulev1.Module{}), }, { Name: upgradetypes.ModuleName, Config: appconfig.WrapAny(&upgrademodulev1.Module{}), }, { Name: distrtypes.ModuleName, Config: appconfig.WrapAny(&distrmodulev1.Module{}), }, { Name: capabilitytypes.ModuleName, Config: appconfig.WrapAny(&capabilitymodulev1.Module{ SealKeeper: true, }), }, { Name: evidencetypes.ModuleName, Config: appconfig.WrapAny(&evidencemodulev1.Module{}), }, { Name: minttypes.ModuleName, Config: appconfig.WrapAny(&mintmodulev1.Module{}), }, { Name: group.ModuleName, Config: appconfig.WrapAny(&groupmodulev1.Module{ MaxExecutionPeriod: durationpb.New(time.Second * 1209600), MaxMetadataLen: 255, }), }, { Name: feegrant.ModuleName, Config: appconfig.WrapAny(&feegrantmodulev1.Module{}), }, { Name: govtypes.ModuleName, Config: appconfig.WrapAny(&govmodulev1.Module{}), }, { Name: crisistypes.ModuleName, Config: appconfig.WrapAny(&crisismodulev1.Module{}), }, { Name: consensustypes.ModuleName, Config: appconfig.WrapAny(&consensusmodulev1.Module{}), }, { Name: coinswaptypes.ModuleName, Config: appconfig.WrapAny(&coinswapmodule.Module{ FeeCollectorName: authtypes.FeeCollectorName, }), }, { Name: farmtypes.ModuleName, Config: appconfig.WrapAny(&farmmodule.Module{ FeeCollectorName: authtypes.FeeCollectorName, CommunityPoolName: distrtypes.ModuleName, }), }, { Name: htlctypes.ModuleName, Config: appconfig.WrapAny(&htlcmodule.Module{}), }, { Name: mttypes.ModuleName, Config: appconfig.WrapAny(&mtmodule.Module{}), }, { Name: nfttypes.ModuleName, Config: appconfig.WrapAny(&nftmodule.Module{}), }, { Name: oracletypes.ModuleName, Config: appconfig.WrapAny(&oraclemodule.Module{}), }, { Name: servicetypes.ModuleName, Config: appconfig.WrapAny(&servicemodule.Module{ FeeCollectorName: servicetypes.FeeCollectorName, }), }, { Name: randomtypes.ModuleName, Config: appconfig.WrapAny(&randommodule.Module{}), }, { Name: recordtypes.ModuleName, Config: appconfig.WrapAny(&recordmodule.Module{}), }, { Name: tokentypes.ModuleName, Config: appconfig.WrapAny(&tokenmodule.Module{ FeeCollectorName: authtypes.FeeCollectorName, }), }, }, }) )
Functions ¶
This section is empty.
Types ¶
type ModifyConfigFn ¶
ModifyConfigFn is used to modify the config for a test suite
type TestSuite ¶
TestSuite is a suite of end-to-end tests for the module
func (*TestSuite) DepinjectOptions ¶
func (s *TestSuite) DepinjectOptions() simapp.DepinjectOptions
DepinjectOptions returns the depinject options for the test suite
func (*TestSuite) SetupSuite ¶
func (s *TestSuite) SetupSuite()
SetupSuite creates a new network for integration tests
func (*TestSuite) SetupSuiteWithModifyConfigFn ¶
func (s *TestSuite) SetupSuiteWithModifyConfigFn(modifyConfigFn ModifyConfigFn)
SetupSuiteWithModifyConfigFn sets up the end-to-end test suite with the given modifyConfigFn.
Parameters: - modifyConfigFn: A function that modifies the config for the test suite.
Return type: None.
Click to show internal directories.
Click to hide internal directories.