0.2.0 • Published 2 years ago
@getlit/contracts v0.2.0
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'.

