-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathpackage.json
125 lines (125 loc) · 5.71 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
{
"name": "@panther-core/contracts",
"version": "0.0.1",
"author": "Panther Protocol Team (see contributors.md)",
"description": "Panther Protocol smart contracts",
"license": "SEE LICENSE IN ./LICENSE",
"scripts": {
"build:types": "cp -a types ../dapp/src",
"build:contracts:triad-tree": "./scripts/generateTriadMerkleZeroesContracts.sh",
"chain": "HARDHAT_NO_MNEMONIC=yes hardhat node",
"clean": "rm -rf artifacts/ cache/solidity-files-cache.json types/contracts/",
"compile": "TS_NODE_TRANSPILE_ONLY=1 HARDHAT_NO_MNEMONIC=yes hardhat compile",
"console": "HARDHAT_NO_MNEMONIC=yes hardhat console",
"export-jq": "bash -c 'hardhat export --export >(cat) --network ${HH_NETWORK:-localhost}' | jq",
"export-env": "yarn export-jq -r '.contracts | to_entries | map((.key|camel_to_snake|ascii_upcase) + \"_CONTRACT=\" + .value.address) | .[]'",
"contracts": "yarn export-jq '.contracts | with_entries(.value = .value.address)'",
"coverage": "HARDHAT_NO_MNEMONIC=yes hardhat coverage",
"deploy:bridge:relayer:proxy": "hardhat deploy --tags msg-relayer-proxy",
"deploy:bridge:sender": "hardhat deploy --tags msg-sender",
"deploy:bridge:relayer:imp": "hardhat deploy --tags msg-relayer-imp",
"deploy:bridge:relayer:upgrade": "hardhat deploy --tags msg-relayer-upgrade",
"deploy:protocol": "hardhat deploy --tags protocol",
"deploy:staking:classic": "hardhat deploy --tags classic-staking",
"deploy:staking:advanced": "hardhat deploy --tags advanced-staking,protocol",
"deploy": "hardhat deploy",
"verify": "hardhat etherscan-verify",
"deploy:chain": "HARDHAT_NO_MNEMONIC=yes hardhat deploy --network localhost",
"flatten": "HARDHAT_NO_MNEMONIC=yes hardhat flatten",
"lint": "yarn lint:solhint && yarn lint:ts && yarn prettier:list-different",
"lint:eslint": "eslint --max-warnings 0",
"lint:solhint": "solhint --max-warnings 0 contracts/**/*.sol",
"lint:ts": "yarn lint:eslint .",
"pchain:generate-snapshot": "yarn pchain:setup --take-snapshot && tar -zcf pchain/deployments.tar.gz deployments/pchain",
"pchain:load-snapshot": "tar -xzf pchain/deployments.tar.gz && yarn pchain:start --from-snapshot",
"pchain:setup": "rm deployments/pchain/ -rf && ./scripts/setup-pchain.sh",
"pchain:start": "./scripts/setup-pchain.sh --no-deploy",
"pchain:start:verbose": "yarn pchain:start --log-file=$(tty) --ganache-args=--verbose",
"prettier:check": "cd .. && yarn prettier --check contracts",
"prettier:fix": "cd .. && yarn prettier --write contracts",
"prettier:list-different": "cd .. && yarn prettier --list-different contracts",
"uml": "yarn sol2uml -i utils contracts -o ../docs/contracts.svg",
"storage": "HARDHAT_NO_MNEMONIC=yes yarn hardhat storage | grep -v '/node_modules/\\.bin/hardhat storage' > docs/docgen/storage.layout.txt",
"slither:install": "./scripts/slither_install.sh",
"slither:check": "./scripts/slither_check.sh",
"slither": "yarn slither:install && yarn slither:check",
"super-safe-check-before-commit": "rm -rf build artifacts cache types && yarn install && yarn compile && yarn prettier:fix && yarn lint && yarn test && yarn slither",
"test": "yarn clean && HARDHAT_NO_MNEMONIC=yes hardhat test",
"test:gas": "REPORT_GAS=yes yarn test",
"test:ts": "echo '[i] not implemented: yarn pchain:load-snapshot --eval-and-exit \"jest --runInBand --detectOpenHandles --forceExit --verbose --colors\"'",
"typechain": "HARDHAT_NO_MNEMONIC=yes hardhat typechain",
"verify:network": "HARDHAT_NO_MNEMONIC=yes hardhat verify --network"
},
"keywords": [
"blockchain",
"ethereum",
"hardhat",
"smart-contracts",
"snarkjs",
"solidity",
"zero-knowledge",
"zk-proof"
],
"dependencies": {
"chai": "^4.3.4",
"circomlibjs": "^0.0.8"
},
"devDependencies": {
"@defi-wonderland/smock": "^2.3.4",
"@ethersproject/abi": "^5",
"@ethersproject/abstract-provider": "^5",
"@ethersproject/abstract-signer": "^5",
"@ethersproject/bignumber": "^5.4.1",
"@ethersproject/contracts": "^5.5.0",
"@ethersproject/providers": "^5.4.3",
"@ethersproject/units": "^5.4.0",
"@ethersproject/bytes": "^5",
"@ethersproject/hardware-wallets": "^5.0.14",
"@nomiclabs/hardhat-ethers": "npm:hardhat-deploy-ethers@^0.3.0-beta.13",
"@nomiclabs/hardhat-etherscan": "3.1.4",
"@nomiclabs/hardhat-waffle": "^2.0.1",
"@openzeppelin/contracts": "^4.1.0",
"@typechain/ethers-v5": "^9.0.0",
"@typechain/hardhat": "^4.0.0",
"@types/chai": "^4.2.21",
"@types/fs-extra": "^9.0.13",
"@types/inquirer": "^9.0.2",
"@types/lodash": "^4.14.179",
"@types/mocha": "^8.2.2",
"@types/node": "^14.11.8",
"@typescript-eslint/eslint-plugin": "^5.50.0",
"@typescript-eslint/parser": "^5.50.0",
"bigint-conversion": "^2.2.1",
"chai": "^4.3.4",
"chalk": "^5.0.1",
"circomlibjs": "^0.0.8",
"dayjs": "^1.11.3",
"dotenv": "^8.6.0",
"eslint": "^8.33.0",
"eslint-config-prettier": "^8.6.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-react": "^7.32.2",
"ethereum-waffle": "^3.3.0",
"ethereumjs-util": "^7.1.3",
"ethers": "^5.5.2",
"fs-extra": "^10.0.0",
"hardhat": "^2.12.7",
"hardhat-contract-sizer": "^2.1.0",
"hardhat-deploy": "^0.11.0",
"hardhat-deploy-ethers": "^0.3.0-beta.13",
"hardhat-gas-reporter": "^1.0.4",
"hardhat-storage-layout": "^0.1.6",
"husky": "^4.3.0",
"inquirer": "^8.0.0",
"lodash": "^4.7.15",
"mocha": "^8.1.3",
"sol2uml": "^1.1.29",
"solhint": "^3.3.7",
"solhint-plugin-prettier": "^0.0.5",
"solidity-coverage": "^0.7.16",
"ts-generator": "^0.1.1",
"ts-node": "^10.1.0",
"typechain": "^7.0.0",
"typescript": "^4.9.4"
}
}