NewConfigPtr
NewConfigPtr constructs a Config and returns a pointer to it. The Config is allocated within the governance domain realm, satisfying realm allocation checks for callers (such as tests) that require a *Config value.
Parameters:
- votingStartDelay: delay from proposal creation until voting opens, in seconds
- votingPeriod: duration for which voting remains open, in seconds
- votingWeightSmoothingDuration: interval used to smooth delegation weight, in seconds
- quorum: required approval percentage of total xGNS supply, from 0 through 100
- proposalCreationThreshold: minimum xGNS amount required to create a proposal
- executionDelay: delay after voting ends before execution, in seconds
- executionWindow: duration after the execution delay during which execution is allowed, in seconds
Returns:
- *Config: pointer to a configuration value populated with the supplied governance parameters
Command
gnokey query vm/qeval -remote "http://127.0.0.1:26657" -data "gno.land/r/gnoswap/gov/governance.NewConfigPtr(,,,,,,)"
Result