allowance

package
v0.6.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ClassReference = core.NewRefFromBase58("")

ClassReference to class of this contract

Functions

func GetClass

func GetClass() core.RecordRef

GetClass returns reference to the class

Types

type Allowance

type Allowance struct {
	Reference core.RecordRef
}

Allowance holds proxy type

func GetImplementationFrom

func GetImplementationFrom(object core.RecordRef) (*Allowance, error)

GetImplementationFrom returns proxy to delegate of given type

func GetObject

func GetObject(ref core.RecordRef) (r *Allowance)

GetObject returns proxy object

func (*Allowance) DeleteExpiredAllowance

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

DeleteExpiredAllowance is proxy generated method

func (*Allowance) DeleteExpiredAllowanceNoWait

func (r *Allowance) DeleteExpiredAllowanceNoWait() error

DeleteExpiredAllowanceNoWait is proxy generated method

func (*Allowance) GetBalanceForOwner

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

GetBalanceForOwner is proxy generated method

func (*Allowance) GetBalanceForOwnerNoWait

func (r *Allowance) GetBalanceForOwnerNoWait() error

GetBalanceForOwnerNoWait is proxy generated method

func (*Allowance) GetClass

func (r *Allowance) GetClass() core.RecordRef

GetClass returns reference to the class

func (*Allowance) GetReference

func (r *Allowance) GetReference() core.RecordRef

GetReference returns reference of the object

func (*Allowance) TakeAmount

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

TakeAmount is proxy generated method

func (*Allowance) TakeAmountNoWait

func (r *Allowance) TakeAmountNoWait() error

TakeAmountNoWait is proxy generated method

type ContractConstructorHolder

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

ContractConstructorHolder holds logic with object construction

func New

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

New is constructor

func (*ContractConstructorHolder) AsChild

func (r *ContractConstructorHolder) AsChild(objRef core.RecordRef) (*Allowance, error)

AsChild saves object as child

func (*ContractConstructorHolder) AsDelegate

func (r *ContractConstructorHolder) AsDelegate(objRef core.RecordRef) (*Allowance, error)

AsDelegate saves object as delegate

Jump to

Keyboard shortcuts

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