allowance

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TypeReference = foundation.Reference("allowance")

Functions

This section is empty.

Types

type Allowance

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

func NewAllowance

func NewAllowance(to foundation.Reference, 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