Documentation
¶
Index ¶
- type Binding
- func (b *Binding) AddUser(user luckyshare.Address, blockTime uint64) error
- func (b *Binding) CreditPlan() (credit, recoveryRate *big.Int, err error)
- func (b *Binding) CurrentSponsor() (luckyshare.Address, error)
- func (b *Binding) IsSponsor(sponsor luckyshare.Address) (flag bool, err error)
- func (b *Binding) IsUser(user luckyshare.Address) (bool, error)
- func (b *Binding) RemoveUser(user luckyshare.Address) error
- func (b *Binding) SelectSponsor(sponsor luckyshare.Address)
- func (b *Binding) SetCreditPlan(credit, recoveryRate *big.Int) error
- func (b *Binding) SetUserCredit(user luckyshare.Address, credit *big.Int, blockTime uint64) error
- func (b *Binding) Sponsor(sponsor luckyshare.Address, flag bool) error
- func (b *Binding) UserCredit(user luckyshare.Address, blockTime uint64) (*big.Int, error)
- type Prototype
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 luckyshare.Address, blockTime uint64) error
func (*Binding) CreditPlan ¶
func (*Binding) CurrentSponsor ¶
func (b *Binding) CurrentSponsor() (luckyshare.Address, error)
func (*Binding) IsSponsor ¶
func (b *Binding) IsSponsor(sponsor luckyshare.Address) (flag bool, err error)
func (*Binding) RemoveUser ¶
func (b *Binding) RemoveUser(user luckyshare.Address) error
func (*Binding) SelectSponsor ¶
func (b *Binding) SelectSponsor(sponsor luckyshare.Address)
func (*Binding) SetCreditPlan ¶
func (*Binding) SetUserCredit ¶
func (*Binding) UserCredit ¶
Click to show internal directories.
Click to hide internal directories.