Package Exports
- @lit-protocol/contracts-sdk
- @lit-protocol/contracts-sdk/src/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@lit-protocol/contracts-sdk) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Lit Protocol Contracts SDK
Scripts
gen-code.mjs
This script automatically generates a contracts-sdk.ts
. It does this by reading the file names from a specified directory, generating import statements and declarations based on those file names, and replacing certain sections of the contracts-sdk.ts file with the generated content.
node packages/contracts-sdk/gen-code.mjs
fetch-contracts.mjs
This script fetches and processes ABI files for a set of deployed contracts. It writes the ABI files and contract data to the file system and runs a command to generate additional files based on the ABIs.
node packages/contracts-sdk/fetch-contracts.mjs