-
Your chequebook is either not deployed or funded. Run the below commands to get your address and deposit
ETH. Then visit the BZZaar here{' '}
@@ -43,15 +27,14 @@ const ChequebookDeployFund = (props: Props): ReactElement => (
- {props.nodeHealth?.status !== 'ok' ? (
-
- We cannot connect to your nodes debug API at{' '}
- {props.debugApiHost}. Please check the following to troubleshoot
- your issue.
-
- } aria-controls="panel1a-content" id="panel1a-header">
- Troubleshoot
-
-
-
-
-
- Check the status of your node by running the below command to see if your node is running.
-
-
-
- If your node is running, check your firewall settings to make sure that port 1635 (or your
- custom specified port) is bound to localhost. If your node is not running try executing the
- below command to start your bee node
-
-
- Your debug node API should never be completely open to the internet. If you want to connect
- remotely, make sure your firewall settings are set to only allow specific trusted IP addresses
- and block all other ports. A simple google search for "what is my ip" will show you
- your computers public IP address to allow.
-
-
-
Run the commands to validate your node is running and see the log output.
-
-
- Lastly, check your nodes configuration settings to validate the debug API is enabled and the
- Cross Origin Resource Sharing (CORS) setting is configured to allow your host. Config parameter{' '}
- debug-api-enable must be set to true and{' '}
- cors-allowed-origins must be set to your host domain or IP. If edits are made
- to the configuration run the restart command below for changes to take effect.
-
-
-
-
-
-
-
- ) : null}
-
+
+ We cannot connect to your nodes debug API at {debugApiHost}. Please
+ check the following to troubleshoot your issue.
+
+ } aria-controls="panel1a-content" id="panel1a-header">
+ Troubleshoot
+
+
+
+
+
Check the status of your node by running the below command to see if your node is running.
+
+
+ If your node is running, check your firewall settings to make sure that port 1635 (or your custom
+ specified port) is bound to localhost. If your node is not running try executing the below command
+ to start your bee node
+
+
+ Your debug node API should never be completely open to the internet. If you want to connect
+ remotely, make sure your firewall settings are set to only allow specific trusted IP addresses and
+ block all other ports. A simple google search for "what is my ip" will show you your
+ computers public IP address to allow.
+
+
+
Run the commands to validate your node is running and see the log output.
+
+
+ Lastly, check your nodes configuration settings to validate the debug API is enabled and the Cross
+ Origin Resource Sharing (CORS) setting is configured to allow your host. Config parameter{' '}
+ debug-api-enable must be set to true and{' '}
+ cors-allowed-origins must be set to your host domain or IP. If edits are made to
+ the configuration run the restart command below for changes to take effect.
+
+
+
+
+
+
+
)
diff --git a/src/pages/status/SetupSteps/EthereumConnectionCheck.tsx b/src/pages/status/SetupSteps/EthereumConnectionCheck.tsx
index 57fe9ab..f7a98f2 100644
--- a/src/pages/status/SetupSteps/EthereumConnectionCheck.tsx
+++ b/src/pages/status/SetupSteps/EthereumConnectionCheck.tsx
@@ -1,56 +1,40 @@
import type { ReactElement } from 'react'
import { Typography } from '@material-ui/core/'
-import { CheckCircle, Warning } from '@material-ui/icons/'
import EthereumAddress from '../../../components/EthereumAddress'
-import type { NodeAddresses } from '@ethersphere/bee-js'
-interface Props {
- nodeAddresses: NodeAddresses | null
- isLoadingNodeAddresses: boolean
-}
+type Props = StatusEthereumConnectionHook
-export default function EthereumConnectionCheck(props: Props): ReactElement {
- return (
-
-
Connect to the ethereum blockchain.
-
- {
- // FIXME: this should be broken up
- /* eslint-disable no-nested-ternary */
- props.nodeAddresses?.ethereum ? (
-
-
- Your connected to the Ethereum network
-
- ) : props.isLoadingNodeAddresses ? null : (
-
-
- Your not connected to the Ethereum network.
-
- Your Bee node must have access to the Ethereum blockchain, so that it can interact and deploy your
- chequebook contract. You can run{' '}
-
- your own Goerli node
-
- , or use a provider such as{' '}
-
- rpc.slock.it/goerli
- {' '}
- or{' '}
-
- Infura
-
- . By default, Bee expects a local Goerli node at http://localhost:8545. To use a provider instead,
- simply change your --swap-endpoint in your configuration file.
-
+ Your Bee node must have access to the Ethereum blockchain, so that it can interact and deploy your chequebook
+ contract. You can run{' '}
+
+ your own Goerli node
+
+ , or use a provider such as{' '}
+
+ rpc.slock.it/goerli
+ {' '}
+ or{' '}
+
+ Infura
+
+ . By default, Bee expects a local Goerli node at http://localhost:8545. To use a provider instead, simply change
+ your --swap-endpoint in your configuration file.
+
)
}
diff --git a/src/pages/status/SetupSteps/NodeConnectionCheck.tsx b/src/pages/status/SetupSteps/NodeConnectionCheck.tsx
index 64cdc57..1bc871e 100644
--- a/src/pages/status/SetupSteps/NodeConnectionCheck.tsx
+++ b/src/pages/status/SetupSteps/NodeConnectionCheck.tsx
@@ -1,35 +1,29 @@
import React, { ReactElement } from 'react'
import { Typography, Accordion, AccordionSummary, AccordionDetails } from '@material-ui/core/'
-import { CheckCircle, Error, ExpandMoreSharp } from '@material-ui/icons/'
+import { ExpandMoreSharp } from '@material-ui/icons/'
import ConnectToHost from '../../../components/ConnectToHost'
import CodeBlockTabs from '../../../components/CodeBlockTabs'
+import { apiHost } from '../../../constants'
-interface Props {
- nodeApiHealth: boolean
- apiHost: string
-}
+type Props = StatusHookCommon
+
+export default function NodeConnectionCheck({ isLoading, isOk }: Props): ReactElement | null {
+ if (isLoading) return null
-export default function NodeConnectionCheck(props: Props): ReactElement {
return (
- {!props.nodeApiHealth ? (
+ {!isOk && (
- We cannot connect to your nodes API at {props.apiHost}. Please
- check the following to troubleshoot your issue.
+ We cannot connect to your nodes API at {apiHost}. Please check the
+ following to troubleshoot your issue.
} aria-controls="panel1a-content" id="panel1a-header">
Troubleshoot
@@ -64,7 +58,7 @@ export default function NodeConnectionCheck(props: Props): ReactElement {
- ) : null}
+ )}
)
diff --git a/src/pages/status/SetupSteps/PeerConnection.tsx b/src/pages/status/SetupSteps/PeerConnection.tsx
index c38852b..bb4cd6b 100644
--- a/src/pages/status/SetupSteps/PeerConnection.tsx
+++ b/src/pages/status/SetupSteps/PeerConnection.tsx
@@ -1,53 +1,45 @@
-import React, { ReactElement } from 'react'
+import type { ReactElement } from 'react'
import { Typography } from '@material-ui/core/'
-import { CheckCircle, Warning } from '@material-ui/icons/'
-import { Topology } from '@ethersphere/bee-js'
-interface Props {
- nodeTopology: Topology | null
- isLoadingNodeTopology: boolean
-}
+type Props = StatusTopologyHook
-export default function PeerConnection(props: Props): ReactElement {
- return (
-
-
Connect to Peers
-
- html_url
- {
- // FIXME: this should be broken up
- /* eslint-disable no-nested-ternary */
- props.nodeTopology?.connected && props.nodeTopology?.connected > 0 ? (
-
-
- Your connected to {props.nodeTopology.connected} peers!
-
)
+
+ if (isOk) {
+ return (
+ <>
+ You are connected to peers!
+ {peers}
+ >
+ )
+ }
+
+ return (
+ <>
+ Your node is not connected to any peers
+ {peers}
+ >
+ )
}
diff --git a/src/pages/status/SetupSteps/VersionCheck.tsx b/src/pages/status/SetupSteps/VersionCheck.tsx
index f0887b2..89ac0fd 100644
--- a/src/pages/status/SetupSteps/VersionCheck.tsx
+++ b/src/pages/status/SetupSteps/VersionCheck.tsx
@@ -1,81 +1,68 @@
-import React, { ReactElement } from 'react'
+import type { ReactElement } from 'react'
import { Typography } from '@material-ui/core/'
-import { CheckCircle, Warning } from '@material-ui/icons/'
import CodeBlockTabs from '../../../components/CodeBlockTabs'
-import { Health } from '@ethersphere/bee-js'
-interface Props {
- beeRelease: LatestBeeRelease | null
- isLoadingBeeRelease: boolean
- nodeHealth: Health | null
-}
+type Props = StatusNodeVersionHook
-export default function VersionCheck(props: Props): ReactElement {
- return (
-
-
- Check to make sure the latest version of{' '}
-
- Bee
- {' '}
- is running
-
- {
- // FIXME: this should be broken up
- /* eslint-disable no-nested-ternary */
- props.beeRelease && props.beeRelease.name === `v${props.nodeHealth?.version?.split('-')[0]}` ? (
-
-
- Your running the latest version of Bee
-
- ) : props.isLoadingBeeRelease ? null : (
-
-
-
- Your Bee version is out of date. Please update to the{' '}
-
- latest
- {' '}
- before continuing. Rerun the installation script below to upgrade. Reference the docs for help with
- updating.{' '}
-
- Docs
-
-
-
-