Let's create a new project from scratch and use the ZeppelinOS development platform to write an upgradable contract:
- Create the project folder:
$ mkdir project
$ cd project
- Under the project folder, initialize the project with the npm package. Follow the instructions and provide the required parameter when asked by the command. This will create a package.json file:
$ npm init
- Install the ZeppelinOS development platform command and the related files in the current project. This will install a zos command that we can use further:
$ npm install [email protected] [email protected]
- Initialize the project with the zos command, as follows:
$ npx zos init project v1
This command will create two new files, called zos.json and truffle-config.js. The zos.json file is the configuration file for zos in which all the contract-related...