[FEATURE] <dev-stake-on>
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- typescript
- Domain
- frontend
Research direction
Start by reviewing the existing element referenced by issue #126 and the component in issue #118. Define the staking modal, tier-slot behavior, and supported options before implementation; done means the declared element renders its default button and completes the described staking flow.
Written by the indexing model from the issue text.
Description
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
- Dominant language
- TypeScript
- Stars
- 7
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from dev-protocol/dev-elements
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 35/100
dev-protocol/dev-elements#127 ·
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 20/100
dev-protocol/dev-elements#118 · 1 comment ·
-
Dependency Dashboard Open
Difficulty 4/5 3-5 days Newbie friendliness 15/100
All issues in dev-protocol/dev-elements
Similar issues
-
clawsweeper:linked-pr-open clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:message-loss issue-rating: 🦞 diamond lobster maturity:stable P2
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Eynzof/Hermes-CN-Desktop#616 ·
-
ZCode 3.14.3 に対応する Open
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
supermomonga/zcode-acp#24 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
growthbook/growthbook#7100 ·
-
triage
Difficulty 1/5 1-3 hours Newbie friendliness 88/100