Documentation ¶
Overview ¶
Package account provides functionality for managing account information.
Index ¶
- type Account
- func (acc *Account) AddToBalance(amt amount.Amount)
- func (acc Account) Balance() amount.Amount
- func (acc *Account) Bytes() ([]byte, error)
- func (acc *Account) Clone() *Account
- func (acc *Account) Hash() hash.Hash
- func (acc Account) Number() int32
- func (*Account) SerializeSize() int
- func (acc *Account) SubtractFromBalance(amt amount.Amount)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct {
// contains filtered or unexported fields
}
The Account struct represents an account object.
func NewAccount ¶
NewAccount constructs a new account from the given number.
func (*Account) AddToBalance ¶
AddToBalance adds the given amount to the account's balance.
func (*Account) SerializeSize ¶
SerializeSize returns the size in bytes required to serialize the account.
func (*Account) SubtractFromBalance ¶
SubtractFromBalance subtracts the given amount from the account's balance.
Click to show internal directories.
Click to hide internal directories.