{"id":19498152,"url":"https://github.com/patrickalphac/foundry-vyper","last_synced_at":"2025-07-15T17:37:27.321Z","repository":{"id":53892423,"uuid":"521830487","full_name":"PatrickAlphaC/foundry-vyper","owner":"PatrickAlphaC","description":"A package for deploying and compiling vyper code in foundry ","archived":false,"fork":false,"pushed_at":"2022-09-24T18:13:54.000Z","size":29,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-03-04T01:09:11.601Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/PatrickAlphaC.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}},"created_at":"2022-08-06T02:53:51.000Z","updated_at":"2023-01-25T07:35:09.000Z","dependencies_parsed_at":"2023-01-18T21:32:35.851Z","dependency_job_id":null,"html_url":"https://github.com/PatrickAlphaC/foundry-vyper","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PatrickAlphaC%2Ffoundry-vyper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PatrickAlphaC%2Ffoundry-vyper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PatrickAlphaC%2Ffoundry-vyper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PatrickAlphaC%2Ffoundry-vyper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PatrickAlphaC","download_url":"https://codeload.github.com/PatrickAlphaC/foundry-vyper/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224019638,"owners_count":17242176,"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-11-10T21:49:22.730Z","updated_at":"2024-11-10T21:49:24.574Z","avatar_url":"https://github.com/PatrickAlphaC.png","language":"Solidity","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Foundry/Vyper\n\n\u003cbr/\u003e\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"./img/vyper-logo.png\" width=\"225\" alt=\"Vyper logo\"\u003e\n\u003cimg src=\"./img/foundry-logo.png\" width=\"225\" alt=\"Vyper logo\"\u003e\n\u003c/p\u003e\n\u003cbr/\u003e\n\nA package for running, deploying, and working with vyper contracts in a foundry setup. \n\n# Table of Contents\n- [Foundry/Vyper](#foundryvyper)\n- [Table of Contents](#table-of-contents)\n- [Getting Started](#getting-started)\n  - [Requirements](#requirements)\n  - [Quickstart](#quickstart)\n    - [Deploying with arguments](#deploying-with-arguments)\n- [Acknowledgments](#acknowledgments)\n\n# Getting Started\n\n## Requirements\n\nThe following will need to be installed in order to use this template. Please follow the links and instructions.\n\n-   [Git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git)  \n    -   You'll know you've done it right if you can run `git --version`\n-   [Foundry / Foundryup](https://github.com/gakonst/foundry)\n    -   This will install `forge`, `cast`, and `anvil`\n    -   You can test you've installed them right by running `forge --version` and get an output like: `forge 0.2.0 (f016135 2022-07-04T00:15:02.930499Z)`\n    -   To get the latest of each, just run `foundryup`\n-   [Vyper Compiler](https://vyper.readthedocs.io/en/stable/installing-vyper.html)\n    -   You'll know you've done it right if you can run `vyper --version` and get an output like: `0.3.4+commit.f31f0ec`\n\n## Quickstart\n\n1. Install the package. \n```\nforge install PatrickAlphaC/foundry-vyper --no-commit\n```\n\n2. Update `remappings.txt`\n\nEither make a `remappings.txt` file or just add the following to it:\n\n```\nfoundry-vyper/=lib/foundry-vyper/src/\n```\n\n3. Use the Vyper Deployer Contract!\n\n```javascript\nimport \"foundry-vyper/VyperDeployer.sol\";\nimport \"src/interfaces/ISimpleStorage.sol\";\n.\n.\n.\nfunction deploy() public {\n    string vyperSimpleStorageLocation = \"src/VSimpleStorage.vy\";\n    vyperDeployer = new VyperDeployer();\n    address vyContractAddress = vyperDeployer.deployContract(vyperSimpleStorageLocation);\n    ISimpleStorage simpleStorage = ISimpleStorage(vyContractAddress); \n}\n```\n\n### Deploying with arguments\n\nTo deploy with arguments, just abi encode your arguments:\n\n```\nvyperDeployer.deployContract(\"SimpleStore\", abi.encode(1234))\n```\n\n# Acknowledgments\n\n- [0xKitsune/Foundry-Vyper](https://github.com/0xKitsune/Foundry-Vyper)\n- [Foundry/Huff](https://github.com/huff-language/foundry-huff)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatrickalphac%2Ffoundry-vyper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpatrickalphac%2Ffoundry-vyper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatrickalphac%2Ffoundry-vyper/lists"}