wallet

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 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

Types

type ContractConstructorHolder added in v0.5.0

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

func New

func New(balance uint) *ContractConstructorHolder

func (*ContractConstructorHolder) AsChild added in v0.5.0

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

func (*ContractConstructorHolder) AsDelegate added in v0.5.0

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

type Wallet

type Wallet struct {
	Reference core.RecordRef
}

Contract proxy type

func GetImplementationFrom

func GetImplementationFrom(object core.RecordRef) *Wallet

func GetObject

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

GetObject

func (*Wallet) Accept

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

func (*Wallet) AcceptNoWait

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

func (*Wallet) Allocate

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

func (*Wallet) AllocateNoWait

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

func (*Wallet) GetClass

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

GetClass

func (*Wallet) GetReference

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

GetReference

func (*Wallet) GetTotalBalance

func (r *Wallet) GetTotalBalance() uint

func (*Wallet) GetTotalBalanceNoWait

func (r *Wallet) GetTotalBalanceNoWait()

func (*Wallet) Receive

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

func (*Wallet) ReceiveNoWait

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

func (*Wallet) ReturnAndDeleteExpiriedAllowances

func (r *Wallet) ReturnAndDeleteExpiriedAllowances()

func (*Wallet) ReturnAndDeleteExpiriedAllowancesNoWait

func (r *Wallet) ReturnAndDeleteExpiriedAllowancesNoWait()

func (*Wallet) Transfer

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

func (*Wallet) TransferNoWait

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

Jump to

Keyboard shortcuts

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