{{description}}
This template was originally created to be used with create-project. However, github allows to use the template directly at repository creation time. This README should be overwritten according to the project's needs.
- Select "create new repository" on SelfKeyFoundation github account.
- Under "Repository template" select
solidity-template - Continue project creation workflow as usual (see CONTRIBUTING.md)
By selecting the template from github, using create-project is not necessary, however, the following guidelines are kept for reference (possibly deprecating soon)...
- Install create-project:
npm install -g create-project - Create project on the main repo, fork and clone according to the contribution guidelines
- In the directory outside the locally cloned project, execute
create-project <project-name> SelfKeyFoundation/solidity-template git addall the files included and make an initial commit- Overwrite this README on the new repository and start working on your project...
Smart contracts are being implemented using Solidity 0.5.4.
- NodeJS, version 9.5+ (I use
nvmto manage Node versions —brew install nvm.) - truffle, which is a comprehensive framework for Ethereum development.
npm install -g truffle— this should install the latest truffle version.
npm install
npm test
or with code coverage
npm run test:cov
Run the truffle development environment
truffle develop
then from the prompt you can run
compile
migrate
test
as well as other Truffle commands. See truffleframework.com for more.
We provide the following linting command for inspecting solidity contracts.
npm run lint:sol— to lint the Solidity files, and
Please see the contributing notes.