Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions code-examples/api-interactions/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
API_KEY=your-api-key-here
PRODUCTION_TYPE=prod

11 changes: 11 additions & 0 deletions code-examples/api-interactions/apiBases.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
export const API_BASES: Record<string, string> = {
cicd: "http://localhost:3021",
local: "http://localhost:3021",
dev: "https://api.bjrcom.xyz",
stage: "https://api.bjrpilot.xyz",
prod: "https://api.compilot.ai",
"test-dev-1": "https://api-test-dev-1.bjrcom.xyz",
"test-dev-2": "https://api-test-dev-2.bjrcom.xyz",
"test-dev-3": "https://api-test-dev-3.bjrcom.xyz",
"test-dev-4": "https://api-test-dev-4.bjrcom.xyz",
};
18 changes: 18 additions & 0 deletions code-examples/api-interactions/env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# ComPilot API Configuration
# Required: Your ComPilot API key
API_KEY=your_api_key_here

# Optional: API environment (defaults to "prod")
# Options: cicd, local, dev, stage, prod, test-dev-1, test-dev-2, test-dev-3, test-dev-4
PRODUCTION_TYPE=prod

# For update-sig-gating-workflow.ts
# Required: The ID of the workflow you want to update
WORKFLOW_ID=your_workflow_id_here

# Required: The contract address to add to the workflow
CONTRACT_ADDRESS=0xYourContractAddress

# Optional: Chain ID for the contract (defaults to "1" for Ethereum mainnet)
# Examples: 1 (Ethereum), 137 (Polygon), 56 (BSC), etc.
CHAIN_ID=1
Loading