{
  "type": "object",
  "properties": {
    "schema_version": {
      "const": "shroom-browser-v1"
    },
    "view_id": {
      "type": "string",
      "pattern": "^[a-f0-9]{64}$"
    },
    "parent_snapshot_id": {
      "type": "string",
      "pattern": "^[a-f0-9]{64}$"
    },
    "atlas_snapshot_id": {
      "type": "string",
      "pattern": "^[a-f0-9]{64}$"
    },
    "generated_at": {
      "type": "string",
      "format": "date-time",
      "pattern": "Z$"
    },
    "evidence_asof": {
      "type": "string",
      "format": "date-time",
      "pattern": "Z$"
    },
    "initial": {
      "type": "object",
      "properties": {
        "parent": {
          "type": "object",
          "properties": {
            "schema_version": {
              "const": "shroom-observatory-v2"
            },
            "snapshot_id": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "generated_at": {
              "type": "string",
              "format": "date-time",
              "pattern": "Z$"
            },
            "evidence_asof": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "Z$"
                },
                {
                  "type": "null"
                }
              ]
            },
            "chain_id": {
              "const": 4663
            },
            "token_address": {
              "const": "0xab093def657f15df31b33922a95e047add645b29"
            },
            "historical": {
              "const": false
            },
            "methodology_version": {
              "const": "standalone-v2.0"
            },
            "notices": {
              "type": "array",
              "items": {
                "type": "string",
                "maxLength": 2000,
                "pattern": "^[^<>]*$"
              }
            },
            "sources": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "pattern": "^[a-z0-9_-]+$",
                    "maxLength": 100
                  },
                  "name": {
                    "type": "string",
                    "maxLength": 2000,
                    "pattern": "^[^<>]*$"
                  },
                  "url": {
                    "type": "string",
                    "format": "uri",
                    "maxLength": 500
                  },
                  "status": {
                    "enum": [
                      "available",
                      "partial",
                      "unavailable"
                    ]
                  },
                  "checked_at": {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "Z$"
                  },
                  "capability": {
                    "type": "string",
                    "maxLength": 2000,
                    "pattern": "^[^<>]*$"
                  },
                  "credential_required": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "id",
                  "name",
                  "url",
                  "status",
                  "checked_at",
                  "capability",
                  "credential_required"
                ],
                "additionalProperties": false
              }
            },
            "history": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "observed_at": {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "Z$"
                  },
                  "available_at": {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "Z$"
                  },
                  "metric_id": {
                    "type": "string",
                    "pattern": "^[a-z0-9_-]+$",
                    "maxLength": 100
                  },
                  "value": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$",
                        "maxLength": 120
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "status": {
                    "enum": [
                      "verified",
                      "indexed",
                      "estimated",
                      "project_reported",
                      "partial",
                      "unavailable",
                      "stale"
                    ]
                  },
                  "scope": {
                    "type": "string",
                    "maxLength": 2000,
                    "pattern": "^[^<>]*$"
                  },
                  "bucket_start": {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "Z$"
                  },
                  "snapshot_id": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^[a-f0-9]{64}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "unit": {
                    "type": "string",
                    "maxLength": 2000,
                    "pattern": "^[^<>]*$"
                  },
                  "raw_amount": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^-?(0|[1-9][0-9]*)$",
                        "maxLength": 79
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "decimals": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 36
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "window_start": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time",
                        "pattern": "Z$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "window_end": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time",
                        "pattern": "Z$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "sampling_interval_seconds": {
                    "enum": [
                      3600,
                      86400
                    ]
                  },
                  "scope_id": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^[a-f0-9]{64}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "coverage_complete": {
                    "type": "boolean"
                  },
                  "method": {
                    "type": "string",
                    "maxLength": 2000,
                    "pattern": "^[^<>]*$"
                  },
                  "gap": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "observed_at",
                  "available_at",
                  "metric_id",
                  "value",
                  "status",
                  "scope"
                ],
                "additionalProperties": false
              }
            },
            "components": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "id": {
                    "enum": [
                      "identity",
                      "market",
                      "liquidity",
                      "rewards",
                      "fees",
                      "demand",
                      "synthesis",
                      "project_reported",
                      "valuation",
                      "reconciliation",
                      "position_history",
                      "fee_ledger",
                      "burns",
                      "discovery",
                      "issuer_parity",
                      "external_positions",
                      "burn_provenance",
                      "changes",
                      "liquidity_census",
                      "pendle_census",
                      "treasury",
                      "destinations"
                    ]
                  },
                  "title": {
                    "type": "string",
                    "maxLength": 2000,
                    "pattern": "^[^<>]*$"
                  },
                  "status": {
                    "enum": [
                      "verified",
                      "indexed",
                      "estimated",
                      "project_reported",
                      "partial",
                      "unavailable",
                      "stale"
                    ]
                  },
                  "observed_at": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time",
                        "pattern": "Z$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "available_at": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time",
                        "pattern": "Z$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "limitations": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 2000,
                      "pattern": "^[^<>]*$"
                    }
                  },
                  "status_reason": {
                    "type": "string",
                    "maxLength": 2000,
                    "pattern": "^[^<>]*$"
                  },
                  "treasury_scope": {
                    "type": "object",
                    "properties": {
                      "version": {
                        "const": "treasury-v1"
                      },
                      "chain_id": {
                        "const": 4663
                      },
                      "wallets": {
                        "type": "array",
                        "minItems": 1,
                        "uniqueItems": true,
                        "items": {
                          "type": "string",
                          "pattern": "^0x[a-f0-9]{40}$"
                        }
                      },
                      "scope_id": {
                        "type": "string",
                        "pattern": "^[a-f0-9]{64}$"
                      },
                      "designation": {
                        "const": "user_designated"
                      },
                      "recorded_at": {
                        "type": "string",
                        "format": "date-time"
                      },
                      "exposure_basis": {
                        "const": "wallet_SHROOM_plus_v4_SHROOM_principal_plus_direct_Pendle_LP_equivalent_excluding_unclaimed_fees"
                      },
                      "position_population_id": {
                        "type": "string",
                        "pattern": "^[a-f0-9]{64}$"
                      },
                      "position_ids": {
                        "type": "array",
                        "uniqueItems": true,
                        "items": {
                          "type": "string",
                          "pattern": "^4663:position:0x[a-f0-9]{40}:[0-9]+$"
                        }
                      },
                      "v4_complete": {
                        "type": "boolean"
                      },
                      "pendle_complete": {
                        "type": "boolean"
                      },
                      "wallet_inventory_complete": {
                        "const": false
                      },
                      "performance_status": {
                        "const": "unavailable"
                      }
                    },
                    "required": [
                      "version",
                      "chain_id",
                      "wallets",
                      "scope_id",
                      "designation",
                      "recorded_at",
                      "exposure_basis",
                      "position_population_id",
                      "position_ids",
                      "v4_complete",
                      "pendle_complete",
                      "wallet_inventory_complete",
                      "performance_status"
                    ],
                    "additionalProperties": false
                  },
                  "metrics": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "pattern": "^[a-z0-9_-]+$",
                          "maxLength": 100
                        },
                        "label": {
                          "type": "string",
                          "maxLength": 2000,
                          "pattern": "^[^<>]*$"
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$",
                              "maxLength": 120
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "unit": {
                          "type": "string",
                          "maxLength": 2000,
                          "pattern": "^[^<>]*$"
                        },
                        "raw_amount": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^-?(0|[1-9][0-9]*)$",
                              "maxLength": 79
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "decimals": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 36
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "status": {
                          "enum": [
                            "verified",
                            "indexed",
                            "estimated",
                            "project_reported",
                            "partial",
                            "unavailable",
                            "stale"
                          ]
                        },
                        "observed_at": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "Z$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "available_at": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "Z$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "window_start": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "Z$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "window_end": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "Z$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "block_number": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "block_hash": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^0x[a-f0-9]{64}$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "coverage": {
                          "type": "object",
                          "properties": {
                            "numerator": {
                              "anyOf": [
                                {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "denominator": {
                              "anyOf": [
                                {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "complete": {
                              "type": "boolean"
                            },
                            "scope": {
                              "type": "string",
                              "maxLength": 2000,
                              "pattern": "^[^<>]*$"
                            }
                          },
                          "required": [
                            "numerator",
                            "denominator",
                            "complete",
                            "scope"
                          ],
                          "additionalProperties": false
                        },
                        "comparison_basis": {
                          "type": "object",
                          "properties": {
                            "opening_population_id": {
                              "type": "string",
                              "pattern": "^[a-f0-9]{64}$"
                            },
                            "closing_population_id": {
                              "type": "string",
                              "pattern": "^[a-f0-9]{64}$"
                            },
                            "matched_population_id": {
                              "type": "string",
                              "pattern": "^[a-f0-9]{64}$"
                            },
                            "opening_positions": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "closing_positions": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "matched_positions": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "absent_from_opening": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "absent_from_closing": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "changed_title_or_identity": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "unsupported_positions": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": [
                            "opening_population_id",
                            "closing_population_id",
                            "matched_population_id",
                            "opening_positions",
                            "closing_positions",
                            "matched_positions",
                            "absent_from_opening",
                            "absent_from_closing",
                            "changed_title_or_identity",
                            "unsupported_positions"
                          ],
                          "additionalProperties": false
                        },
                        "basis": {
                          "type": "object",
                          "properties": {
                            "population_id": {
                              "type": "string",
                              "pattern": "^[a-f0-9]{64}$"
                            },
                            "ownership_basis": {
                              "enum": [
                                "historical_attribution",
                                "current_tracked_operator_title",
                                "other_recorded_title"
                              ]
                            },
                            "liquidity_basis": {
                              "const": "all_measured_including_empty"
                            },
                            "pricing_basis_id": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "pattern": "^[a-f0-9]{64}$"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "evidence_block_number": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "evidence_block_hash": {
                              "type": "string",
                              "pattern": "^0x[a-f0-9]{64}$"
                            },
                            "window_start": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "format": "date-time",
                                  "pattern": "Z$"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "window_end": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "format": "date-time",
                                  "pattern": "Z$"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "pricing_observation_id": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "pattern": "^[a-f0-9]{64}$"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "population_id",
                            "ownership_basis",
                            "liquidity_basis",
                            "pricing_basis_id",
                            "evidence_block_number",
                            "evidence_block_hash",
                            "window_start",
                            "window_end"
                          ],
                          "additionalProperties": false
                        },
                        "source_ids": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^[a-z0-9_-]+$",
                            "maxLength": 100
                          }
                        },
                        "method": {
                          "type": "string",
                          "maxLength": 2000,
                          "pattern": "^[^<>]*$"
                        },
                        "limitations": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 2000,
                            "pattern": "^[^<>]*$"
                          }
                        },
                        "temporal_kind": {
                          "enum": [
                            "fixed_window"
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "label",
                        "value",
                        "unit",
                        "raw_amount",
                        "decimals",
                        "status",
                        "observed_at",
                        "available_at",
                        "window_start",
                        "window_end",
                        "block_number",
                        "block_hash",
                        "coverage",
                        "source_ids",
                        "method",
                        "limitations"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "table": {
                    "type": "object",
                    "properties": {
                      "columns": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "key": {
                              "type": "string",
                              "pattern": "^[a-z0-9_-]+$",
                              "maxLength": 100
                            },
                            "label": {
                              "type": "string",
                              "maxLength": 2000,
                              "pattern": "^[^<>]*$"
                            }
                          },
                          "required": [
                            "key",
                            "label"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "rows": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "pattern": "^[a-z0-9_-]+$",
                              "maxLength": 100
                            },
                            "cells": {
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "maxLength": 2000,
                                    "pattern": "^[^<>]*$"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "status": {
                              "enum": [
                                "verified",
                                "indexed",
                                "estimated",
                                "project_reported",
                                "partial",
                                "unavailable",
                                "stale"
                              ]
                            },
                            "observed_at": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "format": "date-time",
                                  "pattern": "Z$"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "source_ids": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "pattern": "^[a-z0-9_-]+$",
                                "maxLength": 100
                              }
                            },
                            "evidence_ids": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "pattern": "^[a-f0-9]{64}$"
                              }
                            },
                            "limitations": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 2000,
                                "pattern": "^[^<>]*$"
                              }
                            },
                            "evidence_basis": {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "enum": [
                                    "bounded_accounting",
                                    "burn_sender_ledger",
                                    "noncomparable_juxtaposition"
                                  ]
                                },
                                "verified_claim": {
                                  "type": "string",
                                  "maxLength": 2000,
                                  "pattern": "^[^<>]*$"
                                },
                                "unresolved_claim": {
                                  "type": "string",
                                  "maxLength": 2000,
                                  "pattern": "^[^<>]*$"
                                }
                              },
                              "required": [
                                "kind",
                                "verified_claim",
                                "unresolved_claim"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "id",
                            "cells",
                            "status",
                            "observed_at",
                            "source_ids",
                            "evidence_ids",
                            "limitations"
                          ],
                          "additionalProperties": false
                        },
                        "maxItems": 1000
                      }
                    },
                    "required": [
                      "columns",
                      "rows"
                    ],
                    "additionalProperties": false
                  },
                  "supply_events": {
                    "$ref": "#/properties/initial/properties/parent/properties/components/items/properties/table"
                  }
                },
                "required": [
                  "id",
                  "title",
                  "status",
                  "observed_at",
                  "available_at",
                  "limitations",
                  "metrics",
                  "table"
                ],
                "additionalProperties": false,
                "allOf": [
                  {
                    "if": {
                      "properties": {
                        "id": {
                          "not": {
                            "enum": [
                              "treasury",
                              "burns",
                              "identity"
                            ]
                          }
                        }
                      }
                    },
                    "then": {
                      "properties": {
                        "table": {
                          "properties": {
                            "rows": {
                              "maxItems": 0
                            }
                          }
                        }
                      }
                    }
                  },
                  {
                    "if": {
                      "properties": {
                        "id": {
                          "enum": [
                            "treasury",
                            "identity"
                          ]
                        }
                      }
                    },
                    "then": {
                      "properties": {
                        "table": {
                          "properties": {
                            "rows": {
                              "maxItems": 20
                            }
                          }
                        }
                      }
                    }
                  },
                  {
                    "if": {
                      "properties": {
                        "id": {
                          "not": {
                            "const": "burns"
                          }
                        }
                      }
                    },
                    "then": {
                      "properties": {
                        "supply_events": false
                      }
                    }
                  }
                ]
              }
            }
          },
          "required": [
            "schema_version",
            "snapshot_id",
            "generated_at",
            "evidence_asof",
            "chain_id",
            "token_address",
            "historical",
            "methodology_version",
            "sources",
            "notices",
            "history",
            "components"
          ],
          "additionalProperties": false
        },
        "atlas": {
          "type": "object",
          "properties": {
            "schema_version": {
              "const": "shroom-atlas-v1"
            },
            "snapshot_id": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "parent_snapshot_id": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "generated_at": {
              "type": "string"
            },
            "evidence_asof": {
              "type": "string"
            },
            "chain_id": {
              "const": 4663
            },
            "root_asset_id": {
              "type": "string"
            },
            "scope": {
              "type": "object",
              "properties": {
                "discovered_positions": {
                  "type": "integer"
                },
                "measured_positions": {
                  "type": "integer"
                },
                "unresolved_position_ids": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "description": {
                  "type": "string"
                },
                "retention_from": {
                  "type": "string"
                },
                "event_retention_truncated": {
                  "type": "boolean"
                },
                "event_retention_days": {
                  "type": "integer"
                },
                "scope_id": {
                  "type": "string"
                }
              },
              "required": [
                "discovered_positions",
                "measured_positions",
                "unresolved_position_ids",
                "description"
              ],
              "additionalProperties": false
            },
            "limitations": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "assets": {
              "type": "array",
              "items": {
                "$ref": "#/definitions/asset"
              }
            },
            "pools": {
              "type": "array",
              "items": {
                "$ref": "#/definitions/pool"
              }
            },
            "positions": {
              "type": "array",
              "items": {
                "$ref": "#/definitions/position"
              }
            },
            "events": {
              "type": "array",
              "maxItems": 0
            },
            "paths": {
              "type": "array",
              "maxItems": 0
            },
            "statements": {
              "type": "array",
              "maxItems": 0
            }
          },
          "required": [
            "schema_version",
            "snapshot_id",
            "parent_snapshot_id",
            "generated_at",
            "evidence_asof",
            "chain_id",
            "root_asset_id",
            "scope",
            "limitations",
            "assets",
            "pools",
            "positions",
            "events",
            "paths",
            "statements"
          ],
          "additionalProperties": false
        }
      },
      "required": [
        "parent",
        "atlas"
      ],
      "additionalProperties": false
    },
    "details": {
      "type": "object",
      "properties": {
        "parent": {
          "type": "object",
          "properties": {
            "url": {
              "type": "string",
              "pattern": "^data/browser/(parent|atlas)-[a-f0-9]{64}\\.json$"
            },
            "sha256": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "bytes": {
              "type": "integer",
              "minimum": 1,
              "maximum": 134217728
            }
          },
          "required": [
            "url",
            "sha256",
            "bytes"
          ],
          "additionalProperties": false
        },
        "atlas": {
          "type": "object",
          "properties": {
            "url": {
              "type": "string",
              "pattern": "^data/browser/(parent|atlas)-[a-f0-9]{64}\\.json$"
            },
            "sha256": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "bytes": {
              "type": "integer",
              "minimum": 1,
              "maximum": 134217728
            }
          },
          "required": [
            "url",
            "sha256",
            "bytes"
          ],
          "additionalProperties": false
        },
        "treasury": {
          "type": "object",
          "properties": {
            "url": {
              "type": "string",
              "pattern": "^data/treasury/[a-f0-9]{64}\\.json$"
            },
            "sha256": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "bytes": {
              "type": "integer",
              "minimum": 1,
              "maximum": 8388608
            }
          },
          "required": [
            "url",
            "sha256",
            "bytes"
          ],
          "additionalProperties": false
        },
        "pages": {
          "type": "object",
          "properties": {
            "rewards": {
              "type": "object",
              "properties": {
                "url": {
                  "type": "string",
                  "pattern": "^data/pages/[a-f0-9]{64}\\.json$"
                },
                "sha256": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$"
                },
                "bytes": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 134217728
                }
              },
              "required": [
                "url",
                "sha256",
                "bytes"
              ],
              "additionalProperties": false
            },
            "fees": {
              "type": "object",
              "properties": {
                "url": {
                  "type": "string",
                  "pattern": "^data/pages/[a-f0-9]{64}\\.json$"
                },
                "sha256": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$"
                },
                "bytes": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 134217728
                }
              },
              "required": [
                "url",
                "sha256",
                "bytes"
              ],
              "additionalProperties": false
            },
            "fees-records": {
              "type": "object",
              "properties": {
                "url": {
                  "type": "string",
                  "pattern": "^data/pages/[a-f0-9]{64}\\.json$"
                },
                "sha256": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$"
                },
                "bytes": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 134217728
                }
              },
              "required": [
                "url",
                "sha256",
                "bytes"
              ],
              "additionalProperties": false
            },
            "liquidity": {
              "type": "object",
              "properties": {
                "url": {
                  "type": "string",
                  "pattern": "^data/pages/[a-f0-9]{64}\\.json$"
                },
                "sha256": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$"
                },
                "bytes": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 134217728
                }
              },
              "required": [
                "url",
                "sha256",
                "bytes"
              ],
              "additionalProperties": false
            },
            "liquidity-records": {
              "type": "object",
              "properties": {
                "url": {
                  "type": "string",
                  "pattern": "^data/pages/[a-f0-9]{64}\\.json$"
                },
                "sha256": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$"
                },
                "bytes": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 134217728
                }
              },
              "required": [
                "url",
                "sha256",
                "bytes"
              ],
              "additionalProperties": false
            },
            "overview": {
              "type": "object",
              "properties": {
                "url": {
                  "type": "string",
                  "pattern": "^data/pages/[a-f0-9]{64}\\.json$"
                },
                "sha256": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$"
                },
                "bytes": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 134217728
                }
              },
              "required": [
                "url",
                "sha256",
                "bytes"
              ],
              "additionalProperties": false
            },
            "overview-records": {
              "type": "object",
              "properties": {
                "url": {
                  "type": "string",
                  "pattern": "^data/pages/[a-f0-9]{64}\\.json$"
                },
                "sha256": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$"
                },
                "bytes": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 134217728
                }
              },
              "required": [
                "url",
                "sha256",
                "bytes"
              ],
              "additionalProperties": false
            },
            "learn": {
              "type": "object",
              "properties": {
                "url": {
                  "type": "string",
                  "pattern": "^data/pages/[a-f0-9]{64}\\.json$"
                },
                "sha256": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$"
                },
                "bytes": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 134217728
                }
              },
              "required": [
                "url",
                "sha256",
                "bytes"
              ],
              "additionalProperties": false
            },
            "status": {
              "type": "object",
              "properties": {
                "url": {
                  "type": "string",
                  "pattern": "^data/pages/[a-f0-9]{64}\\.json$"
                },
                "sha256": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$"
                },
                "bytes": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 134217728
                }
              },
              "required": [
                "url",
                "sha256",
                "bytes"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "rewards",
            "fees",
            "fees-records",
            "liquidity",
            "liquidity-records",
            "overview",
            "overview-records",
            "learn",
            "status"
          ],
          "additionalProperties": false
        }
      },
      "required": [
        "parent",
        "atlas"
      ],
      "additionalProperties": false
    },
    "detail_state": {
      "const": "on_demand"
    },
    "limitations": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "schema_version",
    "view_id",
    "parent_snapshot_id",
    "atlas_snapshot_id",
    "generated_at",
    "evidence_asof",
    "initial",
    "details",
    "detail_state",
    "limitations"
  ],
  "additionalProperties": false,
  "definitions": {
    "amount": {
      "type": "object",
      "properties": {
        "asset_id": {
          "type": "string"
        },
        "raw_amount": {
          "type": "string",
          "pattern": "^[0-9]+$"
        },
        "decimals": {
          "type": "integer",
          "minimum": 0,
          "maximum": 36
        },
        "amount": {
          "type": "string",
          "pattern": "^[0-9]+(?:\\.[0-9]+)?$"
        }
      },
      "required": [
        "asset_id",
        "raw_amount",
        "decimals",
        "amount"
      ],
      "additionalProperties": false
    },
    "asset": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "address": {
          "type": "string",
          "pattern": "^0x[a-f0-9]{40}$"
        },
        "symbol": {
          "type": [
            "string",
            "null"
          ]
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "decimals": {
          "type": [
            "integer",
            "null"
          ],
          "minimum": 0,
          "maximum": 36
        },
        "kind": {
          "enum": [
            "native",
            "token",
            "unclassified"
          ]
        },
        "roles": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "symbol_source": {
          "enum": [
            "onchain",
            "native",
            "absent"
          ]
        },
        "metadata_status": {
          "enum": [
            "verified",
            "partial",
            "unavailable"
          ]
        },
        "pool_ids": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "limitations": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "source_urls": {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^https://"
          }
        },
        "first_observed_at": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "address",
        "symbol",
        "name",
        "decimals",
        "kind",
        "metadata_status",
        "symbol_source",
        "roles",
        "pool_ids",
        "first_observed_at",
        "limitations",
        "source_urls"
      ],
      "additionalProperties": false
    },
    "pool": {
      "type": "object",
      "properties": {
        "burn_hook": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "hook_address": {
              "type": "string",
              "pattern": "^0x[a-f0-9]{40}$"
            },
            "method_version": {
              "type": "string"
            },
            "burn_bps": {
              "type": "integer",
              "minimum": 1,
              "maximum": 9999
            },
            "pending_raw": {
              "type": "string",
              "pattern": "^[0-9]+$"
            },
            "burned_raw": {
              "type": [
                "string",
                "null"
              ],
              "pattern": "^[0-9]+$"
            },
            "accrued_raw": {
              "type": [
                "string",
                "null"
              ]
            },
            "accrual_status": {
              "enum": [
                "indexed",
                "unavailable"
              ]
            },
            "accrual_observed_at": {
              "type": [
                "string",
                "null"
              ]
            },
            "per_pool_accrued_raw": {
              "type": "object",
              "patternProperties": {
                "^0x[a-f0-9]{64}$": {
                  "type": "string",
                  "pattern": "^[0-9]+$"
                }
              },
              "additionalProperties": false
            },
            "observed_at": {
              "type": "string"
            },
            "block_number": {
              "type": "integer",
              "minimum": 0
            },
            "block_hash": {
              "type": "string",
              "pattern": "^0x[a-f0-9]{64}$"
            },
            "evidence_ids": {
              "type": "array",
              "items": {
                "type": "string",
                "pattern": "^[a-f0-9]{64}$"
              }
            },
            "source_urls": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "limitations": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "burn_transaction_hashes": {
              "type": "array",
              "items": {
                "type": "string",
                "pattern": "^0x[a-f0-9]{64}$"
              }
            }
          },
          "required": [
            "hook_address",
            "method_version",
            "burn_bps",
            "pending_raw",
            "burned_raw",
            "accrued_raw",
            "accrual_status",
            "accrual_observed_at",
            "per_pool_accrued_raw",
            "observed_at",
            "block_number",
            "block_hash",
            "evidence_ids",
            "source_urls",
            "limitations",
            "burn_transaction_hashes"
          ]
        },
        "id": {
          "type": "string"
        },
        "pool_id": {
          "type": "string"
        },
        "manager": {
          "type": "string"
        },
        "asset_ids": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "minItems": 2,
          "maxItems": 2
        },
        "fee_units": {
          "type": "integer"
        },
        "dynamic_fee": {
          "type": "boolean"
        },
        "tick_spacing": {
          "type": "integer"
        },
        "current_tick": {
          "type": "integer"
        },
        "hook_address": {
          "type": "string"
        },
        "position_ids": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "nonzero_position_count": {
          "type": "integer"
        },
        "in_range_position_count": {
          "type": "integer"
        },
        "pool_status": {
          "enum": [
            "nonzero_attributed",
            "empty_attributed"
          ]
        },
        "principal": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/amount"
          }
        },
        "census": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "observed_at": {
              "type": "string"
            },
            "available_at": {
              "type": "string"
            },
            "block_number": {
              "type": "integer"
            },
            "block_hash": {
              "type": "string"
            },
            "position_count": {
              "type": "integer",
              "minimum": 0
            },
            "nonzero_position_count": {
              "type": "integer",
              "minimum": 0
            },
            "in_range_position_count": {
              "type": "integer",
              "minimum": 0
            },
            "current_tick": {
              "type": "integer"
            },
            "principal": {
              "type": "array",
              "items": {
                "$ref": "#/definitions/amount"
              }
            },
            "evidence_ids": {
              "type": "array",
              "items": {
                "type": "string",
                "pattern": "^[a-f0-9]{64}$"
              }
            },
            "scope": {
              "type": "string"
            },
            "principal_in_range": {
              "type": "array",
              "items": {
                "$ref": "#/definitions/amount"
              }
            }
          },
          "required": [
            "observed_at",
            "available_at",
            "block_number",
            "block_hash",
            "position_count",
            "nonzero_position_count",
            "in_range_position_count",
            "current_tick",
            "principal",
            "evidence_ids",
            "scope"
          ]
        },
        "role": {
          "type": [
            "string",
            "null"
          ]
        },
        "strategy_statement_ids": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "created_at": {
          "type": [
            "string",
            "null"
          ]
        },
        "first_observed_at": {
          "type": "string"
        },
        "activity": {
          "type": [
            "object",
            "null"
          ],
          "additionalProperties": false,
          "properties": {
            "observed_at": {
              "type": "string"
            },
            "last_swap_at": {
              "type": [
                "string",
                "null"
              ]
            },
            "swaps_24h": {
              "type": "integer"
            },
            "swaps_7d": {
              "type": "integer"
            },
            "volume_24h": {
              "type": "array",
              "items": {
                "$ref": "#/definitions/amount"
              }
            },
            "volume_7d": {
              "type": "array",
              "items": {
                "$ref": "#/definitions/amount"
              }
            },
            "block_number": {
              "type": "integer"
            },
            "block_hash": {
              "type": "string"
            },
            "common_window_member": {
              "type": "boolean"
            },
            "window_start_24h": {
              "type": "string"
            },
            "window_start_7d": {
              "type": "string"
            },
            "evidence_ids": {
              "type": "array",
              "items": {
                "type": "string",
                "pattern": "^[a-f0-9]{64}$"
              }
            },
            "limitations": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          }
        },
        "principal_usd": {
          "type": [
            "string",
            "null"
          ]
        },
        "valuation_observed_at": {
          "type": [
            "string",
            "null"
          ]
        },
        "limitations": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "source_urls": {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^https://"
          }
        }
      },
      "required": [
        "id",
        "pool_id",
        "manager",
        "asset_ids",
        "fee_units",
        "dynamic_fee",
        "hook_address",
        "tick_spacing",
        "current_tick",
        "position_ids",
        "pool_status",
        "nonzero_position_count",
        "in_range_position_count",
        "principal",
        "first_observed_at",
        "created_at",
        "strategy_statement_ids",
        "limitations",
        "source_urls",
        "role"
      ],
      "additionalProperties": false
    },
    "position": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "token_id": {
          "type": "string"
        },
        "pool_id": {
          "type": "string"
        },
        "attributed_operator": {
          "type": "string"
        },
        "recorded_owner": {
          "type": "string"
        },
        "ownership_status": {
          "enum": [
            "tracked_operator",
            "other_recorded_owner"
          ]
        },
        "composition": {
          "enum": [
            "two_sided",
            "asset0_only",
            "asset1_only",
            "empty"
          ]
        },
        "liquidity_state": {
          "enum": [
            "nonzero",
            "empty"
          ]
        },
        "liquidity_raw": {
          "type": "string",
          "pattern": "^[0-9]+$"
        },
        "lower_tick": {
          "type": "integer"
        },
        "upper_tick": {
          "type": "integer"
        },
        "current_tick": {
          "type": "integer"
        },
        "range_status": {
          "enum": [
            "in_range",
            "out_of_range",
            "empty"
          ]
        },
        "principal": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/amount"
          }
        },
        "unclaimed": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/amount"
          }
        },
        "fee_support_status": {
          "enum": [
            "supported",
            "unavailable"
          ]
        },
        "nft_burned": {
          "const": false
        },
        "valuation_usd": {
          "type": "null"
        },
        "created_at": {
          "type": [
            "string",
            "null"
          ]
        },
        "first_observed_at": {
          "type": "string"
        },
        "observed_at": {
          "type": "string"
        },
        "limitations": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "source_urls": {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^https://"
          }
        }
      },
      "required": [
        "id",
        "token_id",
        "pool_id",
        "attributed_operator",
        "recorded_owner",
        "ownership_status",
        "liquidity_raw",
        "liquidity_state",
        "range_status",
        "lower_tick",
        "upper_tick",
        "current_tick",
        "composition",
        "nft_burned",
        "fee_support_status",
        "principal",
        "unclaimed",
        "valuation_usd",
        "observed_at",
        "first_observed_at",
        "created_at",
        "source_urls",
        "limitations"
      ],
      "additionalProperties": false
    },
    "event": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "kind": {
          "enum": [
            "discovered",
            "ownership_changed",
            "liquidity_added",
            "liquidity_removed",
            "emptied",
            "reopened",
            "fee_collection",
            "funding",
            "claim",
            "sink_transfer",
            "supply_burn"
          ]
        },
        "entity_ids": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "discovery_kind": {
          "enum": [
            "newly_discovered",
            "not_applicable"
          ]
        },
        "block_number": {
          "type": [
            "integer",
            "null"
          ]
        },
        "log_index": {
          "type": [
            "integer",
            "null"
          ]
        },
        "classification": {
          "type": "string"
        },
        "occurred_at": {
          "type": [
            "string",
            "null"
          ]
        },
        "observed_at": {
          "type": "string"
        },
        "available_at": {
          "type": "string"
        },
        "window_start": {
          "type": [
            "string",
            "null"
          ]
        },
        "window_end": {
          "type": [
            "string",
            "null"
          ]
        },
        "tx_hash": {
          "type": [
            "string",
            "null"
          ]
        },
        "amounts": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/amount"
          }
        },
        "from_label": {
          "type": [
            "string",
            "null"
          ]
        },
        "to_label": {
          "type": [
            "string",
            "null"
          ]
        },
        "summary": {
          "type": "string"
        },
        "status": {
          "enum": [
            "verified",
            "partial"
          ]
        },
        "source_urls": {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^https://"
          }
        },
        "evidence_ids": {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          }
        },
        "limitations": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "id",
        "kind",
        "entity_ids",
        "discovery_kind",
        "block_number",
        "log_index",
        "classification",
        "occurred_at",
        "observed_at",
        "available_at",
        "window_start",
        "window_end",
        "tx_hash",
        "amounts",
        "from_label",
        "to_label",
        "summary",
        "status",
        "source_urls",
        "evidence_ids",
        "limitations"
      ],
      "additionalProperties": false
    },
    "statement": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "source_url": {
          "type": "string"
        },
        "published_at": {
          "type": [
            "string",
            "null"
          ]
        },
        "date_label": {
          "type": "string"
        },
        "verification": {
          "enum": [
            "supplied_statement",
            "issuer_page"
          ]
        },
        "implementation_status": {
          "enum": [
            "announced",
            "not_yet_measured",
            "active_on_observed_pools"
          ]
        },
        "related_entity_ids": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "summary": {
          "type": "string"
        },
        "limitations": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "id",
        "title",
        "source_url",
        "published_at",
        "date_label",
        "verification",
        "implementation_status",
        "related_entity_ids",
        "summary",
        "limitations"
      ],
      "additionalProperties": false
    },
    "path": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "historical": {
          "type": "boolean"
        },
        "window_start": {
          "type": [
            "string",
            "null"
          ]
        },
        "window_end": {
          "type": [
            "string",
            "null"
          ]
        },
        "event_ids": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "stages": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "label": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "label"
            ],
            "additionalProperties": false
          }
        },
        "links": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "from": {
                "type": "string"
              },
              "to": {
                "type": "string"
              },
              "event_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "label": {
                "type": "string"
              }
            },
            "required": [
              "from",
              "to",
              "event_ids",
              "label"
            ],
            "additionalProperties": false
          }
        },
        "limitations": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "id",
        "title",
        "historical",
        "window_start",
        "window_end",
        "event_ids",
        "stages",
        "links",
        "limitations"
      ],
      "additionalProperties": false
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#"
}
