This Turborepo monorepo is home to the Z3US browser extension wallet for the Radix DLT network.
- Z3US wallet is in beta and in active development.
- Z3US wallet extension code is unaudited, no audit is planned at this stage.
Make sure you have **Node V15.5.0 ** installed
nvm install 15
nvm use 15
Clone repo
git clone [email protected]:z3us-dapps/z3us.git
Go to z3us
directory run
yarn install --ignore-engines
Now build the extension using
yarn build
You will see a dist
folder generated inside apps/extension
In Chrome browser, go to chrome://extensions page and switch on developer mode. This enables the ability to locally install a Chrome extension.
Now click on the LOAD UNPACKED
and browse to apps/extension/dist/chrome
, this will install the Z3US wallet chrome extension.
Before adding to firefox some changes to manifest file must be made:
- Remove all
use_dynamic_url
keys from all entries inweb_accessible_resources
"web_accessible_resources": [
{
"matches": [
"https://*/*"
],
"resources": [
"popup-theme-dark.html",
"popup-theme-light.html",
"popup-theme-system.html",
"assets/*"
],
- "use_dynamic_url": false
},
{
"matches": [
"*://*.z3us.com/*"
],
"resources": [
"assets/browser-polyfill.js",
"assets/messanger.js",
"assets/inpage.js",
"assets/events.js",
"assets/content-script.ts.js"
],
- "use_dynamic_url": true
}
]
- Change
service_worker
toscripts
and wrap value in array paranthesis[]
"background": {
- "service_worker": "service-worker-loader.js",
+ "scripts": ["service-worker-loader.js"],
"type": "module"
},
- Create archive by compresing all the files
inside
the directoryapps/extension/dist
. - In the Firefox browser navigate to
about:debugging#/runtime/this-firefox
. - Click the button
Load temporary Add-on...
, then select an archive file you prepared.
Go to z3us/apps/website
directory run
yarn dev
Now visit the website running locally at localhost:4000
website
: Z3US Next.js website - localhost:4000extension
: Z3US wallet browser extension - Vite and React - localhost:8003
ui
: a shared React component library using stitches and radix uiyarn storybook
: storybook - localhost:6006
config
:eslint
configurations (includeseslint-config-next
andeslint-config-prettier
)tsconfig
:tsconfig.json
used throughout the monorepo
To build all apps and packages, run the following command:
yarn build
📜 License
Copyright (c) Z3US.