Documentation ¶
Index ¶
- Constants
- func ConvIDFromHex(IDHex tmbytes.HexBytes) (uint32, []byte, error)
- func ConvIDFromStr(raw string) ([]byte, error)
- func ConvIDFromUint(raw uint32) []byte
- type Store
- func (s Store) AddTxIndexer(height int64, txs [][]byte)
- func (s *Store) Close()
- func (s Store) DeleteDIDEntry(id string)
- func (s Store) DeleteHibernate(val crypto.Address)
- func (s *Store) DeleteParcel(parcelID []byte)
- func (s *Store) DeleteRequest(recipient crypto.Address, parcelID []byte)
- func (s *Store) DeleteUsage(recipient crypto.Address, parcelID []byte)
- func (s *Store) DeleteVote(draftID uint32, voter crypto.Address)
- func (s Store) GetAppConfig() []byte
- func (s *Store) GetBalance(addr tm.Address, committed bool) *types.Currency
- func (s Store) GetDIDEntry(id string, committed bool) *types.DIDEntry
- func (s *Store) GetDelegate(holder crypto.Address, committed bool) *types.Delegate
- func (s *Store) GetDelegateEx(holder crypto.Address, committed bool) *types.DelegateEx
- func (s *Store) GetDelegatesByDelegatee(delegatee crypto.Address, committed bool) []*types.DelegateEx
- func (s *Store) GetDraft(draftID uint32, committed bool) *types.Draft
- func (s *Store) GetDraftForQuery(draftID uint32, committed bool) *types.DraftForQuery
- func (s *Store) GetEffStake(delegatee crypto.Address, committed bool) *types.Stake
- func (s Store) GetHibernate(val crypto.Address, committed bool) *types.Hibernate
- func (s Store) GetHibernates(committed bool) (vals []crypto.Address, hibs []*types.Hibernate)
- func (s *Store) GetHolderByValidator(addr crypto.Address, committed bool) []byte
- func (s *Store) GetLastDraftID() uint32
- func (s *Store) GetLockedStake(holder crypto.Address, height int64, committed bool) *types.Stake
- func (s *Store) GetLockedStakes(holder crypto.Address, committed bool) []*types.Stake
- func (s *Store) GetLockedStakesWithHeight(holder crypto.Address, committed bool) ([]*types.Stake, []int64)
- func (s *Store) GetMerkleVersion() int64
- func (s *Store) GetMissRunDB() tmdb.DB
- func (s *Store) GetParcel(parcelID []byte, committed bool) *types.Parcel
- func (s *Store) GetProtocolVersion(committed bool) uint64
- func (s *Store) GetRequest(recipient crypto.Address, parcelID []byte, committed bool) *types.Request
- func (s *Store) GetRequests(parcelID []byte, committed bool) []*types.RequestEx
- func (s *Store) GetStake(holder crypto.Address, committed bool) *types.Stake
- func (s *Store) GetStakeByValidator(addr crypto.Address, committed bool) *types.Stake
- func (s Store) GetStorage(id uint32, committed bool) *types.Storage
- func (s *Store) GetTopStakes(max uint64, peek crypto.Address, committed bool) []*types.Stake
- func (s Store) GetUDC(id uint32, committed bool) *types.UDC
- func (s Store) GetUDCBalance(udc uint32, addr tm.Address, committed bool) *types.Currency
- func (s Store) GetUDCLock(udc uint32, addr tm.Address, committed bool) *types.Currency
- func (s *Store) GetUnlockedStake(holder crypto.Address, committed bool) *types.Stake
- func (s *Store) GetUsage(recipient crypto.Address, parcelID []byte, committed bool) *types.Usage
- func (s *Store) GetUsages(parcelID []byte, committed bool) []*types.UsageEx
- func (s *Store) GetValidators(max uint64, committed bool) abci.ValidatorUpdates
- func (s *Store) GetVote(draftID uint32, voter crypto.Address, committed bool) *types.Vote
- func (s *Store) GetVotes(draftID uint32, committed bool) []*types.VoteInfo
- func (s *Store) Load() (vers int64, err error)
- func (s *Store) LoadVersion(version int64) (vers int64, err error)
- func (s *Store) LoosenLockedStakes(committed bool) []abci.Event
- func (s *Store) ProcessDraftVotes(latestDraftIDUint uint32, maxValidators uint64, ...) []abci.Event
- func (s *Store) Purge() error
- func (s *Store) RebuildIndex()
- func (s *Store) Root() []byte
- func (s *Store) Save() ([]byte, int64, error)
- func (s Store) SetAppConfig(b []byte) error
- func (s *Store) SetBalance(addr tm.Address, balance *types.Currency) error
- func (s *Store) SetBalanceUint64(addr tm.Address, balance uint64) error
- func (s Store) SetDIDEntry(id string, value *types.DIDEntry) error
- func (s *Store) SetDelegate(holder crypto.Address, delegate *types.Delegate) error
- func (s *Store) SetDraft(draftID uint32, value *types.Draft) error
- func (s Store) SetHibernate(val crypto.Address, hib *types.Hibernate) error
- func (s *Store) SetLockedStake(holder crypto.Address, stake *types.Stake, height int64) error
- func (s *Store) SetParcel(parcelID []byte, value *types.Parcel) error
- func (s *Store) SetProtocolVersion(version uint64) error
- func (s *Store) SetRequest(recipient crypto.Address, parcelID []byte, value *types.Request) error
- func (s Store) SetStorage(id uint32, sto *types.Storage) error
- func (s Store) SetUDC(id uint32, udc *types.UDC) error
- func (s Store) SetUDCBalance(udc uint32, addr tm.Address, balance *types.Currency) error
- func (s Store) SetUDCLock(udc uint32, addr tm.Address, amount *types.Currency) error
- func (s *Store) SetUnlockedStake(holder crypto.Address, stake *types.Stake) error
- func (s *Store) SetUsage(recipient crypto.Address, parcelID []byte, value *types.Usage) error
- func (s *Store) SetVote(draftID uint32, voter crypto.Address, value *types.Vote) error
- func (s *Store) SlashStakes(holder crypto.Address, amount types.Currency, committed bool)
- func (s Store) TxIndexerDelete(height int64)
- func (s Store) TxIndexerGetHash(height int64) [][]byte
- func (s Store) TxIndexerGetHeight(txHash []byte) int64
- func (s Store) TxIndexerPurge()
- func (s *Store) UnlockStakes(holder crypto.Address, height int64, committed bool)
- func (s *Store) Verify(key []byte) (bool, error)
Constants ¶
View Source
const ( // division by 2 is for safeguarding. tendermint code.GetError(is not so safe. MaxTotalVotingPower = tm.MaxTotalVotingPower / 2 )
Variables ¶
This section is empty.
Functions ¶
func ConvIDFromHex ¶ added in v1.4.1
func ConvIDFromStr ¶ added in v1.4.1
func ConvIDFromUint ¶ added in v1.4.1
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (Store) AddTxIndexer ¶ added in v1.3.0
func (Store) DeleteDIDEntry ¶ added in v1.7.0
func (Store) DeleteHibernate ¶ added in v1.7.0
func (*Store) DeleteParcel ¶
func (*Store) DeleteRequest ¶
func (*Store) DeleteVote ¶ added in v1.4.1
func (Store) GetAppConfig ¶ added in v1.2.2
func (*Store) GetBalance ¶
func (Store) GetDIDEntry ¶ added in v1.7.0
func (*Store) GetDelegate ¶
func (*Store) GetDelegateEx ¶ added in v1.1.0
func (*Store) GetDelegatesByDelegatee ¶ added in v1.1.0
func (*Store) GetDraftForQuery ¶ added in v1.7.5
func (s *Store) GetDraftForQuery(draftID uint32, committed bool) *types.DraftForQuery
func (*Store) GetEffStake ¶
func (Store) GetHibernate ¶ added in v1.7.0
func (Store) GetHibernates ¶ added in v1.7.0
func (*Store) GetHolderByValidator ¶
func (*Store) GetLastDraftID ¶ added in v1.7.0
func (*Store) GetLockedStake ¶ added in v1.2.0
func (*Store) GetLockedStakes ¶ added in v1.2.0
func (*Store) GetLockedStakesWithHeight ¶ added in v1.3.0
func (*Store) GetMerkleVersion ¶ added in v1.6.4
func (*Store) GetMissRunDB ¶ added in v1.7.0
func (*Store) GetProtocolVersion ¶ added in v1.8.0
func (*Store) GetRequest ¶
func (*Store) GetRequests ¶ added in v1.4.1
func (*Store) GetStakeByValidator ¶
func (Store) GetStorage ¶ added in v1.4.1
func (*Store) GetTopStakes ¶
func (Store) GetUDCBalance ¶ added in v1.4.1
func (Store) GetUDCLock ¶ added in v1.4.1
func (*Store) GetUnlockedStake ¶ added in v1.2.0
func (*Store) GetValidators ¶
func (s *Store) GetValidators(max uint64, committed bool) abci.ValidatorUpdates
func (*Store) LoadVersion ¶ added in v1.6.1
func (*Store) LoosenLockedStakes ¶ added in v1.2.0
func (*Store) ProcessDraftVotes ¶ added in v1.4.1
func (*Store) RebuildIndex ¶ added in v1.6.5
func (s *Store) RebuildIndex()
func (Store) SetAppConfig ¶ added in v1.2.2
func (*Store) SetBalance ¶
func (*Store) SetBalanceUint64 ¶
func (Store) SetDIDEntry ¶ added in v1.7.0
func (*Store) SetDelegate ¶
Update data on stateDB, indexDelegator, indexEffStake
func (Store) SetHibernate ¶ added in v1.7.0
func (*Store) SetLockedStake ¶ added in v1.2.0
SetLockedStake stores a stake locked at *height*. The stake's height is decremented each time when LoosenLockedStakes is called.
func (*Store) SetProtocolVersion ¶ added in v1.8.0
func (*Store) SetRequest ¶
func (Store) SetStorage ¶ added in v1.4.1
func (Store) SetUDCBalance ¶ added in v1.4.1
func (Store) SetUDCLock ¶ added in v1.4.1
func (*Store) SetUnlockedStake ¶ added in v1.2.0
func (*Store) SlashStakes ¶ added in v1.3.0
func (Store) TxIndexerDelete ¶ added in v1.3.0
func (Store) TxIndexerGetHash ¶ added in v1.3.0
func (Store) TxIndexerGetHeight ¶ added in v1.3.0
func (Store) TxIndexerPurge ¶ added in v1.3.0
func (s Store) TxIndexerPurge()
func (*Store) UnlockStakes ¶ added in v1.2.0
Click to show internal directories.
Click to hide internal directories.