Multi-step business deals, agile projects, complex agreements have a common issue of payment tracking and fulfillment. Usually a 3rd party has to be involved to control if deliverables are completed and an agreed sum of money for each stage is paid in time.
"Smart deal" is a convenient and reliable decentralized system that helps to define monetary agreement between a client and an agent. Moreover, It helps to prevent deals with unqualified agents by storing history of completed deals, reviews and ratings.
"Smart deal" solution includes a convenient web-based portal with authorized consultants that help to create an agreement and resolve all the issues.
- Ganache
- truffle
- npm
- Metamask extension (optional)
- Launch ganache
- Clone project and install dependencies (first time only):
git clone https://github.com/dmitrijs-voronovs/SmartDeal.git && cd SmartDeal && npm i && cd app && npm i && cd ..
- Launch project:
npm run launch
npm run migrate
- Launch ganache
- Connect Metamask to ganache
- New RPC URL: http://localhost:7545
- Chain ID: 1337
- Network Name: SmartDeal
- Clone project and install dependencies (first time only):
git clone https://github.com/dmitrijs-voronovs/SmartDeal.git && cd SmartDeal && npm i && cd app && npm i && cd ..
- Launch project:
npm run launchM
- Metamask extension will appear and ask to log in, use mnemonic from ganache for that
npm run migrateM
During the initial contract deployment, ganache’s 1st account is used for Authorized consultant role (creator), 2nd - for the Agent and 3rd - for the Client.
Also the initial protection percent is set to 30%. To change it modify this line.
Running tests:
npm run test