Technical requirements

The code files for this chapter are available at the following link: https://github.com/PacktPublishing/Blockchain-Development-for-Finance-Projects/tree/master/Chapter%206.

To develop our project, we'll be using the following:

For installing Ganache on Ubuntu, you might need to change some settings. Click on the drop-down menu next to the Ganache directory name in the Title bar of the file explorer. Select Preferences. Navigate to the Behavior tab. Under Executable Text Files, select the Ask what to do option. Navigate back to the file you downloaded from the Ganache download link. Right-click on the file, and click on Properties. Select the Permissions tab. Select the Allow executing files as program option. Now, double-click on the file. The Ganache blockchain should start smoothly. It's probably best to do a global installation of Truffle to avoid any conflicts. For example, create a directory workspace called truffle and install truffle using sudo npm install truffle -g.

I'm using Ubuntu 18.04.2 LTS to run the preceding applications and deploy my blockchain. This project assumes that you are working on a Unix operating system. Additionally, this project assumes you have Node.js and npm installed. I'm using Node version 13.0.1 and npm version 6.12.0.

Lastly, we'll be using the OpenZeppelin library of smart contracts to write our contracts. To use this library, create a project folder in your Truffle workspace. Let's call it tokenwallet. Create a package.json file in the project folder and update it with the following values:

{
"dependencies": {
"babel-register": "^6.23.0",
"babel-polyfill": "^6.26.0",
"babel-preset-es2015": "^6.18.0"
},
"devDependencies": {
"openzeppelin-solidity": "^2.2.0"
}
}

Run npm install to install the OpenZeppelin library, and babel for your truffle workspace.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.15.190.144