blockchain

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2024 License: MIT Imports: 19 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(ctx context.Context, clientWithSigner *web3go.Client, dataOrFile string) (common.Address, error)

func MustNewWeb3

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

func NewWeb3

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

func NewWeb3WithOption

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

func WaitForReceipt

func WaitForReceipt(ctx context.Context, 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(ctx context.Context) (*bind.TransactOpts, error)

func (*Contract) WaitForReceipt

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

type RetryOption

type RetryOption struct {
	Interval time.Duration
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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