forked from dydxprotocol/solo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
107 lines (107 loc) · 4.88 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
{
"name": "@dydxprotocol/solo",
"version": "0.39.2",
"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/published_contracts/",
"dist/build/wrappers/",
"dist/src/",
"LICENSE",
"README.md"
],
"scripts": {
"test": "npm run deploy_test && npm run test_only",
"build": "npm run compile -- --all && npm run copy_tew && npm run clean_contract_json && npm run build:wrappers && npm run build:test_wrappers",
"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/published_contracts/*[^(Impl)].json'",
"build:test_wrappers": "typechain --target=web3-1.0.0 --outDir=build/testing_wrappers/ './build/testing_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 scripts/coverage.js",
"node": "ganache-cli",
"debug": "truffle debug",
"build:js": "rm -rf dist/ && tsc && cp -r build/wrappers dist/build",
"build:cov": "npm run copy_tew && npm run clean_contract_json && npm run build:wrappers && npm run build:test_wrappers",
"docker_node": "ganache-cli -i 1313 -d -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://127.0.0.1:8555 npm run reset_test_evm && COVERAGE=true npm run migrate -- --network coverage && RPC_NODE_URI=http://127.0.0.1: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://127.0.0.1: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"
},
"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.3",
"@types/web3": "1.0.18",
"axios": "^0.19.0",
"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.9.0",
"web3": "1.2.1",
"ws": "^7.2.0"
},
"devDependencies": {
"@truffle/config": "^1.2.14",
"@types/axios": "^0.14.0",
"@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",
"dotenv-flow": "^0.2.0",
"eslint": "^5.16.0",
"eslint-config-airbnb-base": "^13.1.0",
"eslint-plugin-import": "^2.16.0",
"ethlint": "^1.2.4",
"ganache-cli": "6.9.0",
"jest": "^24.1.0",
"mocha-junit-reporter": "^1.18.0",
"ora": "^4.0.3",
"solidity-coverage": "0.7.1",
"truffle": "^5.1.12",
"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"
}
}