Closed devpavan04 closed 2 months ago
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...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
https://github.com/webb-tools/webb-dapp/assets/53374218/35901722-c918-4971-9e27-c335242d516f
Polkadot Mainnet
(Validators) and Phala Network
(Collators).Identity
, Total Staked Value
, and Commission
, both of which can be sorted.address
.Polkadot Mainnet
and Phala Network
in this PR before moving on to other chains (next PR).@devpavan04 you should likely adapt the table's generic pattern to support "adapters" that provide you
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.
@yurixander Table now shows Collators
on Manta
and Moonbeam
as well.
Summary of changes
Polkadot
,Astar
andPhala
to perform staking operation.tangle-dapp
background image.Pallets and APIs
staking
pallet -api.query.staking
- fetches all validators, validator TVL and validator commission %.dappStaking
pallet -api.query.dappStaking
- fetches all dapps and dapp TVL.https://api.astar.network/api/v1/astar/dapps-staking/dapps
- fetches dapp's name and contract type (EVM, WASM or EVM+WASM).phalaBasePool
pallet -api.query.phalaBasePool
- fetches all vaults and stake pools, TVL, commission % and type (vault or stake pool).Proposed area of change
apps/tangle-dapp
libs/webb-ui-components
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