forked from 0xDevVoyager/jit-gaming
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
64 lines (64 loc) · 4.76 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
63
64
{
"version": "1.0.0",
"main": "index.js",
"scripts": {
"fcontract:init": "forge init --vscode --no-commit contracts",
"fcontract:install": "forge install",
"fcontract:build": "forge build --names --sizes --build-info --root ./contracts",
"fcontract:build2": "solc -o ./contracts/build/contract/ --via-ir --abi --storage-layout --bin ./contracts/src/Counter.sol --overwrite",
"fcontract:deploy": "node scripts/contract-deploy.cjs --abi ./contracts/build/contract/Counter.abi --bytecode ./contracts/build/contract/Counter.bin",
"Counter:getNumber:call": "cast call --rpc-url http://47.254.2.74:8545 $(grep CONTRACT .env | cut -d '=' -f2) \"getNumber()\"",
"Counter:increment": "node scripts/contract-send.cjs --method increment --abi ./contracts/build/contract/Counter.abi --contract $(grep CONTRACT .env | cut -d '=' -f2) --private-key $(grep ACCOUNT_1 .env | cut -d '=' -f2)",
"Counter:getBoard:call": "cast call --rpc-url http://47.254.2.74:8545 $(grep CONTRACT .env | cut -d '=' -f2) \"getBoard()\" --private-key $(grep ACCOUNT_1_SK .env | cut -d '=' -f2)",
"Counter:getMyPosition:call": "cast call --rpc-url http://47.254.2.74:8545 $(grep CONTRACT .env | cut -d '=' -f2) \"getMyPosition()\" --private-key $(grep ACCOUNT_1_SK .env | cut -d '=' -f2)",
"Counter:moveUp": "node scripts/contract-send.cjs --method move --args '[2]' --abi ./contracts/build/contract/Counter.abi --contract $(grep CONTRACT .env | cut -d '=' -f2) --pkfile $(grep ACCOUNT_1 .env | cut -d '=' -f2)",
"Counter:moveUp:call": "cast call --rpc-url http://47.254.2.74:8545 $(grep CONTRACT .env | cut -d '=' -f2) \"move(uint8)\" 2 --private-key $(grep ACCOUNT_1_SK .env | cut -d '=' -f2)",
"Counter:moveDown": "node scripts/contract-send.cjs --method move --args '[0]' --abi ./contracts/build/contract/Counter.abi --contract $(grep CONTRACT .env | cut -d '=' -f2) --pkfile $(grep ACCOUNT_1 .env | cut -d '=' -f2)",
"Counter:moveLeft": "node scripts/contract-send.cjs --method move --args '[1]' --abi ./contracts/build/contract/Counter.abi --contract $(grep CONTRACT .env | cut -d '=' -f2) --pkfile $(grep ACCOUNT_1 .env | cut -d '=' -f2)",
"Counter:moveRight": "node scripts/contract-send.cjs --method move --args '[3]' --abi ./contracts/build/contract/Counter.abi --contract $(grep CONTRACT .env | cut -d '=' -f2) --pkfile $(grep ACCOUNT_1 .env | cut -d '=' -f2)",
"Counter:2:moveUp": "node scripts/contract-send.cjs --method move --args '[2]' --abi ./contracts/build/contract/Counter.abi --contract $(grep CONTRACT .env | cut -d '=' -f2) --pkfile $(grep ACCOUNT_2 .env | cut -d '=' -f2)",
"Counter:2:moveDown": "node scripts/contract-send.cjs --method move --args '[0]' --abi ./contracts/build/contract/Counter.abi --contract $(grep CONTRACT .env | cut -d '=' -f2) --pkfile $(grep ACCOUNT_2 .env | cut -d '=' -f2)",
"Counter:2:moveLeft": "node scripts/contract-send.cjs --method move --args '[1]' --abi ./contracts/build/contract/Counter.abi --contract $(grep CONTRACT .env | cut -d '=' -f2) --pkfile $(grep ACCOUNT_2 .env | cut -d '=' -f2)",
"Counter:2:moveRight": "node scripts/contract-send.cjs --method move --args '[3]' --abi ./contracts/build/contract/Counter.abi --contract $(grep CONTRACT .env | cut -d '=' -f2) --pkfile $(grep ACCOUNT_2 .env | cut -d '=' -f2)",
"Counter:display": "node scripts/display.cjs",
"account:create": "node scripts/create-account.cjs",
"contract:send": "node scripts/contract-send.cjs",
"contract:call": "node scripts/contract-call.cjs",
"aspect:deploy": "npm run aspect:build && node scripts/aspect-deploy.cjs",
"aspect:build": "npm run asbuild:debug && npm run asbuild:release",
"aspect:gen": "aspect-tool generate -i ./build/contract -o ./assembly/aspect",
"asbuild:debug": "asc assembly/index.ts --target debug",
"asbuild:release": "asc assembly/index.ts --target release",
"contract:bind": "node scripts/bind.cjs",
"contract:deploy": "node scripts/contract-deploy.cjs",
"contract:build": "solc -o ./build/contract/ --via-ir --abi --storage-layout --bin ./contracts/*.sol --overwrite",
"build": "npm run contract:build && npm run aspect:gen && npm run aspect:build",
"test": "node tests"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"@artela/aspect-libs": "^0.0.26",
"@artela/web3": "^1.9.18",
"@artela/web3-atl": "^1.9.18",
"@artela/web3-eth": "^1.9.18",
"@artela/web3-utils": "^1.9.8",
"@assemblyscript/loader": "^0.27.5",
"as-proto": "^1.3.0",
"ethereumjs-tx": "^2.1.2"
},
"devDependencies": {
"@artela/aspect-tool": "^0.0.47",
"as-proto-gen": "^1.3.0",
"assemblyscript": "^0.27.5",
"yargs": "^17.7.2"
},
"type": "module",
"exports": {
".": {
"import": "./build/release.js",
"types": "./build/release.d.ts"
}
}
}