Versions in this module Expand all Collapse all v0 v0.0.1 Jun 7, 2021 Changes in this version + var ErrMessagePrivateKeyNil = errors.New("PrivateKey is nil") + var ErrNoAnyKeyStores = errors.New("No any keystores") + func NewTestEthBackend(privateKey *ecdsa.PrivateKey, alloc core.GenesisAlloc) (*node.Node, error) + type ChainSubscrier struct + func NewChainSubscriber(c *ethclient.Client) (*ChainSubscrier, error) + func (cs *ChainSubscrier) SubscribeFilterlogs(ctx context.Context, q ethereum.FilterQuery, ch chan<- types.Log) error + func (cs *ChainSubscrier) SubscribeNewHead(ctx context.Context, ch chan<- *types.Header) error + type Client struct + func Dial(rawurl string) (*Client, error) + func NewClient(c *rpc.Client) (*Client, error) + func (c *Client) BatchSendMsg(ctx context.Context, msgs <-chan Message) (<-chan *types.Transaction, <-chan error) + func (c *Client) Close() + func (c *Client) ConfirmTx(txHash common.Hash, n uint, timeout time.Duration) (bool, error) + func (c *Client) MessageToTransactOpts(ctx context.Context, msg Message) (*bind.TransactOpts, error) + func (c *Client) NewMethodData(a abi.ABI, methodName string, args ...interface{}) ([]byte, error) + func (c *Client) NewTransaction(ctx context.Context, msg ethereum.CallMsg) (*types.Transaction, error) + func (c *Client) RawClient() *ethclient.Client + func (c *Client) SendMsg(ctx context.Context, msg Message) (*types.Transaction, error) + type ExpectedEventsFunc func(event interface{}) bool + type Message struct + AccessList types.AccessList + Data []byte + From common.Address + Gas uint64 + GasPrice *big.Int + PrivateKey *ecdsa.PrivateKey + To *common.Address + Value *big.Int + type Subscriber interface + SubscribeFilterlogs func(ctx context.Context, query ethereum.FilterQuery, ch chan<- types.Log) error + SubscribeNewHead func(ctx context.Context, ch chan<- *types.Header) error + type TransactFunc func() (*types.Transaction, error)