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

get_validator_address_by_pool_id function #19333

Merged
merged 3 commits into from
Sep 16, 2024

Conversation

0xripleys
Copy link
Contributor

Description

Add a function called get_validator_address_by_pool_id

There is currently no way to verify on-chain that a validator address and staking pool id are related. This is now possible with the function above

Test plan

added some unit tests


Release notes

Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required.

For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates.

  • Protocol:
  • Nodes (Validators and Full nodes):
  • Indexer:
  • JSON-RPC:
  • GraphQL:
  • CLI:
  • Rust SDK:
  • REST API:

Copy link

vercel bot commented Sep 12, 2024

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

Name Status Preview Comments Updated (UTC)
sui-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 12, 2024 7:21pm
3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
multisig-toolkit ⬜️ Ignored (Inspect) Visit Preview Sep 12, 2024 7:21pm
sui-kiosk ⬜️ Ignored (Inspect) Visit Preview Sep 12, 2024 7:21pm
sui-typescript-docs ⬜️ Ignored (Inspect) Visit Preview Sep 12, 2024 7:21pm

@stefan-mysten stefan-mysten requested review from tnowacki, lxfind, tzakian and a team and removed request for tzakian September 12, 2024 05:02
Copy link
Contributor

@emmazzz emmazzz left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for adding this!

@emmazzz emmazzz merged commit 66eda7e into MystenLabs:main Sep 16, 2024
44 checks passed
suiwombat pushed a commit that referenced this pull request Sep 16, 2024
## Description 

Add a function called `get_validator_address_by_pool_id`

There is currently no way to verify on-chain that a validator address
and staking pool id are related. This is now possible with the function
above

## Test plan 

added some unit tests

---

## Release notes

Check each box that your changes affect. If none of the boxes relate to
your changes, release notes aren't required.

For each box you select, include information after the relevant heading
that describes the impact of your changes that a user might notice and
any actions they must take to implement updates.

- [ ] Protocol: 
- [ ] Nodes (Validators and Full nodes): 
- [ ] Indexer: 
- [ ] JSON-RPC: 
- [ ] GraphQL: 
- [ ] CLI: 
- [ ] Rust SDK:
- [ ] REST API:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants