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

validators/v2 package

Overview

Package validators implements the on-chain validator set management through Proof of Contribution. The Realm exposes only a public executor for govdao proposals, that can suggest validator set changes.

Function

GetChanges

func GetChanges(from, to int64) []validators.Validator
Ask AI Claude ChatGPT

GetChanges returns the validator changes stored on the realm, for blocks in the [from, to] range (inclusive on both ends). If to >= math.MaxInt64, it is clamped to math.MaxInt64-1 to avoid overflow. Panics if from > to (after clamping). This function is intended to be called by gno.land through the GnoSDK.

Params

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/sys/validators/v2.GetChanges(,)"

Result

Gno Expression Evaluator

Evaluate any read-only Gno expression against gno.land/r/sys/validators/v2, for example a function call with arguments.