committer

package
v0.0.0-...-8e94ecf Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EVMCommitter

type EVMCommitter interface {
	FromAddress() common.Address
	Provider() provider.EVMProvider
	SendTx(recipient common.Address, txData []byte) (txHash common.Hash, err error)
}

EVMCommitter defines an interface for submitting transactions into Ethereum, Matic, and other EVM-compatible networks.

func NewEthCommitter

func NewEthCommitter(
	fromPrivateKey *ecdsa.PrivateKey,
	evmProvider provider.EVMProviderWithRet,
) (EVMCommitter, error)

NewEthCommitter returns an instance of EVMCommitter, which can be used to submit txns into Ethereum, Matic, and other EVM-compatible networks.

Jump to

Keyboard shortcuts

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