← Back to home

SafeCreate2

Secure multi-chain smart contract deployments using a single-chain Safe

Screenshots

SafeCreate2 screenshot 1
SafeCreate2 screenshot 2
SafeCreate2 screenshot 3
SafeCreate2 screenshot 4

Problem Statement

Deploying permissioned multi-chain contracts is hard. You either use nonce-based deployment and pray to Vitalik that you never lose the private key or mess up the nonce order, or you accept the multisig management chaos that comes with having per-chain admin Safes.Safe Create2 enables a Safe on a single chain to deploy smart contracts to the same address on all chains without having to bridge ETH. It also allows the single-chain Safe to execute admin functions on any of the multi-chain contracts. This gives projects the best of both worlds - dead simple multi-chain deployments with the security of a single Safe.

Solution

This project is a create2 factory that uses Axelar to send and receive cross chain messages. It ensures there are no address collisions and that each Safe on each chain receives a unique namespace for deployments. It also implements a CrossChainOwnable contract which applications using this tool can inherit from to allow multi-chain contracts to be securely administrated by a Safe on a single chain.

Hackathon

ETHGlobal New York

2024

Prizes

  • 🏆

    🥇 Axelar — Best Use

  • 🏆

    🔟 WalletConnect — Top 10

  • 🏆

    🏊‍♂️ Arbitrum — Pool Prize

  • 🏆

    🏆 ETHGlobal New York 2023 Finalist

Contributors