-
Notifications
You must be signed in to change notification settings - Fork 7
/
package.json
27 lines (27 loc) · 1.31 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
{
"name": "usn",
"scripts": {
"prebuild": "rustup target add wasm32-unknown-unknown",
"build": "cargo build --target wasm32-unknown-unknown --profile sandbox",
"build:sandbox": "npm run build",
"build:testnet": "cargo build --target wasm32-unknown-unknown --profile testnet --features testnet",
"build:mainnet": "cargo build --target wasm32-unknown-unknown --profile mainnet --features mainnet",
"deploy": "./scripts/deploy.sh",
"upgrade": "node scripts/upgrade.js",
"upgrade:sandbox": "npm run upgrade",
"upgrade:testnet": "NEAR_ENV=testnet npm run upgrade",
"sandbox:init": "rm -rf ${SANDBOX_DIR:-/tmp/near-usn-sandbox} && near-sandbox --home ${SANDBOX_DIR:-/tmp/near-usn-sandbox} init",
"sandbox": "near-sandbox --home ${SANDBOX_DIR:-/tmp/near-usn-sandbox} run",
"sandbox:test": "rm -rf ${SANDBOX_DIR:-/tmp/near-usn-test-sandbox} && near-sandbox --home ${SANDBOX_DIR:-/tmp/near-usn-test-sandbox} init && near-sandbox --home ${SANDBOX_DIR:-/tmp/near-usn-test-sandbox} run",
"pretest": "npm run build",
"test": "mocha --require tests/sandbox-start.js --require tests/sandbox-setup.js tests"
},
"devDependencies": {
"bn": "^1.0.5",
"mocha": "^9.1.3",
"near-api-js": "^0.44.2",
"near-sandbox": "^0.0.9",
"port-used": "^2.0.8",
"tree-kill": "^1.2.2"
}
}