No description
  • JavaScript 92.3%
  • Dockerfile 5.6%
  • Shell 2.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
roman-strilets 5ce2f0d706 reverted
2026-08-20 16:11:15 +02:00
.vscode wip: added logger 2021-11-05 11:23:53 +01:00
node Added 'fast_sync' parameter to node's docker 2022-12-17 10:15:13 +01:00
test implemented a new algorithm of fee calculation 2026-08-20 16:03:20 +02:00
tools refactored fee in tools 2021-12-19 22:07:59 +03:00
utils implemented a new algorithm of fee calculation 2026-08-20 16:03:20 +02:00
wallet-api Added node container and docker-compose has been switched to "node + api + relay XXX2Beam + relay Beam2XXX" scheme 2022-12-11 18:24:34 +01:00
.dockerignore Added docker-compose.yml and docker.env for it 2021-11-24 15:37:20 +01:00
.env.example implemented a new algorithm of fee calculation 2026-08-20 16:03:20 +02:00
.gitignore updated gitignore 2022-08-02 11:01:08 +03:00
beam2eth_relay.js reverted 2026-08-20 16:11:15 +02:00
docker-compose.yml implemented a new algorithm of fee calculation 2026-08-20 16:03:20 +02:00
docker.env.example implemented a new algorithm of fee calculation 2026-08-20 16:03:20 +02:00
Dockerfile Updated configs 2023-02-20 19:44:14 +01:00
eth2beam_relay.js small refactoring 2025-06-03 14:15:28 +02:00
logger.js fixed problems with modules 2021-12-13 16:25:11 +03:00
package-lock.json Updated web3 2022-10-20 12:42:47 +02:00
package.json Updated web3 2022-10-20 12:42:47 +02:00
README.md Update README.md 2024-03-24 20:11:14 +01:00

Create two wallets on each side. The first wallet for deploy and call it "Owner", the second for management - "Manager". After all the contracts are deposited and configured, the wallet "Owner" is no longer used.

Fetch the code from the repository:

git clone https://github.com/BeamMW/beam-bridge-ethrelay.git

Go to the beam-bridge-ethrelay folder. A separate branch has been created for each beem network.

main - masternet
dappnet - dappnet
mainnet - mainnet

Switch to the branch we choose:

git checkout <branch>

Using the docker.env.example file as an example, create docker.env. In the "Beam side config" section, let's enter the sido and password for the manager wallet BEAM_WALLET_API_SEED_PHRASE and BEAM_WALLET_API_PASS, respectively.

In the "ETH side config" section, you must fill in all the parameters:

  • BEAM_PIPE_CID is the cid of the Pipe contract.
  • ETH_PIPE_CONTRACT_ADDRESS is the Pipe contract address in the Ether network.
  • ETH_RELAYER_ADDRESS is the address of the manager wallet
  • ETH_RELAYER_PRIVATE_KEY is the private key of the "Manager" wallet
  • ETH_TOKEN_CONTRACT is the address of the token on the ether that the bridge works with
  • ETH_SIDE_DECIMALS - how many decimal places the token supports
  • ETH_COINGECKO_CURRENCY_RATE_ID=ethereum
  • ETH_HTTP_PROVIDER - http address of data provider for ether
  • ETH_WEBSOCKET_PROVIDER - websocket address of data provider for air
  • ETH_PIPE_CONTRACT_ABI - specify "EthPipe.json" if the bridge is with ether, but "EthERC20Pipe.json" if it is with token

Build the containers:

docker-compose --profile api --env-file docker.env build

Running the relay:

docker-compose --profile api --env-file docker.env up -d