Versions in this module Expand all Collapse all v1 v1.4.2 Oct 4, 2021 v1.4.1 Oct 4, 2021 Changes in this version + func Accounts(numValidators int) *env.AccountsConfig + func BuildConfig(accounts *env.AccountsConfig) (*genesis.Config, *eth.Config, error) + func ValueTransferTransaction(client *ethclient.Client, senderKey *ecdsa.PrivateKey, ...) (*types.Transaction, error) + type MarshalableECDSAPrivateKey ecdsa.PrivateKey + func (k *MarshalableECDSAPrivateKey) MarshalJSON() ([]byte, error) + func (k *MarshalableECDSAPrivateKey) UnmarshalJSON(b []byte) error + type MarshalableNodeConfig struct + P2P MarshalableP2PConfig + type MarshalableP2PConfig struct + PrivateKey *MarshalableECDSAPrivateKey + type Network []*Node + func NewNetwork(accounts *env.AccountsConfig, gc *genesis.Config, ec *eth.Config) (Network, error) + func (n Network) AwaitBlock(ctx context.Context, num uint64) error + func (n Network) AwaitTransactions(ctx context.Context, txs ...*types.Transaction) error + func (n Network) Shutdown() + type Node struct + Address common.Address + Config *node.Config + DevAddress common.Address + DevKey *ecdsa.PrivateKey + Eth *eth.Ethereum + EthConfig *eth.Config + Key *ecdsa.PrivateKey + Nonce uint64 + P2PListenAddr string + SentTxs []*types.Transaction + Tracker *Tracker + WsClient *ethclient.Client + func NewNode(validatorAccount, devAccount *env.Account, nc *node.Config, ec *eth.Config, ...) (*Node, error) + func (n *Node) AwaitSentTransactions(ctx context.Context) error + func (n *Node) AwaitTransactions(ctx context.Context, txs ...*types.Transaction) error + func (n *Node) Close() error + func (n *Node) ProcessedTxBlock(tx *types.Transaction) *types.Block + func (n *Node) SendCelo(ctx context.Context, recipient common.Address, value int64) (*types.Transaction, error) + func (n *Node) SendCeloTracked(ctx context.Context, recipient common.Address, value int64) (*types.Transaction, error) + func (n *Node) Start() error + func (n *Node) TxFee(ctx context.Context, tx *types.Transaction) (*big.Int, error) + type Tracker struct + func NewTracker() *Tracker + func (tr *Tracker) AwaitBlock(ctx context.Context, num uint64) error + func (tr *Tracker) AwaitTransactions(ctx context.Context, hashes []common.Hash) error + func (tr *Tracker) GetProcessedBlock(num uint64) *types.Block + func (tr *Tracker) GetProcessedBlockForTx(hash common.Hash) *types.Block + func (tr *Tracker) GetProcessedTx(hash common.Hash) *types.Transaction + func (tr *Tracker) StartTracking(client *ethclient.Client) error + func (tr *Tracker) StopTracking() error