-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpackage.json
121 lines (121 loc) · 4.44 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
{
"name": "@leovigna/solidity-starter",
"version": "0.1.3",
"private": false,
"repository": {
"type": "git",
"url": "https://github.com/leovigna/solidity-starter.git"
},
"homepage": "https://leovigna.github.io/solidity-starter",
"copyright": "Copyright 2021 Leo Vigna",
"license": "MIT",
"scripts": {
"clean": "npm-run-all -p clean:lib clean:abi clean:types clean:factory",
"clean:lib": "rimraf lib",
"clean:abi": "rimraf src/abi/*.json src/abi/*.json",
"clean:types": "rimraf src/types/ethers src/types/truffle src/types/web3",
"clean:factory": "rimraf src/ethers src/truffle src/web3",
"test": "cross-env NODE_ENV=test NODE_OPTIONS=--max-old-space-size=4096 mocha 'lib/**/*.test.js'",
"start": "node lib/index.js",
"build": "npm-run-all truffle generate-types generate-factory copy tsc",
"truffle": "truffle compile",
"generate-types": "npm-run-all -p generate-types:truffle generate-types:web3 generate-types:ethers",
"generate-types:truffle": "typechain --target=truffle-v5 --out-dir=src/types/truffle 'src/abi/*.json'",
"generate-types:web3": "typechain --target=web3-v1 --out-dir=src/types/web3 'src/abi/*.json'",
"generate-types:ethers": "typechain --target=ethers-v5 --out-dir=src/types/ethers 'src/abi/*.json'",
"generate-factory": "ts-node src/generate.ts",
"tsc": "tsc",
"tsc:watch": "tsc -w",
"copy": "npm-run-all -p copy:solidity copy:ethers copy:truffle copy:prepublish",
"copy:solidity": "mkdir -p lib/solidity && cp -r src/solidity lib/",
"copy:ethers": "mkdir -p lib/types/ethers && cp -r src/types/ethers/*.d.ts lib/types/ethers",
"copy:truffle": "mkdir -p lib/types/truffle && cp -r src/types/truffle/*.d.ts lib/types/truffle",
"copy:web3": "mkdir -p lib/types/web3 && cp -r src/types/web3/*.d.ts lib/types/web3",
"copy:prepublish": "mkdir -p lib && cp package.json lib/ && cp README.md lib/ && cp LICENSE lib/",
"deploy": "ts-node src/deploy.ts",
"deploy:test": "cross-env NODE_ENV=test ts-node src/deploy.ts",
"lint": "eslint src",
"lint:fix": "eslint src --fix",
"lint:staged": "lint-staged",
"docs": "solidity-docgen -i src/solidity -o docs",
"prepare": "husky install && npm run build",
"prepublishOnly": "npm run test",
"ganache": "ganache-cli -b 1 --networkId 1337 --chainId 1337 -m $HD_WALLET_MNEMONIC"
},
"dependencies": {
"dotenv": "^10.0.0"
},
"peerDependencies": {
"@ethersproject/abi": "^5.4.0",
"@ethersproject/contracts": "^5.4.1",
"@ethersproject/providers": "^5.4.3",
"@truffle/contract": "^4.3.27",
"@truffle/hdwallet-provider": "^1.5.0",
"@typechain/ethers-v5": "^7.0.1",
"@typechain/hardhat": "^2.3.0",
"@typechain/truffle-v5": "^5.0.0",
"@typechain/web3-v1": "^3.0.0",
"ethers": "^5.4.4",
"truffle": "^5.4.3",
"typechain": "^5.1.2",
"web3": "^1.5.2",
"web3-core": "^1.5.1",
"web3-eth-contract": "^1.5.2",
"web3-utils": "^1.6.0"
},
"devDependencies": {
"@ethersproject/abi": "^5.4.0",
"@ethersproject/contracts": "^5.4.1",
"@ethersproject/providers": "^5.4.3",
"@truffle/contract": "^4.3.27",
"@truffle/hdwallet-provider": "^1.5.0",
"@typechain/ethers-v5": "^7.0.1",
"@typechain/hardhat": "^2.3.0",
"@typechain/truffle-v5": "^5.0.0",
"@typechain/web3-v1": "^3.0.0",
"@types/chai": "^4.2.21",
"@types/glob": "^7.2.0",
"@types/mocha": "^9.0.0",
"@types/node": "^16.4.13",
"@typescript-eslint/eslint-plugin": "^4.29.0",
"@typescript-eslint/parser": "^4.29.0",
"chai": "^4.3.4",
"cross-env": "^7.0.3",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-import": "^2.23.4",
"eslint-plugin-prettier": "^3.4.0",
"ethers": "^5.4.4",
"fast-memoize": "^2.5.2",
"ganache-cli": "^6.12.2",
"ganache-core": "^2.13.2",
"glob": "^7.2.0",
"husky": "^7.0.2",
"lint-staged": "^11.1.2",
"mocha": "^9.0.3",
"npm-run-all": "^4.1.5",
"prettier": "^2.3.2",
"rimraf": "^3.0.2",
"solidity-docgen": "^0.5.13",
"truffle": "5.4.14",
"ts-node": "^10.2.1",
"typechain": "^5.1.2",
"typedoc": "^0.21.5",
"typedoc-neo-theme": "^1.1.0",
"typescript": "^4.3.5",
"web3": "^1.5.2",
"web3-core": "^1.5.1",
"web3-eth-contract": "^1.5.2",
"web3-utils": "^1.6.0"
},
"files": [
"*",
"!test",
"!./**/*.test.*"
],
"main": "index.js",
"types": "index.d.ts",
"publishConfig": {
"directory": "lib"
}
}