-
Notifications
You must be signed in to change notification settings - Fork 57
/
Copy pathpackage.json
91 lines (91 loc) · 4.26 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
{
"name": "@energyweb/issuer",
"description": "",
"license": "MIT",
"author": "",
"homepage": "https://github.com/energywebfoundation/origin/tree/master/packages/issuer",
"repository": {
"type": "git",
"url": "git+https://github.com/energywebfoundation/origin.git"
},
"bugs": {
"url": "https://github.com/energywebfoundation/origin/issues"
},
"version": "6.0.1",
"main": "dist/js/src/index.js",
"files": [
"dist/js/build",
"dist/js/src",
"dist/js/schemas"
],
"directories": {
"test": "test"
},
"scripts": {
"build": "yarn build:static && yarn build:ts && yarn generate:docs",
"build:static": "yarn compile && yarn typechain:registry && yarn typechain:registry:extended && yarn typechain:issuer && yarn typechain:issuer:private",
"build:ts": "tsc --project tsconfig.json && yarn copy:declarations",
"copy:declarations": "shx cp src/ethers/*.d.ts dist/js/src/ethers && shx cp -rf contracts dist/",
"typechain:registry": "typechain --target ethers-v5 --out-dir src/ethers './build/contracts/Registry.json'",
"typechain:registry:extended": "typechain --target ethers-v5 --out-dir src/ethers './build/contracts/RegistryExtended.json'",
"typechain:issuer": "typechain --target ethers-v5 --out-dir src/ethers './build/contracts/Issuer.json'",
"typechain:issuer:private": "typechain --target ethers-v5 --out-dir src/ethers './build/contracts/PrivateIssuer.json'",
"clean": "shx rm -rf dist dist-shakeable build src/ethers",
"compile": "truffle compile",
"deploy-contracts": "rm -rf build/contracts && truffle migrate --compile-all",
"start-ganache": "ganache-cli -q -m 'chalk park staff buzz chair purchase wise oak receive avoid avoid home' -l 8000000 -e 1000000 -a 20 -p 8560",
"test": "mocha -r ts-node/register test/*.test.ts --timeout 600000 --exit",
"test:truffle": "rm -rf build/contracts && ts-node test/truffle/upgradedContract.ts && truffle test test/truffle/upgrades.test.js && rm -rf contracts/IssuerUpgradeTest.sol",
"test:e2e": "npx concurrently --success first --kill-others -n eth,test \"yarn start-ganache\" \"npx wait-on tcp:8560 && yarn test\"",
"test:ci:contracts": "npx concurrently --success first --kill-others -n eth,test \"yarn start-ganache\" \"npx wait-on tcp:8560 && yarn test:truffle\"",
"prettier": "prettier --write --config-precedence file-override './src/**/*'",
"lint": "eslint \"src/**/*{.ts,.tsx}\" --quiet",
"lint-fix": "eslint \"src/**/*{.ts,.tsx}\" --fix",
"precommit": "lint-staged",
"audit": "mythx -c .mythx.yml analyze --remap-import \"@openzeppelin/=$(pwd)/node_modules/@openzeppelin/\"",
"generate:docs": "solidity-docgen -i contracts -o ../../../docs/traceability/contracts --solc-module solc-0.8"
},
"types": "dist/js/src/index.d.ts",
"dependencies": {
"@energyweb/utils-general": "11.2.1",
"@ethersproject/abi": "5.3.1",
"@ethersproject/abstract-signer": "5.3.0",
"@ethersproject/contracts": "5.3.0",
"@ethersproject/providers": "5.3.1",
"@ethersproject/wallet": "5.3.0",
"dotenv": "10.0.0",
"ethers": "5.3.1",
"ew-precise-proofs-js": "1.1.0",
"ganache-cli": "6.12.2",
"moment": "2.29.2",
"winston": "3.3.3"
},
"devDependencies": {
"@openzeppelin/contracts": "4.4.2",
"@openzeppelin/contracts-upgradeable": "4.4.2",
"@openzeppelin/truffle-upgrades": "1.11.0",
"@typechain/ethers-v5": "7.0.1",
"@types/chai": "4.3.0",
"@types/dotenv": "6.1.1",
"@types/mocha": "9.0.0",
"@types/node": "14.18.10",
"@types/supertest": "2.0.11",
"chai": "4.3.4",
"ethlint": "1.2.5",
"mocha": "9.1.3",
"shx": "0.3.3",
"solc": "0.8.4",
"solc-0.8": "npm:[email protected]",
"solidity-docgen": "0.5.16",
"truffle": "5.4.26",
"truffle-typings": "1.0.8",
"ts-node": "9.1.1",
"typechain": "6.1.0",
"typescript": "4.5.4",
"winston-transport": "4.4.1"
},
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org"
}
}