relayer

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2022 License: LGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Ctx                   context.Context
	EthClient             *ethclient.Client
	Forwarder             common.Forwarder
	Key                   *common.Key
	ChainID               *big.Int
	NewForwardRequestFunc NewForwardRequestFunc
}

Config ...

type NewForwardRequestFunc

type NewForwardRequestFunc func() common.ForwardRequest

type Relayer

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

Relayer represents a transaction relayer. It contains an Ethereum client and a private key, allowing it to forward transactions.

func NewRelayer

func NewRelayer(cfg *Config) (*Relayer, error)

func (*Relayer) SubmitTransaction

Jump to

Keyboard shortcuts

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