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

[bridge] Add print registration info in cli #17908

Merged
merged 1 commit into from
May 29, 2024

Conversation

longbowlu
Copy link
Contributor

Description

Add a subcommand to display current registration info.

Test plan

sui-bridge-cli print-sui-bridge-info --sui-rpc-url https://rpc.testnet.sui.io:443

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:

Copy link

vercel bot commented May 24, 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 May 29, 2024 5:40am
3 Ignored Deployments
Name Status Preview Comments Updated (UTC)
multisig-toolkit ⬜️ Ignored (Inspect) Visit Preview May 29, 2024 5:40am
sui-kiosk ⬜️ Ignored (Inspect) Visit Preview May 29, 2024 5:40am
sui-typescript-docs ⬜️ Ignored (Inspect) Visit Preview May 29, 2024 5:40am

@dariorussi
Copy link
Contributor

is this ready for review? it seems to be against a private branch and I am confused...

Base automatically changed from add-print-eth-address-in-cli to main May 29, 2024 05:37
Copy link
Contributor

@dariorussi dariorussi left a comment

Choose a reason for hiding this comment

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

all good a couple of comments just to show I read the PR

/// Print current registration info
#[clap(name = "print-bridge-registration-info")]
PrintBridgeRegistrationInfo {
#[clap(long = "sui-rpc-url")]
Copy link
Contributor

Choose a reason for hiding this comment

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

I know that you know that I know that you know... but you can just say long when the long name matches the field name. Though maybe was on purpose...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

will fix this in a later PR

})
.collect::<HashMap<_, _>>();
let mut authorities = vec![];
for (_, member) in move_type_bridge_committee.member_registration {
Copy link
Contributor

Choose a reason for hiding this comment

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

you could work off references if you wanted particularly considering most of the usage is by reference.
Just commenting to be honest, I do not think it matters much given the usage

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah we consume it anyway here

@longbowlu longbowlu merged commit 9c5c7a0 into main May 29, 2024
48 checks passed
@longbowlu longbowlu deleted the add-print-registration-info-in-cli branch May 29, 2024 23:46
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