Documentation ¶
Index ¶
- func BlockTime(ctx context.Context, client *ethclient.Client, block uint64) (time.Time, error)
- func DialRpc(ctx context.Context) (*ethclient.Client, error)
- func FindContractDeploymentBlock(ctx context.Context, client *ethclient.Client, contract common.Address) (*big.Int, error)
- func GetSyncFromBlock(ctx context.Context, client *ethclient.Client, contract common.Address, ...) (*big.Int, error)
- func GetSyncToBlock(ctx context.Context, client *ethclient.Client, ...) (*big.Int, bool, error)
- type CurrentBlockFunc
- type SetCurrentBlockFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindContractDeploymentBlock ¶
func FindContractDeploymentBlock(ctx context.Context, client *ethclient.Client, contract common.Address) (*big.Int, error)
findContractDeploymentBlock performs a binary search to determine the block in which the contract was deployed.
func GetSyncFromBlock ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.