forked from dydxprotocol/solo
-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
104 lines (104 loc) · 4.57 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
{
"name": "@dydxprotocol/solo",
"version": "0.15.4",
"description": "Ethereum Smart Contracts and TypeScript library used for the dYdX Solo-Margin Trading Protocol",
"main": "dist/src/index.js",
"types": "dist/src/index.d.ts",
"files": [
"dist/build/",
"dist/src/",
"build/wrappers/",
"src/",
"LICENSE",
"README.md"
],
"scripts": {
"test": "npm run deploy_test && npm run test_only",
"build": "npm run compile && npm run copy_tew && npm run build:wrappers && npm run clean_contract_json",
"copy_tew": "cp node_modules/@dydxprotocol/exchange-wrappers/build/contracts/TestExchangeWrapper.json ./build/contracts/",
"copy_tew_cov": "cp ./node_modules/@dydxprotocol/exchange-wrappers/build/contracts/TestExchangeWrapper.json ./build/contracts/",
"compile": "node_modules/.bin/truffle compile",
"build:wrappers": "typechain --target=web3-1.0.0 --outDir=build/wrappers/ './build/contracts/*[^(Impl)].json'",
"migrate": "truffle migrate",
"develop": "truffle develop",
"console": "truffle console",
"lint": "npm run lint:ts && npm run lint:js && npm run lint:sol && npm run lint:dydx",
"lint:ts": "tslint --project . -t verbose 'src/**/*.ts' '__tests__/**/*.ts'",
"lint:js": "eslint --ext .js --ignore-path .gitignore migrations/**/*.js",
"lint:sol": "solium -d contracts/",
"lint:dydx": "python util/lintcontracts.py",
"coverage": "./node_modules/.bin/solidity-coverage",
"node": "ganache-cli",
"debug": "truffle debug",
"build:js": "rm -rf dist/ && tsc && cp -r build/wrappers dist/build",
"docker_node": "ganache-cli -i 1313 -d -k=petersburg -p 8545 -h 0.0.0.0 --db=/home/.ganache",
"clean_contract_json": "ts-node ./scripts/CleanBuild.ts",
"deploy": "truffle migrate --network=$NETWORK --reset && npm run save_deployed_addresses",
"deploy_kovan": "NETWORK=kovan npm run deploy",
"deploy_mainnet": "NETWORK=mainnet npm run deploy",
"deploy_test": "npm run reset_test_evm && npm run migrate -- --network test --reset && npm run snapshot_test_evm && npm run clean_contract_json",
"deploy_coverage": "RPC_NODE_URI=http://0.0.0.0:8555 npm run reset_test_evm && npm run migrate -- --network coverage --reset && RPC_NODE_URI=http://0.0.0.0:8555 npm run snapshot_test_evm && npm run clean_contract_json",
"deploy_test_ci": "RPC_NODE_URI=http://0.0.0.0:8545 npm run reset_test_evm && npm run migrate -- --network test_ci --reset && RPC_NODE_URI=http://0.0.0.0:8545 npm run snapshot_test_evm && npm run clean_contract_json",
"test_only": "NODE_ENV=test jest --setupFiles dotenv/config --runInBand",
"test_cov": "npm run deploy_coverage && NETWORK_ID=1002 COVERAGE=true RPC_NODE_URI=http://0.0.0.0:8555 npm run test_only -- --forceExit",
"ci_test": "NODE_ENV=test RPC_NODE_URI=http://0.0.0.0:8545 jest --setupFiles dotenv/config --runInBand",
"reset_test_evm": "node scripts/reset-test-evm.js",
"snapshot_test_evm": "node scripts/snapshot-test-evm.js",
"install_compiler": "docker pull ethereum/solc:0.5.7",
"save_deployed_addresses": "ts-node ./scripts/SaveDeployedAddresses.ts",
"serve_docs": "docsify serve ./docs"
},
"repository": {
"type": "git",
"url": "https://github.com/dydxprotocol/solo"
},
"keywords": [
"dydx",
"ethereum"
],
"author": "dYdX Trading Inc.",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/dydxprotocol/solo/issues"
},
"homepage": "https://github.com/dydxprotocol/solo#readme",
"dependencies": {
"@dydxprotocol/exchange-wrappers": "0.5.0",
"@types/web3": "^1.0.18",
"bignumber.js": "^8.1.1",
"canonical-weth": "^1.4.0",
"es6-promisify": "^6.0.1",
"ethers": "^4.0.33",
"openzeppelin-solidity": "2.1.3",
"query-string": "^6.8.2",
"request-promise-native": "^1.0.7",
"web3": "1.2.1"
},
"devDependencies": {
"@types/es6-promisify": "^6.0.0",
"@types/jest": "^24.0.9",
"babel-cli": "^6.26.0",
"babel-eslint": "^10.0.1",
"chai": "^4.1.2",
"coveralls": "^3.0.3",
"docsify-cli": "^4.3.0",
"dotenv-flow": "^0.2.0",
"eslint": "^5.14.1",
"eslint-config-airbnb-base": "^13.1.0",
"eslint-plugin-import": "^2.16.0",
"ethlint": "^1.2.4",
"ganache-cli": "6.7.0-beta.0",
"jest": "^24.1.0",
"mocha-junit-reporter": "^1.18.0",
"solidity-coverage": "0.6.2",
"truffle": "^5.0.34",
"truffle-hdwallet-provider": "^1.0.16",
"ts-jest": "^24.0.0",
"ts-node": "^8.0.2",
"tslint": "^5.13.1",
"tslint-config-airbnb": "^5.11.1",
"tslint-no-focused-test": "^0.5.0",
"typechain": "^0.3.11",
"typescript": "^3.3.3333"
}
}