wallet

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2018 License: Apache-2.0 Imports: 2 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

AsChild saves object as child

func (*ContractConstructorHolder) AsDelegate

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

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

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)

Accept is proxy generated method

func (*Wallet) AcceptNoWait

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

AcceptNoWait is proxy generated method

func (*Wallet) Allocate

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

Allocate is proxy generated method

func (*Wallet) AllocateNoWait

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

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

GetTotalBalance is proxy generated method

func (*Wallet) GetTotalBalanceNoWait

func (r *Wallet) GetTotalBalanceNoWait()

GetTotalBalanceNoWait is proxy generated method

func (*Wallet) Receive

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

Receive is proxy generated method

func (*Wallet) ReceiveNoWait

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

ReceiveNoWait is proxy generated method

func (*Wallet) ReturnAndDeleteExpiredAllowances

func (r *Wallet) ReturnAndDeleteExpiredAllowances()

ReturnAndDeleteExpiredAllowances is proxy generated method

func (*Wallet) ReturnAndDeleteExpiredAllowancesNoWait

func (r *Wallet) ReturnAndDeleteExpiredAllowancesNoWait()

ReturnAndDeleteExpiredAllowancesNoWait is proxy generated method

func (*Wallet) Transfer

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

Transfer is proxy generated method

func (*Wallet) TransferNoWait

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

TransferNoWait is proxy generated method

Jump to

Keyboard shortcuts

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