engine
engine copied to clipboard
fix: Assert strict ABI type validation
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 fromStatic<typeof abiArraySchema>
toAbi
ingetContract.ts
. - Updated
write.ts
,metadata/abi.ts
,events.ts
, andfunctions.ts
to useAbiSchema
instead ofabiSchema
. - Refactored
getContract
calls togetContractV5
. - Introduced new
Abi
schemas inabi.ts
for better structure and validation.
✨ Ask PR-Codex anything about this PR by commenting with
/codex {your question}