{"id":21538375,"url":"https://github.com/rarimo/polygonid-integration-contracts","last_synced_at":"2025-03-17T20:48:03.675Z","repository":{"id":186215043,"uuid":"674830570","full_name":"rarimo/polygonid-integration-contracts","owner":"rarimo","description":null,"archived":false,"fork":false,"pushed_at":"2024-02-12T23:09:01.000Z","size":595,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-24T07:45:57.349Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Solidity","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rarimo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2023-08-04T22:42:30.000Z","updated_at":"2023-11-20T09:43:30.000Z","dependencies_parsed_at":"2023-12-12T18:23:38.954Z","dependency_job_id":"65ee600f-0ffa-43c9-9f8c-61a89aad4b74","html_url":"https://github.com/rarimo/polygonid-integration-contracts","commit_stats":null,"previous_names":["rarimo/polygonid-integration-contracts"],"tags_count":0,"template":false,"template_full_name":"dl-solarity/hardhat-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rarimo%2Fpolygonid-integration-contracts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rarimo%2Fpolygonid-integration-contracts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rarimo%2Fpolygonid-integration-contracts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rarimo%2Fpolygonid-integration-contracts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rarimo","download_url":"https://codeload.github.com/rarimo/polygonid-integration-contracts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244110091,"owners_count":20399562,"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":"2024-11-24T04:11:47.370Z","updated_at":"2025-03-17T20:48:03.623Z","avatar_url":"https://github.com/rarimo.png","language":"Solidity","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PolygonId integration contracts\n\n#### Test\n\nTo run the tests, execute the following command:\n\n```bash\nnpm run test\n```\n\nOr to see the coverage, run:\n\n```bash\nnpm run coverage\n```\n\n#### Deployment\n\nBefore deployment, you need to create an **.env** file following the example from **.env.example**\n\nNext you need to fill in the config file `deploy/data/config.json`\n\nThe config has the following structure:\n\n```json\n{\n  \"validatorContractInfo\": {\n    \"validatorAddr\": \"\",\n    \"isSigValidator\": \"false\"\n  },\n  \"stateContractInfo\": {\n    \"stateAddr\": \"0x134B1...07a4\",\n    \"stateInitParams\": {\n      \"signer\": \"0xda323...afa6\",\n      \"sourceStateContract\": \"0x134B1...07a4\",\n      \"chainName\": \"Sepolia\"\n    }\n  },\n  \"verifiedSBTInfo\": {\n    \"name\": \"Polygon ID × Rarimo\",\n    \"symbol\": \"PRA\",\n    \"tokenURI\": \"some URI\"\n  },\n  \"poseidonFacade\": \"\"\n}\n\n```\n\nTo deploy new contracts it is enough to leave the fields with addresses empty while filling in the fields with init values.\nIf you already have contract addresses, just fill in the corresponding fields. In this configuration, the specified contract addresses will be used during deployment\n\nTo deploy, run command `npm run deploy-\u003cnetwork\u003e`, where *network* is the network name from the **hardhat.config.ts** file. The list of available commands and their settings can be found in **package.json** file\n\n#### Local deployment\n\nTo deploy the contracts locally, run the following commands (in the different terminals):\n\n```bash\nnpm run private-network\nnpm run deploy-localhost\n```\n\n#### Bindings\n\nThe command to generate the bindings is as follows:\n\n```bash\nnpm run generate-types\n```\n\n\u003e See the full list of available commands in the `package.json` file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frarimo%2Fpolygonid-integration-contracts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frarimo%2Fpolygonid-integration-contracts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frarimo%2Fpolygonid-integration-contracts/lists"}