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

v2 source realm

Package validators implements the on-chain validator set management through Proof of Contribution. The Realm exposes ...

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.

Functions 6

func GetChanges

Action
1func GetChanges(from, to int64) []validators.Validator
source

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.

func IsValidator

Action
1func IsValidator(addr address) bool
source

IsValidator returns a flag indicating if the given bech32 address is part of the validator set

func NewPropRequest

crossing Action
1func NewPropRequest(cur realm, changesFn func() []validators.Validator, title, description string) dao.ProposalRequest
source

NewPropRequest creates a new proposal request that wraps a changes closure proposal. This wrapper is required to ensure the GovDAO Realm actually executed the callback.

Imports 10

Source Files 7