Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Data Source] Get user stakes #45

Open
FrancoAguzzi opened this issue Aug 18, 2024 · 0 comments
Open

[Data Source] Get user stakes #45

FrancoAguzzi opened this issue Aug 18, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@FrancoAguzzi
Copy link
Contributor

FrancoAguzzi commented Aug 18, 2024

Depending on what the user role is

A stakes list should be taken either from Staking or from Delegate contract.
These user stakes should be get by calling respective Smart-Contract "getUserStakeIds" function.
After this, "stakes(stakeId)" function should be called for each individual stake.
After that, the following data structure should be mounted by a function in the edge of our dApp and Smart-Contract data:

{
  id: string;
  keyper: Address;
  amount: number;
  status: LockStatus;
  unlockDate: number;
}
@FrancoAguzzi FrancoAguzzi converted this from a draft issue Aug 18, 2024
@FrancoAguzzi FrancoAguzzi self-assigned this Aug 20, 2024
@FrancoAguzzi FrancoAguzzi added the enhancement New feature or request label Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: In review
Development

No branches or pull requests

1 participant