Safe{Wallet} – smart account wallet
  • TypeScript 90.7%
  • JavaScript 7.3%
  • CSS 1.2%
  • Shell 0.4%
  • HTML 0.3%
  • Other 0.1%
Find a file
Daniel Dimitrov 4e0b23eb1d
chore: pin GitHub Actions to commit SHAs (#7838)
* chore: pin GitHub Actions to commit SHAs

Pin every third-party action under .github/workflows and .github/actions
to a 40-char commit SHA with a trailing version comment, per GitHub's
security hardening guidance.

anthropics/claude-code-action is bumped from the (long-stale) @beta tag
to v1.0.99, which also requires renaming the `direct_prompt` input to
`prompt`. chromaui/action is moved off the floating @latest tag onto
v16.9.1.

Resolves: WA-2301

* chore: bump npmMinumalAgeGate to 7 days

* chore: set chromaui/action to v 16.8.0
2026-05-11 11:32:13 +02:00
.claude feat(web): redesign accounts page (#7678) 2026-04-20 14:10:22 +02:00
.cursor/rules fix(e2e): add and update tests for the actions panel task (#7233) 2026-03-04 16:19:57 +01:00
.github chore: pin GitHub Actions to commit SHAs (#7838) 2026-05-11 11:32:13 +02:00
.husky chore: fix lint-staged running in pre-push instead of pre-commit (#7375) 2026-03-10 13:58:36 +01:00
.specify chore: migrate tx-builder from safe-apps repo to this monorepo (#6953) 2026-01-22 12:43:50 +01:00
.vscode Refactor Cypress tests: address book and balance tests (#2502) 2023-09-11 08:13:28 +02:00
.yarn/patches chore(mobile): upgrade Tamagui from v1 to v2 (#7497) 2026-03-20 16:39:59 +01:00
apps chore(deps): bump axios from 1.15.2 to 1.16.0 (#7805) 2026-05-08 12:05:17 +02:00
config chore: bump Safe SDK packages to latest versions (#7617) 2026-04-17 13:31:19 +02:00
docs tests(mobile): e2e coverage for WalletConnectGate flows (#7760) 2026-04-28 10:35:30 +02:00
expo-plugins/notification-service-ios chore: fix lint-staged to run prettier on staged files only (#7542) 2026-03-26 17:11:21 +01:00
packages chore: regenerate CGW schema (#7824) 2026-05-07 16:39:57 +02:00
scripts tests: improve test quality by removing as-any casts, dead tests, and fetch mock anti-patterns (#7501) 2026-03-20 17:47:17 +01:00
specs feat(web): enhance proposer functionality with nested safe support (#7028) 2026-02-18 15:10:37 +01:00
tools/codemods/migrate-feature refactor: optimize useLoadFeature with shared registry and reduced re-renders (#7154) 2026-02-12 16:05:20 +01:00
.codescene.yml feat(web): Epic: Spaces (#7168) 2026-03-19 15:44:20 +01:00
.editorconfig chore: add .editorconfig for consistent formatting (#6503) 2025-10-20 08:39:18 +02:00
.gitattributes chore: Normalize line endings to LF (#6259) 2025-09-02 08:38:33 +02:00
.gitignore chore: split AGENTS.md across the monorepo to fix size warning (#7785) 2026-04-30 14:35:12 +02:00
.lintstagedrc.mjs chore: fix lint-staged to run prettier on staged files only (#7542) 2026-03-26 17:11:21 +01:00
.nvmrc chore(ci): enforce Node 24.14.0 and unify mobile CI setup (#7469) 2026-03-18 17:33:02 +01:00
.prettierignore chore: add Turborepo with remote caching (#7697) 2026-04-22 18:53:53 +02:00
.prettierrc chore: Normalize line endings to LF (#6259) 2025-09-02 08:38:33 +02:00
.yarnrc.yml chore: pin GitHub Actions to commit SHAs (#7838) 2026-05-11 11:32:13 +02:00
AGENTS.md chore: split AGENTS.md across the monorepo to fix size warning (#7785) 2026-04-30 14:35:12 +02:00
CLAUDE.md docs: clean up CLAUDE.md (#7394) 2026-03-12 08:42:28 +01:00
CONTRIBUTING.md docs(mobile): move docs to correct locations 2025-02-12 11:11:47 +00:00
Dockerfile Chore: fix docker build (#4740) 2025-01-07 13:42:53 +01:00
LICENSE Chore: copy the LICENSE back in the monorepo root (#4769) 2025-01-14 11:39:06 +01:00
package.json tests(mobile): e2e coverage for WalletConnectGate flows (#7760) 2026-04-28 10:35:30 +02:00
README.md docs: add poem to README (#7355) 2026-03-10 17:51:51 +01:00
turbo.json chore: add Turborepo with remote caching (#7697) 2026-04-22 18:53:53 +02:00
yarn.config.cjs feat(mobile): upgrade Expo SDK to v55 (#7433) 2026-03-18 09:29:16 +01:00
yarn.lock chore(deps): bump axios from 1.15.2 to 1.16.0 (#7805) 2026-05-08 12:05:17 +02:00

Safe{Wallet}

Safe{Wallet} monorepo

🌐 Safe{Wallet} web app📱 Safe{Wallet} mobile app

Overview

Welcome to the Safe{Wallet} monorepo! Safe (formerly Gnosis Safe) is a multi-signature smart contract wallet for Ethereum and other EVM chains, requiring multiple signatures to execute transactions.

This repository houses both web and mobile applications along with shared packages, managed under a unified structure using Yarn Workspaces. The monorepo setup simplifies dependency management and ensures consistent development practices across projects.

Key components

  • apps/web - Next.js web application (detailed documentation)
  • apps/mobile - Expo/React Native mobile application (detailed documentation)
  • packages/store - Shared Redux store used by both platforms
  • packages/utils - Shared utilities and TypeScript types
  • config/ - Shared configuration files

Important

For detailed setup instructions and platform-specific development guides, please refer to the dedicated README files:

Getting started

To get started, ensure you have the required tools installed and follow these steps:

Prerequisites

  • Node.js: Install the latest stable version from Node.js.
  • Yarn: Use Yarn version 4.5.3 or later

to install it with the latest node version you can simply do

corepack enable

and then just run

yarn

This will install the required version of yarn and resolve all dependencies.

Note

Corepack is a tool to help with managing versions of your package managers. It exposes binary proxies for each supported package manager that, when called, will identify whatever package manager is configured for the current project, download it if needed, and finally run it.

Initial setup

  1. Clone the repository:
git clone <repo-url>
cd monorepo
  1. Install dependencies:
yarn install

Quick start commands

# Run web app in development mode
yarn workspace @safe-global/web dev

# Run mobile app in development mode
yarn workspace @safe-global/mobile start

# Run tests for web
yarn workspace @safe-global/web test

# Run Storybook for web
yarn workspace @safe-global/web storybook

Tip

For comprehensive setup instructions, environment variables, testing, and platform-specific workflows, see:

  • Web App README - Environment setup, Cypress E2E tests, Storybook, and more
  • Mobile App README - iOS/Android setup, Maestro E2E tests, Expo configuration, and more

Monorepo commands

Here are some essential commands to help you navigate the monorepo:

Workspace management

  • Run a script in a specific workspace:
yarn workspace <workspace-name> <script>

Example:

yarn workspace @safe-global/web dev
  • Add a dependency to a specific workspace:
yarn workspace <workspace-name> add <package-name>
  • Remove a dependency from a specific workspace:
yarn workspace <workspace-name> remove <package-name>

Note

Yarn treats commands that contain a colon as global commands. For example if you have a command in a workspace that has a colon and there isn't another workspace that has the same command, you can run the command without specifying the workspace name. For example:

yarn cypress:open

is equivalent to:

yarn workspace @safe-global/web cypress:open

Linting, formatting, and type-checking

  • Run ESLint across all workspaces:
yarn lint
  • Run Prettier to check formatting:
yarn prettier
  • Run type-check for a workspace:
yarn workspace @safe-global/web type-check
yarn workspace @safe-global/mobile type-check

Testing

  • Run unit tests across all workspaces:
yarn test
  • Run E2E tests (web only):
yarn workspace @safe-global/web cypress:open  # Interactive mode
yarn workspace @safe-global/web cypress:run   # Headless mode

Contributing

Adding a new workspace

  1. Create a new directory under apps/ or packages/.
  2. Add a package.json file with the appropriate configuration.
  3. Run:
yarn install

Best practices

  • Use Yarn Workspaces commands for managing dependencies.
  • Ensure type-check, lint, prettier, and tests pass before pushing changes.
  • Follow the semantic commit message guidelines.
  • For AI contributors, see AGENTS.md for detailed guidelines.

Tools & configurations

  • Husky: Pre-commit hooks for linting, formatting, and type-checking.
  • ESLint & Prettier: Enforce coding standards and formatting.
  • Jest: Unit testing framework.
  • Cypress: E2E testing for the web app.
  • Storybook: Component documentation and development for the web app.
  • Expo: Mobile app framework for the mobile workspace.
  • Next.js: React framework for the web workspace.
  • Tamagui: UI component library for the mobile app.

Release process

For information on releasing the web app, see the Automated Release Procedure.

Ode to the repo

In ages past when Gnosis laid the founding stone,
A vault was wrought that no single key could own.
Where signatures must gather ere the gate will yield,
M-of-N doth guard the treasure, sworn and sealed.

Now Yarn doth wind its threads through hall and bower,
Binding web and mobile in a single tower.
Redux keeps the ledger, RTK Query rides afar,
Returning with the fetched gold beneath the evening star.

Chain by chain the watchers set their vigil wide,
Across th' EVM kingdoms, ever at the Safe's own side.
Storybook doth chronicle each component's tale,
And Cypress walks the paths where lesser tests would fail.

No `any` types shall darken these well-guarded lands —
That ancient law doth hold by Prettier's own hands.
Feature flags like waypoints mark what lies ahead,
And lazy loads awaken only where the road doth tread.

Long the name hath wandered — Gnosis once, now Safe it stands,
Yet still the vow endureth, written into typed commands:
That what you hold stays guarded, deep beyond all theft or flame,
For this the codebase liveth — and security its name.

If you have any questions or run into issues, feel free to open a discussion or contact the maintainers. Happy coding! 🚀