Documentation ¶
Index ¶
- Variables
- type Account
- type Base
- func (acc *Base) AddBalance(a *amount.Amount)
- func (acc *Base) Address() common.Address
- func (acc *Base) Balance() *amount.Amount
- func (acc *Base) Name() string
- func (acc *Base) ReadFrom(r io.Reader) (int64, error)
- func (acc *Base) SubBalance(a *amount.Amount) error
- func (acc *Base) Type() Type
- func (acc *Base) WriteTo(w io.Writer) (int64, error)
- type Type
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrMismatchSignaturesCount = errors.New("mismatch signatures count") ErrInsufficientBalance = errors.New("insufficient balance") )
amount errors
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account interface { io.WriterTo io.ReaderFrom json.Marshaler Type() Type Address() common.Address Name() string Balance() *amount.Amount AddBalance(a *amount.Amount) SubBalance(a *amount.Amount) error Clone() Account }
Account is a interface that defines common account functions
type Base ¶
Base is the parts of account functions that are not changed by derived one
func (*Base) AddBalance ¶
AddBalance adds the balance to the account
func (*Base) SubBalance ¶
SubBalance subs the balance from the account
Click to show internal directories.
Click to hide internal directories.