https://github.com/5afe/safe-contract-deployment-replay
https://github.com/5afe/safe-contract-deployment-replay
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/5afe/safe-contract-deployment-replay
- Owner: 5afe
- License: mit
- Created: 2020-11-16T18:11:40.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2022-05-13T09:28:02.000Z (about 4 years ago)
- Last Synced: 2025-03-27T16:48:58.820Z (about 1 year ago)
- Language: TypeScript
- Size: 40 KB
- Stars: 21
- Watchers: 5
- Forks: 10
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Replay Safe contract deployment
### Running on ganache
- Copy sample env `cp .env.sample .env`
- Start testing ganache with `yarn testnet`
- Run `yarn deploy`
### Running on custom network
- Copy sample env `cp .env.sample .env`
- Adjust `.env` file for your setup
- MNEMONIC will be used to create the account that funds the Safe deployment account
- RPC_URL will be used to interact with the EVM based chain
- Run `yarn deploy`
### Transactions
#### Safe 1.1.1 and Factory
Three transactions are required:
- Safe mastercopy deployment
- Registry setup (only useful on mainnet, but needs to be executed to have correct nonce for factory)
- Proxy factory deployment
All three transactions have been executed originally at a gas price of 10 GWei, therefore the same gas price has to be used when replaying them.
#### Safe 1.2.0
Note: These contracts use the factory from version 1.1.1
One transaction is required:
- Safe mastercopy deployment
The transaction has been executed originally at a gas price of 60 GWei, therefore the same gas price has to be used when replaying it.