Documentation
¶
Index ¶
- func CreateExtendedCommitInfo(commitInfo []cometabci.ExtendedVoteInfo) (cometabci.ExtendedCommitInfo, []byte, error)
- func CreateNilVoteExtensionInfo(consAddress sdk.ConsAddress, power int64) (cometabci.ExtendedVoteInfo, error)
- func CreateSignedExtendedCommitInfo(veInfo []SignedVEInfo) (cometabci.ExtendedCommitInfo, []byte, error)
- func CreateSignedExtendedVoteInfo(veInfo SignedVEInfo) (cometabci.ExtendedVoteInfo, error)
- func CreateSingleValidatorExtendedCommitInfo(consAddr sdk.ConsAddress, prices []vetypes.PricePair, ...) (cometabci.ExtendedCommitInfo, []byte, error)
- func CreateVoteExtension(prices []vetypes.PricePair, sdaiConversionRate string) vetypes.DaemonVoteExtension
- func CreateVoteExtensionBytes(prices []vetypes.PricePair, sdaiConversionRate string) ([]byte, error)
- func GetEmptyLocalLastCommit(validators []stakingtypes.Validator, height int64, round int64, chainId string) cometabci.ExtendedCommitInfo
- func GetEmptyProposedLastCommit() cometabci.CommitInfo
- func GetInjectedExtendedCommitInfoForTestApp(stakingKeeper *stakingkeeper.Keeper, ctx sdk.Context, ...) (cometabci.ExtendedCommitInfo, []byte, error)
- func GetVECacheEncodedPrice(price *big.Int) ([]byte, error)
- func GetVeEnabledCtx(ctx sdk.Context, blockHeight int64) sdk.Context
- func NewBlockInfo(misbehavior []abci.Misbehavior, validatorsHash []byte, proposerAddress []byte, ...) comet.BlockInfo
- type SignedVEInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateExtendedCommitInfo ¶
func CreateExtendedCommitInfo( commitInfo []cometabci.ExtendedVoteInfo, ) (cometabci.ExtendedCommitInfo, []byte, error)
CreateExtendedCommitInfo creates an extended commit info with the given commit info.
func CreateNilVoteExtensionInfo ¶
func CreateNilVoteExtensionInfo(consAddress sdk.ConsAddress, power int64) (cometabci.ExtendedVoteInfo, error)
func CreateSignedExtendedCommitInfo ¶
func CreateSignedExtendedCommitInfo( veInfo []SignedVEInfo, ) (cometabci.ExtendedCommitInfo, []byte, error)
func CreateSignedExtendedVoteInfo ¶
func CreateSignedExtendedVoteInfo(veInfo SignedVEInfo) (cometabci.ExtendedVoteInfo, error)
CreateExtendedVoteInfoWithPower CreateExtendedVoteInfo creates an extended vote info with the given power, prices, timestamp and height.
func CreateSingleValidatorExtendedCommitInfo ¶
func CreateSingleValidatorExtendedCommitInfo( consAddr sdk.ConsAddress, prices []vetypes.PricePair, sdaiConversionRate string, ) (cometabci.ExtendedCommitInfo, []byte, error)
func CreateVoteExtension ¶
func CreateVoteExtension( prices []vetypes.PricePair, sdaiConversionRate string, ) vetypes.DaemonVoteExtension
CreateVoteExtension creates a vote extension with the given prices, timestamp and height.
func CreateVoteExtensionBytes ¶
func CreateVoteExtensionBytes( prices []vetypes.PricePair, sdaiConversionRate string, ) ([]byte, error)
CreateVoteExtensionBytes creates a vote extension bytes with the given prices, timestamp and height.
func GetEmptyLocalLastCommit ¶
func GetEmptyLocalLastCommit( validators []stakingtypes.Validator, height int64, round int64, chainId string, ) cometabci.ExtendedCommitInfo
func GetEmptyProposedLastCommit ¶
func GetEmptyProposedLastCommit() cometabci.CommitInfo
func GetInjectedExtendedCommitInfoForTestApp ¶
func GetInjectedExtendedCommitInfoForTestApp( stakingKeeper *stakingkeeper.Keeper, ctx sdk.Context, prices map[uint32]ve.VEPricePair, sdaiConversionRate string, height int64, ) (cometabci.ExtendedCommitInfo, []byte, error)
func NewBlockInfo ¶
func NewBlockInfo( misbehavior []abci.Misbehavior, validatorsHash []byte, proposerAddress []byte, lastCommit abci.CommitInfo, ) comet.BlockInfo
NewBlockInfo returns a new BlockInfo instance This function should be only used in tests
Types ¶
type SignedVEInfo ¶
type SignedVEInfo struct { Val sdk.ConsAddress Power int64 Prices []vetypes.PricePair SDaiConversionRate string Height int64 Round int64 ChainId string }
func NewDefaultSignedVeInfo ¶
func NewDefaultSignedVeInfo( val sdk.ConsAddress, prices []vetypes.PricePair, sdaiConversionRate string, ) SignedVEInfo
Click to show internal directories.
Click to hide internal directories.