Versions in this module Expand all Collapse all v0 v0.2.0 Feb 7, 2024 Changes in this version + const LeafTypeAsset + const LeafTypeMessage + func GenerateRandomHash() [sha256.Size]byte + func WaitTxToBeMined(ctx context.Context, client *ethclient.Client, tx *types.Transaction, ...) error + type Client struct + func NewClient(ctx context.Context, nodeURL string, bridgeSCAddr common.Address) (*Client, error) + func (c *Client) ApproveERC20(ctx context.Context, erc20Addr, spender common.Address, amount *big.Int, ...) error + func (c *Client) BuildSendClaim(ctx context.Context, deposit *etherman.Deposit, ...) (*types.Transaction, error) + func (c *Client) CheckTxWasMined(ctx context.Context, txHash common.Hash) (bool, *types.Receipt, error) + func (c *Client) DeployBridgeMessageReceiver(ctx context.Context, auth *bind.TransactOpts) (common.Address, error) + func (c *Client) DeployERC20(ctx context.Context, name, symbol string, auth *bind.TransactOpts) (common.Address, *ERC20.ERC20, error) + func (c *Client) GetSigner(ctx context.Context, accHexPrivateKey string) (*bind.TransactOpts, error) + func (c *Client) GetSignerFromKeystore(ctx context.Context, ks zkevmtypes.KeystoreFileConfig) (*bind.TransactOpts, error) + func (c *Client) MintERC20(ctx context.Context, erc20Addr common.Address, amount *big.Int, ...) error + func (c *Client) SendBridgeAsset(ctx context.Context, tokenAddr common.Address, amount *big.Int, ...) error + func (c *Client) SendBridgeMessage(ctx context.Context, destNetwork uint32, destAddr common.Address, ...) error + func (c *Client) SendClaim(ctx context.Context, deposit *pb.Deposit, smtProof [mtHeight][keyLen]byte, ...) error