Repo containing the smart contracts of the AppCoins protocol
-
Install Docker and Docker Compose
-
Clone this repo:
$ git clone git@github.com:AppStoreFoundation/asf-contracts.git
- Move to the appropriate directory:
$ cd asf-contracts
- Run docker compose build (optional):
$ docker-compose build
- Deploy the docker container:
$ docker-compose up
- On a new terminal attach to the new docker container:
$ docker exec -it AppCoinsDev bash
- This project has a few pre-installation dependencies.
-
Clone this repo using git clone git@github.com:AppStoreFoundation/asf-contracts.git
-
Move to the appropriate directory:
$ cd asf-contracts
- Create the file .env from .env.example and configure it:
$ cp .env.example .env
- Install the dependencies:
$ npm install
- Start Ganache/TestRPC
$ npm run ganache-cli
- Deploy the contracts into the test network:
$ truffle deploy --reset
Now you are ready to start using the contracts.
-
Configure the project see getting started.
-
Use the command:
$ truffle test