engine icon indicating copy to clipboard operation
engine copied to clipboard

fix: Assert strict ABI type validation

Open arcoraven opened this issue 4 months ago • 0 comments

Asserts type validation matching ABIType schema. Tested by pasting in an entire NFT contract ABI.

PR-Codex overview

This PR focuses on updating the handling of ABI (Application Binary Interface) in the contract-related code. It introduces a new schema for ABI and refactors functions to utilize the new structure, improving type safety and consistency across the codebase.

Detailed summary

  • Changed abi type from Static<typeof abiArraySchema> to Abi in getContract.ts.
  • Updated write.ts, metadata/abi.ts, events.ts, and functions.ts to use AbiSchema instead of abiSchema.
  • Refactored getContract calls to getContractV5.
  • Introduced new Abi schemas in abi.ts for better structure and validation.

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

arcoraven avatar Oct 05 '24 02:10 arcoraven