dev-protocol / dev-protocol/dev-elements
[FEATURE] <dev-when-staked>
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- TypeScript
- Star
- 7
- Fork
- 1
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu bằng việc xem xét phần tử dev-connection được đề xuất (#126) và kiến trúc amp-list được tham chiếu trong issue. Xác định hành vi của component và các tiêu chí chấp nhận cho việc xác minh staking, các yêu cầu src có điều kiện, việc render template và nội dung placeholder trước khi triển khai; chưa xác định được tệp hoặc kiểm thử nào.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- typescript
- Lĩnh vực
- blockchain, frontend
- Loại issue
- Tính năng
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 20/100