github.com/cosmos/cosmos-sdk@v0.50.10/x/group/config.go (about) 1 package group 2 3 import "time" 4 5 // Config is a config struct used for intialising the group module to avoid using globals. 6 type Config struct { 7 // MaxExecutionPeriod defines the max duration after a proposal's voting 8 // period ends that members can send a MsgExec to execute the proposal. 9 MaxExecutionPeriod time.Duration 10 // MaxMetadataLen defines the max length of the metadata bytes field for various entities within the group module. Defaults to 255 if not explicitly set. 11 MaxMetadataLen uint64 12 } 13 14 // DefaultConfig returns the default config for group. 15 func DefaultConfig() Config { 16 return Config{ 17 MaxExecutionPeriod: 2 * time.Hour * 24 * 7, // Two weeks. 18 MaxMetadataLen: 255, 19 } 20 }