Skip to content

enjin/contracts

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code
This branch is 38 commits ahead, 4257 commits behind bancorprotocol:master.

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
September 11, 2017 21:41
September 19, 2017 14:16
July 24, 2017 19:24
October 11, 2017 17:13
September 28, 2017 12:27
September 18, 2017 15:26
September 18, 2017 15:26

Enjin Token And Crowdfund Contract

Testing

Tests are included and can be run using truffle.

Prerequisites

  • Node.js v7.6.0+
  • truffle v3.2.2+
  • testrpc v3.0.5+

To run the test, execute the following commands from the project's /solidity folder -

Please run yarn first

Then run these commands:

  • npm run testrpc
  • truffle test test/ENJToken.js

As the dates of the crowdfund are hardcoded in the contract and we are increasing the blockchain time artificially, you will need to reset testrpc before running the second round of tests:

  • npm run testrpc
  • truffle test test/ENJCrowdfund.js

About

Enjin Coin Contracts

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%