{"id":30614573,"url":"https://github.com/morpho-org/vault-v2-deployment","last_synced_at":"2025-08-30T07:15:39.823Z","repository":{"id":304953002,"uuid":"1020345184","full_name":"morpho-org/vault-v2-deployment","owner":"morpho-org","description":"One-click Vault V2 Deployment","archived":false,"fork":false,"pushed_at":"2025-08-19T09:04:42.000Z","size":10666,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-19T11:21:09.922Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://docs.morpho.org/learn/concepts/vault-v2/","language":"Solidity","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/morpho-org.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-15T18:09:24.000Z","updated_at":"2025-07-29T19:00:09.000Z","dependencies_parsed_at":"2025-07-17T16:16:51.610Z","dependency_job_id":null,"html_url":"https://github.com/morpho-org/vault-v2-deployment","commit_stats":null,"previous_names":["morpho-org/vault-v2-deployment"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/morpho-org/vault-v2-deployment","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morpho-org%2Fvault-v2-deployment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morpho-org%2Fvault-v2-deployment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morpho-org%2Fvault-v2-deployment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morpho-org%2Fvault-v2-deployment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/morpho-org","download_url":"https://codeload.github.com/morpho-org/vault-v2-deployment/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morpho-org%2Fvault-v2-deployment/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272817705,"owners_count":24998038,"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-30T02:00:09.474Z","response_time":77,"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-30T07:15:35.345Z","updated_at":"2025-08-30T07:15:39.813Z","avatar_url":"https://github.com/morpho-org.png","language":"Solidity","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Morpho VaultV2 Deployment\n\n#### ⚠️ DISCLAIMER\n\n**This repository is provided for educational purposes only. The Morpho Association cannot be held responsible for any loss of funds, damages, or other consequences that may result from using this script or any associated code. Use at your own risk.**\n\n**By using this script, you acknowledge that:**\n- You understand the risks associated with smart contract deployment and cryptocurrency transactions\n- You have thoroughly tested the script in a safe environment before any mainnet deployment\n- You are solely responsible for any funds or assets that may be lost due to bugs, errors, or misuse\n- The code is provided \"as is\" without any warranties or guarantees\n\n**Please ensure you understand the code and test thoroughly before deploying to mainnet.**\n\n---\n\n## Overview \n\nThis repository provides a \"one-click\" script to deploy a Morpho VaultV2 using a Morpho VaultV1 as an underlying liquidity market pool.\n\nSee VaultV2 deployment documentation [here](https://docs.morpho.org/learn/concepts/vault-v2/).\n\nYou can find a detailed explanation of the script, allowing you to build your own deployment script [here](docs/build_own_script.md).\n\nThe script will deploy the following smart contracts:\n\n- A **VaultV2**\n- A **VaultV1 Adapter**\n\nYou need to provide the following parameters as environment variables:\n\n- `OWNER`: Address of the Owner\n- `CURATOR`: Address of the Curator\n- `ALLOCATOR`: Address of an Allocator\n- `SENTINEL`: Address of a Sentinel\n- `VAULT_V1`: Address of the VaultV1 to be used as the liquidity market.\n- `TIMELOCK_DURATION`: Duration of the timelock in seconds to be set. Do not set this variable or set it to 0 if no timelock is needed.\n\nNote: the Loan Token (the \"asset\") will be inferred from the VaultV1 configuration.\n\n## Getting Started\n\n### 1. Prerequisites\n\n- [Foundry](https://getfoundry.sh/)\n- [Git](https://git-scm.com/)\n\n### 2. Installation\n\n1. Clone the repository:\n\n   ```bash\n   git clone git@github.com:morpho-org/vault-v2-deployment.git\n   cd vault-v2-deployment\n   ```\n\n2. Install dependencies:\n   This project uses git submodules for dependencies.\n   ```bash\n   git submodule update --init --recursive\n   ```\n\n### 3. Deploy VaultV2\n\nThis script deploys a new VaultV2 instance and its related contracts to run with a VaultV1 as Liquidity Market.\n\nRun the script:\n\n```bash\n# Set environment variables\n# Notes:\n#      - These variables can also be put in .env file\n#      - TIMELOCK_DURATION variable can be set to 0 or skipped\nexport OWNER=0xYourOwnerAddress\nexport CURATOR=0xYourCuratorAddress\nexport ALLOCATOR=0xYourAllocatorAddress\nexport SENTINEL=0xYourSentinelAddress\nexport VAULT_V1=0xTheVaultV1ToUse\nexport TIMELOCK_DURATION=TimelockDurationInSeconds\n```\n\n```bash\n# Run the deployment script (without block explorer verification)\nforge script script/DeployVaultV2.s.sol \\\n  --rpc-url \u003cYOUR_RPC_URL\u003e \\\n  --private-key \u003cYOUR_PRIVATE_KEY\u003e \\\n  --broadcast\n```\n\n```bash\n# Run the deployment script (with verification on Etherscan)\n# Refer to Foundry documentation for non Etherscan block explorers\nforge script script/DeployVaultV2.s.sol \\\n  --rpc-url \u003cYOUR_RPC_URL\u003e \\\n  --private-key \u003cYOUR_PRIVATE_KEY\u003e \\\n  --broadcast \\\n  --etherscan-api-key \u003cYOUR_ETHERSCAN_API_KEY\u003e \\\n  --verify\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmorpho-org%2Fvault-v2-deployment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmorpho-org%2Fvault-v2-deployment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmorpho-org%2Fvault-v2-deployment/lists"}