Skip to content

Conversation

@CantaloupeBob
Copy link
Contributor

@CantaloupeBob CantaloupeBob commented Aug 3, 2025

Adds optional ability to derive a LocalAccount to use within the provided examples from a local encrypted keystore.

Currently, the LocalAccount within example_utils.py is created off a provided secret key- but I think it's reasonable to assume that some devs will have secret keys within a keystore that they'd like to use instead. For instance, Foundry users might have keys stored within the Foundry default dir of ~/.foundry/keystores/<NAME>.

These changes provide the ability for devs to specify a path to a keystore in their config.json. If they do so, the LocalAccount will be derived from here, rather than the secret key.

Copy link
Contributor

@traderben traderben 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 again

@traderben traderben merged commit 13090a6 into hyperliquid-dex:master Aug 5, 2025
3 checks passed
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