wallet

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 ContractConstructorHolder

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

ContractConstructorHolder holds logic with object construction

func New

func New(balance uint) *ContractConstructorHolder

New is constructor

func (*ContractConstructorHolder) AsChild

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

AsChild saves object as child

func (*ContractConstructorHolder) AsDelegate

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

AsDelegate saves object as delegate

type Wallet

type Wallet struct {
	Reference core.RecordRef
}

Wallet holds proxy type

func GetImplementationFrom

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

GetImplementationFrom returns proxy to delegate of given type

func GetObject

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

GetObject returns proxy object

func (*Wallet) Accept

func (r *Wallet) Accept(aRef *core.RecordRef) error

Accept is proxy generated method

func (*Wallet) AcceptNoWait

func (r *Wallet) AcceptNoWait(aRef *core.RecordRef) error

AcceptNoWait is proxy generated method

func (*Wallet) Allocate

func (r *Wallet) Allocate(amount uint, to *core.RecordRef) (core.RecordRef, error)

Allocate is proxy generated method

func (*Wallet) AllocateNoWait

func (r *Wallet) AllocateNoWait(amount uint, to *core.RecordRef) error

AllocateNoWait is proxy generated method

func (*Wallet) GetClass

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

GetClass returns reference to the class

func (*Wallet) GetReference

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

GetReference returns reference of the object

func (*Wallet) GetTotalBalance

func (r *Wallet) GetTotalBalance() (uint, error)

GetTotalBalance is proxy generated method

func (*Wallet) GetTotalBalanceNoWait

func (r *Wallet) GetTotalBalanceNoWait() error

GetTotalBalanceNoWait is proxy generated method

func (*Wallet) Receive

func (r *Wallet) Receive(amount uint, from *core.RecordRef) error

Receive is proxy generated method

func (*Wallet) ReceiveNoWait

func (r *Wallet) ReceiveNoWait(amount uint, from *core.RecordRef) error

ReceiveNoWait is proxy generated method

func (*Wallet) ReturnAndDeleteExpiredAllowances

func (r *Wallet) ReturnAndDeleteExpiredAllowances() error

ReturnAndDeleteExpiredAllowances is proxy generated method

func (*Wallet) ReturnAndDeleteExpiredAllowancesNoWait

func (r *Wallet) ReturnAndDeleteExpiredAllowancesNoWait() error

ReturnAndDeleteExpiredAllowancesNoWait is proxy generated method

func (*Wallet) Transfer

func (r *Wallet) Transfer(amount uint, to *core.RecordRef) error

Transfer is proxy generated method

func (*Wallet) TransferNoWait

func (r *Wallet) TransferNoWait(amount uint, to *core.RecordRef) error

TransferNoWait is proxy generated method

Jump to

Keyboard shortcuts

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