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

L2 - CLI: utils (new) command #2034

Open
fborello-lambda opened this issue Feb 20, 2025 · 0 comments
Open

L2 - CLI: utils (new) command #2034

fborello-lambda opened this issue Feb 20, 2025 · 0 comments
Labels
cli Command line interface L2 Rollup client

Comments

@fborello-lambda
Copy link
Contributor

Inside the utils command, we can implement:

  • calldata calculations
  • derive and address with the given private-key
  • calculate offsets
  • maybe conversions between wei and ethers
  • encode/decode a transaction
  • and any other calculation that doesn’t depend on the RPCs
@fborello-lambda fborello-lambda added cli Command line interface L2 Rollup client labels Feb 20, 2025
@mpaulucci mpaulucci removed this from ethrex_l1 Feb 25, 2025
github-merge-queue bot pushed a commit that referenced this issue Feb 25, 2025
**Motivation**

In this PR we add the `utils` subcommand to the cli with the
`private-key-to-address` option

**Description**

* Added the `utils.rs` file
* Using the function `get_address_from_secret_key` from the sdk we
compute the address

Links to: #2034

---------

Co-authored-by: Ivan Litteri <67517699+ilitteri@users.noreply.github.com>
Co-authored-by: Manuel Iñaki Bilbao <manuel.bilbao@lambdaclass.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli Command line interface L2 Rollup client
Projects
Status: No status
Development

No branches or pull requests

1 participant