{"id":18964265,"url":"https://github.com/lorransutter/stock-oracle","last_synced_at":"2025-12-30T22:57:59.538Z","repository":{"id":51807017,"uuid":"271397652","full_name":"LorranSutter/Stock-Oracle","owner":"LorranSutter","description":"Web app that retrieves stock data and write in a smart contract","archived":false,"fork":false,"pushed_at":"2024-02-03T05:07:26.000Z","size":4371,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-01T05:30:00.918Z","etag":null,"topics":["blockchain","oracle","reactjs","smart-contracts","solidity","stocks","truffle","web3js"],"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/LorranSutter.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":"2020-06-10T22:21:40.000Z","updated_at":"2023-11-12T19:25:16.000Z","dependencies_parsed_at":"2024-11-08T14:35:08.608Z","dependency_job_id":null,"html_url":"https://github.com/LorranSutter/Stock-Oracle","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/LorranSutter%2FStock-Oracle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LorranSutter%2FStock-Oracle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LorranSutter%2FStock-Oracle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LorranSutter%2FStock-Oracle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LorranSutter","download_url":"https://codeload.github.com/LorranSutter/Stock-Oracle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239959950,"owners_count":19725221,"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":["blockchain","oracle","reactjs","smart-contracts","solidity","stocks","truffle","web3js"],"created_at":"2024-11-08T14:23:29.396Z","updated_at":"2025-12-30T22:57:59.497Z","avatar_url":"https://github.com/LorranSutter.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Stock Oracle\n\nOracle implementation using Solidity, Truffle and API of stock market info presented as lab assingment for BCDV1011 - Design Patterns for Blockchain from \u003ca href='https://www.georgebrown.ca/programs/blockchain-development-program-t175/'\u003eBlockchain Development\u003c/a\u003e program from \u003ca href='https://www.georgebrown.ca'\u003eGeorge Brown College\u003c/a\u003e.\n\n\u003cp align='center'\u003e\n\u003cimg src='https://res.cloudinary.com/lorransutter/image/upload/v1591890398/Stock_Oracle.gif' height=300/\u003e\n\u003c/p\u003e\n\n\u003c!-- ## :hospital: Description\n\nERC-721 based to tokenize patients allocated in a hospital.\n\nEach patient is holded by a single hospital and only this hospital can retrieve personal information of the patient and transfer to another hospital if needed.\n\nWhen a patient is added, a new token is minted to a target hospital with patient information and the address of an emergency hospital as well.\n\nIf the patient status is changed to Critical, the Patient token is transfered to the emergency hospital.\n\nYou can check the deployed contract in Etherscan [here](https://ropsten.etherscan.io/address/0xebb2bb4b323e65b4b4819b4d1cec4164f9a6eb64). --\u003e\n\n## :runner: How to run\n\nOpen your terminal in the folder you want to clone the project\n\n```sh\n# Clone this repo\ngit clone https://github.com/LorranSutter/Stock-Oracle.git\n\n# Go to the project folder\ncd Stock-Oracle\n\n# Install dependencies\nyarn\n```\n\nNow you will need two opened terminals to run the project. One for truffle to simulate the EVM and another one for the frontend.\n\nTruffle will run on http://127.0.0.1:9545/\n\nFrontend will run on http://localhost:3000/\n\n```sh\n## In the first terminal ##\n\n# Go to smart contract folder\ncd src/StockSmartContract\n\n# Init truffle\ntruffle develop\n\n# Run migrations\nmigrate\n```\n\nThe last command above will generate a new ABI and write contract address in a JSON file. You do not have to worry about importing these info in the frontend though. Also you may change the smart contract and run migrations again to see your changes.\n\n```sh\n## In the another terminal ##\n\n# Go to frontend application\ncd ..\n\n# Run the project\nyarn start\n```\n\n## :book: References\n\n- [Alpha Vantage](https://www.alphavantage.co/) - stock API\n- [Web3 calls](https://bitsofco.de/calling-smart-contract-functions-using-web3-js-call-vs-send/) - understanding web3.js calls\n\n## :computer: Technologies\n\n- [Solidity](https://solidity.readthedocs.io/) - smart contract programming language\n- [Truffle](https://www.trufflesuite.com/) - dApp environment\n- [React](https://reactjs.org/) - frontend library\n- [Polaris](https://polaris.shopify.com/) - design system\n- [Axios](https://www.npmjs.com/package/axios) - HTTP requests\n- [Web3.js](https://web3js.readthedocs.io/) - interact with smart contracts\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Florransutter%2Fstock-oracle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Florransutter%2Fstock-oracle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Florransutter%2Fstock-oracle/lists"}