{"id":26469840,"url":"https://github.com/ocdbytes/polygon_ozg","last_synced_at":"2025-08-18T21:14:30.065Z","repository":{"id":196086328,"uuid":"694308564","full_name":"ocdbytes/Polygon_OZG","owner":"ocdbytes","description":"This application is an example of both frontend and smart contract implmentation of lx/ly bridge for ERC20 token bridging.","archived":false,"fork":false,"pushed_at":"2023-11-26T10:45:45.000Z","size":723,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-14T04:08:40.930Z","etag":null,"topics":["polygon","tokenbridge","zkevm"],"latest_commit_sha":null,"homepage":"","language":"Solidity","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/ocdbytes.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":"2023-09-20T18:30:19.000Z","updated_at":"2024-03-24T11:01:52.000Z","dependencies_parsed_at":"2025-03-21T03:30:27.690Z","dependency_job_id":null,"html_url":"https://github.com/ocdbytes/Polygon_OZG","commit_stats":null,"previous_names":["ocdbytes/polygon_ozg"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ocdbytes/Polygon_OZG","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ocdbytes%2FPolygon_OZG","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ocdbytes%2FPolygon_OZG/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ocdbytes%2FPolygon_OZG/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ocdbytes%2FPolygon_OZG/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ocdbytes","download_url":"https://codeload.github.com/ocdbytes/Polygon_OZG/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ocdbytes%2FPolygon_OZG/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271061403,"owners_count":24692524,"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","status":"online","status_checked_at":"2025-08-18T02:00:08.743Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["polygon","tokenbridge","zkevm"],"created_at":"2025-03-19T17:09:34.073Z","updated_at":"2025-08-18T21:14:30.040Z","avatar_url":"https://github.com/ocdbytes.png","language":"Solidity","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Polygon_OZG\n\n- [Polygon_OZG](#polygon_ozg)\n  - [Example Lx/Ly Bridge](#example-lxly-bridge)\n  - [Setup](#setup)\n    - [Frontend](#frontend)\n    - [Smart Contract](#smart-contract)\n  - [Resources](#resources)\n\n## Example Lx/Ly Bridge\n\nThis application is an example of both frontend and smart contract implmentation of lx/ly bridge for ERC20 token bridging.\n\n![screenshot](./docs/Screenshot%202023-09-21%20at%2012.20.33%20AM.png)\n`Frontend`\n![screenshot2](./docs/Screenshot%202023-09-21%20at%2012.23.38%20AM.png)\n`Claim Function Listener`\n\n## Setup\n\n#### Frontend\n\n- Add the Wallet Connect project id to `src/app/providers.tsx`\n- [File To Edit](./proto/src/app/providers.tsx)\n\n```sh\ncd proto\nyarn\nyarn dev\n```\n\n#### Smart Contract\n\n```sh\ncd erc20bridge\nnpm i\nnpx hardhat compile\n```\n\n**Smart Contract Addresses :**\n\n```json\n{\n  \"ERC20BridgeMainnet\": \"0x60281F9DE2c0311B5E9A407A658f6Da2F6d026b3\",\n  \"ERC20BridgezkEVM\": \"0x8A82c434F2701A44258173287aa0497856735386\",\n  \"erc20MainnetToken\": \"0x6c55287976DAd6AD30F55fdEF2F1268FDA84e0db\",\n  \"erc20zkEVMToken\": \"0xea4e3eB04d7EEb22B679D7d753AcCf5e54c6C019\",\n  \"deployerAddress\": \"0x858a9477F74baa24a7F062b74A7f2D064443DF2E\",\n  \"tokenName\": \"customTokenName\",\n  \"tokenSymbol\": \"CTN\",\n  \"tokenInitialBalance\": \"1000000000000000000000000000\"\n}\n```\n\nAll addresses are on testnet.\n\n- Bridging from `göerliETH` to `zkEVMTestnet` can be done from the frontend.\n- But we need to run a claim listener in order to process the claims when ready.\n\nTo run the claim listener :\n\n```sh\nnpm run monitor:polygonZKEVMTestnet\n```\n\nENV example :\n\n```sh\nMNEMONIC=\"test test test test test test test test test test test junk\"\nINFURA_PROJECT_ID=\"\"\nETHERSCAN_API_KEY=\"\"\nETHERSCAN_ZKEVM_API_KEY=\"\"\nPVTKEY=\"\"\n```\n\n## Resources\n\nProblem Statement Link :\n\n[https://pushprotocol.notion.site/Polygon-557f8054f87e4dec8fe14fd55e76becd](https://pushprotocol.notion.site/Polygon-557f8054f87e4dec8fe14fd55e76becd)\n\nMore Code Examples :\n\n[https://github.com/0xPolygonHermez/code-examples](https://github.com/0xPolygonHermez/code-examples)\n\nHow ZkEVM Bridge Works ? :\n\n[https://wiki.polygon.technology/docs/zkevm/protocol/zkevm-bridge/](https://wiki.polygon.technology/docs/zkevm/protocol/zkevm-bridge/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Focdbytes%2Fpolygon_ozg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Focdbytes%2Fpolygon_ozg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Focdbytes%2Fpolygon_ozg/lists"}