Here is the solidity contract collection for AElf Ecosystem. You can check the contract development processing from this repo which integrates source code and test cases, with Truffle developing framework.
It is easy to see where to begin if you know well Truffle project. Otherwise prepare developing environment before set out to develop.
$ npm install -g truffle
Please make sure you have the latest nodejs & npm installed if something went wrong.
Setup local development blockchain server before you develop with Truffle. We recommend you use ganache and ganache.
- ganache-cli: a command-line version of Truffle's blockchain server.
- ganache: A GUI for the server that displays your transaction history and chain state.
See CHOOSING AN ETHEREUM CLIENT for details.
demo.metacoin contains simple metacoin contract and test cases. And you can also check init directory for the basic workspace structure. See Truffle docs for details.
contracts: Directory for Solidity contracts
migrations: Directory for scriptable deployment files
test: Directory for test files for testing your application and contracts
truffle-config.js: Truffle configuration file