Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set value for expedited_min_deposit #431

Merged
merged 1 commit into from
Sep 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down
2 changes: 1 addition & 1 deletion go.work.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down
7 changes: 4 additions & 3 deletions infra/apps/cored/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down
1 change: 1 addition & 0 deletions infra/apps/cored/cored.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
}
Expand Down
1 change: 1 addition & 0 deletions infra/apps/profiles.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down