abiefund / abie Goto Github PK
View Code? Open in Web Editor NEWThis project forked from hackerhouseparis/abie
A simple crowdfunding tool
Home Page: http://abie.fund
License: MIT License
This project forked from hackerhouseparis/abie
A simple crowdfunding tool
Home Page: http://abie.fund
License: MIT License
Anyone can trigger it at anytime from the front.
Below the contact balance, create:
Test the following scenarios:
https://github.com/AbieFund/abie/blob/master/src/app/Home.js
On the model of what's done with the 'name' variable,
Display the value of the statement
variable for this contract. It's a phrase in English.
Load the value of memberList
and render the list on the page.
https://github.com/AbieFund/abie/blob/master/src/app/Home.js
The input string must be converted to HEX before sent to the blockchain.
It also might require to add a "0x" at the beginning of it.
(1) Display on the page the current list of members (first members + recipients of all passing addMember proposals) and statement
.
(2) Make sure the following functions are usable:
setDelegate()
askMembership()
addProposal()
voteYes()
voteNo()
They all trigger Metamask: user is invited to sign the tx.
Display the url of the tx on Etherscan.
Upgrade the contract to Solidity 0.5.7:
https://github.com/AbieFund/abie/blob/master/contracts/Abie.sol
https://github.com/AbieFund/abie/blob/master/src/app/Home.js
Add a Claim
button right below the CountAllVotes
buttons.
Prepare a transaction (with a 0.1 ETH fee) to be triggered on click.
Display a loader.
On tx mined: refresh the page.
The expected behavior is:
https://github.com/AbieFund/abie/blob/master/contracts/Abie.sol
Proposal.js is part of a react app, it's the file we want to improve.
It is the frontend that allows users to interact with Abie.sol deployed on Ropsten like this one.
name
for this address.contractBalance()
function.Other features of v0.2 to implement:
https://github.com/AbieFund/abie/blob/master/src/app/Home.js
There is a problem with the value field, it should not set the value of the tx but rather the value of the proposal (that is the requested amount for the initiative taken on the ground).
Convert from wei to ether (ETH).
(1) hexDecode the name and statement of intent of the contract (and not "of the proposal")
(2) hexDecode the name of the proposal
counteVote()
(3) It's using countAllVotes() and we want to use countVotes()
instead.
countVotes()
wants 2 values:
proposalID
: no specific problem, it's the current proposalIDmax
: give “5" as a static value for every proposal to be submittedWhen the contract data are loading, display:
"Loading..."
Fix the remaining glitches.
Replace Ropsten by Kovan.
Check askMembership()
and setDelegate()
’s behavior at frontend level.
askMembership()
setDelegate()
https://github.com/AbieFund/abie/blob/master/src/app/Home.js
https://abie-fund.herokuapp.com/?address=0xeaeaff11f2a2df90d89bb686fbd23d3ddf6090e0
The contract address in the url should display the corresponding contract data in the page.
https://github.com/AbieFund/abie/blob/master/src/app/Home.js
https://github.com/AbieFund/abie/blob/master/src/app/Home.js
Add a Count the votes
button right below the voteYes
and voteNo
buttons.
Prepare a transaction (no particular fees) to be triggered on click.
Add a loader
On tx mined: refresh the page
Port on Heroku fixing the ngnix issue.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.