allowance

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 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

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

func (*Allowance) DeleteExpiredAllowance

func (a *Allowance) DeleteExpiredAllowance() (uint, error)

func (*Allowance) GetBalanceForOwner

func (a *Allowance) GetBalanceForOwner() (uint, error)

func (*Allowance) TakeAmount

func (a *Allowance) TakeAmount() (uint, error)

Jump to

Keyboard shortcuts

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