dev-protocol / dev-protocol/dev-elements
[FEATURE] <dev-stake-on>
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 7
- Forks
- 1
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne mit der Durchsicht des bestehenden -Elements, auf das in Issue #126 verwiesen wird, und der -Komponente aus Issue #118. Definiere das Staking-Modal, das Verhalten der Tier-Slots und die unterstützten Optionen vor der Implementierung; als abgeschlossen gilt die Aufgabe, wenn das deklarierte Element seinen Standardbutton rendert und den beschriebenen Staking-Ablauf abschließt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- typescript
- Bereich
- frontend
- Issue-Typ
- Feature
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 25/100