Something went wrong. Try again.
Monorepo for Aesthetic.Computer aesthetic.computer
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546#!/usr/bin/env fish## Compile the Keeps FA2 v3 SmartPy contract## Usage: ./compile-v3.fish## This will create output in the KeepsFA2v3/ directory with:# - step_002_cont_0_contract.tz (Michelson code)# - step_002_cont_0_storage.tz (Initial storage)## v3 Changes:# - Token owner/creator can edit metadata (not just admin)# - Added token_creators bigmap to track original creators#
set -l SCRIPT_DIR (dirname (status filename))cd $SCRIPT_DIR
# Ensure virtualenv existsif not test -d .venv echo "Creating virtual environment..." python -m venv .venv source .venv/bin/activate.fish pip install smartpy-tezoselse source .venv/bin/activate.fishend
echo "Compiling keeps_fa2_v3.py..."python keeps_fa2_v3.py
if test $status -eq 0 echo "" echo "✅ Compilation successful!" echo "" echo "Output files:" ls -la KeepsFA2v3/*.tz 2>/dev/null echo "" echo "Contract code: KeepsFA2v3/step_002_cont_0_contract.tz" echo "Initial storage: KeepsFA2v3/step_002_cont_0_storage.tz"else echo "" echo "❌ Compilation failed!" exit 1end