{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/wagyu-xyz/json-schema/wagyu-xyz-bridge-order-schema.json",
  "title": "BridgeOrder",
  "x-generated": "2026-11-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/wagyu-xyz-openapi.json#/components/schemas/BridgeOrder",
  "oneOf": [
    {
      "type": "object",
      "properties": {
        "orderId": {
          "type": "string"
        },
        "product": {
          "type": "string",
          "enum": [
            "bridge"
          ]
        },
        "status": {
          "$ref": "#/$defs/OrderStatus"
        },
        "asset": {
          "$ref": "#/$defs/BridgeAssetKey"
        },
        "direction": {
          "type": "string",
          "enum": [
            "deposit"
          ]
        },
        "chainId": {
          "anyOf": [
            {
              "$ref": "#/$defs/ChainId"
            },
            {
              "type": "null"
            }
          ]
        },
        "toAddress": {
          "type": [
            "string",
            "null"
          ]
        },
        "createdAt": {
          "type": [
            "string",
            "null"
          ]
        },
        "updatedAt": {
          "type": [
            "string",
            "null"
          ]
        },
        "fromChainId": {
          "anyOf": [
            {
              "$ref": "#/$defs/ChainId"
            },
            {
              "type": "null"
            }
          ]
        },
        "depositChainId": {
          "anyOf": [
            {
              "$ref": "#/$defs/ChainId"
            },
            {
              "type": "null"
            }
          ]
        },
        "fromToken": {
          "type": "string"
        },
        "depositToken": {
          "type": "string"
        },
        "fromTokenSymbol": {
          "type": "string"
        },
        "depositTokenSymbol": {
          "type": "string"
        },
        "fromTokenDecimals": {
          "$ref": "#/$defs/TokenDecimals"
        },
        "depositTokenDecimals": {
          "$ref": "#/$defs/TokenDecimals"
        },
        "fromAmount": {
          "type": "string"
        },
        "depositAmount": {
          "type": "string"
        },
        "toChainId": {
          "anyOf": [
            {
              "$ref": "#/$defs/ChainId"
            },
            {
              "type": "null"
            }
          ]
        },
        "toToken": {
          "type": "string"
        },
        "toTokenSymbol": {
          "type": "string"
        },
        "toTokenDecimals": {
          "$ref": "#/$defs/TokenDecimals"
        },
        "expectedOutput": {
          "type": "string"
        },
        "depositTxHash": {
          "type": [
            "string",
            "null"
          ]
        },
        "receivingTxHash": {
          "type": [
            "string",
            "null"
          ]
        },
        "sessionId": {
          "type": [
            "string",
            "null"
          ]
        },
        "refundAddress": {
          "type": [
            "string",
            "null"
          ]
        },
        "refundRequestedAt": {
          "type": [
            "string",
            "null"
          ]
        },
        "expiresAt": {
          "type": "string"
        },
        "amountUsd": {
          "type": "number"
        },
        "bonusStage": {
          "type": "string",
          "enum": [
            "none",
            "coinflip"
          ]
        },
        "coinflipRequested": {
          "type": "boolean"
        },
        "fundingProvider": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "privy"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "integratorFeeUsd": {
          "type": [
            "number",
            "null"
          ]
        },
        "customerState": {
          "$ref": "#/$defs/CustomerOrderState"
        },
        "confirmations": {
          "type": "number"
        },
        "requiredConfirmations": {
          "type": "number"
        },
        "depositObserved": {
          "type": "boolean"
        },
        "errorMessage": {
          "type": [
            "string",
            "null"
          ]
        },
        "actualOutput": {
          "description": "What the customer received, in atomic units of `deliveredToken` when present, otherwise of `toToken`. Only on completed orders.",
          "type": "string"
        },
        "deliveredToken": {
          "type": "object",
          "properties": {
            "chainId": {
              "$ref": "#/$defs/ChainId"
            },
            "token": {
              "type": "string"
            },
            "symbol": {
              "type": "string"
            },
            "decimals": {
              "$ref": "#/$defs/TokenDecimals"
            }
          },
          "required": [
            "chainId",
            "token",
            "symbol",
            "decimals"
          ],
          "additionalProperties": false,
          "description": "Present only when the order completed in a different asset than `toToken`; `actualOutput` is then denominated in this token."
        },
        "coinflipLost": {
          "type": "boolean"
        },
        "hasReview": {
          "type": "boolean"
        },
        "refundRecovery": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "enum": [
                    "wrong_chain",
                    "source",
                    "table_deposit"
                  ]
                },
                "phase": {
                  "type": "string",
                  "enum": [
                    "address_required",
                    "requested",
                    "in_progress"
                  ]
                },
                "chainId": {
                  "$ref": "#/$defs/ChainId"
                },
                "asset": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "enum": [
                        "native",
                        "erc20",
                        "spl"
                      ]
                    },
                    "token": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "symbol": {
                      "type": "string"
                    },
                    "decimals": {
                      "anyOf": [
                        {
                          "$ref": "#/$defs/TokenDecimals"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "type",
                    "token",
                    "symbol",
                    "decimals"
                  ],
                  "additionalProperties": false
                },
                "amountAtomic": {
                  "type": "string"
                },
                "requestedAt": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "suggestedAddress": {
                  "description": "An address the order already has on file for this chain (for table_deposit, the table's payout address), offered as the prefill while phase is address_required. An offer only: nothing is sent to it until it is submitted.",
                  "type": "string"
                },
                "destination": {
                  "description": "Where the refund goes once that is decided (phase requested or in_progress). source is customer when someone submitted the address, sender when the refund returns to the wallet the deposit came from without anyone having to submit one.",
                  "type": "object",
                  "properties": {
                    "address": {
                      "type": "string"
                    },
                    "source": {
                      "type": "string",
                      "enum": [
                        "customer",
                        "sender"
                      ]
                    }
                  },
                  "required": [
                    "address",
                    "source"
                  ],
                  "additionalProperties": false
                }
              },
              "required": [
                "kind",
                "phase",
                "chainId",
                "asset",
                "amountAtomic",
                "requestedAt"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        },
        "rewards": {
          "type": "object",
          "properties": {
            "status": {
              "type": "string",
              "enum": [
                "pending",
                "earned",
                "not_eligible"
              ]
            },
            "wagyuEarned": {
              "type": "number"
            },
            "wagyuBonusEarned": {
              "type": "number"
            },
            "wagyuCompensation": {
              "type": "number",
              "minimum": 0
            },
            "wagyuTotalEarned": {
              "type": "number"
            },
            "policyKey": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "status",
            "wagyuEarned",
            "wagyuBonusEarned",
            "wagyuTotalEarned",
            "policyKey"
          ],
          "additionalProperties": false
        },
        "destination": {
          "type": "string"
        },
        "amount": {
          "type": [
            "string",
            "number"
          ]
        },
        "txIn": {
          "type": [
            "string",
            "null"
          ]
        },
        "txOut": {
          "type": [
            "string",
            "null"
          ]
        },
        "txid": {
          "type": [
            "string",
            "null"
          ]
        },
        "bridgeSettlement": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "direction": {
                  "$ref": "#/$defs/BridgeDirection"
                },
                "input": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "asset": {
                          "type": "string"
                        },
                        "amountAtomic": {
                          "type": "string"
                        },
                        "decimals": {
                          "$ref": "#/$defs/TokenDecimals"
                        }
                      },
                      "required": [
                        "asset",
                        "amountAtomic",
                        "decimals"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "output": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "asset": {
                          "type": "string"
                        },
                        "amountAtomic": {
                          "type": "string"
                        },
                        "decimals": {
                          "$ref": "#/$defs/TokenDecimals"
                        }
                      },
                      "required": [
                        "asset",
                        "amountAtomic",
                        "decimals"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "fee": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "asset": {
                          "type": "string"
                        },
                        "amountAtomic": {
                          "type": "string"
                        },
                        "decimals": {
                          "$ref": "#/$defs/TokenDecimals"
                        },
                        "percent": {
                          "type": "number"
                        },
                        "amountUsd": {
                          "type": [
                            "number",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "asset",
                        "amountAtomic",
                        "decimals",
                        "percent",
                        "amountUsd"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "direction",
                "input",
                "output",
                "fee"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        },
        "receivedXmr": {
          "type": [
            "number",
            "null"
          ]
        },
        "delivered": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "completedAt": {
          "type": [
            "string",
            "null"
          ]
        },
        "depositAddress": {
          "type": "string"
        },
        "depositAddressForms": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/DepositAddressForm"
          }
        }
      },
      "required": [
        "orderId",
        "product",
        "status",
        "asset",
        "direction",
        "chainId",
        "toAddress",
        "createdAt",
        "updatedAt",
        "customerState",
        "errorMessage",
        "coinflipLost",
        "hasReview",
        "destination",
        "depositAddress"
      ],
      "additionalProperties": false
    },
    {
      "type": "object",
      "properties": {
        "orderId": {
          "type": "string"
        },
        "product": {
          "type": "string",
          "enum": [
            "bridge"
          ]
        },
        "status": {
          "$ref": "#/$defs/OrderStatus"
        },
        "asset": {
          "$ref": "#/$defs/BridgeAssetKey"
        },
        "direction": {
          "type": "string",
          "enum": [
            "withdraw"
          ]
        },
        "chainId": {
          "anyOf": [
            {
              "$ref": "#/$defs/ChainId"
            },
            {
              "type": "null"
            }
          ]
        },
        "toAddress": {
          "type": [
            "string",
            "null"
          ]
        },
        "createdAt": {
          "type": [
            "string",
            "null"
          ]
        },
        "updatedAt": {
          "type": [
            "string",
            "null"
          ]
        },
        "fromChainId": {
          "anyOf": [
            {
              "$ref": "#/$defs/ChainId"
            },
            {
              "type": "null"
            }
          ]
        },
        "depositChainId": {
          "anyOf": [
            {
              "$ref": "#/$defs/ChainId"
            },
            {
              "type": "null"
            }
          ]
        },
        "fromToken": {
          "type": "string"
        },
        "depositToken": {
          "type": "string"
        },
        "fromTokenSymbol": {
          "type": "string"
        },
        "depositTokenSymbol": {
          "type": "string"
        },
        "fromTokenDecimals": {
          "$ref": "#/$defs/TokenDecimals"
        },
        "depositTokenDecimals": {
          "$ref": "#/$defs/TokenDecimals"
        },
        "fromAmount": {
          "type": "string"
        },
        "depositAmount": {
          "type": "string"
        },
        "toChainId": {
          "anyOf": [
            {
              "$ref": "#/$defs/ChainId"
            },
            {
              "type": "null"
            }
          ]
        },
        "toToken": {
          "type": "string"
        },
        "toTokenSymbol": {
          "type": "string"
        },
        "toTokenDecimals": {
          "$ref": "#/$defs/TokenDecimals"
        },
        "expectedOutput": {
          "type": "string"
        },
        "depositTxHash": {
          "type": [
            "string",
            "null"
          ]
        },
        "receivingTxHash": {
          "type": [
            "string",
            "null"
          ]
        },
        "sessionId": {
          "type": [
            "string",
            "null"
          ]
        },
        "refundAddress": {
          "type": [
            "string",
            "null"
          ]
        },
        "refundRequestedAt": {
          "type": [
            "string",
            "null"
          ]
        },
        "expiresAt": {
          "type": "string"
        },
        "amountUsd": {
          "type": "number"
        },
        "bonusStage": {
          "type": "string",
          "enum": [
            "none",
            "coinflip"
          ]
        },
        "coinflipRequested": {
          "type": "boolean"
        },
        "fundingProvider": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "privy"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "integratorFeeUsd": {
          "type": [
            "number",
            "null"
          ]
        },
        "customerState": {
          "$ref": "#/$defs/CustomerOrderState"
        },
        "confirmations": {
          "type": "number"
        },
        "requiredConfirmations": {
          "type": "number"
        },
        "depositObserved": {
          "type": "boolean"
        },
        "errorMessage": {
          "type": [
            "string",
            "null"
          ]
        },
        "actualOutput": {
          "description": "What the customer received, in atomic units of `deliveredToken` when present, otherwise of `toToken`. Only on completed orders.",
          "type": "string"
        },
        "deliveredToken": {
          "type": "object",
          "properties": {
            "chainId": {
              "$ref": "#/$defs/ChainId"
            },
            "token": {
              "type": "string"
            },
            "symbol": {
              "type": "string"
            },
            "decimals": {
              "$ref": "#/$defs/TokenDecimals"
            }
          },
          "required": [
            "chainId",
            "token",
            "symbol",
            "decimals"
          ],
          "additionalProperties": false,
          "description": "Present only when the order completed in a different asset than `toToken`; `actualOutput` is then denominated in this token."
        },
        "coinflipLost": {
          "type": "boolean"
        },
        "hasReview": {
          "type": "boolean"
        },
        "refundRecovery": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "enum": [
                    "wrong_chain",
                    "source",
                    "table_deposit"
                  ]
                },
                "phase": {
                  "type": "string",
                  "enum": [
                    "address_required",
                    "requested",
                    "in_progress"
                  ]
                },
                "chainId": {
                  "$ref": "#/$defs/ChainId"
                },
                "asset": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "enum": [
                        "native",
                        "erc20",
                        "spl"
                      ]
                    },
                    "token": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "symbol": {
                      "type": "string"
                    },
                    "decimals": {
                      "anyOf": [
                        {
                          "$ref": "#/$defs/TokenDecimals"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "type",
                    "token",
                    "symbol",
                    "decimals"
                  ],
                  "additionalProperties": false
                },
                "amountAtomic": {
                  "type": "string"
                },
                "requestedAt": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "suggestedAddress": {
                  "description": "An address the order already has on file for this chain (for table_deposit, the table's payout address), offered as the prefill while phase is address_required. An offer only: nothing is sent to it until it is submitted.",
                  "type": "string"
                },
                "destination": {
                  "description": "Where the refund goes once that is decided (phase requested or in_progress). source is customer when someone submitted the address, sender when the refund returns to the wallet the deposit came from without anyone having to submit one.",
                  "type": "object",
                  "properties": {
                    "address": {
                      "type": "string"
                    },
                    "source": {
                      "type": "string",
                      "enum": [
                        "customer",
                        "sender"
                      ]
                    }
                  },
                  "required": [
                    "address",
                    "source"
                  ],
                  "additionalProperties": false
                }
              },
              "required": [
                "kind",
                "phase",
                "chainId",
                "asset",
                "amountAtomic",
                "requestedAt"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        },
        "rewards": {
          "type": "object",
          "properties": {
            "status": {
              "type": "string",
              "enum": [
                "pending",
                "earned",
                "not_eligible"
              ]
            },
            "wagyuEarned": {
              "type": "number"
            },
            "wagyuBonusEarned": {
              "type": "number"
            },
            "wagyuCompensation": {
              "type": "number",
              "minimum": 0
            },
            "wagyuTotalEarned": {
              "type": "number"
            },
            "policyKey": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "status",
            "wagyuEarned",
            "wagyuBonusEarned",
            "wagyuTotalEarned",
            "policyKey"
          ],
          "additionalProperties": false
        },
        "destination": {
          "type": "string"
        },
        "amount": {
          "type": [
            "string",
            "number"
          ]
        },
        "txIn": {
          "type": [
            "string",
            "null"
          ]
        },
        "txOut": {
          "type": [
            "string",
            "null"
          ]
        },
        "txid": {
          "type": [
            "string",
            "null"
          ]
        },
        "bridgeSettlement": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "direction": {
                  "$ref": "#/$defs/BridgeDirection"
                },
                "input": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "asset": {
                          "type": "string"
                        },
                        "amountAtomic": {
                          "type": "string"
                        },
                        "decimals": {
                          "$ref": "#/$defs/TokenDecimals"
                        }
                      },
                      "required": [
                        "asset",
                        "amountAtomic",
                        "decimals"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "output": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "asset": {
                          "type": "string"
                        },
                        "amountAtomic": {
                          "type": "string"
                        },
                        "decimals": {
                          "$ref": "#/$defs/TokenDecimals"
                        }
                      },
                      "required": [
                        "asset",
                        "amountAtomic",
                        "decimals"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "fee": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "asset": {
                          "type": "string"
                        },
                        "amountAtomic": {
                          "type": "string"
                        },
                        "decimals": {
                          "$ref": "#/$defs/TokenDecimals"
                        },
                        "percent": {
                          "type": "number"
                        },
                        "amountUsd": {
                          "type": [
                            "number",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "asset",
                        "amountAtomic",
                        "decimals",
                        "percent",
                        "amountUsd"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "direction",
                "input",
                "output",
                "fee"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        },
        "receivedXmr": {
          "type": [
            "number",
            "null"
          ]
        },
        "delivered": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "completedAt": {
          "type": [
            "string",
            "null"
          ]
        },
        "xmr1DepositAddress": {
          "description": "The Hyperliquid address to send this withdrawal's wrapped token to (HXMR for a Monero order). Null when the engine has no address to show for the order (an archived order, a dry-run engine). While the order waits for that token, its create response's status is `awaiting_<wrapped token>`: `awaiting_hxmr` for a new order; `awaiting_trx1`, `awaiting_zec1`, `awaiting_xmr1` only on older orders.",
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "orderId",
        "product",
        "status",
        "asset",
        "direction",
        "chainId",
        "toAddress",
        "createdAt",
        "updatedAt",
        "customerState",
        "errorMessage",
        "coinflipLost",
        "hasReview",
        "destination",
        "xmr1DepositAddress"
      ],
      "additionalProperties": false
    }
  ],
  "$defs": {
    "AtomicAmount": {
      "type": "string",
      "pattern": "^0*[1-9][0-9]*$",
      "description": "Positive base-10 integer in the asset’s atomic unit."
    },
    "BridgeAssetKey": {
      "type": "string",
      "enum": [
        "xmr",
        "trx",
        "zec"
      ],
      "description": "Registered native-bridge asset key, never a display symbol."
    },
    "BridgeDirection": {
      "type": "string",
      "enum": [
        "deposit",
        "withdraw"
      ],
      "description": "deposit mints the wrapped asset from a native-coin deposit; withdraw returns the native coin against the wrapped asset."
    },
    "ChainId": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991,
      "description": "Non-negative integer chain identifier."
    },
    "CustomerOrderState": {
      "oneOf": [
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "enum": [
                "awaiting_deposit"
              ]
            },
            "notice": {
              "oneOf": [
                {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "enum": [
                        "below_expected"
                      ]
                    }
                  },
                  "required": [
                    "kind"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "enum": [
                        "below_minimum"
                      ]
                    },
                    "minimumDepositAmount": {
                      "$ref": "#/$defs/AtomicAmount"
                    }
                  },
                  "required": [
                    "kind",
                    "minimumDepositAmount"
                  ],
                  "additionalProperties": false
                }
              ]
            }
          },
          "required": [
            "kind"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "enum": [
                "processing"
              ]
            },
            "stage": {
              "type": "string",
              "enum": [
                "processing",
                "confirming",
                "routing",
                "trading",
                "sending",
                "refunding"
              ]
            },
            "notice": {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "enum": [
                    "checking"
                  ]
                }
              },
              "required": [
                "kind"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "kind",
            "stage"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "enum": [
                "action_required"
              ]
            },
            "action": {
              "type": "string",
              "enum": [
                "coinflip",
                "refund_address",
                "payout_address"
              ]
            }
          },
          "required": [
            "kind",
            "action"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "enum": [
                "paused"
              ]
            },
            "reason": {
              "type": "string",
              "enum": [
                "preparing_refund",
                "below_minimum"
              ]
            },
            "minimumDepositAmount": {
              "$ref": "#/$defs/AtomicAmount"
            }
          },
          "required": [
            "kind",
            "reason"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "enum": [
                "completed"
              ]
            }
          },
          "required": [
            "kind"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "enum": [
                "refunded"
              ]
            }
          },
          "required": [
            "kind"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "enum": [
                "expired"
              ]
            }
          },
          "required": [
            "kind"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "enum": [
                "failed"
              ]
            }
          },
          "required": [
            "kind"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Authoritative customer display/action state. Clients must not infer lifecycle from status or resource presence."
    },
    "DepositAddressForm": {
      "type": "object",
      "properties": {
        "kind": {
          "type": "string",
          "enum": [
            "shielded",
            "transparent"
          ]
        },
        "address": {
          "type": "string"
        }
      },
      "required": [
        "kind",
        "address"
      ],
      "additionalProperties": false
    },
    "OrderStatus": {
      "type": "string",
      "enum": [
        "awaiting_deposit",
        "awaiting_hxmr",
        "awaiting_trx1",
        "awaiting_zec1",
        "awaiting_xmr1",
        "processing",
        "completed",
        "failed",
        "expired",
        "refunded",
        "needs_review"
      ]
    },
    "TokenDecimals": {
      "type": "integer",
      "minimum": 0,
      "maximum": 36
    }
  }
}