{"id":17297078,"url":"https://github.com/3lang3/script_linea_bridge","last_synced_at":"2025-04-14T12:12:34.209Z","repository":{"id":184617887,"uuid":"672204575","full_name":"3lang3/script_linea_bridge","owner":"3lang3","description":null,"archived":false,"fork":false,"pushed_at":"2023-10-19T09:27:45.000Z","size":141,"stargazers_count":6,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-14T12:12:29.403Z","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/3lang3.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}},"created_at":"2023-07-29T09:16:18.000Z","updated_at":"2023-09-10T07:17:24.000Z","dependencies_parsed_at":"2023-07-29T10:39:08.325Z","dependency_job_id":null,"html_url":"https://github.com/3lang3/script_linea_bridge","commit_stats":null,"previous_names":["3lang3/script_linea_bridge"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3lang3%2Fscript_linea_bridge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3lang3%2Fscript_linea_bridge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3lang3%2Fscript_linea_bridge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3lang3%2Fscript_linea_bridge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/3lang3","download_url":"https://codeload.github.com/3lang3/script_linea_bridge/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248877959,"owners_count":21176244,"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-10-15T11:14:45.585Z","updated_at":"2025-04-14T12:12:34.183Z","avatar_url":"https://github.com/3lang3.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Linea 官方桥脚本\n\n![geetest_1](./demo.png)\n\n不管是L1-L2，还是L2-L1，请在Gas低的时候执行，excutionFee是按照目标链当前gasPrice计算的，如果gasPrice高，会导致跨链费用高。\n\n## 功能\n\n- 支持主网跨到linea\n- 支持linea跨到主网\n- 支持测试网调试\n\n\u003e 内置任务缓存，如果任务失败，可以重新执行，已执行的不会重复执行\n\n## 环境\n\n- Nodejs [lts](https://nodejs.org/en/download), 👉[教程戳这里](https://www.liaoxuefeng.com/wiki/1022910821149312/1023025597810528)\n\n## 运行\n\n- `pks.txt` 私钥列表，一行一个\n\n```bash\nnpn i -g pnpm # 安装依赖管理工具\npnpm install # 安装依赖\n\n# 主网跨0.1eth到linea\npnpm task -a to_linea -n 0.1\n\n# linea跨0.1eth到主网\npnpm task -a to_mainet -n 0.1\npnpm task -a claim # 目前官方桥从linea跨到主网需要手动领取确认, 这一步需要在to_mainnet后，等待一定时间后再执行\n\n# 清空任务缓存\npnpm task -a reset\n```\n\n\u003e L2跨到L1的手动claim步骤，具体何时可以执行，可以去官方桥页面[查看](https://bridge.linea.build/)，如果有可领取的，会有claim按钮\n\n## 测试环境\n\n```bash\n# goerli跨0.1eth到linea-goerli\npnpm task -e test -a to_linea -n 0.1\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F3lang3%2Fscript_linea_bridge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F3lang3%2Fscript_linea_bridge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F3lang3%2Fscript_linea_bridge/lists"}