SmartLoan / smartloan-sml-paper

A smart contract as education loan
GNU General Public License v3.0
4 stars 3 forks source link

Dear Contributors! #1

Open Asvoria opened 3 years ago

Asvoria commented 3 years ago

Dear Contributors! Thanks for offering your help! Do create an issue or send a pull request so that your contributions may be recorded. Currently we have the unfinished contract template in solidity, the concept paper and @hobbytank11 is working on the form. Do leave a message here for what you plan to do! Thanks in advance!!!

ianmunge0 commented 3 years ago

I plan to contribute to the react native app. I have the mobile DApp template from the celo docs but it has errors on the first run immediately after setting up. @Asvoria, do you have a template of a mobile DApp that is running on Celo's blockchain ?

Asvoria commented 3 years ago

I plan to contribute to the react native app. I have the mobile DApp template from the celo docs but it has errors on the first run immediately after setting up. @Asvoria, do you have a template of a mobile DApp that is running on Celo's blockchain ?

Hi @ianmunge0 thanks for your messege, I've forked celo's dapp-kit here: https://github.com/Asvoria/celo-dappkit-pineapple at the moment @hobbytank11 is working on it, will update github it. Then you might able to help out building up the dApp form.

Hobbytank11 commented 3 years ago

sorry guys, really slow progress. managed to get the node.js and expo-cli installed. new to react native so am going to link it up with Expo Go. But the metro bundler failed to emulated Expo Go (uncaught error:java.net.SocketTimeoutException: failed to connect to 192.168.0.106:19000) . So I tried with snack instead and it works. Is snack a better option?

ianmunge0 commented 3 years ago

Is snack an alternative for Expo Go ?

Hobbytank11 commented 3 years ago

No i mean i can emulate expo go from snack but not from metro bundler

Asvoria commented 3 years ago

sorry guys, really slow progress. managed to get the node.js and expo-cli installed. new to react native so am going to link it up with Expo Go. But the metro bundler failed to emulated Expo Go (uncaught error:java.net.SocketTimeoutException: failed to connect to 192.168.0.106:19000) . So I tried with snack instead and it works. Is snack a better option?

Hi, Please follow instructions at: https://learn.figment.io/network-documentation/celo/tutorial/hello-mobile-dapp This is to build up the environment.

It is advised to use VSC, as I've made some changes on the settings to enable openZeppelin support for .sol. You can start work on it right away from the image below: https://github.com/Asvoria/celo-dappkit-pineapple

Currently the dApp-kit above have some error when running with Android emulator.

android_emulator_error

But that is still okay, the form still showed up. And we may use it to build up the form to interact with the contract.

android_emulator1
jnfielding commented 3 years ago

I plan to contribute to building the financial project from documentation, data and marketing perspectives. I've worked on some of the major banking lending platforms and as a freelance Financial Product Analyst.

I also will contribute with fundraising and investor relations

ianmunge0 commented 3 years ago

Welcome @jnfielding

jnfielding commented 3 years ago

Thanks @ianmunge0, are we just sending requests through github as a team? Or are there weekly meetings

Asvoria commented 3 years ago

Lets have a meeting this weekend! if it's difficult due to our time difference, this place can be our communication channel.

Asvoria commented 3 years ago

Or join the Discord: https://discord.gg/78uqzBvr

jnfielding commented 3 years ago

Okay, we can do a discord voice chat this weekend

Asvoria commented 3 years ago

20 March 2021 11:30am GMT Things to be discussed: (Agenda)

  1. Intro about ourselves - Who, Where, When, Why, How, Strenght, Weakness.
  2. Concept & current progress about this "SmartLoan" project
  3. Open discussion:
    • Evaluation
    • Naming the project
    • Dividing the tasks
eddykuan commented 3 years ago

Hi all, I just join.

Asvoria commented 3 years ago

@ianmunge0 for the parameters, we need the following

string public token_name = "PineappleToken";    //Generated
string public token_symbol = "PINE";            //Generated

uint256 public token_borrow = 10 ether;         //User key in data
uint256 public loan_duration = 1095 days;       //User key in data

address payable public borrower;                //User key in data

Generated token_name and token_symbol using a format to be designed borrower is a form where user key in their wallet address

ianmunge0 commented 3 years ago

Ok

ianmunge0 commented 3 years ago

@Asvoria how far are you with the smart contract ?

Asvoria commented 3 years ago

check out:

the script to interact with contract: https://github.com/Asvoria/celo-hackathon-smartloan/blob/master/pine_v0.js

deployed contract: https://github.com/Asvoria/celo-hackathon-smartloan/blob/master/contracts/PINE.sol

Environment: vscode with celo contractkit

the buyToken functio buggy on remix but can be called on vscode approve function can work on remix but my script above cannot work on vscode. error is the obstacle.

Asvoria commented 3 years ago
  1. The contract should be loaded by browser version of https://remix.ethereum.org/
  2. Use contract templete: https://github.com/Asvoria/celo-hackathon/blob/master/contracts/PINE.sol
  3. Use Alfajores network.
  4. On Remix-IDE, use celo plugin, compile and deploy.
  5. At the moment unable to make truffle compile and deploy.
  6. on vscode, with celo contractkit installed, use the script at https://github.com/Asvoria/celo-hackathon-smartloan/blob/master/pine_v0.js to interact with deployed contract.
  7. At the moment buyToken is tested. still need to test all the functions.
Asvoria commented 3 years ago

Demo flow:

  1. User login
  2. key in parameters:
    Amount to borrow Duration to repay ** University offer reference number
  3. Confirmation, and will generate smart contract .sol based on parameter entered.
  4. User compile and deploy the contract through Remix IDE.
  5. Lender buy token, borrower receive celo, then Lender receive PINE token with specific contract address.
  6. End of demo.

I will continue to work on this project until implementation of Indy.

ianmunge0 commented 3 years ago

My compiling doesn't go beyond here. Plus there is only mainnet ; no alfajores option celoremix

Asvoria commented 3 years ago

Hi Ian, You need to connect to metamask to activate the celo plugin: Click on the text "Mainnet" after you connect to metamask wallet. you will have Alfajores option.

To connect the Metamask to celo network: Metamask>Networks>Custom RPC> RPC URL: https://alfajores-forno.celo-testnet.org Chain ID: 44787

Screenshot 2021-04-10 at 8 42 29 PM

Asvoria commented 3 years ago

@Asvoria @ianmunge0 @eddykuan @jnfielding @Hobbytank11

Asvoria commented 3 years ago

Dear All, Thanks for your participation on the project. We didn't won anything. :) Moving forward, I will continue to maintain this repository and work on the Hyperledger Indy implementation. However, this project is very similar to the first prize winner Loanr. In order not to compete against it in Celo network, I might move the project to another network that is better implement with Hyperledger Indy support. Ethereum, or other cheaper and more environmental friendlier decentralised network.

Thanks @ianmunge0 for the dApp and the work. I would like to personally reward you some celo tokens to show my appreciation to you. Tx Hash: 0xf7e9e1015d35658b68f400369a84e48b60ae5416466839f2f4e33bc8820daf8b

In progress:

  1. Negotiating with a university to start a test Aries agent.
  2. Adopt Indy-sdk on mobile dApp (WIP, need to get the genesis.json of a network)

image

ianmunge0 commented 3 years ago

Thanks so much @Asvoria @jnfielding @Hobbytank11 @eddykuan @ianmunge0 :sunglasses:. I will continue working on the dApp