-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
33 lines (33 loc) · 1.69 KB
/
Copy pathpackage.json
File metadata and controls
33 lines (33 loc) · 1.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
{
"license": "ISC",
"scripts": {
"lint:fix": "prettier */*.js \"*/**/*{.js,.ts}\" -w",
"lint": "prettier */*.js \"*/**/*{.js,.ts}\" --check",
"build": "anchor build",
"postbuild": "npm run postbuild:library && npm run postbuild:idl",
"postbuild:library": "cp target/deploy/transfer_hook.so target/deploy/coinvertible_transfer_hook_$PROGRAM_ID.so && sha256sum target/deploy/coinvertible_transfer_hook_$PROGRAM_ID.so | cut -d' ' -f1 | tr -d '\n' > target/deploy/coinvertible_transfer_hook_$PROGRAM_ID.fingerprint",
"postbuild:idl": "cp target/idl/transfer_hook.json target/idl/coinvertible_transfer_hook_$PROGRAM_ID-idl.json && sha256sum target/idl/coinvertible_transfer_hook_$PROGRAM_ID-idl.json | cut -d' ' -f1 | tr -d '\n' > target/idl/coinvertible_transfer_hook_$PROGRAM_ID-idl.fingerprint",
"build:verifiable": "anchor build --verifiable --docker-image docker.io/backpackapp/build:v0.30.1 -e \"PROGRAM_ID=$PROGRAM_ID\" -e \"https_proxy=$HTTPS_PROXY\" -e \"SSL_CERT_FILE=/workdir/ca-bundle.crt\" && npm run postbuild:library && npm run postbuild:idl",
"init-idl": "anchor idl init --filepath target/idl/transfer_hook.json",
"clean": "anchor clean",
"program-id": "anchor keys list | cut -f2 -d: | xargs",
"test": "anchor test --skip-local-validator"
},
"dependencies": {
"@coral-xyz/anchor": "^0.30.1",
"@coral-xyz/anchor-cli": "^0.30.1",
"@solana/spl-token": "^0.4.9",
"dotenv": "^16.4.5"
},
"devDependencies": {
"@types/bn.js": "^5.1.0",
"@types/chai": "^4.3.0",
"@types/mocha": "^9.0.0",
"chai": "^4.3.4",
"hpagent": "^1.2.0",
"mocha": "^9.0.3",
"prettier": "^2.6.2",
"ts-mocha": "^10.0.0",
"typescript": "^4.3.5"
}
}