Skip to content

protofire/safe-singleton-factory

This branch is 368 commits behind safe-global/safe-singleton-factory:main.

Folders and files

NameName
Last commit message
Last commit date
Sep 17, 2021
Apr 21, 2023
Sep 27, 2022
Sep 17, 2021
Sep 17, 2021
Apr 25, 2022
Sep 17, 2021
Nov 3, 2021
Sep 17, 2021
May 2, 2022
Sep 27, 2022
Apr 13, 2023
Sep 17, 2021
Dec 26, 2021

Repository files navigation

Safe Singleton Factory

Singleton factory used by Safe related contracts based on https://github.com/Arachnid/deterministic-deployment-proxy

The original library used a presigned transaction without a chain id to allow deployment on different chains. Some chains do not allow such transactions to be submitted (e.g. Celo and Avalance) therefore this repository will provide the same factory that can be deployed via a presigned transaction that includes the chain id. The key that is used to sign is controlled by the Safe team.

Adding new networks

To add support for new networks the same key used for the existing networks should be used to generate a presigned transaction for a new network. To request support for a new network please open a new issue.

To generate the deployment data for a new network the following steps are necessary:

  • Set RPC in the .env file for the new network

  • Estimate transaction params via yarn estimate

  • Set MNEMONIC in the .env file

  • Run yarn compile <chain_id> [--gasPrice <overwrite_gas_price>] [--gasLimit <overwrite_gas_limit>]

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 94.7%
  • Yul 5.3%