Documentation
¶
Index ¶
- Constants
- type EriDb
- func (m *EriDb) CommitBatch() error
- func (m *EriDb) Delete(key string) error
- func (m *EriDb) Get(key utils.NodeKey) (utils.NodeValue12, error)
- func (m *EriDb) GetAccountValue(key utils.NodeKey) (utils.NodeValue8, error)
- func (m *EriDb) GetDb() map[string][]string
- func (m *EriDb) GetLastRoot() (*big.Int, error)
- func (m *EriDb) Insert(key utils.NodeKey, value utils.NodeValue12) error
- func (m *EriDb) InsertAccountValue(key utils.NodeKey, value utils.NodeValue8) error
- func (m *EriDb) OpenBatch(quitCh <-chan struct{})
- func (m *EriDb) PrintDb()
- func (m *EriDb) RollbackBatch()
- func (m *EriDb) SetLastRoot(r *big.Int) error
- type MemDb
- func (m *MemDb) CommitBatch() error
- func (m *MemDb) Delete(key string) error
- func (m *MemDb) Get(key utils.NodeKey) (utils.NodeValue12, error)
- func (m *MemDb) GetAccountValue(key utils.NodeKey) (utils.NodeValue8, error)
- func (m *MemDb) GetDb() map[string][]string
- func (m *MemDb) GetLastRoot() (*big.Int, error)
- func (m *MemDb) Insert(key utils.NodeKey, value utils.NodeValue12) error
- func (m *MemDb) InsertAccountValue(key utils.NodeKey, value utils.NodeValue8) error
- func (m *MemDb) IsEmpty() bool
- func (m *MemDb) OpenBatch(quitCh <-chan struct{})
- func (m *MemDb) PrintDb()
- func (m *MemDb) RollbackBatch()
- func (m *MemDb) SetLastRoot(value *big.Int) error
- type SmtDbTx
Constants ¶
View Source
const TableAccountValues = "HermezSmtAccountValues"
View Source
const TableLastRoot = "HermezSmtLastRoot"
View Source
const TableSmt = "HermezSmt"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EriDb ¶
type EriDb struct {
// contains filtered or unexported fields
}
func (*EriDb) CommitBatch ¶
func (*EriDb) GetAccountValue ¶
func (*EriDb) InsertAccountValue ¶
func (*EriDb) RollbackBatch ¶
func (m *EriDb) RollbackBatch()
type MemDb ¶
type MemDb struct { Db map[string][]string DbAccVal map[string][]string LastRoot *big.Int // contains filtered or unexported fields }
func (*MemDb) CommitBatch ¶
func (*MemDb) GetAccountValue ¶
func (*MemDb) InsertAccountValue ¶
func (*MemDb) RollbackBatch ¶
func (m *MemDb) RollbackBatch()
type SmtDbTx ¶
type SmtDbTx interface { GetOne(bucket string, key []byte) ([]byte, error) Put(bucket string, key []byte, value []byte) error Has(bucket string, key []byte) (bool, error) Delete(bucket string, key []byte) error ForEach(bucket string, start []byte, fn func(k, v []byte) error) error ForPrefix(bucket string, prefix []byte, fn func(k, v []byte) error) error Commit() error Rollback() }
Click to show internal directories.
Click to hide internal directories.