utils

package module
v0.0.0-...-94e5780 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

README

utils

utils

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBlockChainAuthAndClient

func GetBlockChainAuthAndClient(RPCAddr string, PrivateKey string, chainID int64, value int64, gasLimit int64) (*ethclient.Client, *bind.TransactOpts, error)

GetBlockChainAuthAndClient gets blocal chain auth and client

func GetReadOnlyEthClientWithoutAuth

func GetReadOnlyEthClientWithoutAuth(url string) (*ethclient.Client, error)

func Retry

func Retry(attempts int, sleep time.Duration, f func() error) (err error)

func RetryOnIgnore

func RetryOnIgnore(attempts int, sleep time.Duration, f func() (bool, error)) (err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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