|
@ -16,25 +16,14 @@ import styles from './App.scss' |
|
|
|
|
|
|
|
|
class App extends Component { |
|
|
class App extends Component { |
|
|
componentWillMount() { |
|
|
componentWillMount() { |
|
|
const { |
|
|
const { fetchTicker, fetchInfo, fetchSuggestedNodes, fetchDescribeNetwork } = this.props |
|
|
fetchTicker, |
|
|
|
|
|
fetchInfo, |
|
|
|
|
|
fetchChannels, |
|
|
|
|
|
fetchSuggestedNodes, |
|
|
|
|
|
fetchBalance, |
|
|
|
|
|
fetchDescribeNetwork |
|
|
|
|
|
} = this.props |
|
|
|
|
|
|
|
|
|
|
|
// fetch price ticker
|
|
|
// fetch price ticker
|
|
|
fetchTicker() |
|
|
fetchTicker() |
|
|
// fetch node info
|
|
|
// fetch node info
|
|
|
fetchInfo() |
|
|
fetchInfo() |
|
|
// fetch nodes channels
|
|
|
|
|
|
fetchChannels() |
|
|
|
|
|
// fetch suggested nodes list from zap.jackmallers.com/suggested-peers
|
|
|
// fetch suggested nodes list from zap.jackmallers.com/suggested-peers
|
|
|
fetchSuggestedNodes() |
|
|
fetchSuggestedNodes() |
|
|
// fetch nodes balance
|
|
|
|
|
|
fetchBalance() |
|
|
|
|
|
// fetch LN network from nides POV
|
|
|
// fetch LN network from nides POV
|
|
|
fetchDescribeNetwork() |
|
|
fetchDescribeNetwork() |
|
|
} |
|
|
} |
|
@ -104,8 +93,6 @@ App.propTypes = { |
|
|
fetchInfo: PropTypes.func.isRequired, |
|
|
fetchInfo: PropTypes.func.isRequired, |
|
|
fetchTicker: PropTypes.func.isRequired, |
|
|
fetchTicker: PropTypes.func.isRequired, |
|
|
clearError: PropTypes.func.isRequired, |
|
|
clearError: PropTypes.func.isRequired, |
|
|
fetchChannels: PropTypes.func.isRequired, |
|
|
|
|
|
fetchBalance: PropTypes.func.isRequired, |
|
|
|
|
|
fetchDescribeNetwork: PropTypes.func.isRequired, |
|
|
fetchDescribeNetwork: PropTypes.func.isRequired, |
|
|
fetchSuggestedNodes: PropTypes.func.isRequired, |
|
|
fetchSuggestedNodes: PropTypes.func.isRequired, |
|
|
|
|
|
|
|
|