allowance

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Allowance

type Allowance struct {
	foundation.BaseContract
	To         core.RecordRef
	Amount     uint
	ExpireTime int64
}

func New added in v0.3.0

func New(to *core.RecordRef, amount uint, expire int64) *Allowance

func (*Allowance) DeleteExpiredAllowance

func (a *Allowance) DeleteExpiredAllowance() uint

func (*Allowance) GetBalanceForOwner

func (a *Allowance) GetBalanceForOwner() uint

func (*Allowance) IsExpired

func (a *Allowance) IsExpired() bool

func (*Allowance) TakeAmount

func (a *Allowance) TakeAmount() uint

Jump to

Keyboard shortcuts

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