dev-protocol / dev-protocol/dev-elements
[FEATURE] <dev-when-staked>
オープン
まだ誰も着手していません。
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 viewer's staking position is verified, the request to src is made only when the require condition is fulfilled, and its response is applied to the template child element and rendered.
This architecture is based on amp-list.
<dev-when-staked connection="CONNECTION_ID" destination="0x..." network="NETWORK_NAME" require="300" src="https://example.com/data...">
<template>
...
</template>
<p>Placeholder while waiting to meet require</p>
</dev-when-staked>
Options
- *
connection: the id of dev-connection element #126 - *
destination: the address of the staking destination - *
network: the network name - *
require: the minimum staking amount to unlock content - *
src: the content source
Context
<dev-when-staked> is useful for achieving staking paywalls with minimal coding.
Possible implementation
No response
Additional information
No response
Code of Conduct
- I agree to follow this project's Code of Conduct
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、提案されている dev-connection 要素 (#126) と、issue で参照されている amp-list アーキテクチャを確認します。実装前に、staking verification、条件付きの src リクエスト、テンプレートのレンダリング、プレースホルダーコンテンツに関するコンポーネントの動作と受け入れ基準を定義します。ファイルやテストは特定されていません。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- typescript
- 領域
- blockchain, frontend
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 20/100