refactor(tests/integration): Port distribution integration tests to server v2 (#22667)
This commit is contained in:
@@ -163,7 +163,7 @@ func AuthModule() ModuleOption {
|
||||
Bech32Prefix: "cosmos",
|
||||
ModuleAccountPermissions: []*authmodulev1.ModuleAccountPermission{
|
||||
{Account: "fee_collector"},
|
||||
{Account: testutil.DistributionModuleName},
|
||||
{Account: testutil.DistributionModuleName, Permissions: []string{"minter"}},
|
||||
{Account: testutil.MintModuleName, Permissions: []string{"minter"}},
|
||||
{Account: "bonded_tokens_pool", Permissions: []string{"burner", testutil.StakingModuleName}},
|
||||
{Account: "not_bonded_tokens_pool", Permissions: []string{"burner", testutil.StakingModuleName}},
|
||||
@@ -178,6 +178,18 @@ func AuthModule() ModuleOption {
|
||||
}
|
||||
}
|
||||
|
||||
func AuthModuleWithMaccPerms(maccPerms []*authmodulev1.ModuleAccountPermission) ModuleOption {
|
||||
return func(config *Config) {
|
||||
config.ModuleConfigs[testutil.AuthModuleName] = &appv1alpha1.ModuleConfig{
|
||||
Name: testutil.AuthModuleName,
|
||||
Config: appconfig.WrapAny(&authmodulev1.Module{
|
||||
Bech32Prefix: "cosmos",
|
||||
ModuleAccountPermissions: maccPerms,
|
||||
}),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func ParamsModule() ModuleOption {
|
||||
return func(config *Config) {
|
||||
config.ModuleConfigs[testutil.ParamsModuleName] = &appv1alpha1.ModuleConfig{
|
||||
|
||||
Reference in New Issue
Block a user