Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 61 additions & 0 deletions TESTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# Testing on testnet

## Creating a gift wallet

[Download node-funder](https://github.com/ethersphere/node-funder) which will be used to create gift wallets.

Make sure your Go version is 1.18 or above. Run `go version` to verify.

Set some environment variables:

```bash
export TESTNET_PRIVATE_KEY="..."
export TESTNET_RPC_ENDPOINT="https://goerli.infura.io/v3/..."
export NODE_FUNDER_PATH="<path to node-funder>"
```

Make sure you have the latest utility CLI version: `npm install --global cafe-tui`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't have to npm install when you use npx as it will prompt the user to install the package if it won't find it ;-)

Suggested change
Make sure you have the latest utility CLI version: `npm install --global cafe-tui`


Create a gift wallet with the command `npx cafe-tui funder gift` and make notes as it is not stored anywhere.

## Switching Bee to testnet

Overwrite the following values in `config.yaml` which is at `~/Library/Application Support/Swarm Desktop`:

```yaml
mainnet: false
data-dir: 'data-dir-testnet'
swap-enable: false
swap-endpoint: ''
resolver-options: 'https://goerli.infura.io/v3/...'
bootnode: '/dnsaddr/testnet.ethswarm.org
```

## Getting new Bee

Download the Bee binary under test from the [releases page](https://github.com/ethersphere/bee/releases)

Rename it to `bee` and move it to `~/Library/Application Support/Swarm Desktop`

## Running Desktop

Grab `swarm-desktop` source and run the following:

```bash
cd ui && npm install
cd .. && npm install
npm start
```

## Switching Dashboard to testnet

Grab `bee-dashboard` source and switch to branch `chore/testnet`. It contains the testnet `BZZ_TOKEN_ADDRESS` and
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmmm not sure about this approach of having a separate branch. I mean, it will soon be outdated as it won't be rebased. Having configuration options would be better...

`NETWORK_ID`.

Start it with `REACT_APP_BEE_DESKTOP_URL=http://localhost:3054 REACT_APP_BEE_DESKTOP_ENABLED=true npm start`

Open URL `http://localhost:3002/?v=YOUR_API_KEY` with your Desktop API key. You may use the following command on OSX:

```bash
open "http://localhost:3002/?v=$(cat ~/Library/Application\ Support/Swarm\ Desktop/api-key.txt)"
```