Versions in this module Expand all Collapse all v0 v0.9.0 Mar 9, 2023 Changes in this version + var Gwei10 = big.NewInt(10e9) + var Gwei20 = big.NewInt(20e9) + var Gwei5 = big.NewInt(5e9) + type Connection struct + func NewConnection(eth1Endpoint, eth2Endpoint string, kp *secp256k1.Keypair, ...) (*Connection, error) + func (c *Connection) CallOpts(blocknumber *big.Int) *bind.CallOpts + func (c *Connection) EnsureHasBytecode(addr ethcommon.Address) error + func (c *Connection) Eth1Client() *ethclient.Client + func (c *Connection) Eth1LatestBlock() (uint64, error) + func (c *Connection) Eth2BeaconHead() (beacon.BeaconHead, error) + func (c *Connection) Eth2Client() beacon.Client + func (c *Connection) GetBeaconBlock(blockId string) (beacon.BeaconBlock, bool, error) + func (c *Connection) GetSyncCommitteesForEpoch(epoch uint64) ([]beacon.SyncCommittee, error) + func (c *Connection) GetValidatorProposerDuties(epoch uint64) (map[uint64]uint64, error) + func (c *Connection) GetValidatorStatus(pubkey types.ValidatorPubkey, opts *beacon.ValidatorStatusOptions) (beacon.ValidatorStatus, error) + func (c *Connection) GetValidatorStatusByIndex(index string, opts *beacon.ValidatorStatusOptions) (beacon.ValidatorStatus, error) + func (c *Connection) GetValidatorStatuses(pubkeys []types.ValidatorPubkey, opts *beacon.ValidatorStatusOptions) (map[types.ValidatorPubkey]beacon.ValidatorStatus, error) + func (c *Connection) Keypair() *secp256k1.Keypair + func (c *Connection) LockAndUpdateTxOpts() error + func (c *Connection) SafeEstimateFee(ctx context.Context) (*big.Int, *big.Int, error) + func (c *Connection) TxOpts() *bind.TransactOpts + func (c *Connection) UnlockTxOpts()