我不明白在将Gnosis Safe合同部署到基于EVM的链上时发生的事情。

huangapple go评论57阅读模式
英文:

Things that I didn't understand during the deployment of the Gnosis Safe contracts on an EVM-based chain

问题

我想核实我在将Gnosis Safe合同部署到基于EVM的链上时没有完全理解的事项。

如果您能帮助我验证我的有关部署的假设,我将不胜感激。

  • 完成Safe部署需要以下三个步骤:

    1. 在https://github.com/safe-global/safe-singleton-factory 上提出新部署请求。

    2. 在自定义网络上部署Safe合同。

    3. 将新支持的网络添加到https://github.com/safe-global/safe-deployments 上的safe-deployments存储库中。

  • 第一步的目的是使用确定性部署代理,允许预先确定合同的地址。

  • 第二步需要从自定义网络中获取代币,这是将MNEMONIC添加到.env文件的唯一目的。

  • .env文件中MNEMONIC变量的格式如下:

    MNEMONIC="antique assume recycle glance agent habit penalty forum behave danger crop weekend"
    
  • .env中包括ETHERSCAN_API_KEY的唯一目的是更新Etherscan上的Safe合同代码。

以下是我甚至无法猜测目的的内容:

  • 第三步的目的是什么?这一步的目的是记录自定义网络的部署吗?
英文:

I want to check my assumptions on things that I didn't fully understand during the deployment of the Gnosis Safe contracts on an EVM-based chain.

I would appreciate it if you could help me verify my assumptions about the deployment.

  • Three steps below are needed to complete the Safe deployment.

    1. Make a request for a new deployment at https://github.com/safe-global/safe-singleton-factory.

    2. Deploy the Safe contracts on a custom network.

    3. Add the newly supported network to the safe-deployments repository located at https://github.com/safe-global/safe-deployments.

  • The purpose of the first step is to employ a deterministic deployment proxy which allows the contracts' addresses to be predetermined.

  • The second step requires having coins from the custom network, and this is the only purpose for adding the MNEMONIC to the .env file.

  • Format of the MNEMONIC variable in the .env file is:

    MNEMONIC="antique assume recycle glance agent habit penalty forum behave danger crop weekend"
    
  • The only purpose of including ETHERSCAN_API_KEY in .env is to update the Safe contracts code on the Etherscan.

Below is something that I cannot even begin to guess the purpose of:

  • What is the purpose of the third step? Is the purpose of this to document the deployments of the custom networks?

答案1

得分: 1

你做得对。将你的部署添加到那个存储库将通知每个人,你的链具有Gnosis Safe单例合同。

这个存储库与一个npm包相关联,Gnosis Safe SDK依赖于它。这意味着在添加你的网络后,SDK将能够部署并使用你的链上的合同。

英文:

You got it right. Adding your deployment to that repository will inform everyone that your chain has the Gnosis Safe singleton contract.

This repository is associated with an npm package, which the Gnosis Safe SDK depends on. This means that after adding your network, the SDK will be able to deploy and use contracts form your chain.

huangapple
  • 本文由 发表于 2023年2月19日 12:53:23
  • 转载请务必保留本文链接:https://go.coder-hub.com/75498082.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定