Documentation ¶
Index ¶
- type Authority
- func (a *Authority) Add(nodeMaster thor.Address, endorsor thor.Address, identity thor.Bytes32) bool
- func (a *Authority) Candidates(endorsement *big.Int, limit uint64) []*Candidate
- func (a *Authority) First() *thor.Address
- func (a *Authority) Get(nodeMaster thor.Address) (listed bool, endorsor thor.Address, identity thor.Bytes32, active bool)
- func (a *Authority) Next(nodeMaster thor.Address) *thor.Address
- func (a *Authority) Revoke(nodeMaster thor.Address) bool
- func (a *Authority) Update(nodeMaster thor.Address, active bool) bool
- type Candidate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authority ¶
type Authority struct {
// contains filtered or unexported fields
}
Authority implements native methods of `Authority` contract.
func (*Authority) Candidates ¶
Candidates picks a batch of candidates up to limit, that satisfy given endorsement.
func (*Authority) Get ¶
func (a *Authority) Get(nodeMaster thor.Address) (listed bool, endorsor thor.Address, identity thor.Bytes32, active bool)
Get get candidate by node master address.
func (*Authority) Next ¶
Next returns address of next node master address after given node master address.
Click to show internal directories.
Click to hide internal directories.