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(BACK-7925): implement erc7730 generate command #135

Merged
merged 6 commits into from
Nov 4, 2024

Conversation

jnicoulaud-ledger
Copy link
Contributor

@jnicoulaud-ledger jnicoulaud-ledger commented Nov 4, 2024

Notes:

  • The generator does its best to guess proper format based on name+type. it is perfectible but a good enough start point
  • Tree code is extracted from CAL but it diverged significantly
  • Test don't cover much, only really tested manually with some examples:
pdm run erc7730 generate --chain-id=1 --address=0x7fc66500c84a76ad7e9c93437bfc5ac33e2ddae9
pdm run erc7730 generate --chain-id=1 --address=0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45
pdm run erc7730 generate --chain-id=1 --address=0x0000000000000000000000000000000000000000 --abi tests/generate/data/abis001.json
pdm run erc7730 generate --chain-id=1 --address=0x0000000000000000000000000000000000000000 --schema tests/generate/data/schemas001.json

Unrelated changes:

  • fixed/removed unused EIP712JsonSchema type

@jnicoulaud-ledger jnicoulaud-ledger merged commit 77af5e4 into main Nov 4, 2024
5 checks passed
@jnicoulaud-ledger jnicoulaud-ledger deleted the BACK-7925 branch November 4, 2024 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants