@getlit/contracts
v0.2.0
Published
A script to get the latest Lit contract addresses & ABI, with types π
Readme
What
The @getlit/contracts script fetches contract data from the https://lit-general-worker.getlit.dev/contract-addresses API and generates contract files, including JSON, JS, and TypeScript files. It also produces typechain types for the contracts.
See ./lit-contracts
Quick Start
npx @getlit/contractsUsage
To run the script:
npx @getlit/contracts [options]Options
--update: Flag to indicate if existing contracts should be updated with newer versions.--outdir: Specify the output directory for generated contract files. Default is 'lit-contracts'.--network: Specify the network ('cayenne' or 'serrano') to determine the API endpoint. Default is 'cayenne'.


