pythonic-dao

所属分类:NFT
开发工具:Python
文件大小:2752KB
下载次数:0
上传日期:2021-10-01 09:32:39
上 传 者sh-1993
说明:  用Vyper编写的基本众筹合同,作为围绕一项事业进行去中心化自主组织的基础
(Basic Crowdfunding Contract written in Vyper as a Basis to Decentralized Autonomous Organizing around a cause)

文件列表:
LICENSE (1073, 2021-10-01)
contracts (0, 2021-10-01)
contracts\Crowdfunding.vy (2681, 2021-10-01)
docs (0, 2021-10-01)
docs\images (0, 2021-10-01)
docs\images\dapp.gif (734326, 2021-10-01)
docs\images\destination.png (294079, 2021-10-01)
docs\images\origin.png (160157, 2021-10-01)
generate-mnemonic.py (1873, 2021-10-01)
poetry.lock (137058, 2021-10-01)
pyproject.toml (665, 2021-10-01)
scripts (0, 2021-10-01)
scripts\deploy-crowdfund.py (2797, 2021-10-01)
serve.py (1363, 2021-10-01)
static (0, 2021-10-01)
static\abi (0, 2021-10-01)
static\abi\Crowdfunding.js (1961, 2021-10-01)
static\app.js (2108, 2021-10-01)
static\components (0, 2021-10-01)
static\components\VeuButton.js (1018, 2021-10-01)
static\components\VeuInput.js (716, 2021-10-01)
static\components\VeuPane.js (381, 2021-10-01)
static\ethers.min.js (584476, 2021-10-01)
static\images (0, 2021-10-01)
static\images\lambo.jpg (1414750, 2021-10-01)
static\robots.txt (25, 2021-10-01)
static\styles (0, 2021-10-01)
static\styles\VeuButton.css (5457, 2021-10-01)
static\styles\VeuInput.css (1714, 2021-10-01)
static\styles\VeuPane.css (402, 2021-10-01)
static\styles\index.css (1129, 2021-10-01)
templates (0, 2021-10-01)
templates\index.html (1298, 2021-10-01)

# Pythonic DAO Decentralized Autonomous Organization (DAO) an organization that was designed to be automated and decentralized, acting as a form of venture capital fund, based on open-source code and without a typical management structure or board of directors (Source: Investopedia) This repository only serve as a basic Crowdfunding Contract written in Vyper to serve as an Origin Example where users can come together decentrally and autonomously organizing for a cause such as crowdfunding. ![Origin](https://github.com/aekasitt/pythonic-dao/blob/master/./docs/images/origin.png) Eventually I believe that through iterations, this serves as a ground floor in DAO development such as those seen by popular DAO projects on Ethereum and many to come on SmartBCH ![Destination](https://github.com/aekasitt/pythonic-dao/blob/master/./docs/images/destination.png) ## Environment Set-up 0. (Optional) Use Poetry as our Python Pacakge Manager ```bash $ pip install -U poetry > ... $ poetry init > ... ``` 1. Add our Smart Contract Framework, my weapon of choice is [Brownie](https://github.com/aekasitt/pythonic-dao/blob/master/https://github.com/eth-brownie/brownie) ```bash $ poetry add eth-brownie > ... ``` 2. This is a useful library I always use for wallet generation, see `generate-mnemonic.py` script. ```bash $ poetry add bip-utils > ... ``` 4. Run `eth-brownie` initate command on your Terminal ```bash brownie init --force > ... ``` ## Deploy for Local Testing and Interaction ```bash $ brownie run deploy-crowdfund --interactive ``` ## Add a new Network for Deployments ```bash $ brownie networks add [environment] [id] host=[host] [KEY=VALUE, ...] ``` (See: [Brownie ReadTheDocs](https://github.com/aekasitt/pythonic-dao/blob/master/https://eth-brownie.readthedocs.io/en/stable/network-management.html#adding-a-new-network)) ## Example DAPP To run the attached Example DAPP that interacts with the contract, first you must install the extra dependencies as such. ```bash poetry install -E dapp ``` Then you will be able to serve the app located in the root directory under `serve.py` file as followed ```bash uvicorn serve:dapp ``` ![DAPP](https://github.com/aekasitt/pythonic-dao/blob/master/./docs/images/dapp.gif) ## License This project is licensed under the terms of the MIT license.

近期下载者

相关文件


收藏者