-
Notifications
You must be signed in to change notification settings - Fork 17
docs: add testing #303
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Cafe137
wants to merge
2
commits into
master
Choose a base branch
from
docs/testnet
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
docs: add testing #303
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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` | ||
|
|
||
| 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 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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)" | ||
| ``` | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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 installwhen you usenpxas it will prompt the user to install the package if it won't find it ;-)