Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultDialTimeout = 5 * time.Second
DefaultDialTimeout is a default timeout for dialing a client.
Variables ¶
This section is empty.
Functions ¶
func DialEthClientWithTimeout ¶
func DialEthClientWithTimeout(ctx context.Context, url string, timeout time.Duration) (*ethclient.Client, error)
DialEthClientWithTimeout attempts to dial the L1 provider using the provided URL. If the dial doesn't complete within defaultDialTimeout seconds, this method will return an error.
func DialRollupClientWithTimeout ¶
func DialRollupClientWithTimeout(ctx context.Context, url string, timeout time.Duration) (*sources.RollupClient, error)
DialRollupClientWithTimeout attempts to dial the RPC provider using the provided URL. If the dial doesn't complete within defaultDialTimeout seconds, this method will return an error.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.