https://github.com/5afe/safe-factories
Collection of secure factory contracts for the Safe
https://github.com/5afe/safe-factories
Last synced: about 1 year ago
JSON representation
Collection of secure factory contracts for the Safe
- Host: GitHub
- URL: https://github.com/5afe/safe-factories
- Owner: 5afe
- License: mit
- Created: 2020-02-27T09:29:56.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-02-03T04:39:15.000Z (over 3 years ago)
- Last Synced: 2025-03-27T16:48:51.374Z (about 1 year ago)
- Language: JavaScript
- Size: 1.91 MB
- Stars: 8
- Watchers: 6
- Forks: 6
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Gnosis Safe Factories
This repo contains the Soldity code for the factories to create Safe instances of specific versions.
### Safe 1.1.1 Factory
Enables user to create a [1.1.1 Safe](https://github.com/gnosis/safe-contracts/releases/tag/v1.1.1) with the msg.sender as the only owner and threshold 1. No further configuration will be done during creation (no modules or fallback manager). All funds send to the factory for the creation call will be forwarded to the newly created Safe.
* Factory contract: `Safe_1_1_1_Factory.sol`
* Mastercopy: [`0x34CfAC646f301356fAa8B21e94227e3583Fe3F5F`](https://etherscan.io/address/0x34CfAC646f301356fAa8B21e94227e3583Fe3F5F)
* Proxy factory: [`0x76E2cFc1F5Fa8F6a5b3fC4c8F4788F0116861F9B`](https://etherscan.io/address/0x76E2cFc1F5Fa8F6a5b3fC4c8F4788F0116861F9B)
* Deployed with transaction [`0xe66d55aea21771df9e734b00ee871943ed8133135728b2076901771daf3e51a1`](https://etherscan.io/tx/0xe66d55aea21771df9e734b00ee871943ed8133135728b2076901771daf3e51a1) on Mainnet and Rinkeby
* Factory: [`0x1337A824F3131c718b7a336E18CADb4BA0faffFc`](https://etherscan.io/address/0x1337A824F3131c718b7a336E18CADb4BA0faffFc)
Proxy creation can be triggered by sending a transaction without data (normal transfer) to the factory address. Any ETH value set in the transaction will be forwarded to the new Safe instance.
### Audit
[An audit](https://github.com/g0-group/Audits/blob/9454c83dec6dd92be14a768b779c85489ca1671f/G0Group-GnosisSafeFactoryFeb2020.pdf) has been performed by the [G0 Group](https://github.com/g0-group/).
### Run tests
* `yarn`
* `yarn test`
### Deployment
* Create `.env` based on `.env.sample`
* `yarn deploy `
* To deploy a specific migration use `yarn deploy -f 1 --to 1`
* Use `yarn version` or run `yarn restore` before you pusblish the package