blockchain

package
v0.0.0-...-cd21dfb Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2023 License: MIT Imports: 16 Imported by: 0

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, pollInterval ...time.Duration) (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, pollInterval ...time.Duration) (*types.Receipt, error)

Jump to

Keyboard shortcuts

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