Giter VIP home page Giter VIP logo

gnosis-safe-multichain-deployer's Introduction

Experimental

Gnosis Safe Multichain Deployer

The Gnosis Safe Multichain is a tool that allows you to deploy the same Safe Vault address to multiple chains. For example, you can deploy the same Safe Vault address from Ethereum to Gnosis chains.

Benefits

By using the Gnosis Safe Multichain, you can save time and effort in deploying multiple Safe Vaults to different chains. This also provides greater convenience and flexibility in managing your assets across different chains.

How It Works

  1. Make sure the factory address is the same for both the source chain and the destination chain.
  2. To get creation transaction data, use the etherscan API.
  3. Send the same transaction data to the destination chain and interact with the same factory address.

Limitations

It's important to note that the Gnosis Safe Multichain tool has some limitations. For example, it may not work with all chains or may require additional setup steps for certain chains.

Support Chains

CHAIN CHAIN ID FACTORY
Ethereum 1 0xa6b71e26c5e0845f74c812102ca7114b6a896ab2
Binance Smart Chain 56 0xa6b71e26c5e0845f74c812102ca7114b6a896ab2
Gnosis 100 0xa6b71e26c5e0845f74c812102ca7114b6a896ab2
Polygon 1137 0xa6b71e26c5e0845f74c812102ca7114b6a896ab2
Arbitrum 42161 0xa6b71e26c5e0845f74c812102ca7114b6a896ab2
Optimism 10 0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC
Avalanche 43114 0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC

Usage

To utilize the Gnosis Safe Multichain Deployer, follow these steps:

  1. Install the required dependencies by executing the following command:
$ pip install -r requirements.txt
$ python setup.py install
  1. Run the Gnosis Safe Multichain Deployer using one of the following commands:
$ gnosis-safe-multichain-deployer --src-chain-id <SRC_CHAIN_ID> --dst-chain-ids <DST_CHAIN_1>,<DST_CHAIN_2> --address <SAFE_ADDRESS> --api-key <ETHERSCAN_API_KEY> --private-key <DEPLOYER_PRIVATE_KEY>

Replace the following placeholders with appropriate values:

  • <SRC_CHAIN_ID>: Source chain ID
  • <DST_CHAIN_1,DST_CHAIN_2>: Comma-separated destination chain IDs
  • <SAFE_ADDRESS>: Safe Vault address
  • <ETHERSCAN_API_KEY>: Etherscan API key
  • <DEPLOYER_PRIVATE_KEY>: Deployer's private key

Example command:

$ gnosis-safe-multichain-deployer --src-chain-id 1 --dst-chain-ids 56,137,42161 --address 0x64bD0FD02B00E0d2762C415923AB6C2E71C3e13B --api-key <ETHERSCAN_API_KEY> --private-key <DEPLOYER_PRIVATE_KEY>

Demo Video

示例影片

Conclusion

Overall, the Gnosis Safe Multichain is a useful tool for anyone who wants to deploy the same Safe Vault address to multiple chains. With its compatibility with various chains and potential time savings, it's definitely worth considering for anyone managing assets across different chains.

gnosis-safe-multichain-deployer's People

Contributors

ksin751119 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.