Versions in this module Expand all Collapse all v1 v1.1.0 Dec 6, 2022 v1.0.0 Oct 24, 2021 Changes in this version + const CancelledStatus + const TransferredStatus + const TxRetryInterval + const TxRetryLimit + var BlockDelay = big.NewInt(10) + var BlockRetryInterval = time.Second * 15 + var BlockRetryLimit = 20 + var ErrFatalPolling = errors.New("listener block polling failed") + var ErrFatalQuery = errors.New("query of chain state failed") + var ErrFatalTx = errors.New("submission of transaction failed") + var ErrNonceTooLow = errors.New("nonce too low") + var ErrTxUnderpriced = errors.New("replacement transaction underpriced") + func ConstructErc20ProposalData(amount []byte, recipient []byte) []byte + func NewListener(conn Connection, cfg *ethconn.Config, log log15.Logger, ...) *listener + func NewWriter(conn Connection, cfg *ethconn.Config, log log15.Logger, stop <-chan int, ...) *writer + type Chain struct + func InitializeChain(chainCfg *core.ChainConfig, logger log15.Logger, sysErr chan<- error) (*Chain, error) + func (c *Chain) Id() msg.ChainId + func (c *Chain) Name() string + func (c *Chain) SetRouter(r *core.Router) + func (c *Chain) Start() error + func (c *Chain) Stop() + type Connection interface + CallOpts func() *bind.CallOpts + Client func() *ethclient.Client + Close func() + Connect func() error + EnsureHasBytecode func(address common.Address) error + Keypair func() *secp256k1.Keypair + LatestBlock func() (*big.Int, error) + LockAndUpdateOpts func() error + Opts func() *bind.TransactOpts + UnlockOpts func() + WaitForBlock func(block *big.Int) error