fix: remove unwanted files and scripts
RENAME
. npmignore
.npmignore
MODIFY
package.json
package.json
],
"scripts": {
"clean": "rimraf lib dist",
- "build:babel": "babel src/ --out-dir lib/",
"build:webpack": "webpack --env build",
- "build:legacy": "npm run clean && npm run build:babel && npm run build:webpack",
"build": "tsc",
"lint": "eslint --ext .ts src --fix",
"test": "mocha --require @babel/register --colors ./test/**/*.spec.js",
"test:watch": "mocha --require @babel/register --colors -w ./test/**/*.spec.js",
- "test:ci": "scripts/run-test.sh",
"testrpc": "ganache-cli --mnemonic 'clock radar mass judge dismiss just intact mind resemble fringe diary casino' --gasLimit 13000000"
},
"repository": {

DELETE
test-blockchain/clean.sh
-#!/usr/bin/env sh
-
-CWD=$PWD
-
-pkill -f parity
-
-rm -rf $CWD/data/*
-mkdir -p $CWD/data/keys/PrivatePoA
-cp -rf $CWD/keys/* $CWD/data/keys/PrivatePoA/

DELETE
test-blockchain/config.toml
-[parity]
-chain = "poa-spec.json"
-base_path = "data"
-
-[network]
-port = 30300
-
-[rpc]
-port = 8546
-cors = []
-apis = ["web3", "eth", "net", "personal", "parity", "parity_set", "traces", "rpc", "parity_accounts"]
-
-[ui]
-port = 8180
-
-[websockets]
-port = 8541
-
-[account]
-unlock = ["0x9fb29aac15b9a4b7f17c3385939b007540f4d791","0x96c42c56fdb78294f96b0cfa33c92bed7d75f96a","0xacf8eccdca12a0eb6ae4fb1431e26c44e66decdb"]
-password = ["node.password", "node.password", "node.password"]
-
-[mining]
-engine_signer = "0x9fb29aac15b9a4b7f17c3385939b007540f4d791"
-reseal_on_txs = "none"
-reseal_min_period = 1000
-reseal_max_period = 60000

DELETE
test-blockchain/data/.gitkeep
test-blockchain/data/.gitkeep
DELETE
test-blockchain/keys/UTC--2018-02-18T14-45-31.445018000Z--acf8eccdca12a0eb6ae4fb1431e26c44e66decdb
-{"address":"acf8eccdca12a0eb6ae4fb1431e26c44e66decdb","crypto":{"cipher":"aes-128-ctr","ciphertext":"72074f600c9b0bb483efab12aa71306a947f12dd43561045e023d194a319afe5","cipherparams":{"iv":"151f21d1a36cb1a5c5acf9a2edf91c15"},"kdf":"scrypt","kdfparams":{"dklen":32,"n":262144,"p":1,"r":8,"salt":"8a89be960fb1aceaaddaaf7382251b458918b1ddb61d57d97330e406888bb602"},"mac":"2c832fac485e604a6249e2baa2ef9696ffedf0696fe72b5d0f890dc5bed4daf1"},"id":"b6f1b4e3-ccaa-4678-8300-2b0e38f766b8","version":3}
\ No newline at end of file

DELETE
test-blockchain/keys/UTC--2018-02-19T10-26-21.638675000Z--9fb29aac15b9a4b7f17c3385939b007540f4d791
-{"address":"9fb29aac15b9a4b7f17c3385939b007540f4d791","crypto":{"cipher":"aes-128-ctr","ciphertext":"316770a9dfa36b4954f7db53e07c5501c52db7312962cf96a763292f536c2acd","cipherparams":{"iv":"3c01ac619fbb4b5b9ad5b4aa7d3af618"},"kdf":"scrypt","kdfparams":{"dklen":32,"n":262144,"p":1,"r":8,"salt":"f922663678b0645dd8792b1b9fed73647947152ef265cfd82f6497b60f9aeec3"},"mac":"17afbf05c4c0cc4de9f853eaed95e300e7fd72d44199ba8025e2f987bec7ba33"},"id":"8c0a13a8-dec8-4f97-8697-fbc6cb04dc31","version":3}

DELETE
test-blockchain/keys/UTC--2018-02-19T10-26-22.638675000Z--96c42c56fdb78294f96b0cfa33c92bed7d75f96a
-{"version":3,"id":"4ad241bd-8040-4fd8-a255-dd1f0025092c","address":"96c42c56fdb78294f96b0cfa33c92bed7d75f96a","crypto":{"ciphertext":"898a367f56394f68e3acd650b6ffa11c930e6ac195475e9aefa031caaa6d1cd3","cipherparams":{"iv":"6632d97aeb74afc1ba95f462c3eddeb6"},"cipher":"aes-128-ctr","kdf":"scrypt","kdfparams":{"dklen":32,"salt":"487b02baa43453204ec3803941d329363840a2482aa893386668c2137631f1e8","n":262144,"r":8,"p":1},"mac":"fe2bc21e35046261a039a851865d8ba433d0e52ba1d9844e586898af1164828f"}}

DELETE
test-blockchain/node.password
-hello

DELETE
test-blockchain/poa-spec.json
-{
- "name": "PrivatePoA",
- "engine": {
- "authorityRound": {
- "params": {
- "stepDuration": "1",
- "validators": {
- "multi": {
- "0": {
- "list": ["0x9fb29aac15b9a4b7f17c3385939b007540f4d791"]
- }
- }
- },
- "homesteadTransition": 0,
- "eip155Transition": 0,
- "eip150Transition": 0,
- "eip160Transition": 0,
- "eip161abcTransition": 0,
- "eip161dTransition": 0,
- "eip658Transition": 0
- }
- }
- },
- "params": {
- "gasLimitBoundDivisor": "0x400",
- "maximumExtraDataSize": "0x20",
- "minGasLimit": "0x1388",
- "networkID": "0x0D",
- "homesteadTransition": 0,
- "eip155Transition": 0,
- "eip150Transition": 0,
- "eip160Transition": 0,
- "eip161abcTransition": 0,
- "eip161dTransition": 0,
- "eip658Transition": 0
- },
- "genesis": {
- "seal": {
- "authorityRound": {
- "step": "0x0",
- "signature": "0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
- }
- },
- "difficulty": "0x00001",
- "gasLimit": "0xFFF5B8D80"
- },
- "accounts": {
- "0x0000000000000000000000000000000000000001": {
- "balance": "1",
- "builtin": {
- "name": "ecrecover",
- "pricing": { "linear": { "base": 3000, "word": 0 } }
- }
- },
- "0x0000000000000000000000000000000000000002": {
- "balance": "1",
- "builtin": {
- "name": "sha256",
- "pricing": { "linear": { "base": 60, "word": 12 } }
- }
- },
- "0x0000000000000000000000000000000000000003": {
- "balance": "1",
- "builtin": {
- "name": "ripemd160",
- "pricing": { "linear": { "base": 600, "word": 120 } }
- }
- },
- "0x0000000000000000000000000000000000000004": {
- "balance": "1",
- "builtin": {
- "name": "identity",
- "pricing": { "linear": { "base": 15, "word": 3 } }
- }
- },
- "0x9fb29aac15b9a4b7f17c3385939b007540f4d791": {
- "balance": "10000000000000000000000000000"
- },
- "0x96c42c56fdb78294f96b0cfa33c92bed7d75f96a": {
- "balance": "10000000000000000000000000000"
- },
- "0xacf8eccdca12a0eb6ae4fb1431e26c44e66decdb": {
- "balance": "10000000000000000000000000000"
- }
- }
-}

DELETE
test-blockchain/start.sh
-#!/usr/bin/env sh
-
-CWD=$PWD
-
-nohup parity --config $CWD/config.toml > $CWD/data/node.log 2>&1 &
-echo $! > $CWD/data/node.pid
-echo "Node started. Check test-blockchain/data/node.log for more logs"

DELETE
test-blockchain/stop.sh
-#!/usr/bin/env sh
-
-CWD=$PWD
-
-pkill -f parity

MODIFY
tsconfig.json
tsconfig.json
"exclude": [
"node_modules",
"dist",
- "lib",
- "src/index.js"
+ "lib"
]
}

fix: remove unwanted files and scripts