{"id":18493088,"url":"https://github.com/graphprotocol/bitsausage","last_synced_at":"2025-04-08T22:30:42.741Z","repository":{"id":43020006,"uuid":"147936958","full_name":"graphprotocol/bitsausage","owner":"graphprotocol","description":"Bitsausage auction project","archived":false,"fork":false,"pushed_at":"2022-03-22T23:52:36.000Z","size":17764,"stargazers_count":7,"open_issues_count":2,"forks_count":3,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-23T18:51:57.122Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://bitsausage.online/","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/graphprotocol.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}},"created_at":"2018-09-08T13:44:29.000Z","updated_at":"2022-09-18T02:00:52.000Z","dependencies_parsed_at":"2022-09-09T13:52:45.606Z","dependency_job_id":null,"html_url":"https://github.com/graphprotocol/bitsausage","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/graphprotocol%2Fbitsausage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphprotocol%2Fbitsausage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphprotocol%2Fbitsausage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphprotocol%2Fbitsausage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/graphprotocol","download_url":"https://codeload.github.com/graphprotocol/bitsausage/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247939775,"owners_count":21021844,"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-06T13:12:38.702Z","updated_at":"2025-04-08T22:30:37.731Z","avatar_url":"https://github.com/graphprotocol.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bitsausage Cryptocurrency and Dapp\n\nThis repo consists of three parts:\n\n- Solidity contracts for the Bitsausage auction\n- Subgraph for the backend of the Dapp\n- Dapp for the UI\n\n## Contents of the Dapp\n\n- This project is set up using `react-scripts`\n- We use [Prisma](https://www.prisma.io/) to mock a GraphQL server. Connection to the Prisma endpoint is achieved though Apollo Client in [`src/apollo.js`](src/apollo.js).\n- Example components can be found in [`src/components/`](src/components/)\n- An example GraphQL schema can be found in [`src/domain/schema.graphql`](src/domain/schema.graphql)\n\n## Installation\n\n1.  Truffle 5 beta:\n\n    - `$ npm uninstall -g truffle` (or `$ yarn global remove truffle`)\n\n    - `$ npm install -g truffle@beta` (or `$ yarn global add truffle@beta`)\n\n2.  ganache-cli\n\n    - `$ npm install -g ganache-cli` (or `$ yarn global add ganache-cli`)\n\n## Development\n\nOpen 7 terminal tabs, and follow the steps in each tab:\n\n1.  Run `$ ganache-cli -m hi`\n2.  Make sure you are inside of the solidity folder and run `$ truffle compile` followed by `$ truffle migrate`\n3.  Make sure you are inside of the solidity folder again, and run `$ truffle console --network development`.\n    Once you are in the console, run the following:\n\n```\n  \u003e sausageID = 1234\n  \u003e sausageSymbol = 'Bratwurst'\n  \u003e description = 'Bratwurst - RARE'\n  \u003e auctionAddr = '0xAeB9Ad0EaeE1Ea1B47f181c8C2e7b5927b25106c'\n  \u003e SausageTokens.deployed().then(inst =\u003e { SausageInstance = inst})\n  \u003e SausageInstance.mintUniqueTokenTo(auctionAddr, sausageID, description)\n  \u003e Auction.deployed().then(inst =\u003e { AuctionInstance = inst})\n  \u003e AuctionInstance.startAuction(1000)\n```\n\n4.  Make sure you are inside of the dapp folder and then you can run the following:\n\n    - `yarn` to install dependencies\n    - `yarn start` to serve the UI code on http://localhost:3000\n\n5.  Run `$ ipfs daemon`\n\n6.  Make sure you are inside of the subgraph folder, and run `yarn` followed by `yarn build-ipfs`. It should output the subgraph ID.\n\n7.  Go to the `graph-node` repo that you cloned, and pull from the newest `master` branch. Run the following command using the subgraph ID from the previous step:\n\n```\ncargo run -p graph-node --release -- \\\n  --postgres-url postgresql://USERNAME@localhost:5432/bitsausage-subgraph \\\n  --ethereum-rpc testnet:http://127.0.0.1:8545 \\\n  --ipfs 127.0.0.1:5001 \\\n  --subgraph SUBGRAPH_ID\n```\n\nThis will spin up a GraphQL interface at `http://localhost:8000` so you can run your queries against the blockchain.\n\n## Build the Dapp\n\nRun `yarn build` to build the code for production\n\n## License\n\nCopyright © 2018 Graph Protocol, Inc.\n\nLicensed under the [MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgraphprotocol%2Fbitsausage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgraphprotocol%2Fbitsausage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgraphprotocol%2Fbitsausage/lists"}