This repository is outdated.
For up-to-date information, please see tut-8 and the instructions for Testing Reach programs in the browser.
What follows is outdated, is kept purely for historical purposes, and may be deleted.
Do the following things:
In the src
folder:
REACH_CONNECTOR_MODE=ALGO reach react
Get our fork:
git clone https://github.com/reach-sh/algosigner
cd algosigner
git checkout localhost-3
(The following is simply abridged from the algosigner readme:)
Build it:
## XXX: using compiler from reach-lang commit 9313608b2b53db55fff0670c6ad1daf25a5bdee7
npm install # only needed the first time
(cd src && ../reach compile) # whenever you change the .rsh
npm run build # any time you rebuild
Install it:
First time:
- chrome://extensions
- toggle on "Developer mode"
- Click "Load unpacked"
On rebuild:
- just click the little refresh arrow after you've done
npm run build
See SECRETS.md for Alice's & Bob's account details.
- Click the AlgoSigner extension, click the top-right dropdown, select Localhost.
- Click Add account & add Alice's account by mnemonic
- Do the same for Bob
Open http://localhost:3000 in Chrome w/ AlgoSigner installed
If it alerts "no AlgoSigner", try a hard refresh. (CTRL+SHIFT+R)
Press CTRL+C in the terminal running the dev server to kill it.
To kill the algorand-devnet, in the src
folder, run:
reach react-down