Documentation ¶
Index ¶
- func BlockProducer(ops types.HTTPOptions, cfg *config.Config, c client.Client)
- func BlockTimeDifference(ops types.HTTPOptions, cfg *config.Config, c client.Client)
- func BorCurrentProposer(ops types.HTTPOptions, cfg *config.Config, c client.Client)
- func BorLatestSpan(ops types.HTTPOptions, cfg *config.Config, c client.Client)
- func BorMissedBlocks(ops types.HTTPOptions, cfg *config.Config, c client.Client)
- func BorNetworkHeight(ops types.HTTPOptions, cfg *config.Config, c client.Client)
- func BorParams(ops types.HTTPOptions, cfg *config.Config, c client.Client)
- func BorPendingTransactions(ops types.HTTPOptions, cfg *config.Config, c client.Client)
- func CheckValidatorDeposited(proposalID string, cfg *config.Config, c client.Client) string
- func CheckValidatorVoted(proposalID string, cfg *config.Config, c client.Client) string
- func CheckpointsDuration(ops types.HTTPOptions, cfg *config.Config, c client.Client)
- func ContractAddress(ops types.HTTPOptions, cfg *config.Config, c client.Client)
- func CurrentBlockNumber(ops types.HTTPOptions, cfg *config.Config, c client.Client)
- func CurrentEthBalance(ops types.HTTPOptions, cfg *config.Config, c client.Client)
- func DeleteDepoitEndProposals(cfg *config.Config, c client.Client, p types.Proposals) error
- func EthCall(ops types.HTTPOptions, cfg *config.Config, c client.Client, dataHash string, ...) (eth types.EthResult)
- func GetAccountBal(cfg *config.Config, c client.Client) string
- func GetAccountBalFromDb(cfg *config.Config, c client.Client) string
- func GetAccountBalWithDenomFromdb(cfg *config.Config, c client.Client) string
- func GetBlocksProducedCountFromDB(cfg *config.Config, c client.Client) string
- func GetBorBalanceFromDB(cfg *config.Config, c client.Client) string
- func GetBorContinuousMissedBlock(cfg *config.Config, c client.Client) string
- func GetBorCurrentBlokHeight(cfg *config.Config, c client.Client) string
- func GetBorCurrentBlokHeightInHex(cfg *config.Config, c client.Client) string
- func GetBorSpanIDFromDb(cfg *config.Config, c client.Client) string
- func GetBorSpanValidatorCountFromDb(cfg *config.Config, c client.Client) string
- func GetBorlatestCurrentHeightFromDB(cfg *config.Config, c client.Client) string
- func GetCommissionRate(ops types.HTTPOptions, cfg *config.Config, c client.Client)
- func GetContinuousMissedBlock(cfg *config.Config, c client.Client) string
- func GetEncodedData(ops types.HTTPOptions, cfg *config.Config, c client.Client, ...) string
- func GetHelp() string
- func GetLastProposedCheckpoint(cfg *config.Config, c client.Client) string
- func GetLatestCheckPoint(cfg *config.Config, c client.Client) string
- func GetNetworkBlock(cfg *config.Config, c client.Client) string
- func GetNodeSync(cfg *config.Config, c client.Client) string
- func GetPeersCount(cfg *config.Config, c client.Client) string
- func GetPeersCountMsg(cfg *config.Config, c client.Client) string
- func GetPrevBlockTime(cfg *config.Config, c client.Client, height string) string
- func GetProposalsVotes(proposalID string, cfg *config.Config) (types.ProposalVoters, error)
- func GetProposedCount(cfg *config.Config, c client.Client) string
- func GetStatus(cfg *config.Config, c client.Client) string
- func GetValContractAddress(cfg *config.Config, c client.Client) string
- func GetValID(cfg *config.Config, c client.Client) string
- func GetValStatusFromDB(cfg *config.Config, c client.Client) string
- func GetValidatorBlock(cfg *config.Config, c client.Client) string
- func GetValidatorRewards(ops types.HTTPOptions, cfg *config.Config, c client.Client)
- func GetVotesProposalAlertsCount(cfg *config.Config, c client.Client, proposalID string) string
- func GetVotingPowerFromDb(cfg *config.Config, c client.Client) string
- func GetlatestCurrentHeightFromDB(cfg *config.Config, c client.Client) string
- func HeimdallCurrentBal(ops types.HTTPOptions, cfg *config.Config, c client.Client)
- func HitHTTPTarget(ops types.HTTPOptions) (*types.PingResp, error)
- func InitTargets(cfg *config.Config) *types.Targets
- func LatestCheckpoints(ops types.HTTPOptions, cfg *config.Config, c client.Client)
- func LatestProposedBlockAndTime(ops types.HTTPOptions, cfg *config.Config, c client.Client)
- func MissedBlocks(ops types.HTTPOptions, cfg *config.Config, c client.Client)
- func NetInfo(ops types.HTTPOptions, cfg *config.Config, c client.Client)
- func NetworkLatestBlock(ops types.HTTPOptions, cfg *config.Config, c client.Client)
- func NewRunner() *targetRunner
- func NodeStatus(cfg *config.Config, c client.Client) string
- func NodeVersion(ops types.HTTPOptions, cfg *config.Config, c client.Client)
- func PeerLatency(_ types.HTTPOptions, cfg *config.Config, c client.Client) error
- func Proposals(ops types.HTTPOptions, cfg *config.Config, c client.Client)
- func ProposedCheckpoints(ops types.HTTPOptions, cfg *config.Config, c client.Client)
- func SendBorSingleMissedBlockAlert(ops types.HTTPOptions, cfg *config.Config, c client.Client, cbh string) error
- func SendSingleMissedBlockAlert(ops types.HTTPOptions, cfg *config.Config, c client.Client, cbh string) error
- func SendVotingPeriodProposalAlerts(cfg *config.Config, c client.Client) error
- func Status(ops types.HTTPOptions, cfg *config.Config, c client.Client)
- func TelegramAlerting(ops types.HTTPOptions, cfg *config.Config, c client.Client)
- func TotalCheckPointsCount(ops types.HTTPOptions, cfg *config.Config, c client.Client)
- func UnconfimedTxns(ops types.HTTPOptions, cfg *config.Config, c client.Client)
- func ValidatorCaughtUp(ops types.HTTPOptions, cfg *config.Config, c client.Client)
- func ValidatorGas(ops types.HTTPOptions, cfg *config.Config, c client.Client)
- func ValidatorStatusAlert(ops types.HTTPOptions, cfg *config.Config, c client.Client)
- func ValidatorVotingPower(ops types.HTTPOptions, cfg *config.Config, c client.Client)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BlockProducer ¶
BlockProducer is to get the proucer counts and checks validator is part of block producer or not and stores in db If the signer address is in result of selected producers then validator is part of it otheriwse no
func BlockTimeDifference ¶
BlockTimeDifference is to calcualte block time difference of prev block and current block and stores in db
func BorCurrentProposer ¶
BorCurrentProposer is to get current proposer and counts blocks proposed count and stores it in db Block proposed count will be calculated if the signer address exists in proposer result
func BorLatestSpan ¶
BorLatestSpan is to get latest span id, also calcualtes span validator count and stores it in db Span validator count will be inceremented if the signer address is in validator set
func BorMissedBlocks ¶
BorMissedBlocks is to get the current block precommits and checks whether the validator is signed the block or not if not signed then it will be considered as missed block and stores it in db Alerter will notify when the missed blocks count reaches to the configured threshold
func BorNetworkHeight ¶
BorNetworkHeight is to get the network height of bor and stores in db Alerter will notify whenever bock diff of network and validator reaches configured threshold
func BorPendingTransactions ¶
BorPendingTransactions is to get the pending transactions of bor and stores in db
func CheckValidatorDeposited ¶
CheckValidatorDeposited is to check validator deposited for the proposal or not and returns the status
func CheckValidatorVoted ¶
CheckValidatorVoted is to check validator voted for the proposal or not and returns the status
func CheckpointsDuration ¶
CheckpointsDuration is to get checkpoints duration and stores in db
func ContractAddress ¶
ContractAddress is to get the validator share contract address, self stake and stores it in db
func CurrentBlockNumber ¶
CurrentBlockNumber is to get the bor current height and stores it in db
func CurrentEthBalance ¶
CurrentEthBalance is to query the eth_getBalance and stores the current balance in db Alerter will alerts if the current balance reaches the configure threshold
func DeleteDepoitEndProposals ¶
DeleteDepoitEndProposals is to delete proposals from db which are not present in response anymore
func EthCall ¶
func EthCall(ops types.HTTPOptions, cfg *config.Config, c client.Client, dataHash string, contractAddress string) (eth types.EthResult)
EthCall will returns the validator share contract method response
func GetAccountBal ¶
GetAccountBal returns balance of the corresponding account
func GetAccountBalFromDb ¶
GetAccountBalFromDb returns account balance from db
func GetAccountBalWithDenomFromdb ¶
GetAccountBalWithDenomFromdb returns account balance from db
func GetBlocksProducedCountFromDB ¶
GetBlocksProducedCountFromDB returns the no of blocks produced from db
func GetBorBalanceFromDB ¶
GetBorBalanceFRomDB returns bor validator balance from db
func GetBorContinuousMissedBlock ¶
GetContinuousMissedBlock returns the latest missed block from db
func GetBorCurrentBlokHeight ¶
GetBorCurrentBlokHeight returns current block height of bor from db
func GetBorCurrentBlokHeightInHex ¶
GetBorCurrentBlokHeightInHex returns current block height of bor from db
func GetBorSpanIDFromDb ¶
GetBorSpanIDFromDb returns the span ID from db
func GetBorSpanValidatorCountFromDb ¶
GetBorSpanValidatorCountFromDb returns the span val count from the db
func GetBorlatestCurrentHeightFromDB ¶
GetlatestCurrentHeightFromDB returns latest current height from db
func GetCommissionRate ¶
GetCommissionRate is to get the commission rate by calling method commissionRate() of validator share contract
func GetContinuousMissedBlock ¶
GetContinuousMissedBlock returns the latest missed block from the db
func GetEncodedData ¶
func GetEncodedData(ops types.HTTPOptions, cfg *config.Config, c client.Client, methodSignature string) string
GetEncodedData returns the sha3Hash which will be calculated for the partcular method signature and by making a call of web3_sha3
func GetLastProposedCheckpoint ¶
GetLastProposedCheckpoint returns the last proposed checkpoint from db
func GetLatestCheckPoint ¶
GetLatestCheckPoint returns the latest checkpoint from db
func GetNetworkBlock ¶
GetNetworkBlock returns network current block height
func GetNodeSync ¶
GetNodeSync returns the syncing status of a node from db
func GetPeersCount ¶
GetPeersCount returns count of peer addresses from db
func GetPeersCountMsg ¶
GetPeersCountMsg returns the no of peers for /peers
func GetPrevBlockTime ¶
GetPrevBlockTime returns time of the pevious block
func GetProposalsVotes ¶
GetProposalsVotes which returns votes of a proposal
func GetProposedCount ¶
GetProposedCount returns the count of proposed checkpoints from db
func GetValContractAddress ¶
GetValContractAddress returns validator share contract address from db
func GetValStatusFromDB ¶
GetValStatusFromDB returns latest current height from db
func GetValidatorBlock ¶
GetValidatorBlock returns validator current block height from db
func GetValidatorRewards ¶
GetValidatorRewards is to get the rewards by calling method validatorRewards() of validator share contract
func GetVotesProposalAlertsCount ¶
GetVotesProposalAlertsCount returns the count of voting period alerts for particular proposal
func GetVotingPowerFromDb ¶
GetVotingPowerFromDb returns voting power of a validator from db
func GetlatestCurrentHeightFromDB ¶
GetlatestCurrentHeightFromDB returns latest current height from db
func HeimdallCurrentBal ¶
HeimdallCurrentBal is to get current balance information using signer address and stores it in db Alerter will alerts whenever there is a change in balance
func HitHTTPTarget ¶
func HitHTTPTarget(ops types.HTTPOptions) (*types.PingResp, error)
HitHTTPTarget to hit the target and get response
func InitTargets ¶
InitTargets which returns the targets can write all the endpoints here
func LatestCheckpoints ¶
LatestCheckpoints is to get latest check point and stores in db
func LatestProposedBlockAndTime ¶
LatestProposedBlockAndTime is to get latest proposed block height, time and checks whether the validator hex address is equals to proposals address if yes then stores in it db Also stores latest block height and chain id in db
func MissedBlocks ¶
MissedBlocks is to get the current block precommits and checks whether the validator is signed the block or not if not signed then it will be considered as missed block and stores it in db Alerter will notify when the missed blocks count reaches to the configured threshold
func NetInfo ¶
NetInfo is to get no.of peers, addresses and also calculates it's alatency and stores it in db
func NetworkLatestBlock ¶
NetworkLatestBlock is to get latest block height of a network Calcualtes height difference of validator and network height and stores it in db Alerter will alerts when the block diff thresholds meets the height diff
func NodeStatus ¶
NodeStatus returns the node caught up status /node
func NodeVersion ¶
NodeVersion is to get application version and stores in db
func PeerLatency ¶
PeerLatency is to calculate latency of a peer address and stores it in db
func Proposals ¶
Proposals is to get all the proposals and stores it in db Alerter will send alerts if there is any new proposal or any change in proposal status
func ProposedCheckpoints ¶
ProposedCheckpoints is to get proposed checkpoint, counts no of proposed checkpoints by validator and stores in db
func SendBorSingleMissedBlockAlert ¶
func SendBorSingleMissedBlockAlert(ops types.HTTPOptions, cfg *config.Config, c client.Client, cbh string) error
SendSingleMissedBlockAlert is to send signle missed block alerts and stores it in db
func SendSingleMissedBlockAlert ¶
func SendSingleMissedBlockAlert(ops types.HTTPOptions, cfg *config.Config, c client.Client, cbh string) error
SendSingleMissedBlockAlert is to alert about single missed block if threshold value is 1 and also stores it in db
func SendVotingPeriodProposalAlerts ¶
SendVotingPeriodProposalAlerts which send alerts of voting period proposals
func Status ¶
Status is to get response from rpc /status endpoint and stores node status block height and operator info Alerter will notify about the node status i.e., validator instance is running or not by checking status resonse
func TelegramAlerting ¶
TelegramAlerting will check for the commands from the configured telegram account If any commands are given in the tg account then Alerter will send the response back according to the input
func TotalCheckPointsCount ¶
TotalCheckPointsCount is to get total no of check points and stores in db
func UnconfimedTxns ¶
UnconfimedTxns is to get the no of uncofirmed txns and stores it in db
func ValidatorCaughtUp ¶
ValidatorCaughtUp is to get validator syncing status and stores it in db Alerter will alerts when the node is not synced
func ValidatorGas ¶
ValidatorGas is to get validator max tx gas and stores in db
func ValidatorStatusAlert ¶
ValidatorStatusAlert will checks whether the validator is voting or jailed Alerter will send alerts according to the timings of regualr status alerting configured in config.toml
func ValidatorVotingPower ¶
ValidatorVotingPower is to get voting power of a validator and stores it in db Alerter will notify if there is any change in voting power
Types ¶
This section is empty.
Source Files ¶
- bor_current_balance.go
- bor_current_height.go
- bor_current_proposer.go
- bor_latest_span.go
- bor_missed_blocks.go
- bor_network_height.go
- bor_params.go
- bor_pending_txs.go
- commands.go
- heimdall_balance.go
- heimdall_checkpoint.go
- heimdall_latest_block.go
- heimdall_missed_blocks.go
- heimdall_net_info.go
- heimdall_network_block.go
- heimdall_node_status.go
- heimdall_proposals.go
- heimdall_txs.go
- heimdall_val_status.go
- heimdall_voting_power.go
- staking_manager.go
- targets.go