chains

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2025 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChainBindings

type ChainBindings struct {
	RPCClient   eth.Client
	WsClient    eth.Client
	RPCBindings *TypesRPCBindings
	WsBindings  *TypesWsBindings
	TxMgr       txmgr.TxManager

	ChainID *big.Int

	Config *config.Config
	// contains filtered or unexported fields
}

func NewChainBindings

func NewChainBindings(ctx context.Context, cfg *config.Config, logger log.Logger) (*ChainBindings, error)

func (*ChainBindings) UpdateConnector

func (cb *ChainBindings) UpdateConnector(ctx context.Context) error

type TypesRPCBindings

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

func NewRPCBindings

func NewRPCBindings(rpcClient eth.Client, contractAddress *config.ContractAddress, logger log.Logger) (*TypesRPCBindings, error)

type TypesWsBindings

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

func NewWSBindings

func NewWSBindings(wsClient eth.Client, contractAddress *config.ContractAddress, logger log.Logger) (*TypesWsBindings, error)

Jump to

Keyboard shortcuts

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