Documentation ¶
Index ¶
- type Wallet
- func (w *Wallet) Accept(aRef *core.RecordRef) error
- func (w *Wallet) Allocate(amount uint, to *core.RecordRef) (core.RecordRef, error)
- func (w *Wallet) GetTotalBalance() (uint, error)
- func (w *Wallet) Receive(amount uint, from *core.RecordRef) error
- func (w *Wallet) ReturnAndDeleteExpiredAllowances() error
- func (w *Wallet) Transfer(amount uint, to *core.RecordRef) error
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 (*Wallet) GetTotalBalance ¶
GetTotalBalance gets total balance
func (*Wallet) ReturnAndDeleteExpiredAllowances ¶
ReturnAndDeleteExpiredAllowances gets all allowances destroy them and update balance
Click to show internal directories.
Click to hide internal directories.