Skip to content

Commit

Permalink
add to config template
Browse files Browse the repository at this point in the history
  • Loading branch information
jhernandezb committed May 23, 2024
1 parent 9eb7a01 commit f67e68f
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion app/params/config.go
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
package params

import (
"time"

wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types"
serverconfig "github.com/cosmos/cosmos-sdk/server/config"
oracleconfig "github.com/skip-mev/slinky/oracle/config"
)

// CustomAppConfig defines the configuration for the Nois app.
type CustomAppConfig struct {
serverconfig.Config
Wasm wasmtypes.WasmConfig `mapstructure:"wasm"`
Wasm wasmtypes.WasmConfig `mapstructure:"wasm"`
Oracle oracleconfig.AppConfig `mapstructure:"oracle"`
}

func CustomconfigTemplate(config wasmtypes.WasmConfig) string {
Expand All @@ -29,6 +33,12 @@ func DefaultConfig() (string, interface{}) {
customConfig := CustomAppConfig{
Config: *serverConfig,
Wasm: wasmConfig,
Oracle: oracleconfig.AppConfig{
Enabled: false,
OracleAddress: "localhost:8080",
ClientTimeout: time.Second * 1,
MetricsEnabled: false,
},
}

return CustomconfigTemplate(wasmConfig), customConfig
Expand Down

0 comments on commit f67e68f

Please sign in to comment.