{"id":16031908,"url":"https://github.com/dckc/capfundme","last_synced_at":"2025-04-05T04:43:19.911Z","repository":{"id":136540977,"uuid":"349810075","full_name":"dckc/capfundme","owner":"dckc","description":null,"archived":false,"fork":false,"pushed_at":"2021-03-20T18:52:35.000Z","size":2631,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-04T20:15:01.562Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/dckc.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":"2021-03-20T18:52:03.000Z","updated_at":"2021-03-20T18:52:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"aad5b3e0-63b5-4fe2-9216-db2f22569978","html_url":"https://github.com/dckc/capfundme","commit_stats":{"total_commits":3,"total_committers":1,"mean_commits":3.0,"dds":0.0,"last_synced_commit":"1170914f78d67217bfa2840debb3cc4eeea6fb92"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dckc%2Fcapfundme","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dckc%2Fcapfundme/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dckc%2Fcapfundme/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dckc%2Fcapfundme/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dckc","download_url":"https://codeload.github.com/dckc/capfundme/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247289394,"owners_count":20914464,"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-10-08T21:07:11.311Z","updated_at":"2025-04-05T04:43:19.877Z","avatar_url":"https://github.com/dckc.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fungible Faucet Dapp\n\nTL;DR:\n\nThe Fungible Faucet Dapp sends tokens to a user's wallet when they\nclick the \"Mint Fungible Tokens\" button.\n\nInstall the [prerequisites](https://agoric.com/documentation/getting-started/before-using-agoric.html). Then in a first terminal in the directory where you want to put your dapp, install the dapp:\n```sh\nagoric init --dapp-template dapp-fungible-faucet my-fungible-faucet\ncd my-fungible-faucet\n# Start the Agoric platform\nagoric install \u0026\u0026 agoric start --reset\n```\n\nIn a second terminal, deploy this contract and the API server\n```sh\nagoric deploy contract/deploy.js\nagoric deploy api/deploy.js\n```\n\nIn a third terminal, \n```sh\n# Navigate to the `ui` directory and start a local server\ncd ui \u0026\u0026 yarn start\n```\nThen navigate to http://127.0.0.1:3000.\n\nThe Fungible Faucet Dapp is the simplest [Agoric\nDapp](https://agoric.com/documentation/dapps/). It\ndemonstrates the three important parts of\na dapp and how they should be connected:\n1. the browser UI (the frontend)\n2. the API server (the backend)\n3. the on-chain contract\n\nThis dapp starts a local\nblockchain on your computer, and deploys a basic contract to that\nblockchain. It does not currently deploy or connect to the Agoric testnet.\n\nThis particular dapp UI is written in vanilla JS for simplicity (as\nopposed to using a framework).\n\n## Using the Dapp\n\n1. Navigate to http://127.0.0.1:3000.\n2. Enter `agoric open` in your terminal\n3. A window for your wallet should open.\n4. Under \"Dapps\" in the wallet, enable the FungibleFaucet Dapp:\n\n![Enable Dapp](./readme-assets/enable-dapp.png)\n\n5. Back on the Fungible Faucet page, click the \"Mint Fungible Tokens\" button.\n\n![Mint Fungible Tokens](./readme-assets/mint-button.png)\n\n6. Go back to your wallet and approve the offer stating that you want\n   1000 tokens. \n\n![Mint Fungible Tokens](./readme-assets/approve-offer.png) \n\n7. Once the offer has been approved, your wallet makes an offer to Zoe\n   on your behalf, giving you tokens from the `mintPayments` contract.\n   You will receive a message that the offer was successful and should\n   see the tokens in your purses.\n\n![Offer Completed](./readme-assets/offer-completed.png) \n\n![Tokens Received](./readme-assets/tokens-received.png) \n\nTo learn more about how to build Agoric Dapps, please see the [Dapp Guide](https://agoric.com/documentation/dapps/).\n\nSee the [Dapp Deployment Guide](https://github.com/Agoric/agoric-sdk/wiki/Dapp-Deployment-Guide) for how to deploy this Dapp on a public website, such as https://fungiblefaucet.testnet.agoric.com/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdckc%2Fcapfundme","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdckc%2Fcapfundme","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdckc%2Fcapfundme/lists"}