Skip to content

Latest commit

 

History

History
49 lines (38 loc) · 2.69 KB

README.md

File metadata and controls

49 lines (38 loc) · 2.69 KB

Testing

This project comes with pre configured Geth and Parity nodes for testing purposes.

Geth

This project comes with scripts to run a development instance of geth to test deploying a token contract and issuing tokens to it.

Initial Setup

In the scripts folder, run the following commands on a Mac OSX or Linux platform

cd scripts
chmod a+x initGeth.sh
./initGeth.sh

This is start a new development blockchain using the genesis.json file. The chain data will be under testchain in the geth folder.

Starting Geth

If the above initial setup has already been done, the development geth node can be started with

cd scripts
chmod a+x startGeth.sh
./startGeth.sh

Parity

Starting Parity

In the scripts folder, run the following commands on a Mac OSX or Linux platform

cd scripts
chmod a+x startParity.sh
./startParity.sh

This is start a new development blockchain using the meetupChainSpec.json specification file and parityDevConfig.toml config file. The chain data will be under testchain in the parity folder.

Test Accounts

The pre-configured testing accounts.

Test Actor Account Number Public Key Private Key Key File
Coinbase 0 0xD728cee2648A642fdA9DC1218D2d5746848400Ba bb7dae2fd6c1023a1d108b91e8b4069c767902e5ecceb020f190bb3cb438f947 file
Token Issuer 1 0xF55583FF8461DB9dfbBe90b5F3324f2A290c3356 fa643e0ded9fd96209545b6cc9230376627012d8fb01cfa8d338b8a3aa4aeaaf file
Token Holder 1 2 0x8Ae386892b59bD2A7546a9468E8e847D61955991 26a1887e3a3ee4e632394256f4da44a2d364db682398fc2c3f8176ef2dacebda file
Unit Test Issuer 3 0x0013a861865d784d97c57e70814b13ba94713d4e 146b37e6a2eb2b3593bd5d5da7c71232fc9548a150cd2507d322f8e0c0cdd2f5 file
Token Holder 3 4 0xD9D72D466637e8408BB3B17d3ff6DB02e8BeBf27 25f77bc6483be54b2efc748c511f3955534b4366563bfef7e8e4c8382a7ccd29 file

The password to the above testing accounts is OpenBankToken. This is also stored in the testpassword file under the scripts folder.