forked from JoinColony/colonyNetwork
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
147 lines (147 loc) · 11.5 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
{
"name": "@colony.io/colony-network-contracts",
"version": "1.0.0",
"description": "Contracts for Colony Network",
"scripts": {
"solhint-staged": "bash ./scripts/solhint.sh",
"eslint-staged": "bash ./scripts/eslint.sh",
"prettier-contracts-staged": "bash ./scripts/prettier-contracts.sh",
"eslint": "eslint .",
"solhint": "solhint ./contracts/**/*.sol",
"build:docs": "scripts/docgen.js",
"ping:osx": "osascript -e 'display notification \"Ping!\"'",
"check:gitchanges": "./scripts/no-git-changes.sh",
"check:storagevars": "./scripts/check-storage.js",
"check:recoverymods": "./scripts/check-recovery.js",
"check:coverage": "istanbul-combine -d coverage-merged -p detail -r html -r json coverage-*/coverage-final.json && istanbul check-coverage ./coverage-merged/coverage-final.json --statements 99 --branches 94 --functions 99 --lines 99",
"check:auth": "./scripts/check-auth.js",
"check:versioning": "bash ./scripts/versioningCheck.sh",
"version:contracts": "bash ./scripts/version-contracts.sh",
"generate:test:contracts": "bash ./scripts/generate-test-contracts.sh",
"clean:test:contracts": "rimraf ./contracts/*Updated*.*",
"clean:contracts": "rimraf ./build/contracts/*",
"clean:ganache": "rimraf ./ganache-chain-db/",
"provision:token:contracts": "truffle compile && truffle compile --contracts_directory 'lib/dappsys/[!note][!stop][!proxy][!thing][!token]*.sol' && bash ./scripts/provision-token-contracts.sh",
"provision:safe:contracts": "truffle compile && truffle compile --contracts_directory 'lib/safe-contracts/contracts/proxies/*.sol' && truffle compile --contracts_directory 'lib/safe-contracts/contracts/*.sol' && bash ./scripts/provision-safe-contracts.sh",
"start:bridging": "cd ./lib/safe-contracts && npm i || true && cd ../../ && bash ./scripts/setup-foreign-chain.sh && node ./scripts/setup-bridging-contracts.js &",
"start:blockchain:client": "bash ./scripts/start-blockchain-client.sh",
"start:blockchain:client:2": "CHAIN_ID=2656692 PORT=8546 DBPATH=./ganache-chain-db-2 bash ./scripts/start-blockchain-client.sh",
"start:reputation:oracle": "./scripts/start-reputation-oracle.js",
"reset:blockchain:client": "npm run stop:blockchain:client && rm -rf ./ganache-chain-db*",
"stop:blockchain:client": "bash ./scripts/stop-blockchain-client.sh",
"fork:goerli": "ganache --fork https://goerli.infura.io/v3/e21146aa267845a2b7b4da025178196d --port 8605",
"fork:mainnet": "ganache --fork https://mainnet.infura.io/v3/e21146aa267845a2b7b4da025178196d --port 8601",
"flatten:contracts": "mkdir -p ./build/flattened/ && steamroller contracts/colonyNetwork/IColonyNetwork.sol > build/flattened/flatIColonyNetwork.sol && steamroller contracts/colony/IColony.sol > build/flattened/flatIColony.sol && steamroller contracts/reputationMiningCycle/IReputationMiningCycle.sol > build/flattened/flatIReputationMiningCycle.sol && steamroller contracts/colony/IMetaColony.sol > build/flattened/flatIMetaColony.sol && steamroller contracts/common/IRecovery.sol > build/flattened/flatIRecovery.sol && steamroller contracts/common/IEtherRouter.sol > build/flattened/flatIEtherRouter.sol",
"test:reputation:1": "npm run start:blockchain:client & truffle migrate --reset --compile-all && nyc truffle test ./test/reputation-system/* --network development",
"test:reputation:2": "npm run start:blockchain:client hardhat & truffle migrate --reset --compile-all && nyc truffle test ./test/reputation-system/reputation-mining-client/* --network development",
"test:reputation:coverage": "SOLIDITY_COVERAGE=1 truffle run coverage --solcoverjs ./.solcover.reputation.js --network coverage --temp build-coverage --file='./test/reputation-system/**/*'",
"test:contracts": "npm run start:blockchain:client & truffle migrate --reset --compile-all && truffle test ./test/contracts-network/* ./test/packages/* --network development",
"test:contracts:bridging:1": "npm run start:blockchain:client & npm run start:blockchain:client:2 & truffle migrate --reset --compile-all && TRUFFLE_FOREIGN=false truffle test ./test/cross-chain/* --network development",
"test:contracts:bridging:2": "npm run start:blockchain:client & npm run start:blockchain:client:2 & truffle migrate --reset --compile-all && TRUFFLE_FOREIGN=true truffle test ./test/cross-chain/* --network development",
"test:contracts:bridging:1:coverage": "npm run start:blockchain:client & npm run start:blockchain:client:2 & SOLIDITY_COVERAGE=1 TRUFFLE_FOREIGN=false truffle run coverage --solcoverjs ./.solcover.crosschain.js --network coverage --temp build-coverage --file='./test/cross-chain/**/*'",
"test:contracts:bridging:2:coverage": "npm run start:blockchain:client & npm run start:blockchain:client:2 & SOLIDITY_COVERAGE=1 TRUFFLE_FOREIGN=true truffle run coverage --solcoverjs ./.solcover.crosschain.js --network coverage --temp build-coverage --file='./test/cross-chain/**/*'",
"test:contracts:extensions": "npm run start:blockchain:client & truffle migrate --reset --compile-all && truffle test ./test/extensions/* --network development",
"test:contracts:chainid": "npm run stop:blockchain:client && npm run start:blockchain:client & truffle migrate --reset --compile-all && truffle test ./test-chainid/*",
"test:contracts:chainid:coverage": "SOLIDITY_COVERAGE=1 truffle run coverage --solcoverjs ./.solcover.chainid.js --network coverage --temp build-coverage --file='./test-chainid/**/*'",
"test:contracts:upgrade:parity": "npm run start:blockchain:client parity & npm run generate:test:contracts && truffle migrate --reset --compile-all && truffle test ./test-upgrade/* --network integration",
"test:contracts:upgrade:ganache": "npm run start:blockchain:client & npm run generate:test:contracts && truffle migrate --reset --compile-all && truffle test ./test-upgrade/* --network development",
"test:contracts:upgrade:coverage": "npm run generate:test:contracts && SOLIDITY_COVERAGE=1 truffle run coverage --solcoverjs ./.solcover.upgrade.js --network coverage --temp build-coverage --file='./test-upgrade/*'",
"test:contracts:gasCosts": "npm run start:blockchain:client & truffle migrate --reset --compile-all && truffle test test-gas-costs/gasCosts.js --network development",
"test:contracts:patricia": "npm run start:blockchain:client parity & truffle migrate --reset --compile-all && truffle test packages/reputation-miner/patricia-test.js --network development",
"test:contracts:coverage": "SOLIDITY_COVERAGE=1 truffle run coverage --network coverage --temp build-coverage --file='./test/contracts-network/*'",
"test:contracts:extensions:coverage": "SOLIDITY_COVERAGE=1 truffle run coverage --network coverage --solcoverjs ./.solcover.extensions.js --temp build-coverage --file='./test/extensions/*'",
"test:contracts:watch": "npm run start:blockchain:client & truffle migrate --reset --compile-all && truffle watch --network development",
"test:contracts:e2e": "npm run start:blockchain:client & truffle migrate --reset --compile-all && truffle test test-system/end-to-end.js --network development",
"test:contracts:smoke": "truffle compile && truffle test ./test-smoke/colony-storage-consistent.js --network storageSmoke",
"test:security:slither": "slither . --solc-disable-warnings --exclude-low --exclude-informational --exclude-optimization --filter-paths 'lib|contracts/testHelpers|@openzeppelin'",
"test:security:mythril": "truffle run verify --mode quick --style json --limit 1 --swc-blacklist 101,123,128,131 > truffle-security-output.json; sed -i '/^\\[{/!d' ./truffle-security-output.json && node ./scripts/process-truffle-security.js",
"pretest:contracts": "sed -ie \"s/eth-gas-reporter/mocha-circleci-reporter/g\" ./truffle.js && rimraf ./truffle.jse",
"pretest:contracts:upgrade:parity": "sed -ie \"s/eth-gas-reporter/mocha-circleci-reporter/g\" ./truffle.js && rimraf ./truffle.jse",
"pretest:contracts:upgrade:ganache": "sed -ie \"s/eth-gas-reporter/mocha-circleci-reporter/g\" ./truffle.js && rimraf ./truffle.jse",
"pretest:contracts:gasCosts": "sed -ie \"s/mocha-circleci-reporter/eth-gas-reporter/g\" ./truffle.js && rimraf ./truffle.jse",
"pretest:contracts:coverage": "sed -ie \"s/eth-gas-reporter/mocha-circleci-reporter/g\" ./truffle.js && rimraf ./truffle.jse",
"pretest:contracts:extensions:coverage": "sed -ie \"s/eth-gas-reporter/mocha-circleci-reporter/g\" ./truffle.js && rimraf ./truffle.jse",
"pretest:contracts:watch": "sed -ie \"s/eth-gas-reporter/mocha-circleci-reporter/g\" ./truffle.js && rimraf ./truffle.jse",
"posttest:contracts": "npm run stop:blockchain:client",
"posttest:contracts:extensions": "npm run stop:blockchain:client",
"posttest:contracts:upgrade:parity": "npm run clean:test:contracts | npm run stop:blockchain:client",
"posttest:contracts:upgrade:ganache": "npm run clean:test:contracts | npm run stop:blockchain:client",
"posttest:contracts:gasCosts": "npm run stop:blockchain:client",
"posttest:contracts:patricia": "npm run stop:blockchain:client",
"posttest:contracts:watch": "npm run stop:blockchain:client",
"viz:bootstrap": "npm run start:blockchain:client & truffle migrate --reset --compile-all && truffle exec --network development scripts/viz-bootstrap.js",
"kyc:bootstrap": "npm run start:blockchain:client & truffle migrate --reset --compile-all && truffle exec --network development scripts/kyc-bootstrap.js",
"prepare": "husky install"
},
"repository": {
"type": "git",
"url": "git+https://github.com/JoinColony/colonyNetwork.git"
},
"author": "Colony (https://colony.io/)",
"license": "GPL-3.0",
"bugs": {
"url": "https://github.com/JoinColony/colonyNetwork/issues"
},
"homepage": "https://github.com/JoinColony/colonyNetwork#readme",
"devDependencies": {
"@codechecks/client": "^0.1.12",
"@colony/eslint-config-colony": "9.0.2",
"@openzeppelin/contracts": "^4.9.3",
"@solidity-parser/parser": "^0.14.2",
"@truffle/contract": "^4.6.31",
"@umaprotocol/truffle-ledger-provider": "^1.0.5",
"async-request": "^1.2.0",
"axios": "^0.27.2",
"bignumber.js": "^9.0.2",
"bluebird": "^3.7.2",
"bn-chai": "^1.0.1",
"bn.js": "^5.2.1",
"chai": "^4.3.6",
"eslint": "^8.17.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-no-only-tests": "^2.6.0",
"eslint-plugin-prettier": "^4.0.0",
"eth-ens-namehash": "^2.0.8",
"eth-gas-reporter": "^0.2.25",
"ethereumjs-account": "^3.0.0",
"ethereumjs-util": "^7.1.5",
"ethers": "^5.6.8",
"ethlint": "^1.2.5",
"find-in-files": "^0.5.0",
"ganache": "7.5",
"hardhat": "^2.17.1",
"husky": "^8.0.1",
"istanbul": "^0.4.5",
"istanbul-combine": "^0.3.0",
"mocha": "^10.0.0",
"mocha-circleci-reporter": "^0.0.3",
"node-hid": "^2.1.1",
"nthline": "^1.0.2",
"nyc": "^15.1.0",
"pre-commit": "^1.2.2",
"prettier": "^2.8.8",
"prettier-plugin-solidity": "^1.1.3",
"rimraf": "^3.0.2",
"shortid": "^2.2.16",
"solhint": "^3.3.7",
"solidity-coverage": "^0.8.0-beta.1",
"solidity-steamroller": "^1.1.0",
"truffle": "^5.5.30",
"truffle-contract-size": "^2.0.1",
"truffle-hdwallet-provider": "^1.0.17",
"web3-utils": "^1.7.3"
},
"optionalDependencies": {
"fsevents": "^2.3.2"
},
"private": true,
"workspaces": [
"packages/kyc-oracle",
"packages/metatransaction-broadcaster",
"packages/package-utils",
"packages/reputation-miner"
]
}