allowance

package
v0.6.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

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

PrototypeReference to prototype of this contract

Functions

func GetPrototype added in v0.6.2

func GetPrototype() core.RecordRef

GetPrototype returns reference to the prototype

Types

type Allowance

type Allowance struct {
	Reference core.RecordRef
	Prototype core.RecordRef
	Code      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) 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) GetCode added in v0.6.3

func (r *Allowance) GetCode() (core.RecordRef, error)

GetCode returns reference to the code

func (*Allowance) GetExpiredBalance added in v0.6.3

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

GetExpiredBalance is proxy generated method

func (*Allowance) GetExpiredBalanceNoWait added in v0.6.3

func (r *Allowance) GetExpiredBalanceNoWait() error

GetExpiredBalanceNoWait is proxy generated method

func (*Allowance) GetPrototype added in v0.6.2

func (r *Allowance) GetPrototype() (core.RecordRef, error)

GetPrototype returns reference to the code

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