Skip to content

Commit

Permalink
add fork:execute
Browse files Browse the repository at this point in the history
  • Loading branch information
wighawag committed Apr 9, 2024
1 parent 02384f3 commit 9e8e749
Show file tree
Hide file tree
Showing 7 changed files with 114 additions and 112 deletions.
2 changes: 1 addition & 1 deletion common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"viem": "^2.7.12"
},
"devDependencies": {
"ldenv": "^0.3.9",
"ldenv": "^0.3.10",
"prettier": "^3.2.5",
"tsup": "^8.0.2",
"typescript": "^5.3.3"
Expand Down
4 changes: 3 additions & 1 deletion contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"hardhat": "^2.20.1",
"hardhat-preprocessor": "^0.1.5",
"hardhat-rocketh": "^4.0.8",
"ldenv": "^0.3.9",
"ldenv": "^0.3.10",
"prettier": "^3.2.5",
"prettier-plugin-solidity": "^1.3.1",
"prompts": "^2.4.2",
Expand Down Expand Up @@ -51,7 +51,9 @@
"compile": "hardhat compile",
"compile:watch": "as-soon -w src pnpm compile",
"execute": "ROCKETH_SKIP_ESBUILD=true ldenv -n HARDHAT_NETWORK -m localhost tsx @@",
"fork:execute": "ROCKETH_SKIP_ESBUILD=true ldenv -m localhost tsx @=HARDHAT_FORK=@@MODE @@",
"deploy": "pnpm compile && ldenv hardhat --network @@MODE deploy @@",
"fork:deploy": "pnpm compile && ldenv hardhat @=HARDHAT_FORK=@@MODE --network @@MODE deploy @@",
"deploy:dev": "ldenv hardhat --network @@MODE deploy --skip-prompts @@",
"deploy:watch": "as-soon -w generated -w deploy pnpm run deploy:dev",
"verify": "ldenv rocketh-verify -n @@MODE @@",
Expand Down
2 changes: 1 addition & 1 deletion helper-services/fuzd/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "fuzd-service",
"devDependencies": {
"fuzd-cf-worker": "^0.0.30",
"ldenv": "^0.3.9",
"ldenv": "^0.3.10",
"node-cron": "^3.0.3",
"set-defaults": "^0.0.2",
"toml": "^3.0.0",
Expand Down
2 changes: 1 addition & 1 deletion helper-services/missiv/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "missiv-service",
"devDependencies": {
"ldenv": "^0.3.9",
"ldenv": "^0.3.10",
"missiv-server": "^0.0.11",
"set-defaults": "^0.0.2",
"wait-on": "^7.2.0",
Expand Down
2 changes: 1 addition & 1 deletion indexer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"devDependencies": {
"ethereum-indexer-cli": "^0.6.30",
"ethereum-indexer-server": "^0.6.32",
"ldenv": "^0.3.9",
"ldenv": "^0.3.10",
"prettier": "^3.2.5",
"tsup": "^8.0.2",
"typescript": "^5.3.3",
Expand Down
130 changes: 65 additions & 65 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"name": "stratagems",
"version": "0.0.1",
"description": "Template to develop fully decentralised app and games",
"private": true,
"type": "module",
"devDependencies": {
"ask-env": "^0.0.1",
"ldenv": "^0.3.9",
"prettier": "^3.2.5",
"syncpack": "^12.3.0",
"vitepress": "1.0.0-rc.44",
"sharp": "^0.33.2"
"name": "stratagems",
"version": "0.0.1",
"description": "Template to develop fully decentralised app and games",
"private": true,
"type": "module",
"devDependencies": {
"ask-env": "^0.0.1",
"ldenv": "^0.3.10",
"prettier": "^3.2.5",
"sharp": "^0.33.2",
"syncpack": "^12.3.0",
"vitepress": "1.0.0-rc.44"
},
"pnpm": {
"supportedArchitectures": {
Expand All @@ -22,57 +22,57 @@
]
}
},
"scripts": {
"preinstall": "npx only-allow pnpm",
"---------------------- INSTALL ----------------------": "",
"sync-deps": "syncpack fix-mismatches && pnpm -r format:fix",
"update-deps": "pnpm update -r -i --latest && pnpm sync-deps",
"---------------------- FORMAT ----------------------": "",
"format": "prettier --write . && pnpm -r format",
"format:check": "prettier --check . && pnpm -r format:check",
"---------------------- INTERNAL ----------------------": "",
"_contracts:deploy:watch": "pnpm --filter ./contracts deploy:watch $MODE ~~ pnpm run export -n $MODE --json ../helper-services/fuzd/contracts.json --ts ../indexer/src/contracts.ts,../web/src/data/contracts.ts ~~",
"_contracts:deploy": "pnpm run --filter ./contracts deploy $MODE ~~ pnpm run export -n $MODE --json ../helper-services/fuzd/contracts.json --ts ../indexer/src/contracts.ts,../web/src/data/contracts.ts ~~",
"---------------------- UTILITIES ----------------------": "",
"local_node": "ldenv pnpm --filter ./contracts local_node",
"contracts:compile": "pnpm --filter ./contracts compile",
"contracts:compile:watch": "pnpm --filter ./contracts compile:watch",
"web:dev": "pnpm --filter ./web dev",
"indexer:dev": "pnpm --filter ./indexer dev",
"common:dev": "pnpm --filter ./common dev",
"contracts:export": "ldenv -d localhost pnpm run --filter ./contracts export -n @@MODE --json ../helper-services/fuzd/contracts.json --ts ../indexer/src/contracts.ts,../web/src/data/contracts.ts @@",
"contracts:test": "pnpm --filter ./contracts test",
"contracts:execute": "pnpm --filter ./contracts execute",
"contracts:docs": "ldenv -d localhost pnpm run --filter ./contracts docgen @@MODE -o ../docs/contracts",
"indexer:build": "ldenv pnpm run contracts:export @@MODE ~~ pnpm run --filter ./common build ~~ pnpm run --filter ./indexer build ~~ @@",
"indexer:index": "ldenv pnpm run indexer:build @@MODE ~~ pnpm --filter ./indexer index-to-file -n @@ETH_NODE_URI_:MODE,ETH_NODE_URI@:''@: -d src/contracts.ts -f ../web/static/indexed-states/@@MODE ~~ @@",
"fuzd:dev": "pnpm --filter ./helper-services/fuzd dev",
"sync:dev": "pnpm --filter ./helper-services/secp256k1-db dev",
"missiv:dev": "pnpm --filter ./helper-services/missiv dev",
"---------------------- DOCS ----------------------": "",
"docs:dev": "pnpm contracts:docs && vitepress dev docs",
"docs:build": "pnpm contracts:docs && vitepress build docs",
"docs:preview": "vitepress preview docs",
"---------------------- WEB USING EXISTING DEPLOYMENT ----------------------": "",
"zellij-attach": "zellij --layout dev/zellij-attach.kdl a ${npm_package_name}-attach-$MODE || zellij --layout dev/zellij-attach.kdl -s ${npm_package_name}-attach-$MODE",
"attach": "ldenv -d localhost pnpm run indexer:index @@MODE ~~ pnpm run zellij-attach ~~ @@",
"---------------------- FULL AGAINST AN EXISTING NETWORK WITH LOCAL SERVICES ----------------------": "",
"zellij-remote-chain": "rm helper-services/fuzd/contracts.json && zellij --layout dev/zellij-remote-chain.kdl a ${npm_package_name}-remote-chain-$MODE || zellij --layout dev/zellij-remote-chain.kdl -s ${npm_package_name}-remote-chain-$MODE",
"remote-chain": "ldenv pnpm run zellij-remote-chain @@",
"---------------------- FULL AGAINST AN EXISTING NETWORK + SERVICES ----------------------": "",
"zellij-remote": "zellij --layout dev/zellij-remote.kdl a ${npm_package_name}-remote-$MODE || zellij --layout dev/zellij-remote.kdl -s ${npm_package_name}-remote-$MODE",
"remote": "ldenv pnpm run zellij-remote @@",
"---------------------- DEPLOY ----------------------": "",
"build": "ldenv -d sepolia pnpm run indexer:index @@MODE ~~ pnpm run --filter ./web build ~~ @@",
"serve": "pnpm --filter ./web serve",
"contracts:deploy": "ldenv -d localhost pnpm _contracts:deploy @@",
"contracts:deploy:prepare": "ldenv -d localhost ask-env -f contracts/.env.local ETH_NODE_URI_@@MODE MNEMONIC_@@MODE ETHERSCAN_API_KEY:?:ETHERSCAN_API_KEY @@",
"contracts:deploy:watch": "ldenv -d localhost pnpm _contracts:deploy:watch @@",
"contracts:verify": "pnpm --filter ./contracts verify",
"---------------------- RUN FULL LOCAL SETUP ----------------------": "",
"start:wezterm": "wezterm --config-file dev/wezterm.lua start $PWD",
"stop": "zellij kill-session $npm_package_name",
"start": "rm -Rf helper-services/fuzd/.wrangler && rm helper-services/fuzd/contracts.json && zellij --layout dev/zellij.kdl a $npm_package_name || zellij --layout dev/zellij.kdl -s $npm_package_name",
"clean:start": "rm -Rf contracts/deployments/localhost && pnpm start"
}
"scripts": {
"preinstall": "npx only-allow pnpm",
"---------------------- INSTALL ----------------------": "",
"sync-deps": "syncpack fix-mismatches && pnpm -r format:fix",
"update-deps": "pnpm update -r -i --latest && pnpm sync-deps",
"---------------------- FORMAT ----------------------": "",
"format": "prettier --write . && pnpm -r format",
"format:check": "prettier --check . && pnpm -r format:check",
"---------------------- INTERNAL ----------------------": "",
"_contracts:deploy:watch": "pnpm --filter ./contracts deploy:watch $MODE ~~ pnpm run export -n $MODE --json ../helper-services/fuzd/contracts.json --ts ../indexer/src/contracts.ts,../web/src/data/contracts.ts ~~",
"_contracts:deploy": "pnpm run --filter ./contracts deploy $MODE ~~ pnpm run export -n $MODE --json ../helper-services/fuzd/contracts.json --ts ../indexer/src/contracts.ts,../web/src/data/contracts.ts ~~",
"---------------------- UTILITIES ----------------------": "",
"local_node": "ldenv pnpm --filter ./contracts local_node",
"contracts:compile": "pnpm --filter ./contracts compile",
"contracts:compile:watch": "pnpm --filter ./contracts compile:watch",
"web:dev": "pnpm --filter ./web dev",
"indexer:dev": "pnpm --filter ./indexer dev",
"common:dev": "pnpm --filter ./common dev",
"contracts:export": "ldenv -d localhost pnpm run --filter ./contracts export -n @@MODE --json ../helper-services/fuzd/contracts.json --ts ../indexer/src/contracts.ts,../web/src/data/contracts.ts @@",
"contracts:test": "pnpm --filter ./contracts test",
"contracts:execute": "pnpm --filter ./contracts execute",
"contracts:docs": "ldenv -d localhost pnpm run --filter ./contracts docgen @@MODE -o ../docs/contracts",
"indexer:build": "ldenv pnpm run contracts:export @@MODE ~~ pnpm run --filter ./common build ~~ pnpm run --filter ./indexer build ~~ @@",
"indexer:index": "ldenv pnpm run indexer:build @@MODE ~~ pnpm --filter ./indexer index-to-file -n @@ETH_NODE_URI_:MODE,ETH_NODE_URI@:''@: -d src/contracts.ts -f ../web/static/indexed-states/@@MODE ~~ @@",
"fuzd:dev": "pnpm --filter ./helper-services/fuzd dev",
"sync:dev": "pnpm --filter ./helper-services/secp256k1-db dev",
"missiv:dev": "pnpm --filter ./helper-services/missiv dev",
"---------------------- DOCS ----------------------": "",
"docs:dev": "pnpm contracts:docs && vitepress dev docs",
"docs:build": "pnpm contracts:docs && vitepress build docs",
"docs:preview": "vitepress preview docs",
"---------------------- WEB USING EXISTING DEPLOYMENT ----------------------": "",
"zellij-attach": "zellij --layout dev/zellij-attach.kdl a ${npm_package_name}-attach-$MODE || zellij --layout dev/zellij-attach.kdl -s ${npm_package_name}-attach-$MODE",
"attach": "ldenv -d localhost pnpm run indexer:index @@MODE ~~ pnpm run zellij-attach ~~ @@",
"---------------------- FULL AGAINST AN EXISTING NETWORK WITH LOCAL SERVICES ----------------------": "",
"zellij-remote-chain": "rm helper-services/fuzd/contracts.json && zellij --layout dev/zellij-remote-chain.kdl a ${npm_package_name}-remote-chain-$MODE || zellij --layout dev/zellij-remote-chain.kdl -s ${npm_package_name}-remote-chain-$MODE",
"remote-chain": "ldenv pnpm run zellij-remote-chain @@",
"---------------------- FULL AGAINST AN EXISTING NETWORK + SERVICES ----------------------": "",
"zellij-remote": "zellij --layout dev/zellij-remote.kdl a ${npm_package_name}-remote-$MODE || zellij --layout dev/zellij-remote.kdl -s ${npm_package_name}-remote-$MODE",
"remote": "ldenv pnpm run zellij-remote @@",
"---------------------- DEPLOY ----------------------": "",
"build": "ldenv -d sepolia pnpm run indexer:index @@MODE ~~ pnpm run --filter ./web build ~~ @@",
"serve": "pnpm --filter ./web serve",
"contracts:deploy": "ldenv -d localhost pnpm _contracts:deploy @@",
"contracts:deploy:prepare": "ldenv -d localhost ask-env -f contracts/.env.local ETH_NODE_URI_@@MODE MNEMONIC_@@MODE ETHERSCAN_API_KEY:?:ETHERSCAN_API_KEY @@",
"contracts:deploy:watch": "ldenv -d localhost pnpm _contracts:deploy:watch @@",
"contracts:verify": "pnpm --filter ./contracts verify",
"---------------------- RUN FULL LOCAL SETUP ----------------------": "",
"start:wezterm": "wezterm --config-file dev/wezterm.lua start $PWD",
"stop": "zellij kill-session $npm_package_name",
"start": "rm -Rf helper-services/fuzd/.wrangler && rm helper-services/fuzd/contracts.json && zellij --layout dev/zellij.kdl a $npm_package_name || zellij --layout dev/zellij.kdl -s $npm_package_name",
"clean:start": "rm -Rf contracts/deployments/localhost && pnpm start"
}
}
Loading

0 comments on commit 9e8e749

Please sign in to comment.