Documentation ¶
Index ¶
- func AccountKey(address string) []byte
- func HeightKey() []byte
- func MyAccountKey() []byte
- func UpdateBalance(txn *badger.Txn, address string, amount uint64, add bool) error
- func UpdateBalanceFn(address string, amount uint64, add bool) func(*badger.Txn) error
- type Account
- type Querier
- type Store
- func (s *Store) GetAccount(address string) (*Account, error)
- func (s *Store) GetHeight() uint64
- func (s *Store) GetOwnerPubKey() (crypto.PubKey, error)
- func (s *Store) NewTx(update bool) *badger.Txn
- func (s *Store) ProcessDeposits(txn *badger.Txn, deposits map[string]uint64) error
- func (s *Store) SetAccount(address string, account *Account) error
- func (s *Store) SetHeight(txn *badger.Txn, newHeight uint64) error
- func (s *Store) UpdateBalance(address string, amount uint64, add bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccountKey ¶
func MyAccountKey ¶
func MyAccountKey() []byte
func UpdateBalance ¶
Types ¶
type Account ¶
func NewAccountFromBytes ¶
type Querier ¶
type Querier struct {
// contains filtered or unexported fields
}
func NewQuerier ¶
func NewQuerier(conn *grpc.ClientConn) *Querier
func (*Querier) GetAccount ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) ProcessDeposits ¶
Click to show internal directories.
Click to hide internal directories.