abi-ts
Create TypeScript type declaration files (.d.ts
) for your ABI JSON files.
This allows you to import your JSON ABI and use it directly with libraries like viem and abitype.
pnpm add @latticexyz/abi-ts
pnpm abi-ts
By default, abi-ts
looks for files with the glob **/*.abi.json
, but you can customize this glob with the --input
argument, e.g.
pnpm abi-ts --input 'abi/IWorld.sol/IWorld.abi.json'
Version 2.2.8
Release date: Mon Sep 23 2024
Patch changes
feat(store-sync): remove unused generics (#3218) (@latticexyz/common, @latticexyz/store-sync)
Removed unused generics and ensure that we're only passing around the generics we need, when we need them. Hopefully this improves TS performance in MUD projects.
fix(create-mud): add missing three deps, fix types (#3221) (create-mud)
Fixed types in threejs template after dependency bump.
feat(cli): paginate world deploy logs (#3217) (@latticexyz/cli)
When deploying to an existing world, the deployer now paginates with fetchLogs
to find the world deployment.
feat(cli): paginate world deploy logs (#3217) (@latticexyz/block-logs-stream)
- For block range size errors,
fetchLogs
now reduces the max block range for subsequent requests in its loop. For block out of range or response size errors, only the current request's block range is reduced until the request succeeds, then it resets to the max block range. - Added
fetchBlockLogs
to find all matching logs of the given block range, grouped by block number, in a single async call. - Loosened the
publicClient
type and switched to tree shakable actions.
fix(cli): wait for world init before transferring ownership (#3220) (@latticexyz/cli)
If the project is using a custom world, the deployer now waits for the init transaction to be confirmed before transferring ownership of the world.