Swap represented as smart contract The first goal of this project is to describe a simple plain-vanilla swap in ethereum as smart contract. Setting up the infrastructures Installed in-memory block chain with $ npm install -g ethereumjs-testrpc Installed truffle $ npm install -g truffle