Documentation ¶
Index ¶
- type Account
- type Accounts
- func (s Accounts) Add(acc *Account)
- func (s Accounts) CheckNegativeBalance()
- func (s Accounts) GetBalance(pubkey *ecdsa.PublicKey) uint64
- func (s Accounts) GetNonce(pubkey *ecdsa.PublicKey) uint64
- func (s Accounts) NewAccount(pubkey *ecdsa.PublicKey, nonce uint64, balance uint64) *Account
- func (s Accounts) Print()
- func (s Accounts) PrintAccountsSum()
- type State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
func (*Account) PrintAccount ¶
func (acc *Account) PrintAccount()
type Accounts ¶
func NewAccounts ¶
func NewAccounts() Accounts
func (Accounts) CheckNegativeBalance ¶
func (s Accounts) CheckNegativeBalance()
check that if there is account.Balance < 0
func (Accounts) NewAccount ¶
func (Accounts) PrintAccountsSum ¶
func (s Accounts) PrintAccountsSum()
Click to show internal directories.
Click to hide internal directories.