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

feat: impl get_lookahead, minor refactoring #35

Merged
merged 2 commits into from
Jan 28, 2025

Conversation

merklefruit
Copy link
Contributor

@merklefruit merklefruit commented Jan 28, 2025

  • impl get_lookahead action on the registry
  • minor refactoring of the bin entrypoint

@merklefruit
Copy link
Contributor Author

merklefruit commented Jan 28, 2025

📚 $\text{Stack Overview}$

Pulls submitted in this stack:

This comment was automatically generated by st.

Copy link
Contributor

@mempirate mempirate left a comment

Choose a reason for hiding this comment

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

LGTM! Just one nit

// 10936976: { validator_pubkey: 0x1234, operator: 0x5678, gas_limit: 1000000, rpc_endpoint: https://rpc.example.com }
// 10936977: { validator_pubkey: 0x9214, operator: 0x5678, gas_limit: 1000000, rpc_endpoint: https://rpc.example.com }
// 10936978: { validator_pubkey: 0x1983, operator: 0x5678, gas_limit: 1000000, rpc_endpoint: https://rpc.example.com }
let mut lookahead = HashMap::new();
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit but can we create a type alias in primitives, to be used in openAPI spec?

type Lookahead = HashMap<u64, Entry>

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it's already like that, I guess I could use Lookahead::new() instead to make it more clear though

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done 116d8f1

@merklefruit merklefruit merged commit fa6d28a into main Jan 28, 2025
1 of 3 checks passed
@merklefruit merklefruit deleted the nico/feat/get-lookahead branch January 28, 2025 17:13
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