Skip to content
TalismanSocietyPublic

About

An ultra-secure self-custody Ethereum, Bittensor, Solana and Polkadot wallet for beginners and pros.

Topics

Resources

Code of conduct

Contributing

Stars

82 stars

Watchers

7 watching

Forks

Latest commit

 

History

2,489 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Talisman Wallet

Talisman

website-link discord-link chrome-users-count
chrome-web-store-link firefox-addon-link

Multi-Chain Made Easy with Talisman Wallet.
An ultra-secure Ethereum, Polkadot and Solana wallet for both beginners and pros.

What's inside?

This repo contains the source code for Talisman Wallet.
If you want to use Talisman, you can install it for your browser by following this link.

If you would like to build Talisman from source, please continue reading:

System requirements

If you haven't already, you will first need to install Node.js on your system.
This repo uses corepack and pnpm to manage dependencies.
Corepack is distributed by default with all recent Node.js versions.

Pnpm is a fast, disk space efficient javascript package manager.
Corepack lets you use pnpm without having to install a specific version of it.

Once you have installed Node.js, run corepack enable to turn it on, then follow the Getting started instructions to continue.

Getting started (wallet extension development)

  1. Install Node.js and enable corepack, as per the System Requirements section.

  2. Clone the repo.

    git clone git@github.com:TalismanSociety/talisman.git

  3. Change to the repo directory.

    cd talisman

  4. Install nodejs

    nvm install

  5. Install dependencies.

    pnpm install

  6. Start the dev server (uses WXT/Vite for fast rebuilds and HMR).

    pnpm dev:extension

    This opens Chrome with the extension loaded, in a persistent profile (~/.talisman-dev/chrome-data). With NOBROWSER=1 pnpm dev:extension, no browser opens: load apps/extension/dist/chrome-mv3-dev yourself with Load unpacked in chrome://extensions (turn on Developer mode first).

  7. Change some code! The extension will hot-reload automatically.

Firefox Development

To develop for Firefox instead:

pnpm dev:extension:firefox

Then load the extension from apps/extension/dist/firefox-mv3-dev in Firefox's about:debugging page. The dev build needs Firefox 147 or later, because it loads its scripts from the local dev server.

Apps and packages

  • apps/extension: the non-custodial Talisman Wallet browser extension (built with WXT/Vite). See ARCHITECTURE.md.
  • apps/balances-bench: benchmark harness for @talismn/balances
  • packages/*: the @talismn/* libraries used by the extension, published to npm. Each has a README.
  • config/tsconfig: shared tsconfig.jsons used throughout the monorepo

AI agents: start with AGENTS.md.

All our apps and packages are 100% TypeScript.

Writing and running tests

  • Testing is carried out with Vitest.
  • Put tests in *.test.ts(x) or *.spec.ts(x) files, next to the code or in a __tests__ folder.
  • Follow the pattern in apps/extension/src/core/handlers/Extension.spec.ts or apps/extension/src/core/domains/signing/__tests__/requestsStore.spec.ts
  • Run unit tests with pnpm test, or pnpm test <path> for one file.
  • End-to-end tests use Playwright (playwright/). Build the extension, start the local EVM devnet with pnpm devnet:up, then run pnpm test:e2e.
  • E2E tests load apps/extension/dist/chrome-mv3, else chrome-mv3-dev, and warn when the other build is newer. Set E2E_EXTENSION_PATH=<build dir> to choose the build.
  • E2E tests read apps/extension/.env. Add the E2E_GANDALF_INSTALL_ID and E2E_GANDALF_PRIVATE_KEY lines that pnpm chore:register-gandalf-e2e prints, else the tests are slow and flaky. Some tests need internet (MetaMask test dapp).
  • Visual regression snapshots are *-chromium-linux.png. Update them with the Update Visual Regression Snapshots workflow (.github/workflows/update-snapshots.yml), not on macOS: run it from the branch to update, e.g. gh workflow run update-snapshots.yml --ref <branch>. CI runs them, but they cannot fail the build. To skip them locally, add --grep-invert "Visual Regression".
  • HTTP API health checks live in a separate repository, TalismanSociety/api-tests.

Code quality

We use Biome for linting and formatting across the monorepo.

  • Format code: pnpm format
  • Lint and format check: pnpm check (pnpm check:fix applies fixes). pnpm check does not fail on warnings, but CI and the pre-commit hook do. To check your changes as CI does, run pnpm biome check --error-on-warnings --changed --since=origin/dev --no-errors-on-unmatched.
  • Pre-commit hook: runs biome check --staged --error-on-warnings on the staged files. It only checks: it does not change or stage files. Run pnpm check:fix, then stage the fixes.

If you're using VS Code, install the Biome extension for automatic formatting on save.

i18n (wallet extension development)

We use i18next in the wallet to make it available in a bunch of languages.

When building UI features, please follow the following spec to ensure they're translatable:

  1. Import the useTranslation hook into your React components:

    import { useTranslation } from "react-i18next";
  2. Use the hook in your component to get access to the t function:

    const { t } = useTranslation();
  3. Wrap any user-visible language in your component with the t function:

    return (
      <div className="flex flex-col items-start">
        <div className="text-base">{t("Account Assets")}</div>
        <div className="text-sm">
          {t("Account has {{assetCount}} assets", { assetCount: assets.length })}
        </div>
      </div>
    );
  4. If you want to include any react components in your translation, you will need to use the Trans component:

    import { useTranslation, Trans } from "react-i18next"
    
    const { t } = useTranslation()
    return (
      <Trans
        {/* DO NOT FORGET THIS `t` PROP! */}
        t={t}
        defaults="Your <Highlight>{{name}} <Tooltip /></Highlight> address"
        values={{ name: chain.name }}
        components={{
          Highlight: <span className="text-body" />,
          Tooltip: (
            <Tooltip>
              <TooltipTrigger>
                <InfoIcon className="hover:text-body inline align-middle text-xs" />
              </TooltipTrigger>
              <TooltipContent>
                {t(
                  "Only use this address for receiving assets on the {{name}} network.",
                  {
                    name: chain.name,
                  }
                )}
              </TooltipContent>
            </Tooltip>
          ),
        }}
    )
  5. The wallet loads its translations from apps/extension/public/locales/. These files are committed, and only pnpm chore:download-translations writes them (it needs SIMPLE_LOCALIZE_API_KEY).

    • i18next::translator: missingKey en common <i18n-key> is expected for a new string. The English text is the key, so the wallet shows it. CI uploads new strings to SimpleLocalize, and the next download adds them to public/locales/.
    • locales/en/common.json with net::ERR_FILE_NOT_FOUND: a file in public/locales/ is missing. Restore it with git checkout -- apps/extension/public/locales.

