-
Notifications
You must be signed in to change notification settings - Fork 98
Expand file tree
/
Copy pathpackage.json
More file actions
150 lines (150 loc) · 6.69 KB
/
package.json
File metadata and controls
150 lines (150 loc) · 6.69 KB
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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
{
"name": "lifi-contracts",
"version": "0.1.0",
"description": "LI.FI is a cross-chain bridge aggregation protocol",
"engines": {
"node": ">= 12.18.0"
},
"type": "module",
"repository": "github:lifinance/contracts",
"author": "LI.FI",
"license": "MIT",
"keywords": [
"ethereum",
"smart-contracts",
"template",
"cross-chain",
"solidity"
],
"devDependencies": {
"@mayanfinance/swap-sdk": "^8.5.0",
"@solana/spl-token": "^0.4.9",
"@solana/web3.js": "^1.95.4",
"@typechain/ethers-v5": "^10.2.0",
"@types/bun": "^1.2.18",
"@types/minimatch": "^6.0.0",
"@types/node": "^17.0.23",
"@types/pino": "^7.0.5",
"@typescript-eslint/eslint-plugin": "^5.16.0",
"@typescript-eslint/parser": "^7.10.0",
"cross-env": "^7.0.2",
"dotenv": "^16.0.0",
"eslint": "^8.11.0",
"eslint-config-prettier": "^8.5.0",
"eslint-import-resolver-typescript": "^4.4.2",
"eslint-plugin-import": "^2.32.0",
"ethers": "^5.7.0",
"ethers6": "npm:ethers@^6.12.1",
"fs-extra": "^10.0.1",
"husky": "^8.0.1",
"lint-staged": "^13.2.3",
"node-gyp": "^10.2.0",
"patch-package": "^6.4.7",
"plop": "^3.1.2",
"postinstall-postinstall": "^2.1.0",
"prettier": "^2.6.0",
"prettier-plugin-solidity": "^1.0.0-beta.19",
"solhint": "^5.0.5",
"solhint-plugin-prettier": "^0.0.5",
"solidity-coverage": "^0.8.14",
"ts-generator": "^0.1.1",
"tsc-files": "^1.1.4",
"typechain": "^8.0.0",
"typescript": "^5.4.5",
"zksync-web3": "^0.14.3"
},
"overrides": {
"web3": "4.16.0"
},
"scripts": {
"abi:generate": "forge clean && forge build --skip script --skip test --skip Base --skip Test --skip '*.t.sol' && bun tasks/generateDiamondABI.ts",
"abi:generate:incremental": "bun tasks/generateDiamondABI.ts",
"build:typechain-and-abi": "bun typechain:incremental && bun abi:generate:incremental",
"abi:removeDuplicateEvents": "bunx tsx ./script/removeDuplicateEventsFromABI.ts",
"add-network-rpc": "bunx tsx ./script/mongoDb/add-network-rpc.ts",
"add-safe-owners-and-threshold": "bunx tsx ./script/deploy/safe/add-safe-owners-and-threshold.ts",
"codegen": "plop",
"compile": "forge build",
"confirm-safe-tx": "bun build:typechain-and-abi && bunx tsx ./script/deploy/safe/confirm-safe-tx.ts",
"deploy-safe": "bunx tsx ./script/deploy/safe/deploy-safe.ts",
"coverage": "rm -rf coverage && rm -f lcov-filtered.info && rm -f lcov.info && forge coverage --report lcov --evm-version 'cancun' --ir-minimum && bun script/utils/filter_lcov.ts lcov.info lcov-filtered.info 'test/' 'script/' && genhtml lcov-filtered.info --ignore-errors inconsistent,corrupt --branch-coverage --output-dir coverage && open coverage/index.html",
"detect-evm-version": "bunx tsx ./script/deploy/detect-evm-version.ts",
"execute": "node ./_scripts.js run",
"execute-timelock": "bun typechain && bunx tsx ./script/deploy/safe/execute-pending-timelock-tx.ts",
"fetch-rpcs": "bunx tsx ./script/mongoDb/fetch-rpcs.ts",
"flatten": "forge flatten --output",
"format": "prettier --check \"**/*.{ts,js,sol}\"",
"format:fix": "prettier --write \"**/*.{ts,js,sol}\"",
"gas": "forge snapshot --match-path 'test/solidity/Gas/**/*' -vvv",
"healthcheck": "bunx tsx ./script/deploy/healthCheck.ts",
"lint:js": "eslint \"**/*.{js,ts,tsx}\"",
"lint:js:fix": "eslint \"**/*.{js,ts,tsx}\" --fix",
"lint:sol": "solhint \"src/**/*.sol\"",
"lint:sol:fix": "solhint \"src/**/*.sol\" --fix",
"lint:fix": "bun lint:js:fix && bun lint:sol:fix",
"lint": "bun lint:js && bun lint:sol",
"mongo-logs:sync": "bun script/deploy/update-deployment-logs.ts sync",
"mongo-logs:add": "bun script/deploy/update-deployment-logs.ts add",
"mongo-logs:update": "bun script/deploy/update-deployment-logs.ts update",
"mongo-logs:query": "bun script/deploy/query-deployment-logs.ts",
"mongo-logs:latest": "bun script/deploy/query-deployment-logs.ts latest",
"mongo-logs:list": "bun script/deploy/query-deployment-logs.ts list --format table",
"mongo-logs:find": "bun script/deploy/query-deployment-logs.ts find",
"mongo-logs:exists": "bun script/deploy/query-deployment-logs.ts exists",
"mongo-logs:get": "bun script/deploy/query-deployment-logs.ts get",
"okr:contract-coverage-above-90": "bun run script/utils/analyzeCoverage.ts",
"preinstall": "bash preinstall.sh",
"prepare": "bun prepare:husky",
"prepare:husky": "husky install",
"propose-safe-tx": "bunx tsx ./script/deploy/safe/propose-to-safe.ts",
"postinstall": "patch-package && node script/troncast/postinstall-tronweb-fix.mjs",
"remove-from-diamond": "bun script/tasks/cleanUpProdDiamond.ts",
"test": "forge test --evm-version 'cancun'",
"test:fix": "npm run lint:fix; npm run format:fix; npm run test",
"test:ts": "bun script/runTypescriptTests.ts",
"troncast": "bun run script/troncast/index.ts",
"typechain": "forge clean && rm -rf typechain/* && forge build src && bun abi:removeDuplicateEvents && typechain --target ethers-v5 'out/!(*.t).sol/*.json' --out-dir typechain",
"typechain:incremental": "forge build src && bun abi:removeDuplicateEvents && typechain --target ethers-v5 'out/!(*.t).sol/*.json' --out-dir typechain",
"unpause-all-diamonds": "bunx tsx ./script/tasks/unpauseAllDiamonds.ts",
"balances": "bunx tsx ./script/balances.ts",
"update-whitelist-periphery": "bunx tsx ./script/tasks/updateWhitelistPeriphery.ts"
},
"dependencies": {
"@arbitrum/sdk": "^3.0.0",
"@cowprotocol/cow-sdk": "^5.10.3",
"@ethersproject/abi": "^5.8.0",
"@hop-protocol/sdk": "0.0.1-beta.310",
"@layerzerolabs/lz-v2-utilities": "^2.3.21",
"@ledgerhq/hw-app-eth": "^6.43.0",
"@ledgerhq/hw-transport-node-hid": "^6.29.5",
"@octokit/rest": "^21.0.1",
"@safe-global/safe-deployments": "^1.37.32",
"@uma/sdk": "^0.22.1",
"@uniswap/permit2-sdk": "^1.3.0",
"@uniswap/sdk": "^3.0.3",
"axios": "^1.9.0",
"chalk": "5.6.2",
"citty": "^0.1.6",
"consola": "^3.2.3",
"defender-relay-client": "^1.26.0",
"enquirer": "^2.4.1",
"light-spinner": "^1.0.4",
"merkletreejs": "^0.3.11",
"mongodb": "^6.13.0",
"notify-send": "^0.1.2",
"pino": "^7.9.2",
"tronweb": "^6.0.3",
"viem": "^2.22.16"
},
"lint-staged": {
"*.{ts,js}": [
"prettier --write",
"eslint --fix",
"bunx tsc-files --noEmit"
],
"*.sol": [
"prettier --write",
"bash -c 'if [ \"$#\" -gt 0 ]; then output=$(bunx solhint --noPrompt \"$@\" 2>&1); ret=$?; if echo \"$output\" | grep -q \"No files to lint!\"; then exit 0; else echo \"$output\"; exit $ret; fi; else exit 0; fi # If no lintable files, exit silently to avoid commit errors' _"
]
}
}