Skip to content

reach-sh/algosigner-react-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WARNING: OUTDATED!

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:

Run the dev server & algorand-devnet (incl. local proxy)

In the src folder:

REACH_CONNECTOR_MODE=ALGO reach react

Install our fork of AlgoSigner

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

Add Alice's & Bob's accounts to AlgoSigner

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

Do the thing, in the browser

Open http://localhost:3000 in Chrome w/ AlgoSigner installed

If it alerts "no AlgoSigner", try a hard refresh. (CTRL+SHIFT+R)

Clean up

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published