-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update defender.md #419
Update defender.md #419
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a comment about opening a PR in the moonbeam-docs repo to update the images. I think this is the first time you may have come across needing to do this, so if you need any help or have any questions, please let me know!
- [**Code Inspector**](https://defender.openzeppelin.com/v2/#/code){target=_blank} — 由OpenZeppelin工程师开发的自动代码分析AI模型和工具 | ||
- [**Audit**](https://defender.openzeppelin.com/v2/#/audit){target=_blank} — 管理智能合约审计过程,跟踪问题和解决方案 | ||
- [**Deploy**](https://defender.openzeppelin.com/v2/#/deploy){target=_blank} — 管理部署和升级,确保发布安全 | ||
- [**Monitor**](https://defender.openzeppelin.com/v2/#/monitor){target=_blank} — 监控智能合约的事件、功能和交易,并通过电子邮件接收通知 | ||
- [**Incident Response**](https://defender.openzeppelin.com/v2/#/incident-response){target=_blank} — 配置预定义的事件响应场景,可由监控器自动触发或人工触发 | ||
- [**Actions**](https://defender.openzeppelin.com/v2/#/actions/automatic){target=_blank} — 创建自动 Action,以执行链上或链下操作 | ||
- [**Access Control**](https://defender.openzeppelin.com/v2/#/access-control/contracts){target=_blank} — 轻松管理智能合约账户、角色和权限 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- [**Code Inspector**](https://defender.openzeppelin.com/v2/#/code){target=_blank} — 由OpenZeppelin工程师开发的自动代码分析AI模型和工具 | |
- [**Audit**](https://defender.openzeppelin.com/v2/#/audit){target=_blank} — 管理智能合约审计过程,跟踪问题和解决方案 | |
- [**Deploy**](https://defender.openzeppelin.com/v2/#/deploy){target=_blank} — 管理部署和升级,确保发布安全 | |
- [**Monitor**](https://defender.openzeppelin.com/v2/#/monitor){target=_blank} — 监控智能合约的事件、功能和交易,并通过电子邮件接收通知 | |
- [**Incident Response**](https://defender.openzeppelin.com/v2/#/incident-response){target=_blank} — 配置预定义的事件响应场景,可由监控器自动触发或人工触发 | |
- [**Actions**](https://defender.openzeppelin.com/v2/#/actions/automatic){target=_blank} — 创建自动 Action,以执行链上或链下操作 | |
- [**Access Control**](https://defender.openzeppelin.com/v2/#/access-control/contracts){target=_blank} — 轻松管理智能合约账户、角色和权限 | |
- [**Code Inspector**](https://defender.openzeppelin.com/v2/#/code){target=_blank} — 由OpenZeppelin工程师开发的自动代码分析AI模型和工具 | |
- [**Audit**](https://defender.openzeppelin.com/v2/#/audit){target=\_blank} — 管理智能合约审计过程,跟踪问题和解决方案 | |
- [**Deploy**](https://defender.openzeppelin.com/v2/#/deploy){target=\_blank} — 管理部署和升级,确保发布安全 | |
- [**Monitor**](https://defender.openzeppelin.com/v2/#/monitor){target=\_blank} — 监控智能合约的事件、功能和交易,并通过电子邮件接收通知 | |
- [**Incident Response**](https://defender.openzeppelin.com/v2/#/incident-response){target=\_blank} — 配置预定义的事件响应场景,可由监控器自动触发或人工触发 | |
- [**Actions**](https://defender.openzeppelin.com/v2/#/actions/automatic){target=\_blank} — 创建自动 Action,以执行链上或链下操作 | |
- [**Access Control**](https://defender.openzeppelin.com/v2/#/access-control/contracts){target=\_blank} — 轻松管理智能合约账户、角色和权限 |
@@ -26,118 +29,93 @@ OpenZeppelin Defender现已上线Moonbeam、Moonriver和Moonbase Alpha测试网 | |||
|
|||
请确保安装[MetaMask](https://metamask.io/){target=\_blank},并已连接至Moonbase Alpha测试网。如果您还没有将MetaMask连接到测试网,请根据我们的[MetaMask整合教程](/builders/integrations/wallets/metamask/){target=\_blank}进行操作。 | |||
|
|||
此外,您还需要登录[Defender](https://defender.openzeppelin.com/){target=\_blank}网站并注册OpenZeppelin免费账户。 | |||
此外,您还需要登录[Defender](https://defender.openzeppelin.com/v2/#/overview){target=_blank}网站并注册OpenZeppelin免费账户。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
此外,您还需要登录[Defender](https://defender.openzeppelin.com/v2/#/overview){target=_blank}网站并注册OpenZeppelin免费账户。 | |
此外,您还需要登录[Defender](https://defender.openzeppelin.com/v2/#/overview){target=\_blank}网站并注册OpenZeppelin免费账户。 |
|
||
![OpenZeppelin Defender Connect](/images/builders/build/eth-api/dev-env/openzeppelin/defender/oz-defender-1.webp) | ||
本节将引导您使用[OpenZeppelin Defender的访问控制(Access Control)组件](https://defender.openzeppelin.com/v2/#/access-control/contracts){target=_blank} 在Moonbase Alpha上管理智能合约。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
本节将引导您使用[OpenZeppelin Defender的访问控制(Access Control)组件](https://defender.openzeppelin.com/v2/#/access-control/contracts){target=_blank} 在Moonbase Alpha上管理智能合约。 | |
本节将引导您使用[OpenZeppelin Defender的访问控制(Access Control)组件](https://defender.openzeppelin.com/v2/#/access-control/contracts){target=\_blank} 在Moonbase Alpha上管理智能合约。 |
3. 为您的合约添加一个名称 | ||
4. 选择部署合约的 **Network** 。这个演示中我们选择Moonbase Alpha | ||
5. 粘贴合约地址 | ||
6. 如果您的合约已被验证,它的ABI将自动导入,否则需要在这粘贴合约ABI。合约ABI可以在[Remix](https://remix.ethereum.org/){target=_blank}中获取,也可以在编译过程后(例如Hardhat)创建的 `.json` 文件中找到 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
6. 如果您的合约已被验证,它的ABI将自动导入,否则需要在这粘贴合约ABI。合约ABI可以在[Remix](https://remix.ethereum.org/){target=_blank}中获取,也可以在编译过程后(例如Hardhat)创建的 `.json` 文件中找到 | |
6. 如果您的合约已被验证,它的ABI将自动导入,否则需要在这粘贴合约ABI。合约ABI可以在[Remix](https://remix.ethereum.org/){target=\_blank}中获取,也可以在编译过程后(例如Hardhat)创建的 `.json` 文件中找到 |
|
||
### 导入合约 {: #importing-your-contract } | ||
![OpenZeppelin Defender Access Control Add Contract](/images/builders/build/eth-api/dev-env/openzeppelin/defender/new/oz-defender-1.png) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
![OpenZeppelin Defender Access Control Add Contract](/images/builders/build/eth-api/dev-env/openzeppelin/defender/new/oz-defender-1.png) | |
![OpenZeppelin Defender Access Control Add Contract](/images/builders/build/eth-api/dev-env/openzeppelin/defender/oz-defender-1.webp) |
So in translations like this one, the original PR says that the images need to be updated after translations. So, you'll need to open a PR on the moonbeam-docs
repo that removes the images directly in the oz-defender
directory and replace them with the ones in the oz-defender/new
directory - so that there is no longer a new
directory and all of the new images replace the old ones. You'll also need to update the defender.md
page so that the image paths no longer have new
in them
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please make sure to update all of the image paths in this PR to remove new
and switch from .png
to .webp
|
||
![OpenZeppelin Defender Admin Contract Proposal List](/images/builders/build/eth-api/dev-env/openzeppelin/defender/oz-defender-6.webp) | ||
1. 点击 **Connect Wallet** 并将您的EVM账户连接到Defender | ||
2. 点击 **Submit Transaction Proposal** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2. 点击 **Submit Transaction Proposal** | |
2. 点击 **Submit Transaction Proposal** | |
![OpenZeppelin Defender Actions Contract Submit Proposal](/images/builders/build/eth-api/dev-env/openzeppelin/defender/oz-defender-6.webp) |
missing this image
|
||
合约状态也将从**Running**(运行中)变为**Paused**(已暂停)。现在您已学会如何使用Admin组件管理智能合约了。 | ||
恭喜!您现在已经掌握了如何使用OpenZeppelin Defender在Moonbeam网络上管理智能合约。如需了解更多信息,您可以查看[OpenZeppelin Defender 文档](https://docs.openzeppelin.com/defender/v2/){target=_blank}. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
恭喜!您现在已经掌握了如何使用OpenZeppelin Defender在Moonbeam网络上管理智能合约。如需了解更多信息,您可以查看[OpenZeppelin Defender 文档](https://docs.openzeppelin.com/defender/v2/){target=_blank}. | |
恭喜!您现在已经掌握了如何使用OpenZeppelin Defender在Moonbeam网络上管理智能合约。如需了解更多信息,您可以查看[OpenZeppelin Defender 文档](https://docs.openzeppelin.com/defender/v2/){target=\_blank}. |
Original PR:moonbeam-foundation/moonbeam-docs#809