Skip to content Search Apps Documentation Source Content File Folder Download Copy Actions State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

consts.gno

0.50 Kb · 17 lines
 1package governance
 2
 3const (
 4	// Governance can execute multiple messages in a single proposal
 5	// each message is a string with the following format:
 6	// <pkgPath>*EXE*<function>*EXE*<params>
 7	// To execute a message, we need to parse the message and call the corresponding function
 8	// with the given parameters
 9	parameterSeparator = "*EXE*"
10
11	messageSeparator = "*GOV*"
12
13	maxTitleLength       = 255
14	maxDescriptionLength = 10_000
15	maxNumberOfExecution = 10
16	maxSmoothingPeriod   = 30 * 60 * 60 * 24 // 30 days
17)