-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender.yaml
More file actions
78 lines (76 loc) · 2.5 KB
/
render.yaml
File metadata and controls
78 lines (76 loc) · 2.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
services:
# XMTPAuth Agent SDK (Background Worker)
- type: worker
name: xmtp-auth-agent-sdk
env: docker
plan: starter
dockerfilePath: examples/xmtpauth-agent-sdk/Dockerfile
startCommand: yarn start
disk:
name: xmtp-agent-data
mountPath: /app/data
sizeGB: 1
envVars:
- key: NODE_ENV
value: production
# XMTP Agent SDK Configuration
- key: XMTP_ENV
value: production
- key: XMTP_DB_PATH
value: /app/data/xmtp
# Base Network Configuration
- key: BASE_RPC_URL
value: https://mainnet.base.org
- key: EVMAUTH_FACTORY_ADDRESS
value: 0xa8830A603aE5143a1f8BAA46e28C36e4765EC754
- key: USDC_ADDRESS
value: 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
# MegaPot Lottery Configuration (Mainnet)
- key: MEGAPOT_CONTRACT_ADDRESS
value: 0xbEDd4F2beBE9E3E636161E644759f3cbe3d51B95
- key: MEGAPOT_USDC_ADDRESS
value: 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
# Indexer Integration
- key: INDEXER_URL
value: https://xmtp-indexer.onrender.com/graphql
# Environment variables that need to be set in Render dashboard:
# XMTP_WALLET_KEY - Agent's private key (agent-sdk format)
# XMTP_DB_ENCRYPTION_KEY - XMTP database encryption key
# PINATA_JWT - Optional: for IPFS metadata uploads
# NEYNAR_API_KEY - Optional: for enhanced user mentions
# MEGAPOT_DATA_API_KEY - Optional: for real-time lottery stats
# NEW: SQD Indexer Service (Web Service with GraphQL API)
- type: web
name: xmtp-indexer
env: node
plan: starter
rootDir: xmtp-indexer
buildCommand: npm install && npm run build
startCommand: node start-production.js
envVars:
- key: NODE_ENV
value: production
- key: DB_NAME
value: xmtp_indexer
- key: GQL_PORT
value: 4350
- key: PORT
value: 4350
- key: RPC_BASE_HTTP
value: https://base.llamarpc.com
- key: AGENT_ADDRESS
value: 0xa14ce36e7b135b66c3e3cb2584e777f32b15f5dc
- key: DEPLOYMENT_BLOCK
value: 34200000
# SQD Network enabled by default (officially supported for Base mainnet)
# Set USE_SQD_GATEWAY=false in Render dashboard if needed for debugging
# Connect to the PostgreSQL database
databases:
- name: xmtp-indexer-db
as: DATABASE_URL
databases:
# PostgreSQL for the indexer
- name: xmtp-indexer-db
plan: starter
databaseName: xmtp_indexer
user: indexer_user