{
  "title": "PostConditionStx",
  "type": "object",
  "allOf": [
    {
      "type": "object",
      "required": ["principal"],
      "additionalProperties": false,
      "properties": {
        "principal": {
          "$ref": "./post-condition-principal.schema.json"
        }
      }
    },
    {
      "type": "object",
      "required": ["condition_code", "amount", "type"],
      "additionalProperties": false,
      "properties": {
        "condition_code": {
          "$ref": "./post-condition-fungible-condition-code.schema.json"
        },
        "amount": {
          "type": "string"
        },
        "type": {
          "enum": ["stx"],
          "type": "string"
        }
      }
    }
  ]
}
