Independent contract compilation service for AeroDrop platform.
# Install dependencies
npm install
# Start server (development)
npm run dev
# Start server (production)
npm startCompile OP_20 token contract.
Request:
{
"name": "MyToken",
"symbol": "MTK",
"decimals": 18,
"maxSupply": "1000000"
}Response:
{
"success": true,
"bytecode": [0, 97, 115, ...],
"size": 25103,
"compilationTime": 1234
}Health check endpoint.
npm start# Using PM2
npm install -g pm2
pm2 start server.js --name aerodrop-compiler
pm2 save
pm2 startupFROM node:18-alpine
WORKDIR /app
COPY package*.json ./
RUN npm install --production
COPY . .
EXPOSE 3001
CMD ["node", "server.js"]PORT- Server port (default: 3001)NODE_ENV- Environment (development/production)FRONTEND_URL- Frontend URL for CORS