dev-protocol / dev-protocol/dev-elements
[FEATURE] <dev-stake-on>
オープン
まだ誰も着手していません。
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 .

Possible implementation
No response
Additional information
No response
Code of Conduct
- I agree to follow this project's Code of Conduct
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、issue #126 で参照されている既存の 要素と、issue #118 の コンポーネントを確認します。実装前に、staking モーダル、tier-slot の動作、サポート対象のオプションを定義します。宣言した要素がデフォルトボタンをレンダリングし、説明されている staking フローを完了すれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- typescript
- 領域
- frontend
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100