You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Apostolos Fanakis 84766a4e19 Add npm script for migration without network 4 years ago
..
constants/config Move default values for contract config env vars to constants file 4 years ago
contracts Fix Migrations contract compile warnings 4 years ago
migrations Fix lint issues 4 years ago
.eslintignore Restore eslint configuration 4 years ago
.eslintrc.js Update eslintrc files 4 years ago
.solhint.json Restore eslint configuration 4 years ago
README.md Split contracts env vars to develop and test 4 years ago
index.js Include contractAddress in OrbitDB Identity 4 years ago
package.json Add npm script for migration without network 4 years ago
truffle-config.js Split contracts env vars to develop and test 4 years ago

README.md

Concordia Contracts Package

This is the package where the contracts that power Concordia live.

Compile contracts

yarn compile

Lint contracts (and tests)

yarn lint

Migrate contracts

Define the host and port of the blockchain in use. Default values are:

host port
127.0.0.1 8545

Linux:

export DEVELOP_CHAIN_HOST="127.0.0.1"
export DEVELOP_CHAIN_PORT="7545"

Windows:

SET DEVELOP_CHAIN_HOST="127.0.0.1"
SET DEVELOP_CHAIN_PORT="7545"

Migrate (using the development network here, change if necessary):

yarn migrate --network develop

Test contracts

Define the host and port of the blockchain in use. Default values are:

host port
127.0.0.1 8546

Linux:

TEST_CHAIN_HOST="127.0.0.1"
TEST_CHAIN_PORT="7545"

Windows:

SET TEST_CHAIN_HOST="127.0.0.1"
SET TEST_CHAIN_PORT="7545"

Test:

yarn test