{"id":15456868,"url":"https://github.com/masaun/micro-finance","last_synced_at":"2025-03-28T10:15:56.028Z","repository":{"id":112436827,"uuid":"209952349","full_name":"masaun/micro-finance","owner":"masaun","description":"The Micro Finance platform by using smart contract","archived":false,"fork":false,"pushed_at":"2019-10-27T20:32:00.000Z","size":26372,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-02T10:43:12.233Z","etag":null,"topics":["chainlink","compound","kyber"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/masaun.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-09-21T08:43:59.000Z","updated_at":"2019-10-27T20:33:30.000Z","dependencies_parsed_at":"2023-05-14T23:15:20.308Z","dependency_job_id":null,"html_url":"https://github.com/masaun/micro-finance","commit_stats":{"total_commits":64,"total_committers":1,"mean_commits":64.0,"dds":0.0,"last_synced_commit":"09a08790f397ece2d66903dcfee85ccca1a43f93"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masaun%2Fmicro-finance","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masaun%2Fmicro-finance/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masaun%2Fmicro-finance/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masaun%2Fmicro-finance/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/masaun","download_url":"https://codeload.github.com/masaun/micro-finance/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246009178,"owners_count":20708907,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chainlink","compound","kyber"],"created_at":"2024-10-01T22:40:26.972Z","updated_at":"2025-03-28T10:15:56.009Z","avatar_url":"https://github.com/masaun.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# The Micro Finance platform by using smart contract\n\n***\n\n## 【Introduction of The Micro Finance platform by using smart contract】\n- The Micro Finance platform that make come ture micro finance by type of group borrowing / lending by using smart contract.\n（The Micro Finance platform that replace the Grameen Bank's model with smart contract） \n  - Lender can anytoken to lend and borrower can borrow with DAI which is converted by Kyber payment.\n\n\n\u0026nbsp;\n\n\n\n***\n\n## 【Setup】\n\n### Setup private network by using Ganache\n1. Download Ganache from link below  \nhttps://www.trufflesuite.com/ganache  \n\n\n2. Execute Ganache   \n\n\u0026nbsp;\n\n\n\n### Setup wallet by using Metamask\n1. Add MetaMask to browser (Chrome or FireFox or Opera or Brave)    \nhttps://metamask.io/  \n\n\n2. Adjust appropriate newwork below \n```\nRopsten Test Network\n\n```\n\n\u0026nbsp;\n\n\n### Setup backend\n1. Deploy contracts to ropsten network\n```\n(root directory)\n\n$ npm run migrate:live\n```\n\n\u0026nbsp;\n\n\n### Setup frontend\n1. Execute command below in root directory.\n```\n\n$ npm run client\n```\n\n2. Access to browser by using link \n```\nhttp://127.0.0.1:3000\n```\n\n\u0026nbsp;\n\n***\n\n\n## 【Work flow】\n\n\u0026nbsp;\n\n***\n\n## 【References】\n- Documents\n  - #KyberDefi Hackathon / Resources\nhttps://kyber.devpost.com/details/resources\n\n- issue\nhttps://gitcoin.co/issue/makerdao/community/314\nhttps://challenges.adb.org/en/challenges/agri-fin/teams\n\n\n\n\n\n\n\u003chr\u003e\n\n\n# Chainlink Truffle Box\n\nImplementation of a [Chainlink requesting contract](https://docs.chain.link/docs/create-a-chainlinked-project).\n\n## Requirements\n\n- NPM\n\n## Installation\n\nPackage installation should have occurred for you during the Truffle Box setup. However, if you add dependencies, you'll need to add them to the project by running:\n\n```bash\nnpm install\n```\n\nOr\n\n```bash\nyarn install\n```\n\n## Test\n\n```bash\nnpm test\n```\n\n## Deploy\n\nIf needed, edit the `truffle-config.js` config file to set the desired network to a different port. It assumes any network is running the RPC port on 8545.\n\n```bash\nnpm run migrate:dev\n```\n\nFor deploying to live networks, Truffle will use `truffle-hdwallet-provider` for your mnemonic and an RPC URL. Set your environment variables `$RPC_URL` and `$MNEMONIC` before running:\n\n```bash\nnpm run migrate:live\n```\n\n## Helper Scripts\n\nThere are 3 helper scripts provided with this box in the scripts directory:\n\n- `fund-contract.js`\n- `request-data.js`\n- `read-contract.js`\n\nThey can be used by calling them from `npx truffle exec`, for example:\n\n```bash\nnpx truffle exec scripts/fund-contract.js --network live\n```\n\nThe CLI will output something similar to the following:\n\n```\nUsing network 'live'.\n\nFunding contract: 0x972DB80842Fdaf6015d80954949dBE0A1700705E\n0xd81fcf7bfaf8660149041c823e843f0b2409137a1809a0319d26db9ceaeef650\nTruffle v5.0.25 (core: 5.0.25)\nNode v10.15.1\n```\n\nIn the `request-data.js` script, example parameters are provided for you. You can change the oracle address, Job ID, and parameters based on the information available on [our documentation](https://docs.chain.link/docs/testnet-oracles).\n\n```bash\nnpx truffle exec scripts/request-data.js --network live\n```\n\nThis creates a request and will return the transaction ID, for example:\n\n```\nUsing network 'live'.\n\nCreating request on contract: 0x972DB80842Fdaf6015d80954949dBE0A1700705E\n0x828f256109f22087b0804a4d1a5c25e8ce9e5ac4bbc777b5715f5f9e5b181a4b\nTruffle v5.0.25 (core: 5.0.25)\nNode v10.15.1\n```\n\nAfter creating a request on a live network, you will want to wait 3 blocks for the Chainlink node to respond. Then call the `read-contract.js` script to read the contract's state.\n\n```bash\nnpx truffle exec scripts/read-contract.js --network live\n```\n\nOnce the oracle has responded, you will receive a value similar to the one below:\n\n```\nUsing network 'live'.\n\n21568\nTruffle v5.0.25 (core: 5.0.25)\nNode v10.15.1\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmasaun%2Fmicro-finance","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmasaun%2Fmicro-finance","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmasaun%2Fmicro-finance/lists"}