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

fix: sdk staking client to add staker address when getting staker info #660

Merged
merged 4 commits into from
Jul 11, 2023

Conversation

leric7
Copy link
Collaborator

@leric7 leric7 commented Jul 10, 2023

Description

Fix Node.js/Python SDK StakingClient module. It's missing address in the staker info, which is necessary.

Summary of changes

  • Updated return value schema of getAllStakers, and getStaker function of Node.js SDK, to include address of the staker.
  • Updated get_staker_info function of Python SDK to include address of the staker.
  • Renamed staker to address of the return value of get_all_stakers_info function, to unify the response schema with Node.js SDK.
  • Updated relevant tests.

How test the changes

Related issues

Keywords for linking issues

Closes #648

Operational checklist

  • All new functionality is covered by tests
  • Any related documentation has been changed or added

@vercel
Copy link

vercel bot commented Jul 10, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
escrow-dashboard ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 11, 2023 3:55pm
faucet-server ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 11, 2023 3:55pm
fortune-exchange-oracle ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 11, 2023 3:55pm
fortune-exchange-oracle-server ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 11, 2023 3:55pm
fortune-job-launcher-client ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 11, 2023 3:55pm
fortune-job-launcher-server ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 11, 2023 3:55pm
fortune-recording-oracle ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 11, 2023 3:55pm
fortune-reputation-oracle ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 11, 2023 3:55pm

@leric7 leric7 self-assigned this Jul 10, 2023
@leric7 leric7 added the SDK label Jul 10, 2023
Copy link
Collaborator

@portuu3 portuu3 left a comment

Choose a reason for hiding this comment

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

lets keep it as staker or stakerAddress instead of address

@leric7 leric7 requested a review from portuu3 July 11, 2023 13:34
@vercel vercel bot temporarily deployed to Preview – fortune-exchange-oracle-server July 11, 2023 13:34 Inactive
@vercel vercel bot temporarily deployed to Preview – fortune-job-launcher-server July 11, 2023 13:36 Inactive
@vercel vercel bot temporarily deployed to Preview – fortune-recording-oracle July 11, 2023 13:36 Inactive
@vercel vercel bot temporarily deployed to Preview – fortune-job-launcher-client July 11, 2023 13:37 Inactive
@vercel vercel bot temporarily deployed to Preview – fortune-exchange-oracle July 11, 2023 13:38 Inactive
@vercel vercel bot temporarily deployed to Preview – fortune-reputation-oracle July 11, 2023 13:38 Inactive
@vercel vercel bot temporarily deployed to Preview – fortune-job-launcher-client July 11, 2023 15:50 Inactive
@vercel vercel bot temporarily deployed to Preview – fortune-job-launcher-server July 11, 2023 15:51 Inactive
@vercel vercel bot temporarily deployed to Preview – fortune-recording-oracle July 11, 2023 15:52 Inactive
@vercel vercel bot temporarily deployed to Preview – fortune-reputation-oracle July 11, 2023 15:54 Inactive
@vercel vercel bot temporarily deployed to Preview – fortune-exchange-oracle July 11, 2023 15:55 Inactive
@vercel vercel bot temporarily deployed to Preview – fortune-exchange-oracle-server July 11, 2023 15:55 Inactive
@leric7 leric7 merged commit 973da4d into develop Jul 11, 2023
22 checks passed
@leric7 leric7 deleted the fix/sdk-staker-address branch July 11, 2023 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants