0.3.5 • Published 4 years ago

sofie-offer-marketplace v0.3.5

Weekly downloads
3
License
APL 2.0
Repository
github
Last release
4 years ago

SOFIE Offer Marketplace

This repository contains the implementation of some sample Offer Marketplaces, called Flower Marketplace, and Beach Chair Marketplace.

The FlowerMarketPlace and BeachChairMarketPlace contracts reside in contracts directory. Also test files for the contracts exist in test directory.

Truffle framework is used for the developing, deploying, and testing contracts.

Currently the default version of Truffle is used in the project, which is very easy to install and work with. Here, I will explain how to use Truffle in order to run and test contracts. It is possible that we customize truffle in future, in order to make it compatible with our needs. I will add instructions on using the modified Truffle when (and if) it was needed in the future. You can also gain additional information on how to use Truffle in its website.

Installation

You can simply install dependencies with the command below:

$ npm install

NodeJS 5.0+ is recommended for the installation of Truffle.

Compilation

You can compile the contracts with the following command:

$ npx truffle compile

It will create the required json files within the build directory.

You might need to remove the previous build directory beforehand:

$ rm -r build/

Migration

Then you can run migration files using the below command:

$ npx truffle migrate

Testing

Finally you can run tests using truffle internal network using the following command:

$ npx truffle test

Also, you can run tests using external networks (e.g ganache) using the following command:

$ npx truffle test --network ganache 

Please check the truffle-config.js file for more information about network setting.

0.3.5

4 years ago

0.3.4

4 years ago

0.3.3

4 years ago

0.3.2

4 years ago

0.3.1

4 years ago

0.3.0

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.1

4 years ago

0.2.2

4 years ago

0.1.0

4 years ago