Set Configuration

Terminal Commands

export CHAIN_ID=915817419
export GENESIS_ADDRESS=0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266
export GENESIS_BALANCE=1000000000000000000000000
export SOLANA_RPC=https://sol.devnet.romeprotocol.xyz
export GETH_HOST=l2evm.devnet.romeprotocol.xyz
export GENESIS_PRIVATE_KEY=ac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80
export JWT_SECRET=841d7da44e0f25027c81943a10afcb0b80f7fd1ea53af69a525175ebae2087cf

export ROME_EVM_TAG=v0.1.0
export GETH_TAG=v0.1.0
export RHEA_TAG=v0.1.0
export PROXY_TAG=v0.1.0

solana config set -u https://sol.devnet.romeprotocol.xyz

Add keypairs in rome-apps/docker:

rm *.json
solana-keygen new -o rome-keypair.json --no-bip39-passphrase
solana-keygen new -o rome-evm-owner.json --no-bip39-passphrase
solana-keygen new -o rhea-sender.json --no-bip39-passphrase
solana-keygen new -o proxy-sender.json --no-bip39-passphrase

Airdrop SOL to three keypairs:

solana airdrop 10000 $(solana-keygen pubkey proxy-sender.json)
solana airdrop 10000 $(solana-keygen pubkey rhea-sender.json)
solana airdrop 10000 $(solana-keygen pubkey rome-evm-owner.json)

Update rhea-config.yml in rome-apps/docker to set chain_id, geth_engine_secret, and solana_url

chain_id: 915817419
solana_url: "https://sol.devnet.romeprotocol.xyz"
geth_engine_secret: "841d7da44e0f25027c81943a10afcb0b80f7fd1ea53af69a525175ebae2087cf"
program_id_keypair: "/opt/rome-keypair.json"
payer_keypair: "/opt/rhea-sender.json"
number_holders: 256
geth_http_addr: "http://geth:8545"
geth_engine_addr: "http://geth:8551"
geth_poll_interval_ms: 100

Update proxy-config.yml in rome-apps/docker to set chain_id and solana_url

chain_id: 915817419
solana_url: "https://sol.devnet.romeprotocol.xyz"
start_slot: 0
commitment_level: "confirmed"
program_id_keypair: "/opt/rome-keypair.json"
payer_keypair: "/opt/proxy-sender.json"
log: "/var/log/proxy.log"
host: "0.0.0.0:9090"
number_holders: 256

Setup certificate for use by Docker containers

  • Create Route 53 URL l2evm.devnet.romeprotocol.xyz to point to EC2 server IP

  • Open HTTP (80) and HTTPS (443) ports on EC2 server

sudo apt install -y nginx
sudo snap install --classic certbot
sudo ln -s /snap/bin/certbot /usr/bin/certbot
sudo certbot certonly --nginx -n -m rollup@rollup.xyz --agree-tos --domains l2evm.devnet.romeprotocol.xyz
sudo nginx -s stop

sudo ls /etc/letsencrypt/live/l2evm.devnet.romeprotocol.xyz
# Ensure that fullchain.pem and privkey.pem files are located here

Last updated