{"id":20844322,"url":"https://github.com/bootnodedev/hyperlane-create2-factory-router","last_synced_at":"2026-04-19T16:02:54.368Z","repository":{"id":255541121,"uuid":"851142682","full_name":"BootNodeDev/hyperlane-create2-factory-router","owner":"BootNodeDev","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-16T11:03:19.000Z","size":127,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-12-27T02:53:01.960Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BootNodeDev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-09-02T13:59:12.000Z","updated_at":"2024-10-16T11:03:14.000Z","dependencies_parsed_at":"2024-09-14T08:44:13.334Z","dependency_job_id":"97e6bfe0-8bf9-4b76-a037-ab2402c7684e","html_url":"https://github.com/BootNodeDev/hyperlane-create2-factory-router","commit_stats":null,"previous_names":["bootnodedev/hyperlane-create2-factory-router"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BootNodeDev/hyperlane-create2-factory-router","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BootNodeDev%2Fhyperlane-create2-factory-router","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BootNodeDev%2Fhyperlane-create2-factory-router/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BootNodeDev%2Fhyperlane-create2-factory-router/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BootNodeDev%2Fhyperlane-create2-factory-router/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BootNodeDev","download_url":"https://codeload.github.com/BootNodeDev/hyperlane-create2-factory-router/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BootNodeDev%2Fhyperlane-create2-factory-router/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32012787,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"online","status_checked_at":"2026-04-19T02:00:07.110Z","response_time":55,"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":"2024-11-18T02:09:18.366Z","updated_at":"2026-04-19T16:02:54.346Z","avatar_url":"https://github.com/BootNodeDev.png","language":"Solidity","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hyperlane InterchainCreate2FactoryRouter\n\nThis repo contains a possible solution for https://github.com/hyperlane-xyz/hyperlane-monorepo/issues/2232.\n\nThe `InterchainCreate2FactoryRouter` would allow to deploy a contract on any given chain Hyperlane and the router are\ndeployed from another chain with the same conditions. This allows developers to just have a balance on one chain but\ndeploy contracts on multiple chains.\n\n## Deploy the router\n\n- Run `yarn install` to install all the dependencies\n- Create a `.env` file base on the [.env.example file](./.env.example) file, and set the required variables depending\n  which script you are going to run.\n\nSet the following environment variables required for running all the scripts, on each network.\n\n- `NETWORK`: the name of the network you want to run the script\n- `API_KEY_ALCHEMY`: you Alchemy API key\n\nIf the network is not listed under the `rpc_endpoints` section of the [foundry.toml file](./foundry.toml) you'll have to\nadd a new entry for it.\n\nFor deploying the router you have to run the `yarn run:deployRouter`. Make sure the following environment variable are\nset:\n\n- `DEPLOYER_PK`: deployer private key\n- `MAILBOX`: address of Hyperlane Mailbox contract on the chain\n- `ROUTER_OWNER`: address of the router owner\n- `PROXY_ADMIN`: address of the proxy admin. The router is deployed using a `TransparentUpgradeableProxy`\n- `ISM_SALT`: a salt for deploying the ISM the router uses. The provided in this repo is an `RoutingIsm` which allows\n  the user indicate the ISM used when sending the message\n- `ROUTER_IMPLEMENTATION`: the address of an existing implementation in the network\n- `ISM`: the address of an existing implementation in the network\n- `CUSTOM_HOOK`: some custom hook address to be set, address zero indicates the Mailbox default hook should be used\n\nFor enrolling routers you have to run `yarn run:enrollRouters`. Make sure the following environment variable are set:\n\n- `ROUTER_OWNER_PK`: the router's owner private key. Only the owner can enroll routers\n- `ROUTER`: address of the local router\n- `ROUTERS`: a list of routes addresses, separated by commas\n- `DOMAINS`: the domains list of the routers to enroll, separated by commas\n\n## Example usage\n\nRunning the example script `yarn run:interchainDeploy` would deploy a\n[TestDeployContract](./script/utils/TestDeployContract.sol) from the chain you set on `NETWORK` to the one you set on\n`DESTINATION_NETWORK` using the router set on `ROUTER` and the salt on `EXAMPLE_SALT`\n\n## Installing Dependencies\n\nFoundry typically uses git submodules to manage dependencies, but this template uses Node.js packages because\n[submodules don't scale](https://twitter.com/PaulRBerg/status/1736695487057531328).\n\nThis is how to install dependencies:\n\n1. Install the dependency using your preferred package manager, e.g. `yarn install dependency-name`\n   - Use this syntax to install from GitHub: `yarn install github:username/repo-name`\n2. Add a remapping for the dependency in [remappings.txt](./remappings.txt), e.g.\n   `dependency-name=node_modules/dependency-name`\n\nNote that OpenZeppelin Contracts is pre-installed, so you can follow that as an example.\n\n## Usage\n\nThis is a list of the most frequently needed commands.\n\n### Build\n\nBuild the contracts:\n\n```sh\n$ forge build\n```\n\n### Clean\n\nDelete the build artifacts and cache directories:\n\n```sh\n$ forge clean\n```\n\n### Compile\n\nCompile the contracts:\n\n```sh\n$ forge build\n```\n\n### Coverage\n\nGet a test coverage report:\n\n```sh\n$ forge coverage\n```\n\n### Deploy\n\nDeploy to Anvil:\n\n```sh\n$ forge script script/Deploy.s.sol --broadcast --fork-url http://localhost:8545\n```\n\nFor this script to work, you need to have a `MNEMONIC` environment variable set to a valid\n[BIP39 mnemonic](https://iancoleman.io/bip39/).\n\nFor instructions on how to deploy to a testnet or mainnet, check out the\n[Solidity Scripting](https://book.getfoundry.sh/tutorials/solidity-scripting.html) tutorial.\n\n### Format\n\nFormat the contracts:\n\n```sh\n$ forge fmt\n```\n\n### Gas Usage\n\nGet a gas report:\n\n```sh\n$ forge test --gas-report\n```\n\n### Lint\n\nLint the contracts:\n\n```sh\n$ bun run lint\n```\n\n### Test\n\nRun the tests:\n\n```sh\n$ forge test\n```\n\n## License\n\nThis project is licensed under MIT.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbootnodedev%2Fhyperlane-create2-factory-router","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbootnodedev%2Fhyperlane-create2-factory-router","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbootnodedev%2Fhyperlane-create2-factory-router/lists"}