-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
62 lines (62 loc) · 2.62 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
{
"name": "solana-anchor-demo3",
"version": "0.0.1",
"description": "solana anchor demo3",
"author": "",
"license": "MIT",
"scripts": {
"clean": "rm -rf ~/.cache/solana/*",
"clear": "rm -rf .anchor target node_modules test-ledger",
"clean2": "cargo clean --manifest-path=./src/program-rust/Cargo.toml && rm -rf ./dist",
"solnoder": "solana-test-validator --reset --log",
"soltest": "anchor test --skip-local-validator",
"deploy1": "anchor deploy -p token_contract",
"test1": "anchor run test1",
"test": "anchor test",
"testsolidity": "anchor run test-with-build",
"test_skiplint": "anchor test --skip-lint",
"copyidl": "cp ./target/idl/abc.json ./app/src/idl.json",
"soteria": "cd ./programs/abc && rm -rf .coderrect && soteria .",
"hash": "openssl sha256 ./target/deploy/abc.so",
"listbackup": "ls archives/a*",
"log": "less ./.anchor/test-ledger/validator*.log",
"log2": "less +G ./.anchor/test-ledger/validator*.log",
"network": "solana config get",
"sollocal": "solana config set --url localhost",
"soldev": "solana config set --url devnet",
"soldev2": "solana config set --url https://api.devnet.solana.com && export SOLANA_METRICS_CONFIG='host=https://metrics.solana.com:8086,db=devnet,u=scratch_writer,p=topsecret'",
"addr": "solana address",
"balance": "solana balance",
"airdrop": "solana airdrop 10",
"sollog": "solana logs",
"build": "anchor build",
"build2": "anchor idl build",
"showid": "anchor keys list",
"pgid": "solana address -k target/deploy/abc-keypair.json",
"deploylocal": "anchor deploy",
"deploydev": "solana config set --url https://api.devnet.solana.com && anchor deploy --provider.cluster devnet",
"deploydevmax2mb": "solana config set --url https://api.devnet.solana.com && anchor deploy --provider.cluster devnet --max-len 2000000",
"deploymain": "solana config set --url https://api.mainnet-beta.solana.com && anchor deploy --provider.cluster mainnet",
"build:program-rust": "cargo build-bpf --manifest-path=./src/program-rust/Cargo.toml --bpf-out-dir=dist/program",
"lint:fix": "prettier */*.js \"*/**/*{.js,.ts}\" -w",
"lint": "prettier */*.js \"*/**/*{.js,.ts}\" --check"
},
"dependencies": {
"@coral-xyz/anchor": "^0.30.1",
"@solana/spl-token": "^0.4.8",
"@solana/web3.js": "^1.95.2"
},
"devDependencies": {
"@types/bn.js": "^5.1.5",
"@types/chai": "^4.3.16",
"@types/mocha": "^10.0.7",
"chai": "^5.1.1",
"mocha": "^10.7.0",
"prettier": "^3.3.3",
"ts-mocha": "^10.0.0",
"typescript": "^5.5.4"
},
"engines": {
"node": ">=18.17.0"
}
}