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

eth_utils and eth.constants #88

Open
PatrickAlphaC opened this issue Oct 14, 2024 · 0 comments
Open

eth_utils and eth.constants #88

PatrickAlphaC opened this issue Oct 14, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@PatrickAlphaC
Copy link
Member

PatrickAlphaC commented Oct 14, 2024

We recently added a utils sub parser, and it should be pretty easy to programmatically call these functions as a CLI.

For example:

from argparse import Namespace
from eth import constants

ALIAS_TO_COMMAND = {"zero-address": "zero", "zero_address": "zero"}


def main(args: Namespace) -> int:
    utils_command = ALIAS_TO_COMMAND.get(args.wallet_command, args.wallet_command)
        print(constants.f{args.command_name}) 
    return 0

Or something, idk. But it should be dynamic so we don't have to do a lot of manual work

@PatrickAlphaC PatrickAlphaC added the enhancement New feature or request label Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant