dao_partnership

所属分类:NFT
开发工具:JavaScript
文件大小:73KB
下载次数:0
上传日期:2021-06-09 14:15:52
上 传 者sh-1993
说明:  代表平等伙伴关系的以太坊智能合约去中心化自治组织
(Ethereum smart contract representing an equal partnership decentralized autonomous organization)

文件列表:
.eslintignore (19, 2018-08-01)
.eslintrc.js (246, 2018-08-01)
.solcover.js (58, 2018-08-01)
.soliumignore (63, 2018-08-01)
.soliumrc.json (269, 2018-08-01)
.travis.yml (248, 2018-08-01)
MITLICENSE (1067, 2018-08-01)
contracts (0, 2018-08-01)
contracts\Incomplete.sol (597, 2018-08-01)
contracts\Migrations.sol (654, 2018-08-01)
contracts\Partnership.sol (9414, 2018-08-01)
migrations (0, 2018-08-01)
migrations\1_initial_migration.js (126, 2018-08-01)
package-lock.json (290268, 2018-08-01)
package.json (765, 2018-08-01)
prepare.js (1343, 2018-08-01)
test (0, 2018-08-01)
test\Partnership.js (22643, 2018-08-01)
test\helpers (0, 2018-08-01)
test\helpers\expectThrow.js (1007, 2018-08-01)
truffle-config.js (135, 2018-08-01)
truffle.js (758, 2018-08-01)

[![Build Status](https://travis-ci.org/jamiehale/dao_partnership.svg?branch=master)](https://travis-ci.org/jamiehale/dao_partnership) [![Coverage Status](https://coveralls.io/repos/github/jamiehale/dao_partnership/badge.svg?branch=master)](https://coveralls.io/github/jamiehale/dao_partnership?branch=master) A DAO for a simple partnership, written in Solidity for deployment on Ethereum. # Usage The preferred deployment method is to prepare a transaction for submission using MyEtherWallet. After [installation](#Installation): First, decide on a single amount that all partners will contribute. It must be the same for all partners. Enter this amount (in ETH) as the `ether_amount` below, followed by the Ethereum addresses of each partner. $ node prepare.js ether_amount parter1_addr partner2_addr [partner3_addr ...] This will create two files: `bytecode.txt` and `arguments.txt`. Go to [MyEtherWallet's Contract page](https://www.myetherwallet.com/#contracts) click Deploy Contract Paste the contents of `bytecode.txt` into the Byte Code field ... access your wallet and deploy the contract. Once the contract has been created, go to [Etherscan's Contract Verifier](https://etherscan.io/verifyContract2): * Contract Address: the deployed address of your contract * Contract Name: Partnership * Compiler: the version returned when you ran `node prepare.js` above. * Optimization: Yes * Enter the Solidity Contract Code: Paste the contents of `contracts/Partnership.sol` * Constructor Arguments ABI-encoded: Paste the contents of `arguments.txt` * Solve the CAPTCHA * Click **Verify and Publish** Now each of the partners listed given to `prepare.js` above need to send the exact amount specified to the contract address, from each specific account (not from an exchange). Until this is done the contract will not accept ether from any other source. After the contract is funded with the contribution from each partner anyone can send ether to the contract address. Additional partner contributions will be recorded as loans. # Development It uses the Truffle framework for testing, but does not use its deployment system. ## Installation $ npm install ## Building $ npm run test ## Continuous Integration https://travis-ci.org/jamiehale/dao_partnership ## Code coverage https://coveralls.io/github/jamiehale/dao_partnership

近期下载者

相关文件


收藏者