Skip to content
SyncFab Smart contract code for reviewing
JavaScript Shell
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
contracts
migrations
node_modules
test
.babelrc
.gitignore
README.md
package-lock.json
package.json
truffle-config.js
truffle.js

README.md

User Accepttance Tests for the contracts that we use to conduct our crowdsales

  Contract: MFGToken
    #MFGToken()
      ✓ should return the correct totalSupply after construction
      ✓ should assign all tokens to the owner

  Contract: SyncFabCappedCrowdsale
    creating a valid crowdsale
      ✓ should fail with zero cap
    accepting payments
      ✓ should accept payments within cap (126ms)
      ✓ should reject payments outside cap (99ms)
      ✓ should reject payments that exceed cap
    ending
      ✓ should not be ended if under cap (126ms)
      ✓ should not be ended if just under cap (69ms)
      ✓ should be ended if cap reached (73ms)

  Contract: SyncFabCrowdsale
    ✓ should have the same owner as its token's owner
    ✓ should be ended only after end (130ms)
    accepting payments
      ✓ should reject payments before start
      ✓ should accept payments after start (219ms)
      ✓ should reject payments after end (151ms)
    high-level purchase
      ✓ should log purchase (80ms)
      ✓ should increase weiRaised (71ms)
      ✓ should assign tokens to sender (68ms)
      ✓ should forward funds to wallet (212ms)
    low-level purchase
      ✓ should log purchase (59ms)
      ✓ should increase weiRaised (87ms)
      ✓ should assign tokens to beneficiary (70ms)
      ✓ should forward funds to wallet (219ms)
 
  22 passing (7s)
You can’t perform that action at this time.