ethereum

package
v0.0.0-...-2c9d471 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 31, 2023 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EthereumCmd = &cobra.Command{
	Use:   "ethereum",
	Short: "Various functionality for the Ethereum",
	Long:  `Various functionality for the Ethereum`,
}

Functions

func GetLatestBlockBenchmark

func GetLatestBlockBenchmark(endpoints []RPCEndpoint)

func RunERC20Token

func RunERC20Token(args ERC20TokenArgs) error

func RunPull

func RunPull(args PullArgs) error

func RunTestEndpoints

func RunTestEndpoints(args TestEndpointsArgs) error

func SubscribeToEvents

func SubscribeToEvents(endpoints []RPCEndpoint)

Types

type ERC20TokenArgs

type ERC20TokenArgs struct {
	*EthereumArgs
	EthereumEndpoint string
	TokenHexAddress  string
}

type EthereumArgs

type EthereumArgs struct {
	*rootCmd.RootArgs
}

type LatestBlockResult

type LatestBlockResult struct {
	Endpoint RPCEndpoint
	Block    string
}

type PullArgs

type PullArgs struct {
	*EthereumArgs
	SmartContracts   []smartContract
	EthereumEndpoint string
	EtherscanAPIKey  string
}

type RPCEndpoint

type RPCEndpoint struct {
	URL    string
	Client *ethclient.Client
}

type TestEndpointsArgs

type TestEndpointsArgs struct {
	*EthereumArgs
	URLs   []string
	Repeat uint16
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL