wallet

package
v0.0.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TypeReference = foundation.Reference("wallet")

Functions

This section is empty.

Types

type Wallet

type Wallet struct {
	foundation.BaseContract
	// contains filtered or unexported fields
}

func NewWallet

func NewWallet(balance uint) *Wallet

func (*Wallet) Accept

func (w *Wallet) Accept(a *allowance.Allowance)

func (*Wallet) Allocate

func (w *Wallet) Allocate(amount uint, to foundation.Reference) *allowance.Allowance

func (*Wallet) GetTotalBalance

func (w *Wallet) GetTotalBalance() uint

func (*Wallet) Receive

func (w *Wallet) Receive(amount uint, from foundation.Reference)

func (*Wallet) ReturnAndDeleteExpiriedAllowances

func (w *Wallet) ReturnAndDeleteExpiriedAllowances()

func (*Wallet) Transfer

func (w *Wallet) Transfer(amount uint, to foundation.Reference)

Jump to

Keyboard shortcuts

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