Chrome extension wallet for Nockchain. Manage accounts, sign transactions, and interact with Nockchain dApps.
- Node.js 18+
- Chrome browser
# Clone
git clone <repo-url>
cd <project-folder>
# Install dependencies
npm install
# Build extension
npm run build- Open Chrome →
chrome://extensions - Enable "Developer mode" (top right)
- Click "Load unpacked"
- Select the
dist/folder
The extension icon should appear in your toolbar.
npm run devAfter changes, click the refresh icon in chrome://extensions to reload.
npm run buildWASM binaries are pre-built and included in @nockchain/sdk. No build required.
When you make changes to @nockchain/rose-wasm, do not use file: dependencies for Rose. Instead, publish to a local npm registry and consume via normal semver versions (so the repo can be checked in using npm-style deps).
Start a local registry:
npm i -g verdaccio
verdaccio --listen 4873Point only the @nockbox scope at Verdaccio:
npm config set @nockbox:registry http://localhost:4873Create a local registry user and login:
npm adduser --registry http://localhost:4873
npm login --registry http://localhost:4873- Publish
@nockchain/rose-wasmfrom your localrose-wasmrepo checkout:
# in the rose-wasm package directory
npm version 0.1.3 --no-git-tag-version
npm publish --registry http://localhost:4873- Bump + publish
@nockchain/sdk(this repo’ssdk/):
cd sdk
# update sdk/package.json:
# - "version": "0.1.2"
# - "@nockchain/rose-wasm": "0.1.3"
npm run build
npm publish --registry http://localhost:4873- Consume in Rose using normal npm deps (no
file:):
cd ..
# update package.json:
# - "@nockchain/sdk": "0.1.2"
npm installnpm view @nockchain/rose-wasm version --registry http://localhost:4873
npm view @nockchain/sdk version --registry http://localhost:4873
npm ls @nockchain/sdk @nockchain/rose-wasm