Initial commit: smart contract templates for bash, go, python, and typescript

This commit is contained in:
2026-03-17 19:59:47 -04:00
commit 0634e66469
35 changed files with 3794 additions and 0 deletions

38
typescript/Makefile Executable file
View File

@@ -0,0 +1,38 @@
.PHONY: proto build run clean setup test
# Generate TypeScript types from proto files
proto:
npm run proto
# Install dependencies
setup:
npm install
# Build the TypeScript code
build:
npm run build
# Run the smart contract (production)
run: build
npm start -- --config config.yaml
# Run in development mode (with ts-node)
dev:
npm run dev -- --config config.yaml
# Clean build artifacts
clean:
npm run clean
rm -rf node_modules
# Run tests
test:
npm test
# Lint code
lint:
npm run lint
# Format code
format:
npm run format