@1hive/apps-delay 中文文档教程

发布于 3年前 浏览 24 更新于 3年前

delay-app

CircleCICoverage Status

延迟应用程序使 Aragon 组织能够在发送意图和执行意图之间要求可配置的延迟。

Security Review Status: Contract audited

How does it work?

Delay 应用程序跟踪脚本执行前的剩余时间、要执行的脚本以及脚本暂停的时间。

Initialization

Delay 应用程序使用 _executionDelay 参数进行初始化。 这定义了用户必须等待执行延迟脚本的默认长度,前提是在延迟期间的某个时刻没有暂停。

Roles

Delay 应用程序应实现以下角色:

  • SET_DELAY_ROLE: This allows for changing the executionDelay period.

注意:更改执行延迟不会影响当前延迟。

  • DELAY_EXECUTION_ROLE: Any entity with this role can delay an intent.
  • PAUSE_EXECUTION_ROLE: This allows for pausing a delay.
  • RESUME_EXECUTION_ROLE: This allows for resuming a paused delay.
  • CANCEL_EXECUTION_ROLE: This allows for cancelling a delay.

Interface

查看我们的用户指南以了解应用程序的功能。

How to run the Delay app locally

Git 克隆这个仓库。

git clone https://github.com/1Hive/delay-app.git

导航到 delay-app 目录。

cd delay-app

安装 npm 依赖项。

npm i

在您的本地环境中部署一个带有延迟应用程序的 dao。

npm run start:template

Aragon DAO Installation

如需详细的分步指南,您可以查看我们的安装指南

要部署到组织,您可以使用 aragonCLI

aragon dao install <dao-address> delay.aragonpm.eth --app-init-args <delay-execution>

Contributing

我们欢迎社区贡献!

请查看我们的未解决的问题开始。

如果您发现可能影响安全的事情,请立即通知我们。 联系我们的最快方式是通过我们的team Keybase chat 中的#dev 频道。 只要打个招呼,你发现了一个潜在的安全漏洞,我们就会私信给你讨论细节。

delay-app

CircleCICoverage Status

The delay app enables Aragon organizations to require a configurable delay between when an intent is sent and when it is executed.

???? Security Review Status: Contract audited

How does it work?

The Delay app keeps track of the time left until scripts can be executed, the script to execute, and the time that the script was paused at.

Initialization

The Delay app is initialized with the _executionDelay parameter. This defines the default length that a user will have to wait to execute a delayed script, provided it is not paused at some point during the delay.

Roles

The Delay app should implement the following roles:

  • SET_DELAY_ROLE: This allows for changing the executionDelay period.

Note: Changing the execution delay does not affect current delays.

  • DELAY_EXECUTION_ROLE: Any entity with this role can delay an intent.
  • PAUSE_EXECUTION_ROLE: This allows for pausing a delay.
  • RESUME_EXECUTION_ROLE: This allows for resuming a paused delay.
  • CANCEL_EXECUTION_ROLE: This allows for cancelling a delay.

Interface

Check out our user guide to go through the functionality of the app.

How to run the Delay app locally

Git clone this repo.

git clone https://github.com/1Hive/delay-app.git

Navigate into the delay-app directory.

cd delay-app

Install npm dependencies.

npm i

Deploy a dao with Delay app installed on your local environment.

npm run start:template

Aragon DAO Installation

For a detailed step by step guide you can see our installation guide

To deploy to an organization you can use the aragonCLI.

aragon dao install <dao-address> delay.aragonpm.eth --app-init-args <delay-execution>

Contributing

We welcome community contributions!

Please check out our open Issues to get started.

If you discover something that could potentially impact security, please notify us immediately. The quickest way to reach us is via the #dev channel in our team Keybase chat. Just say hi and that you discovered a potential security vulnerability and we'll DM you to discuss details.

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文