GetChanges
func(from int64, to int64) []validators.ValidatorGetChanges 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.
- OID
- 06dff3…f482:3
GetChanges details
init.1
func()- OID
- 06dff3…f482:5
init.1 details
NewPropRequest
func(changesFn func(...), title string, description string) dao.ProposalRequestNewPropRequest creates a new proposal request that wraps a changes closure proposal. This wrapper is required to ensure the GovDAO Realm actually executed the callback.
- OID
- 06dff3…f482:7
NewPropRequest details
IsValidator
func(addr .uverse.address) boolIsValidator returns a flag indicating if the given bech32 address is part of the validator set
- OID
- 06dff3…f482:9
IsValidator details
GetValidator
func(addr .uverse.address) validators.ValidatorGetValidator returns the typed validator
- OID
- 06dff3…f482:10
GetValidator details
GetValidators
func() []validators.ValidatorGetValidators returns the typed validator set
- OID
- 06dff3…f482:11
GetValidators details
vp
*v0.PoA// p is the underlying validator set protocol
- OID
- 06dff3…f482:21
vp details
changes
*v0.BPTree// changes holds any valset changes; seqid(block number) -> \[]change
- OID
- 06dff3…f482:25
changes details
change
typechange represents a single valset change, tied to a specific block number
Value
v2.change
addValidator
func(validator validators.Validator)addValidator adds a new validator to the validator set. If the validator is already present, the method errors out
- OID
- 06dff3…f482:14
addValidator details
removeValidator
func(address_XXX .uverse.address)removeValidator removes the given validator from the set. If the validator is not present in the set, the method errors out
- OID
- 06dff3…f482:16
removeValidator details
saveChange
func(ch v2.change)saveChange saves the valset change
- OID
- 06dff3…f482:17
saveChange details
getBlockID
func(blockNum int64) stringgetBlockID converts the block number to a sequential ID
- OID
- 06dff3…f482:18
getBlockID details
Render
func(string) string- OID
- 06dff3…f482:19