Appendix B: Launching Bridge UI
Use the repo https://github.com/poanetwork/tokenbridge to get Bridge UI up and running.
Example .env file:
1
REACT_APP_HOME_BRIDGE_ADDRESS=0x7301CFA0e1756B71869E93d4e4Dca5c7d0eb0AA6
2
REACT_APP_HOME_HTTP_PARITY_URL=https://dai.poa.network
3
REACT_APP_HOME_NETWORK_NAME='POA DAI Chain'
4
REACT_APP_HOME_NATIVE_NAME=DAI
5
6
REACT_APP_FOREIGN_BRIDGE_ADDRESS=0x4aa42145Aa6Ebf72e164C9bBC74fbD3788045016
7
REACT_APP_FOREIGN_HTTP_PARITY_URL=https://mainnet.infura.io/metamask
8
REACT_APP_FOREIGN_NETWORK_NAME='ETH Mainnet'
9
10
REACT_APP_HOME_EXPLORER_TX_TEMPLATE=https://blockscout.com/poa/dai/tx/%s
11
REACT_APP_HOME_EXPLORER_ADDRESS_TEMPLATE=https://blockscout.com/poa/dai/address/%s
12
13
REACT_APP_FOREIGN_EXPLORER_TX_TEMPLATE=https://blockscout.com/eth/mainnet/tx/%s
14
REACT_APP_FOREIGN_EXPLORER_ADDRESS_TEMPLATE=https://blockscout.com/eth/mainnet/address/%s
15
16
REACT_APP_HOME_GAS_PRICE_FALLBACK=1000000000
17
REACT_APP_HOME_GAS_PRICE_UPDATE_INTERVAL=900000
18
19
REACT_APP_FOREIGN_GAS_PRICE_ORACLE_URL=https://gasprice.poa.network/
20
REACT_APP_FOREIGN_GAS_PRICE_SPEED_TYPE=standard
21
REACT_APP_FOREIGN_GAS_PRICE_FALLBACK=18000000000
22
REACT_APP_FOREIGN_GAS_PRICE_UPDATE_INTERVAL=900000
Copied!
Last modified 1yr ago
Export as PDF
Copy link