zkevmbridgeservice

package module
v0.6.0-RC6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 16, 2025 License: AGPL-3.0, AGPL-3.0-or-later Imports: 3 Imported by: 2

README

zkEVM Bridge service

This repo implements a backend service written in Go, that enables clients, like the web UI, to interact with the bridge smart contract by providing Merkleproofs.

Architecture

Running the bridge service

Running e2e test for real networks

There are a test for ERC20 L1->L2 and L2->L1. This test is for be run externally. For this reason you can build execution docker:

make build-docker-e2e-real_network
  • To run you need to pass a configuration file as test/config/bridge_network_e2e/cardona.toml
  • Example of usage:
#!/bin/bash
make build-docker-e2e-real_network
mkdir tmp
cat <<EOF > ./tmp/test.toml
TestAddrPrivate= "${{ SECRET_PRIVATE_ADDR }}"
[ConnectionConfig]
L1NodeURL="${{ SECRET_L1URL }}"
L2NodeURL="${{ L2URL }}"
BridgeURL="${{ BRIDGEURL }}"
L1BridgeAddr="${{ BRIDGE_ADDR_L1 }}"
L2BridgeAddr="${{ BRIDGE_ADDR_L2 }}"
EOF
docker run  --volume "./tmp/:/config/" --env BRIDGE_TEST_CONFIG_FILE=/config/test.toml bridge-e2e-realnetwork-erc20

Contact

For more discussions, please head to the R&D Discord

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version   = "v0.1.0"
	GitRev    = "undefined"
	GitBranch = "undefined"
	BuildDate = "Fri, 17 Jun 1988 01:58:00 +0200"
)

Populated during build, don't touch!

Functions

func PrintVersion

func PrintVersion(w io.Writer)

PrintVersion prints version info into the provided io.Writer.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL