Skip to content

jonathan-moore58/aerodrop-compiler

Repository files navigation

AeroDrop Compiler Service

Independent contract compilation service for AeroDrop platform.

Setup

# Install dependencies
npm install

# Start server (development)
npm run dev

# Start server (production)
npm start

API

POST /api/compile

Compile OP_20 token contract.

Request:

{
  "name": "MyToken",
  "symbol": "MTK",
  "decimals": 18,
  "maxSupply": "1000000"
}

Response:

{
  "success": true,
  "bytecode": [0, 97, 115, ...],
  "size": 25103,
  "compilationTime": 1234
}

GET /health

Health check endpoint.

Deployment

Local

npm start

Production (VPS/Cloud)

# Using PM2
npm install -g pm2
pm2 start server.js --name aerodrop-compiler
pm2 save
pm2 startup

Docker

FROM node:18-alpine
WORKDIR /app
COPY package*.json ./
RUN npm install --production
COPY . .
EXPOSE 3001
CMD ["node", "server.js"]

Environment Variables

  • PORT - Server port (default: 3001)
  • NODE_ENV - Environment (development/production)
  • FRONTEND_URL - Frontend URL for CORS

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors