blockchain

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: MIT Imports: 17 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CustomGasLimit uint64
View Source
var CustomGasPrice uint64
View Source
var Web3LogEnabled bool

Functions

func ConvertToGethLog

func ConvertToGethLog(log *types.Log) *gethTypes.Log

func Deploy

func Deploy(clientWithSigner *web3go.Client, dataOrFile string) (common.Address, error)

func MustNewWeb3

func MustNewWeb3(url, key string) *web3go.Client

func NewWeb3

func NewWeb3(url, key string) (*web3go.Client, error)

func NewWeb3WithOption

func NewWeb3WithOption(url, key string, option ...providers.Option) (*web3go.Client, error)

func WaitForReceipt

func WaitForReceipt(client *web3go.Client, txHash common.Hash, successRequired bool, opts ...RetryOption) (receipt *types.Receipt, err error)

Types

type Contract

type Contract struct {
	// contains filtered or unexported fields
}

func NewContract

func NewContract(clientWithSigner *web3go.Client, signerFn bind.SignerFn) (*Contract, error)

func (*Contract) CreateTransactOpts

func (c *Contract) CreateTransactOpts() (*bind.TransactOpts, error)

func (*Contract) WaitForReceipt

func (c *Contract) WaitForReceipt(txHash common.Hash, successRequired bool, opts ...RetryOption) (*types.Receipt, error)

type RetryOption

type RetryOption struct {
	Rounds   uint
	Interval time.Duration
}

Jump to

Keyboard shortcuts

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