Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixes for breaking changes required for solidity 0.5.0 #5

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 11 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
CrowdBank
P2P lending platform
=========================
⚙️ Peer to Peer Loan System implemented on Ethereum Smart Contracts

_Entry for [Proffer's GENERATION BLOCKCHAIN Hackathon](https://proffer.network/hackathon) at IIT Delhi_
The project has been deployed at : https://cbank.consensolabs.com
Contract deployed on Rinkeby:
- CrowdBank contract address: `0x231fD5ac30Fe1d3dfa925f0921c5fC244eA29271`
- Morgage contract address: `0xa24F83dBF112191398Be8Cb56AB078ebD3BF5FB7`

* [Problem Statement](#problem-statement)
* [Solution Abstract](#solution-abstract)
Expand Down Expand Up @@ -48,19 +51,14 @@ Borrower scrutinises the proposals and **Accepts** appropriate ones to achieve t

Setup
========
1. Install [testrpc]() and [Truffle Framework]().
2. Run ```git clone https://github.com/anshulshah96/LoanDe-centralised```
1. Install [ganache](https://truffleframework.com/ganache) and [Truffle Framework](https://truffleframework.com/truffle).
2. Run ```git clone https://github.com/koshikraj/p2plending```
3. Run ```npm install``` inside the directory.
4. Run _testrpc_ in a new terminal.
5. Run ```truffle deploy``` to build and deploy contract.
4. Run ganache-cli in a new terminal.
5. Run ```truffle migrate``` to build and deploy contract.
6. Run ```npm run dev``` and go to [locahost:8080](http://localhost:8080).

License
===========

[MIT License](https://anshul.mit-license.org/)

The following people have been the contributors for the project. (Go star their repos :p)
* [Anshul Shah](https://github.com/anshulshah96)
* [Nikhil Sheoran](https://github.com/nikhil96sher)
* [Suraj Gupta](https://github.com/surajgupta97)
Original project:
Original project license: [MIT License](https://anshul.mit-license.org/)
4 changes: 1 addition & 3 deletions app/borrower.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@
<a class="navbar-brand text-white" href="/">
Crowd Bank
</a>
<a class="navbar-brand">
(Proffer Block Chain Hackathon 2017)
</a>

</nav>

<!-- Header -->
Expand Down
Binary file added app/images/meta1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/images/meta2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/images/meta3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/images/metamask1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 3 additions & 5 deletions app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@
<a class="navbar-brand text-white" href="#">
Crowd Bank
</a>
<a class="navbar-brand">
(Proffer Block Chain Hackathon 2017)
</a>

</nav>

<!-- Header -->
Expand All @@ -40,13 +38,13 @@ <h4>A crowd-sourced loan market with Mortgage based guarantee.</h4>
<li class="list-inline-item">
<a href="/lender.html" class="btn btn-success btn-lg">
<i class="fa fa-y-combinator fa-fw"></i>
<span class="network-name">Want to Invest?</span>
<span class="network-name">Lender's deck</span>
</a>
</li>
<li class="list-inline-item">
<a href="/borrower.html" class="btn btn-danger btn-lg">
<i class="fa fa-money fa-fw"></i>
<span class="network-name">Need Money?</span>
<span class="network-name">Borrower's deck</span>
</a>
</li>
</ul>
Expand Down
2 changes: 1 addition & 1 deletion app/javascripts/borrower.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ var CrowdBank = contract(bank_artifacts);
var Mortgage = contract(bank_artifacts2);
var account;
var wtoE;
var GAS_AMOUNT = 90000000;
var GAS_AMOUNT = 1400000;

var LOANSTATE = {
0 : "ACCEPTING",
Expand Down
4 changes: 1 addition & 3 deletions app/lender.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@
<a class="navbar-brand text-white" href="/">
Crowd Bank
</a>
<a class="navbar-brand">
(Proffer Block Chain Hackathon 2017)
</a>

</nav>

<!-- Header -->
Expand Down
22 changes: 22 additions & 0 deletions app/usage.html

Large diffs are not rendered by default.

Loading