Skip to content

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Exchanger

路徑說明

Solidity

Solidity Code : Contract/Contract.sol

deploey Code : Contract/build_script/All.js

(注意:deploey前必須先產出 Contract之abi,bytecode ,即deploeycontract 之步驟5 'npm run solc')

cucumber

Gherkin : features/exchange.feature

high level test code : features/step_definitions/exchange.steps.js

features Code : script/exchangRequest.js

mocha

low level test code : Test/test/test.js

testrpc

  1. 安裝

npm install -g node-gyp

npm install -g ethereumjs-testrpc

  1. 執行

testrpc -p 8545 -a 100 -l 88888888

deploy contract (solcjs@0.4.8)

  1. cd Contract
  2. mkdir build (one time)
  3. cd build_script
  4. npm install -g solc@0.4.8 && npm install (one time)
  5. npm run solc && npm run release (or npm run solc && npm run debug for testrpc)

Unit Test (mocha)

testing (solcjs@0.4.8)

  1. testrpc -l 88888888 -p 8545 or connect to private chain
  2. cd Contract
  3. mkdir build (one time)
  4. cd build_script
  5. npm install -g solc@0.4.8 && npm install (one time)
  6. npm run solc (if contract has changed)
  7. cd ../../Test
  8. testrpc -p 8545 -l 88888888
  9. npm install && npm test

Cucumber.js

start

  1. testrpc -l 88888888 -p 8545 or connect to private chain
  2. npm instll
  3. node node_modules/cucumber/bin/cucumber.js

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages