-
Notifications
You must be signed in to change notification settings - Fork 112
/
package.json
169 lines (169 loc) · 10.8 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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
{
"name": "@colony.io/colony-network-contracts",
"version": "1.0.0",
"description": "Contracts for Colony Network",
"engines": {
"node": "v20.11.0",
"pnpm": "8.14.1"
},
"scripts": {
"preinstall": "npx only-allow pnpm",
"prepare": "husky install",
"eslint": "eslint .",
"eslint-staged": "bash ./scripts/eslint.sh",
"solhint": "solhint ./contracts/**/*.sol",
"solhint-staged": "bash ./scripts/solhint.sh",
"build:docs": "npx hardhat compile && scripts/docgen.js",
"prettier-contracts-staged": "bash ./scripts/prettier-contracts.sh",
"check:auth": "./scripts/check-auth.js",
"check:gitchanges": "./scripts/no-git-changes.sh",
"check:storagevars": "./scripts/check-storage.js",
"check:recoverymods": "./scripts/check-recovery.js",
"check:versioning": "bash ./scripts/versioningCheck.sh",
"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",
"version:contracts": "bash ./scripts/version-contracts.sh",
"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",
"normalize:storageSlots": "./scripts/normalize-storage-slots.js",
"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/",
"start:bridging": "cd ./lib/safe-contracts && pnpm 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": "PORT=8546 DBPATH=./ganache-chain-db-2 bash ./scripts/start-blockchain-client.sh",
"start:blockchain:client:both": "CHAIN_ID=$CHAIN_ID_1 pnpm run start:blockchain:client & sleep 1 && CHAIN_ID=$CHAIN_ID_2 pnpm run start:blockchain:client:2",
"start:reputation:oracle": "./scripts/start-reputation-oracle.js",
"stop:blockchain:client": "bash ./scripts/stop-blockchain-client.sh",
"pretest:contracts": "pnpm run stop:blockchain:client",
"pretest:contracts:extensions": "pnpm run stop:blockchain:client",
"test:contracts": "pnpm run start:blockchain:client && npx hardhat test ./test/contracts-network/* ./test/packages/* --network development",
"test:contracts:extensions": "pnpm run start:blockchain:client && npx hardhat test ./test/extensions/* --network development",
"test:contracts:upgrade:parity": "pnpm run clean:test:contracts | pnpm run start:blockchain:client parity & pnpm run generate:test:contracts && npx hardhat test ./test/upgrade/* --network integration",
"test:contracts:upgrade:ganache": "pnpm run clean:test:contracts | pnpm run start:blockchain:client ganache & pnpm run generate:test:contracts && npx hardhat test ./test/upgrade/* --network development",
"test:contracts:gas": "pnpm run start:blockchain:client && npx hardhat test test/misc/gas-costs.js --network development",
"test:contracts:patricia": "pnpm run start:blockchain:client ganache && npx hardhat test packages/reputation-miner/patricia-test.js --network integration",
"test:contracts:bridging:1": "CHAIN_ID_1=265669100 CHAIN_ID_2=265669101 pnpm run start:blockchain:client:both && HARDHAT_FOREIGN=false MINING_CHAIN_ID=265669100 npx hardhat test ./test/cross-chain/* --network development",
"test:contracts:bridging:2": "CHAIN_ID_1=265669101 CHAIN_ID_2=265669100 pnpm run start:blockchain:client:both && HARDHAT_FOREIGN=true MINING_CHAIN_ID=265669100 CHAIN_ID=265669101 npx hardhat test ./test/cross-chain/* --network development",
"test:contracts:chainid": "pnpm run start:blockchain:client && npx hardhat test ./test/misc/chainid.js",
"test:contracts:e2e": "pnpm run start:blockchain:client && npx hardhat test test/misc/end-to-end.js --network development",
"test:contracts:coverage": "npx hardhat coverage --solcoverjs ./.solcover/solcover.js --temp build-coverage --testfiles './test/contracts-network/*'",
"test:contracts:extensions:coverage": "npx hardhat compile && NODE_OPTIONS='--max-old-space-size=6144' npx hardhat coverage --solcoverjs ./.solcover/extensions.js --temp build-coverage --testfiles './test/extensions/*'",
"test:contracts:bridging:1:coverage": "CHAIN_ID=265669101 pnpm run start:blockchain:client:2 && HARDHAT_FOREIGN=false MINING_CHAIN_ID=265669100 npx hardhat --show-stack-traces coverage --solcoverjs ./.solcover/crosschain.js --temp build-coverage --testfiles './test/cross-chain/**/*'",
"test:contracts:bridging:2:coverage": "CHAIN_ID=265669100 pnpm run start:blockchain:client:2 && HARDHAT_FOREIGN=true MINING_CHAIN_ID=265669100 CHAIN_ID=265669101 npx hardhat coverage --solcoverjs ./.solcover/crosschain.js --temp build-coverage --testfiles './test/cross-chain/**/*'",
"test:contracts:chainid:coverage": "npx hardhat coverage --solcoverjs ./.solcover/chainid.js --temp build-coverage --testfiles './test/misc/chainid.js'",
"test:contracts:upgrade:coverage": "pnpm run generate:test:contracts && npx hardhat coverage --solcoverjs ./.solcover/upgrade.js --temp build-coverage --testfiles './test/upgrade/*'",
"test:reputation:1": "pnpm run start:blockchain:client && npx hardhat test ./test/reputation-system/*.js --network development",
"test:reputation:2": "pnpm run start:blockchain:client && npx hardhat test ./test/reputation-system/reputation-mining-client/* --network development",
"test:reputation:1:anotherChain": "CHAIN_ID=101010101 pnpm run start:blockchain:client && MINING_CHAIN_ID=101010101 CHAIN_ID=101010101 npx hardhat test ./test/reputation-system/*.js --network development",
"test:reputation:2:anotherChain": "CHAIN_ID=101010101 pnpm run start:blockchain:client && MINING_CHAIN_ID=101010101 CHAIN_ID=101010101 npx hardhat test ./test/reputation-system/reputation-mining-client/* --network development",
"test:reputation:coverage": "npx hardhat coverage --solcoverjs ./.solcover/reputation.js --temp build-coverage --testfiles './test/reputation-system/**/*'",
"test:security:slither": "slither . --solc-disable-warnings --exclude-low --exclude-informational --exclude-optimization --filter-paths 'lib|contracts/testHelpers|@openzeppelin'",
"posttest:contracts": "pnpm run stop:blockchain:client",
"posttest:contracts:extensions": "pnpm run stop:blockchain:client",
"posttest:contracts:upgrade:parity": "pnpm run clean:test:contracts | pnpm run stop:blockchain:client",
"posttest:contracts:upgrade:ganache": "pnpm run clean:test:contracts | pnpm run stop:blockchain:client",
"posttest:contracts:gas": "pnpm run stop:blockchain:client",
"posttest:contracts:patricia": "pnpm run stop:blockchain:client",
"viz:bootstrap": "pnpm run start:blockchain:client && HARDHAT_NETWORK=development npx hardhat run scripts/viz-bootstrap.js",
"kyc:bootstrap": "pnpm run start:blockchain:client && HARDHAT_NETWORK=development npx hardhat run scripts/kyc-bootstrap.js"
},
"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": {
"@certusone/wormhole-sdk": "^0.10.18",
"@codechecks/client": "^0.1.12",
"@colony/eslint-config-colony": "10.0.0",
"@grpc/grpc-js": "^1.11.3",
"@grpc/proto-loader": "^0.7.13",
"@nomicfoundation/hardhat-ethers": "^3.0.8",
"@nomicfoundation/hardhat-network-helpers": "^1.0.12",
"@nomiclabs/hardhat-ethers": "^2.2.3",
"@nomiclabs/hardhat-truffle5": "^2.0.7",
"@openzeppelin/contracts": "^4.9.6",
"@solidity-parser/parser": "^0.14.5",
"@solidstate/hardhat-4byte-uploader": "^1.2.2",
"@truffle/contract": "^4.6.31",
"@types/node": "^20.16.10",
"@typescript-eslint/eslint-plugin": "^8.8.0",
"@typescript-eslint/parser": "^8.8.0",
"@umaprotocol/truffle-ledger-provider": "^1.0.5",
"@wormhole-foundation/relayer-engine": "^0.3.2",
"async-request": "^1.2.0",
"axios": "^0.28.1",
"bignumber.js": "^9.1.2",
"bluebird": "^3.7.2",
"bn-chai": "^1.0.1",
"bn.js": "^5.2.1",
"body-parser": "^1.20.3",
"chai": "^4.5.0",
"eslint": "^8.57.1",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-prettier": "^8.10.0",
"eslint-import-resolver-typescript": "^3.6.3",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import": "^2.30.0",
"eslint-plugin-no-only-tests": "^2.6.0",
"eslint-plugin-prettier": "^4.2.1",
"eth-ens-namehash": "^2.0.8",
"eth-gas-reporter": "^0.2.27",
"eth-sig-util": "^3.0.1",
"ethereumjs-account": "^3.0.0",
"ethereumjs-util": "^7.1.5",
"ethers": "^5.7.2",
"ethlint": "^1.2.5",
"express": "^4.21.0",
"express-ws": "^5.0.2",
"find-in-files": "^0.5.0",
"ganache": "7.9.2",
"hardhat": "^2.22.12",
"hardhat-contract-sizer": "^2.10.0",
"hardhat-storage-layout-changes": "^0.1.2",
"hardhat-tracer": "^3.1.0",
"husky": "^8.0.3",
"istanbul": "^0.4.5",
"istanbul-combine": "^0.3.0",
"mocha": "^10.7.3",
"mocha-circleci-reporter": "^0.0.3",
"node-hid": "^2.2.0",
"nthline": "^1.0.2",
"pre-commit": "^1.2.2",
"prettier": "^2.8.8",
"prettier-plugin-solidity": "^1.4.1",
"rimraf": "^3.0.2",
"shortid": "^2.2.16",
"solhint": "^3.6.2",
"solidity-coverage": "^0.8.13",
"solidity-steamroller": "^1.1.0",
"tsx": "^4.19.1",
"typescript": "^5.6.2",
"typescript-eslint": "^8.8.0",
"web3-utils": "^1.10.4",
"ws": "^8.18.0"
},
"optionalDependencies": {
"fsevents": "^2.3.3"
},
"private": true,
"pnpm": {
"patchedDependencies": {
"@nomiclabs/[email protected]": "patches/@[email protected]"
},
"overrides": {
"[email protected]+ethereumjs/ethereumjs-abi/ee3994657fa7a427238e6ba92a84d0b529bbcde0": "git+https://github.com/ethereumjs/ethereumjs-abi.git+ee3994657fa7a427238e6ba92a84d0b529bbcde0"
}
},
"workspaces": [
"packages/kyc-oracle",
"packages/metatransaction-broadcaster",
"packages/package-utils",
"packages/reputation-miner"
]
}