-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
70 lines (70 loc) · 2.61 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
{
"name": "metamocks",
"version": "0.9.0",
"description": "a utility to mock metamask mainly for e2e testing",
"main": "./src/index.js",
"types": "./types/index.d.ts",
"scripts": {
"contracts:compile:uniswapinterfacemulticall": "typechain --target ethers-v5 --out-dir ts-src/test-utils/abis/types/uniswap \"./node_modules/@uniswap/v3-periphery/artifacts/contracts/lens/UniswapInterfaceMulticall.sol/UniswapInterfaceMulticall.json\"",
"contracts:compile:uniswapswaprouter02": "typechain --target ethers-v5 --out-dir ts-src/test-utils/abis/types/uniswap \"./node_modules/@uniswap/swap-router-contracts/artifacts/contracts/SwapRouter02.sol/SwapRouter02.json\"",
"contracts:compile:abi": "typechain --target ethers-v5 --out-dir ts-src/test-utils/abis/types \"./ts-src/test-utils/abis/*.json\"",
"contracts:compile": "yarn contracts:compile:abi && yarn contracts:compile:uniswapswaprouter02 && yarn contracts:compile:uniswapinterfacemulticall",
"prepare": "yarn contracts:compile",
"build": "rm -rf ./src && rm -rf ./types && tsc -p ./tsconfig.json",
"format": "npm run prettier -- --write",
"format:ci": "npm run prettier -- --check",
"lint": "tslint -p tsconfig.json -c tslint.json",
"prettier": "prettier 'ts-src/**/*.ts' --ignore-path ./.prettierignore",
"test": "mocha -r ts-node/register tests/**/*.test.ts",
"coverage": "npm run build && nyc -r lcov -e .ts -x \"*.test.ts\" npm run test"
},
"files": [
"src",
"!src/test-utils",
"types",
"!types/test-utils"
],
"repository": {
"type": "git",
"url": "git+https://github.com/alimahdiyar/metamocks.git"
},
"publishConfig": {
"access": "public"
},
"keywords": [
"e2e",
"test",
"cypress",
"metamask",
"mock"
],
"author": "Ali Mahdiyar",
"license": "GPL-3.0-or-later",
"bugs": {
"url": "https://github.com/alimahdiyar/metamocks/issues"
},
"homepage": "https://github.com/alimahdiyar/metamocks#readme",
"dependencies": {
"@ethersproject/bignumber": "^5.7.0",
"@ethersproject/bytes": "^5.7.0",
"@ethersproject/experimental": "^5.7.0",
"ethereum-input-data-decoder": "^0.4.2",
"ethers": "^5.7.0"
},
"devDependencies": {
"@ethersproject/providers": "^5.7.0",
"@ethersproject/wallet": "^5.7.0",
"@typechain/ethers-v5": "^10.0.0",
"@types/chai": "^4.3.3",
"@types/mocha": "^9.1.1",
"@uniswap/swap-router-contracts": "^1.3.0",
"@uniswap/v3-periphery": "^1.4.1",
"chai": "^4.3.6",
"mocha": "^10.0.0",
"nyc": "^15.1.0",
"prettier": "^2.7.1",
"ts-node": "^10.9.1",
"typechain": "^8.0.0",
"typescript": "^4.4.2"
}
}