Documentation
¶
Index ¶
- func DelegationInvariant(module string) qtypes.Invariant
- func Query(ctx context.Context, route []string, req abci.RequestQuery) (res []byte, err btypes.Error)
- func RedelegationInvariant(module string) qtypes.Invariant
- func UnbondingInvariant(module string) qtypes.Invariant
- type DelegationQueryResult
- type Mapper
- func (mapper *Mapper) AddRedelegation(redelegation types.RedelegationInfo)
- func (mapper *Mapper) AddRedelegations(reDelegations []types.RedelegationInfo)
- func (mapper *Mapper) AddUnbondingDelegation(unbonding types.UnbondingDelegationInfo)
- func (mapper *Mapper) AddUnbondingDelegations(unbondingsAdd []types.UnbondingDelegationInfo)
- func (mapper *Mapper) AfterDelegationCreated(ctx context.Context, val btypes.Address, del btypes.Address)
- func (mapper *Mapper) AfterValidatorCreated(ctx context.Context, val btypes.Address)
- func (mapper *Mapper) AfterValidatorSlashed(ctx context.Context, slashedTokes uint64)
- func (mapper *Mapper) BeforeDelegationModified(ctx context.Context, val btypes.Address, del btypes.Address, ...)
- func (mapper *Mapper) BeforeValidatorRemoved(ctx context.Context, val btypes.Address)
- func (mapper *Mapper) ChangeValidatorBondTokens(validator types.Validator, updatedTokens uint64)
- func (mapper *Mapper) ClearValidatorVoteInfoInWindow(valAddr btypes.Address)
- func (mapper *Mapper) Copy() mapper.IMapper
- func (mapper *Mapper) CreateValidator(validator types.Validator)
- func (mapper *Mapper) DelDelegationInfo(delAddr btypes.Address, valAddr btypes.Address)
- func (mapper *Mapper) DelValidatorVoteInfo(valAddr btypes.Address)
- func (mapper *Mapper) Delegate(ctx context.Context, info types.DelegationInfo, reDelegate bool)
- func (mapper *Mapper) Exists(valAddress btypes.Address) bool
- func (mapper *Mapper) ExistsWithOwner(owner btypes.Address) bool
- func (mapper *Mapper) GetActiveValidatorSet(ascending bool) (validators []btypes.Address)
- func (mapper *Mapper) GetDelegationInfo(delAddr btypes.Address, valAddr btypes.Address) (info types.DelegationInfo, exist bool)
- func (mapper *Mapper) GetDelegationsByValidator(valAddr btypes.Address) (infos []types.DelegationInfo)
- func (mapper *Mapper) GetParams(ctx context.Context) types.Params
- func (mapper *Mapper) GetRedelegation(height uint64, delAdd btypes.Address, valAddr btypes.Address) (reDelegation types.RedelegationInfo, exist bool)
- func (mapper *Mapper) GetRedelegationsByDelegator(delegator btypes.Address) (redelegations []types.RedelegationInfo)
- func (mapper *Mapper) GetRedelegationsByFromValidator(validator btypes.Address) (redelegations []types.RedelegationInfo)
- func (mapper *Mapper) GetUnbondingDelegation(height uint64, delAddr btypes.Address, valAddr btypes.Address) (unbonding types.UnbondingDelegationInfo, exist bool)
- func (mapper *Mapper) GetUnbondingDelegationsByDelegator(delegator btypes.Address) (unbondings []types.UnbondingDelegationInfo)
- func (mapper *Mapper) GetUnbondingDelegationsByValidator(validator btypes.Address) (unbondings []types.UnbondingDelegationInfo)
- func (mapper *Mapper) GetValidator(valAddress btypes.Address) (validator types.Validator, exists bool)
- func (mapper *Mapper) GetValidatorByOwner(owner btypes.Address) (validator types.Validator, exists bool)
- func (mapper *Mapper) GetValidatorVoteInfo(valAddr btypes.Address) (info types.ValidatorVoteInfo, exists bool)
- func (mapper *Mapper) GetVoteInfoInWindow(valAddr btypes.Address, index uint64) (vote bool)
- func (mapper *Mapper) IterateDelegationsInfo(deleAddr btypes.Address, fn func(types.DelegationInfo))
- func (mapper *Mapper) IterateDelegationsValDeleAddr(valAddr btypes.Address, fn func(btypes.Address, btypes.Address))
- func (mapper *Mapper) IterateRedelegationsInfo(fn func([]types.RedelegationInfo))
- func (mapper *Mapper) IterateUnbondingDelegations(fn func([]types.UnbondingDelegationInfo))
- func (mapper *Mapper) IterateValidators(fn func(types.Validator))
- func (mapper *Mapper) IterateVoteInWindowsInfos(fn func(uint64, btypes.Address, bool))
- func (mapper *Mapper) IterateVoteInfos(fn func(btypes.Address, types.ValidatorVoteInfo))
- func (mapper *Mapper) IteratorInactiveValidator(fromSecond, endSecond uint64) store.Iterator
- func (mapper *Mapper) IteratorInactiveValidatorByTime(fromTime, endTime time.Time) store.Iterator
- func (mapper *Mapper) IteratorValidatorByVoterPower(ascending bool) store.Iterator
- func (mapper *Mapper) KickValidator(valAddress btypes.Address) (validator types.Validator, ok bool)
- func (mapper *Mapper) MakeValidatorActive(valAddress btypes.Address, addTokens uint64)
- func (mapper *Mapper) MakeValidatorInactive(valAddress btypes.Address, inactiveHeight uint64, inactiveTime time.Time, ...)
- func (mapper *Mapper) ReDelegate(ctx context.Context, delegation types.DelegationInfo, ...)
- func (mapper *Mapper) RemoveRedelegation(height uint64, delAddr btypes.Address, valAddr btypes.Address)
- func (mapper *Mapper) RemoveUnbondingDelegation(height uint64, delAddr btypes.Address, valAddr btypes.Address)
- func (mapper *Mapper) ResetValidatorVoteInfo(valAddr btypes.Address, info types.ValidatorVoteInfo)
- func (mapper *Mapper) SetDelegationInfo(info types.DelegationInfo)
- func (mapper *Mapper) SetHooks(sh qtypes.Hooks)
- func (mapper *Mapper) SetParams(ctx context.Context, p types.Params)
- func (mapper *Mapper) SetRedelegation(redelegation types.RedelegationInfo)
- func (mapper *Mapper) SetUnbondingDelegation(unbonding types.UnbondingDelegationInfo)
- func (mapper *Mapper) SetValidatorVoteInfo(valAddr btypes.Address, info types.ValidatorVoteInfo)
- func (mapper *Mapper) SetVoteInfoInWindow(valAddr btypes.Address, index uint64, vote bool)
- func (mapper *Mapper) SlashRedelegations(valAddr btypes.Address, infractionHeight int64, fraction qtypes.Dec, ...) int64
- func (mapper *Mapper) SlashUnbondings(valAddr btypes.Address, infractionHeight int64, fraction qtypes.Dec, ...) int64
- func (mapper *Mapper) UnbondTokens(ctx context.Context, info types.DelegationInfo, tokens uint64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DelegationInvariant ¶
func RedelegationInvariant ¶
func UnbondingInvariant ¶
Types ¶
type DelegationQueryResult ¶
type DelegationQueryResult struct { DelegatorAddr btypes.Address `json:"delegator_address"` OwnerAddr btypes.Address `json:"owner_address"` ValidatorPubKey crypto.PubKey `json:"validator_pub_key"` Amount uint64 `json:"delegate_amount"` IsCompound bool `json:"is_compound"` }
type Mapper ¶
type Mapper struct { *mapper.BaseMapper // contains filtered or unexported fields }
func (*Mapper) AddRedelegation ¶
func (mapper *Mapper) AddRedelegation(redelegation types.RedelegationInfo)
func (*Mapper) AddRedelegations ¶
func (mapper *Mapper) AddRedelegations(reDelegations []types.RedelegationInfo)
func (*Mapper) AddUnbondingDelegation ¶
func (mapper *Mapper) AddUnbondingDelegation(unbonding types.UnbondingDelegationInfo)
func (*Mapper) AddUnbondingDelegations ¶
func (mapper *Mapper) AddUnbondingDelegations(unbondingsAdd []types.UnbondingDelegationInfo)
func (*Mapper) AfterDelegationCreated ¶
func (*Mapper) AfterValidatorCreated ¶
func (*Mapper) AfterValidatorSlashed ¶
func (*Mapper) BeforeDelegationModified ¶
func (*Mapper) BeforeValidatorRemoved ¶
func (*Mapper) ChangeValidatorBondTokens ¶
func (*Mapper) ClearValidatorVoteInfoInWindow ¶
func (*Mapper) CreateValidator ¶
func (*Mapper) DelDelegationInfo ¶
func (*Mapper) DelValidatorVoteInfo ¶
func (*Mapper) GetActiveValidatorSet ¶
func (*Mapper) GetDelegationInfo ¶
func (*Mapper) GetDelegationsByValidator ¶
func (mapper *Mapper) GetDelegationsByValidator(valAddr btypes.Address) (infos []types.DelegationInfo)
func (*Mapper) GetRedelegation ¶
func (*Mapper) GetRedelegationsByDelegator ¶
func (mapper *Mapper) GetRedelegationsByDelegator(delegator btypes.Address) (redelegations []types.RedelegationInfo)
func (*Mapper) GetRedelegationsByFromValidator ¶
func (mapper *Mapper) GetRedelegationsByFromValidator(validator btypes.Address) (redelegations []types.RedelegationInfo)
func (*Mapper) GetUnbondingDelegation ¶
func (*Mapper) GetUnbondingDelegationsByDelegator ¶
func (mapper *Mapper) GetUnbondingDelegationsByDelegator(delegator btypes.Address) (unbondings []types.UnbondingDelegationInfo)
func (*Mapper) GetUnbondingDelegationsByValidator ¶
func (mapper *Mapper) GetUnbondingDelegationsByValidator(validator btypes.Address) (unbondings []types.UnbondingDelegationInfo)
func (*Mapper) GetValidator ¶
func (*Mapper) GetValidatorByOwner ¶
func (*Mapper) GetValidatorVoteInfo ¶
func (*Mapper) GetVoteInfoInWindow ¶
func (*Mapper) IterateDelegationsInfo ¶
func (mapper *Mapper) IterateDelegationsInfo(deleAddr btypes.Address, fn func(types.DelegationInfo))
func (*Mapper) IterateDelegationsValDeleAddr ¶
func (*Mapper) IterateRedelegationsInfo ¶
func (mapper *Mapper) IterateRedelegationsInfo(fn func([]types.RedelegationInfo))
func (*Mapper) IterateUnbondingDelegations ¶
func (mapper *Mapper) IterateUnbondingDelegations(fn func([]types.UnbondingDelegationInfo))
func (*Mapper) IterateValidators ¶
func (*Mapper) IterateVoteInWindowsInfos ¶
func (*Mapper) IterateVoteInfos ¶
func (mapper *Mapper) IterateVoteInfos(fn func(btypes.Address, types.ValidatorVoteInfo))
func (*Mapper) IteratorInactiveValidator ¶
func (*Mapper) IteratorInactiveValidatorByTime ¶
func (*Mapper) IteratorValidatorByVoterPower ¶
func (*Mapper) KickValidator ¶
func (*Mapper) MakeValidatorActive ¶
func (*Mapper) MakeValidatorInactive ¶
func (*Mapper) ReDelegate ¶
func (mapper *Mapper) ReDelegate(ctx context.Context, delegation types.DelegationInfo, info types.RedelegationInfo)
func (*Mapper) RemoveRedelegation ¶
func (*Mapper) RemoveUnbondingDelegation ¶
func (*Mapper) ResetValidatorVoteInfo ¶
func (mapper *Mapper) ResetValidatorVoteInfo(valAddr btypes.Address, info types.ValidatorVoteInfo)
func (*Mapper) SetDelegationInfo ¶
func (mapper *Mapper) SetDelegationInfo(info types.DelegationInfo)
func (*Mapper) SetRedelegation ¶
func (mapper *Mapper) SetRedelegation(redelegation types.RedelegationInfo)
func (*Mapper) SetUnbondingDelegation ¶
func (mapper *Mapper) SetUnbondingDelegation(unbonding types.UnbondingDelegationInfo)
func (*Mapper) SetValidatorVoteInfo ¶
func (mapper *Mapper) SetValidatorVoteInfo(valAddr btypes.Address, info types.ValidatorVoteInfo)
func (*Mapper) SetVoteInfoInWindow ¶
func (*Mapper) SlashRedelegations ¶
func (*Mapper) SlashUnbondings ¶
func (*Mapper) UnbondTokens ¶
Click to show internal directories.
Click to hide internal directories.