From f67e68f3b9edecb874ace428729c9a23a8c9b21a Mon Sep 17 00:00:00 2001 From: jhernandezb Date: Wed, 22 May 2024 20:55:10 -0600 Subject: [PATCH] add to config template --- app/params/config.go | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/app/params/config.go b/app/params/config.go index 820230862..b5571cbbd 100644 --- a/app/params/config.go +++ b/app/params/config.go @@ -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 { @@ -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