Scripts

  • chore:update-translations : extracts the i18n strings from the code into apps/extension/.i18next-parser/locales/. CI uploads that folder to SimpleLocalize. The wallet does not read it.
  • chore:download-translations : downloads the translations from SimpleLocalize into apps/extension/public/locales/

Development

  • dev : starts the extension dev server (alias for dev:extension)
  • dev:extension : starts WXT dev server with hot module replacement for Chrome
  • dev:extension:firefox : starts WXT dev server for Firefox

Production Builds

  • build:extension : builds the extension for Chrome (outputs to dist/chrome-mv3)
  • build:extension:firefox : builds the extension for Firefox (outputs to dist/firefox-mv3)
  • build:extension:prod : production Chrome build, with source map upload to PostHog
  • build:extension:prod:firefox : production Firefox build via Docker (reproducible)
  • build:extension:canary : canary Chrome build for internal testing
  • build:extension:canary:firefox : canary Firefox build for internal testing

Firefox Production Builds

Firefox production builds use a two-pass Docker build to ensure reproducibility:

  1. Pass 1: Build from repo → generates sources.zip
  2. Pass 2: Rebuild from sources.zip → produces final deliverables

This guarantees that the shipped extension is built from the exact sources that are shipped, which is what Firefox Add-on reviewers will do. The build produces byte-identical output with matching SHA-256 checksums.

# Build Firefox production extension (requires Docker with network access)
pnpm build:extension:prod:firefox

# Verify the build is reproducible
./scripts/verify-reproducible-build.sh

See FIREFOX_SOURCE_CODE_REVIEW.md for reviewer instructions.

Update packages

# Make changes, and then run:
pnpm changeset
# Select the packages which have been modified and write a commit message

Security disclosures

If you find a security issue or exploit, please email us at security@talisman.xyz. Please DO NOT create an issue or PR in this repo for security issues.

License

The source code in this repository is licensed under the Talisman License, a source-available license which permits use, copying, and modification for non-commercial purposes only. Commercial use requires a separate license from the Paraverse Foundation.

Exceptions: packages/orb and packages/substrate-vrf are licensed under MIT (see the LICENSE file in each package).

This license applies to this repository only; other repositories in the TalismanSociety organization are licensed under their own terms.

By contributing to this repository, you agree to the contribution terms set out in the Contribution Guidelines.

About

An ultra-secure self-custody Ethereum, Bittensor, Solana and Polkadot wallet for beginners and pros.

Topics

Resources

Code of conduct

Contributing

Stars

82 stars

Watchers

7 watching

Forks

Used by

Contributors

Languages