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 5d584afa19 Merge branch 'develop' into feature/pinner 4 years ago
..
constants/config refactor: cleanup code, add environment configuration, add upload script and target 4 years ago
contracts Merge branch 'develop' into feature/pinner 4 years ago
migrations Refactoring, solhint 4 years ago
test Bump solc 4 years ago
utils feat: add support for version tagging 4 years ago
.eslintignore Restore eslint configuration 4 years ago
.eslintrc.js Expose new contracts in index.js 4 years ago
.solhint.json Bump solc 4 years ago
README.md Simplify truffle config 4 years ago
index.js refactor: remove duplicate contract export, minor particles improvement 4 years ago
package.json Merge branch 'develop' into feature/pinner 4 years ago
truffle-config.js Pinner init 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

Default host and port values of the blockchain are:

host port
127.0.0.1 8545

Migrate (using the development network by default):

yarn migrate

Setting different host and port values

Define the host and port of the blockchain in use.

Linux:

export CHAIN_HOST="127.0.0.1"
export CHAIN_PORT="7545"

Windows:

SET CHAIN_HOST="127.0.0.1"
SET CHAIN_PORT="7545"

Migrate using the env network :

yarn _migrate --network env

Notice the underscore _ suffix in the script name. This is not a mistake.

Test contracts

Default host and port values of the blockchain are:

host port
127.0.0.1 8546

Test:

yarn test

Setting different host and port values

Define the host and port of the blockchain in use like above.

Test:

yarn test --network env