@owlprotocol/zod-sol
TypeScript icon, indicating that this package has built-in type declarations

3.0.0 • Public • Published

Zod Sol

zod schema validation for Solidity types.

Zod Sol enables the creation of Zod validators for Solidity smart contracts. We support 2 types of zod validators:

  • Typescript compiled: Uses a Typescript staticically typed ABI definition to generate a typed zod validator for function inputs & outputs. Flexible but has its limitations due to challenge of writing type inference.
  • Code generation: Uses any ABI (json or object) to generate code that creates zod validator for function inputs & outputs. More flexiable and easier on the TS compiler but uses code generation and is therefore less composable with custom TS.

Package Sidebar

Install

npm i @owlprotocol/zod-sol

Weekly Downloads

34

Version

3.0.0

License

MIT

Unpacked Size

763 kB

Total Files

292

Last publish

Collaborators

  • oscbacon
  • leovigna