-
Notifications
You must be signed in to change notification settings - Fork 86
Feat/migrate lit contracts repo #916
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: naga
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR migrates the Lit Protocol contracts repository into the monorepo, integrating contract address and ABI synchronization functionality. The migration includes configuration for syncing with the external contracts repository and updates package dependencies to use the new workspace setup.
- Adds a new contracts package with ABI/address syncing functionality
- Updates package dependencies to use workspace references for the contracts package
- Adds build exclusions and a new sync command for contract management
Reviewed Changes
Copilot reviewed 5 out of 104 changed files in this pull request and generated no comments.
Show a summary per file
File | Description |
---|---|
packages/contracts/README.md | Adds documentation for contract syncing configuration and usage |
packages/constants/package.json | Adds contracts package dependency for workspace integration |
packages/auth-services/package.json | Updates contracts dependency to use workspace reference |
package.json | Removes external contracts dependency, adds sync command, and excludes contracts from build |
README.md | Documents the contract syncing process with required environment variables |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
WHAT
This is a migration from this repo/branch https://github.com/LIT-Protocol/lit-contracts/tree/rc-naga-1.0.0 into this monorepo and wires it into Nx.
In this package the build step is just a publish: it expects you’ve already run sync to refresh the version-controlled
./dist
, then copies that prebuilt tree intodist/packages/contracts/dist
. We leave the sync out of the automated build pipeline because it needs GitHub credentials for private repos, and we don’t want missing env vars to block contributors who don’t have that access.Getting started
Syncing contract artifacts
Put these env vars into your project root
.env
Then, run the following command:
To build
In this package the build step is just a publish: it assumes you already ran sync to refresh the version-controlled
./dist
, then copies that prebuilt tree intodist/packages/contracts/dist
.Testing
Sync
Build