prototype

package
v0.0.0-...-75aef46 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2019 License: GPL-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 powerplay.Address, blockTime uint64)

func (*Binding) CreditPlan

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

func (*Binding) CurrentSponsor

func (b *Binding) CurrentSponsor() powerplay.Address

func (*Binding) IsSponsor

func (b *Binding) IsSponsor(sponsor powerplay.Address) (flag bool)

func (*Binding) IsUser

func (b *Binding) IsUser(user powerplay.Address) bool

func (*Binding) RemoveUser

func (b *Binding) RemoveUser(user powerplay.Address)

func (*Binding) SelectSponsor

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

func (*Binding) SetCreditPlan

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

func (*Binding) SetUserCredit

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

func (*Binding) Sponsor

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

func (*Binding) UserCredit

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

type Prototype

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

func New

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

func (*Prototype) Bind

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

Jump to

Keyboard shortcuts

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