{"id":17999099,"url":"https://github.com/wkrzywiec/devil-deals-network","last_synced_at":"2025-04-04T07:12:38.214Z","repository":{"id":111645481,"uuid":"188957490","full_name":"wkrzywiec/devil-deals-network","owner":"wkrzywiec","description":"Blockchain, based on Hyperledger Composer project","archived":false,"fork":false,"pushed_at":"2019-05-29T04:33:22.000Z","size":3235,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-09T18:18:03.382Z","etag":null,"topics":["blockchain-demos","blockchain-network","hyperledger","hyperledger-composer","hyperledger-fabric","javascript","private-blockchain"],"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/wkrzywiec.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-05-28T05:06:38.000Z","updated_at":"2020-08-16T03:24:44.000Z","dependencies_parsed_at":"2023-05-25T01:30:37.442Z","dependency_job_id":null,"html_url":"https://github.com/wkrzywiec/devil-deals-network","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/wkrzywiec%2Fdevil-deals-network","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wkrzywiec%2Fdevil-deals-network/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wkrzywiec%2Fdevil-deals-network/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wkrzywiec%2Fdevil-deals-network/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wkrzywiec","download_url":"https://codeload.github.com/wkrzywiec/devil-deals-network/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247135155,"owners_count":20889421,"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-demos","blockchain-network","hyperledger","hyperledger-composer","hyperledger-fabric","javascript","private-blockchain"],"created_at":"2024-10-29T22:10:01.026Z","updated_at":"2025-04-04T07:12:38.200Z","avatar_url":"https://github.com/wkrzywiec.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Devil's Deals Network\n\nBlockchain application which is used by the devil/deamons to for managing pacts with human. The application is based on [Hyperledger Composer](https://hyperledger.github.io/composer/latest/introduction/introduction) - tool for fast prototyping provate blockchain.\n\n## Basic information\n\nThere are two types of participants:\n* **Human** - mortals, who needs to make a deal, e.g. to gain some magical powers, immortality, love, welth, etc. \n* **Devil** (or deamon) - personification of evil, makes a deal with human and in return he could takes her/his soul forever.\n\nThere are three types of assets in ths blockchain:\n* **Soul** - every *Human* should have it, *Devil* can collect it after fullfiling the *Deal*.\n* **Proposal** - every *Human* can raise it so the *Devil* can review it and then decide whether to accept, and make a *Deal*, or reject it. *Human* can raise as many *Proposals* as she/he woul like.\n* **Deal** - only *Devil* can raise it (using transaction) based on *Proposal* made by a *Human*. Each *Human* can have only one *Deal*, because in exchange of the *Deal* *Devil* will take her/his *Soul* and that *Human* can have only one.  \n\nIn this blockchain there are four types of transactions:\n* **Give a Birht** - only *admin* can raise it and in this transaction *Human* participant is created with a *Soul* (*admin* can still add participant to the network, but she/he needs to remember to create also *Soul* in separate step).\n* **Reject a Proposal** - *Devil* can do not accept the *Proposal* raised by a *Human*.\n* **Make a Deal** - only *Devil* can make this transaction, based on *Proposal*. \n* **Take a Soul** - only *Devil* can raise it, once a person make a deal *Devil\u0026* can take persons's *Soul* depending on the terms of an agreement (e.g. when person dies, do something special). The *Soul* is added to *Devil's* collection.\n\n![Lucifer - deal is a deal](img/lucifer-deal.gif)\n\n## How to install\n\nIf you want to install it on your local machine first you need to install Docker. The full instructions how to achieve can be found here:\n\n* [Installing Docker on Ubuntu](https://docs.docker.com/install/linux/docker-ce/ubuntu/)\n* [Installing Docker on Windows](https://docs.docker.com/docker-for-windows/install/)\n* [Installing Docker on Mac](https://docs.docker.com/docker-for-mac/install/)\n\nNext you need to open the console (terminal) and type:\n\n```\ndocker run --name composer-playground --publish 8080:8080 --detach hyperledger/composer-playground\n```\n\nAbove command will download and run the composer-playground Docker file. More about the playground could be found in [official documentation](https://hyperledger.github.io/composer/latest/playground/playground-index). \n\nAfter the above command has finished go to the web browser and type `localhost:8080`, so the web Playground will open.\n\n![First time Playground screen](img/playground-01.png)\n\nIf so, that's great! Now git clone this project using the command:\n\n```\ngit clone https://github.com/wkrzywiec/devil-deals-network.git\n```\n\n\nAfter that you should have `devils-deals-network@0.0.1.bna` that can be deployed to the Hyperledger Fabric instance. To do so, go bakc to *Playground* in your web browser and then click *Deploy a new business network*.\n\n![First time Playground screen](img/playground-02.png)\n\nThere scroll down to the section where you can drop or browse the file to upload.\n\n![First time Playground screen](img/playground-03.png)\n\nAfter choosing the file click *Deploy* button on the right side.\n\n![First time Playground screen](img/deploy.png)\n\nThis blockchain was successfully deployed!\n\n![Lucifer - deal is a deal](img/lucifer-excellent.gif)\n\n## How to play around with a blockchain \n\nIn progress...\n\n## Technical specification\n\n### Tools versioning\n\n* Docker version 18.09.6\n* Composer-playground Docker image tag - 0.20.8\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwkrzywiec%2Fdevil-deals-network","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwkrzywiec%2Fdevil-deals-network","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwkrzywiec%2Fdevil-deals-network/lists"}