This repository contains the source code for a simple decentralized escrow smart contract built on the ethereum blockchain. Solidity was the programming language used for developing the smart contract and Truffle framework was utilized for testing and deployment of the contract to the rinkeby testnet.
- Ensure Node JS is installed on the local machine.
- Install the truffle framework globally on the local machine like so
npm i -g truffle
. - Clone the repository like so
git clone https://github.com/johnchuks/decentralized-escrow.git
- To deploy the contract on a testnet or locally to ganache, run
truffle migrate --reset --compile-all
- To Test the deployed smart contract run
truffle test
.