Documentation
¶
Index ¶
- Constants
- func GetConsTimeout() time.Duration
- func GetDebugLevel() uint64
- func GetExecTimeout() time.Duration
- func GetFinalizedDay(ctx context.Context, address string) (uint64, error)
- func GetHeadDay(ctx context.Context, address string) (uint64, error)
- func GetValidators(ctx context.Context, client *http.Service, stateID string) (map[phase0.ValidatorIndex]*v1.Validator, error)
- func SetConsTimeout(dur time.Duration)
- func SetDebugLevel(lvl uint64)
- func SetExecTimeout(dur time.Duration)
- type BlockData
- type Day
- type TxReceipt
- type Validator
Constants ¶
View Source
const RECEIPTS_MODE_BATCH = 0
View Source
const RECEIPTS_MODE_SINGLE = 1
Variables ¶
This section is empty.
Functions ¶
func GetConsTimeout ¶
func GetDebugLevel ¶
func GetDebugLevel() uint64
func GetExecTimeout ¶
func GetValidators ¶
func SetConsTimeout ¶
func SetDebugLevel ¶
func SetDebugLevel(lvl uint64)
func SetExecTimeout ¶
Types ¶
type BlockData ¶
type BlockData struct {
ProposerIndex phase0.ValidatorIndex
Transactions []bellatrix.Transaction
BaseFeePerGas [32]byte
Deposits []*phase0.Deposit
GasUsed uint64
GasLimit uint64
Withdrawals []*capella.Withdrawal
BlockNumber uint64
}
func GetBlockData ¶
func GetBlockData(block *spec.VersionedSignedBeaconBlock) (*BlockData, error)
type Day ¶
type Day struct {
Day decimal.Decimal `json:"day"`
DayTime time.Time `json:"dayTime"`
Apr decimal.Decimal `json:"apr"`
Validators decimal.Decimal `json:"validators"`
StartEpoch decimal.Decimal `json:"startEpoch"`
EffectiveBalanceGwei decimal.Decimal `json:"effectiveBalanceGwei"`
StartBalanceGwei decimal.Decimal `json:"startBalanceGwei"`
EndBalanceGwei decimal.Decimal `json:"endBalanceGwei"`
DepositsSumGwei decimal.Decimal `json:"depositsSumGwei"`
WithdrawalsSumGwei decimal.Decimal `json:"withdrawalsSumGwei"`
ConsensusRewardsGwei decimal.Decimal `json:"consensusRewardsGwei"`
TxFeesSumWei decimal.Decimal `json:"txFeesSumWei"`
TotalRewardsWei decimal.Decimal `json:"totalRewardsWei"`
}
type TxReceipt ¶
type TxReceipt struct {
BlockHash *common.Hash `json:"blockHash"`
BlockNumber *hexutil.Big `json:"blockNumber"`
ContractAddress *common.Address `json:"contractAddress,omitempty"`
CumulativeGasUsed hexutil.Uint64 `json:"cumulativeGasUsed"`
EffectiveGasPrice *hexutil.Big `json:"effectiveGasPrice"`
From *common.Address `json:"from,omitempty"`
GasUsed hexutil.Uint64 `json:"gasUsed"`
LogsBloom hexutil.Bytes `json:"logsBloom"`
Status hexutil.Uint64 `json:"status"`
To *common.Address `json:"to,omitempty"`
TransactionHash *common.Hash `json:"transactionHash"`
TransactionIndex hexutil.Uint64 `json:"transactionIndex"`
Type hexutil.Uint64 `json:"type"`
}
Click to show internal directories.
Click to hide internal directories.
