{"id":30105682,"url":"https://github.com/dutterbutter/cross-chain-example","last_synced_at":"2025-08-10T00:17:42.832Z","repository":{"id":304210039,"uuid":"1015563609","full_name":"dutterbutter/cross-chain-example","owner":"dutterbutter","description":null,"archived":false,"fork":false,"pushed_at":"2025-07-11T16:50:01.000Z","size":148,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-11T18:41:23.051Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dutterbutter.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,"zenodo":null}},"created_at":"2025-07-07T17:33:45.000Z","updated_at":"2025-07-11T16:50:04.000Z","dependencies_parsed_at":"2025-07-11T18:41:27.436Z","dependency_job_id":"08806ebe-71e4-4b5e-b640-19f12ef7e776","html_url":"https://github.com/dutterbutter/cross-chain-example","commit_stats":null,"previous_names":["dutterbutter/cross-chain-example"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/dutterbutter/cross-chain-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dutterbutter%2Fcross-chain-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dutterbutter%2Fcross-chain-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dutterbutter%2Fcross-chain-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dutterbutter%2Fcross-chain-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dutterbutter","download_url":"https://codeload.github.com/dutterbutter/cross-chain-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dutterbutter%2Fcross-chain-example/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269656436,"owners_count":24454646,"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-09T02:00:10.424Z","response_time":111,"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":[],"created_at":"2025-08-10T00:17:40.524Z","updated_at":"2025-08-10T00:17:42.794Z","avatar_url":"https://github.com/dutterbutter.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cross-Chain Vault Unlock (L1 ➝ L2) Test\n\nThis project showcases a minimal example of sending a message from Ethereum L1 to zkSync Era L2 using custom contracts: `AccessKey` on L1 and `Vault` on L2.\n\nThe test demonstrates how to:\n- Deploy contracts to both chains\n- Alias L1 address for L2 interaction\n- Fetch bridgehub address via `zks_getBridgehubContract`\n- Estimate the base cost using `l2TransactionBaseCost`\n- Unlock an L2 vault from an L1 transaction\n\n## Setup\n\nTwo running RPC endpoints:\n\n- L1: `http://localhost:8012` (`anvil --no-request-size-limit --port 8012`)\n- L2: `http://localhost:8011` (`anvil-zksync --evm-interpreter --external-l1=http://127.0.0.1:8012 -vv`)\n\n```bash\nnpm install\nnpm run compile\nnpm run test\n````\n\nEnsure `.env` is configured:\n\n```ini\nPRIVATE_KEY=0x...\nL1_RPC_URL=http://localhost:8012\nL2_RPC_URL=http://localhost:8011\nL2_GAS_LIMIT=350000\nL2_PUBDATA_BYTE_LIMIT=800\n```\n\n---\n\n## Structure\n\n* `contracts/` – Solidity contracts for L1 \u0026 L2\n* `test/` – E2E test for cross-chain vault unlock\n\n---\n\n## Dependencies\n\n* Hardhat\n* Ethers\n* anvil\n* anvil-zksync\n* ZKsync contracts: `@matter-labs/zksync-contracts`\n\n---\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdutterbutter%2Fcross-chain-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdutterbutter%2Fcross-chain-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdutterbutter%2Fcross-chain-example/lists"}