{"id":18304631,"url":"https://github.com/numtel/lwned","last_synced_at":"2025-04-09T10:37:14.719Z","repository":{"id":150130693,"uuid":"533432512","full_name":"numtel/lwned","owner":"numtel","description":"Partially collateralized loans ","archived":false,"fork":false,"pushed_at":"2022-09-22T22:51:56.000Z","size":1034,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-15T04:42:43.212Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://lwned.com/","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/numtel.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":"2022-09-06T17:28:50.000Z","updated_at":"2022-11-05T21:14:14.000Z","dependencies_parsed_at":"2023-07-07T12:46:08.963Z","dependency_job_id":null,"html_url":"https://github.com/numtel/lwned","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/numtel%2Flwned","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/numtel%2Flwned/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/numtel%2Flwned/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/numtel%2Flwned/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/numtel","download_url":"https://codeload.github.com/numtel/lwned/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248021449,"owners_count":21034670,"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":[],"created_at":"2024-11-05T15:29:44.145Z","updated_at":"2025-04-09T10:37:14.686Z","avatar_url":"https://github.com/numtel.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Lwned Logo](src/lwned.png)\n# Lwned\n\n\"Need cash? Get Lwned!\"\n\nLending marketplace\n\n## Installation\n\n```\n$ git clone https://github.com/numtel/lwned.git\n$ cd lwned\n$ npm install\n```\n\nDownload the `solc` compiler. This is used instead of `solc-js` because it is much faster. Binaries for other systems can be found in the [Ethereum foundation repository](https://github.com/ethereum/solc-bin/).\n```\n$ curl -o solc https://binaries.soliditylang.org/linux-amd64/solc-linux-amd64-v0.8.13+commit.abaa5c0e\n$ chmod +x solc\n```\n\n## Running development frontend\n\n```sh\n# To build test/contracts/*.sol (test token)\n$ npm run build-test\n# To transpile and build contracts/*.sol (everything else)\n$ npm run build-dev\n\n# Start http server for public directory\n$ npm run dev\n\n# Start ganache local chain on port 8545\n# Accounts will be generated from seed in dev-seed.json\n# And http server on port 3000\n$ npm run dev-chain\n\n# Input commands into the REPL\n\u003e help\nhelp\n# List accounts and their indexes\naccounts\n# Deploy a test token\ndeployToken\n# Make new tokens\nmintToken [tokenAddress] [accountAddress] [amount]\n# Convenience method for testing:\n#  deploy a token,\n#  mint to borrower,\n#  approve spend,\n#  and submit loan application\nfastApply [address]\n# Same as previous but also invest and issue the loan\nfastIssue [address]\n# Set a user as passport verified, expiration default: 1 year\nverify [address] [expiration]\n# Fetch the expiration value\nexpiration [address]\n# Increase block.timestamp by 24hrs\nnextday\n\nNOTE: can use account index in verify/mintToken/expiration calls\n```\n\n## Testing Contracts\n\n```\n# Build contracts before running tests\n$ npm run build-test\n$ npm run build-dev\n\n$ npm test\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnumtel%2Flwned","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnumtel%2Flwned","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnumtel%2Flwned/lists"}