Documentation ¶
Index ¶
- Constants
- func ConvIDFromHex(IDHex tmbytes.HexBytes) (uint32, []byte, error)
- func ConvIDFromStr(raw string) ([]byte, error)
- func ConvIDFromUint(raw uint32) []byte
- type Address
- type IncentiveInfo
- type LazyValidators
- type Store
- func (s Store) AddIncentiveRecord(height int64, address crypto.Address, amount *types.Currency) error
- func (s Store) AddTxIndexer(height int64, txs [][]byte)
- func (s Store) DeleteParcel(parcelID []byte)
- func (s Store) DeleteRequest(buyer crypto.Address, parcelID []byte)
- func (s Store) DeleteUsage(buyer crypto.Address, parcelID []byte)
- func (s Store) DeleteVote(draftID uint32, voter crypto.Address)
- func (s Store) GetAddressIncentiveRecords(address crypto.Address) []IncentiveInfo
- func (s Store) GetAppConfig() []byte
- func (s Store) GetBalance(addr tm.Address, committed bool) *types.Currency
- func (s Store) GetBlockIncentiveRecords(height int64) []IncentiveInfo
- 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) GetEffStake(delegatee crypto.Address, committed bool) *types.Stake
- func (s Store) GetHolderByValidator(addr crypto.Address, committed bool) []byte
- func (s Store) GetIncentiveRecord(height int64, address crypto.Address) IncentiveInfo
- 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) GetParcel(parcelID []byte, committed bool) *types.Parcel
- func (s Store) GetRequest(buyer 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(buyer 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) GroupCounterGetLazyValidators() LazyValidators
- func (s Store) GroupCounterPurge()
- func (s Store) GroupCounterSet(candidates LazyValidators)
- func (s Store) Load() (int64, error)
- func (s Store) LoosenLockedStakes(committed bool)
- func (s Store) ProcessDraftVotes(latestDraftIDUint uint32, maxValidators uint64, ...)
- func (s Store) Purge() error
- 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) SetDelegate(holder crypto.Address, delegate *types.Delegate) error
- func (s Store) SetDraft(draftID uint32, value *types.Draft) 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) SetRequest(buyer 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(buyer 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 Address ¶ added in v1.3.0
type Address [crypto.AddressSize]byte
type IncentiveInfo ¶ added in v1.2.0
type LazyValidators ¶ added in v1.3.0
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (Store) AddIncentiveRecord ¶ added in v1.2.0
func (Store) AddTxIndexer ¶ added in v1.3.0
func (Store) DeleteParcel ¶
func (Store) DeleteVote ¶ added in v1.4.1
func (Store) GetAddressIncentiveRecords ¶ added in v1.2.0
func (s Store) GetAddressIncentiveRecords(address crypto.Address) []IncentiveInfo
func (Store) GetAppConfig ¶ added in v1.2.2
func (Store) GetBalance ¶
func (Store) GetBlockIncentiveRecords ¶ added in v1.2.0
func (s Store) GetBlockIncentiveRecords(height int64) []IncentiveInfo
func (Store) GetDelegate ¶
func (Store) GetDelegateEx ¶ added in v1.1.0
func (Store) GetDelegatesByDelegatee ¶ added in v1.1.0
func (Store) GetEffStake ¶
func (Store) GetHolderByValidator ¶
func (Store) GetIncentiveRecord ¶ added in v1.2.0
func (s Store) GetIncentiveRecord(height int64, address crypto.Address) IncentiveInfo
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) 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) GroupCounterGetLazyValidators ¶ added in v1.3.0
func (s Store) GroupCounterGetLazyValidators() LazyValidators
func (Store) GroupCounterPurge ¶ added in v1.3.0
func (s Store) GroupCounterPurge()
func (Store) GroupCounterSet ¶ added in v1.3.0
func (s Store) GroupCounterSet(candidates LazyValidators)
Record map[Address]int64
func (Store) LoosenLockedStakes ¶ added in v1.2.0
func (Store) ProcessDraftVotes ¶ added in v1.4.1
func (Store) SetAppConfig ¶ added in v1.2.2
func (Store) SetBalanceUint64 ¶
func (Store) SetDelegate ¶
Update data on stateDB, indexDelegator, indexEffStake
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) 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.