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 state

Back to all declarations

GetChanges

func(from int64, to int64) []validators.Validator

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.

Open
OID
06dff3…f482:3
GetChanges details

Inspect func

NewPropRequest

func(changesFn func(...), title string, description string) dao.ProposalRequest

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.

Open
OID
06dff3…f482:7
NewPropRequest details

Inspect func

IsValidator

func(addr .uverse.address) bool

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

Open
OID
06dff3…f482:9
IsValidator details

Inspect func

GetValidator

func(addr .uverse.address) validators.Validator

GetValidator returns the typed validator

Open
OID
06dff3…f482:10
GetValidator details

Inspect func

GetValidators

func() []validators.Validator

GetValidators returns the typed validator set

Open
OID
06dff3…f482:11
GetValidators details

Inspect func

vp

*v0.PoA

// p is the underlying validator set protocol

Open
OID
06dff3…f482:21
vp details

Inspect pointer

changes

*v0.BPTree

// changes holds any valset changes; seqid(block number) -> \[]change

Open
OID
06dff3…f482:25
changes details

Inspect pointer

change

type

change 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

Open
OID
06dff3…f482:14
addValidator details

Inspect func

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

Open
OID
06dff3…f482:16
removeValidator details

Inspect func

saveChange

func(ch v2.change)

saveChange saves the valset change

Open
OID
06dff3…f482:17
saveChange details

Inspect func

getBlockID

func(blockNum int64) string

getBlockID converts the block number to a sequential ID

Open
OID
06dff3…f482:18
getBlockID details

Inspect func
GetChanges : func(from int64, to int64) []validators.Validator Inspect
init.1 : func() Inspect
NewPropRequest : func(changesFn func(...), title string, description string) dao.ProposalRequest Inspect
IsValidator : func(addr .uverse.address) bool Inspect
GetValidator : func(addr .uverse.address) validators.Validator Inspect
GetValidators : func() []validators.Validator Inspect
vp : *v0.PoA Inspect
changes : *v0.BPTree Inspect
change : type =v2.change
addValidator : func(validator validators.Validator) Inspect
removeValidator : func(address_XXX .uverse.address) Inspect
saveChange : func(ch v2.change) Inspect
getBlockID : func(blockNum int64) string Inspect
Render : func(string) string Inspect