wevm / abitype

Strict TypeScript types for Ethereum ABIs
https://abitype.dev
MIT License
474 stars 39 forks source link

fix: fixes zod parsed abi's assignability to `Abi` #192

Closed Raiden1411 closed 11 months ago

Raiden1411 commented 11 months ago

Description

Fixes (#189)

Additional Information

Your ENS/address:


PR-Codex overview

This PR focuses on fixing an issue with Zod's parsed ABIs not being assignable to the Abi type.

Detailed summary

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

changeset-bot[bot] commented 11 months ago

🦋 Changeset detected

Latest commit: f26b63f97d2764869b3d6a13248de58f75c67568

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

commit-lint[bot] commented 11 months ago

Bug Fixes

Chore

Tests

Contributors

Raiden1411, tmm

Commit-Lint commands
You can trigger Commit-Lint actions by commenting on this PR: - `@Commit-Lint merge patch` will merge dependabot PR on "patch" versions (X.X.Y - Y change) - `@Commit-Lint merge minor` will merge dependabot PR on "minor" versions (X.Y.Y - Y change) - `@Commit-Lint merge major` will merge dependabot PR on "major" versions (Y.Y.Y - Y change) - `@Commit-Lint merge disable` will desactivate merge dependabot PR - `@Commit-Lint review` will approve dependabot PR - `@Commit-Lint stop review` will stop approve dependabot PR
vercel[bot] commented 11 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
abitype ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 3, 2023 3:48pm
github-actions[bot] commented 11 months ago

Size Change: +35 B (0%)

Total Size: 48.4 kB

Filename Size Change
dist/cjs/zod.js 2.08 kB +18 B (+1%)
dist/esm/zod.js 1.91 kB +17 B (+1%)
ℹ️ View Unchanged | Filename | Size | | :--- | :---: | | `dist/cjs/abi.js` | 123 B | | `dist/cjs/config.js` | 126 B | | `dist/cjs/errors.js` | 577 B | | `dist/cjs/human-readable/errors/abiItem.js` | 537 B | | `dist/cjs/human-readable/errors/abiParameter.js` | 804 B | | `dist/cjs/human-readable/errors/signature.js` | 420 B | | `dist/cjs/human-readable/errors/splitParameters.js` | 404 B | | `dist/cjs/human-readable/errors/struct.js` | 338 B | | `dist/cjs/human-readable/formatAbi.js` | 294 B | | `dist/cjs/human-readable/formatAbiItem.js` | 420 B | | `dist/cjs/human-readable/formatAbiParameter.js` | 487 B | | `dist/cjs/human-readable/formatAbiParameters.js` | 313 B | | `dist/cjs/human-readable/parseAbi.js` | 348 B | | `dist/cjs/human-readable/parseAbiItem.js` | 439 B | | `dist/cjs/human-readable/parseAbiParameter.js` | 470 B | | `dist/cjs/human-readable/parseAbiParameters.js` | 527 B | | `dist/cjs/human-readable/runtime/cache.js` | 616 B | | `dist/cjs/human-readable/runtime/signatures.js` | 782 B | | `dist/cjs/human-readable/runtime/structs.js` | 1.03 kB | | `dist/cjs/human-readable/runtime/utils.js` | 2.13 kB | | `dist/cjs/human-readable/types/signatures-test-d.js` | 440 B | | `dist/cjs/human-readable/types/signatures.js` | 127 B | | `dist/cjs/human-readable/types/structs.js` | 127 B | | `dist/cjs/human-readable/types/utils.js` | 124 B | | `dist/cjs/index.js` | 743 B | | `dist/cjs/narrow.js` | 169 B | | `dist/cjs/regex.js` | 362 B | | `dist/cjs/test.js` | 597 B | | `dist/cjs/test/abis.js` | 5.93 kB | | `dist/cjs/test/human-readable.js` | 3.6 kB | | `dist/cjs/types.js` | 124 B | | `dist/cjs/utils.js` | 124 B | | `dist/cjs/version.js` | 149 B | | `dist/esm/abi.js` | 62 B | | `dist/esm/config.js` | 65 B | | `dist/esm/errors.js` | 524 B | | `dist/esm/human-readable/errors/abiItem.js` | 454 B | | `dist/esm/human-readable/errors/abiParameter.js` | 674 B | | `dist/esm/human-readable/errors/signature.js` | 339 B | | `dist/esm/human-readable/errors/splitParameters.js` | 345 B | | `dist/esm/human-readable/errors/struct.js` | 282 B | | `dist/esm/human-readable/formatAbi.js` | 214 B | | `dist/esm/human-readable/formatAbiItem.js` | 339 B | | `dist/esm/human-readable/formatAbiParameter.js` | 405 B | | `dist/esm/human-readable/formatAbiParameters.js` | 230 B | | `dist/esm/human-readable/parseAbi.js` | 267 B | | `dist/esm/human-readable/parseAbiItem.js` | 353 B | | `dist/esm/human-readable/parseAbiParameter.js` | 383 B | | `dist/esm/human-readable/parseAbiParameters.js` | 436 B | | `dist/esm/human-readable/runtime/cache.js` | 554 B | | `dist/esm/human-readable/runtime/signatures.js` | 572 B | | `dist/esm/human-readable/runtime/structs.js` | 948 B | | `dist/esm/human-readable/runtime/utils.js` | 2.04 kB | | `dist/esm/human-readable/types/signatures-test-d.js` | 367 B | | `dist/esm/human-readable/types/signatures.js` | 69 B | | `dist/esm/human-readable/types/structs.js` | 66 B | | `dist/esm/human-readable/types/utils.js` | 64 B | | `dist/esm/index.js` | 345 B | | `dist/esm/narrow.js` | 97 B | | `dist/esm/regex.js` | 284 B | | `dist/esm/test.js` | 298 B | | `dist/esm/test/abis.js` | 5.8 kB | | `dist/esm/test/human-readable.js` | 3.49 kB | | `dist/esm/types.js` | 64 B | | `dist/esm/utils.js` | 64 B | | `dist/esm/version.js` | 82 B |

compressed-size-action

codecov[bot] commented 11 months ago

Codecov Report

All modified lines are covered by tests :white_check_mark:

Comparison is base (77fe09a) 99.90% compared to head (f26b63f) 99.90%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #192 +/- ## ======================================= Coverage 99.90% 99.90% ======================================= Files 21 21 Lines 2048 2055 +7 Branches 325 325 ======================================= + Hits 2046 2053 +7 Misses 2 2 ``` | [Files](https://app.codecov.io/gh/wagmi-dev/abitype/pull/192?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=wagmi-dev) | Coverage Δ | | |---|---|---| | [src/zod.ts](https://app.codecov.io/gh/wagmi-dev/abitype/pull/192?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=wagmi-dev#diff-c3JjL3pvZC50cw==) | `100.00% <100.00%> (ø)` | |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.