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