wallet

package
v0.7.2-alpha Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PrototypeReference, _ = core.NewRefFromBase58("1111gf5wY3hRPnWsn21LhpAqhum2PF4ZdNp7pM5yVD.11111111111111111111111111111111")

PrototypeReference to prototype of this contract error checking hides in generator

Functions

func GetPrototype added in v0.6.2

func GetPrototype() core.RecordRef

GetPrototype returns reference to the prototype

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
	Prototype core.RecordRef
	Code      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) GetBalance added in v0.6.3

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

GetBalance is proxy generated method

func (*Wallet) GetBalanceNoWait added in v0.6.3

func (r *Wallet) GetBalanceNoWait() error

GetBalanceNoWait is proxy generated method

func (*Wallet) GetCode added in v0.6.3

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

GetCode returns reference to the code

func (*Wallet) GetPrototype added in v0.6.2

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

GetPrototype returns reference to the code

func (*Wallet) GetReference

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

GetReference returns reference of the object

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