Documentation
¶
Index ¶
- Constants
- type BlockFilterId
- type ChainSpec
- type EthConfig
- type EthConfigBlobSchedule
- type EthConfigFork
- type ExecutionClient
- func (ec *ExecutionClient) GetAdminNodeInfo(ctx context.Context) (*p2p.NodeInfo, error)
- func (ec *ExecutionClient) GetAdminPeers(ctx context.Context) ([]*p2p.PeerInfo, error)
- func (ec *ExecutionClient) GetBalanceAt(ctx context.Context, wallet common.Address, blockNumber *big.Int) (*big.Int, error)
- func (ec *ExecutionClient) GetBlockByHash(ctx context.Context, hash common.Hash) (*types.Block, error)
- func (ec *ExecutionClient) GetChainSpec(ctx context.Context) (*ChainSpec, error)
- func (ec *ExecutionClient) GetClientVersion(ctx context.Context) (string, error)
- func (ec *ExecutionClient) GetEthClient() *ethclient.Client
- func (ec *ExecutionClient) GetEthConfig(ctx context.Context) (*EthConfig, error)
- func (ec *ExecutionClient) GetFilterChanges(ctx context.Context, filterId BlockFilterId) ([]string, error)
- func (ec *ExecutionClient) GetHeaderByHash(ctx context.Context, hash common.Hash) (*types.Header, error)
- func (ec *ExecutionClient) GetHeaderByNumber(ctx context.Context, number uint64) (*types.Header, error)
- func (ec *ExecutionClient) GetLatestBlock(ctx context.Context) (*types.Block, error)
- func (ec *ExecutionClient) GetLatestHeader(ctx context.Context) (*types.Header, error)
- func (ec *ExecutionClient) GetNodeSyncing(ctx context.Context) (*SyncStatus, error)
- func (ec *ExecutionClient) GetNonceAt(ctx context.Context, wallet common.Address, blockNumber *big.Int) (uint64, error)
- func (ec *ExecutionClient) GetTransactionReceipt(ctx context.Context, txHash common.Hash) (*types.Receipt, error)
- func (ec *ExecutionClient) Initialize(ctx context.Context) error
- func (ec *ExecutionClient) NewBlockFilter(ctx context.Context) (BlockFilterId, error)
- func (ec *ExecutionClient) SendTransaction(ctx context.Context, tx *types.Transaction) error
- func (ec *ExecutionClient) UninstallBlockFilter(ctx context.Context, filterId BlockFilterId) (bool, error)
- type SyncStatus
Constants ¶
View Source
const ( DepositContract = "DEPOSIT_CONTRACT_ADDRESS" ConsolidationRequestContract = "CONSOLIDATION_REQUEST_PREDEPLOY_ADDRESS" WithdrawalRequestContract = "WITHDRAWAL_REQUEST_PREDEPLOY_ADDRESS" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockFilterId ¶
type BlockFilterId string
type EthConfig ¶ added in v1.19.0
type EthConfig struct {
Current *EthConfigFork `json:"current"`
Next *EthConfigFork `json:"next"`
Last *EthConfigFork `json:"last"`
}
type EthConfigBlobSchedule ¶ added in v1.19.0
type EthConfigFork ¶ added in v1.19.0
type EthConfigFork struct {
ActivationTime uint64 `json:"activationTime"`
ChainID string `json:"chainId"`
ForkID string `json:"forkId"`
BlobSchedule EthConfigBlobSchedule `json:"blobSchedule"`
Precompiles map[string]common.Address `json:"precompiles"`
SystemContracts map[string]common.Address `json:"systemContracts"`
}
func (*EthConfigFork) CheckMismatch ¶ added in v1.19.0
func (f *EthConfigFork) CheckMismatch(f2 *EthConfigFork) []string
func (*EthConfigFork) GetActivationTime ¶ added in v1.19.0
func (f *EthConfigFork) GetActivationTime() time.Time
GetActivationTime returns the activation time as a time.Time
func (*EthConfigFork) GetSystemContractAddress ¶ added in v1.19.0
func (f *EthConfigFork) GetSystemContractAddress(contractType string) *common.Address
GetSystemContractAddress returns the address of a specific system contract
type ExecutionClient ¶
type ExecutionClient struct {
// contains filtered or unexported fields
}
func NewExecutionClient ¶
func NewExecutionClient(name, endpoint string, headers map[string]string, sshcfg *sshtunnel.SshConfig, logger logrus.FieldLogger) (*ExecutionClient, error)
NewExecutionClient is used to create a new execution client
func (*ExecutionClient) GetAdminNodeInfo ¶
func (*ExecutionClient) GetAdminPeers ¶
func (*ExecutionClient) GetBalanceAt ¶
func (*ExecutionClient) GetBlockByHash ¶
func (*ExecutionClient) GetChainSpec ¶
func (ec *ExecutionClient) GetChainSpec(ctx context.Context) (*ChainSpec, error)
func (*ExecutionClient) GetClientVersion ¶
func (ec *ExecutionClient) GetClientVersion(ctx context.Context) (string, error)
func (*ExecutionClient) GetEthClient ¶
func (ec *ExecutionClient) GetEthClient() *ethclient.Client
func (*ExecutionClient) GetEthConfig ¶ added in v1.19.0
func (ec *ExecutionClient) GetEthConfig(ctx context.Context) (*EthConfig, error)
func (*ExecutionClient) GetFilterChanges ¶
func (ec *ExecutionClient) GetFilterChanges(ctx context.Context, filterId BlockFilterId) ([]string, error)
func (*ExecutionClient) GetHeaderByHash ¶
func (*ExecutionClient) GetHeaderByNumber ¶
func (*ExecutionClient) GetLatestBlock ¶
func (*ExecutionClient) GetLatestHeader ¶
func (*ExecutionClient) GetNodeSyncing ¶
func (ec *ExecutionClient) GetNodeSyncing(ctx context.Context) (*SyncStatus, error)
func (*ExecutionClient) GetNonceAt ¶
func (*ExecutionClient) GetTransactionReceipt ¶
func (*ExecutionClient) Initialize ¶
func (ec *ExecutionClient) Initialize(ctx context.Context) error
func (*ExecutionClient) NewBlockFilter ¶
func (ec *ExecutionClient) NewBlockFilter(ctx context.Context) (BlockFilterId, error)
func (*ExecutionClient) SendTransaction ¶
func (ec *ExecutionClient) SendTransaction(ctx context.Context, tx *types.Transaction) error
func (*ExecutionClient) UninstallBlockFilter ¶
func (ec *ExecutionClient) UninstallBlockFilter(ctx context.Context, filterId BlockFilterId) (bool, error)
type SyncStatus ¶
type SyncStatus struct {
IsSyncing bool
StartingBlock uint64
CurrentBlock uint64
HighestBlock uint64
}
func (*SyncStatus) Percent ¶
func (s *SyncStatus) Percent() float64
Click to show internal directories.
Click to hide internal directories.