Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
81 changes: 21 additions & 60 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,27 @@
# `include ../../Makefile`.
REPO_ROOT := $(abspath $(dir $(lastword $(MAKEFILE_LIST))))

GAS_INCREASE_DIR = $(network)/$(shell date +'%Y-%m-%d')-increase-gas-limit
GAS_AND_ELASTICITY_INCREASE_DIR = $(network)/$(shell date +'%Y-%m-%d')-increase-gas-and-elasticity-limit
SAFE_MANAGEMENT_DIR = $(network)/$(shell date +'%Y-%m-%d')-safe-management
FUNDING_DIR = $(network)/$(shell date +'%Y-%m-%d')-funding
SET_BASE_BRIDGE_PARTNER_THRESHOLD_DIR = $(network)/$(shell date +'%Y-%m-%d')-pause-bridge-base
PAUSE_BRIDGE_BASE_DIR = $(network)/$(shell date +'%Y-%m-%d')-pause-bridge-base
PAUSE_SUPERCHAIN_CONFIG_DIR = $(network)/$(shell date +'%Y-%m-%d')-pause-superchain-config

TEMPLATE_GAS_INCREASE = setup-templates/template-gas-increase
TEMPLATE_GAS_AND_ELASTICITY_INCREASE = setup-templates/template-gas-and-elasticity-increase
TEMPLATE_SAFE_MANAGEMENT = setup-templates/template-safe-management
TEMPLATE_FUNDING = setup-templates/template-funding
TEMPLATE_SET_BASE_BRIDGE_PARTNER_THRESHOLD = setup-templates/template-set-bridge-partner-threshold
TEMPLATE_PAUSE_BRIDGE_BASE = setup-templates/template-pause-bridge-base
TEMPLATE_PAUSE_SUPERCHAIN_CONFIG = setup-templates/template-pause-superchain-config
##
# Task lifecycle
##
# Archive a completed EVM task with:
#
# make archive-task TASK_ID=<YYYY-MM-DD-task-name>
#
.PHONY: archive-task
archive-task: export TASK_ID := $(TASK_ID)
archive-task:
Comment thread
0xth4nh marked this conversation as resolved.
@set -eu; \
task_id="$$TASK_ID"; \
case "$$task_id" in ""|.|..|*[!A-Za-z0-9._-]*) echo "archive-task: invalid TASK_ID"; exit 1;; esac; \
source="$(REPO_ROOT)/active/evm/tasks/$$task_id"; \
destination="$(REPO_ROOT)/archive/evm/$$task_id"; \
[ -d "$$source" ] || { echo "archive-task: no such active task: active/evm/tasks/$$task_id"; exit 1; }; \
[ ! -e "$$destination" ] || { echo "archive-task: destination already exists: archive/evm/$$task_id"; exit 1; }; \
[ ! -d "$(REPO_ROOT)/active/evm/records" ] || { echo "archive-task: move shared active/evm/records into the task before archiving"; exit 1; }; \
mkdir -p "$(REPO_ROOT)/archive/evm"; \
git mv -- "$$source" "$$destination"; \
echo "Archived active/evm/tasks/$$task_id -> archive/evm/$$task_id"

##
# Toolchain bootstrap (mise)
Expand Down Expand Up @@ -67,51 +73,6 @@ GOPATH = $(shell $(MISE_EXEC) go env GOPATH 2>/dev/null)
export GOPATH
endif

##
# Project Setup
##
# Run `make setup-gas-increase network=<network>`
setup-gas-increase:
rm -rf $(TEMPLATE_GAS_INCREASE)/cache $(TEMPLATE_GAS_INCREASE)/lib $(TEMPLATE_GAS_INCREASE)/out
cp -r $(TEMPLATE_GAS_INCREASE) $(GAS_INCREASE_DIR)
mkdir -p $(network)/signatures/$(notdir $(GAS_INCREASE_DIR))

