Gathering detailed insights and metrics for @architect_dev/abitype
Gathering detailed insights and metrics for @architect_dev/abitype
Gathering detailed insights and metrics for @architect_dev/abitype
Gathering detailed insights and metrics for @architect_dev/abitype
npm install @architect_dev/abitype
Typescript
Module System
Node Version
NPM Version
67.3
Supply Chain
98.9
Quality
76.9
Maintenance
100
Vulnerability
99.6
License
TypeScript (100%)
Total Downloads
338
Last Day
1
Last Week
4
Last Month
53
Last Year
338
329 Commits
1 Branches
1 Contributors
Latest Version
1.0.8
Package Id
@architect_dev/abitype@1.0.8
Unpacked Size
1.12 MB
Size
129.44 kB
File Count
245
NPM Version
10.1.0
Node Version
20.9.0
Publised On
18 Sept 2024
Cumulative downloads
Total Downloads
Last day
0%
1
Compared to previous day
Last week
0%
4
Compared to previous week
Last month
231.3%
53
Compared to previous month
Last year
0%
338
Compared to previous year
2
Strict TypeScript types for Ethereum ABIs
Strict TypeScript types for Ethereum ABIs. ABIType provides utilities and type definitions for ABI properties and values, covering the Contract ABI Specification, as well as EIP-712 Typed Data.
1import type { AbiParametersToPrimitiveTypes, ExtractAbiFunction, ExtractAbiFunctionNames } from 'abitype' 2import { erc20Abi } from 'abitype/abis' 3 4type FunctionNames = ExtractAbiFunctionNames<typeof erc20Abi, 'view'> 5// ^? type FunctionNames = "symbol" | "name" | "allowance" | "balanceOf" | "decimals" | "totalSupply" 6 7type TransferInputTypes = AbiParametersToPrimitiveTypes< 8 // ^? type TransferInputTypes = readonly [`0x${string}`, bigint] 9 ExtractAbiFunction<typeof erc20Abi, 'transfer'>['inputs'] 10>
Works great for adding blazing fast autocomplete and type checking to functions, variables, or your own types. No need to generate types with third-party tools โ just use your ABI and let TypeScript do the rest!
ABIType might be a good option for your project if:
'string'
) to TypeScript types (e.g. string
) or other type transformations.For documentation and guides, visit abitype.dev.
For help, discussion about best practices, or any other conversation that would benefit from being searchable:
For casual chit-chat with others using the library:
If you find ABIType useful or use it for work, please consider supporting development on GitHub Sponsors or sending crypto to wevm.eth
. Thank you ๐
Contributions to ABIType are greatly appreciated! If you're interested in contributing to ABIType, please read the Contributing Guide before submitting a pull request.
No vulnerabilities found.
No security vulnerabilities found.