feat: add guarded Base Sepolia encore
This commit is contained in:
@@ -1,11 +1,14 @@
|
||||
SHELL := /bin/bash
|
||||
.SHELLFLAGS := -euo pipefail -c
|
||||
|
||||
-include .env
|
||||
export BASE_SEPOLIA_RPC_URL BASE_SEPOLIA_PUBLIC_RPC_URL BASE_SEPOLIA_ACCOUNT BASE_SEPOLIA_SENDER BASE_SEPOLIA_RECIPIENT
|
||||
|
||||
RPC_LOCAL := http://127.0.0.1:8545
|
||||
ANVIL_OWNER := 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266
|
||||
ANVIL_ALICE := 0x70997970C51812dc3A010C7d01b50e0d17dc79C8
|
||||
|
||||
.PHONY: doctor setup demo-local verify check-state reset-local deploy-v1 seed-v1 upgrade-v2 demo-transfer sync-artifacts sync-artifacts-check sync-abis publish-web-manifest test-finalize-manifest
|
||||
.PHONY: doctor setup demo-local verify check-state reset-local deploy-v1 seed-v1 upgrade-v2 demo-transfer sync-artifacts sync-artifacts-check sync-abis publish-web-manifest test-finalize-manifest deploy-base-sepolia upgrade-base-sepolia transfer-base-sepolia select-anvil select-base-sepolia archive-base-manifest
|
||||
doctor:
|
||||
@bash tools/doctor.sh
|
||||
setup:
|
||||
@@ -23,6 +26,7 @@ verify:
|
||||
@node tools/test-finalize-manifest.mjs
|
||||
@node tools/test-sync-web-artifacts.mjs
|
||||
@bash tools/test-process-safety.sh
|
||||
@bash tools/test-base-config.sh
|
||||
@bash tools/test-scan-project.sh
|
||||
@bash tools/scan-project.sh
|
||||
@npm --prefix web run lint
|
||||
@@ -63,3 +67,33 @@ demo-transfer:
|
||||
@DEMO_EXPECTED_STAGE=v2 $(MAKE) check-state
|
||||
check-state:
|
||||
@forge script script/CheckState.s.sol:CheckState --rpc-url $(RPC_LOCAL) --force
|
||||
select-anvil:
|
||||
@node tools/select-manifest.mjs anvil
|
||||
@node tools/publish-web-manifest.mjs
|
||||
select-base-sepolia:
|
||||
@node tools/select-manifest.mjs baseSepolia
|
||||
@node tools/publish-web-manifest.mjs
|
||||
archive-base-manifest:
|
||||
@node tools/select-manifest.mjs archive baseSepolia
|
||||
deploy-base-sepolia:
|
||||
@./tools/require-base-config.sh deploy
|
||||
@node tools/finalize-manifest.mjs preflight-deploy baseSepolia
|
||||
@SCRIPT_SENDER="$(BASE_SEPOLIA_SENDER)" DEPLOYMENT_MANIFEST_PATH=deployments/pending.json npm_config_offline=true forge script script/DeployV1.s.sol:DeployV1 --rpc-url "$(BASE_SEPOLIA_RPC_URL)" --account "$(BASE_SEPOLIA_ACCOUNT)" --sender "$(BASE_SEPOLIA_SENDER)" --broadcast --slow --force
|
||||
@DEPLOYMENT_MANIFEST_PATH=deployments/pending.json DEMO_EXPECTED_STAGE=deployed forge script script/CheckState.s.sol:CheckState --rpc-url "$(BASE_SEPOLIA_RPC_URL)" --force
|
||||
@node tools/finalize-manifest.mjs deploy --rpc-url "$(BASE_SEPOLIA_RPC_URL)"
|
||||
@SCRIPT_SENDER="$(BASE_SEPOLIA_SENDER)" DEPLOYMENT_MANIFEST_PATH=deployments/base-sepolia.json forge script script/SeedBaseSepolia.s.sol:SeedBaseSepolia --rpc-url "$(BASE_SEPOLIA_RPC_URL)" --account "$(BASE_SEPOLIA_ACCOUNT)" --sender "$(BASE_SEPOLIA_SENDER)" --broadcast --slow --force
|
||||
@DEPLOYMENT_MANIFEST_PATH=deployments/base-sepolia.json DEMO_EXPECTED_STAGE=invariants forge script script/CheckState.s.sol:CheckState --rpc-url "$(BASE_SEPOLIA_RPC_URL)" --force
|
||||
@node tools/select-manifest.mjs baseSepolia
|
||||
@node tools/sync-web-artifacts.mjs
|
||||
@node tools/publish-web-manifest.mjs
|
||||
upgrade-base-sepolia:
|
||||
@./tools/require-base-config.sh upgrade
|
||||
@SCRIPT_SENDER="$(BASE_SEPOLIA_SENDER)" DEPLOYMENT_MANIFEST_PATH=deployments/upgrade-pending.json npm_config_offline=true forge script script/UpgradeV2.s.sol:UpgradeV2 --rpc-url "$(BASE_SEPOLIA_RPC_URL)" --account "$(BASE_SEPOLIA_ACCOUNT)" --sender "$(BASE_SEPOLIA_SENDER)" --broadcast --slow --force
|
||||
@node tools/finalize-manifest.mjs upgrade --rpc-url "$(BASE_SEPOLIA_RPC_URL)"
|
||||
@DEMO_EXPECTED_STAGE=invariants forge script script/CheckState.s.sol:CheckState --rpc-url "$(BASE_SEPOLIA_RPC_URL)" --force
|
||||
@node tools/sync-web-artifacts.mjs
|
||||
@node tools/publish-web-manifest.mjs
|
||||
transfer-base-sepolia:
|
||||
@./tools/require-base-config.sh transfer
|
||||
@SCRIPT_SENDER="$(BASE_SEPOLIA_SENDER)" forge script script/TransferV2Demo.s.sol:TransferV2Demo --rpc-url "$(BASE_SEPOLIA_RPC_URL)" --account "$(BASE_SEPOLIA_ACCOUNT)" --sender "$(BASE_SEPOLIA_SENDER)" --broadcast --slow --force
|
||||
@DEMO_EXPECTED_STAGE=invariants forge script script/CheckState.s.sol:CheckState --rpc-url "$(BASE_SEPOLIA_RPC_URL)" --force
|
||||
|
||||
Reference in New Issue
Block a user