prototype

package
v2.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 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 thor.Address, blockTime uint64) error

func (*Binding) CreditPlan

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

func (*Binding) CurrentSponsor

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

func (*Binding) IsSponsor

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

func (*Binding) IsUser

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

func (*Binding) RemoveUser

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

func (*Binding) SelectSponsor

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

func (*Binding) SetCreditPlan

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

func (*Binding) SetUserCredit

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

func (*Binding) Sponsor

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

func (*Binding) UserCredit

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

type Prototype

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

func New

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

func (*Prototype) Bind

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

Jump to

Keyboard shortcuts

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