{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/quant/json-schema/quant-create-deposit-request-schema.json",
  "title": "CreateDepositRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/quant-deposits-api-openapi.yml#/components/schemas/CreateDepositRequest",
  "type": "object",
  "required": [
    "fromNetwork",
    "token",
    "amount",
    "fromAddress",
    "toAddress"
  ],
  "properties": {
    "fromNetwork": {
      "$ref": "#/$defs/L1Network"
    },
    "token": {
      "$ref": "#/$defs/TokenSymbol"
    },
    "amount": {
      "type": "string",
      "description": "Positive number as string"
    },
    "fromAddress": {
      "$ref": "#/$defs/EvmAddress"
    },
    "toAddress": {
      "$ref": "#/$defs/EvmAddress"
    },
    "txHash": {
      "$ref": "#/$defs/TxHash"
    },
    "approvalTxHash": {
      "$ref": "#/$defs/TxHash"
    }
  },
  "$defs": {
    "EvmAddress": {
      "type": "string",
      "pattern": "^0x[a-fA-F0-9]{40}$"
    },
    "L1Network": {
      "type": "string",
      "enum": [
        "ETH_MAINNET",
        "SEPOLIA",
        "OPTIMISM",
        "OPTIMISM_SEPOLIA",
        "ARBITRUM_ONE",
        "ARBITRUM_SEPOLIA"
      ]
    },
    "TokenSymbol": {
      "type": "string",
      "enum": [
        "USDT",
        "USDC",
        "DAI",
        "WETH",
        "WBTC"
      ],
      "description": "Supported bridge tokens (non-exhaustive)"
    },
    "TxHash": {
      "type": "string",
      "pattern": "^0x[a-fA-F0-9]{64}$"
    }
  }
}