tempo-dev-up:
	#!/bin/bash
	mkdir -p logs
	RUST_LOG=debug,tempo=trace,tempo_precompiles=trace \
	cargo run --bin tempo node \
		--chain genesis/staccato.json \
		--datadir data \
		--dev \
		--dev.block-time 1sec \
		--http \
		--http.addr 0.0.0.0 \
		--http.port 8545 \
		--http.api all \
		--engine.disable-precompile-cache \
		--builder.gaslimit 3000000000 \
		--builder.max-tasks 8 \
		--builder.deadline 3 \
		--faucet.enabled \
		--faucet.private-key 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80 \
		--faucet.amount 1000000000000000 \
		--faucet.address 0x20c0000000000000000000000000000000000000 \
		> logs/tempo-dev.log 2>&1 &
	PID=$!
	echo "Started tempo-dev with PID $PID"

tempo-dev-down:
	#!/bin/bash
	if pkill -f "tempo node"; then
		echo "Killed tempo node processes"
	else
		echo "No tempo-dev processes found"
	fi
	# Clean up logs and data
	rm -rf logs data
	echo "Cleaned up logs and data directories"

auto-7702-delegation:
	#!/bin/bash
	./auto-7702-delegation.sh

basic-transfer:
	#!/bin/bash
	./basic-transfer.sh

registrar-delegation:
	#!/bin/bash
	./registrar-delegation.sh

create-tip20-token:
	#!/bin/bash
	./create-tip20-token.sh

fee-amm:
	#!/bin/bash
	./fee-amm.sh

estimate-gas-77:
	#!/bin/bash
	./estimate-gas-77.sh
