{"id":24988416,"url":"https://github.com/lit-protocol/lit-contracts","last_synced_at":"2025-08-31T17:34:32.264Z","repository":{"id":249189442,"uuid":"830668679","full_name":"LIT-Protocol/lit-contracts","owner":"LIT-Protocol","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-07T19:31:33.000Z","size":595,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-07T20:29:20.019Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LIT-Protocol.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-18T18:20:21.000Z","updated_at":"2025-02-14T19:35:41.000Z","dependencies_parsed_at":"2024-07-24T21:17:47.027Z","dependency_job_id":"ba94d83a-bf84-46f6-a9f0-4710b4953ca7","html_url":"https://github.com/LIT-Protocol/lit-contracts","commit_stats":null,"previous_names":["lit-protocol/lit-contracts"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LIT-Protocol%2Flit-contracts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LIT-Protocol%2Flit-contracts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LIT-Protocol%2Flit-contracts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LIT-Protocol%2Flit-contracts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LIT-Protocol","download_url":"https://codeload.github.com/LIT-Protocol/lit-contracts/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246174604,"owners_count":20735417,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-04T12:04:13.932Z","updated_at":"2025-03-29T11:17:56.793Z","avatar_url":"https://github.com/LIT-Protocol.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fetch Lit contracts and have the same format as general-worker\n\nTo run locally, use the following command:\n\nEnsure you have a fine-grain read-only personal access token for the `lit-assets` repository (`GH_LIT_ASSETS_READ_ONLY_API`). For the `LIT_ABI_SOURCE` environment variable, you can set it to either `prod` or `dev`.\n\n- `prod`: Pulls content from the stable network contracts and ABIs found in the [LIT Protocol networks repository](https://github.com/LIT-Protocol/networks).\n- `dev`: Pulls content from the [LIT Protocol lit-assets repository](https://github.com/LIT-Protocol/lit-assets), a private repository with frequently changing ABIs and addresses, likely used for internal development.\n\neg.\n\n```\nLIT_ABI_SOURCE=prod GH_LIT_ASSETS_READ_ONLY_API=xxx bun run fetch-contracts.ts\n\n// for specific branch\nDEV_BRANCH=develop LIT_ABI_SOURCE=prod GH_LIT_ASSETS_READ_ONLY_API=xxx bun run fetch-contracts.ts\n```\n\n# To trigger build\n\n```\ncurl -X POST -H \"Accept: application/vnd.github.everest-preview+json\" \\\n-H \"Authorization: token github_pat_\u003c____YOUR_GITHUB_PERSONAL_ACCESS_TOKEN____\u003e\" \\\nhttps://api.github.com/repos/LIT-Protocol/lit-contracts/dispatches \\\n-d '{\"event_type\":\"sync_trigger\"}'\n```\n\n# Installation\n\n```\nyarn add @lit-protocol/contracts\n```\n\n# Usage\n\n## for \"main\" branch\n\n### Production (Getting data from `networks` repo )\n\n```\nimport { datilDev, datilTest, datil } from \"@lit-protocol/contracts\";\n\nconsole.log(\"datilDev:\", datilDev);\nconsole.log(\"datilTest:\", datilTest);\nconsole.log(\"datil:\", datil);\n```\n\n### Development (Getting data from `lit-assets` repo `develop` branch )\n\n```\nimport { _datilDev, _datilTest, _datil } from \"@lit-protocol/contracts\";\n\nconsole.log(\"datilDev:\", _datilDev);\nconsole.log(\"datilTest:\", _datilTest);\nconsole.log(\"datil:\", _datil);\n```\n\n## for any other branches with `dev-` prefix\n\n### Development (Getting data from `lit-assets` repo with whatever the branch name is)\n\neg. if your branch here is called `dev-datil` then it will pull data from lit-assets `datil` branch\n\nthe `dev-` prefix is to allow GitHub action to publish to npm.\n\n```\nimport { _datilDev, _datilTest, _datil } from \"@lit-protocol/contracts\";\n\nconsole.log(\"datilDev:\", _datilDev);\nconsole.log(\"datilTest:\", _datilTest);\nconsole.log(\"datil:\", _datil);\n```\n\n# Branching \u0026 dev strategy\n\n![](https://i.ibb.co/Z136p20/image.png)\n\n# CI Workflow\n\n![](https://www.plantuml.com/plantuml/png/TP6nSl8m48HxFSMLvf-11p35Ju0KAI0COM1I2ljiYyWdpKaYuUqZ2Po9YtIQtTMdqzx2USa-z5haWoWFhDeM6Kw6FnfjFkT2DL0Cwk5cyVy4V8S4nIwuRY9GEuHYZzOuvGtVOAsSbRvA5jMg4UKRUdYcgs93FPA7esGbpnhTdRraILKtHc-aeea0o7SRmv04k2Vd-SbqiyRhzDyejiRhA0N5QmJoA9EL8VLhnc1XQsgSNHn8gc4PQ2xA5ugzQ1t1DYQHAfN6BlU1eC7uoMbboBEil9jv1vPD_RSRntsOBHAoz3Z5BsiuklqbKLUcxvNFhwTkOTL9QeUQTk6iLHIVTDmArZzLlQFBtrk6ti8HsIaJ1mSOQ0y9af_r0UGDR7UReQUjoPIqF2rlS99CYjgX7-UD5Oju3ht-1W00)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flit-protocol%2Flit-contracts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flit-protocol%2Flit-contracts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flit-protocol%2Flit-contracts/lists"}