# Run `make setup-gas-increase network=<network>`
setup-gas-and-elasticity-increase:
rm -rf $(TEMPLATE_GAS_AND_ELASTICITY_INCREASE)/cache $(TEMPLATE_GAS_AND_ELASTICITY_INCREASE)/lib $(TEMPLATE_GAS_AND_ELASTICITY_INCREASE)/out
cp -r $(TEMPLATE_GAS_AND_ELASTICITY_INCREASE) $(GAS_AND_ELASTICITY_INCREASE_DIR)
mkdir -p $(network)/signatures/$(notdir $(GAS_AND_ELASTICITY_INCREASE_DIR))

# Run `make setup-safe-management network=<network>`
setup-safe-management:
rm -rf $(TEMPLATE_SAFE_MANAGEMENT)/cache $(TEMPLATE_SAFE_MANAGEMENT)/lib $(TEMPLATE_SAFE_MANAGEMENT)/out
cp -r $(TEMPLATE_SAFE_MANAGEMENT) $(SAFE_MANAGEMENT_DIR)
mkdir -p $(network)/signatures/$(notdir $(SAFE_MANAGEMENT_DIR))

# Run `make setup-funding network=<network>`
setup-funding:
rm -rf $(TEMPLATE_FUNDING)/cache $(TEMPLATE_FUNDING)/lib $(TEMPLATE_FUNDING)/out
cp -r $(TEMPLATE_FUNDING) $(FUNDING_DIR)
mkdir -p $(network)/signatures/$(notdir $(FUNDING_DIR))

# Run `make setup-bridge-partner-threshold network=<network>`
setup-bridge-partner-threshold:
rm -rf $(TEMPLATE_SET_BASE_BRIDGE_PARTNER_THRESHOLD)/cache $(TEMPLATE_SET_BASE_BRIDGE_PARTNER_THRESHOLD)/lib $(TEMPLATE_SET_BASE_BRIDGE_PARTNER_THRESHOLD)/out
cp -r $(TEMPLATE_SET_BASE_BRIDGE_PARTNER_THRESHOLD) $(SET_BASE_BRIDGE_PARTNER_THRESHOLD_DIR)
mkdir -p $(network)/signatures/$(notdir $(SET_BASE_BRIDGE_PARTNER_THRESHOLD_DIR))

# Run `make setup-bridge-pause network=<network>`
setup-bridge-pause:
rm -rf $(TEMPLATE_PAUSE_BRIDGE_BASE)/cache $(TEMPLATE_PAUSE_BRIDGE_BASE)/lib $(TEMPLATE_PAUSE_BRIDGE_BASE)/out
cp -r $(TEMPLATE_PAUSE_BRIDGE_BASE) $(PAUSE_BRIDGE_BASE_DIR)
mkdir -p $(network)/signatures/$(notdir $(PAUSE_BRIDGE_BASE_DIR))

# Run `make setup-superchain-config-pause network=<network>`
setup-superchain-config-pause:
rm -rf $(TEMPLATE_PAUSE_SUPERCHAIN_CONFIG)/cache $(TEMPLATE_PAUSE_SUPERCHAIN_CONFIG)/lib $(TEMPLATE_PAUSE_SUPERCHAIN_CONFIG)/out
cp -r $(TEMPLATE_PAUSE_SUPERCHAIN_CONFIG) $(PAUSE_SUPERCHAIN_CONFIG_DIR)
mkdir -p $(network)/signatures/$(notdir $(PAUSE_SUPERCHAIN_CONFIG_DIR))

##
# Solidity Setup
##
Expand Down
10 changes: 0 additions & 10 deletions setup-templates/template-funding/.env

This file was deleted.

22 changes: 0 additions & 22 deletions setup-templates/template-funding/FACILITATOR.md

This file was deleted.

19 changes: 0 additions & 19 deletions setup-templates/template-funding/Makefile

This file was deleted.

148 changes: 0 additions & 148 deletions setup-templates/template-funding/README.md

This file was deleted.

23 changes: 0 additions & 23 deletions setup-templates/template-funding/foundry.toml

This file was deleted.

10 changes: 0 additions & 10 deletions setup-templates/template-funding/funding.json

This file was deleted.

Loading
Loading