{"id":19460168,"url":"https://github.com/offchainlabs/gnosis-safe-contracts","last_synced_at":"2026-05-16T19:34:22.327Z","repository":{"id":67046460,"uuid":"370859281","full_name":"OffchainLabs/gnosis-safe-contracts","owner":"OffchainLabs","description":null,"archived":false,"fork":false,"pushed_at":"2021-05-26T00:12:29.000Z","size":5558,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":27,"default_branch":"arb-kovan5","last_synced_at":"2025-01-08T02:18:22.119Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OffchainLabs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-05-26T00:11:35.000Z","updated_at":"2023-03-11T09:09:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"6ff1f22d-02ea-4940-a90a-4659658177de","html_url":"https://github.com/OffchainLabs/gnosis-safe-contracts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OffchainLabs%2Fgnosis-safe-contracts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OffchainLabs%2Fgnosis-safe-contracts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OffchainLabs%2Fgnosis-safe-contracts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OffchainLabs%2Fgnosis-safe-contracts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OffchainLabs","download_url":"https://codeload.github.com/OffchainLabs/gnosis-safe-contracts/tar.gz/refs/heads/arb-kovan5","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240664503,"owners_count":19837563,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T17:35:49.327Z","updated_at":"2026-05-16T19:34:17.304Z","avatar_url":"https://github.com/OffchainLabs.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Gnosis Safe Contracts\n=====================\n\n[![npm version](https://badge.fury.io/js/%40gnosis.pm%2Fsafe-contracts.svg)](https://badge.fury.io/js/%40gnosis.pm%2Fsafe-contracts)\n[![Build Status](https://github.com/gnosis/safe-contracts/workflows/safe-contracts/badge.svg?branch=development)](https://github.com/gnosis/safe-contracts/actions)\n[![Coverage Status](https://coveralls.io/repos/github/gnosis/safe-contracts/badge.svg?branch=development)](https://coveralls.io/github/gnosis/safe-contracts)\n\nUsage\n-----\n### Install requirements with yarn:\n\n```bash\nyarn\n```\n\n### Run all tests:\n\n```bash\nyarn build\nyarn test\n```\n\n### Deployments\n\nA collection of the different Safe contract deployments and their addresses can be found in the [Safe deployments](https://github.com/gnosis/safe-deployments) repository.\n\nTo add support for a new network follow the steps of the ``Deploy`` section and create a PR in the [Safe deployments](https://github.com/gnosis/safe-deployments) repository. \n\n### Deploy\n\n\u003e :warning: **Make sure to use the correct commit when deploying the contracts.** Any change (even comments) within the contract files will result in different addresses. The tagged versions that are used by the Gnosis Safe team can be found in the [releases](https://github.com/gnosis/safe-contracts/releases).\n\nThis will deploy the contracts deterministically and verify the contracts on etherscan using [Solidity 0.7.6](https://github.com/ethereum/solidity/releases/tag/v0.7.6) by default.\n\nPreparation:\n- Set `MNEMONIC` in `.env`\n- Set `INFURA_KEY` in `.env`\n\n```bash\nyarn deploy-all \u003cnetwork\u003e\n```\n\nThis will perform the following steps\n\n```bash\nyarn build\nyarn hardhat --network \u003cnetwork\u003e deploy\nyarn hardhat --network \u003cnetwork\u003e etherscan-verify\nyarn hardhat --network \u003cnetwork\u003e local-verify\n```\n\n#### Custom Networks\n\nIt is possible to use the `NODE_URL` env var to connect to any EVM based network via an RPC endpoint. This connection then can be used with the `custom` network.\n\nE.g. to deploy the Safe contract suite on that network you would run `yarn deploy-all custom`. \n\nThe resulting addresses should be on all networks the same.\n\nNote: Address will vary if contract code is changed or a different Solidity version is used.\n\n### Verify contract\n\nThis command will use the deployment artifacts to compile the contracts and compare them to the onchain code\n```bash\nyarn hardhat --network \u003cnetwork\u003e local-verify\n```\n\nThis command will upload the contract source to Etherescan\n```bash\nyarn hardhat --network \u003cnetwork\u003e etherscan-verify\n```\n\nDocumentation\n-------------\n- [Safe developer portal](http://docs.gnosis.io/safe)\n- [Error codes](docs/error_codes.md)\n- [Coding guidelines](docs/guidelines.md)\n\nAudits/ Formal Verification\n---------\n- [for Version 1.3.0 by G0 Group](docs/audit_1_3_0.md)\n- [for Version 1.2.0 by G0 Group](docs/audit_1_2_0.md)\n- [for Version 1.1.1 by G0 Group](docs/audit_1_1_1.md)\n- [for Version 1.0.0 by Runtime Verification](docs/rv_1_0_0.md)\n- [for Version 0.0.1 by Alexey Akhunov](docs/alexey_audit.md)\n\nSecurity and Liability\n----------------------\nAll contracts are WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\nLicense\n-------\nAll smart contracts are released under LGPL-3.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foffchainlabs%2Fgnosis-safe-contracts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foffchainlabs%2Fgnosis-safe-contracts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foffchainlabs%2Fgnosis-safe-contracts/lists"}