Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tr1sm0s1n/brownie-vyper-example
Example project to compile/test/deploy smart contracts written in Vyper using Brownie.
https://github.com/tr1sm0s1n/brownie-vyper-example
brownie dapp ethereum pip python smart-contracts venv vyper
Last synced: 18 days ago
JSON representation
Example project to compile/test/deploy smart contracts written in Vyper using Brownie.
- Host: GitHub
- URL: https://github.com/tr1sm0s1n/brownie-vyper-example
- Owner: tr1sm0s1n
- Created: 2023-04-07T15:11:23.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-09T08:39:08.000Z (4 months ago)
- Last Synced: 2024-09-09T10:31:10.701Z (4 months ago)
- Topics: brownie, dapp, ethereum, pip, python, smart-contracts, venv, vyper
- Language: Python
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Brownie-Vyper-Example
Example project to compile/test/deploy smart contracts written in Vyper using Brownie.
## 🛠 Built With
[![Python Badge](https://img.shields.io/badge/Python-3776AB?logo=python&logoColor=fff&style=for-the-badge)](https://www.python.org/)
[![Vyper Badge](https://img.shields.io/badge/Vyper-3C3C3D?logo=ethereum&logoColor=fff&style=for-the-badge)](https://docs.vyperlang.org/en/stable/)
[![Brownie Badge](https://img.shields.io/badge/Brownie-3C3C3D?logo=ethereum&logoColor=fff&style=for-the-badge)](https://eth-brownie.readthedocs.io/en/stable/)## ⚙️ Run Locally
Clone the repository
```sh
git clone https://github.com/tr1sm0s1n/brownie-vyper-example
cd brownie-vyper-example
```Install `uv`, an extremely fast Python package and project manager
```sh
curl -LsSf https://astral.sh/uv/install.sh | sh
```Install Brownie
```sh
uv add eth-brownie
```Compile the contract
```sh
uv run brownie compile
```Run a blockchain simulation (foundry/hardhat) on port **8545**.
Test the contract
```sh
uv run brownie test
```Deploy the contract
```sh
uv run brownie run deploy.py
```