-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpackage.json
75 lines (75 loc) · 4.24 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
65
66
67
68
69
70
71
72
73
74
75
{
"name": "contracts",
"license": "MIT",
"version": "0.2.0",
"private": true,
"scripts": {
"----- DEV -----": "---------------------------",
"prepare": "yarn build && chmod u+x git-install.sh && chmod u+x exports.sh",
"git:install": "bash git-install.sh",
"lint": "yarn prettier && yarn solhint",
"prettier": "prettier --write 'src/**/*.sol'",
"solhint": "solhint --config ./.solhint.json 'src/**/*.sol' --fix",
"test": "forge test",
"----- BUILD/DEPLOY -----": "---------------------------",
"start": "yarn start:anvil",
"start:hardhat": "run-p -l hardhat:node deploy:hardhat",
"start:anvil": "run-p -l anvil:node deploy:anvil",
"build:force": "yarn codegen && rimraf out && forge build --force && yarn dist && yarn types",
"build": "yarn codegen && forge build && yarn dist && yarn types && mud system-types && cp types/SystemAbis.mts types/SystemAbis.mjs",
"dist": "rimraf abi && mkdir abi && bash exports.sh && rimraf abi/*.metadata.json",
"deploy:anvil": "wait-on tcp:8545 && mud deploy --deployerPrivateKey",
"deploy:hardhat": "wait-on tcp:8545 && yarn hardhat:resetfee && mud deploy --deployerPrivateKey && yarn hardhat:resetfee && yarn types",
"deploy:degen": "mud deploy -i --deployerPrivateKey",
"deploy:prod": "mud deploy --deployerPrivateKey --chainSpec https://mud-config.pages.dev/chainSpec.json",
"deploy:optimism": "mud deploy --deployerPrivateKey --chainSpec optimism-testnet.json",
"deploy:arbitrum:goerli": "mud deploy --deployerPrivateKey --chainSpec arbitrum-testnet.json",
"upgrade:anvil": "wait-on tcp:8545 && mud deploy --deployerPrivateKey --upgradeSystems",
"upgrade:hardhat": "wait-on tcp:8545 && yarn hardhat:resetfee && mud deploy --deployerPrivateKey --upgradeSystems && yarn hardhat:resetfee && yarn types",
"upgrade:degen": "mud deploy -i --deployerPrivateKey --upgradeSystems",
"types": "rimraf types && yarn removebytecode && typechain --target=ethers-v5 abi/*.json && mud system-types",
"anvil:node": "anvil -b 1 --block-base-fee-per-gas 0",
"hardhat:node": "hardhat node",
"hardhat:resetfee": "curl -X POST localhost:8545 -H \"Content-Type: application/json\" --data '{\"jsonrpc\": \"2.0\", \"method\": \"hardhat_setNextBlockBaseFeePerGas\", \"params\": [\"0x0\"], \"id\": 1 }'",
"forge:deploy": "yarn build && forge script ./src/test/utils/BroadcastDeploy.sol --target-contract Deploy -vvv",
"codegen": "yarn ejs src/libraries/LibDeploy.ejs -f deploy.json -o src/libraries/LibDeploy.sol",
"removebytecode": "for i in abi/*; do jq 'del(.bytecode) | del(.deployedBytecode) | del(.ast)' \"$i\" > \"$i\".tmp && mv \"$i\".tmp \"$i\"; done"
},
"devDependencies": {
"@ethersproject/abi": "^5.7.0",
"@ethersproject/bytes": "^5.7.0",
"@ethersproject/providers": "^5.7.0",
"@latticexyz/cli": "^1.28.0",
"@latticexyz/solecs": "^1.28.0",
"@latticexyz/std-contracts": "^1.28.0",
"@manifoldxyz/royalty-registry-solidity": "https://github.com/manifoldxyz/royalty-registry-solidity.git#c5ad6269d37e180fbf449a1f5ba2d2ff6c441efc",
"@opengsn/contracts": "^2.2.6",
"@typechain/ethers-v5": "^9.0.0",
"@types/glob": "^7.2.0",
"@types/node": "^17.0.21",
"base64-sol": "https://github.com/Brechtpd/base64.git#4d85607b18d981acff392d2e99ba654305552a97",
"copyfiles": "^2.4.1",
"ds-test": "https://github.com/dapphub/ds-test.git#c7a36fb236f298e04edf28e2fee385b80f53945f",
"ejs": "^3.1.8",
"ethers": "^5.7.1",
"forge-std": "https://github.com/foundry-rs/forge-std.git#4d36e3f7e2168c8155c641eb0f80e85cd584bd1c",
"glob": "^8.0.3",
"hardhat": "https://gitpkg.now.sh/latticexyz/hardhat/packages/hardhat-core?build",
"memmove": "https://github.com/brockelmore/memmove.git#d577ecd1bc43656f4032edf4daa9797f756a8ad2",
"npm-run-all": "^4.1.5",
"openzeppelin-solidity": "https://github.com/OpenZeppelin/openzeppelin-contracts.git#57725120581e27ec469e1c7e497a4008aafff818",
"prettier": "^2.6.2",
"prettier-plugin-solidity": "^1.0.0-beta.19",
"rimraf": "^3.0.2",
"run-pty": "^3.0.0",
"solhint": "^3.3.7",
"solmate": "^6.6.1",
"ts-node": "^10.7.0",
"typechain": "^8.1.0",
"typescript": "^4.6.2",
"wait-on": "^6.0.1"
},
"dependencies": {
"@openzeppelin/contracts": "^4.8.0"
}
}