prototype

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 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 meter.Address, blockTime uint64)

func (*Binding) CreditPlan

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

func (*Binding) CurrentSponsor

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

func (*Binding) IsSponsor

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

func (*Binding) IsUser

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

func (*Binding) RemoveUser

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

func (*Binding) SelectSponsor

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

func (*Binding) SetCreditPlan

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

func (*Binding) SetUserCredit

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

func (*Binding) Sponsor

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

func (*Binding) UserCredit

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

type Prototype

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

func New

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

func (*Prototype) Bind

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

Jump to

Keyboard shortcuts

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