{
  "manifest_version": "1.0.0",
  "template": {
    "id": "f79eeb67-032d-4aad-abb1-b4b2005a62eb",
    "slug": "URNlTZ",
    "name": "DeFi Options Crypto Trading Bot - Premia",
    "description": "Onchain options market making bot deployed to Arbitrum",
    "url": "https://railway.com/deploy/URNlTZ",
    "upstream": {
      "repo_url": "https://github.com/Premian-Labs/range-order-bot"
    }
  },
  "services": [
    {
      "name": "range-order-bot",
      "source": {
        "repo": "https://github.com/Premian-Labs/range-order-bot"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "ENV",
      "service": "range-order-bot",
      "description": "To use Testnet set to development",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "LP_PKEY",
      "service": "range-order-bot",
      "description": "Wallet Private Key",
      "secret": true,
      "strategy": "default",
      "default": "0x"
    },
    {
      "key": "LP_ADDRESS",
      "service": "range-order-bot",
      "description": "Public Wallet Address",
      "secret": false,
      "strategy": "default",
      "default": "0x"
    },
    {
      "key": "MAINNET_RPC_URL",
      "service": "range-order-bot",
      "description": "Arbitrum One Mainnet RPC URL",
      "secret": false,
      "strategy": "default",
      "default": "https://arb1.arbitrum.io/rpc"
    },
    {
      "key": "TESTNET_RPC_URL",
      "service": "range-order-bot",
      "description": "RPC URL for Goerlia (soon to be Sepolia)",
      "secret": false,
      "strategy": "default",
      "default": "https://goerli-rollup.arbitrum.io/rpc"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "URNlTZ"
      }
    },
    "cli": "railway deploy --template URNlTZ",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "f79eeb67-032d-4aad-abb1-b4b2005a62eb",
            "serializedConfig": {
              "services": {
                "97fb9208-55ff-4bfa-b3f7-10adaf5cb388": {
                  "name": "range-order-bot",
                  "build": {},
                  "deploy": {},
                  "source": {
                    "repo": "https://github.com/Premian-Labs/range-order-bot"
                  },
                  "variables": {
                    "ENV": {
                      "isOptional": false,
                      "description": "To use Testnet set to development",
                      "defaultValue": "production"
                    },
                    "LP_PKEY": {
                      "isOptional": false,
                      "description": "Wallet Private Key",
                      "defaultValue": "0x"
                    },
                    "LP_ADDRESS": {
                      "isOptional": false,
                      "description": "Public Wallet Address",
                      "defaultValue": "0x"
                    },
                    "MAINNET_RPC_URL": {
                      "isOptional": false,
                      "description": "Arbitrum One Mainnet RPC URL",
                      "defaultValue": "https://arb1.arbitrum.io/rpc"
                    },
                    "TESTNET_RPC_URL": {
                      "isOptional": false,
                      "description": "RPC URL for Goerlia (soon to be Sepolia)",
                      "defaultValue": "https://goerli-rollup.arbitrum.io/rpc"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  },
                  "volumeMounts": {}
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": false
  },
  "generated_at": "2026-09-20T16:14:49.616Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-19T07:02:13.005Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_d098ee3ef3da41658f1a",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": false,
        "detail": "FAILED"
      }
    ]
  }
}
