Versions in this module Expand all Collapse all v0 v0.2.0 Feb 7, 2024 Changes in this version + type Client struct + func NewClient(ctx context.Context, cfg Config) (*Client, error) + type Config struct + BridgeURL string + L1BridgeAddr common.Address + L1NodeURL string + L2BridgeAddr common.Address + L2NodeURL string + type NetworkSID string + type NodeClient struct + func (c NodeClient) ApproveERC20(ctx context.Context, erc20Addr, spender common.Address, amount *big.Int, ...) error + func (c NodeClient) DeployERC20(ctx context.Context, name, symbol string, auth *bind.TransactOpts, ...) (common.Address, error) + func (c NodeClient) GetChainID(ctx context.Context, network NetworkSID) (*big.Int, error) + func (c NodeClient) MintERC20(ctx context.Context, erc20Addr common.Address, amount *big.Int, ...) error + func (c NodeClient) SendBridgeAsset(ctx context.Context, tokenAddr common.Address, amount *big.Int, ...) error + func (c NodeClient) SendBridgeMessage(ctx context.Context, destNetwork uint32, destAddr common.Address, ...) error + func (c NodeClient) SendClaim(ctx context.Context, deposit *pb.Deposit, smtProof [mtHeight][32]byte, ...) error + type RestClient struct + func NewRestClient(url string) *RestClient + func (c RestClient) GetBridge(networkID uint32, depositCnt uint64) (*pb.Deposit, error) + func (c RestClient) GetBridges(destAddr string, offset, limit uint) ([]*pb.Deposit, uint64, error) + func (c RestClient) GetClaims(destAddr string, offset, limit uint) ([]*pb.Claim, uint64, error) + func (c RestClient) GetMerkleProof(networkID uint32, depositCnt uint64) (*pb.Proof, error) + func (c RestClient) GetVersion() (string, error) + func (c RestClient) GetWrappedToken(origNet uint32, origTokenAddr string) (*pb.TokenWrapped, error)