-
Notifications
You must be signed in to change notification settings - Fork 18
/
package.json
44 lines (44 loc) · 1.96 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
{
"license": "Apache-2.0",
"scripts": {
"prettify": "prettier --check './ts/sdk/src/**/*.ts' './tests/**.ts'",
"prettify:fix": "prettier --write './ts/sdk/src/**/*.ts' './tests/**.ts'",
"lint": "eslint . --ext ts --quiet",
"lint:fix": "eslint . --ext ts --fix",
"prepare": "husky install",
"update-types": "cp target/types/drift_vaults.ts ts/sdk/src/types/drift_vaults.ts && prettier --write ts/sdk/src/types/drift_vaults.ts",
"update-idl": "cp target/idl/drift_vaults.json ts/sdk/src/idl/drift_vaults.json",
"update-pyth": "cp deps/pyth.json target/idl/pyth.json",
"update-drift": "cp deps/drift.json target/idl/drift.json",
"anchor-tests": "yarn update-types && yarn update-idl && yarn update-drift && yarn update-pyth && yarn update-drift && yarn update-pyth && yarn run ts-mocha -p ./tsconfig.json -t 1000000 --exit tests/**/*.ts",
"anchor-tests:vaults": "yarn anchor-tests -g TestDriftVaults",
"anchor-tests:protocol": "yarn anchor-tests -g TestProtocolVaults",
"anchor-tests:tokenize": "yarn anchor-tests -g TestTokenizedDriftVaults",
"anchor-tests:if-stake": "yarn anchor-tests -g TestInsuranceFundStake"
},
"devDependencies": {
"@coral-xyz/anchor": "0.28.0",
"@drift-labs/sdk": "2.104.0-beta.35",
"@solana/web3.js": "1.73.2",
"@types/bn.js": "^5.1.0",
"@types/chai": "^4.3.0",
"@types/mocha": "^9.0.0",
"@typescript-eslint/eslint-plugin": "^4.28.0",
"@typescript-eslint/parser": "^4.28.0",
"chai": "^4.3.4",
"eslint": "^7.29.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^3.4.0",
"husky": "^8.0.0",
"mocha": "^9.0.3",
"prettier": "^2.6.2",
"ts-mocha": "^10.0.0",
"typescript": "^5"
},
"engines": {
"node": ">=20.18.0"
},
"dependencies": {
"@metaplex-foundation/js": "^0.20.1"
}
}