Securely manage your CSPR tokens, interact with dapps and sign transactions with Casper Wallet, the Go-To self-custody wallet for the Casper blockchain.
Casper Wallet Playground is a React webapp created as a developer tool to help test integration with various features available in Casper Wallet.
Open https://github.com/make-software/casper-wallet-playground
Clone this repository and run following commands from the repo root folder. NOTE: Node.js LTS is required.
npm install
npm run start
This will open webapp automatically in a new tab.
- Navigate
chrome://extensions/
in Chrome browser - Enable
Developer mode
(right top corner, at least for Chrome 98) - Click on
Load unpacked
button (left top corner) - Pick
build/chrome
folder frombuilds.zip
deliverable orbuilds
folder when building from sources.
To open as a tab:
- Open a new tab and use the link
chrome-extension://{paste ID here}/popup.html
- Navigate
about:debugging#/runtime/this-firefox
in Firefox browser - Click on
Load Temporary Add-on...
button. - Pick
build/firefox/manifest.json
file frombuilds.zip
deliverable orbuilds
folder when building from sources.
To open as a tab:
- Open new tab and fill the link
moz-extension://{paste Internal UUID here}/popup.html
- Open
build/safari
folder frombuilds.zip
orbuilds
folder when building from sources. - Double click on "Casper Wallet.app" file.
- Follow instructions and enable Casper Wallet in opened Extensions Preferences window.
- Open Safari and enable unsigned extensions. Extension should be available.
For more information please follow the link
Working on any macOS or Linux machine with NodeJS LTS installed.
Clone this repository and run following commands from the repo root folder. NOTE: Node.js LTS is required.
npm install
chmod +x scripts/*
Chrome:
npm run start:chrome
Firefox:
npm run start:firefox
Safari:
npm run start:safari
You can run all these commands in parallel.
Chrome:
npm run build:chrome
Firefox:
npm run build:firefox
Safari:
npm run build:safari
All at once:
npm run build:all
Developer Tools to power-up Redux development workflow or any other architecture which handles the state change.
It can be used as a browser extension (for Chrome, Edge and Firefox), as a standalone app or as a React component integrated in the client app.
You can read more about Redux DevTools on link https://github.com/reduxjs/redux-devtools
We are using redux devtool as separate local server. It can be started with devtools:redux
npm start script.
All npm start scripts, except Safari (start:chrome
, start:firefox
) for dev-environment, already include launching the redux dev tools on 8000
port for Chrome and 8001
port for Firefox.
You should install Redux DevTools browser extension and connect it to Redux DevTool local server
-
Install browser extension
- For Chrome - https://chrome.google.com/webstore/detail/redux-devtools/lmhkpmbekcpmknklioeibfkpmmfibljd?hl=en
- For Firefox - https://addons.mozilla.org/en-US/firefox/addon/reduxdevtools/
- Safari not supported 😢
-
Start npm script for browser you need. For example, run
npm run start:chrome
for Chrome -
Connect your extension with local redux dev server with steps:
- Open extension and click by right mouse button on it then pick
Redux DevTools
menu item and click onOpen Remote DevTools
- Open
Settings
of Redux DevTools app then selectuse local (custom) server
option and set hostname as alocalhost
and set a port depends on browser you need (8000
for Chrome and8001
for Firefox) - Click
Connect
button and enjoy 🙂
- Open extension and click by right mouse button on it then pick
Write tests into e2e/tests
folder.
There are a few options to run tests:
- In docker container
- Run docker and up containers.
docker compose up
ordocker-compose -f docker-compose.arm.yml up
for Apple M processors - Use npm scripts
npm run test:e2e:{chrome/firefox}:headless:{popup/onboarding}
depends on target browser and tests - To see what is happening inside the container, open your web browser and navigate to the URL http://localhost:7900 for Chrome and http://localhost:7901 for Firefox, enter the password
secret
, and run your test again
- Run docker and up containers.
- Locally on computer
- Use npm scripts
npm run test:e2e:chrome
ornpm run test:e2e:firefox
depends on target browser
- Use npm scripts