Skip to content

Commit 3db8dbc

Browse files
authored
Merge pull request #167 from poanetwork/develop
Merge the develop branch to the master branch
2 parents 4e5b6a9 + b8a4306 commit 3db8dbc

File tree

26 files changed

+436
-93
lines changed

26 files changed

+436
-93
lines changed

.env.example

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ REACT_APP_HOME_NATIVE_NAME=POA
77
REACT_APP_HOME_NETWORK_NAME="POA Sokol"
88
REACT_APP_FOREIGN_NETWORK_NAME=Kovan
99

10+
# Set to true if network doesn't support events
11+
REACT_APP_HOME_WITHOUT_EVENTS=false
12+
REACT_APP_FOREIGN_WITHOUT_EVENTS=false
13+
1014
REACT_APP_HOME_EXPLORER_TX_TEMPLATE=https://blockscout.com/poa/sokol/tx/%s
1115
REACT_APP_FOREIGN_EXPLORER_TX_TEMPLATE=https://blockscout.com/eth/kovan/tx/%s
1216
REACT_APP_HOME_EXPLORER_ADDRESS_TEMPLATE=https://blockscout.com/poa/sokol/address/%s
@@ -21,3 +25,9 @@ REACT_APP_FOREIGN_GAS_PRICE_ORACLE_URL=https://gasprice.poa.network/
2125
REACT_APP_FOREIGN_GAS_PRICE_SPEED_TYPE=standard
2226
REACT_APP_FOREIGN_GAS_PRICE_FALLBACK=5000000000
2327
REACT_APP_FOREIGN_GAS_PRICE_UPDATE_INTERVAL=15000
28+
29+
# Default
30+
REACT_APP_DESCRIPTION="The POA cross-chain bridge serves as a method of transferring POA native tokens from the POA Network to the Ethereum network in a quick and cost-efficient manner."
31+
32+
# RSK
33+
#REACT_APP_DESCRIPTION="The TokenBridge serves as a method of transferring Bancor Network tokens between the Ethereum network to Rootstock network in a quick and cost-efficient manner."

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# POA Bridge - User Interface (UI) Application
22

3-
[![Build Status](https://travis-ci.org/patitonar/bridge-ui.svg?branch=master)](https://travis-ci.org/patitonar/bridge-ui)
3+
[![Build Status](https://travis-ci.org/poanetwork/bridge-ui.svg?branch=master)](https://travis-ci.org/poanetwork/bridge-ui)
44
[![Gitter](https://badges.gitter.im/poanetwork/poa-bridge.svg)](https://gitter.im/poanetwork/poa-bridge?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
5-
[![Coverage Status](https://coveralls.io/repos/github/patitonar/bridge-ui/badge.svg?branch=master)](https://coveralls.io/github/patitonar/bridge-ui?branch=master)
5+
[![Coverage Status](https://coveralls.io/repos/github/poanetwork/bridge-ui/badge.svg?branch=master)](https://coveralls.io/github/poanetwork/bridge-ui?branch=master)
66
[![dependencies Status](https://david-dm.org/poanetwork/bridge-ui/status.svg)](https://david-dm.org/poanetwork/bridge-ui)
77

88
Welcome to the POA Bridge! Following is an overview of the POA Bridge and Bridge UI Application, as well as [basic instructions for getting started](#getting-started).
@@ -165,6 +165,8 @@ REACT_APP_HOME_HTTP_PARITY_URL | http public rpc node for Foreign Network
165165
REACT_APP_HOME_NATIVE_NAME | name of the home native coin
166166
REACT_APP_HOME_NETWORK_NAME | name to be displayed for home network
167167
REACT_APP_FOREIGN_NETWORK_NAME | name to be displayed for foreign network
168+
REACT_APP_HOME_WITHOUT_EVENTS | `true` if home network doesn't support events
169+
REACT_APP_FOREIGN_WITHOUT_EVENTS | `true` if foreign network doesn't support events
168170
REACT_APP_HOME_EXPLORER_TX_TEMPLATE | template link to transaction on home explorer. `%s` will be replaced by transaction hash
169171
REACT_APP_FOREIGN_EXPLORER_TX_TEMPLATE | template link to transaction on foreign explorer. `%s` will be replaced by transaction hash
170172
REACT_APP_HOME_EXPLORER_ADDRESS_TEMPLATE | template link to address on home explorer. `%s` will be replaced by address
@@ -177,6 +179,7 @@ REACT_APP_FOREIGN_GAS_PRICE_ORACLE_URL | The URL used to get a JSON response fro
177179
REACT_APP_FOREIGN_GAS_PRICE_SPEED_TYPE | Gas Price speed (slow, standard, fast, instant)
178180
REACT_APP_FOREIGN_GAS_PRICE_FALLBACK | The gas price (in Wei) that is used if both the oracle and the fall back gas price specified in the Foreign Bridge contract are not available.
179181
REACT_APP_FOREIGN_GAS_PRICE_UPDATE_INTERVAL | An interval in milliseconds used to get the updated gas price value either from the oracle or from the Foreign Bridge contract.
182+
REACT_APP_DESCRIPTION | The meta description for the deployed bridge page
180183

181184
* Run `npm run start`
182185
* Make sure your web3 wallet (Nifty Wallet or MetaMask) is funded and connected to the POA Sokol Network (see step 2)

package-lock.json

Lines changed: 24 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"react-app-rewired": "^1.5.0",
2222
"react-copy-to-clipboard": "^5.0.1",
2323
"react-dom": "^16.2.0",
24+
"react-router": "^4.3.1",
2425
"react-router-dom": "^4.2.2",
2526
"react-scripts": "1.1.1",
2627
"react-transition-group": "^2.2.1",

public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
77
<meta name="theme-color" content="#000000">
88
<meta property="og:title" content="POA Bridge UI" />
9-
<meta property="og:description" content="The POA cross-chain bridge serves as a method of transferring POA native tokens from the POA Network to the Ethereum network in a quick and cost-efficient manner. " />
9+
<meta property="og:description" content="%REACT_APP_DESCRIPTION%" />
1010
<meta property="og:url" content="https://poanetwork.github.io/bridge-ui" />
1111
<meta property="og:type" content="website" />
1212
<meta property="og:image" content="/images/bridgeogimage.jpg">

src/App.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { Route } from 'react-router-dom'
44
import './assets/stylesheets/application.css';
55
import { Disclaimer } from './components'
66
import { ModalContainer } from './components'
7+
import { NoWallet } from './components'
78
import { setItem, getItem, DISCLAIMER_KEY } from './components/utils/localstorage'
89

910
export class App extends React.Component {
@@ -54,6 +55,7 @@ export class App extends React.Component {
5455
<Disclaimer
5556
onConfirmation={this.closeDisclaimer} />
5657
</ModalContainer>
58+
<NoWallet showModal={!showDisclaimer} />
5759
</div>
5860
)
5961
}

src/assets/images/i.png

4.33 KB
Loading

src/assets/images/i@2x.png

8.38 KB
Loading

src/assets/images/i@3x.png

12.4 KB
Loading

src/assets/stylesheets/application.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)