Documentation
¶
Index ¶
- Constants
- Variables
- func NetworkValueToJSON(s *State) map[string]interface{}
- func NewObjectImpl(tag icobject.Tag) (icobject.Impl, error)
- func NewVotingIterator(votings []Voting) *votingIterator
- func ScheduleTimerJob(t *TimerState, info TimerJobInfo, address module.Address) error
- type AccountCache
- type AccountSnapshot
- func (a *AccountSnapshot) Bond() *big.Int
- func (a *AccountSnapshot) Bonds() Bonds
- func (a *AccountSnapshot) Delegating() *big.Int
- func (a *AccountSnapshot) Delegations() Delegations
- func (a *AccountSnapshot) Equal(object icobject.Impl) bool
- func (a *AccountSnapshot) Format(f fmt.State, c rune)
- func (a *AccountSnapshot) GetBondsInJSON() []interface{}
- func (a AccountSnapshot) GetDelegationInJSON() map[string]interface{}
- func (a AccountSnapshot) GetStakeInJSON(blockHeight int64) map[string]interface{}
- func (a AccountSnapshot) GetTotalStake() *big.Int
- func (a *AccountSnapshot) GetUnbondsInJSON() []interface{}
- func (a AccountSnapshot) GetUnstakeAmount() *big.Int
- func (a *AccountSnapshot) GetVoting() *big.Int
- func (a *AccountSnapshot) GetVotingPower() *big.Int
- func (a AccountSnapshot) IsEmpty() bool
- func (a *AccountSnapshot) RLPDecodeFields(decoder codec.Decoder) error
- func (a *AccountSnapshot) RLPEncodeFields(encoder codec.Encoder) error
- func (a AccountSnapshot) Stake() *big.Int
- func (a *AccountSnapshot) String() string
- func (a *AccountSnapshot) Unbond() *big.Int
- func (a *AccountSnapshot) Unbonds() Unbonds
- func (a *AccountSnapshot) UsingStake() *big.Int
- func (a *AccountSnapshot) Version() int
- type AccountState
- func (a *AccountState) Bond() *big.Int
- func (a *AccountState) Bonds() Bonds
- func (a *AccountState) Clear()
- func (a *AccountState) DecreaseUnstake(stakeInc *big.Int, expireHeight int64, revision int) ([]TimerJobInfo, error)
- func (a *AccountState) Delegating() *big.Int
- func (a *AccountState) Delegations() Delegations
- func (a *AccountState) Format(f fmt.State, c rune)
- func (a *AccountState) GetBondsInJSON() []interface{}
- func (a AccountState) GetDelegationInJSON() map[string]interface{}
- func (a *AccountState) GetSnapshot() *AccountSnapshot
- func (a AccountState) GetStakeInJSON(blockHeight int64) map[string]interface{}
- func (a AccountState) GetTotalStake() *big.Int
- func (a *AccountState) GetUnbondsInJSON() []interface{}
- func (a AccountState) GetUnstakeAmount() *big.Int
- func (a *AccountState) GetVoting() *big.Int
- func (a *AccountState) GetVotingPower() *big.Int
- func (a *AccountState) IncreaseUnstake(stakeInc *big.Int, expireHeight int64, slotMax, revision int) ([]TimerJobInfo, error)
- func (a AccountState) IsEmpty() bool
- func (a *AccountState) RemoveUnbond(height int64) error
- func (a *AccountState) RemoveUnstake(height int64) (ra *big.Int, err error)
- func (a *AccountState) Reset(s *AccountSnapshot)
- func (a *AccountState) SetBonds(bonds Bonds)
- func (a *AccountState) SetDelegation(ds Delegations)
- func (a *AccountState) SetStake(v *big.Int) error
- func (a *AccountState) SlashBond(address module.Address, ratio int) *big.Int
- func (a *AccountState) SlashStake(amount *big.Int) error
- func (a *AccountState) SlashUnbond(address module.Address, ratio int) (*big.Int, int64)
- func (a AccountState) Stake() *big.Int
- func (a *AccountState) String() string
- func (a *AccountState) Unbond() *big.Int
- func (a *AccountState) Unbonds() Unbonds
- func (a *AccountState) UpdateUnbonds(bondDelta map[string]*big.Int, expireHeight int64) ([]TimerJobInfo, error)
- func (a *AccountState) UsingStake() *big.Int
- type ActivePRepCache
- func (c *ActivePRepCache) Add(owner module.Address)
- func (c *ActivePRepCache) Clear()
- func (c *ActivePRepCache) Flush()
- func (c *ActivePRepCache) Get(i int) module.Address
- func (c *ActivePRepCache) Remove(owner module.Address) error
- func (c *ActivePRepCache) Reset()
- func (c *ActivePRepCache) Size() int
- type Arrayable
- type Bond
- type BonderList
- type Bonds
- func (bs *Bonds) Clone() Bonds
- func (bs *Bonds) Delete(i int) error
- func (bs *Bonds) Equal(bl2 Bonds) bool
- func (bs *Bonds) GetBondAmount() *big.Int
- func (bs *Bonds) Has() bool
- func (bs *Bonds) Iterator() VotingIterator
- func (bs *Bonds) Slash(address module.Address, ratio int) (Bonds, *big.Int)
- func (bs *Bonds) ToJSON(v module.JSONVersion) []interface{}
- func (bs *Bonds) ToMap() map[string]*Bond
- type Delegation
- func (dg *Delegation) Amount() *big.Int
- func (dg *Delegation) Clone() *Delegation
- func (dg *Delegation) Equal(d2 *Delegation) bool
- func (dg *Delegation) Format(f fmt.State, c rune)
- func (dg *Delegation) String() string
- func (dg *Delegation) To() module.Address
- func (dg *Delegation) ToJSON() map[string]interface{}
- type Delegations
- func (ds Delegations) Clone() Delegations
- func (ds *Delegations) Delete(i int) error
- func (ds Delegations) Equal(ds2 Delegations) bool
- func (ds Delegations) GetDelegationAmount() *big.Int
- func (ds Delegations) Has() bool
- func (ds *Delegations) Iterator() VotingIterator
- func (ds Delegations) ToJSON(_ module.JSONVersion) []interface{}
- func (ds *Delegations) ToMap() map[string]*Delegation
- type Grade
- type Issue
- func (i *Issue) Clone() *Issue
- func (i *Issue) Equal(o icobject.Impl) bool
- func (i *Issue) Format(f fmt.State, c rune)
- func (i *Issue) IScoreRemains() *big.Int
- func (i *Issue) OverIssued() *big.Int
- func (i *Issue) PrevBlockFee() *big.Int
- func (i *Issue) PrevTotalIssued() *big.Int
- func (i *Issue) RLPDecodeFields(decoder codec.Decoder) error
- func (i *Issue) RLPEncodeFields(encoder codec.Encoder) error
- func (i *Issue) ResetTotalIssued()
- func (i *Issue) SetIScoreRemains(v *big.Int)
- func (i *Issue) SetOverIssued(v *big.Int)
- func (i *Issue) SetPrevBlockFee(v *big.Int)
- func (i *Issue) SetPrevTotalIssued(v *big.Int)
- func (i *Issue) SetTotalIssued(v *big.Int)
- func (i *Issue) TotalIssued() *big.Int
- func (i *Issue) Update(totalReward *big.Int, byFee *big.Int, byOverIssued *big.Int) *Issue
- func (i *Issue) Version() int
- type JobType
- type Mappable
- type NodeOwnerCache
- type OwnerToNodeMappable
- type PRep
- func (ps PRep) Bonded() *big.Int
- func (ps PRep) Delegated() *big.Int
- func (ps PRep) GetBondedDelegation(bondRequirement int64) *big.Int
- func (p *PRep) GetNode() module.Address
- func (ps PRep) GetStatsInJSON(blockHeight int64) map[string]interface{}
- func (ps PRep) GetVFail(blockHeight int64) int64
- func (ps PRep) GetVFailCont(blockHeight int64) int64
- func (ps PRep) GetVPenaltyCount() int
- func (ps PRep) GetVTotal(blockHeight int64) int64
- func (ps PRep) GetVoted() *big.Int
- func (ps PRep) Grade() Grade
- func (ps PRep) IsActive() bool
- func (ps PRep) IsAlreadyPenalized() bool
- func (ps PRep) LastHeight() int64
- func (ps PRep) LastState() ValidationState
- func (p *PRep) Owner() module.Address
- func (ps PRep) Status() Status
- func (p *PRep) ToJSON(blockHeight int64, bondRequirement int64) map[string]interface{}
- func (ps PRep) VFail() int64
- func (ps PRep) VTotal() int64
- type PRepBase
- func (p *PRepBase) ApplyRegInfo(ri *RegInfo) error
- func (p *PRepBase) BonderList() BonderList
- func (p *PRepBase) Clear()
- func (p *PRepBase) Clone() *PRepBase
- func (p *PRepBase) Equal(object icobject.Impl) bool
- func (p *PRepBase) GetBonderListInJSON() []interface{}
- func (p *PRepBase) GetNode(owner module.Address) module.Address
- func (p *PRepBase) IRep() *big.Int
- func (p *PRepBase) IRepHeight() int64
- func (p *PRepBase) IsEmpty() bool
- func (p *PRepBase) RLPDecodeFields(d codec.Decoder) error
- func (p *PRepBase) RLPEncodeFields(e codec.Encoder) error
- func (p *PRepBase) Set(other *PRepBase)
- func (p *PRepBase) SetBonderList(bonderList BonderList)
- func (p *PRepBase) SetIrep(irep *big.Int, irepHeight int64)
- func (p *PRepBase) SetNode(node module.Address)
- func (p *PRepBase) SetRegInfo(ri *RegInfo) error
- func (p *PRepBase) ToJSON() map[string]interface{}
- func (p *PRepBase) Version() int
- type PRepBaseCache
- type PRepSnapshot
- func (pss *PRepSnapshot) BondedDelegation() *big.Int
- func (pss *PRepSnapshot) Clone() *PRepSnapshot
- func (pss *PRepSnapshot) Equal(other *PRepSnapshot) bool
- func (pss *PRepSnapshot) Owner() module.Address
- func (pss *PRepSnapshot) RLPDecodeSelf(d codec.Decoder) error
- func (pss *PRepSnapshot) RLPEncodeSelf(e codec.Encoder) error
- func (pss *PRepSnapshot) ToJSON() map[string]interface{}
- type PRepSnapshots
- func (p *PRepSnapshots) Clone() *PRepSnapshots
- func (p *PRepSnapshots) Equal(other *PRepSnapshots) bool
- func (p *PRepSnapshots) Get(i int) interface{}
- func (p *PRepSnapshots) IndexOf(value interface{}) int
- func (p *PRepSnapshots) Len() int
- func (p *PRepSnapshots) RLPDecodeSelf(d codec.Decoder) error
- func (p *PRepSnapshots) RLPEncodeSelf(e codec.Encoder) error
- func (p *PRepSnapshots) TotalBondedDelegation() *big.Int
- type PRepStatusCache
- type PRepStatusSnapshot
- func (ps *PRepStatusSnapshot) Bonded() *big.Int
- func (ps *PRepStatusSnapshot) Delegated() *big.Int
- func (ps *PRepStatusSnapshot) Equal(o icobject.Impl) bool
- func (ps *PRepStatusSnapshot) Format(f fmt.State, c rune)
- func (ps *PRepStatusSnapshot) GetBondedDelegation(bondRequirement int64) *big.Int
- func (ps *PRepStatusSnapshot) GetStatsInJSON(blockHeight int64) map[string]interface{}
- func (ps *PRepStatusSnapshot) GetVFail(blockHeight int64) int64
- func (ps *PRepStatusSnapshot) GetVFailCont(blockHeight int64) int64
- func (ps *PRepStatusSnapshot) GetVPenaltyCount() int
- func (ps *PRepStatusSnapshot) GetVTotal(blockHeight int64) int64
- func (ps *PRepStatusSnapshot) GetVoted() *big.Int
- func (ps *PRepStatusSnapshot) Grade() Grade
- func (ps *PRepStatusSnapshot) IsActive() bool
- func (ps *PRepStatusSnapshot) IsAlreadyPenalized() bool
- func (ps *PRepStatusSnapshot) IsEmpty() bool
- func (ps *PRepStatusSnapshot) LastHeight() int64
- func (ps *PRepStatusSnapshot) LastState() ValidationState
- func (ps *PRepStatusSnapshot) RLPDecodeFields(decoder codec.Decoder) error
- func (ps *PRepStatusSnapshot) RLPEncodeFields(encoder codec.Encoder) error
- func (ps *PRepStatusSnapshot) Status() Status
- func (ps *PRepStatusSnapshot) String() string
- func (ps *PRepStatusSnapshot) ToJSON(blockHeight int64, bondRequirement int64) map[string]interface{}
- func (ps *PRepStatusSnapshot) VFail() int64
- func (ps *PRepStatusSnapshot) VTotal() int64
- func (ps *PRepStatusSnapshot) Version() int
- type PRepStatusState
- func (ps *PRepStatusState) Bonded() *big.Int
- func (ps *PRepStatusState) ChangeGrade(newGrade Grade, blockHeight int64, penaltyMask int) error
- func (ps *PRepStatusState) Clear()
- func (ps *PRepStatusState) Delegated() *big.Int
- func (ps *PRepStatusState) Format(f fmt.State, c rune)
- func (ps *PRepStatusState) GetBondedDelegation(bondRequirement int64) *big.Int
- func (ps *PRepStatusState) GetSnapshot() *PRepStatusSnapshot
- func (ps *PRepStatusState) GetStatsInJSON(blockHeight int64) map[string]interface{}
- func (ps *PRepStatusState) GetVFail(blockHeight int64) int64
- func (ps *PRepStatusState) GetVFailCont(blockHeight int64) int64
- func (ps *PRepStatusState) GetVPenaltyCount() int
- func (ps *PRepStatusState) GetVTotal(blockHeight int64) int64
- func (ps *PRepStatusState) GetVoted() *big.Int
- func (ps *PRepStatusState) Grade() Grade
- func (ps *PRepStatusState) ImposePenalty(blockHeight int64) error
- func (ps *PRepStatusState) IsActive() bool
- func (ps *PRepStatusState) IsAlreadyPenalized() bool
- func (ps *PRepStatusState) IsEmpty() bool
- func (ps *PRepStatusState) LastHeight() int64
- func (ps *PRepStatusState) LastState() ValidationState
- func (ps *PRepStatusState) Reset(ss *PRepStatusSnapshot) *PRepStatusState
- func (ps *PRepStatusState) ResetVFailContOffset()
- func (ps *PRepStatusState) SetBonded(v *big.Int)
- func (ps *PRepStatusState) SetDelegated(delegated *big.Int)
- func (ps *PRepStatusState) SetGrade(g Grade)
- func (ps *PRepStatusState) SetStatus(s Status)
- func (ps *PRepStatusState) SetVFail(f int64)
- func (ps *PRepStatusState) SetVTotal(t int64)
- func (ps *PRepStatusState) Status() Status
- func (ps *PRepStatusState) String() string
- func (ps *PRepStatusState) ToJSON(blockHeight int64, bondRequirement int64) map[string]interface{}
- func (ps *PRepStatusState) UpdateBlockVoteStats(blockHeight int64, voted bool) error
- func (ps *PRepStatusState) VFail() int64
- func (ps *PRepStatusState) VTotal() int64
- type PReps
- func (p *PReps) GetPRepByIndex(i int) *PRep
- func (p *PReps) GetPRepSize(grade Grade) int
- func (p *PReps) GetTotalBondedDelegation(br int64) *big.Int
- func (p *PReps) ResetAllStatus(blockHeight int64, mainPRepCount, subPRepCount, penaltyMask int) error
- func (p *PReps) Size() int
- func (p *PReps) TotalBonded() *big.Int
- func (p *PReps) TotalDelegated() *big.Int
- type RegInfo
- func (r *RegInfo) Clear()
- func (r *RegInfo) Clone() *RegInfo
- func (r *RegInfo) Equal(other *RegInfo) bool
- func (r *RegInfo) Format(f fmt.State, c rune)
- func (r *RegInfo) IsEmpty() bool
- func (r *RegInfo) Node() module.Address
- func (r *RegInfo) Set(other *RegInfo)
- func (r *RegInfo) SetNode(node module.Address)
- func (r *RegInfo) String() string
- func (r *RegInfo) Update(other *RegInfo)
- func (r *RegInfo) Validate(revision int) error
- type RewardCalcInfo
- func (rc *RewardCalcInfo) Clone() *RewardCalcInfo
- func (rc *RewardCalcInfo) Equal(o icobject.Impl) bool
- func (rc *RewardCalcInfo) Format(f fmt.State, c rune)
- func (rc *RewardCalcInfo) GetResultInJSON() map[string]interface{}
- func (rc *RewardCalcInfo) PrevCalcReward() *big.Int
- func (rc *RewardCalcInfo) PrevHash() []byte
- func (rc *RewardCalcInfo) PrevHeight() int64
- func (rc *RewardCalcInfo) PrevPeriod() int64
- func (rc *RewardCalcInfo) RLPDecodeFields(decoder codec.Decoder) error
- func (rc *RewardCalcInfo) RLPEncodeFields(encoder codec.Encoder) error
- func (rc *RewardCalcInfo) SetPrevCalcReward(v *big.Int)
- func (rc *RewardCalcInfo) SetPrevHash(hash []byte)
- func (rc *RewardCalcInfo) SetPrevHeight(height int64)
- func (rc *RewardCalcInfo) SetStartHeight(height int64)
- func (rc *RewardCalcInfo) StartHeight() int64
- func (rc *RewardCalcInfo) Update(blockHeight int64, reward *big.Int, hash []byte)
- func (rc *RewardCalcInfo) Version() int
- type RewardFund
- func (rf *RewardFund) Bytes() []byte
- func (rf *RewardFund) Clone() *RewardFund
- func (rf *RewardFund) Equal(rc2 *RewardFund) bool
- func (rf *RewardFund) Format(f fmt.State, c rune)
- func (rf *RewardFund) GetPRepFund() *big.Int
- func (rf *RewardFund) GetVoterFund() *big.Int
- func (rf *RewardFund) IsEmpty() bool
- func (rf *RewardFund) RLPDecodeSelf(d codec.Decoder) error
- func (rf *RewardFund) RLPEncodeSelf(e codec.Encoder) error
- func (rf *RewardFund) ToJSON() map[string]interface{}
- type Snapshot
- type State
- func (s *State) CheckConsistentValidationPenalty(ps *PRepStatusState) bool
- func (s *State) CheckValidationPenalty(ps *PRepStatusState, blockHeight int64) bool
- func (s *State) ClearCache()
- func (s *State) DisablePRep(owner module.Address, status Status, blockHeight int64) error
- func (s *State) Flush() error
- func (s *State) GetAccountSnapshot(addr module.Address) *AccountSnapshot
- func (s *State) GetAccountState(addr module.Address) *AccountState
- func (s *State) GetActivePRepSize() int
- func (s *State) GetBondRequirement() int64
- func (s *State) GetConsistentValidationPenaltyCondition() int64
- func (s *State) GetConsistentValidationPenaltyMask() int
- func (s *State) GetConsistentValidationPenaltySlashRatio() int
- func (s *State) GetDelegationSlotMax() int
- func (s *State) GetIISSVersion() int
- func (s *State) GetIRep() *big.Int
- func (s *State) GetIssue() (*Issue, error)
- func (s *State) GetLockMaxMultiplier() *big.Int
- func (s *State) GetLockMinMultiplier() *big.Int
- func (s *State) GetMainPRepCount() int64
- func (s *State) GetNodeByOwner(owner module.Address) module.Address
- func (s *State) GetOrderedPReps() (*PReps, error)
- func (s *State) GetOwnerByNode(node module.Address) module.Address
- func (s *State) GetPRepBaseByNode(node module.Address) *PRepBase
- func (s *State) GetPRepBaseByOwner(owner module.Address, createIfNotExist bool) (*PRepBase, bool)
- func (s *State) GetPRepByOwner(owner module.Address) *PRep
- func (s *State) GetPRepCount() int64
- func (s *State) GetPRepManagerInJSON() map[string]interface{}
- func (s *State) GetPRepStatsInJSON(blockHeight int64) (map[string]interface{}, error)
- func (s *State) GetPRepStatusByOwner(owner module.Address, createIfNotExist bool) (*PRepStatusState, bool)
- func (s *State) GetPRepStatuses() ([]*PRepStatusState, error)
- func (s *State) GetPRepsInJSON(blockHeight int64, start, end int) (map[string]interface{}, error)
- func (s *State) GetRRep() *big.Int
- func (s *State) GetRewardCalcInfo() (*RewardCalcInfo, error)
- func (s *State) GetRewardFund() *RewardFund
- func (s *State) GetSnapshot() *Snapshot
- func (s *State) GetSubPRepCount() int64
- func (s *State) GetTerm() *Term
- func (s *State) GetTermPeriod() int64
- func (s *State) GetTotalBond() *big.Int
- func (s *State) GetTotalDelegation() *big.Int
- func (s *State) GetTotalStake() *big.Int
- func (s *State) GetUnbondingMax() int64
- func (s *State) GetUnbondingPeriodMultiplier() int64
- func (s *State) GetUnbondingTimerSnapshot(height int64) *TimerSnapshot
- func (s *State) GetUnbondingTimerState(height int64) *TimerState
- func (s *State) GetUnstakeSlotMax() int64
- func (s *State) GetUnstakingTimerSnapshot(height int64) *TimerSnapshot
- func (s *State) GetUnstakingTimerState(height int64) *TimerState
- func (s *State) GetValidationPenaltyCondition() int64
- func (s *State) GetValidatorsSnapshot() *ValidatorsSnapshot
- func (s *State) ImposePenalty(owner module.Address, ps *PRepStatusState, blockHeight int64) error
- func (s *State) IsDecentralizationConditionMet(revision int, totalSupply *big.Int, preps *PReps) bool
- func (s *State) RegisterPRep(owner module.Address, ri *RegInfo, irep *big.Int) error
- func (s *State) RemoveActivePRep(owner module.Address) error
- func (s *State) Reset(ss *Snapshot) error
- func (s *State) SetBondRequirement(value int64) error
- func (s *State) SetConsistentValidationPenaltyCondition(value int64) error
- func (s *State) SetConsistentValidationPenaltyMask(value int64) error
- func (s *State) SetConsistentValidationPenaltySlashRatio(value int) error
- func (s *State) SetDelegationSlotMax(value int64) error
- func (s *State) SetIISSVersion(value int) error
- func (s *State) SetIRep(value *big.Int) error
- func (s *State) SetIssue(issue *Issue) error
- func (s *State) SetLockVariables(lockMin *big.Int, lockMax *big.Int) error
- func (s *State) SetMainPRepCount(value int64) error
- func (s *State) SetPRep(blockHeight int64, owner module.Address, ri *RegInfo) error
- func (s *State) SetRRep(value *big.Int) error
- func (s *State) SetRewardCalcInfo(rc *RewardCalcInfo) error
- func (s *State) SetRewardFund(rc *RewardFund) error
- func (s *State) SetSubPRepCount(value int64) error
- func (s *State) SetTerm(term *Term) error
- func (s *State) SetTermPeriod(value int64) error
- func (s *State) SetTotalBond(value *big.Int) error
- func (s *State) SetTotalDelegation(value *big.Int) error
- func (s *State) SetTotalStake(value *big.Int) error
- func (s *State) SetUnbondingMax(value int64) error
- func (s *State) SetUnbondingPeriodMultiplier(value int64) error
- func (s *State) SetUnstakeSlotMax(v int64) error
- func (s *State) SetValidationPenaltyCondition(value int) error
- func (s *State) SetValidatorsSnapshot(vss *ValidatorsSnapshot) error
- func (s *State) ShiftVPenaltyMaskByNode(node module.Address) error
- func (s *State) Slash(owner module.Address, amount *big.Int) error
- func (s *State) UpdateBlockVoteStats(owner module.Address, voted bool, blockHeight int64) error
- type StateAndSnapshot
- type Status
- type Term
- func (term *Term) BondRequirement() int
- func (term *Term) Clone() *Term
- func (term *Term) Equal(o icobject.Impl) bool
- func (term *Term) Format(f fmt.State, c rune)
- func (term *Term) GetElectedPRepCount() int
- func (term *Term) GetEndHeight() int64
- func (term *Term) GetFlag() TermFlag
- func (term *Term) GetIISSVersion() int
- func (term *Term) GetPRepSnapshotByIndex(index int) *PRepSnapshot
- func (term *Term) GetPRepSnapshotByOwner(owner module.Address) *PRepSnapshot
- func (term *Term) GetPRepSnapshotCount() int
- func (term *Term) GetSnapshot(store *icobject.ObjectStoreState) error
- func (term *Term) GetVoteStartHeight() int64
- func (term *Term) Icps() *big.Int
- func (term *Term) Iglobal() *big.Int
- func (term *Term) Iprep() *big.Int
- func (term *Term) Irelay() *big.Int
- func (term *Term) Irep() *big.Int
- func (term *Term) IsAnyFlagOn(flags TermFlag) bool
- func (term *Term) IsDecentralized() bool
- func (term *Term) IsFirstBlockOnDecentralized(blockHeight int64) bool
- func (term *Term) IsUpdated() bool
- func (term *Term) Ivoter() *big.Int
- func (term *Term) MainPRepCount() int
- func (term *Term) Period() int64
- func (term *Term) RLPDecodeFields(decoder codec.Decoder) error
- func (term *Term) RLPEncodeFields(encoder codec.Encoder) error
- func (term *Term) ResetFlag()
- func (term *Term) ResetSequence()
- func (term *Term) Revision() int
- func (term *Term) RewardFund() *RewardFund
- func (term *Term) Rrep() *big.Int
- func (term *Term) Sequence() int
- func (term *Term) Set(other *Term)
- func (term *Term) SetFlag(flags TermFlag, on bool)
- func (term *Term) SetIrep(irep *big.Int)
- func (term *Term) SetIsDecentralized(value bool)
- func (term *Term) SetMainPRepCount(mainPRepCount int)
- func (term *Term) SetPRepSnapshots(prepSnapshots *PRepSnapshots)
- func (term *Term) SetRevision(revision int)
- func (term *Term) SetRrep(rrep *big.Int)
- func (term *Term) StartHeight() int64
- func (term *Term) String() string
- func (term *Term) ToJSON() map[string]interface{}
- func (term *Term) TotalBondedDelegation() *big.Int
- func (term *Term) TotalDelegated() *big.Int
- func (term *Term) TotalSupply() *big.Int
- func (term *Term) Version() int
- type TermFlag
- type TimerCache
- type TimerIterator
- type TimerJobInfo
- type TimerSnapshot
- func (t TimerSnapshot) Contains(addr module.Address) bool
- func (t *TimerSnapshot) Equal(object icobject.Impl) bool
- func (t TimerSnapshot) IndexOf(addr module.Address) int
- func (t TimerSnapshot) IsEmpty() bool
- func (t TimerSnapshot) Iterator() TimerIterator
- func (t *TimerSnapshot) RLPDecodeFields(decoder codec.Decoder) error
- func (t *TimerSnapshot) RLPEncodeFields(encoder codec.Encoder) error
- func (t *TimerSnapshot) Version() int
- type TimerState
- func (t *TimerState) Add(address module.Address)
- func (t TimerState) Contains(addr module.Address) bool
- func (t *TimerState) Delete(address module.Address) error
- func (t *TimerState) GetSnapshot() *TimerSnapshot
- func (t TimerState) IndexOf(addr module.Address) int
- func (t TimerState) IsEmpty() bool
- func (t TimerState) Iterator() TimerIterator
- func (t *TimerState) Reset(ts *TimerSnapshot) *TimerState
- type Unbond
- func (u *Unbond) Address() *common.Address
- func (u *Unbond) Clone() *Unbond
- func (u *Unbond) Equal(o *Unbond) bool
- func (u *Unbond) Expire() int64
- func (u *Unbond) Format(f fmt.State, c rune)
- func (u *Unbond) RLPDecodeSelf(decoder codec.Decoder) error
- func (u *Unbond) RLPEncodeSelf(encoder codec.Encoder) error
- func (u *Unbond) SetExpire(e int64)
- func (u *Unbond) SetValue(v *big.Int)
- func (u *Unbond) Slash(ratio int) *big.Int
- func (u *Unbond) ToJSON() map[string]interface{}
- func (u *Unbond) Value() *big.Int
- type Unbonds
- func (ul *Unbonds) Add(address module.Address, value *big.Int, expireHeight int64)
- func (ul Unbonds) Clone() Unbonds
- func (ul *Unbonds) Delete(i int) error
- func (ul *Unbonds) DeleteByAddress(address module.Address) error
- func (ul Unbonds) Equal(ul2 Unbonds) bool
- func (ul Unbonds) ExpireRefCount() map[int64]int
- func (ul Unbonds) GetUnbondAmount() *big.Int
- func (ul Unbonds) GetUnbondByAddress(address module.Address) (*Unbond, int)
- func (ul Unbonds) IsEmpty() bool
- func (ul Unbonds) MapByAddr() map[string]*Unbond
- func (ul *Unbonds) Slash(address module.Address, ratio int) (Unbonds, *big.Int, int64)
- func (ul Unbonds) ToJSON(_ module.JSONVersion) []interface{}
- type Unstake
- func (u *Unstake) Clone() *Unstake
- func (u *Unstake) Equal(u2 *Unstake) bool
- func (u *Unstake) Expire() int64
- func (u Unstake) Format(f fmt.State, c rune)
- func (u *Unstake) RLPDecodeSelf(decoder codec.Decoder) error
- func (u *Unstake) RLPEncodeSelf(encoder codec.Encoder) error
- func (u Unstake) String() string
- func (u Unstake) ToJSON(_ module.JSONVersion, blockHeight int64) interface{}
- func (u *Unstake) Value() *big.Int
- type Unstakes
- type ValidationState
- type ValidatorsSnapshot
- func (vss *ValidatorsSnapshot) Equal(object icobject.Impl) bool
- func (vd *ValidatorsSnapshot) Format(f fmt.State, verb rune)
- func (vd *ValidatorsSnapshot) Get(i int) module.Address
- func (vd *ValidatorsSnapshot) IndexOf(node module.Address) int
- func (vss *ValidatorsSnapshot) IsUpdated(blockHeight int64) bool
- func (vd *ValidatorsSnapshot) Len() int
- func (vd *ValidatorsSnapshot) NewValidatorSet() []module.Validator
- func (vd *ValidatorsSnapshot) NextPRepSnapshotIndex() int
- func (vss *ValidatorsSnapshot) RLPDecodeFields(decoder codec.Decoder) error
- func (vss *ValidatorsSnapshot) RLPEncodeFields(encoder codec.Encoder) error
- func (vd *ValidatorsSnapshot) String() string
- func (vss *ValidatorsSnapshot) Version() int
- type ValidatorsState
- func (vd *ValidatorsState) Format(f fmt.State, verb rune)
- func (vd *ValidatorsState) Get(i int) module.Address
- func (vs *ValidatorsState) GetSnapshot() *ValidatorsSnapshot
- func (vd *ValidatorsState) IndexOf(node module.Address) int
- func (vs *ValidatorsState) IsDirty() bool
- func (vd *ValidatorsState) Len() int
- func (vd *ValidatorsState) NewValidatorSet() []module.Validator
- func (vd *ValidatorsState) NextPRepSnapshotIndex() int
- func (vs *ValidatorsState) Reset(vss *ValidatorsSnapshot)
- func (vs *ValidatorsState) Set(blockHeight int64, i, nextPssIdx int, node module.Address)
- func (vd *ValidatorsState) String() string
- type Voting
- type VotingIterator
Constants ¶
const ( InitialIRep = 50_000 // in icx, not loop MinIRep = 10_000 )
const ( VarIRep = "irep" VarRRep = "rrep" VarMainPRepCount = "main_prep_count" VarSubPRepCount = "sub_prep_count" VarTotalStake = "total_stake" VarIISSVersion = "iiss_version" VarTermPeriod = "term_period" VarBondRequirement = "bond_requirement" VarUnbondingPeriodMultiplier = "unbonding_period_multiplier" VarLockMinMultiplier = "lockMinMultiplier" VarLockMaxMultiplier = "lockMaxMultiplier" VarRewardFund = "reward_fund" VarUnbondingMax = "unbonding_max" VarValidationPenaltyCondition = "validation_penalty_condition" VarConsistentValidationPenaltyCondition = "consistent_validation_penalty_condition" VarConsistentValidationPenaltyMask = "consistent_validation_penalty_mask" VarConsistentValidationPenaltySlashRatio = "consistent_validation_penalty_slashRatio" VarDelegationSlotMax = "delegation_slot_max" )
const ( IISSVersion2 int = iota + 2 IISSVersion3 )
const ( TypeAccount int = iota TypePRepBase TypePRepStatus TypeTimer TypeIssue TypeTerm TypeRewardCalcInfo TypeValidators )
const DecentralizedHeight = 10362083
Variables ¶
var ( BigIntZero = new(big.Int) BigIntInitialIRep = new(big.Int).Mul(new(big.Int).SetInt64(InitialIRep), icutils.BigIntICX) BigIntMinIRep = new(big.Int).Mul(new(big.Int).SetInt64(MinIRep), icutils.BigIntICX) )
var ( IssueKey = containerdb.ToKey(containerdb.HashBuilder, "issue_icx").Build() RewardCalcInfoKey = containerdb.ToKey(containerdb.HashBuilder, "reward_calc_info").Build() ValidatorsKey = containerdb.ToKey( containerdb.HashBuilder, scoredb.VarDBPrefix, "validators", ) UnstakeSlotMaxKey = containerdb.ToKey( containerdb.HashBuilder, scoredb.VarDBPrefix, "unstake_slot_max", ) TotalDelegationKey = containerdb.ToKey( containerdb.HashBuilder, scoredb.VarDBPrefix, "total_delegation", ) TotalBondKey = containerdb.ToKey( containerdb.HashBuilder, scoredb.VarDBPrefix, "total_bond", ) )
var AccountDictPrefix = containerdb.ToKey( containerdb.HashBuilder, scoredb.DictDBPrefix, "account_db", )
Functions ¶
func NetworkValueToJSON ¶
func NewVotingIterator ¶
func NewVotingIterator(votings []Voting) *votingIterator
func ScheduleTimerJob ¶
func ScheduleTimerJob(t *TimerState, info TimerJobInfo, address module.Address) error
Types ¶
type AccountCache ¶
type AccountCache struct {
// contains filtered or unexported fields
}
func (*AccountCache) Clear ¶
func (c *AccountCache) Clear()
func (*AccountCache) Flush ¶
func (c *AccountCache) Flush()
func (*AccountCache) Get ¶
func (c *AccountCache) Get(owner module.Address, createIfNotExist bool) *AccountState
func (*AccountCache) GetSnapshot ¶ added in v0.9.7
func (c *AccountCache) GetSnapshot(owner module.Address) *AccountSnapshot
func (*AccountCache) Reset ¶
func (c *AccountCache) Reset()
type AccountSnapshot ¶ added in v0.9.7
type AccountSnapshot struct { icobject.NoDatabase // contains filtered or unexported fields }
func GetEmptyAccountSnapshot ¶ added in v0.9.7
func GetEmptyAccountSnapshot() *AccountSnapshot
func ToAccount ¶
func ToAccount(object trie.Object) *AccountSnapshot
func (*AccountSnapshot) Delegating ¶ added in v0.9.7
func (*AccountSnapshot) Delegations ¶ added in v0.9.7
func (a *AccountSnapshot) Delegations() Delegations
func (*AccountSnapshot) Equal ¶ added in v0.9.7
func (a *AccountSnapshot) Equal(object icobject.Impl) bool
func (*AccountSnapshot) GetBondsInJSON ¶ added in v0.9.7
func (a *AccountSnapshot) GetBondsInJSON() []interface{}
func (AccountSnapshot) GetDelegationInJSON ¶ added in v0.9.7
func (a AccountSnapshot) GetDelegationInJSON() map[string]interface{}
func (AccountSnapshot) GetStakeInJSON ¶ added in v0.9.7
func (AccountSnapshot) GetTotalStake ¶ added in v0.9.7
func (*AccountSnapshot) GetUnbondsInJSON ¶ added in v0.9.7
func (a *AccountSnapshot) GetUnbondsInJSON() []interface{}
func (AccountSnapshot) GetUnstakeAmount ¶ added in v0.9.7
func (*AccountSnapshot) GetVotingPower ¶ added in v0.9.7
func (*AccountSnapshot) RLPDecodeFields ¶ added in v0.9.7
func (a *AccountSnapshot) RLPDecodeFields(decoder codec.Decoder) error
func (*AccountSnapshot) RLPEncodeFields ¶ added in v0.9.7
func (a *AccountSnapshot) RLPEncodeFields(encoder codec.Encoder) error
func (*AccountSnapshot) UsingStake ¶ added in v0.9.7
func (*AccountSnapshot) Version ¶ added in v0.9.7
func (a *AccountSnapshot) Version() int
type AccountState ¶ added in v0.9.7
type AccountState struct {
// contains filtered or unexported fields
}
func (*AccountState) Clear ¶ added in v0.9.7
func (a *AccountState) Clear()
func (*AccountState) DecreaseUnstake ¶ added in v0.9.7
func (a *AccountState) DecreaseUnstake(stakeInc *big.Int, expireHeight int64, revision int) ([]TimerJobInfo, error)
func (*AccountState) Delegating ¶ added in v0.9.7
func (*AccountState) Delegations ¶ added in v0.9.7
func (a *AccountState) Delegations() Delegations
func (*AccountState) GetBondsInJSON ¶ added in v0.9.7
func (a *AccountState) GetBondsInJSON() []interface{}
func (AccountState) GetDelegationInJSON ¶ added in v0.9.7
func (a AccountState) GetDelegationInJSON() map[string]interface{}
func (*AccountState) GetSnapshot ¶ added in v0.9.7
func (a *AccountState) GetSnapshot() *AccountSnapshot
func (AccountState) GetStakeInJSON ¶ added in v0.9.7
func (AccountState) GetTotalStake ¶ added in v0.9.7
func (*AccountState) GetUnbondsInJSON ¶ added in v0.9.7
func (a *AccountState) GetUnbondsInJSON() []interface{}
func (AccountState) GetUnstakeAmount ¶ added in v0.9.7
func (*AccountState) GetVotingPower ¶ added in v0.9.7
func (*AccountState) IncreaseUnstake ¶ added in v0.9.7
func (a *AccountState) IncreaseUnstake(stakeInc *big.Int, expireHeight int64, slotMax, revision int) ([]TimerJobInfo, error)
func (*AccountState) RemoveUnbond ¶ added in v0.9.7
func (a *AccountState) RemoveUnbond(height int64) error
func (*AccountState) RemoveUnstake ¶ added in v0.9.7
func (a *AccountState) RemoveUnstake(height int64) (ra *big.Int, err error)
func (*AccountState) Reset ¶ added in v0.9.7
func (a *AccountState) Reset(s *AccountSnapshot)
func (*AccountState) SetBonds ¶ added in v0.9.7
func (a *AccountState) SetBonds(bonds Bonds)
func (*AccountState) SetDelegation ¶ added in v0.9.7
func (a *AccountState) SetDelegation(ds Delegations)
func (*AccountState) SlashStake ¶ added in v0.9.7
func (a *AccountState) SlashStake(amount *big.Int) error
func (*AccountState) SlashUnbond ¶ added in v0.9.7
func (*AccountState) UpdateUnbonds ¶ added in v0.9.7
func (a *AccountState) UpdateUnbonds(bondDelta map[string]*big.Int, expireHeight int64) ([]TimerJobInfo, error)
func (*AccountState) UsingStake ¶ added in v0.9.7
type ActivePRepCache ¶
type ActivePRepCache struct {
// contains filtered or unexported fields
}
func (*ActivePRepCache) Add ¶
func (c *ActivePRepCache) Add(owner module.Address)
A new PRep is registered
func (*ActivePRepCache) Clear ¶
func (c *ActivePRepCache) Clear()
func (*ActivePRepCache) Flush ¶
func (c *ActivePRepCache) Flush()
func (*ActivePRepCache) Remove ¶
func (c *ActivePRepCache) Remove(owner module.Address) error
An active PRep is removed
func (*ActivePRepCache) Reset ¶
func (c *ActivePRepCache) Reset()
Reset recovers data which is in the list of Map as of now
func (*ActivePRepCache) Size ¶
func (c *ActivePRepCache) Size() int
type BonderList ¶
func NewBonderList ¶
func NewBonderList(param []interface{}) (BonderList, error)
func (BonderList) Clone ¶
func (bl BonderList) Clone() BonderList
func (BonderList) Equal ¶
func (bl BonderList) Equal(bl2 BonderList) bool
func (BonderList) ToJSON ¶
func (bl BonderList) ToJSON() []interface{}
type Bonds ¶
type Bonds []*Bond
func (*Bonds) GetBondAmount ¶
func (*Bonds) Iterator ¶
func (bs *Bonds) Iterator() VotingIterator
func (*Bonds) ToJSON ¶
func (bs *Bonds) ToJSON(v module.JSONVersion) []interface{}
type Delegation ¶
type Delegation struct { Address *common.Address `json:"address"` Value *common.HexInt `json:"value"` }
func NewDelegation ¶
func NewDelegation(addr *common.Address, v *big.Int) *Delegation
func (*Delegation) Amount ¶
func (dg *Delegation) Amount() *big.Int
func (*Delegation) Clone ¶
func (dg *Delegation) Clone() *Delegation
func (*Delegation) Equal ¶
func (dg *Delegation) Equal(d2 *Delegation) bool
func (*Delegation) String ¶ added in v0.9.7
func (dg *Delegation) String() string
func (*Delegation) To ¶
func (dg *Delegation) To() module.Address
func (*Delegation) ToJSON ¶
func (dg *Delegation) ToJSON() map[string]interface{}
type Delegations ¶
type Delegations []*Delegation
func NewDelegations ¶
func NewDelegations(param []interface{}, max int) (Delegations, error)
func (Delegations) Clone ¶
func (ds Delegations) Clone() Delegations
func (*Delegations) Delete ¶
func (ds *Delegations) Delete(i int) error
func (Delegations) Equal ¶
func (ds Delegations) Equal(ds2 Delegations) bool
func (Delegations) GetDelegationAmount ¶
func (ds Delegations) GetDelegationAmount() *big.Int
func (Delegations) Has ¶
func (ds Delegations) Has() bool
func (*Delegations) Iterator ¶
func (ds *Delegations) Iterator() VotingIterator
func (Delegations) ToJSON ¶
func (ds Delegations) ToJSON(_ module.JSONVersion) []interface{}
func (*Delegations) ToMap ¶ added in v0.9.7
func (ds *Delegations) ToMap() map[string]*Delegation
type Issue ¶
type Issue struct { icobject.NoDatabase // contains filtered or unexported fields }
func (*Issue) IScoreRemains ¶
func (*Issue) OverIssued ¶
func (*Issue) PrevBlockFee ¶
func (*Issue) PrevTotalIssued ¶
func (*Issue) ResetTotalIssued ¶
func (i *Issue) ResetTotalIssued()
func (*Issue) SetIScoreRemains ¶ added in v0.9.7
func (*Issue) SetOverIssued ¶ added in v0.9.7
func (*Issue) SetPrevBlockFee ¶ added in v0.9.7
func (*Issue) SetPrevTotalIssued ¶ added in v0.9.7
func (*Issue) SetTotalIssued ¶ added in v0.9.7
func (*Issue) TotalIssued ¶
type NodeOwnerCache ¶
type NodeOwnerCache struct {
// contains filtered or unexported fields
}
TODO: Remove old nodes which is not used anymore
func (*NodeOwnerCache) Clear ¶
func (c *NodeOwnerCache) Clear()
func (*NodeOwnerCache) Contains ¶ added in v0.9.7
func (c *NodeOwnerCache) Contains(node module.Address) bool
func (*NodeOwnerCache) Flush ¶
func (c *NodeOwnerCache) Flush()
func (*NodeOwnerCache) Reset ¶
func (c *NodeOwnerCache) Reset()
type OwnerToNodeMappable ¶ added in v0.9.7
type PRep ¶ added in v0.9.7
type PRep struct { *PRepBase *PRepStatusState // contains filtered or unexported fields }
func (PRep) GetBondedDelegation ¶ added in v0.9.7
GetBondedDelegation return amount of bonded delegation Bonded delegation formula totalVoted = bond + delegation bondRatio = bond / totalVoted * 100 bondedDelegation = totalVoted * (bondRatio / bondRequirement)
= bond * 100 / bondRequirement
if bondedDelegation > totalVoted
bondedDelegation = totalVoted
func (PRep) GetStatsInJSON ¶ added in v0.9.7
func (PRep) GetVFail ¶ added in v0.9.7
GetVFail returns the calculated number of validation failures
func (PRep) GetVFailCont ¶ added in v0.9.7
GetVFailCont returns the number of consecutive validation failures
func (PRep) GetVPenaltyCount ¶ added in v0.9.7
func (ps PRep) GetVPenaltyCount() int
func (PRep) IsAlreadyPenalized ¶ added in v0.9.7
func (ps PRep) IsAlreadyPenalized() bool
IsAlreadyPenalized returns true if this PRep got penalized during this term
func (PRep) LastHeight ¶ added in v0.9.7
func (ps PRep) LastHeight() int64
func (PRep) LastState ¶ added in v0.9.7
func (ps PRep) LastState() ValidationState
type PRepBase ¶
type PRepBase struct { icobject.NoDatabase StateAndSnapshot // database variables RegInfo // contains filtered or unexported fields }
func NewPRepBase ¶
func NewPRepBase() *PRepBase
func ToPRepBase ¶
func (*PRepBase) ApplyRegInfo ¶ added in v0.9.7
func (*PRepBase) BonderList ¶
func (p *PRepBase) BonderList() BonderList
func (*PRepBase) GetBonderListInJSON ¶
func (p *PRepBase) GetBonderListInJSON() []interface{}
func (*PRepBase) IRepHeight ¶
func (*PRepBase) SetBonderList ¶
func (p *PRepBase) SetBonderList(bonderList BonderList)
func (*PRepBase) SetRegInfo ¶ added in v0.9.7
type PRepBaseCache ¶
type PRepBaseCache struct {
// contains filtered or unexported fields
}
func (*PRepBaseCache) Clear ¶
func (c *PRepBaseCache) Clear()
func (*PRepBaseCache) Flush ¶
func (c *PRepBaseCache) Flush()
func (*PRepBaseCache) Reset ¶
func (c *PRepBaseCache) Reset()
type PRepSnapshot ¶
type PRepSnapshot struct {
// contains filtered or unexported fields
}
func NewPRepSnapshot ¶ added in v0.9.7
func NewPRepSnapshot(owner module.Address, bondedDelegation *big.Int) *PRepSnapshot
func (*PRepSnapshot) BondedDelegation ¶
func (pss *PRepSnapshot) BondedDelegation() *big.Int
func (*PRepSnapshot) Clone ¶
func (pss *PRepSnapshot) Clone() *PRepSnapshot
func (*PRepSnapshot) Equal ¶
func (pss *PRepSnapshot) Equal(other *PRepSnapshot) bool
func (*PRepSnapshot) Owner ¶
func (pss *PRepSnapshot) Owner() module.Address
func (*PRepSnapshot) RLPDecodeSelf ¶
func (pss *PRepSnapshot) RLPDecodeSelf(d codec.Decoder) error
func (*PRepSnapshot) RLPEncodeSelf ¶
func (pss *PRepSnapshot) RLPEncodeSelf(e codec.Encoder) error
func (*PRepSnapshot) ToJSON ¶
func (pss *PRepSnapshot) ToJSON() map[string]interface{}
type PRepSnapshots ¶
type PRepSnapshots struct {
// contains filtered or unexported fields
}
func NewEmptyPRepSnapshots ¶ added in v0.9.7
func NewEmptyPRepSnapshots() *PRepSnapshots
func NewPRepSnapshots ¶ added in v0.9.7
func NewPRepSnapshots(preps *PReps, electedPRepCount int, br int64) *PRepSnapshots
func (*PRepSnapshots) Clone ¶
func (p *PRepSnapshots) Clone() *PRepSnapshots
func (*PRepSnapshots) Equal ¶
func (p *PRepSnapshots) Equal(other *PRepSnapshots) bool
func (*PRepSnapshots) Get ¶ added in v0.9.7
func (p *PRepSnapshots) Get(i int) interface{}
func (*PRepSnapshots) IndexOf ¶ added in v0.9.7
func (p *PRepSnapshots) IndexOf(value interface{}) int
func (*PRepSnapshots) Len ¶ added in v0.9.7
func (p *PRepSnapshots) Len() int
func (*PRepSnapshots) RLPDecodeSelf ¶ added in v0.9.7
func (p *PRepSnapshots) RLPDecodeSelf(d codec.Decoder) error
func (*PRepSnapshots) RLPEncodeSelf ¶ added in v0.9.7
func (p *PRepSnapshots) RLPEncodeSelf(e codec.Encoder) error
func (*PRepSnapshots) TotalBondedDelegation ¶ added in v0.9.7
func (p *PRepSnapshots) TotalBondedDelegation() *big.Int
type PRepStatusCache ¶
type PRepStatusCache struct {
// contains filtered or unexported fields
}
func (*PRepStatusCache) Clear ¶
func (c *PRepStatusCache) Clear()
func (*PRepStatusCache) Flush ¶
func (c *PRepStatusCache) Flush()
func (*PRepStatusCache) Get ¶
func (c *PRepStatusCache) Get(owner module.Address, createIfNotExist bool) (*PRepStatusState, bool)
func (*PRepStatusCache) Reset ¶
func (c *PRepStatusCache) Reset()
type PRepStatusSnapshot ¶ added in v0.9.7
type PRepStatusSnapshot struct { icobject.NoDatabase // contains filtered or unexported fields }
func ToPRepStatus ¶
func ToPRepStatus(object trie.Object) *PRepStatusSnapshot
func (*PRepStatusSnapshot) Equal ¶ added in v0.9.7
func (ps *PRepStatusSnapshot) Equal(o icobject.Impl) bool
func (*PRepStatusSnapshot) GetBondedDelegation ¶ added in v0.9.7
GetBondedDelegation return amount of bonded delegation Bonded delegation formula totalVoted = bond + delegation bondRatio = bond / totalVoted * 100 bondedDelegation = totalVoted * (bondRatio / bondRequirement)
= bond * 100 / bondRequirement
if bondedDelegation > totalVoted
bondedDelegation = totalVoted
func (*PRepStatusSnapshot) GetStatsInJSON ¶ added in v0.9.7
func (*PRepStatusSnapshot) GetVFail ¶ added in v0.9.7
GetVFail returns the calculated number of validation failures
func (*PRepStatusSnapshot) GetVFailCont ¶ added in v0.9.7
GetVFailCont returns the number of consecutive validation failures
func (*PRepStatusSnapshot) GetVPenaltyCount ¶ added in v0.9.7
func (ps *PRepStatusSnapshot) GetVPenaltyCount() int
func (*PRepStatusSnapshot) GetVTotal ¶ added in v0.9.7
GetVTotal returns the calculated number of validation
func (*PRepStatusSnapshot) IsAlreadyPenalized ¶ added in v0.9.7
func (ps *PRepStatusSnapshot) IsAlreadyPenalized() bool
IsAlreadyPenalized returns true if this PRep got penalized during this term
func (*PRepStatusSnapshot) LastHeight ¶ added in v0.9.7
func (ps *PRepStatusSnapshot) LastHeight() int64
func (*PRepStatusSnapshot) LastState ¶ added in v0.9.7
func (ps *PRepStatusSnapshot) LastState() ValidationState
func (*PRepStatusSnapshot) RLPDecodeFields ¶ added in v0.9.7
func (ps *PRepStatusSnapshot) RLPDecodeFields(decoder codec.Decoder) error
func (*PRepStatusSnapshot) RLPEncodeFields ¶ added in v0.9.7
func (ps *PRepStatusSnapshot) RLPEncodeFields(encoder codec.Encoder) error
func (*PRepStatusSnapshot) Version ¶ added in v0.9.7
func (ps *PRepStatusSnapshot) Version() int
type PRepStatusState ¶ added in v0.9.7
type PRepStatusState struct {
// contains filtered or unexported fields
}
func NewPRepStatus ¶
func NewPRepStatus() *PRepStatusState
func NewPRepStatusWithSnapshot ¶ added in v0.9.7
func NewPRepStatusWithSnapshot(snapshot *PRepStatusSnapshot) *PRepStatusState
func (*PRepStatusState) ChangeGrade ¶ added in v0.9.7
func (ps *PRepStatusState) ChangeGrade(newGrade Grade, blockHeight int64, penaltyMask int) error
func (*PRepStatusState) Clear ¶ added in v0.9.7
func (ps *PRepStatusState) Clear()
func (*PRepStatusState) GetBondedDelegation ¶ added in v0.9.7
GetBondedDelegation return amount of bonded delegation Bonded delegation formula totalVoted = bond + delegation bondRatio = bond / totalVoted * 100 bondedDelegation = totalVoted * (bondRatio / bondRequirement)
= bond * 100 / bondRequirement
if bondedDelegation > totalVoted
bondedDelegation = totalVoted
func (*PRepStatusState) GetSnapshot ¶ added in v0.9.7
func (ps *PRepStatusState) GetSnapshot() *PRepStatusSnapshot
func (*PRepStatusState) GetStatsInJSON ¶ added in v0.9.7
func (*PRepStatusState) GetVFail ¶ added in v0.9.7
GetVFail returns the calculated number of validation failures
func (*PRepStatusState) GetVFailCont ¶ added in v0.9.7
GetVFailCont returns the number of consecutive validation failures
func (*PRepStatusState) GetVPenaltyCount ¶ added in v0.9.7
func (ps *PRepStatusState) GetVPenaltyCount() int
func (*PRepStatusState) GetVTotal ¶ added in v0.9.7
GetVTotal returns the calculated number of validation
func (*PRepStatusState) ImposePenalty ¶ added in v0.9.7
func (ps *PRepStatusState) ImposePenalty(blockHeight int64) error
func (*PRepStatusState) IsAlreadyPenalized ¶ added in v0.9.7
func (ps *PRepStatusState) IsAlreadyPenalized() bool
IsAlreadyPenalized returns true if this PRep got penalized during this term
func (*PRepStatusState) IsEmpty ¶ added in v0.9.7
func (ps *PRepStatusState) IsEmpty() bool
func (*PRepStatusState) LastHeight ¶ added in v0.9.7
func (ps *PRepStatusState) LastHeight() int64
func (*PRepStatusState) LastState ¶ added in v0.9.7
func (ps *PRepStatusState) LastState() ValidationState
func (*PRepStatusState) Reset ¶ added in v0.9.7
func (ps *PRepStatusState) Reset(ss *PRepStatusSnapshot) *PRepStatusState
func (*PRepStatusState) ResetVFailContOffset ¶ added in v0.9.7
func (ps *PRepStatusState) ResetVFailContOffset()
func (*PRepStatusState) SetBonded ¶ added in v0.9.7
func (ps *PRepStatusState) SetBonded(v *big.Int)
func (*PRepStatusState) SetDelegated ¶ added in v0.9.7
func (ps *PRepStatusState) SetDelegated(delegated *big.Int)
func (*PRepStatusState) SetGrade ¶ added in v0.9.7
func (ps *PRepStatusState) SetGrade(g Grade)
func (*PRepStatusState) SetStatus ¶ added in v0.9.7
func (ps *PRepStatusState) SetStatus(s Status)
func (*PRepStatusState) SetVFail ¶ added in v0.9.7
func (ps *PRepStatusState) SetVFail(f int64)
func (*PRepStatusState) SetVTotal ¶ added in v0.9.7
func (ps *PRepStatusState) SetVTotal(t int64)
func (*PRepStatusState) UpdateBlockVoteStats ¶ added in v0.9.7
func (ps *PRepStatusState) UpdateBlockVoteStats(blockHeight int64, voted bool) error
UpdateBlockVoteStats updates Penalty-related info based on ConsensusInfo
type PReps ¶ added in v0.9.7
type PReps struct {
// contains filtered or unexported fields
}
func (*PReps) GetPRepByIndex ¶ added in v0.9.7
func (*PReps) GetPRepSize ¶ added in v0.9.7
func (*PReps) GetTotalBondedDelegation ¶ added in v0.9.7
func (*PReps) ResetAllStatus ¶ added in v0.9.7
func (p *PReps) ResetAllStatus(blockHeight int64, mainPRepCount, subPRepCount, penaltyMask int) error
ResetAllStatus initializes all prep status including grade on term end
func (*PReps) TotalBonded ¶ added in v0.9.7
func (*PReps) TotalDelegated ¶ added in v0.9.7
type RegInfo ¶ added in v0.9.7
type RegInfo struct {
// contains filtered or unexported fields
}
func NewRegInfo ¶ added in v0.9.7
type RewardCalcInfo ¶
type RewardCalcInfo struct { icobject.NoDatabase // contains filtered or unexported fields }
func NewRewardCalcInfo ¶
func NewRewardCalcInfo() *RewardCalcInfo
func ToRewardCalcInfo ¶
func ToRewardCalcInfo(object trie.Object) *RewardCalcInfo
func (*RewardCalcInfo) Clone ¶
func (rc *RewardCalcInfo) Clone() *RewardCalcInfo
func (*RewardCalcInfo) Format ¶ added in v0.9.7
func (rc *RewardCalcInfo) Format(f fmt.State, c rune)
func (*RewardCalcInfo) GetResultInJSON ¶ added in v0.9.7
func (rc *RewardCalcInfo) GetResultInJSON() map[string]interface{}
func (*RewardCalcInfo) PrevCalcReward ¶
func (rc *RewardCalcInfo) PrevCalcReward() *big.Int
func (*RewardCalcInfo) PrevHash ¶ added in v0.9.7
func (rc *RewardCalcInfo) PrevHash() []byte
func (*RewardCalcInfo) PrevHeight ¶
func (rc *RewardCalcInfo) PrevHeight() int64
func (*RewardCalcInfo) PrevPeriod ¶ added in v0.9.7
func (rc *RewardCalcInfo) PrevPeriod() int64
func (*RewardCalcInfo) RLPDecodeFields ¶
func (rc *RewardCalcInfo) RLPDecodeFields(decoder codec.Decoder) error
func (*RewardCalcInfo) RLPEncodeFields ¶
func (rc *RewardCalcInfo) RLPEncodeFields(encoder codec.Encoder) error
func (*RewardCalcInfo) SetPrevCalcReward ¶ added in v0.9.7
func (rc *RewardCalcInfo) SetPrevCalcReward(v *big.Int)
func (*RewardCalcInfo) SetPrevHash ¶ added in v0.9.7
func (rc *RewardCalcInfo) SetPrevHash(hash []byte)
func (*RewardCalcInfo) SetPrevHeight ¶ added in v0.9.7
func (rc *RewardCalcInfo) SetPrevHeight(height int64)
func (*RewardCalcInfo) SetStartHeight ¶ added in v0.9.7
func (rc *RewardCalcInfo) SetStartHeight(height int64)
func (*RewardCalcInfo) StartHeight ¶
func (rc *RewardCalcInfo) StartHeight() int64
func (*RewardCalcInfo) Update ¶ added in v0.9.7
func (rc *RewardCalcInfo) Update(blockHeight int64, reward *big.Int, hash []byte)
func (*RewardCalcInfo) Version ¶
func (rc *RewardCalcInfo) Version() int
type RewardFund ¶
type RewardFund struct { Iglobal *big.Int Iprep *big.Int Icps *big.Int Irelay *big.Int Ivoter *big.Int }
func NewRewardFund ¶
func NewRewardFund() *RewardFund
func (*RewardFund) Bytes ¶
func (rf *RewardFund) Bytes() []byte
func (*RewardFund) Clone ¶
func (rf *RewardFund) Clone() *RewardFund
func (*RewardFund) Equal ¶
func (rf *RewardFund) Equal(rc2 *RewardFund) bool
func (*RewardFund) GetPRepFund ¶
func (rf *RewardFund) GetPRepFund() *big.Int
func (*RewardFund) GetVoterFund ¶
func (rf *RewardFund) GetVoterFund() *big.Int
func (*RewardFund) IsEmpty ¶
func (rf *RewardFund) IsEmpty() bool
func (*RewardFund) RLPDecodeSelf ¶
func (rf *RewardFund) RLPDecodeSelf(d codec.Decoder) error
func (*RewardFund) RLPEncodeSelf ¶
func (rf *RewardFund) RLPEncodeSelf(e codec.Encoder) error
func (*RewardFund) ToJSON ¶
func (rf *RewardFund) ToJSON() map[string]interface{}
type Snapshot ¶
type Snapshot struct {
// contains filtered or unexported fields
}
func NewSnapshotWithBuilder ¶
func (*Snapshot) GetRewardCalcInfo ¶
func (ss *Snapshot) GetRewardCalcInfo() (*RewardCalcInfo, error)
type State ¶
type State struct {
// contains filtered or unexported fields
}
func NewStateFromSnapshot ¶
func NewStateFromTrie ¶
func (*State) CheckConsistentValidationPenalty ¶ added in v0.9.7
func (s *State) CheckConsistentValidationPenalty(ps *PRepStatusState) bool
func (*State) CheckValidationPenalty ¶ added in v0.9.7
func (s *State) CheckValidationPenalty(ps *PRepStatusState, blockHeight int64) bool
func (*State) ClearCache ¶ added in v0.9.7
func (s *State) ClearCache()
func (*State) DisablePRep ¶ added in v0.9.7
func (*State) GetAccountSnapshot ¶ added in v0.9.7
func (s *State) GetAccountSnapshot(addr module.Address) *AccountSnapshot
func (*State) GetAccountState ¶ added in v0.9.7
func (s *State) GetAccountState(addr module.Address) *AccountState
func (*State) GetActivePRepSize ¶
func (*State) GetBondRequirement ¶
func (*State) GetConsistentValidationPenaltyCondition ¶
func (*State) GetConsistentValidationPenaltyMask ¶
func (*State) GetConsistentValidationPenaltySlashRatio ¶
func (*State) GetDelegationSlotMax ¶ added in v0.9.7
func (*State) GetIISSVersion ¶
func (*State) GetLockMaxMultiplier ¶
func (*State) GetLockMinMultiplier ¶
func (*State) GetNodeByOwner ¶ added in v0.9.7
func (*State) GetOrderedPReps ¶ added in v0.9.7
func (*State) GetPRepBaseByNode ¶ added in v0.9.7
func (*State) GetPRepBaseByOwner ¶ added in v0.9.7
func (*State) GetPRepByOwner ¶ added in v0.9.7
func (*State) GetPRepCount ¶
GetPRepCount returns the number of mainPReps and subPReps based on ICON Network Value
func (*State) GetPRepManagerInJSON ¶ added in v0.9.7
func (*State) GetPRepStatsInJSON ¶ added in v0.9.7
func (*State) GetPRepStatusByOwner ¶ added in v0.9.7
func (*State) GetPRepStatuses ¶ added in v0.9.7
func (s *State) GetPRepStatuses() ([]*PRepStatusState, error)
GetPRepStatuses returns PRepStatus list ordered by bonded delegation
func (*State) GetPRepsInJSON ¶ added in v0.9.7
func (*State) GetRewardCalcInfo ¶
func (s *State) GetRewardCalcInfo() (*RewardCalcInfo, error)
func (*State) GetRewardFund ¶
func (s *State) GetRewardFund() *RewardFund
func (*State) GetSnapshot ¶
func (*State) GetTermPeriod ¶
func (*State) GetTotalBond ¶ added in v0.9.7
func (*State) GetTotalDelegation ¶ added in v0.9.7
func (*State) GetTotalStake ¶
func (*State) GetUnbondingMax ¶
func (*State) GetUnbondingPeriodMultiplier ¶
func (*State) GetUnbondingTimerSnapshot ¶ added in v0.9.7
func (s *State) GetUnbondingTimerSnapshot(height int64) *TimerSnapshot
func (*State) GetUnbondingTimerState ¶ added in v0.9.7
func (s *State) GetUnbondingTimerState(height int64) *TimerState
func (*State) GetUnstakeSlotMax ¶
func (*State) GetUnstakingTimerSnapshot ¶ added in v0.9.7
func (s *State) GetUnstakingTimerSnapshot(height int64) *TimerSnapshot
func (*State) GetUnstakingTimerState ¶ added in v0.9.7
func (s *State) GetUnstakingTimerState(height int64) *TimerState
func (*State) GetValidationPenaltyCondition ¶
func (*State) GetValidatorsSnapshot ¶ added in v0.9.7
func (s *State) GetValidatorsSnapshot() *ValidatorsSnapshot
func (*State) ImposePenalty ¶ added in v0.9.7
ImposePenalty changes grade change and set LastState to icstate.None
func (*State) IsDecentralizationConditionMet ¶ added in v0.9.7
func (*State) RegisterPRep ¶ added in v0.9.7
func (*State) SetBondRequirement ¶
func (*State) SetConsistentValidationPenaltyCondition ¶
func (*State) SetConsistentValidationPenaltyMask ¶
func (*State) SetConsistentValidationPenaltySlashRatio ¶
func (*State) SetDelegationSlotMax ¶ added in v0.9.7
func (*State) SetIISSVersion ¶
func (*State) SetLockVariables ¶
func (*State) SetMainPRepCount ¶
func (*State) SetRewardCalcInfo ¶
func (s *State) SetRewardCalcInfo(rc *RewardCalcInfo) error
func (*State) SetRewardFund ¶
func (s *State) SetRewardFund(rc *RewardFund) error
func (*State) SetSubPRepCount ¶
func (*State) SetTermPeriod ¶
func (*State) SetTotalDelegation ¶ added in v0.9.7
func (*State) SetUnbondingMax ¶
func (*State) SetUnbondingPeriodMultiplier ¶
func (*State) SetUnstakeSlotMax ¶
func (*State) SetValidationPenaltyCondition ¶
func (*State) SetValidatorsSnapshot ¶ added in v0.9.7
func (s *State) SetValidatorsSnapshot(vss *ValidatorsSnapshot) error
func (*State) ShiftVPenaltyMaskByNode ¶ added in v0.9.7
type StateAndSnapshot ¶
type StateAndSnapshot struct {
// contains filtered or unexported fields
}
func (*StateAndSnapshot) IsReadonly ¶
func (s *StateAndSnapshot) IsReadonly() bool
type Term ¶
type Term struct { icobject.NoDatabase StateAndSnapshot // contains filtered or unexported fields }
func NewTermWithTag ¶ added in v0.9.7
func (*Term) BondRequirement ¶
func (*Term) GetElectedPRepCount ¶
func (*Term) GetEndHeight ¶ added in v0.9.7
func (*Term) GetIISSVersion ¶
func (*Term) GetPRepSnapshotByIndex ¶
func (term *Term) GetPRepSnapshotByIndex(index int) *PRepSnapshot
func (*Term) GetPRepSnapshotByOwner ¶
func (term *Term) GetPRepSnapshotByOwner(owner module.Address) *PRepSnapshot
func (*Term) GetPRepSnapshotCount ¶
func (*Term) GetSnapshot ¶
func (term *Term) GetSnapshot(store *icobject.ObjectStoreState) error
func (*Term) GetVoteStartHeight ¶ added in v0.9.7
func (*Term) IsAnyFlagOn ¶
func (*Term) IsDecentralized ¶
func (*Term) IsFirstBlockOnDecentralized ¶ added in v0.9.7
func (*Term) MainPRepCount ¶
func (*Term) ResetSequence ¶
func (term *Term) ResetSequence()
func (*Term) RewardFund ¶
func (term *Term) RewardFund() *RewardFund
func (*Term) SetIsDecentralized ¶ added in v0.9.7
func (*Term) SetMainPRepCount ¶
func (*Term) SetPRepSnapshots ¶
func (term *Term) SetPRepSnapshots(prepSnapshots *PRepSnapshots)
func (*Term) SetRevision ¶ added in v0.9.7
func (*Term) StartHeight ¶
func (*Term) TotalBondedDelegation ¶ added in v0.9.7
func (*Term) TotalDelegated ¶
func (*Term) TotalSupply ¶
type TimerCache ¶
type TimerCache struct {
// contains filtered or unexported fields
}
func (*TimerCache) Clear ¶
func (c *TimerCache) Clear()
func (*TimerCache) Flush ¶
func (c *TimerCache) Flush()
func (*TimerCache) Get ¶
func (c *TimerCache) Get(height int64) *TimerState
func (*TimerCache) GetSnapshot ¶ added in v0.9.7
func (c *TimerCache) GetSnapshot(height int64) *TimerSnapshot
func (*TimerCache) Reset ¶
func (c *TimerCache) Reset()
type TimerIterator ¶ added in v0.9.7
type TimerJobInfo ¶
type TimerSnapshot ¶ added in v0.9.7
type TimerSnapshot struct { icobject.NoDatabase // contains filtered or unexported fields }
func ToTimer ¶
func ToTimer(object trie.Object) *TimerSnapshot
func (*TimerSnapshot) Equal ¶ added in v0.9.7
func (t *TimerSnapshot) Equal(object icobject.Impl) bool
func (TimerSnapshot) Iterator ¶ added in v0.9.7
func (t TimerSnapshot) Iterator() TimerIterator
func (*TimerSnapshot) RLPDecodeFields ¶ added in v0.9.7
func (t *TimerSnapshot) RLPDecodeFields(decoder codec.Decoder) error
func (*TimerSnapshot) RLPEncodeFields ¶ added in v0.9.7
func (t *TimerSnapshot) RLPEncodeFields(encoder codec.Encoder) error
func (*TimerSnapshot) Version ¶ added in v0.9.7
func (t *TimerSnapshot) Version() int
type TimerState ¶ added in v0.9.7
type TimerState struct {
// contains filtered or unexported fields
}
func NewTimerWithSnapshot ¶ added in v0.9.7
func NewTimerWithSnapshot(tss *TimerSnapshot) *TimerState
func (*TimerState) Add ¶ added in v0.9.7
func (t *TimerState) Add(address module.Address)
func (*TimerState) Delete ¶ added in v0.9.7
func (t *TimerState) Delete(address module.Address) error
func (*TimerState) GetSnapshot ¶ added in v0.9.7
func (t *TimerState) GetSnapshot() *TimerSnapshot
func (TimerState) Iterator ¶ added in v0.9.7
func (t TimerState) Iterator() TimerIterator
func (*TimerState) Reset ¶ added in v0.9.7
func (t *TimerState) Reset(ts *TimerSnapshot) *TimerState
type Unbond ¶
type Unbond struct {
// contains filtered or unexported fields
}
func (*Unbond) RLPDecodeSelf ¶ added in v0.9.7
func (*Unbond) RLPEncodeSelf ¶ added in v0.9.7
type Unbonds ¶
type Unbonds []*Unbond
func (Unbonds) ExpireRefCount ¶
func (Unbonds) GetUnbondAmount ¶
func (Unbonds) GetUnbondByAddress ¶
func (Unbonds) ToJSON ¶
func (ul Unbonds) ToJSON(_ module.JSONVersion) []interface{}
type Unstake ¶
type Unstake struct {
// contains filtered or unexported fields
}
func (*Unstake) RLPDecodeSelf ¶ added in v0.9.7
func (*Unstake) RLPEncodeSelf ¶ added in v0.9.7
type Unstakes ¶
type Unstakes []*Unstake
func (Unstakes) GetUnstakeAmount ¶
GetUnstakeAmount return unstake Value
type ValidationState ¶
type ValidationState int
const ( None ValidationState = iota Ready Success Failure )
func (ValidationState) String ¶
func (vs ValidationState) String() string
type ValidatorsSnapshot ¶ added in v0.9.7
type ValidatorsSnapshot struct { icobject.NoDatabase // contains filtered or unexported fields }
func NewValidatorsSnapshotWithPRepSnapshot ¶ added in v0.9.7
func NewValidatorsSnapshotWithPRepSnapshot( prepSnapshot Arrayable, ownerToNodeMapper OwnerToNodeMappable, size int) *ValidatorsSnapshot
func ToValidators ¶ added in v0.9.7
func ToValidators(object trie.Object) *ValidatorsSnapshot
func (*ValidatorsSnapshot) Equal ¶ added in v0.9.7
func (vss *ValidatorsSnapshot) Equal(object icobject.Impl) bool
func (*ValidatorsSnapshot) IsUpdated ¶ added in v0.9.7
func (vss *ValidatorsSnapshot) IsUpdated(blockHeight int64) bool
IsUpdated returns true if validatorList is updated at this block
func (*ValidatorsSnapshot) NewValidatorSet ¶ added in v0.9.7
func (*ValidatorsSnapshot) NextPRepSnapshotIndex ¶ added in v0.9.7
func (vd *ValidatorsSnapshot) NextPRepSnapshotIndex() int
func (*ValidatorsSnapshot) RLPDecodeFields ¶ added in v0.9.7
func (vss *ValidatorsSnapshot) RLPDecodeFields(decoder codec.Decoder) error
func (*ValidatorsSnapshot) RLPEncodeFields ¶ added in v0.9.7
func (vss *ValidatorsSnapshot) RLPEncodeFields(encoder codec.Encoder) error
func (*ValidatorsSnapshot) Version ¶ added in v0.9.7
func (vss *ValidatorsSnapshot) Version() int
type ValidatorsState ¶ added in v0.9.7
type ValidatorsState struct {
// contains filtered or unexported fields
}
func NewValidatorsStateWithSnapshot ¶ added in v0.9.7
func NewValidatorsStateWithSnapshot(vss *ValidatorsSnapshot) *ValidatorsState
func (*ValidatorsState) GetSnapshot ¶ added in v0.9.7
func (vs *ValidatorsState) GetSnapshot() *ValidatorsSnapshot
func (*ValidatorsState) IsDirty ¶ added in v0.9.7
func (vs *ValidatorsState) IsDirty() bool
func (*ValidatorsState) NewValidatorSet ¶ added in v0.9.7
func (*ValidatorsState) NextPRepSnapshotIndex ¶ added in v0.9.7
func (vd *ValidatorsState) NextPRepSnapshotIndex() int
func (*ValidatorsState) Reset ¶ added in v0.9.7
func (vs *ValidatorsState) Reset(vss *ValidatorsSnapshot)
Source Files
¶
- account.go
- accountcache.go
- activeprepcache.go
- bond.go
- constant.go
- delegation.go
- issue.go
- module.go
- networkvalue.go
- nodeownercache.go
- object.go
- prep.go
- prepbase.go
- prepcache.go
- prepstatus.go
- rewardcalcinfo.go
- rewardfund.go
- snapshot.go
- state.go
- term.go
- termcache.go
- timer.go
- timercache.go
- unbond.go
- unstake.go
- validators.go
- voting.go