dev-protocol / dev-protocol/dev-elements

[FEATURE] <dev-stake-on>

未关闭
#119 5 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

enhancement
主要语言
TypeScript
星标
7
派生
1
PR 合并指标
30 天内没有已合并 PR

描述

Detailed description

This issue doesn't have a more in-depth spec, it just suggests a feature.


By declaring HTML as follows, the button which is the default slot element is displayed. Clicking that button will bring up a modal dialog with tier slots as child elements and start the staking flow.

<dev-stake-on connection="CONNECTION_ID" destination="0x..." network="NETWORK_NAME">
    <section slot="tier" amount="100">This is the 1st tier</section>
    <section slot="tier" amount="200">This is the 2nd tier</section>
    <section slot="tier" amount="300">This is the 3rd tier</section>
    <button>Please stake on me</button>
</dev-stake-on>
Options
  • *connection: the id of dev-connection element #126
  • *destination: the address of the staking destination
  • *network: the network name
Context

You can easily build such paywalls by using this combined with <dev-when-staked> #118 .

Screenshot 2022-04-14 at 10-04-40 20220406

Possible implementation

No response

Additional information

No response

Code of Conduct
  • I agree to follow this project's Code of Conduct

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先查看 issue #126 引用的现有 元素,以及 issue #118 中的 组件。在实现之前,定义 staking 模态框、tier-slot 行为和支持的选项;当已声明的元素渲染其默认按钮并完成所描述的 staking 流程时,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
typescript
领域
frontend
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。