zodiaceco/zodiac-modifier-roles(新しいタブで開きます)
主要言語: TypeScript
Smart account toolkit for role-based access control
- star 数
- 144
- watcher 数
- 5
- fork 数
- 57
- issue 数
- 6
- 最終更新
- 2026/10/30
主要言語: TypeScript
Smart account toolkit for role-based access control
Important
This repository hosts Roles v3, which is not yet released for production. The contracts, the zodiac-roles-sdk in packages/sdk and the docs here may change in breaking ways.
Roles v2, the version in production today, and its tooling (including the zodiac-roles-sdk 4.x releases on npm) live at zodiaceco/zodiac-modifier-roles-v2.
The Roles Modifier belongs to the Zodiac collection of tools, which can be accessed through the Zodiac App available on Safe.
If you have any questions about Zodiac, join the Gnosis Guild Discord. Follow @GnosisGuild on Twitter for updates.
This modifier allows avatars to enforce granular, role-based, permissions for attached modules.
Modules that have been granted a role are able to unilaterally make calls to any approved addresses, approved functions, and using approved parameters.
The interface mirrors the relevant parts of the Safe's interface, so this contract can be placed between Safe modules and the Safe itself to enforce role-based permissions.
The contracts have been developed with Solidity 0.8.37 targeting evm version cancun.
assignRoles()execTransactionWithRole()Roles v3 is not yet deployed for production. The first release targets Ethereum, Optimism, Gnosis, Arbitrum, Base and Sepolia; Zodiac deploys it to further chains.
The production Roles v2 contracts, their addresses and the chains they are deployed on are listed at zodiaceco/zodiac-modifier-roles-v2.
.env.sample file is present (packages/evm), copy it to a .env file at the same location and fill in your keys.yarnyarn buildAfter that, you can start working on the different packages.
This monorepo uses yarn workspaces and is comprised of:
packages/evm/formal)zodiac-roles-sdk (the v3 version is unreleased; the published 4.x releases come from zodiac-modifier-roles-v2)zodiac-roles-sdk 4.x)personal_sign, EIP-712)Roles v3 has been audited by Côme du Crest (October 2026): report.
All contracts are WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
This repository is dual-licensed as follows:
All smart contracts and the web app in this repository are licensed under the Business Source License 1.1 (BUSL-1.1).
See LICENSE.md for full terms.
The SDK included in this repository is licensed under the GNU Lesser General Public License v3.0 or later (LGPL-3.0-or-later) and is available under open-source terms immediately.
These components are not subject to the BUSL restrictions.
The SDK package includes its own LICENSE file.
| Component Type | License Now | License After 2030-03-01 |
|---|---|---|
| Contracts | BUSL-1.1 | LGPL-3.0-or-later |
| App | BUSL-1.1 | LGPL-3.0-or-later |
| SDK | LGPL-3.0-or-later | LGPL-3.0-or-later |