{"id":23392059,"url":"https://github.com/buildonpolygon/eurc-lxly","last_synced_at":"2025-07-06T20:32:15.630Z","repository":{"id":231747225,"uuid":"764575491","full_name":"BuildOnPolygon/eurc-lxly","owner":"BuildOnPolygon","description":null,"archived":false,"fork":false,"pushed_at":"2024-03-26T17:01:53.000Z","size":31,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-14T11:34:11.904Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/BuildOnPolygon.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}},"created_at":"2024-02-28T10:28:27.000Z","updated_at":"2024-04-05T15:59:36.000Z","dependencies_parsed_at":"2024-04-05T17:52:19.291Z","dependency_job_id":"8d5462a8-100d-46b0-8006-e5a462448952","html_url":"https://github.com/BuildOnPolygon/eurc-lxly","commit_stats":null,"previous_names":["buildonpolygon/eurc-lxly"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BuildOnPolygon%2Feurc-lxly","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BuildOnPolygon%2Feurc-lxly/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BuildOnPolygon%2Feurc-lxly/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BuildOnPolygon%2Feurc-lxly/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BuildOnPolygon","download_url":"https://codeload.github.com/BuildOnPolygon/eurc-lxly/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247867365,"owners_count":21009240,"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-12-22T04:28:17.370Z","updated_at":"2025-04-08T15:19:03.174Z","avatar_url":"https://github.com/BuildOnPolygon.png","language":"Solidity","funding_links":[],"categories":[],"sub_categories":[],"readme":"# EURC LXLY\n\n## Deploy and Initialize\n\n1. set up `.env`\n\n2. deploy\n\n```shell\nforge script script/DeployInit.s.sol:DeployInit --multi --legacy -vvvv --verify --etherscan-api-key \u003c\u003e --broadcast\n```\n\n3. write down resulting addresses for `MinterBurnerProxy` and `NativeEscrowProxy`\n\n\u003e new MinterBurnerProxy@0xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n\u003e\n\u003e new NativeConverterProxy@0xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n\n4. on L2 EURC, execute the `ConfigureLxLyMinters` script\n\n## Play Around\n\n- check the explorers\n\n| Eth Mainnet                                                                            | ZkEVM Mainnet                                                                                          |\n| -------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------ |\n| [Native EURC](https://etherscan.io/address/0x1aBaEA1f7C830bD89Acc67eC4af516284b1bC33c) | [EURC.e](https://zkevm.polygonscan.com/address/0x48ffd6616857ab5883487268ef3f1c78dde870e3)             |\n| n/a                                                                                    | [BridgeWrapped EURC](https://zkevm.polygonscan.com/address/0x514723aCd1e233C2523E512Fa6af1eD4fad102E0) |\n| [L1Escrow](https://etherscan.io/address/0xbc35bd9a7f1fb02d297e5bf3005f949b8c1a0f91)    | n/a                                                                                                    |\n| n/a                                                                                    | [MinterBurner](https://zkevm.polygonscan.com/address/0xdcdbeb3e5a9e41b3f8ef43e44eee429a29fdc407)       |\n| n/a                                                                                    | [NativeEscrow](https://zkevm.polygonscan.com/address/0xee6fcf42d78b9a642637e372061096619f94d446)       |\n\n| Sepolia                                                                                        | Cardona                                                                                                            |\n| ---------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------ |\n| [Native EURC](https://sepolia.etherscan.io/address/0x08210F9170F89Ab7658F0B5E3fF39b0E03C594D4) | [EURC.e](https://explorer-ui.cardona.zkevm-rpc.com/address/0x73FE5De351321A298a36F3bed7950349E694D5dc)             |\n| n/a                                                                                            | [BridgeWrapped EURC](https://explorer-ui.cardona.zkevm-rpc.com/address/0x4738Bd8D019C4bAf0ad6FE51b1b9E8a4512D64fa) |\n| [L1Escrow](https://sepolia.etherscan.io/address/0x32882c9b631ef8B5cE7CB07E35C9AA3e8110e02f)    | n/a                                                                                                                |\n| n/a                                                                                            | [MinterBurner](https://explorer-ui.cardona.zkevm-rpc.com/address/0xe38a08574AFD5E282D6C41EB1E59bF9641c5E648)       |\n| n/a                                                                                            | [NativeEscrow](https://explorer-ui.cardona.zkevm-rpc.com/address/0x322A0e623999910c6A99F33bcEf98fC1cB9a1bA2)       |\n\n- get the addresses ready\n\n```\nexport L1_RPC_URL=https://eth-mainnet.g.alchemy.com/v2/\u003cXXXXX\u003e\nexport L2_RPC_URL=https://zkevm-rpc.com\n\nexport PK=\nexport TESTER=0x02023f74ED12Df7752144aE8A23411776D4698b4\n\nexport L1_EURC=0x1aBaEA1f7C830bD89Acc67eC4af516284b1bC33c\nexport L2_EURC=0x48ffd6616857ab5883487268eF3F1c78dde870e3\nexport L2_BWEURC=0x514723aCd1e233C2523E512Fa6af1eD4fad102E0\n\nexport L1_ESCROW=0x937d0003df039C9685bf0E4A6b3dd50FE0d719B0\nexport MINTER_BURNER=0xEF502e776367fbb5Bd17b9b36A1750cd30aEbf2B\nexport NATIVE_CONVERTER=0xa841f406e7E4fcCe2C9f3Da219D62BF6245bdf0B\n```\n\n- execute the cast commands\n\n```\n# Get Native EURC in L2 through L1Escrow\ncast send --rpc-url $L1_RPC_URL --private-key $PK $L1_EURC \"approve(address,uint256)\" $L1_ESCROW 8000000\ncast call $L1_EURC \"allowance(address,address)\" $TESTER $L1_ESCROW --rpc-url $L1_RPC_URL\ncast send --rpc-url $L1_RPC_URL --private-key $PK $L1_ESCROW \"bridgeToken(address,uint256,bool)\" $TESTER 8000000 true\n\n# Withdraw L2 (Native) EURC into L1 EURC\ncast call $L2_EURC \"balanceOf(address)\" $TESTER --rpc-url $L2_RPC_URL\ncast send --rpc-url $L2_RPC_URL --legacy --private-key $PK $L2_EURC \"approve(address,uint256)\" $MINTER_BURNER 1000000\ncast send --rpc-url $L2_RPC_URL --legacy --private-key $PK $MINTER_BURNER \"bridgeToken(address,uint256,bool)\" $TESTER 1000000 true\n\n# Convert BridgeWrapped EURC into Native EURC\ncast send --rpc-url $L2_RPC_URL --legacy --private-key $PK $L2_BWEURC \"approve(address,uint256)\" $NATIVE_CONVERTER 1000000\ncast send --rpc-url $L2_RPC_URL --legacy --private-key $PK $NATIVE_CONVERTER \"convert(address,uint256,bytes)\" $TESTER 1000000 \"\"\n\n# Deconvert Native EURC into BridgeWrapped EURC\ncast send --rpc-url $L2_RPC_URL --legacy --private-key $PK $L2_EURC \"approve(address,uint256)\" $NATIVE_CONVERTER 1000000\ncast send --rpc-url $L2_RPC_URL --legacy --private-key $PK $NATIVE_CONVERTER \"deconvert(address,uint256,bytes)\" $TESTER 1000000 \"\"\n\n# Admin Only - Migrate the BridgeWrapped EURC from L2 to L1Escrow\ncast send --rpc-url $L2_RPC_URL --private-key $PK $NATIVE_CONVERTER \"migrate()\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuildonpolygon%2Feurc-lxly","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbuildonpolygon%2Feurc-lxly","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuildonpolygon%2Feurc-lxly/lists"}