Documentation ¶
Index ¶
- Constants
- func GetPrefix(o interface{}) (ret string)
- type Batch
- func (b *Batch) AddToBatch(o interface{}, key1 string, key2 uint64)
- func (b *Batch) AddToBatchFullKey(o interface{}, key []byte) error
- func (b *Batch) AddToBatchSingleKey(o interface{}, key string)
- func (b *Batch) CommitBatch()
- func (b *Batch) Remove(key []byte)
- func (b *Batch) SaveAccounts(a storage.Accounts)
- func (b *Batch) SetFinalizationData(f *storage.FinalizationData)
- func (b *Batch) SetGenesisHash(h storage.GenesisHash)
- func (b *Batch) SetTotalSupply(s *storage.TotalSupply)
- func (b *Batch) UpdateWeekStats(w storage.WeekStats)
- type Storage
- func (s *Storage) Clean() error
- func (s *Storage) Close() error
- func (s *Storage) ForEach(o interface{}, key_prefix string, start *uint64, ...)
- func (s *Storage) ForEachBackwards(o interface{}, key_prefix string, start *uint64, ...)
- func (s *Storage) ForEachFromKey(prefix, start_key []byte, fn func(key, res []byte) (stop bool))
- func (s *Storage) GenesisHashExist() bool
- func (s *Storage) GetAccounts() storage.Accounts
- func (s *Storage) GetAddressStats(addr string) *storage.AddressStats
- func (s *Storage) GetFinalizationData() *storage.FinalizationData
- func (s *Storage) GetFromDB(o interface{}, key []byte) error
- func (s *Storage) GetGenesisHash() storage.GenesisHash
- func (s *Storage) GetInternalTransactions(hash string) models.InternalTransactionsResponse
- func (s *Storage) GetTotalSupply() *storage.TotalSupply
- func (s *Storage) GetTotalYield(block uint64) (res storage.Yield)
- func (s *Storage) GetTransactionByHash(hash string) (res models.Transaction)
- func (s *Storage) GetTransactionLogs(hash string) models.TransactionLogsResponse
- func (s *Storage) GetValidatorYield(validator string, block uint64) (res storage.Yield)
- func (s *Storage) GetWeekStats(year, week int32) storage.WeekStats
- func (s *Storage) NewBatch() storage.Batch
Constants ¶
View Source
const PeriodRewardsPrefix = "pr"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Batch ¶
func (*Batch) AddToBatch ¶
func (*Batch) AddToBatchFullKey ¶ added in v0.3.0
func (*Batch) AddToBatchSingleKey ¶
func (*Batch) CommitBatch ¶
func (b *Batch) CommitBatch()
func (*Batch) SaveAccounts ¶
func (*Batch) SetFinalizationData ¶
func (b *Batch) SetFinalizationData(f *storage.FinalizationData)
func (*Batch) SetGenesisHash ¶
func (b *Batch) SetGenesisHash(h storage.GenesisHash)
func (*Batch) SetTotalSupply ¶
func (b *Batch) SetTotalSupply(s *storage.TotalSupply)
func (*Batch) UpdateWeekStats ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func NewStorage ¶
func (*Storage) ForEachBackwards ¶
func (*Storage) ForEachFromKey ¶ added in v0.3.0
func (*Storage) GenesisHashExist ¶
func (*Storage) GetAccounts ¶
func (*Storage) GetAddressStats ¶
func (s *Storage) GetAddressStats(addr string) *storage.AddressStats
func (*Storage) GetFinalizationData ¶
func (s *Storage) GetFinalizationData() *storage.FinalizationData
func (*Storage) GetGenesisHash ¶
func (s *Storage) GetGenesisHash() storage.GenesisHash
func (*Storage) GetInternalTransactions ¶
func (s *Storage) GetInternalTransactions(hash string) models.InternalTransactionsResponse
func (*Storage) GetTotalSupply ¶
func (s *Storage) GetTotalSupply() *storage.TotalSupply
func (*Storage) GetTransactionByHash ¶ added in v0.2.3
func (s *Storage) GetTransactionByHash(hash string) (res models.Transaction)
func (*Storage) GetTransactionLogs ¶
func (s *Storage) GetTransactionLogs(hash string) models.TransactionLogsResponse
func (*Storage) GetValidatorYield ¶
Click to show internal directories.
Click to hide internal directories.