Skip to content
This repository has been archived by the owner on Sep 22, 2022. It is now read-only.

Files

Latest commit

Oct 23, 2019
a7b2967 · Oct 23, 2019

History

History
This branch is 8 commits behind bokkypoobah/BokkyPooBahsDateTimeLibrary:master.

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
May 23, 2018
May 23, 2018
Feb 13, 2019
May 23, 2018
Feb 13, 2019
Oct 23, 2019
May 23, 2018
Feb 13, 2019
Feb 13, 2019
Sep 2, 2018
May 24, 2018
May 23, 2018
Feb 13, 2019
Feb 13, 2019
Feb 13, 2019

Contract - Testing



Table of contents



Requirements

  • The tests works on OS/X. Should work in Linux. May work in Windows with Cygwin
  • Geth/v1.8.6-stable-12683fec/darwin-amd64/go1.10 running with the Byzantium fork switched on
  • Solc 0.4.23+commit.124ca40d.Darwin.appleclang


Executing The Tests



Notes

  • The tests were conducted using bash shell scripts running Geth/v1.8.6-stable-12683fec/darwin-amd64/go1.10 JavaScript commands
  • The smart contracts were compiled using Solidity 0.4.23+commit.124ca40d.Darwin.appleclang
  • The test script can be found in 01_test1.sh
  • The test results can be found in test1results.txt with details in test1output.txt
  • The test can be run on OS/X, should run on Linux and may run on Windows with Cygwin
  • The genesis.json allocates ethers to the test accounts, and specifies a high block gas limit to accommodate many transactions in the same block
  • The 00_runGeth.sh scripts starts geth with the parameter --targetgaslimit 994712388 to keep the high block gas limit
  • The reasons for using the test environment as listed above, instead of truffles/testrpc are:
    • The test are conducted using the actual blockchain client software as is running on Mainnet and not just a mock environment like testrpc
    • It is easy to change parameters like dates, addresses or blocknumbers using the Unix search/replace tools
    • There have been issues in the part with version incompatibility between testrpc and solidity, i.e., version mismatches
    • The intermediate and key results are all saved to later viewing