feat: allow custom authority and inflation function when using app-wiring (#12660)

This commit is contained in:
Julien Robert
2022-07-21 12:28:21 +02:00
committed by GitHub
parent 345e81aa32
commit b72d12e5e8
8 changed files with 136 additions and 90 deletions
+16 -2
View File
@@ -193,8 +193,22 @@ func NewSimApp(
app = &SimApp{}
appBuilder *runtime.AppBuilder
// merge the app.yaml and the appOpts in one config
appConfig = depinject.Configs(AppConfig, depinject.Supply(appOpts))
// merge the AppConfig and other configuration in one config
appConfig = depinject.Configs(
AppConfig,
depinject.Supply(
// supply the application options
appOpts,
// for providing a custom inflaction function for x/mint
// add here your custom function that implements the minttypes.InflationCalculationFn interface.
// for providing a custom authority to a module simply add it below. By default the governance module is the default authority.
// map[string]sdk.AccAddress{
// minttypes.ModuleName: authtypes.NewModuleAddress(authtypes.ModuleName),
// },
),
)
)
if err := depinject.Inject(appConfig,