Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Comments

Parachain staking functionality done#2

Closed
fgamundi wants to merge 68 commits intoparity-masterfrom
fxg-parachain-staking
Closed

Parachain staking functionality done#2
fgamundi wants to merge 68 commits intoparity-masterfrom
fxg-parachain-staking

Conversation

@fgamundi
Copy link

No description provided.

Maharacha and others added 10 commits March 24, 2022 06:45
* Updated OnFinality endpoint for Nodle Parachain

* Add OnFinality endpoint for Interlay

* Removed extra comma

* Add OnFinality endpoint for Polkadex

Co-authored-by: Yiwei Li <yiweili@ip-192-168-0-226.ap-northeast-1.compute.internal>
Co-authored-by: Ayush <>
* Remove instanceof, adjust VoteThreshold rendering

* useMemo
@fgamundi fgamundi force-pushed the fxg-parachain-staking branch from 3ea3ab8 to d59a3fa Compare March 24, 2022 11:11
Copy link

@4meta5 4meta5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. thank you!

To confirm, the functionality included is:

  1. top dashboard with staking stats:
  • collators selected / total possible collators chosen
  • number of waiting collators
  • active / delegators
  • total staked by selected candidates
  • annual inflation
  • % of inflation for parachain rent
  • % collator commission
  • current round number
  • time until next round
  1. extrinsic functionality for delegators:
  • delegate
  • delegator_bond_more
  • delegator_bond_less
  • leave_delegators
  • revoke_delegation
  • execute_pending_delegation_request
  • execute_leave_delegators
  • cancel_pending_delegation_request
  • cancel_leave_delegators

The submission will require instructions to show all the extrinsic functionality via the UI (TODO).

"version": "0.110.2-5",
"dependencies": {
"@babel/runtime": "^7.17.8",
"@moonbeam-network/api-augment": "^0.0.1-beta.4",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As I said, not sure if we can use it.

arrudagates and others added 2 commits March 25, 2022 10:46
* feat: Added InvArch Tinkernet with placeholder endpoint

* feat: Added logo file

* chore: lint fix doublequote -> singlequote

* fix: Fixed test

* fix: Indentation glitch

* feat: Update endpoint

* fix: New endpoint

* fix: One last endpoint change

* Remove comment

Co-authored-by: Jaco <jacogr@gmail.com>

Co-authored-by: Jaco <jacogr@gmail.com>
@fgamundi
Copy link
Author

@4meta5 the extrinsics a user can do are:

  • delegate
  • delegator_bond_more
  • schedule_delegator_bond_less
  • schedule_revoke_delegation
  • execute_delegation_request
  • cancel_delegation_request

We don't have a way to do schedule_leave_delegators, but we could add a button or something at the top if it's necessary.

@4meta5
Copy link

4meta5 commented Mar 25, 2022

It's not necessary, the functionality to leave delegators is already provided by schedule_revoke_delegation.

Sounds good, thanks!

github-actions bot and others added 25 commits March 28, 2022 13:30
Co-authored-by: Mateusz Nowakowski <mat13mn@gmail.com>
* feat: Added InvArch Tinkernet with placeholder endpoint

* feat: Added logo file

* chore: lint fix doublequote -> singlequote

* fix: Fixed test

* fix: Indentation glitch

* feat: Update endpoint

* fix: New endpoint

* fix: One last endpoint change

* Remove comment

Co-authored-by: Jaco <jacogr@gmail.com>

Co-authored-by: Jaco <jacogr@gmail.com>
* Staking pools

* Fly-by comment fix

* Some infrastructure

* multi

* Create value

* Retrieve singular params instance

* defaultValue for multi query

* Retrieve list of pool ids

* Drive-by param formatting

* Pool list retrieval

* Retrieve pool info

* Adjust trigger placement

* Dump info

* Join modal

* Fix build

* Allow creation & joining

* caveman typing

* Adjust disabled state

* Adjust

* cowboy types

* Some basic stats

* Created/Destoyed events

* Adjust for latest

* Set metadata on creation

* Basic pools
* Updated OnFinality endpoint for Nodle Parachain

* Add OnFinality endpoint for Interlay

* Removed extra comma

* Add OnFinality endpoint for Polkadex

* Remove OnFinality brand name from KICO endpoint

Co-authored-by: Yiwei Li <yiweili@ip-192-168-0-226.ap-northeast-1.compute.internal>
Co-authored-by: Yiwei Li <yiweili@Yiweis-MacBook-Pro.local>
* Add trigger for bags refresh

* isLoading pass-through

* Adjust
@fgamundi fgamundi force-pushed the fxg-parachain-staking branch from 840929c to 00390da Compare March 29, 2022 15:01
@fgamundi fgamundi closed this May 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.