1package validators23import (4 "math"56 "gno.land/p/sys/validators/v0"7)89// GetChanges returns the validator changes stored on the realm,10// for blocks in the [from, to] range (inclusive on both ends).11// If to >= math.MaxInt64, it is clamped to math.MaxInt64-1 to avoid overflow.12// Panics if from > to (after clamping).13// This function is intended to be called by gno.land through the GnoSDK.14func GetChanges(from, to int64) []validators.Validator {15 if to > math.MaxInt64-1 {16 to = math.MaxInt64 - 117 }18 if to < from {19 panic("invalid range: from must be <= to")20 }2122 valsetChanges := make([]validators.Validator, 0)2324 // Gather the changes in the [from, to] block range.25 // AVL Iterate uses an exclusive end, so we pass to+1.26 changes.Iterate(getBlockID(from), getBlockID(to+1), func(_ string, value any) bool {27 chs := value.([]change)2829 for _, ch := range chs {30 valsetChanges = append(valsetChanges, ch.validator)31 }3233 return false34 })3536 return valsetChanges37}38GetChanges(from int64, to int64) []gno.land/p/sys/validators/v0.Validator
GetValidator(addr string) struct{Address .uverse.address; PubKey string; VotingPower uint64}
GetValidators() []gno.land/p/sys/validators/v0.Validator
IsValidator(addr string) bool
NewPropRequest(cur interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}, changesFn func() []gno.land/p/sys/validators/v0.Validator, title string, description string) struct{title string; description string; executor gno.land/r/gov/dao.Executor; filter gno.land/r/gov/dao.Filter}
Render(string) string
Signatures reconstructed verbatim from vm/qfuncs — interface params keep their inline definitions.
vm/qrender output, sanitized (docs/render-security.md) and displayed in an empty-sandbox iframe — scripts, forms and popups cannot run. Links stay inert in-preview; right-click to open.