wallet

package
v0.4.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Wallet

type Wallet struct {
	foundation.BaseContract
	Balance uint
}

Wallet - basic wallet contract

func New added in v0.3.0

func New(balance uint) *Wallet

func (*Wallet) Accept

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

func (*Wallet) Allocate

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

Allocate - returns reference to a new allowance

func (*Wallet) GetTotalBalance

func (w *Wallet) GetTotalBalance() uint

func (*Wallet) Receive

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

func (*Wallet) ReturnAndDeleteExpiriedAllowances

func (w *Wallet) ReturnAndDeleteExpiriedAllowances()

func (*Wallet) Transfer

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

Jump to

Keyboard shortcuts

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