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