tangle-network / dapp

Monorepo for the Tangle ecosystem.
https://app.tangle.tools
Apache License 2.0
29 stars 15 forks source link

feat(tangle-dapp): Stake Operation Table UI & Logic #2406

Closed devpavan04 closed 2 months ago

devpavan04 commented 3 months ago

Summary of changes

Pallets and APIs

Proposed area of change

Reference issue to close (if applicable)

Screen Recording

Polkadot

https://github.com/user-attachments/assets/8dab77d4-c141-45b6-b728-b55ff91841b6

Astar

https://github.com/user-attachments/assets/dc31be8d-3af1-4dfa-b326-35d90884d325

Phala

https://github.com/user-attachments/assets/e68b16ea-f1de-486a-8eea-e16b7282a642

netlify[bot] commented 3 months ago

Deploy Preview for tangle-dapp ready!

Name Link
Latest commit 18bbf01cf3bb0880f6898834841f25ae81f34ce0
Latest deploy log https://app.netlify.com/sites/tangle-dapp/deploys/66a2072825a748000851f52b
Deploy Preview https://deploy-preview-2406--tangle-dapp.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

devpavan04 commented 3 months ago

Update: Jul 4

https://github.com/webb-tools/webb-dapp/assets/53374218/35901722-c918-4971-9e27-c335242d516f

Remaining items before ready for review

drewstone commented 3 months ago

@devpavan04 you should likely adapt the table's generic pattern to support "adapters" that provide you

  1. The list of things that can be staked on
  2. The options of how they can be selected (single selections or multi selections).

You can see this pattern in the backend implementation of LST agents. The following is the set of choices as I see it:

We can start to talk about this as a "stake operation" rather than staking on a validator more specifically, since Astar and other protocols may not have the same notion of validators to stake on. Instead they have other objects to stake on like smart contracts or dApps.

devpavan04 commented 2 months ago

@yurixander Table now shows Collators on Manta and Moonbeam as well.

CleanShot 2024-07-22 at 14 44 28@2x CleanShot 2024-07-22 at 14 45 04@2x