From 15bcbf4a8db53f6ef3019187f01ee329fece7d6f Mon Sep 17 00:00:00 2001 From: Masih Yeganeh Date: Thu, 12 Sep 2024 10:49:53 +0330 Subject: [PATCH] Set value for expedited_min_deposit --- go.mod | 2 +- go.sum | 4 ++-- go.work.sum | 2 +- infra/apps/cored/config.go | 7 ++++--- infra/apps/cored/cored.go | 1 + infra/apps/profiles.go | 1 + 6 files changed, 10 insertions(+), 7 deletions(-) diff --git a/go.mod b/go.mod index 8d0e2015..781847cb 100644 --- a/go.mod +++ b/go.mod @@ -15,7 +15,7 @@ require ( cosmossdk.io/math v1.3.0 github.com/BurntSushi/toml v1.2.1 github.com/CoreumFoundation/coreum-tools v0.4.1-0.20230627094203-821c6a4eebab - github.com/CoreumFoundation/coreum/v4 v4.0.0-20240911082156-53c8d4124c8a + github.com/CoreumFoundation/coreum/v4 v4.0.0-20240912071617-43930506e0a3 github.com/CosmWasm/wasmd v0.53.0 github.com/cometbft/cometbft v0.38.11 github.com/cosmos/cosmos-sdk v0.50.9 diff --git a/go.sum b/go.sum index 43fd3405..d19e4242 100644 --- a/go.sum +++ b/go.sum @@ -56,8 +56,8 @@ github.com/BurntSushi/toml v1.2.1/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbi github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= github.com/CoreumFoundation/coreum-tools v0.4.1-0.20230627094203-821c6a4eebab h1:XPcSzlQ06tor/py1LkEM9FX70LIeDWB++vLuAO6eAYI= github.com/CoreumFoundation/coreum-tools v0.4.1-0.20230627094203-821c6a4eebab/go.mod h1:VD93vCHkxYaT/RhOesXTFgd/GQDW54tr0BqGi5JU1c0= -github.com/CoreumFoundation/coreum/v4 v4.0.0-20240911082156-53c8d4124c8a h1:UCh2sUGI6oYieZgI7WGlReWcqsjelpROv2eaHEpV6rc= -github.com/CoreumFoundation/coreum/v4 v4.0.0-20240911082156-53c8d4124c8a/go.mod h1:3xSyRVosHkpO90zIot807kqxN59/XyU7qNuR/AIJPsc= +github.com/CoreumFoundation/coreum/v4 v4.0.0-20240912071617-43930506e0a3 h1:VKuJdup6tOQAnRVxOdXfx5ciQyqIL2BrxTiVgJA2NR0= +github.com/CoreumFoundation/coreum/v4 v4.0.0-20240912071617-43930506e0a3/go.mod h1:3xSyRVosHkpO90zIot807kqxN59/XyU7qNuR/AIJPsc= github.com/CosmWasm/wasmd v0.53.0 h1:kdaoAi20bIb4VCsxw9pRaT2g5PpIp82Wqrr9DRVN9ao= github.com/CosmWasm/wasmd v0.53.0/go.mod h1:FJl/aWjdpGof3usAMFQpDe07Rkx77PUzp0cygFMOvtw= github.com/CosmWasm/wasmvm/v2 v2.1.2 h1:GkJ5bAsRlLHfIQVg/FY1VHwLyBwlCjAhDea0B8L+e20= diff --git a/go.work.sum b/go.work.sum index 5b7ce11c..79205412 100644 --- a/go.work.sum +++ b/go.work.sum @@ -945,7 +945,7 @@ github.com/CoreumFoundation/coreum-tools v0.4.1-0.20240321120602-0a9c50facc68 h1 github.com/CoreumFoundation/coreum-tools v0.4.1-0.20240321120602-0a9c50facc68/go.mod h1:VD93vCHkxYaT/RhOesXTFgd/GQDW54tr0BqGi5JU1c0= github.com/CoreumFoundation/coreum/v4 v4.0.0-20240808130426-0c7f16cd6d68 h1:U1ytqqraOwu2YWfCbPex1G3Spn/dMDpZT7JmuKpK3CE= github.com/CoreumFoundation/coreum/v4 v4.0.0-20240808130426-0c7f16cd6d68/go.mod h1:H7VjwBagugJ8zSgFYs7/W8ZDhG8MhLazv5Cxqg39jP8= -github.com/CoreumFoundation/coreum/v4 v4.0.0-20240911082156-53c8d4124c8a/go.mod h1:3xSyRVosHkpO90zIot807kqxN59/XyU7qNuR/AIJPsc= +github.com/CoreumFoundation/coreum/v4 v4.0.0-20240912071617-43930506e0a3/go.mod h1:3xSyRVosHkpO90zIot807kqxN59/XyU7qNuR/AIJPsc= github.com/CosmWasm/wasmvm v1.5.2 h1:+pKB1Mz9GZVt1vadxB+EDdD1FOz3dMNjIKq/58/lrag= github.com/CosmWasm/wasmvm v1.5.2/go.mod h1:Q0bSEtlktzh7W2hhEaifrFp1Erx11ckQZmjq8FLCyys= github.com/DATA-DOG/go-sqlmock v1.5.0/go.mod h1:f/Ixk793poVmq4qj/V1dPUg2JEAKC73Q5eFN3EC/SaM= diff --git a/infra/apps/cored/config.go b/infra/apps/cored/config.go index 64007403..8bd0273f 100644 --- a/infra/apps/cored/config.go +++ b/infra/apps/cored/config.go @@ -54,9 +54,10 @@ func NetworkConfig(genesisTemplate string, blockTimeIota time.Duration) (config. Denom: constant.DenomDev, GovConfig: config.GovConfig{ ProposalConfig: config.GovProposalConfig{ - MinDepositAmount: "1000", - VotingPeriod: (time.Second * 20).String(), - ExpeditedVotingPeriod: (time.Second * 20).String(), + MinDepositAmount: "1000", + ExpeditedMinDepositAmount: "2000", + VotingPeriod: (time.Second * 20).String(), + ExpeditedVotingPeriod: (time.Second * 20).String(), }, }, CustomParamsConfig: config.CustomParamsConfig{ diff --git a/infra/apps/cored/cored.go b/infra/apps/cored/cored.go index 63b97358..41a2b511 100644 --- a/infra/apps/cored/cored.go +++ b/infra/apps/cored/cored.go @@ -109,6 +109,7 @@ type GenesisInitConfig struct { //nolint:tagliatelle type GovConfig struct { MinDeposit sdk.Coins `json:"min_deposit"` + ExpeditedMinDeposit sdk.Coins `json:"expedited_min_deposit"` VotingPeriod time.Duration `json:"voting_period"` ExpeditedVotingPeriod time.Duration `json:"expedited_voting_period"` } diff --git a/infra/apps/profiles.go b/infra/apps/profiles.go index a675cc9d..de94e2d2 100644 --- a/infra/apps/profiles.go +++ b/infra/apps/profiles.go @@ -153,6 +153,7 @@ func BuildAppSet(appF *Factory, profiles []string, coredVersion string) (infra.A GenesisTime: time.Now(), GovConfig: cored.GovConfig{ MinDeposit: sdk.NewCoins(sdk.NewInt64Coin(constant.DenomDev, 1000)), + ExpeditedMinDeposit: sdk.NewCoins(sdk.NewInt64Coin(constant.DenomDev, 2000)), VotingPeriod: 20 * time.Second, ExpeditedVotingPeriod: 20 * time.Second, },