This repository has been archived by the owner on Jun 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: integrate abitype library and format ABI items in code overview…
… and contract function components (#2672) ### TL;DR Add `abitype` library and refactor the codebase to utilize `formatAbiItem` for formatting contract functions and events. ### What changed? - Added `abitype` library to `package.json` and `pnpm-lock.yaml` files. - Refactored multiple files to replace existing ABI formatting logic with `formatAbiItem` from `abitype`. - `contract-function.tsx`: Integrated `formatAbiItem` for formatting contract functions and events. - `code-overview.tsx`: Unified ABI formatting using `formatAbiItem`. - Removed dependency on `resolveMethod` from `thirdweb`. ### How to test? 1. Verify the `abitype` library installation in `package.json` and `pnpm-lock.yaml`. 2. Check the refactored files for correct usage of `formatAbiItem`. 3. Run the project and ensure no runtime errors occur related to ABI formatting. 4. Test contract functions and events to ensure they are formatted correctly. ### Why make this change? To improve the consistency and reliability of ABI formatting across the codebase by using a dedicated library (`abitype`). --- <!-- start pr-codex --> --- ## PR-Codex overview The focus of this PR is to introduce the `abitype` package, update dependencies, and refactor code snippets in the `CodePlayground` component. ### Detailed summary - Introduced `abitype` package - Updated dependencies - Refactored code snippets in `CodePlayground.tsx` - Modified imports and functions in various files > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
- Loading branch information
Showing
4 changed files
with
40 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters