prototype

package
v0.0.0-...-e4e12f0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 12, 2022 License: LGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Binding

type Binding struct {
	// contains filtered or unexported fields
}

func (*Binding) AddUser

func (b *Binding) AddUser(user workshare.Address, blockTime uint64) error

func (*Binding) CreditPlan

func (b *Binding) CreditPlan() (credit, recoveryRate *big.Int, err error)

func (*Binding) CurrentSponsor

func (b *Binding) CurrentSponsor() (workshare.Address, error)

func (*Binding) IsSponsor

func (b *Binding) IsSponsor(sponsor workshare.Address) (flag bool, err error)

func (*Binding) IsUser

func (b *Binding) IsUser(user workshare.Address) (bool, error)

func (*Binding) RemoveUser

func (b *Binding) RemoveUser(user workshare.Address) error

func (*Binding) SelectSponsor

func (b *Binding) SelectSponsor(sponsor workshare.Address)

func (*Binding) SetCreditPlan

func (b *Binding) SetCreditPlan(credit, recoveryRate *big.Int) error

func (*Binding) SetUserCredit

func (b *Binding) SetUserCredit(user workshare.Address, credit *big.Int, blockTime uint64) error

func (*Binding) Sponsor

func (b *Binding) Sponsor(sponsor workshare.Address, flag bool) error

func (*Binding) UserCredit

func (b *Binding) UserCredit(user workshare.Address, blockTime uint64) (*big.Int, error)

type Prototype

type Prototype struct {
	// contains filtered or unexported fields
}

func New

func New(addr workshare.Address, state *state.State) *Prototype

func (*Prototype) Bind

func (p *Prototype) Bind(self workshare.Address) *Binding

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL