This repository has been archived by the owner on Sep 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 69
/
package.json
96 lines (96 loc) · 3.81 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
{
"name": "@nethermindeth/warp",
"version": "2.5.1",
"description": "Solidity to Cairo Transpiler",
"main": "build/export.js",
"author": "Nethermind",
"engines": {
"node": ">=16.0.0"
},
"bin": {
"warp": "./bin/warp"
},
"files": [
"bin",
"build",
"nethersolc",
"warp_venv.sh",
"warplib",
"starknet-scripts"
],
"scripts": {
"build": "rm -rf ./build; yarn tsc",
"build-type-parser": "tspegjs -o src/utils/typeStrings/typeString_parser.ts --custom-header-file src/utils/typeStrings/typeString_parser_header.ts --cache src/utils/typeStrings/typeString_grammar.pegjs",
"dev": "yarn tsc -w",
"genparser": "yarn tspegjs -o src/utils/functionSignatureParser.ts_temp src/utils/functionSignatureParser.peg && echo \"import { toUintOrFelt } from '../utils/utils';\\n\" > src/utils/functionSignatureParser.ts && cat src/utils/functionSignatureParser.ts_temp >> src/utils/functionSignatureParser.ts && rm src/utils/functionSignatureParser.ts_temp ",
"prepare": "husky install",
"lint": "eslint . --ignore-path .gitignore",
"lint:tests": "eslint ./tests/** --ignore-path .gitignore --fix",
"lint:fix": "npm run lint -- --fix",
"formatlib": "find warplib/ -iname *.cairo -exec cairo-format -i {} +",
"test": "tests/behaviour/setup.sh && npx mocha \"tests/**/*.test.ts\" --extension ts --require ts-node/register --parallel --exit --exclude tests/cli/**/*.ts --exclude tests/compilation/**/*.ts",
"test:cli": "npx mocha tests/cli/**/*.test.ts --extension ts --require ts-node/register --exit",
"test:forwarder": "npx mocha tests/interfaceCallForwarder/interfaceForwarder.test.ts --extension ts --require ts-node/register --exit",
"test:lib": "npx mocha tests/warplib.test.ts --extension ts --require ts-node/register --exit",
"test:behaviour": "npx mocha tests/behaviour/behaviour.test.ts --extension ts --require ts-node/register --exit",
"test:semantic": "tests/behaviour/setup.sh && node build/semanticTestRunner.js",
"test:compilation": "npx mocha tests/compilation/compilation.test.ts --extension ts --require ts-node/register --exit",
"testnet": "python3 starknet-testnet/server.py",
"testnet:benchmark": "python3 starknet-testnet/server.py benchmark",
"testnet:benchmark_semantic": "python3 starknet-testnet/server.py benchmark > /dev/null 2>&1",
"warplib": "yarn tsc; node ./build/warplib/generateWarplib.js",
"release": "yarn warplib && npm publish --access public"
},
"prettier": {
"printWidth": 100,
"singleQuote": true,
"trailingComma": "all",
"tabWidth": 2
},
"lint-staged": {
"*.{js,jsx}": "eslint --ignore-path .gitignore --fix"
},
"devDependencies": {
"@types/chai": "^4.3.0",
"@types/chai-as-promised": "^7.1.5",
"@types/fs-extra": "^9.0.13",
"@types/keccak": "^3.0.1",
"@types/mocha": "^9.1.0",
"@types/node": "^17.0.33",
"@types/prompts": "^2.0.14",
"@typescript-eslint/eslint-plugin": "^5.17.0",
"@typescript-eslint/parser": "^5.17.0",
"axios": "^0.26.1",
"bottleneck": "^2.19.5",
"chai": "^4.3.6",
"chai-as-promised": "^7.1.1",
"eslint": "^8.12.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.0.0",
"husky": "^7.0.4",
"lint-staged": "^13.0.3",
"mocha": "^9.2.2",
"prettier": "^2.6.1",
"pretty-quick": "^3.1.3",
"ts-node": "^10.7.0",
"typescript": "^4.6.3"
},
"dependencies": {
"@algorithm.ts/gcd": "^2.0.14",
"@types/glob": "^8.1.0",
"async-mutex": "^0.4.0",
"chalk": "^4.1.2",
"commander": "^9.1.0",
"endent": "^2.1.0",
"eslint-plugin-unicorn": "^45.0.2",
"ethers": "^5.6.2",
"execa": "^5.1.1",
"glob": "^8.1.0",
"keccak": "^3.0.2",
"peggy": "^1.2.0",
"prompts": "^2.4.2",
"solc-typed-ast": "^11.0.2",
"ts-pegjs": "^1.2.2",
"web3": "^1.7.3"
}
}