{
  "openapi": "3.1.0",
  "info": {
    "title": "Altar API",
    "version": "v1",
    "description": "The HTTP API behind Altar. Every path below is relative to the base URL.\n\n**Large numbers.** Request bodies send large integers as an object: `{ \"__type__\": \"bigint\", \"value\": \"123\" }`. Responses send large numbers as decimal strings.\n\n**Signatures.** Signed routes carry a typed-data (EIP-712) signature in the body. There are no session tokens. See the signing guide for each message.\n\nThis document is generated from the server code. The signature kinds it lists are: login, adminRead, instanceLogin, addressGeneration, report, projectCreation, networkManagement, tokenManagement, adminManagement, projectUpdate, campaignImport, sacrificeMutation, reportToggle, addressPoolUpload, referralSubmission."
  },
  "servers": [
    {
      "url": "https://altar.fund/api/v1",
      "description": "Production"
    }
  ],
  "tags": [
    {
      "name": "Service",
      "description": "Health check."
    },
    {
      "name": "Campaigns",
      "description": "Public, read-only information about campaigns and the networks they accept."
    },
    {
      "name": "Deposits and points",
      "description": "Deposits (sacrifices), points, leaderboards, and campaign statistics. No signature is needed except where a route says so."
    },
    {
      "name": "Data exports",
      "description": "JSON exports for checking a campaign independently."
    },
    {
      "name": "Deposit addresses",
      "description": "Getting a deposit address, and verifying published address sets."
    },
    {
      "name": "Referrals",
      "description": "Referrals and deposit reports."
    },
    {
      "name": "Markets and utilities",
      "description": "Price-source helpers and small utilities."
    },
    {
      "name": "Campaign admin",
      "description": "Creating and managing a campaign. Every route needs a typed-data signature from a campaign admin, except campaign creation and import, where the signer becomes the first admin."
    },
    {
      "name": "Address pool upload",
      "description": "Uploading a pre-computed range of deposit addresses."
    },
    {
      "name": "Instance admin",
      "description": "Routes for the people who run an Altar instance."
    }
  ],
  "components": {
    "schemas": {},
    "parameters": {}
  },
  "paths": {
    "/health": {
      "get": {
        "tags": [
          "Service"
        ],
        "summary": "Check that the API can reach its database",
        "description": "Runs a trivial database query. Returns status `ok` when it works and status `error` with HTTP 503 when it does not.\n\n**Authorization:** none.",
        "x-altar-auth": "none",
        "responses": {
          "200": {
            "description": "The database answered.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string"
                    },
                    "timestamp": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "required": [
                    "status",
                    "timestamp"
                  ]
                }
              }
            }
          },
          "503": {
            "description": "The database is unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string"
                    },
                    "timestamp": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "required": [
                    "status",
                    "timestamp"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/projects": {
      "get": {
        "tags": [
          "Campaigns"
        ],
        "summary": "List campaigns",
        "description": "Lists every campaign with its schedule and points settings.\n\n**Authorization:** none.",
        "x-altar-auth": "none",
        "responses": {
          "200": {
            "description": "All campaigns.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "projectId": {
                        "type": "string"
                      },
                      "projectName": {
                        "type": "string"
                      },
                      "projectDescription": {
                        "type": "string"
                      },
                      "projectDisclaimerShort": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "projectDisclaimerLong": {
                        "type": "string",
                        "default": ""
                      },
                      "projectWebsite": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "projectLogo": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "projectTagline": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "projectAccentColor": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "projectAccentColorVariant": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "projectBanner": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "projectSocialLinks": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "platform": {
                              "type": "string",
                              "minLength": 1
                            },
                            "url": {
                              "type": "string",
                              "format": "uri"
                            }
                          },
                          "required": [
                            "platform",
                            "url"
                          ]
                        },
                        "default": []
                      },
                      "projectTags": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        },
                        "default": []
                      },
                      "startTime": {
                        "type": "string"
                      },
                      "inflectionTime": {
                        "type": "string"
                      },
                      "endTime": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "createdAt": {
                        "type": "string"
                      },
                      "countEarlySacrifices": {
                        "type": "boolean"
                      },
                      "flatBonusRate": {
                        "type": "string"
                      },
                      "decayRateSingleStep": {
                        "type": "string"
                      },
                      "decaySingleStepDelaySeconds": {
                        "type": "string"
                      },
                      "volumeBonusRate": {
                        "type": "string"
                      },
                      "usdToPointBaseRate": {
                        "type": "string"
                      },
                      "volumeBonusCutoff": {
                        "type": "number"
                      },
                      "flatBonusCutoff": {
                        "type": "number"
                      },
                      "referralRate": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "disabled": {
                        "type": "boolean"
                      },
                      "updatedAt": {
                        "type": "string"
                      },
                      "useInflectionStepOne": {
                        "type": "boolean"
                      },
                      "cexAddresses": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "incrementMode": {
                        "type": "string"
                      },
                      "registryAddress": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "registryChainId": {
                        "type": [
                          "integer",
                          "null"
                        ],
                        "exclusiveMinimum": 0,
                        "default": null
                      }
                    },
                    "required": [
                      "projectId",
                      "projectName",
                      "projectDescription",
                      "projectDisclaimerShort",
                      "projectWebsite",
                      "projectLogo",
                      "projectTagline",
                      "projectAccentColor",
                      "projectAccentColorVariant",
                      "projectBanner",
                      "startTime",
                      "inflectionTime",
                      "endTime",
                      "createdAt",
                      "countEarlySacrifices",
                      "flatBonusRate",
                      "decayRateSingleStep",
                      "decaySingleStepDelaySeconds",
                      "volumeBonusRate",
                      "usdToPointBaseRate",
                      "volumeBonusCutoff",
                      "flatBonusCutoff",
                      "referralRate",
                      "disabled",
                      "updatedAt",
                      "useInflectionStepOne",
                      "cexAddresses",
                      "incrementMode",
                      "registryAddress"
                    ]
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Campaign admin"
        ],
        "summary": "Create a campaign",
        "description": "Creates a campaign from a signed request. The signer becomes its first admin. Refused with HTTP 409 when the identifier is taken.\n\n**Authorization:** a typed-data (EIP-712) signature of kind `projectCreation` in the request body. The exact message is in the `x-altar-signature` extension and in the signing guide. The signed timestamp must be no older than 60 minutes and no more than 5 minutes in the future.",
        "x-altar-auth": "signature",
        "x-altar-signature": {
          "kind": "projectCreation",
          "domain": {
            "name": "ProveX",
            "version": "1",
            "chainId": 1,
            "verifyingContract": "0x0000000000000000000000000000000000000000"
          },
          "primaryType": "ProjectCreation",
          "types": {
            "ProjectCreation": [
              {
                "name": "projectId",
                "type": "string"
              },
              {
                "name": "timestamp",
                "type": "uint256"
              },
              {
                "name": "projectName",
                "type": "string"
              },
              {
                "name": "projectDescription",
                "type": "string"
              },
              {
                "name": "projectWebsite",
                "type": "string"
              },
              {
                "name": "projectLogo",
                "type": "string"
              },
              {
                "name": "projectTagline",
                "type": "string"
              },
              {
                "name": "projectAccentColor",
                "type": "string"
              },
              {
                "name": "projectAccentColorVariant",
                "type": "string"
              },
              {
                "name": "projectBanner",
                "type": "string"
              },
              {
                "name": "projectDisclaimerShort",
                "type": "string"
              },
              {
                "name": "projectDisclaimerLong",
                "type": "string"
              },
              {
                "name": "projectSocialLinks",
                "type": "string"
              },
              {
                "name": "projectTags",
                "type": "string"
              },
              {
                "name": "startTime",
                "type": "uint256"
              },
              {
                "name": "inflectionTime",
                "type": "uint256"
              },
              {
                "name": "endTime",
                "type": "uint256"
              },
              {
                "name": "disabled",
                "type": "bool"
              },
              {
                "name": "decayRateSingleStep",
                "type": "uint256"
              },
              {
                "name": "decaySingleStepDelaySeconds",
                "type": "uint256"
              },
              {
                "name": "volumeBonusRate",
                "type": "uint256"
              },
              {
                "name": "usdToPointBaseRate",
                "type": "uint256"
              },
              {
                "name": "volumeBonusCutoff",
                "type": "uint256"
              },
              {
                "name": "flatBonusCutoff",
                "type": "uint256"
              },
              {
                "name": "flatBonusRate",
                "type": "uint256"
              },
              {
                "name": "referralRate",
                "type": "uint256"
              },
              {
                "name": "countEarlySacrifices",
                "type": "bool"
              },
              {
                "name": "useInflectionStepOne",
                "type": "bool"
              },
              {
                "name": "priceValidFromTimestamp",
                "type": "string"
              },
              {
                "name": "incrementMode",
                "type": "string"
              },
              {
                "name": "registryAddress",
                "type": "string"
              }
            ]
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "signature": {
                    "type": "string",
                    "pattern": "^0x[0-9a-fA-F]*$",
                    "description": "A 0x-prefixed hexadecimal string."
                  },
                  "inputs": {
                    "type": "object",
                    "properties": {
                      "timestamp": {
                        "type": "object",
                        "properties": {
                          "__type__": {
                            "type": "string",
                            "enum": [
                              "bigint"
                            ]
                          },
                          "value": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "__type__",
                          "value"
                        ]
                      },
                      "projectId": {
                        "type": "string"
                      },
                      "projectName": {
                        "type": "string"
                      },
                      "projectDescription": {
                        "type": "string"
                      },
                      "projectWebsite": {
                        "type": "string"
                      },
                      "projectLogo": {
                        "type": "string"
                      },
                      "projectTagline": {
                        "type": "string"
                      },
                      "projectAccentColor": {
                        "type": "string"
                      },
                      "projectAccentColorVariant": {
                        "type": "string"
                      },
                      "projectBanner": {
                        "type": "string"
                      },
                      "projectDisclaimerShort": {
                        "type": "string"
                      },
                      "projectDisclaimerLong": {
                        "type": "string"
                      },
                      "projectSocialLinks": {
                        "type": "string"
                      },
                      "projectTags": {
                        "type": "string"
                      },
                      "startTime": {
                        "type": "object",
                        "properties": {
                          "__type__": {
                            "type": "string",
                            "enum": [
                              "bigint"
                            ]
                          },
                          "value": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "__type__",
                          "value"
                        ]
                      },
                      "inflectionTime": {
                        "type": "object",
                        "properties": {
                          "__type__": {
                            "type": "string",
                            "enum": [
                              "bigint"
                            ]
                          },
                          "value": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "__type__",
                          "value"
                        ]
                      },
                      "endTime": {
                        "type": "object",
                        "properties": {
                          "__type__": {
                            "type": "string",
                            "enum": [
                              "bigint"
                            ]
                          },
                          "value": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "__type__",
                          "value"
                        ]
                      },
                      "disabled": {
                        "type": "boolean"
                      },
                      "decayRateSingleStep": {
                        "type": "object",
                        "properties": {
                          "__type__": {
                            "type": "string",
                            "enum": [
                              "bigint"
                            ]
                          },
                          "value": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "__type__",
                          "value"
                        ]
                      },
                      "decaySingleStepDelaySeconds": {
                        "type": "object",
                        "properties": {
                          "__type__": {
                            "type": "string",
                            "enum": [
                              "bigint"
                            ]
                          },
                          "value": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "__type__",
                          "value"
                        ]
                      },
                      "volumeBonusRate": {
                        "type": "object",
                        "properties": {
                          "__type__": {
                            "type": "string",
                            "enum": [
                              "bigint"
                            ]
                          },
                          "value": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "__type__",
                          "value"
                        ]
                      },
                      "usdToPointBaseRate": {
                        "type": "object",
                        "properties": {
                          "__type__": {
                            "type": "string",
                            "enum": [
                              "bigint"
                            ]
                          },
                          "value": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "__type__",
                          "value"
                        ]
                      },
                      "volumeBonusCutoff": {
                        "type": "object",
                        "properties": {
                          "__type__": {
                            "type": "string",
                            "enum": [
                              "bigint"
                            ]
                          },
                          "value": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "__type__",
                          "value"
                        ]
                      },
                      "flatBonusCutoff": {
                        "type": "object",
                        "properties": {
                          "__type__": {
                            "type": "string",
                            "enum": [
                              "bigint"
                            ]
                          },
                          "value": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "__type__",
                          "value"
                        ]
                      },
                      "flatBonusRate": {
                        "type": "object",
                        "properties": {
                          "__type__": {
                            "type": "string",
                            "enum": [
                              "bigint"
                            ]
                          },
                          "value": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "__type__",
                          "value"
                        ]
                      },
                      "referralRate": {
                        "type": "object",
                        "properties": {
                          "__type__": {
                            "type": "string",
                            "enum": [
                              "bigint"
                            ]
                          },
                          "value": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "__type__",
                          "value"
                        ]
                      },
                      "countEarlySacrifices": {
                        "type": "boolean"
                      },
                      "useInflectionStepOne": {
                        "type": "boolean"
                      },
                      "priceValidFromTimestamp": {
                        "type": "string"
                      },
                      "incrementMode": {
                        "type": "string"
                      },
                      "registryAddress": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "timestamp",
                      "projectId",
                      "projectName",
                      "projectDescription",
                      "projectWebsite",
                      "projectLogo",
                      "projectTagline",
                      "projectAccentColor",
                      "projectAccentColorVariant",
                      "projectBanner",
                      "projectDisclaimerShort",
                      "projectDisclaimerLong",
                      "projectSocialLinks",
                      "projectTags",
                      "startTime",
                      "inflectionTime",
                      "endTime",
                      "disabled",
                      "decayRateSingleStep",
                      "decaySingleStepDelaySeconds",
                      "volumeBonusRate",
                      "usdToPointBaseRate",
                      "volumeBonusCutoff",
                      "flatBonusCutoff",
                      "flatBonusRate",
                      "referralRate",
                      "countEarlySacrifices",
                      "useInflectionStepOne",
                      "priceValidFromTimestamp",
                      "incrementMode",
                      "registryAddress"
                    ]
                  }
                },
                "required": [
                  "signature",
                  "inputs"
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The campaign was created.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "projectId": {
                      "type": "string"
                    },
                    "projectName": {
                      "type": "string"
                    },
                    "projectDescription": {
                      "type": "string"
                    },
                    "projectWebsite": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "projectLogo": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "startTime": {
                      "type": "string"
                    },
                    "inflectionTime": {
                      "type": "string"
                    },
                    "endTime": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "decayRateSingleStep": {
                      "type": "string"
                    },
                    "decaySingleStepDelaySeconds": {
                      "type": "string"
                    },
                    "volumeBonusRate": {
                      "type": "string"
                    },
                    "usdToPointBaseRate": {
                      "type": "string"
                    },
                    "volumeBonusCutoff": {
                      "type": "number"
                    },
                    "flatBonusCutoff": {
                      "type": "number"
                    },
                    "flatBonusRate": {
                      "type": "string"
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "updatedAt": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "projectId",
                    "projectName",
                    "projectDescription",
                    "projectWebsite",
                    "projectLogo",
                    "startTime",
                    "inflectionTime",
                    "endTime",
                    "decayRateSingleStep",
                    "decaySingleStepDelaySeconds",
                    "volumeBonusRate",
                    "usdToPointBaseRate",
                    "volumeBonusCutoff",
                    "flatBonusCutoff",
                    "flatBonusRate",
                    "createdAt",
                    "updatedAt"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The body is malformed, or the signature or timestamp format is wrong.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "The timestamp is too old, or the signature does not verify.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "409": {
            "description": "A campaign with this identifier already exists.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "description": "The campaign could not be created.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/projects/{projectId}/networks": {
      "get": {
        "tags": [
          "Campaigns"
        ],
        "summary": "List the networks a campaign accepts",
        "description": "Lists the networks the campaign accepts deposits on.\n\n**Authorization:** none.",
        "x-altar-auth": "none",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The campaign identifier, such as `provex`.",
              "example": "provex"
            },
            "required": true,
            "description": "The campaign identifier, such as `provex`.",
            "name": "projectId",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "The campaign networks.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "networkName": {
                        "type": "string"
                      },
                      "networkType": {
                        "type": "string"
                      },
                      "chainId": {
                        "type": "number"
                      },
                      "rootAddress": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "networkName",
                      "networkType",
                      "chainId"
                    ]
                  }
                }
              }
            }
          },
          "404": {
            "description": "The campaign does not exist.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/networks": {
      "get": {
        "tags": [
          "Campaigns"
        ],
        "summary": "List every network the instance knows",
        "description": "Lists all networks registered on this instance, across campaigns.\n\n**Authorization:** none.",
        "x-altar-auth": "none",
        "responses": {
          "200": {
            "description": "All networks.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "networkType": {
                        "type": "string"
                      },
                      "chainId": {
                        "type": "number"
                      },
                      "networkName": {
                        "type": "string"
                      },
                      "collectorKey": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "networkType",
                      "chainId",
                      "networkName",
                      "collectorKey"
                    ]
                  }
                }
              }
            }
          }
        }
      }
    },
    "/directory/stats": {
      "get": {
        "tags": [
          "Campaigns"
        ],
        "summary": "Read headline statistics for every campaign",
        "description": "Returns, for each campaign, the US dollars raised (rounded down), the number of depositor addresses and deposits, the points issued, and the accepted tokens. The result is keyed by campaign identifier and uses the latest points version.\n\n**Authorization:** none.",
        "x-altar-auth": "none",
        "responses": {
          "200": {
            "description": "Statistics by campaign.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "object",
                    "properties": {
                      "raisedUsd": {
                        "type": "string",
                        "pattern": "^\\d+\\.\\d{2}$"
                      },
                      "sacrificerCount": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "sacrificeCount": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "pointsIssued": {
                        "type": "string",
                        "pattern": "^\\d+$"
                      },
                      "acceptedTokens": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "networkType": {
                              "type": "string"
                            },
                            "chainId": {
                              "type": "integer"
                            },
                            "tokenAddress": {
                              "type": "string"
                            },
                            "symbol": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "networkType",
                            "chainId",
                            "tokenAddress",
                            "symbol"
                          ]
                        }
                      }
                    },
                    "required": [
                      "raisedUsd",
                      "sacrificerCount",
                      "sacrificeCount",
                      "pointsIssued",
                      "acceptedTokens"
                    ]
                  }
                }
              }
            }
          }
        }
      }
    },
    "/networks/{projectId}/{networkType}/{chainId}": {
      "get": {
        "tags": [
          "Campaigns"
        ],
        "summary": "Read one network of a campaign",
        "description": "Returns the network details. The root address is included only for EVM and Tron-style networks.\n\n**Authorization:** none.",
        "x-altar-auth": "none",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The campaign identifier, such as `provex`.",
              "example": "provex"
            },
            "required": true,
            "description": "The campaign identifier, such as `provex`.",
            "name": "projectId",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "evm",
                "memo",
                "tvm",
                "bip32",
                "solana",
                "monero",
                "cardano"
              ],
              "description": "The network family: for example `evm`, `bip32`, `solana`."
            },
            "required": true,
            "description": "The network family: for example `evm`, `bip32`, `solana`.",
            "name": "networkType",
            "in": "path"
          },
          {
            "schema": {
              "type": "integer",
              "description": "The chain identifier.",
              "example": 1
            },
            "required": true,
            "description": "The chain identifier.",
            "name": "chainId",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "The network.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "networkName": {
                      "type": "string"
                    },
                    "networkType": {
                      "type": "string"
                    },
                    "chainId": {
                      "type": "number"
                    },
                    "rootAddress": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "networkName",
                    "networkType",
                    "chainId"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The path is not a valid network.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "The campaign does not accept this network.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/{projectId}/sacrifices": {
      "get": {
        "tags": [
          "Deposits and points"
        ],
        "summary": "List deposits (sacrifices)",
        "description": "Lists finalized deposits for a campaign, newest first by default. Deposits after the campaign end time are left out. Each row is priced for the chosen points version.\n\n**Authorization:** none.",
        "x-altar-auth": "none",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The campaign identifier, such as `provex`.",
              "example": "provex"
            },
            "required": true,
            "description": "The campaign identifier, such as `provex`.",
            "name": "projectId",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "evm",
                "memo",
                "tvm",
                "bip32",
                "solana",
                "monero",
                "cardano"
              ],
              "description": "The network family: for example `evm`, `bip32`, `solana`."
            },
            "required": false,
            "description": "The network family: for example `evm`, `bip32`, `solana`.",
            "name": "networkType",
            "in": "query"
          },
          {
            "schema": {
              "type": [
                "integer",
                "null"
              ],
              "description": "Chain identifier. Used together with `networkType`."
            },
            "required": false,
            "description": "Chain identifier. Used together with `networkType`.",
            "name": "chainId",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "description": "Only deposits whose points go to this address."
            },
            "required": false,
            "description": "Only deposits whose points go to this address.",
            "name": "pointsDestinationAddress",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "description": "Only deposits of this token."
            },
            "required": false,
            "description": "Only deposits of this token.",
            "name": "tokenAddress",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "description": "A points version. Default: the latest version."
            },
            "required": false,
            "description": "A points version. Default: the latest version.",
            "name": "version",
            "in": "query"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 1000,
              "default": 100,
              "description": "Page size. 1 to 1000. Default 100."
            },
            "required": false,
            "description": "Page size. 1 to 1000. Default 100.",
            "name": "limit",
            "in": "query"
          },
          {
            "schema": {
              "type": [
                "integer",
                "null"
              ],
              "minimum": 0,
              "default": 0,
              "description": "Number of rows to skip. Default 0."
            },
            "required": false,
            "description": "Number of rows to skip. Default 0.",
            "name": "offset",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ],
              "default": "desc"
            },
            "required": false,
            "name": "orderDirection",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "timestamp",
                "usd"
              ],
              "default": "timestamp"
            },
            "required": false,
            "name": "orderBy",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "One page of deposits.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "network": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "networkName": {
                          "type": "string"
                        },
                        "networkType": {
                          "type": "string"
                        },
                        "chainId": {
                          "type": "number"
                        },
                        "rootAddress": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "networkName",
                        "networkType",
                        "chainId"
                      ]
                    },
                    "pageInfo": {
                      "type": "object",
                      "properties": {
                        "limit": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "offset": {
                          "type": "number"
                        },
                        "returned": {
                          "type": "number"
                        },
                        "totalCount": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "limit",
                        "offset",
                        "returned",
                        "totalCount"
                      ]
                    },
                    "sacrifices": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "projectId": {
                            "type": "string"
                          },
                          "networkType": {
                            "type": "string"
                          },
                          "chainId": {
                            "type": "number"
                          },
                          "blockHash": {
                            "type": "string"
                          },
                          "transactionHash": {
                            "type": "string"
                          },
                          "logIndex": {
                            "type": "number"
                          },
                          "logType": {
                            "type": "string",
                            "enum": [
                              "native",
                              "token",
                              "mutation"
                            ]
                          },
                          "tokenAddress": {
                            "type": "string"
                          },
                          "pointsDestinationAddress": {
                            "type": "string",
                            "pattern": "^0x[0-9a-fA-F]*$",
                            "description": "A 0x-prefixed hexadecimal string."
                          },
                          "timestamp": {
                            "type": "string"
                          },
                          "amount": {
                            "type": "string"
                          },
                          "blockNumber": {
                            "type": "string"
                          },
                          "blockStatus": {
                            "type": "string"
                          },
                          "tokenSymbol": {
                            "type": "string"
                          },
                          "tokenName": {
                            "type": "string"
                          },
                          "tokenDecimals": {
                            "type": "number"
                          },
                          "price": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "priceSourceHash": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "pointsAmount": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "pointsType": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "isCexAddress": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "projectId",
                          "networkType",
                          "chainId",
                          "blockHash",
                          "transactionHash",
                          "logIndex",
                          "logType",
                          "tokenAddress",
                          "pointsDestinationAddress",
                          "timestamp",
                          "amount",
                          "blockNumber",
                          "blockStatus",
                          "tokenSymbol",
                          "tokenName",
                          "tokenDecimals",
                          "price",
                          "priceSourceHash",
                          "pointsAmount",
                          "pointsType",
                          "isCexAddress"
                        ]
                      }
                    }
                  },
                  "required": [
                    "pageInfo",
                    "sacrifices"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "A query value is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "The campaign does not exist.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/{projectId}/leaderboard": {
      "get": {
        "tags": [
          "Deposits and points"
        ],
        "summary": "Read the leaderboard",
        "description": "Lists addresses with their points, ordered by `orderBy`. Reads the latest points version unless `version` is set.\n\n**Authorization:** none.",
        "x-altar-auth": "none",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The campaign identifier, such as `provex`.",
              "example": "provex"
            },
            "required": true,
            "description": "The campaign identifier, such as `provex`.",
            "name": "projectId",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "description": "A points version. Default: the latest."
            },
            "required": false,
            "description": "A points version. Default: the latest.",
            "name": "version",
            "in": "query"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 1000,
              "default": 100,
              "description": "Page size. 1 to 1000. Default 100."
            },
            "required": false,
            "description": "Page size. 1 to 1000. Default 100.",
            "name": "limit",
            "in": "query"
          },
          {
            "schema": {
              "type": [
                "integer",
                "null"
              ],
              "minimum": 0,
              "default": 0,
              "description": "Number of rows to skip. Default 0."
            },
            "required": false,
            "description": "Number of rows to skip. Default 0.",
            "name": "offset",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ],
              "default": "desc"
            },
            "required": false,
            "name": "orderDirection",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "points",
                "usd",
                "volume"
              ],
              "default": "volume"
            },
            "required": false,
            "name": "orderBy",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "One page of the leaderboard.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "leaderboard": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "pointsDestinationAddress": {
                            "type": "string"
                          },
                          "totalAmount": {
                            "type": "string"
                          },
                          "count": {
                            "type": "string"
                          },
                          "referralCount": {
                            "type": "string"
                          },
                          "pointsByType": {
                            "type": "object",
                            "additionalProperties": {
                              "type": "string"
                            }
                          },
                          "usdValue": {
                            "type": "string"
                          },
                          "tokens": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "networkType": {
                                  "type": "string"
                                },
                                "chainId": {
                                  "type": "number"
                                },
                                "tokenAddress": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "networkType",
                                "chainId",
                                "tokenAddress"
                              ]
                            }
                          },
                          "tokenTimestamps": {
                            "type": "object",
                            "additionalProperties": {
                              "type": "string"
                            }
                          },
                          "projectId": {
                            "type": "string"
                          },
                          "version": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "pointsDestinationAddress",
                          "totalAmount",
                          "count",
                          "referralCount",
                          "pointsByType",
                          "usdValue",
                          "tokens",
                          "tokenTimestamps",
                          "projectId",
                          "version"
                        ]
                      }
                    },
                    "pageInfo": {
                      "type": "object",
                      "properties": {
                        "limit": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "offset": {
                          "type": "number"
                        },
                        "returned": {
                          "type": "number"
                        },
                        "totalCount": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "limit",
                        "offset",
                        "returned",
                        "totalCount"
                      ]
                    },
                    "pointsVersion": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "leaderboard",
                    "pageInfo",
                    "pointsVersion"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "A query value is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/stats/sacrifices": {
      "post": {
        "tags": [
          "Deposits and points"
        ],
        "summary": "Read campaign statistics, and optionally one address",
        "description": "Returns campaign totals, the steps, supported tokens, and the campaign corrections: `sacrificeMutations` (deposit corrections) and `priceOverrides` (price corrections). Both lists are part of this public response. Send `address` to include that address data. Add a login signature to prove you own the address. Requests without an `address` are limited to 5 per 10 seconds for each client address.\n\n**Authorization:** optional. Without a signature you get public statistics. With a login signature (typed data `Validate`, bound to the campaign) that proves you own `address`, the response also holds your private data. The signed timestamp must be no older than 60 minutes and no more than 5 minutes in the future.",
        "x-altar-auth": "optionalLogin",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "signature": {
                    "type": "string",
                    "pattern": "^0x[0-9a-fA-F]*$",
                    "description": "A 0x-prefixed hexadecimal string."
                  },
                  "inputs": {
                    "type": "object",
                    "properties": {
                      "timestamp": {
                        "type": "object",
                        "properties": {
                          "__type__": {
                            "type": "string",
                            "enum": [
                              "bigint"
                            ]
                          },
                          "value": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "__type__",
                          "value"
                        ]
                      }
                    },
                    "required": [
                      "timestamp"
                    ]
                  },
                  "projectId": {
                    "type": "string"
                  },
                  "address": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "version": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "projectId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The statistics.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "steps": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "stepNumber": {
                            "type": "string"
                          },
                          "stepStartTime": {
                            "type": "string"
                          },
                          "networkName": {
                            "type": "string"
                          },
                          "networkType": {
                            "type": "string"
                          },
                          "chainId": {
                            "type": "number"
                          },
                          "tokenSymbol": {
                            "type": "string"
                          },
                          "tokenName": {
                            "type": "string"
                          },
                          "tokenDecimals": {
                            "type": "number"
                          },
                          "tokenAddress": {
                            "type": "string"
                          },
                          "count": {
                            "type": "string"
                          },
                          "amount": {
                            "type": "string"
                          },
                          "usdValue": {
                            "type": "string"
                          },
                          "points": {
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "required": [
                          "stepNumber",
                          "stepStartTime",
                          "networkName",
                          "networkType",
                          "chainId",
                          "tokenSymbol",
                          "tokenName",
                          "tokenDecimals",
                          "tokenAddress",
                          "count",
                          "amount",
                          "usdValue",
                          "points"
                        ]
                      }
                    },
                    "networks": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "networkName": {
                            "type": "string"
                          },
                          "networkType": {
                            "type": "string"
                          },
                          "chainId": {
                            "type": "number"
                          },
                          "lowerRange": {
                            "type": "number"
                          },
                          "upperRange": {
                            "type": "number"
                          },
                          "lowestBlock": {
                            "type": "number"
                          },
                          "highestBlock": {
                            "type": "number"
                          },
                          "rootAddress": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "networkName",
                          "networkType",
                          "chainId"
                        ]
                      }
                    },
                    "totalSacrifices": {
                      "type": "number"
                    },
                    "totalPoints": {
                      "type": "string"
                    },
                    "pointsVersion": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "supportedTokens": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "networkType": {
                            "type": "string"
                          },
                          "chainId": {
                            "type": "number"
                          },
                          "tokenAddress": {
                            "type": "string"
                          },
                          "metadata": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "properties": {
                              "symbol": {
                                "type": "string"
                              },
                              "name": {
                                "type": "string"
                              },
                              "decimals": {
                                "type": "number"
                              }
                            },
                            "required": [
                              "symbol",
                              "name",
                              "decimals"
                            ]
                          },
                          "sourceIsZero": {
                            "type": [
                              "boolean",
                              "null"
                            ]
                          },
                          "searchable": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "networkType",
                          "chainId",
                          "tokenAddress",
                          "metadata",
                          "sourceIsZero"
                        ]
                      }
                    },
                    "sacrificeMutations": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "projectId": {
                            "type": "string"
                          },
                          "networkType": {
                            "type": "string",
                            "enum": [
                              "evm",
                              "memo",
                              "tvm",
                              "bip32",
                              "solana",
                              "monero",
                              "cardano"
                            ]
                          },
                          "chainId": {
                            "type": "number"
                          },
                          "blockHash": {
                            "type": "string"
                          },
                          "transactionHash": {
                            "type": "string"
                          },
                          "tokenAddress": {
                            "type": "string"
                          },
                          "logIndex": {
                            "type": "number"
                          },
                          "logType": {
                            "type": "string",
                            "enum": [
                              "native",
                              "token",
                              "mutation"
                            ]
                          },
                          "action": {
                            "type": "string",
                            "enum": [
                              "ignore",
                              "modify",
                              "add"
                            ]
                          },
                          "amount": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "pointsDestinationAddress": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "userAddressListIndex": {
                            "type": [
                              "number",
                              "null"
                            ]
                          },
                          "source": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "enum": [
                              "stable",
                              "ccxt",
                              "dex",
                              "zero",
                              "pending",
                              null
                            ]
                          },
                          "market": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "timestamp": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "blockNumber": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "blockStatus": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "tokenSymbol": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "tokenName": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "tokenDecimals": {
                            "type": [
                              "number",
                              "null"
                            ]
                          },
                          "price": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "createdBy": {
                            "type": "string"
                          },
                          "createdAt": {
                            "type": "string"
                          },
                          "reason": {
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "required": [
                          "projectId",
                          "networkType",
                          "chainId",
                          "blockHash",
                          "transactionHash",
                          "tokenAddress",
                          "logIndex",
                          "logType",
                          "action",
                          "amount",
                          "pointsDestinationAddress",
                          "userAddressListIndex",
                          "source",
                          "market",
                          "timestamp",
                          "blockNumber",
                          "blockStatus",
                          "tokenSymbol",
                          "tokenName",
                          "tokenDecimals",
                          "price",
                          "createdBy",
                          "createdAt",
                          "reason"
                        ]
                      }
                    },
                    "priceOverrides": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "projectId": {
                            "type": "string"
                          },
                          "networkType": {
                            "type": "string",
                            "enum": [
                              "evm",
                              "memo",
                              "tvm",
                              "bip32",
                              "solana",
                              "monero",
                              "cardano"
                            ]
                          },
                          "chainId": {
                            "type": "number"
                          },
                          "blockHash": {
                            "type": "string"
                          },
                          "tokenAddress": {
                            "type": "string"
                          },
                          "source": {
                            "type": "string",
                            "enum": [
                              "stable",
                              "ccxt",
                              "dex",
                              "zero",
                              "pending"
                            ]
                          },
                          "market": {
                            "type": "string"
                          },
                          "price": {
                            "type": "string"
                          },
                          "createdBy": {
                            "type": "string"
                          },
                          "createdAt": {
                            "type": "string"
                          },
                          "reason": {
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "required": [
                          "projectId",
                          "networkType",
                          "chainId",
                          "blockHash",
                          "tokenAddress",
                          "source",
                          "market",
                          "price",
                          "createdBy",
                          "createdAt",
                          "reason"
                        ]
                      }
                    },
                    "user": {
                      "type": "object",
                      "properties": {
                        "pointsDestinationAddress": {
                          "type": "string"
                        },
                        "sacrifices": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "projectId": {
                                "type": "string"
                              },
                              "networkType": {
                                "type": "string"
                              },
                              "chainId": {
                                "type": "number"
                              },
                              "blockHash": {
                                "type": "string"
                              },
                              "transactionHash": {
                                "type": "string"
                              },
                              "logIndex": {
                                "type": "number"
                              },
                              "logType": {
                                "type": "string",
                                "enum": [
                                  "native",
                                  "token",
                                  "mutation"
                                ]
                              },
                              "tokenAddress": {
                                "type": "string"
                              },
                              "pointsDestinationAddress": {
                                "type": "string",
                                "pattern": "^0x[0-9a-fA-F]*$",
                                "description": "A 0x-prefixed hexadecimal string."
                              },
                              "timestamp": {
                                "type": "string"
                              },
                              "amount": {
                                "type": "string"
                              },
                              "blockNumber": {
                                "type": "string"
                              },
                              "blockStatus": {
                                "type": "string"
                              },
                              "tokenSymbol": {
                                "type": "string"
                              },
                              "tokenName": {
                                "type": "string"
                              },
                              "tokenDecimals": {
                                "type": "number"
                              },
                              "price": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "priceSourceHash": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "pointsAmount": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "pointsType": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "isCexAddress": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "projectId",
                              "networkType",
                              "chainId",
                              "blockHash",
                              "transactionHash",
                              "logIndex",
                              "logType",
                              "tokenAddress",
                              "pointsDestinationAddress",
                              "timestamp",
                              "amount",
                              "blockNumber",
                              "blockStatus",
                              "tokenSymbol",
                              "tokenName",
                              "tokenDecimals",
                              "price",
                              "priceSourceHash",
                              "pointsAmount",
                              "pointsType",
                              "isCexAddress"
                            ]
                          }
                        },
                        "role": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "role": {
                              "type": "string",
                              "enum": [
                                "admin"
                              ]
                            },
                            "projectId": {
                              "type": "string"
                            },
                            "address": {
                              "type": "string"
                            },
                            "createdAt": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "role",
                            "projectId",
                            "address",
                            "createdAt"
                          ]
                        },
                        "referrerAddress": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "stats": {
                          "type": "object",
                          "properties": {
                            "totalSacrifices": {
                              "type": "number"
                            },
                            "totalValue": {
                              "type": "string"
                            },
                            "totalPoints": {
                              "type": "string"
                            },
                            "pointsVersion": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "uniqueTokens": {
                              "type": "number"
                            },
                            "uniqueNetworks": {
                              "type": "number"
                            },
                            "rank": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "totalSacrifices",
                            "totalValue",
                            "totalPoints",
                            "pointsVersion",
                            "uniqueTokens",
                            "uniqueNetworks"
                          ]
                        }
                      },
                      "required": [
                        "pointsDestinationAddress",
                        "sacrifices",
                        "stats"
                      ]
                    }
                  },
                  "required": [
                    "steps",
                    "networks",
                    "totalSacrifices",
                    "totalPoints",
                    "pointsVersion",
                    "supportedTokens",
                    "sacrificeMutations",
                    "priceOverrides"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The body is malformed.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "A signature was sent, but the timestamp is too old or the signature does not verify.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "429": {
            "description": "Too many requests.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/points/user": {
      "post": {
        "tags": [
          "Deposits and points"
        ],
        "summary": "Read the points of one address",
        "description": "Returns the point entries and the total for the address named in `address`, for one points version. No signature is needed.\n\n**Authorization:** none.",
        "x-altar-auth": "none",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "signature": {
                    "type": "string",
                    "pattern": "^0x[0-9a-fA-F]*$",
                    "description": "A 0x-prefixed hexadecimal string."
                  },
                  "inputs": {
                    "type": "object",
                    "properties": {
                      "timestamp": {
                        "type": "object",
                        "properties": {
                          "__type__": {
                            "type": "string",
                            "enum": [
                              "bigint"
                            ]
                          },
                          "value": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "__type__",
                          "value"
                        ]
                      }
                    },
                    "required": [
                      "timestamp"
                    ]
                  },
                  "projectId": {
                    "type": "string"
                  },
                  "address": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "version": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "projectId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The address points.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "pointsDestinationAddress": {
                      "type": "string"
                    },
                    "totalPoints": {
                      "type": "string",
                      "description": "Decimal integer string."
                    },
                    "pointsVersion": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "userPoints": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": {}
                      }
                    }
                  },
                  "required": [
                    "pointsDestinationAddress",
                    "totalPoints",
                    "pointsVersion",
                    "userPoints"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The body is malformed, or `address` is missing.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/networks/unpriced": {
      "get": {
        "tags": [
          "Deposits and points"
        ],
        "summary": "List finalized deposits that have no price yet",
        "description": "Lists finalized deposits with no price, for one campaign. Deposits after the campaign end time are left out.\n\n**Authorization:** none.",
        "x-altar-auth": "none",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The campaign identifier. Required."
            },
            "required": true,
            "description": "The campaign identifier. Required.",
            "name": "projectId",
            "in": "query"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 1000,
              "default": 100,
              "description": "Page size. 1 to 1000. Default 100."
            },
            "required": false,
            "description": "Page size. 1 to 1000. Default 100.",
            "name": "limit",
            "in": "query"
          },
          {
            "schema": {
              "type": [
                "integer",
                "null"
              ],
              "minimum": 0,
              "default": 0,
              "description": "Number of rows to skip. Default 0."
            },
            "required": false,
            "description": "Number of rows to skip. Default 0.",
            "name": "offset",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "Unpriced deposits.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "unpricedCount": {
                      "type": "number"
                    },
                    "pagination": {
                      "type": "object",
                      "properties": {
                        "limit": {
                          "type": "number"
                        },
                        "offset": {
                          "type": "number"
                        },
                        "returned": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "limit",
                        "offset",
                        "returned"
                      ]
                    },
                    "sacrifices": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "projectId": {
                            "type": "string"
                          },
                          "networkType": {
                            "type": "string"
                          },
                          "chainId": {
                            "type": "number"
                          },
                          "blockHash": {
                            "type": "string"
                          },
                          "transactionHash": {
                            "type": "string"
                          },
                          "logIndex": {
                            "type": "number"
                          },
                          "logType": {
                            "type": "string",
                            "enum": [
                              "native",
                              "token",
                              "mutation"
                            ]
                          },
                          "tokenAddress": {
                            "type": "string"
                          },
                          "pointsDestinationAddress": {
                            "type": "string",
                            "pattern": "^0x[0-9a-fA-F]*$",
                            "description": "A 0x-prefixed hexadecimal string."
                          },
                          "timestamp": {
                            "type": "string"
                          },
                          "amount": {
                            "type": "string"
                          },
                          "blockNumber": {
                            "type": "string"
                          },
                          "blockStatus": {
                            "type": "string"
                          },
                          "tokenSymbol": {
                            "type": "string"
                          },
                          "tokenName": {
                            "type": "string"
                          },
                          "tokenDecimals": {
                            "type": "number"
                          },
                          "price": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "priceSourceHash": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "pointsAmount": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "pointsType": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "isCexAddress": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "projectId",
                          "networkType",
                          "chainId",
                          "blockHash",
                          "transactionHash",
                          "logIndex",
                          "logType",
                          "tokenAddress",
                          "pointsDestinationAddress",
                          "timestamp",
                          "amount",
                          "blockNumber",
                          "blockStatus",
                          "tokenSymbol",
                          "tokenName",
                          "tokenDecimals",
                          "price",
                          "priceSourceHash",
                          "pointsAmount",
                          "pointsType",
                          "isCexAddress"
                        ]
                      }
                    }
                  },
                  "required": [
                    "unpricedCount",
                    "pagination",
                    "sacrifices"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "A query value is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "The campaign does not exist.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/{projectId}/download": {
      "get": {
        "tags": [
          "Data exports"
        ],
        "summary": "Download points and audit data as JSON",
        "description": "One endpoint, three export types chosen with `type`: `distribution` (address and points), `breakdown` (every point entry with its deposit), and `audit` (networks, blocks, transactions, deposits, prices, and corrections). The response is JSON. The site builds its CSV files from it.\n\n**Authorization:** none.",
        "x-altar-auth": "none",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The campaign identifier, such as `provex`.",
              "example": "provex"
            },
            "required": true,
            "description": "The campaign identifier, such as `provex`.",
            "name": "projectId",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "distribution",
                "breakdown",
                "audit"
              ],
              "default": "distribution"
            },
            "required": false,
            "name": "type",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "description": "A points version. Default: the latest."
            },
            "required": false,
            "description": "A points version. Default: the latest.",
            "name": "version",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "The export. The shape depends on `type`.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "addresses": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "address": {
                                "type": "string"
                              },
                              "points": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "address",
                              "points"
                            ]
                          }
                        },
                        "version": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "contentsHash": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "addresses",
                        "version",
                        "contentsHash"
                      ]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "pointBreakdown": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "address": {
                                "type": "string"
                              },
                              "points": {
                                "type": "string"
                              },
                              "pointType": {
                                "type": "string"
                              },
                              "networkType": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "networkName": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "chainId": {
                                "type": [
                                  "number",
                                  "null"
                                ]
                              },
                              "tokenSymbol": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "tokenAddress": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "tokenDecimals": {
                                "type": [
                                  "number",
                                  "null"
                                ]
                              },
                              "sacrificeAmount": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "price": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "blockTimestamp": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "step": {
                                "type": [
                                  "number",
                                  "null"
                                ]
                              },
                              "rate": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "blockNumber": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "blockHash": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "transactionHash": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "logIndex": {
                                "type": [
                                  "number",
                                  "null"
                                ]
                              },
                              "logType": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              }
                            },
                            "required": [
                              "address",
                              "points",
                              "pointType",
                              "networkType",
                              "networkName",
                              "chainId",
                              "tokenSymbol",
                              "tokenAddress",
                              "tokenDecimals",
                              "sacrificeAmount",
                              "price",
                              "blockTimestamp",
                              "step",
                              "rate",
                              "blockNumber",
                              "blockHash",
                              "transactionHash",
                              "logIndex",
                              "logType"
                            ]
                          }
                        },
                        "version": {
                          "type": "string"
                        },
                        "statistics": {
                          "type": "object",
                          "properties": {
                            "totalAddresses": {
                              "type": "number"
                            },
                            "totalPoints": {
                              "type": "string"
                            },
                            "totalEntries": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "totalAddresses",
                            "totalPoints",
                            "totalEntries"
                          ]
                        }
                      },
                      "required": [
                        "pointBreakdown",
                        "version",
                        "statistics"
                      ]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "projectInfo": {},
                        "pointsVersion": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "generatedAt": {
                          "type": "string"
                        },
                        "networks": {
                          "type": "array",
                          "items": {}
                        },
                        "blocks": {
                          "type": "array",
                          "items": {}
                        },
                        "transactions": {
                          "type": "array",
                          "items": {}
                        },
                        "sacrifices": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "networkType": {
                                "type": "string"
                              },
                              "networkName": {
                                "type": "string"
                              },
                              "chainId": {
                                "type": "number"
                              },
                              "blockNumber": {
                                "type": "string"
                              },
                              "blockHash": {
                                "type": "string"
                              },
                              "blockTimestamp": {
                                "type": "string"
                              },
                              "transactionHash": {
                                "type": "string"
                              },
                              "logIndex": {
                                "type": "number"
                              },
                              "logType": {
                                "type": "string"
                              },
                              "tokenSymbol": {
                                "type": "string"
                              },
                              "tokenAddress": {
                                "type": "string"
                              },
                              "tokenDecimals": {
                                "type": "number"
                              },
                              "amount": {
                                "type": "string"
                              },
                              "pointsDestinationAddress": {
                                "type": "string"
                              },
                              "price": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "priceSourceHash": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "step": {
                                "type": [
                                  "number",
                                  "null"
                                ]
                              },
                              "rate": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              }
                            },
                            "required": [
                              "networkType",
                              "networkName",
                              "chainId",
                              "blockNumber",
                              "blockHash",
                              "blockTimestamp",
                              "transactionHash",
                              "logIndex",
                              "logType",
                              "tokenSymbol",
                              "tokenAddress",
                              "tokenDecimals",
                              "amount",
                              "pointsDestinationAddress",
                              "price",
                              "priceSourceHash",
                              "step",
                              "rate"
                            ]
                          }
                        },
                        "priceSources": {
                          "type": "array",
                          "items": {}
                        },
                        "supportedTokens": {
                          "type": "array",
                          "items": {}
                        },
                        "sacrificeMutations": {
                          "type": "array",
                          "items": {}
                        },
                        "priceOverrides": {
                          "type": "array",
                          "items": {}
                        },
                        "statistics": {
                          "type": "object",
                          "properties": {
                            "totalNetworks": {
                              "type": "number"
                            },
                            "totalBlocks": {
                              "type": "number"
                            },
                            "totalTransactions": {
                              "type": "number"
                            },
                            "totalSacrifices": {
                              "type": "number"
                            },
                            "totalPriceSources": {
                              "type": "number"
                            },
                            "totalMutations": {
                              "type": "number"
                            },
                            "totalPriceOverrides": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "totalNetworks",
                            "totalBlocks",
                            "totalTransactions",
                            "totalSacrifices",
                            "totalPriceSources",
                            "totalMutations",
                            "totalPriceOverrides"
                          ]
                        }
                      },
                      "required": [
                        "pointsVersion",
                        "generatedAt",
                        "networks",
                        "blocks",
                        "transactions",
                        "sacrifices",
                        "priceSources",
                        "supportedTokens",
                        "sacrificeMutations",
                        "priceOverrides",
                        "statistics"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "`type` is not one of the three allowed values.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/address": {
      "post": {
        "tags": [
          "Deposit addresses"
        ],
        "summary": "Get your deposit address on one network",
        "description": "Returns the deposit address for the signer on one network of a campaign. On campaigns that issue indices from the onchain registry, the first call can return HTTP 202 while the registration relays; call again later. Refused with HTTP 403 after the campaign ends.\n\n**Authorization:** a typed-data (EIP-712) signature of kind `addressGeneration` in the request body. The exact message is in the `x-altar-signature` extension and in the signing guide. The signed timestamp must be no older than 60 minutes and no more than 5 minutes in the future.",
        "x-altar-auth": "signature",
        "x-altar-signature": {
          "kind": "addressGeneration",
          "domain": {
            "name": "ProveX",
            "version": "1",
            "chainId": 1,
            "verifyingContract": "0x0000000000000000000000000000000000000000"
          },
          "primaryType": "AddressGeneration",
          "types": {
            "AddressGeneration": [
              {
                "name": "projectId",
                "type": "string"
              },
              {
                "name": "networkType",
                "type": "string"
              },
              {
                "name": "chainId",
                "type": "uint256"
              },
              {
                "name": "timestamp",
                "type": "uint256"
              }
            ]
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "signature": {
                    "type": "string",
                    "pattern": "^0x[0-9a-fA-F]*$",
                    "description": "A 0x-prefixed hexadecimal string."
                  },
                  "inputs": {
                    "type": "object",
                    "properties": {
                      "projectId": {
                        "type": "string"
                      },
                      "networkType": {
                        "type": "string"
                      },
                      "chainId": {
                        "type": "object",
                        "properties": {
                          "__type__": {
                            "type": "string",
                            "enum": [
                              "bigint"
                            ]
                          },
                          "value": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "__type__",
                          "value"
                        ]
                      },
                      "timestamp": {
                        "type": "object",
                        "properties": {
                          "__type__": {
                            "type": "string",
                            "enum": [
                              "bigint"
                            ]
                          },
                          "value": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "__type__",
                          "value"
                        ]
                      }
                    },
                    "required": [
                      "projectId",
                      "networkType",
                      "chainId",
                      "timestamp"
                    ]
                  }
                },
                "required": [
                  "signature",
                  "inputs"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The deposit address data.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "networkType": {
                        "type": "string"
                      },
                      "chainId": {
                        "type": "number"
                      },
                      "address": {
                        "type": "string"
                      },
                      "addressIndex": {
                        "type": [
                          "number",
                          "null"
                        ]
                      }
                    },
                    "required": [
                      "networkType",
                      "chainId",
                      "address",
                      "addressIndex"
                    ]
                  }
                }
              }
            }
          },
          "202": {
            "description": "Registration is pending onchain.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "enum": [
                        "pending_registration"
                      ]
                    },
                    "registryAddress": {
                      "type": "string"
                    },
                    "networkKey": {
                      "type": "string"
                    },
                    "relayJob": {
                      "type": "object",
                      "properties": {
                        "status": {
                          "type": "string"
                        },
                        "txHash": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "status",
                        "txHash"
                      ]
                    }
                  },
                  "required": [
                    "status",
                    "registryAddress",
                    "networkKey"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The body is malformed, or the signature or timestamp format is wrong.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "The timestamp is too old, or the signature does not verify.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "The campaign has ended. New addresses cannot be generated.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "The campaign does not exist.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "409": {
            "description": "The pre-published address pool is exhausted.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/address/all": {
      "post": {
        "tags": [
          "Deposit addresses"
        ],
        "summary": "List every deposit address you already generated",
        "description": "Verifies the login signature and returns all addresses of the signer in this campaign.\n\n**Authorization:** a typed-data (EIP-712) signature of kind `login` in the request body. The exact message is in the `x-altar-signature` extension and in the signing guide. The signed timestamp must be no older than 60 minutes and no more than 5 minutes in the future.",
        "x-altar-auth": "signature",
        "x-altar-signature": {
          "kind": "login",
          "domain": {
            "name": "ProveX",
            "version": "1",
            "chainId": 1,
            "verifyingContract": "0x0000000000000000000000000000000000000000"
          },
          "primaryType": "Validate",
          "types": {
            "Validate": [
              {
                "name": "purpose",
                "type": "string"
              },
              {
                "name": "projectId",
                "type": "string"
              },
              {
                "name": "timestamp",
                "type": "uint256"
              },
              {
                "name": "termsOfUse",
                "type": "string"
              }
            ]
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "signature": {
                    "type": "string",
                    "pattern": "^0x[0-9a-fA-F]*$",
                    "description": "A 0x-prefixed hexadecimal string."
                  },
                  "inputs": {
                    "type": "object",
                    "properties": {
                      "timestamp": {
                        "type": "object",
                        "properties": {
                          "__type__": {
                            "type": "string",
                            "enum": [
                              "bigint"
                            ]
                          },
                          "value": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "__type__",
                          "value"
                        ]
                      }
                    },
                    "required": [
                      "timestamp"
                    ]
                  },
                  "projectId": {
                    "type": "string"
                  }
                },
                "required": [
                  "signature",
                  "inputs",
                  "projectId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The signer addresses.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "valid": {
                      "type": "boolean"
                    },
                    "pointsDestinationAddress": {
                      "type": "string"
                    },
                    "addresses": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "networkType": {
                            "type": "string"
                          },
                          "chainId": {
                            "type": "number"
                          },
                          "address": {
                            "type": "string"
                          },
                          "addressIndex": {
                            "type": [
                              "number",
                              "null"
                            ]
                          }
                        },
                        "required": [
                          "networkType",
                          "chainId",
                          "address",
                          "addressIndex"
                        ]
                      }
                    }
                  },
                  "required": [
                    "valid",
                    "pointsDestinationAddress",
                    "addresses"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The body is malformed, or the signature or timestamp format is wrong.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "The timestamp is too old, or the signature does not verify.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/address/register-voucher": {
      "post": {
        "tags": [
          "Deposit addresses"
        ],
        "summary": "Register a voucher with the onchain registry",
        "description": "Accepts a voucher signed by the destination wallet, checks it, and queues a relay job that submits it to the registry contract. Limits: 5 requests per 10 seconds for each client address, and 3 per minute for each destination.\n\n**Authorization:** the `signature` field is a `RegisterVoucher` typed-data signature from the destination wallet. Its domain is the campaign registry contract, not the Altar domain.",
        "x-altar-auth": "registryVoucher",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "projectId": {
                    "type": "string"
                  },
                  "networkType": {
                    "type": "string"
                  },
                  "chainId": {
                    "type": "object",
                    "properties": {
                      "__type__": {
                        "type": "string",
                        "enum": [
                          "bigint"
                        ]
                      },
                      "value": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "__type__",
                      "value"
                    ]
                  },
                  "destination": {
                    "type": "string"
                  },
                  "deadline": {
                    "type": "object",
                    "properties": {
                      "__type__": {
                        "type": "string",
                        "enum": [
                          "bigint"
                        ]
                      },
                      "value": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "__type__",
                      "value"
                    ]
                  },
                  "signature": {
                    "type": "string"
                  }
                },
                "required": [
                  "projectId",
                  "networkType",
                  "chainId",
                  "destination",
                  "deadline",
                  "signature"
                ]
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "The relay job was queued.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "relayJob": {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  },
                  "required": [
                    "relayJob"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request or voucher is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "409": {
            "description": "A live assignment already exists for the destination.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "429": {
            "description": "Too many requests.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/{projectId}/address-sets": {
      "get": {
        "tags": [
          "Deposit addresses"
        ],
        "summary": "List published address-set commitments",
        "description": "Lists the Merkle-root commitments of the deposit-address ranges the campaign published.\n\n**Authorization:** none.",
        "x-altar-auth": "none",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The campaign identifier, such as `provex`.",
              "example": "provex"
            },
            "required": true,
            "description": "The campaign identifier, such as `provex`.",
            "name": "projectId",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "The commitments.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "networkType": {
                        "type": "string"
                      },
                      "chainId": {
                        "type": "number"
                      },
                      "rangeStart": {
                        "type": "number"
                      },
                      "count": {
                        "type": "number"
                      },
                      "merkleRoot": {
                        "type": "string"
                      },
                      "contentHash": {
                        "type": "string"
                      },
                      "publishedAt": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "networkType",
                      "chainId",
                      "rangeStart",
                      "count",
                      "merkleRoot",
                      "contentHash",
                      "publishedAt"
                    ]
                  }
                }
              }
            }
          },
          "404": {
            "description": "The campaign does not exist.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/{projectId}/address-sets/{networkKey}/{rangeStart}": {
      "get": {
        "tags": [
          "Deposit addresses"
        ],
        "summary": "Download one published address set",
        "description": "Returns the stored JSON artifact of one address range exactly as published. It never changes, so it is cached for one year.\n\n**Authorization:** none.",
        "x-altar-auth": "none",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The campaign identifier, such as `provex`.",
              "example": "provex"
            },
            "required": true,
            "description": "The campaign identifier, such as `provex`.",
            "name": "projectId",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "description": "Network in `type:chainId` form, such as `bip32:0` or `evm:1`.",
              "example": "bip32:0"
            },
            "required": true,
            "description": "Network in `type:chainId` form, such as `bip32:0` or `evm:1`.",
            "name": "networkKey",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "description": "First address index of the range (1 or more)."
            },
            "required": true,
            "description": "First address index of the range (1 or more).",
            "name": "rangeStart",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "The artifact (JSON).",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {}
                }
              }
            }
          },
          "400": {
            "description": "The network key or range start is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "No such address set.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/{projectId}/address-proof/{networkKey}/{addressIndex}/{address}": {
      "get": {
        "tags": [
          "Deposit addresses"
        ],
        "summary": "Get a Merkle proof for one deposit address",
        "description": "Returns a proof that the address is a leaf of the committed address set that covers the index. Returns 404 when the address is not in the set; it never invents a proof.\n\n**Authorization:** none.",
        "x-altar-auth": "none",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The campaign identifier, such as `provex`.",
              "example": "provex"
            },
            "required": true,
            "description": "The campaign identifier, such as `provex`.",
            "name": "projectId",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "description": "Network in `type:chainId` form, such as `bip32:0` or `evm:1`.",
              "example": "bip32:0"
            },
            "required": true,
            "description": "Network in `type:chainId` form, such as `bip32:0` or `evm:1`.",
            "name": "networkKey",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "description": "Address index (0 or more)."
            },
            "required": true,
            "description": "Address index (0 or more).",
            "name": "addressIndex",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "description": "The deposit address."
            },
            "required": true,
            "description": "The deposit address.",
            "name": "address",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "The proof.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {}
                }
              }
            }
          },
          "400": {
            "description": "A path value is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "No committed set covers the index, or the address is not in it.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/referral": {
      "post": {
        "tags": [
          "Referrals"
        ],
        "summary": "Submit a referral",
        "description": "Links the signer to a referrer. The signed message names the action `submit`, so the signature cannot be reused to disconnect.\n\n**Authorization:** a typed-data (EIP-712) signature of kind `referralSubmission` in the request body. The exact message is in the `x-altar-signature` extension and in the signing guide. The signed timestamp must be no older than 60 minutes and no more than 5 minutes in the future.",
        "x-altar-auth": "signature",
        "x-altar-signature": {
          "kind": "referralSubmission",
          "domain": {
            "name": "ProveX",
            "version": "1",
            "chainId": 1,
            "verifyingContract": "0x0000000000000000000000000000000000000000"
          },
          "primaryType": "ReferralSubmission",
          "types": {
            "ReferralSubmission": [
              {
                "name": "projectId",
                "type": "string"
              },
              {
                "name": "referrerAddress",
                "type": "string"
              },
              {
                "name": "action",
                "type": "string"
              },
              {
                "name": "timestamp",
                "type": "uint256"
              }
            ]
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "signature": {
                    "type": "string",
                    "pattern": "^0x[0-9a-fA-F]*$",
                    "description": "A 0x-prefixed hexadecimal string."
                  },
                  "inputs": {
                    "type": "object",
                    "properties": {
                      "projectId": {
                        "type": "string"
                      },
                      "referrerAddress": {
                        "type": "string"
                      },
                      "timestamp": {
                        "type": "object",
                        "properties": {
                          "__type__": {
                            "type": "string",
                            "enum": [
                              "bigint"
                            ]
                          },
                          "value": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "__type__",
                          "value"
                        ]
                      }
                    },
                    "required": [
                      "projectId",
                      "referrerAddress",
                      "timestamp"
                    ]
                  }
                },
                "required": [
                  "signature",
                  "inputs"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The referral was stored.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "referral": {
                      "type": "object",
                      "properties": {
                        "projectId": {
                          "type": "string"
                        },
                        "pointsDestinationAddress": {
                          "type": "string"
                        },
                        "referrerAddress": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "projectId",
                        "pointsDestinationAddress",
                        "referrerAddress"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "message",
                    "referral"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The body is malformed, or the signature or timestamp format is wrong.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "The timestamp is too old, or the signature does not verify.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "The campaign does not exist.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/referral/disconnect": {
      "post": {
        "tags": [
          "Referrals"
        ],
        "summary": "End your active referral",
        "description": "Ends the active referral of the signer. The signed message names the action `disconnect`.\n\n**Authorization:** a typed-data (EIP-712) signature of kind `referralSubmission` in the request body. The exact message is in the `x-altar-signature` extension and in the signing guide. The signed timestamp must be no older than 60 minutes and no more than 5 minutes in the future.",
        "x-altar-auth": "signature",
        "x-altar-signature": {
          "kind": "referralSubmission",
          "domain": {
            "name": "ProveX",
            "version": "1",
            "chainId": 1,
            "verifyingContract": "0x0000000000000000000000000000000000000000"
          },
          "primaryType": "ReferralSubmission",
          "types": {
            "ReferralSubmission": [
              {
                "name": "projectId",
                "type": "string"
              },
              {
                "name": "referrerAddress",
                "type": "string"
              },
              {
                "name": "action",
                "type": "string"
              },
              {
                "name": "timestamp",
                "type": "uint256"
              }
            ]
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "signature": {
                    "type": "string",
                    "pattern": "^0x[0-9a-fA-F]*$",
                    "description": "A 0x-prefixed hexadecimal string."
                  },
                  "inputs": {
                    "type": "object",
                    "properties": {
                      "projectId": {
                        "type": "string"
                      },
                      "referrerAddress": {
                        "type": "string"
                      },
                      "timestamp": {
                        "type": "object",
                        "properties": {
                          "__type__": {
                            "type": "string",
                            "enum": [
                              "bigint"
                            ]
                          },
                          "value": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "__type__",
                          "value"
                        ]
                      }
                    },
                    "required": [
                      "projectId",
                      "referrerAddress",
                      "timestamp"
                    ]
                  }
                },
                "required": [
                  "signature",
                  "inputs"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The referral ended.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "referral": {
                      "type": "object",
                      "properties": {
                        "projectId": {
                          "type": "string"
                        },
                        "pointsDestinationAddress": {
                          "type": "string"
                        },
                        "referrerAddress": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "projectId",
                        "pointsDestinationAddress",
                        "referrerAddress"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "message",
                    "referral"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The body is malformed, or the signature or timestamp format is wrong.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "The timestamp is too old, or the signature does not verify.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "The campaign or the active referral does not exist.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/referral/{projectId}/{address}": {
      "get": {
        "tags": [
          "Referrals"
        ],
        "summary": "List the referrals of an address",
        "description": "Lists all referrals (active and ended) of one address in a campaign.\n\n**Authorization:** none.",
        "x-altar-auth": "none",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The campaign identifier, such as `provex`.",
              "example": "provex"
            },
            "required": true,
            "description": "The campaign identifier, such as `provex`.",
            "name": "projectId",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "address",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "The referrals.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "projectId": {
                      "type": "string"
                    },
                    "pointsDestinationAddress": {
                      "type": "string"
                    },
                    "referrals": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "projectId": {
                            "type": "string"
                          },
                          "pointsDestinationAddress": {
                            "type": "string"
                          },
                          "referrerAddress": {
                            "type": "string"
                          },
                          "startAt": {
                            "type": "string"
                          },
                          "endedAt": {
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "required": [
                          "projectId",
                          "pointsDestinationAddress",
                          "referrerAddress",
                          "startAt",
                          "endedAt"
                        ]
                      }
                    }
                  },
                  "required": [
                    "projectId",
                    "pointsDestinationAddress",
                    "referrals"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/referral/{projectId}/{address}/active": {
      "get": {
        "tags": [
          "Referrals"
        ],
        "summary": "List the active referrals of an address",
        "description": "Lists only the referrals that have not ended.\n\n**Authorization:** none.",
        "x-altar-auth": "none",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The campaign identifier, such as `provex`.",
              "example": "provex"
            },
            "required": true,
            "description": "The campaign identifier, such as `provex`.",
            "name": "projectId",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "address",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "The active referrals.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "projectId": {
                      "type": "string"
                    },
                    "pointsDestinationAddress": {
                      "type": "string"
                    },
                    "referrals": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "projectId": {
                            "type": "string"
                          },
                          "pointsDestinationAddress": {
                            "type": "string"
                          },
                          "referrerAddress": {
                            "type": "string"
                          },
                          "startAt": {
                            "type": "string"
                          },
                          "endedAt": {
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "required": [
                          "projectId",
                          "pointsDestinationAddress",
                          "referrerAddress",
                          "startAt",
                          "endedAt"
                        ]
                      }
                    }
                  },
                  "required": [
                    "projectId",
                    "pointsDestinationAddress",
                    "referrals"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/reports": {
      "post": {
        "tags": [
          "Referrals"
        ],
        "summary": "Report a deposit",
        "description": "Stores a signed report about one deposit log. Campaign admins can read reports and mark them ignored.\n\n**Authorization:** a typed-data (EIP-712) signature of kind `report` in the request body. The exact message is in the `x-altar-signature` extension and in the signing guide. The signed timestamp must be no older than 60 minutes and no more than 5 minutes in the future.",
        "x-altar-auth": "signature",
        "x-altar-signature": {
          "kind": "report",
          "domain": {
            "name": "ProveX",
            "version": "1",
            "chainId": 1,
            "verifyingContract": "0x0000000000000000000000000000000000000000"
          },
          "primaryType": "Report",
          "types": {
            "Report": [
              {
                "name": "projectId",
                "type": "string"
              },
              {
                "name": "networkType",
                "type": "string"
              },
              {
                "name": "chainId",
                "type": "uint256"
              },
              {
                "name": "blockHash",
                "type": "string"
              },
              {
                "name": "tokenAddress",
                "type": "string"
              },
              {
                "name": "transactionHash",
                "type": "string"
              },
              {
                "name": "logIndex",
                "type": "uint32"
              },
              {
                "name": "logType",
                "type": "string"
              },
              {
                "name": "timestamp",
                "type": "uint256"
              },
              {
                "name": "message",
                "type": "string"
              }
            ]
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "signature": {
                    "type": "string",
                    "pattern": "^0x[0-9a-fA-F]*$",
                    "description": "A 0x-prefixed hexadecimal string."
                  },
                  "inputs": {
                    "type": "object",
                    "properties": {
                      "networkType": {
                        "type": "string"
                      },
                      "chainId": {
                        "type": "object",
                        "properties": {
                          "__type__": {
                            "type": "string",
                            "enum": [
                              "bigint"
                            ]
                          },
                          "value": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "__type__",
                          "value"
                        ]
                      },
                      "blockHash": {
                        "type": "string"
                      },
                      "tokenAddress": {
                        "type": "string"
                      },
                      "logIndex": {
                        "type": "number"
                      },
                      "logType": {
                        "type": "string",
                        "enum": [
                          "native",
                          "token",
                          "mutation"
                        ]
                      },
                      "transactionHash": {
                        "type": "string"
                      },
                      "message": {
                        "type": "string"
                      },
                      "timestamp": {
                        "type": "object",
                        "properties": {
                          "__type__": {
                            "type": "string",
                            "enum": [
                              "bigint"
                            ]
                          },
                          "value": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "__type__",
                          "value"
                        ]
                      },
                      "projectId": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "networkType",
                      "chainId",
                      "blockHash",
                      "tokenAddress",
                      "logIndex",
                      "logType",
                      "transactionHash",
                      "message",
                      "timestamp",
                      "projectId"
                    ]
                  }
                },
                "required": [
                  "signature",
                  "inputs"
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The report was stored.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    },
                    "projectId": {
                      "type": "string"
                    },
                    "networkType": {
                      "type": "string"
                    },
                    "chainId": {
                      "type": "number"
                    },
                    "blockHash": {
                      "type": "string"
                    },
                    "tokenAddress": {
                      "type": "string"
                    },
                    "logIndex": {
                      "type": "number"
                    },
                    "logType": {
                      "type": "string",
                      "enum": [
                        "native",
                        "token",
                        "mutation"
                      ]
                    },
                    "transactionHash": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "success",
                    "projectId",
                    "networkType",
                    "chainId",
                    "blockHash",
                    "tokenAddress",
                    "logIndex",
                    "logType",
                    "transactionHash",
                    "message"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The body is malformed, or the signature or timestamp format is wrong.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "The timestamp is too old, or the signature does not verify.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "The campaign does not exist.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "description": "The report could not be stored.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/markets": {
      "get": {
        "tags": [
          "Markets and utilities"
        ],
        "summary": "List the exchange markets the price sources can use",
        "description": "Returns the generated list of exchanges and their markets.\n\n**Authorization:** none.",
        "x-altar-auth": "none",
        "responses": {
          "200": {
            "description": "Markets, organized by exchange.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {}
                }
              }
            }
          },
          "500": {
            "description": "The list could not be loaded.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/markets/prices": {
      "post": {
        "tags": [
          "Markets and utilities"
        ],
        "summary": "Read live prices for exchange and market pairs",
        "description": "For each pair, returns the latest price and 24-hour volume, or null when a price source fails.\n\n**Authorization:** none.",
        "x-altar-auth": "none",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "exchange": {
                      "type": "string"
                    },
                    "market": {
                      "type": "string",
                      "minLength": 1
                    }
                  },
                  "required": [
                    "exchange",
                    "market"
                  ]
                },
                "minItems": 1,
                "maxItems": 200
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "One result per requested pair, in order.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "exchange": {
                        "type": "string"
                      },
                      "market": {
                        "type": "string"
                      },
                      "price": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "volume24h": {
                        "type": [
                          "string",
                          "null"
                        ]
                      }
                    },
                    "required": [
                      "exchange",
                      "market",
                      "price",
                      "volume24h"
                    ]
                  }
                }
              }
            }
          },
          "400": {
            "description": "Validation failed.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "details": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "path": {
                            "type": "string"
                          },
                          "message": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "path",
                          "message"
                        ]
                      }
                    }
                  },
                  "required": [
                    "error",
                    "details"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/utils/convert-tron-address": {
      "get": {
        "tags": [
          "Markets and utilities"
        ],
        "summary": "Convert a Tron address to hex",
        "description": "Converts a base58 Tron address to its lowercase hex form.\n\n**Authorization:** none.",
        "x-altar-auth": "none",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "A Tron address."
            },
            "required": true,
            "description": "A Tron address.",
            "name": "address",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "The converted address.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "tronAddress": {
                      "type": "string"
                    },
                    "hexAddress": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "tronAddress",
                    "hexAddress"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The address is missing or not a valid Tron address.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/admin/projects": {
      "post": {
        "tags": [
          "Campaign admin"
        ],
        "summary": "List the campaigns you administer",
        "description": "Returns every campaign where the signer holds a role.\n\n**Authorization:** a typed-data (EIP-712) signature of kind `adminRead` in the request body. The exact message is in the `x-altar-signature` extension and in the signing guide. The signed timestamp must be no older than 60 minutes and no more than 5 minutes in the future.",
        "x-altar-auth": "signature",
        "x-altar-signature": {
          "kind": "adminRead",
          "domain": {
            "name": "ProveX",
            "version": "1",
            "chainId": 1,
            "verifyingContract": "0x0000000000000000000000000000000000000000"
          },
          "primaryType": "AdminRead",
          "types": {
            "AdminRead": [
              {
                "name": "purpose",
                "type": "string"
              },
              {
                "name": "projectId",
                "type": "string"
              },
              {
                "name": "timestamp",
                "type": "uint256"
              }
            ]
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "signature": {
                    "type": "string",
                    "pattern": "^0x[0-9a-fA-F]*$",
                    "description": "A 0x-prefixed hexadecimal string."
                  },
                  "inputs": {
                    "type": "object",
                    "properties": {
                      "timestamp": {
                        "type": "object",
                        "properties": {
                          "__type__": {
                            "type": "string",
                            "enum": [
                              "bigint"
                            ]
                          },
                          "value": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "__type__",
                          "value"
                        ]
                      }
                    },
                    "required": [
                      "timestamp"
                    ]
                  },
                  "projectId": {
                    "type": "string"
                  }
                },
                "required": [
                  "signature",
                  "inputs",
                  "projectId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "projectId": {
                        "type": "string"
                      },
                      "projectName": {
                        "type": "string"
                      },
                      "projectDescription": {
                        "type": "string"
                      },
                      "projectWebsite": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "projectLogo": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "role": {
                        "type": "string"
                      },
                      "createdAt": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "projectId",
                      "projectName",
                      "projectDescription",
                      "projectWebsite",
                      "projectLogo",
                      "role",
                      "createdAt"
                    ]
                  }
                }
              }
            }
          },
          "400": {
            "description": "The body is malformed, or the signature or timestamp format is wrong.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "The timestamp is too old, or the signature does not verify.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "The signer is not an admin of this campaign.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/admin/project": {
      "post": {
        "tags": [
          "Campaign admin"
        ],
        "summary": "Read the full admin view of a campaign",
        "description": "Returns settings, networks, tokens, price sources, roles, and address readiness.\n\n**Authorization:** a typed-data (EIP-712) signature of kind `adminRead` in the request body. The exact message is in the `x-altar-signature` extension and in the signing guide. The signed timestamp must be no older than 60 minutes and no more than 5 minutes in the future.",
        "x-altar-auth": "signature",
        "x-altar-signature": {
          "kind": "adminRead",
          "domain": {
            "name": "ProveX",
            "version": "1",
            "chainId": 1,
            "verifyingContract": "0x0000000000000000000000000000000000000000"
          },
          "primaryType": "AdminRead",
          "types": {
            "AdminRead": [
              {
                "name": "purpose",
                "type": "string"
              },
              {
                "name": "projectId",
                "type": "string"
              },
              {
                "name": "timestamp",
                "type": "uint256"
              }
            ]
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "signature": {
                    "type": "string",
                    "pattern": "^0x[0-9a-fA-F]*$",
                    "description": "A 0x-prefixed hexadecimal string."
                  },
                  "inputs": {
                    "type": "object",
                    "properties": {
                      "timestamp": {
                        "type": "object",
                        "properties": {
                          "__type__": {
                            "type": "string",
                            "enum": [
                              "bigint"
                            ]
                          },
                          "value": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "__type__",
                          "value"
                        ]
                      }
                    },
                    "required": [
                      "timestamp"
                    ]
                  },
                  "projectId": {
                    "type": "string"
                  }
                },
                "required": [
                  "signature",
                  "inputs",
                  "projectId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "project": {
                      "type": "object",
                      "properties": {
                        "projectId": {
                          "type": "string"
                        },
                        "projectName": {
                          "type": "string"
                        },
                        "projectDescription": {
                          "type": "string"
                        },
                        "projectDisclaimerShort": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "projectDisclaimerLong": {
                          "type": "string",
                          "default": ""
                        },
                        "projectWebsite": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "projectLogo": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "projectTagline": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "projectAccentColor": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "projectAccentColorVariant": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "projectBanner": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "projectSocialLinks": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "platform": {
                                "type": "string",
                                "minLength": 1
                              },
                              "url": {
                                "type": "string",
                                "format": "uri"
                              }
                            },
                            "required": [
                              "platform",
                              "url"
                            ]
                          },
                          "default": []
                        },
                        "projectTags": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "default": []
                        },
                        "startTime": {
                          "type": "string"
                        },
                        "inflectionTime": {
                          "type": "string"
                        },
                        "endTime": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "createdAt": {
                          "type": "string"
                        },
                        "countEarlySacrifices": {
                          "type": "boolean"
                        },
                        "flatBonusRate": {
                          "type": "string"
                        },
                        "decayRateSingleStep": {
                          "type": "string"
                        },
                        "decaySingleStepDelaySeconds": {
                          "type": "string"
                        },
                        "volumeBonusRate": {
                          "type": "string"
                        },
                        "usdToPointBaseRate": {
                          "type": "string"
                        },
                        "volumeBonusCutoff": {
                          "type": "number"
                        },
                        "flatBonusCutoff": {
                          "type": "number"
                        },
                        "referralRate": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "disabled": {
                          "type": "boolean"
                        },
                        "updatedAt": {
                          "type": "string"
                        },
                        "useInflectionStepOne": {
                          "type": "boolean"
                        },
                        "cexAddresses": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "incrementMode": {
                          "type": "string"
                        },
                        "registryAddress": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "registryChainId": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "exclusiveMinimum": 0,
                          "default": null
                        }
                      },
                      "required": [
                        "projectId",
                        "projectName",
                        "projectDescription",
                        "projectDisclaimerShort",
                        "projectWebsite",
                        "projectLogo",
                        "projectTagline",
                        "projectAccentColor",
                        "projectAccentColorVariant",
                        "projectBanner",
                        "startTime",
                        "inflectionTime",
                        "endTime",
                        "createdAt",
                        "countEarlySacrifices",
                        "flatBonusRate",
                        "decayRateSingleStep",
                        "decaySingleStepDelaySeconds",
                        "volumeBonusRate",
                        "usdToPointBaseRate",
                        "volumeBonusCutoff",
                        "flatBonusCutoff",
                        "referralRate",
                        "disabled",
                        "updatedAt",
                        "useInflectionStepOne",
                        "cexAddresses",
                        "incrementMode",
                        "registryAddress"
                      ]
                    },
                    "roles": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "role": {
                            "type": "string",
                            "enum": [
                              "admin"
                            ]
                          },
                          "projectId": {
                            "type": "string"
                          },
                          "address": {
                            "type": "string"
                          },
                          "createdAt": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "role",
                          "projectId",
                          "address",
                          "createdAt"
                        ]
                      }
                    },
                    "networks": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "networkType": {
                            "type": "string"
                          },
                          "chainId": {
                            "type": "number"
                          },
                          "projectId": {
                            "type": "string"
                          },
                          "networkName": {
                            "type": "string"
                          },
                          "lowerRange": {
                            "type": [
                              "number",
                              "null"
                            ]
                          },
                          "upperRange": {
                            "type": [
                              "number",
                              "null"
                            ]
                          },
                          "lastFinalizedBlock": {
                            "type": [
                              "number",
                              "null"
                            ]
                          },
                          "lowestBlock": {
                            "type": "number"
                          },
                          "highestBlock": {
                            "type": [
                              "number",
                              "null"
                            ]
                          },
                          "rootAddress": {
                            "type": "string"
                          },
                          "rpcUrls": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "nextIndex": {
                            "type": "number"
                          },
                          "publicationMode": {
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "required": [
                          "networkType",
                          "chainId",
                          "projectId",
                          "networkName",
                          "lowerRange",
                          "upperRange",
                          "lastFinalizedBlock",
                          "lowestBlock",
                          "highestBlock",
                          "rootAddress",
                          "rpcUrls",
                          "nextIndex"
                        ]
                      }
                    },
                    "priceSources": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "projectId": {
                            "type": "string"
                          },
                          "networkType": {
                            "type": "string"
                          },
                          "chainId": {
                            "type": "number"
                          },
                          "tokenAddress": {
                            "type": "string"
                          },
                          "source": {
                            "type": "string"
                          },
                          "market": {
                            "type": "string"
                          },
                          "searchable": {
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "required": [
                          "projectId",
                          "networkType",
                          "chainId",
                          "tokenAddress",
                          "source",
                          "market",
                          "searchable"
                        ]
                      }
                    },
                    "globalNetworks": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "networkType": {
                            "type": "string"
                          },
                          "chainId": {
                            "type": "number"
                          },
                          "networkName": {
                            "type": "string"
                          },
                          "collectorKey": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "networkType",
                          "chainId",
                          "networkName",
                          "collectorKey"
                        ]
                      }
                    },
                    "exchangesByRank": {
                      "type": "object",
                      "properties": {
                        "ccxt": {
                          "type": "array",
                          "items": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "enum": [
                                "alpaca",
                                "apex",
                                "arkham",
                                "ascendex",
                                "backpack",
                                "bequant",
                                "bigone",
                                "binance",
                                "binancecoinm",
                                "binanceus",
                                "binanceusdm",
                                "bingx",
                                "bit2c",
                                "bitbank",
                                "bitbns",
                                "bitfinex",
                                "bitflyer",
                                "bitget",
                                "bithumb",
                                "bitmart",
                                "bitmex",
                                "bitopro",
                                "bitrue",
                                "bitso",
                                "bitstamp",
                                "bitteam",
                                "bittrade",
                                "bitvavo",
                                "blockchaincom",
                                "blofin",
                                "btcalpha",
                                "btcbox",
                                "btcmarkets",
                                "btcturk",
                                "bybit",
                                "cex",
                                "coinbase",
                                "coinbaseadvanced",
                                "coinbaseexchange",
                                "coinbaseinternational",
                                "coincatch",
                                "coincheck",
                                "coinex",
                                "coinmate",
                                "coinmetro",
                                "coinone",
                                "coinsph",
                                "coinspot",
                                "cryptocom",
                                "cryptomus",
                                "defx",
                                "delta",
                                "deribit",
                                "derive",
                                "digifinex",
                                "exmo",
                                "fmfwio",
                                "foxbit",
                                "gate",
                                "gateio",
                                "gemini",
                                "hashkey",
                                "hibachi",
                                "hitbtc",
                                "hollaex",
                                "htx",
                                "huobi",
                                "hyperliquid",
                                "independentreserve",
                                "indodax",
                                "kraken",
                                "krakenfutures",
                                "kucoin",
                                "kucoinfutures",
                                "latoken",
                                "lbank",
                                "luno",
                                "mercado",
                                "mexc",
                                "modetrade",
                                "myokx",
                                "ndax",
                                "novadax",
                                "oceanex",
                                "okx",
                                "okxus",
                                "onetrading",
                                "oxfun",
                                "p2b",
                                "paradex",
                                "paymium",
                                "phemex",
                                "poloniex",
                                "probit",
                                "timex",
                                "tokocrypto",
                                "toobit",
                                "upbit",
                                "wavesexchange",
                                "whitebit",
                                "woo",
                                "woofipro",
                                "xt",
                                "yobit",
                                "zaif",
                                "zonda"
                              ]
                            }
                          }
                        },
                        "dex": {
                          "type": "array",
                          "items": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "enum": [
                                "pulsexv2_xyk",
                                "pulsex_xyk"
                              ]
                            }
                          }
                        },
                        "stable": {
                          "type": "array",
                          "items": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "enum": [
                                ""
                              ]
                            }
                          }
                        }
                      },
                      "required": [
                        "ccxt",
                        "dex",
                        "stable"
                      ]
                    },
                    "addressReadiness": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "networkType": {
                            "type": "string"
                          },
                          "chainId": {
                            "type": "number"
                          },
                          "generated": {
                            "type": "number"
                          },
                          "committedRanges": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "rangeStart": {
                                  "type": "number"
                                },
                                "count": {
                                  "type": "number"
                                },
                                "merkleRoot": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "rangeStart",
                                "count",
                                "merkleRoot"
                              ]
                            },
                            "default": []
                          },
                          "anchoredRanges": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "rangeStart": {
                                  "type": "number"
                                },
                                "count": {
                                  "type": "number"
                                },
                                "root": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "rangeStart",
                                "count",
                                "root"
                              ]
                            },
                            "default": []
                          }
                        },
                        "required": [
                          "networkType",
                          "chainId",
                          "generated"
                        ]
                      }
                    },
                    "registryChainId": {
                      "type": [
                        "number",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "project",
                    "roles",
                    "networks",
                    "priceSources",
                    "globalNetworks",
                    "exchangesByRank",
                    "addressReadiness"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The body is malformed, or the signature or timestamp format is wrong.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "The timestamp is too old, or the signature does not verify.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "The signer is not an admin of this campaign.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/admin/campaign/export": {
      "post": {
        "tags": [
          "Campaign admin"
        ],
        "summary": "Export a campaign configuration",
        "description": "Returns the campaign as a configuration artifact that another instance can import.\n\n**Authorization:** a typed-data (EIP-712) signature of kind `adminRead` in the request body. The exact message is in the `x-altar-signature` extension and in the signing guide. The signed timestamp must be no older than 60 minutes and no more than 5 minutes in the future.",
        "x-altar-auth": "signature",
        "x-altar-signature": {
          "kind": "adminRead",
          "domain": {
            "name": "ProveX",
            "version": "1",
            "chainId": 1,
            "verifyingContract": "0x0000000000000000000000000000000000000000"
          },
          "primaryType": "AdminRead",
          "types": {
            "AdminRead": [
              {
                "name": "purpose",
                "type": "string"
              },
              {
                "name": "projectId",
                "type": "string"
              },
              {
                "name": "timestamp",
                "type": "uint256"
              }
            ]
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "signature": {
                    "type": "string",
                    "pattern": "^0x[0-9a-fA-F]*$",
                    "description": "A 0x-prefixed hexadecimal string."
                  },
                  "inputs": {
                    "type": "object",
                    "properties": {
                      "timestamp": {
                        "type": "object",
                        "properties": {
                          "__type__": {
                            "type": "string",
                            "enum": [
                              "bigint"
                            ]
                          },
                          "value": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "__type__",
                          "value"
                        ]
                      }
                    },
                    "required": [
                      "timestamp"
                    ]
                  },
                  "projectId": {
                    "type": "string"
                  }
                },
                "required": [
                  "signature",
                  "inputs",
                  "projectId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "formatVersion": {
                      "type": "number",
                      "enum": [
                        1
                      ]
                    },
                    "identity": {
                      "type": "object",
                      "properties": {
                        "projectId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "projectName": {
                          "type": "string"
                        },
                        "projectDescription": {
                          "type": "string"
                        },
                        "projectTagline": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "projectWebsite": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "projectLogo": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "projectBanner": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "projectAccentColor": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "projectAccentColorVariant": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "projectDisclaimerShort": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "projectDisclaimerLong": {
                          "type": "string"
                        },
                        "projectSocialLinks": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "platform": {
                                "type": "string",
                                "minLength": 1
                              },
                              "url": {
                                "type": "string",
                                "format": "uri"
                              }
                            },
                            "required": [
                              "platform",
                              "url"
                            ]
                          }
                        },
                        "projectTags": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "required": [
                        "projectId",
                        "projectName",
                        "projectDescription",
                        "projectTagline",
                        "projectWebsite",
                        "projectLogo",
                        "projectBanner",
                        "projectAccentColor",
                        "projectAccentColorVariant",
                        "projectDisclaimerShort",
                        "projectDisclaimerLong",
                        "projectSocialLinks",
                        "projectTags"
                      ]
                    },
                    "schedule": {
                      "type": "object",
                      "properties": {
                        "startTime": {
                          "type": "string",
                          "pattern": "^\\d+$"
                        },
                        "inflectionTime": {
                          "type": "string",
                          "pattern": "^\\d+$"
                        },
                        "endTime": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "pattern": "^\\d+$"
                        }
                      },
                      "required": [
                        "startTime",
                        "inflectionTime",
                        "endTime"
                      ]
                    },
                    "curve": {
                      "type": "object",
                      "properties": {
                        "decayRateSingleStep": {
                          "type": "string"
                        },
                        "decaySingleStepDelaySeconds": {
                          "type": "string"
                        },
                        "volumeBonusRate": {
                          "type": "string"
                        },
                        "volumeBonusCutoff": {
                          "type": "integer"
                        },
                        "flatBonusRate": {
                          "type": "string"
                        },
                        "flatBonusCutoff": {
                          "type": "integer"
                        },
                        "usdToPointBaseRate": {
                          "type": "string"
                        },
                        "referralRate": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "countEarlySacrifices": {
                          "type": "boolean"
                        },
                        "useInflectionStepOne": {
                          "type": "boolean"
                        },
                        "priceValidFromTimestamp": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "decayRateSingleStep",
                        "decaySingleStepDelaySeconds",
                        "volumeBonusRate",
                        "volumeBonusCutoff",
                        "flatBonusRate",
                        "flatBonusCutoff",
                        "usdToPointBaseRate",
                        "referralRate",
                        "countEarlySacrifices",
                        "useInflectionStepOne",
                        "priceValidFromTimestamp"
                      ]
                    },
                    "networks": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "networkType": {
                            "type": "string",
                            "enum": [
                              "evm",
                              "memo",
                              "tvm",
                              "bip32",
                              "solana",
                              "monero",
                              "cardano"
                            ]
                          },
                          "chainId": {
                            "type": "integer"
                          },
                          "networkName": {
                            "type": "string"
                          },
                          "rootAddress": {
                            "type": "string"
                          },
                          "lowerRange": {
                            "type": [
                              "integer",
                              "null"
                            ]
                          },
                          "upperRange": {
                            "type": [
                              "integer",
                              "null"
                            ]
                          },
                          "rpcUrls": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "disabled": {
                            "type": "boolean"
                          },
                          "publicationMode": {
                            "type": "string",
                            "enum": [
                              "backend-live",
                              "published-pool"
                            ]
                          }
                        },
                        "required": [
                          "networkType",
                          "chainId",
                          "networkName",
                          "rootAddress",
                          "lowerRange",
                          "upperRange",
                          "rpcUrls",
                          "disabled"
                        ]
                      }
                    },
                    "priceSources": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "networkType": {
                            "type": "string"
                          },
                          "chainId": {
                            "type": "number"
                          },
                          "tokenAddress": {
                            "type": "string"
                          },
                          "source": {
                            "type": "string"
                          },
                          "market": {
                            "type": "string"
                          },
                          "searchable": {
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "required": [
                          "networkType",
                          "chainId",
                          "tokenAddress",
                          "source",
                          "market",
                          "searchable"
                        ]
                      }
                    },
                    "cexAddresses": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "dimensions": {
                      "type": "object",
                      "properties": {
                        "networkFilters": {
                          "type": "object",
                          "properties": {
                            "mode": {
                              "type": "string",
                              "enum": [
                                "all",
                                "any"
                              ]
                            },
                            "not": {
                              "type": "boolean"
                            },
                            "filters": {
                              "type": "array",
                              "items": {
                                "oneOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "kind": {
                                        "type": "string",
                                        "enum": [
                                          "networkType"
                                        ]
                                      },
                                      "networkTypes": {
                                        "type": "array",
                                        "items": {
                                          "type": "string",
                                          "enum": [
                                            "evm",
                                            "memo",
                                            "tvm",
                                            "bip32",
                                            "solana",
                                            "monero",
                                            "cardano"
                                          ]
                                        }
                                      }
                                    },
                                    "required": [
                                      "kind",
                                      "networkTypes"
                                    ]
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "kind": {
                                        "type": "string",
                                        "enum": [
                                          "chainId"
                                        ]
                                      },
                                      "chains": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "networkType": {
                                              "type": "string",
                                              "enum": [
                                                "evm",
                                                "memo",
                                                "tvm",
                                                "bip32",
                                                "solana",
                                                "monero",
                                                "cardano"
                                              ]
                                            },
                                            "chainId": {
                                              "type": "integer"
                                            }
                                          },
                                          "required": [
                                            "networkType",
                                            "chainId"
                                          ]
                                        }
                                      }
                                    },
                                    "required": [
                                      "kind",
                                      "chains"
                                    ]
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "kind": {
                                        "type": "string",
                                        "enum": [
                                          "tag"
                                        ]
                                      },
                                      "tags": {
                                        "type": "array",
                                        "items": {
                                          "type": "string"
                                        }
                                      }
                                    },
                                    "required": [
                                      "kind",
                                      "tags"
                                    ]
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "kind": {
                                        "type": "string",
                                        "enum": [
                                          "priceSource"
                                        ]
                                      },
                                      "sources": {
                                        "type": "array",
                                        "items": {
                                          "type": "string",
                                          "enum": [
                                            "stable",
                                            "ccxt",
                                            "dex"
                                          ]
                                        }
                                      }
                                    },
                                    "required": [
                                      "kind",
                                      "sources"
                                    ]
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "kind": {
                                        "type": "string",
                                        "enum": [
                                          "symbol"
                                        ]
                                      },
                                      "symbols": {
                                        "type": "array",
                                        "items": {
                                          "type": "string"
                                        }
                                      }
                                    },
                                    "required": [
                                      "kind",
                                      "symbols"
                                    ]
                                  }
                                ]
                              }
                            }
                          },
                          "required": [
                            "mode",
                            "filters"
                          ]
                        },
                        "tokenFilters": {
                          "type": "object",
                          "properties": {
                            "mode": {
                              "type": "string",
                              "enum": [
                                "all",
                                "any"
                              ]
                            },
                            "not": {
                              "type": "boolean"
                            },
                            "filters": {
                              "type": "array",
                              "items": {
                                "oneOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "kind": {
                                        "type": "string",
                                        "enum": [
                                          "networkType"
                                        ]
                                      },
                                      "networkTypes": {
                                        "type": "array",
                                        "items": {
                                          "type": "string",
                                          "enum": [
                                            "evm",
                                            "memo",
                                            "tvm",
                                            "bip32",
                                            "solana",
                                            "monero",
                                            "cardano"
                                          ]
                                        }
                                      }
                                    },
                                    "required": [
                                      "kind",
                                      "networkTypes"
                                    ]
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "kind": {
                                        "type": "string",
                                        "enum": [
                                          "chainId"
                                        ]
                                      },
                                      "chains": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "networkType": {
                                              "type": "string",
                                              "enum": [
                                                "evm",
                                                "memo",
                                                "tvm",
                                                "bip32",
                                                "solana",
                                                "monero",
                                                "cardano"
                                              ]
                                            },
                                            "chainId": {
                                              "type": "integer"
                                            }
                                          },
                                          "required": [
                                            "networkType",
                                            "chainId"
                                          ]
                                        }
                                      }
                                    },
                                    "required": [
                                      "kind",
                                      "chains"
                                    ]
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "kind": {
                                        "type": "string",
                                        "enum": [
                                          "tag"
                                        ]
                                      },
                                      "tags": {
                                        "type": "array",
                                        "items": {
                                          "type": "string"
                                        }
                                      }
                                    },
                                    "required": [
                                      "kind",
                                      "tags"
                                    ]
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "kind": {
                                        "type": "string",
                                        "enum": [
                                          "priceSource"
                                        ]
                                      },
                                      "sources": {
                                        "type": "array",
                                        "items": {
                                          "type": "string",
                                          "enum": [
                                            "stable",
                                            "ccxt",
                                            "dex"
                                          ]
                                        }
                                      }
                                    },
                                    "required": [
                                      "kind",
                                      "sources"
                                    ]
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "kind": {
                                        "type": "string",
                                        "enum": [
                                          "symbol"
                                        ]
                                      },
                                      "symbols": {
                                        "type": "array",
                                        "items": {
                                          "type": "string"
                                        }
                                      }
                                    },
                                    "required": [
                                      "kind",
                                      "symbols"
                                    ]
                                  }
                                ]
                              }
                            }
                          },
                          "required": [
                            "mode",
                            "filters"
                          ]
                        }
                      },
                      "required": [
                        "networkFilters",
                        "tokenFilters"
                      ]
                    },
                    "genesis": {
                      "type": "object",
                      "properties": {
                        "incrementMode": {
                          "type": "string",
                          "enum": [
                            "onchain",
                            "offchain"
                          ]
                        },
                        "registryAddress": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "registryProjectKey": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "incrementMode",
                        "registryAddress",
                        "registryProjectKey"
                      ]
                    }
                  },
                  "required": [
                    "formatVersion",
                    "identity",
                    "schedule",
                    "curve",
                    "networks",
                    "priceSources",
                    "cexAddresses"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The body is malformed, or the signature or timestamp format is wrong.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "The timestamp is too old, or the signature does not verify.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "The signer is not an admin of this campaign.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/admin/campaign/import": {
      "post": {
        "tags": [
          "Campaign admin"
        ],
        "summary": "Create a campaign from a configuration artifact",
        "description": "Creates a whole campaign in one step. The signature covers the canonical configuration text, so it cannot be reused for another configuration. The signer becomes the sole admin.\n\n**Authorization:** a typed-data (EIP-712) signature of kind `campaignImport` in the request body. The exact message is in the `x-altar-signature` extension and in the signing guide. The signed timestamp must be no older than 60 minutes and no more than 5 minutes in the future.",
        "x-altar-auth": "signature",
        "x-altar-signature": {
          "kind": "campaignImport",
          "domain": {
            "name": "ProveX",
            "version": "1",
            "chainId": 1,
            "verifyingContract": "0x0000000000000000000000000000000000000000"
          },
          "primaryType": "CampaignImport",
          "types": {
            "CampaignImport": [
              {
                "name": "config",
                "type": "string"
              },
              {
                "name": "timestamp",
                "type": "uint256"
              }
            ]
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "signature": {
                    "type": "string",
                    "pattern": "^0x[0-9a-fA-F]*$",
                    "description": "A 0x-prefixed hexadecimal string."
                  },
                  "inputs": {
                    "type": "object",
                    "properties": {
                      "timestamp": {
                        "type": "object",
                        "properties": {
                          "__type__": {
                            "type": "string",
                            "enum": [
                              "bigint"
                            ]
                          },
                          "value": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "__type__",
                          "value"
                        ]
                      }
                    },
                    "required": [
                      "timestamp"
                    ]
                  },
                  "config": {
                    "type": "object",
                    "properties": {
                      "formatVersion": {
                        "type": "number",
                        "enum": [
                          1
                        ]
                      },
                      "identity": {
                        "type": "object",
                        "properties": {
                          "projectId": {
                            "type": "string",
                            "minLength": 1
                          },
                          "projectName": {
                            "type": "string"
                          },
                          "projectDescription": {
                            "type": "string"
                          },
                          "projectTagline": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "projectWebsite": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "projectLogo": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "projectBanner": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "projectAccentColor": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "projectAccentColorVariant": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "projectDisclaimerShort": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "projectDisclaimerLong": {
                            "type": "string"
                          },
                          "projectSocialLinks": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "platform": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "url": {
                                  "type": "string",
                                  "format": "uri"
                                }
                              },
                              "required": [
                                "platform",
                                "url"
                              ]
                            }
                          },
                          "projectTags": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        },
                        "required": [
                          "projectId",
                          "projectName",
                          "projectDescription",
                          "projectTagline",
                          "projectWebsite",
                          "projectLogo",
                          "projectBanner",
                          "projectAccentColor",
                          "projectAccentColorVariant",
                          "projectDisclaimerShort",
                          "projectDisclaimerLong",
                          "projectSocialLinks",
                          "projectTags"
                        ]
                      },
                      "schedule": {
                        "type": "object",
                        "properties": {
                          "startTime": {
                            "type": "string",
                            "pattern": "^\\d+$"
                          },
                          "inflectionTime": {
                            "type": "string",
                            "pattern": "^\\d+$"
                          },
                          "endTime": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "pattern": "^\\d+$"
                          }
                        },
                        "required": [
                          "startTime",
                          "inflectionTime",
                          "endTime"
                        ]
                      },
                      "curve": {
                        "type": "object",
                        "properties": {
                          "decayRateSingleStep": {
                            "type": "string"
                          },
                          "decaySingleStepDelaySeconds": {
                            "type": "string"
                          },
                          "volumeBonusRate": {
                            "type": "string"
                          },
                          "volumeBonusCutoff": {
                            "type": "integer"
                          },
                          "flatBonusRate": {
                            "type": "string"
                          },
                          "flatBonusCutoff": {
                            "type": "integer"
                          },
                          "usdToPointBaseRate": {
                            "type": "string"
                          },
                          "referralRate": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "countEarlySacrifices": {
                            "type": "boolean"
                          },
                          "useInflectionStepOne": {
                            "type": "boolean"
                          },
                          "priceValidFromTimestamp": {
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "required": [
                          "decayRateSingleStep",
                          "decaySingleStepDelaySeconds",
                          "volumeBonusRate",
                          "volumeBonusCutoff",
                          "flatBonusRate",
                          "flatBonusCutoff",
                          "usdToPointBaseRate",
                          "referralRate",
                          "countEarlySacrifices",
                          "useInflectionStepOne",
                          "priceValidFromTimestamp"
                        ]
                      },
                      "networks": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "networkType": {
                              "type": "string",
                              "enum": [
                                "evm",
                                "memo",
                                "tvm",
                                "bip32",
                                "solana",
                                "monero",
                                "cardano"
                              ]
                            },
                            "chainId": {
                              "type": "integer"
                            },
                            "networkName": {
                              "type": "string"
                            },
                            "rootAddress": {
                              "type": "string"
                            },
                            "lowerRange": {
                              "type": [
                                "integer",
                                "null"
                              ]
                            },
                            "upperRange": {
                              "type": [
                                "integer",
                                "null"
                              ]
                            },
                            "rpcUrls": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "disabled": {
                              "type": "boolean"
                            },
                            "publicationMode": {
                              "type": "string",
                              "enum": [
                                "backend-live",
                                "published-pool"
                              ]
                            }
                          },
                          "required": [
                            "networkType",
                            "chainId",
                            "networkName",
                            "rootAddress",
                            "lowerRange",
                            "upperRange",
                            "rpcUrls",
                            "disabled"
                          ]
                        }
                      },
                      "priceSources": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "networkType": {
                              "type": "string"
                            },
                            "chainId": {
                              "type": "number"
                            },
                            "tokenAddress": {
                              "type": "string"
                            },
                            "source": {
                              "type": "string"
                            },
                            "market": {
                              "type": "string"
                            },
                            "searchable": {
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "networkType",
                            "chainId",
                            "tokenAddress",
                            "source",
                            "market",
                            "searchable"
                          ]
                        }
                      },
                      "cexAddresses": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "dimensions": {
                        "type": "object",
                        "properties": {
                          "networkFilters": {
                            "type": "object",
                            "properties": {
                              "mode": {
                                "type": "string",
                                "enum": [
                                  "all",
                                  "any"
                                ]
                              },
                              "not": {
                                "type": "boolean"
                              },
                              "filters": {
                                "type": "array",
                                "items": {
                                  "oneOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "kind": {
                                          "type": "string",
                                          "enum": [
                                            "networkType"
                                          ]
                                        },
                                        "networkTypes": {
                                          "type": "array",
                                          "items": {
                                            "type": "string",
                                            "enum": [
                                              "evm",
                                              "memo",
                                              "tvm",
                                              "bip32",
                                              "solana",
                                              "monero",
                                              "cardano"
                                            ]
                                          }
                                        }
                                      },
                                      "required": [
                                        "kind",
                                        "networkTypes"
                                      ]
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "kind": {
                                          "type": "string",
                                          "enum": [
                                            "chainId"
                                          ]
                                        },
                                        "chains": {
                                          "type": "array",
                                          "items": {
                                            "type": "object",
                                            "properties": {
                                              "networkType": {
                                                "type": "string",
                                                "enum": [
                                                  "evm",
                                                  "memo",
                                                  "tvm",
                                                  "bip32",
                                                  "solana",
                                                  "monero",
                                                  "cardano"
                                                ]
                                              },
                                              "chainId": {
                                                "type": "integer"
                                              }
                                            },
                                            "required": [
                                              "networkType",
                                              "chainId"
                                            ]
                                          }
                                        }
                                      },
                                      "required": [
                                        "kind",
                                        "chains"
                                      ]
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "kind": {
                                          "type": "string",
                                          "enum": [
                                            "tag"
                                          ]
                                        },
                                        "tags": {
                                          "type": "array",
                                          "items": {
                                            "type": "string"
                                          }
                                        }
                                      },
                                      "required": [
                                        "kind",
                                        "tags"
                                      ]
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "kind": {
                                          "type": "string",
                                          "enum": [
                                            "priceSource"
                                          ]
                                        },
                                        "sources": {
                                          "type": "array",
                                          "items": {
                                            "type": "string",
                                            "enum": [
                                              "stable",
                                              "ccxt",
                                              "dex"
                                            ]
                                          }
                                        }
                                      },
                                      "required": [
                                        "kind",
                                        "sources"
                                      ]
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "kind": {
                                          "type": "string",
                                          "enum": [
                                            "symbol"
                                          ]
                                        },
                                        "symbols": {
                                          "type": "array",
                                          "items": {
                                            "type": "string"
                                          }
                                        }
                                      },
                                      "required": [
                                        "kind",
                                        "symbols"
                                      ]
                                    }
                                  ]
                                }
                              }
                            },
                            "required": [
                              "mode",
                              "filters"
                            ]
                          },
                          "tokenFilters": {
                            "type": "object",
                            "properties": {
                              "mode": {
                                "type": "string",
                                "enum": [
                                  "all",
                                  "any"
                                ]
                              },
                              "not": {
                                "type": "boolean"
                              },
                              "filters": {
                                "type": "array",
                                "items": {
                                  "oneOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "kind": {
                                          "type": "string",
                                          "enum": [
                                            "networkType"
                                          ]
                                        },
                                        "networkTypes": {
                                          "type": "array",
                                          "items": {
                                            "type": "string",
                                            "enum": [
                                              "evm",
                                              "memo",
                                              "tvm",
                                              "bip32",
                                              "solana",
                                              "monero",
                                              "cardano"
                                            ]
                                          }
                                        }
                                      },
                                      "required": [
                                        "kind",
                                        "networkTypes"
                                      ]
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "kind": {
                                          "type": "string",
                                          "enum": [
                                            "chainId"
                                          ]
                                        },
                                        "chains": {
                                          "type": "array",
                                          "items": {
                                            "type": "object",
                                            "properties": {
                                              "networkType": {
                                                "type": "string",
                                                "enum": [
                                                  "evm",
                                                  "memo",
                                                  "tvm",
                                                  "bip32",
                                                  "solana",
                                                  "monero",
                                                  "cardano"
                                                ]
                                              },
                                              "chainId": {
                                                "type": "integer"
                                              }
                                            },
                                            "required": [
                                              "networkType",
                                              "chainId"
                                            ]
                                          }
                                        }
                                      },
                                      "required": [
                                        "kind",
                                        "chains"
                                      ]
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "kind": {
                                          "type": "string",
                                          "enum": [
                                            "tag"
                                          ]
                                        },
                                        "tags": {
                                          "type": "array",
                                          "items": {
                                            "type": "string"
                                          }
                                        }
                                      },
                                      "required": [
                                        "kind",
                                        "tags"
                                      ]
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "kind": {
                                          "type": "string",
                                          "enum": [
                                            "priceSource"
                                          ]
                                        },
                                        "sources": {
                                          "type": "array",
                                          "items": {
                                            "type": "string",
                                            "enum": [
                                              "stable",
                                              "ccxt",
                                              "dex"
                                            ]
                                          }
                                        }
                                      },
                                      "required": [
                                        "kind",
                                        "sources"
                                      ]
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "kind": {
                                          "type": "string",
                                          "enum": [
                                            "symbol"
                                          ]
                                        },
                                        "symbols": {
                                          "type": "array",
                                          "items": {
                                            "type": "string"
                                          }
                                        }
                                      },
                                      "required": [
                                        "kind",
                                        "symbols"
                                      ]
                                    }
                                  ]
                                }
                              }
                            },
                            "required": [
                              "mode",
                              "filters"
                            ]
                          }
                        },
                        "required": [
                          "networkFilters",
                          "tokenFilters"
                        ]
                      },
                      "genesis": {
                        "type": "object",
                        "properties": {
                          "incrementMode": {
                            "type": "string",
                            "enum": [
                              "onchain",
                              "offchain"
                            ]
                          },
                          "registryAddress": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "registryProjectKey": {
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "required": [
                          "incrementMode",
                          "registryAddress",
                          "registryProjectKey"
                        ]
                      }
                    },
                    "required": [
                      "formatVersion",
                      "identity",
                      "schedule",
                      "curve",
                      "networks",
                      "priceSources",
                      "cexAddresses"
                    ]
                  }
                },
                "required": [
                  "signature",
                  "inputs",
                  "config"
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The campaign was created.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "projectId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "projectId"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The body is malformed, or the signature or timestamp format is wrong.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "The timestamp is too old, or the signature does not verify.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "409": {
            "description": "A campaign with this identifier already exists.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "description": "The campaign could not be imported.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/admin/network": {
      "post": {
        "tags": [
          "Campaign admin"
        ],
        "summary": "Add, update, or remove a network",
        "description": "The signed message names the action (`add`, `update`, or `remove`).\n\n**Authorization:** a typed-data (EIP-712) signature of kind `networkManagement` in the request body. The exact message is in the `x-altar-signature` extension and in the signing guide. The signed timestamp must be no older than 60 minutes and no more than 5 minutes in the future.",
        "x-altar-auth": "signature",
        "x-altar-signature": {
          "kind": "networkManagement",
          "domain": {
            "name": "ProveX",
            "version": "1",
            "chainId": 1,
            "verifyingContract": "0x0000000000000000000000000000000000000000"
          },
          "primaryType": "NetworkManagement",
          "types": {
            "NetworkManagement": [
              {
                "name": "projectId",
                "type": "string"
              },
              {
                "name": "networkType",
                "type": "string"
              },
              {
                "name": "chainId",
                "type": "uint256"
              },
              {
                "name": "action",
                "type": "string"
              },
              {
                "name": "timestamp",
                "type": "uint256"
              },
              {
                "name": "rootAddress",
                "type": "string"
              },
              {
                "name": "networkName",
                "type": "string"
              },
              {
                "name": "lowestBlock",
                "type": "uint256"
              },
              {
                "name": "lowerRange",
                "type": "uint256"
              },
              {
                "name": "upperRange",
                "type": "uint256"
              },
              {
                "name": "rpcUrls",
                "type": "string"
              }
            ]
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "signature": {
                    "type": "string",
                    "pattern": "^0x[0-9a-fA-F]*$",
                    "description": "A 0x-prefixed hexadecimal string."
                  },
                  "inputs": {
                    "type": "object",
                    "properties": {
                      "projectId": {
                        "type": "string"
                      },
                      "networkType": {
                        "type": "string"
                      },
                      "chainId": {
                        "type": "object",
                        "properties": {
                          "__type__": {
                            "type": "string",
                            "enum": [
                              "bigint"
                            ]
                          },
                          "value": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "__type__",
                          "value"
                        ]
                      },
                      "action": {
                        "type": "string",
                        "enum": [
                          "add",
                          "remove",
                          "update"
                        ]
                      },
                      "timestamp": {
                        "type": "object",
                        "properties": {
                          "__type__": {
                            "type": "string",
                            "enum": [
                              "bigint"
                            ]
                          },
                          "value": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "__type__",
                          "value"
                        ]
                      },
                      "rootAddress": {
                        "type": "string",
                        "default": ""
                      },
                      "networkName": {
                        "type": "string",
                        "default": ""
                      },
                      "lowestBlock": {
                        "type": "object",
                        "properties": {
                          "__type__": {
                            "type": "string",
                            "enum": [
                              "bigint"
                            ]
                          },
                          "value": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "__type__",
                          "value"
                        ]
                      },
                      "lowerRange": {
                        "type": "object",
                        "properties": {
                          "__type__": {
                            "type": "string",
                            "enum": [
                              "bigint"
                            ]
                          },
                          "value": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "__type__",
                          "value"
                        ]
                      },
                      "upperRange": {
                        "type": "object",
                        "properties": {
                          "__type__": {
                            "type": "string",
                            "enum": [
                              "bigint"
                            ]
                          },
                          "value": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "__type__",
                          "value"
                        ]
                      },
                      "rpcUrls": {
                        "type": "string",
                        "default": ""
                      }
                    },
                    "required": [
                      "projectId",
                      "networkType",
                      "chainId",
                      "action",
                      "timestamp"
                    ]
                  }
                },
                "required": [
                  "signature",
                  "inputs"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Done.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    },
                    "action": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "network": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "networkName": {
                              "type": "string"
                            },
                            "networkType": {
                              "type": "string"
                            },
                            "chainId": {
                              "type": "number"
                            },
                            "rootAddress": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "networkName",
                            "networkType",
                            "chainId"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "projectId": {
                              "type": "string"
                            },
                            "networkType": {
                              "type": "string"
                            },
                            "chainId": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "projectId",
                            "networkType",
                            "chainId"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "action",
                    "message",
                    "network"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The body is malformed, or the signature or timestamp format is wrong.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "The timestamp is too old, or the signature does not verify.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "The signer is not an admin of this campaign.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/admin/project/update": {
      "post": {
        "tags": [
          "Campaign admin"
        ],
        "summary": "Change campaign settings",
        "description": "Updates the settings of an existing campaign. The signed message carries the new setting values.\n\n**Authorization:** a typed-data (EIP-712) signature of kind `projectUpdate` in the request body. The exact message is in the `x-altar-signature` extension and in the signing guide. The signed timestamp must be no older than 60 minutes and no more than 5 minutes in the future.",
        "x-altar-auth": "signature",
        "x-altar-signature": {
          "kind": "projectUpdate",
          "domain": {
            "name": "ProveX",
            "version": "1",
            "chainId": 1,
            "verifyingContract": "0x0000000000000000000000000000000000000000"
          },
          "primaryType": "ProjectUpdate",
          "types": {
            "ProjectUpdate": [
              {
                "name": "projectId",
                "type": "string"
              },
              {
                "name": "timestamp",
                "type": "uint256"
              },
              {
                "name": "projectName",
                "type": "string"
              },
              {
                "name": "projectWebsite",
                "type": "string"
              },
              {
                "name": "projectDescription",
                "type": "string"
              },
              {
                "name": "projectLogo",
                "type": "string"
              },
              {
                "name": "projectTagline",
                "type": "string"
              },
              {
                "name": "projectAccentColor",
                "type": "string"
              },
              {
                "name": "projectAccentColorVariant",
                "type": "string"
              },
              {
                "name": "projectBanner",
                "type": "string"
              },
              {
                "name": "projectDisclaimerShort",
                "type": "string"
              },
              {
                "name": "projectDisclaimerLong",
                "type": "string"
              },
              {
                "name": "projectSocialLinks",
                "type": "string"
              },
              {
                "name": "projectTags",
                "type": "string"
              },
              {
                "name": "startTime",
                "type": "uint256"
              },
              {
                "name": "inflectionTime",
                "type": "uint256"
              },
              {
                "name": "endTime",
                "type": "uint256"
              },
              {
                "name": "decaySingleStepDelaySeconds",
                "type": "uint256"
              },
              {
                "name": "volumeBonusCutoff",
                "type": "uint256"
              },
              {
                "name": "flatBonusCutoff",
                "type": "uint256"
              },
              {
                "name": "decayRateSingleStep",
                "type": "uint256"
              },
              {
                "name": "usdToPointBaseRate",
                "type": "uint256"
              },
              {
                "name": "flatBonusRate",
                "type": "uint256"
              },
              {
                "name": "referralRate",
                "type": "uint256"
              },
              {
                "name": "countEarlySacrifices",
                "type": "bool"
              },
              {
                "name": "useInflectionStepOne",
                "type": "bool"
              }
            ]
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "signature": {
                    "type": "string",
                    "pattern": "^0x[0-9a-fA-F]*$",
                    "description": "A 0x-prefixed hexadecimal string."
                  },
                  "inputs": {
                    "type": "object",
                    "properties": {
                      "projectId": {
                        "type": "string"
                      },
                      "timestamp": {
                        "type": "object",
                        "properties": {
                          "__type__": {
                            "type": "string",
                            "enum": [
                              "bigint"
                            ]
                          },
                          "value": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "__type__",
                          "value"
                        ]
                      },
                      "projectName": {
                        "type": "string"
                      },
                      "projectWebsite": {
                        "type": "string"
                      },
                      "projectDescription": {
                        "type": "string"
                      },
                      "projectLogo": {
                        "type": "string"
                      },
                      "projectTagline": {
                        "type": "string"
                      },
                      "projectAccentColor": {
                        "type": "string"
                      },
                      "projectAccentColorVariant": {
                        "type": "string"
                      },
                      "projectBanner": {
                        "type": "string"
                      },
                      "projectDisclaimerShort": {
                        "type": "string"
                      },
                      "projectDisclaimerLong": {
                        "type": "string"
                      },
                      "projectSocialLinks": {
                        "type": "string"
                      },
                      "projectTags": {
                        "type": "string"
                      },
                      "startTime": {
                        "type": "object",
                        "properties": {
                          "__type__": {
                            "type": "string",
                            "enum": [
                              "bigint"
                            ]
                          },
                          "value": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "__type__",
                          "value"
                        ]
                      },
                      "inflectionTime": {
                        "type": "object",
                        "properties": {
                          "__type__": {
                            "type": "string",
                            "enum": [
                              "bigint"
                            ]
                          },
                          "value": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "__type__",
                          "value"
                        ]
                      },
                      "endTime": {
                        "type": "object",
                        "properties": {
                          "__type__": {
                            "type": "string",
                            "enum": [
                              "bigint"
                            ]
                          },
                          "value": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "__type__",
                          "value"
                        ]
                      },
                      "decaySingleStepDelaySeconds": {
                        "type": "object",
                        "properties": {
                          "__type__": {
                            "type": "string",
                            "enum": [
                              "bigint"
                            ]
                          },
                          "value": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "__type__",
                          "value"
                        ]
                      },
                      "volumeBonusCutoff": {
                        "type": "object",
                        "properties": {
                          "__type__": {
                            "type": "string",
                            "enum": [
                              "bigint"
                            ]
                          },
                          "value": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "__type__",
                          "value"
                        ]
                      },
                      "flatBonusCutoff": {
                        "type": "object",
                        "properties": {
                          "__type__": {
                            "type": "string",
                            "enum": [
                              "bigint"
                            ]
                          },
                          "value": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "__type__",
                          "value"
                        ]
                      },
                      "decayRateSingleStep": {
                        "type": "object",
                        "properties": {
                          "__type__": {
                            "type": "string",
                            "enum": [
                              "bigint"
                            ]
                          },
                          "value": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "__type__",
                          "value"
                        ]
                      },
                      "usdToPointBaseRate": {
                        "type": "object",
                        "properties": {
                          "__type__": {
                            "type": "string",
                            "enum": [
                              "bigint"
                            ]
                          },
                          "value": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "__type__",
                          "value"
                        ]
                      },
                      "flatBonusRate": {
                        "type": "object",
                        "properties": {
                          "__type__": {
                            "type": "string",
                            "enum": [
                              "bigint"
                            ]
                          },
                          "value": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "__type__",
                          "value"
                        ]
                      },
                      "referralRate": {
                        "type": "object",
                        "properties": {
                          "__type__": {
                            "type": "string",
                            "enum": [
                              "bigint"
                            ]
                          },
                          "value": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "__type__",
                          "value"
                        ]
                      },
                      "countEarlySacrifices": {
                        "type": "boolean"
                      },
                      "useInflectionStepOne": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "projectId",
                      "timestamp",
                      "projectName",
                      "projectWebsite",
                      "projectDescription",
                      "projectLogo",
                      "projectTagline",
                      "projectAccentColor",
                      "projectAccentColorVariant",
                      "projectBanner",
                      "projectDisclaimerShort",
                      "projectDisclaimerLong",
                      "projectSocialLinks",
                      "projectTags",
                      "startTime",
                      "inflectionTime",
                      "endTime",
                      "decaySingleStepDelaySeconds",
                      "volumeBonusCutoff",
                      "flatBonusCutoff",
                      "decayRateSingleStep",
                      "usdToPointBaseRate",
                      "flatBonusRate",
                      "referralRate",
                      "countEarlySacrifices",
                      "useInflectionStepOne"
                    ]
                  }
                },
                "required": [
                  "signature",
                  "inputs"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Done.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "success",
                    "message"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The body is malformed, or the signature or timestamp format is wrong.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "The timestamp is too old, or the signature does not verify.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "The signer is not an admin of this campaign.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/admin/latest-block": {
      "post": {
        "tags": [
          "Campaign admin"
        ],
        "summary": "Read the latest indexed block of a network",
        "description": "Asks the campaign collector for one network (set by `networkType` and `chainId` in the body) for its latest block. Returns 404 when the campaign has no collector for that network.\n\n**Authorization:** a typed-data (EIP-712) signature of kind `adminRead` in the request body. The exact message is in the `x-altar-signature` extension and in the signing guide. The signed timestamp must be no older than 60 minutes and no more than 5 minutes in the future.",
        "x-altar-auth": "signature",
        "x-altar-signature": {
          "kind": "adminRead",
          "domain": {
            "name": "ProveX",
            "version": "1",
            "chainId": 1,
            "verifyingContract": "0x0000000000000000000000000000000000000000"
          },
          "primaryType": "AdminRead",
          "types": {
            "AdminRead": [
              {
                "name": "purpose",
                "type": "string"
              },
              {
                "name": "projectId",
                "type": "string"
              },
              {
                "name": "timestamp",
                "type": "uint256"
              }
            ]
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "signature": {
                    "type": "string",
                    "pattern": "^0x[0-9a-fA-F]*$",
                    "description": "A 0x-prefixed hexadecimal string."
                  },
                  "inputs": {
                    "type": "object",
                    "properties": {
                      "timestamp": {
                        "type": "object",
                        "properties": {
                          "__type__": {
                            "type": "string",
                            "enum": [
                              "bigint"
                            ]
                          },
                          "value": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "__type__",
                          "value"
                        ]
                      }
                    },
                    "required": [
                      "timestamp"
                    ]
                  },
                  "projectId": {
                    "type": "string"
                  },
                  "networkType": {
                    "type": "string"
                  },
                  "chainId": {
                    "type": "number"
                  }
                },
                "required": [
                  "signature",
                  "inputs",
                  "projectId",
                  "networkType",
                  "chainId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "blockNumber": {
                      "type": "number"
                    },
                    "timestamp": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "object",
                          "properties": {
                            "__type__": {
                              "type": "string",
                              "enum": [
                                "bigint"
                              ]
                            },
                            "value": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "__type__",
                            "value"
                          ]
                        }
                      ]
                    },
                    "hash": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "blockNumber",
                    "timestamp",
                    "hash"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The body is malformed, or the signature or timestamp format is wrong.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "The timestamp is too old, or the signature does not verify.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "The signer is not an admin of this campaign.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/admin/token": {
      "post": {
        "tags": [
          "Campaign admin"
        ],
        "summary": "Add, update, or remove a token",
        "description": "The signed message names the action (`add`, `update`, or `remove`).\n\n**Authorization:** a typed-data (EIP-712) signature of kind `tokenManagement` in the request body. The exact message is in the `x-altar-signature` extension and in the signing guide. The signed timestamp must be no older than 60 minutes and no more than 5 minutes in the future.",
        "x-altar-auth": "signature",
        "x-altar-signature": {
          "kind": "tokenManagement",
          "domain": {
            "name": "ProveX",
            "version": "1",
            "chainId": 1,
            "verifyingContract": "0x0000000000000000000000000000000000000000"
          },
          "primaryType": "TokenManagement",
          "types": {
            "TokenManagement": [
              {
                "name": "projectId",
                "type": "string"
              },
              {
                "name": "networkType",
                "type": "string"
              },
              {
                "name": "chainId",
                "type": "uint256"
              },
              {
                "name": "action",
                "type": "string"
              },
              {
                "name": "timestamp",
                "type": "uint256"
              },
              {
                "name": "tokenAddress",
                "type": "string"
              },
              {
                "name": "source",
                "type": "string"
              },
              {
                "name": "market",
                "type": "string"
              },
              {
                "name": "searchable",
                "type": "string"
              }
            ]
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "signature": {
                    "type": "string",
                    "pattern": "^0x[0-9a-fA-F]*$",
                    "description": "A 0x-prefixed hexadecimal string."
                  },
                  "inputs": {
                    "type": "object",
                    "properties": {
                      "projectId": {
                        "type": "string"
                      },
                      "networkType": {
                        "type": "string"
                      },
                      "chainId": {
                        "type": "object",
                        "properties": {
                          "__type__": {
                            "type": "string",
                            "enum": [
                              "bigint"
                            ]
                          },
                          "value": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "__type__",
                          "value"
                        ]
                      },
                      "action": {
                        "type": "string",
                        "enum": [
                          "add",
                          "remove",
                          "update"
                        ]
                      },
                      "timestamp": {
                        "type": "object",
                        "properties": {
                          "__type__": {
                            "type": "string",
                            "enum": [
                              "bigint"
                            ]
                          },
                          "value": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "__type__",
                          "value"
                        ]
                      },
                      "tokenAddress": {
                        "type": "string"
                      },
                      "source": {
                        "type": "string",
                        "default": ""
                      },
                      "market": {
                        "type": "string",
                        "default": ""
                      },
                      "searchable": {
                        "type": "string",
                        "default": ""
                      }
                    },
                    "required": [
                      "projectId",
                      "networkType",
                      "chainId",
                      "action",
                      "timestamp",
                      "tokenAddress"
                    ]
                  }
                },
                "required": [
                  "signature",
                  "inputs"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Done.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    },
                    "action": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "token": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "projectId": {
                              "type": "string"
                            },
                            "networkType": {
                              "type": "string"
                            },
                            "chainId": {
                              "type": "number"
                            },
                            "tokenAddress": {
                              "type": "string"
                            },
                            "source": {
                              "type": "string"
                            },
                            "market": {
                              "type": "string"
                            },
                            "searchable": {
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "projectId",
                            "networkType",
                            "chainId",
                            "tokenAddress",
                            "source",
                            "market",
                            "searchable"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "projectId": {
                              "type": "string"
                            },
                            "networkType": {
                              "type": "string"
                            },
                            "chainId": {
                              "type": "number"
                            },
                            "tokenAddress": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "projectId",
                            "networkType",
                            "chainId",
                            "tokenAddress"
                          ]
                        }
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "action",
                    "message",
                    "token"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The body is malformed, or the signature or timestamp format is wrong.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "The timestamp is too old, or the signature does not verify.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "The signer is not an admin of this campaign.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/admin/admin": {
      "post": {
        "tags": [
          "Campaign admin"
        ],
        "summary": "Grant or revoke an admin role",
        "description": "Adds or removes an admin. The server refuses to remove the last admin of a campaign.\n\n**Authorization:** a typed-data (EIP-712) signature of kind `adminManagement` in the request body. The exact message is in the `x-altar-signature` extension and in the signing guide. The signed timestamp must be no older than 60 minutes and no more than 5 minutes in the future.",
        "x-altar-auth": "signature",
        "x-altar-signature": {
          "kind": "adminManagement",
          "domain": {
            "name": "ProveX",
            "version": "1",
            "chainId": 1,
            "verifyingContract": "0x0000000000000000000000000000000000000000"
          },
          "primaryType": "AdminManagement",
          "types": {
            "AdminManagement": [
              {
                "name": "projectId",
                "type": "string"
              },
              {
                "name": "address",
                "type": "string"
              },
              {
                "name": "action",
                "type": "string"
              },
              {
                "name": "timestamp",
                "type": "uint256"
              }
            ]
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "signature": {
                    "type": "string",
                    "pattern": "^0x[0-9a-fA-F]*$",
                    "description": "A 0x-prefixed hexadecimal string."
                  },
                  "inputs": {
                    "type": "object",
                    "properties": {
                      "projectId": {
                        "type": "string"
                      },
                      "address": {
                        "type": "string"
                      },
                      "action": {
                        "type": "string",
                        "enum": [
                          "add",
                          "remove"
                        ]
                      },
                      "timestamp": {
                        "type": "object",
                        "properties": {
                          "__type__": {
                            "type": "string",
                            "enum": [
                              "bigint"
                            ]
                          },
                          "value": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "__type__",
                          "value"
                        ]
                      }
                    },
                    "required": [
                      "projectId",
                      "address",
                      "action",
                      "timestamp"
                    ]
                  }
                },
                "required": [
                  "signature",
                  "inputs"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Done.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    },
                    "action": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "admin": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "projectId": {
                          "type": "string"
                        },
                        "address": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "projectId",
                        "address"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "action",
                    "message",
                    "admin"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The body is malformed, or the signature or timestamp format is wrong.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "The timestamp is too old, or the signature does not verify.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "The signer is not an admin of this campaign.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/admin/referrals": {
      "post": {
        "tags": [
          "Campaign admin"
        ],
        "summary": "List all referrals of a campaign",
        "description": "Returns every referral in the campaign.\n\n**Authorization:** a typed-data (EIP-712) signature of kind `adminRead` in the request body. The exact message is in the `x-altar-signature` extension and in the signing guide. The signed timestamp must be no older than 60 minutes and no more than 5 minutes in the future.",
        "x-altar-auth": "signature",
        "x-altar-signature": {
          "kind": "adminRead",
          "domain": {
            "name": "ProveX",
            "version": "1",
            "chainId": 1,
            "verifyingContract": "0x0000000000000000000000000000000000000000"
          },
          "primaryType": "AdminRead",
          "types": {
            "AdminRead": [
              {
                "name": "purpose",
                "type": "string"
              },
              {
                "name": "projectId",
                "type": "string"
              },
              {
                "name": "timestamp",
                "type": "uint256"
              }
            ]
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "signature": {
                    "type": "string",
                    "pattern": "^0x[0-9a-fA-F]*$",
                    "description": "A 0x-prefixed hexadecimal string."
                  },
                  "inputs": {
                    "type": "object",
                    "properties": {
                      "timestamp": {
                        "type": "object",
                        "properties": {
                          "__type__": {
                            "type": "string",
                            "enum": [
                              "bigint"
                            ]
                          },
                          "value": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "__type__",
                          "value"
                        ]
                      }
                    },
                    "required": [
                      "timestamp"
                    ]
                  },
                  "projectId": {
                    "type": "string"
                  }
                },
                "required": [
                  "signature",
                  "inputs",
                  "projectId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "projectId": {
                      "type": "string"
                    },
                    "referrals": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "projectId": {
                            "type": "string"
                          },
                          "pointsDestinationAddress": {
                            "type": "string"
                          },
                          "referrerAddress": {
                            "type": "string"
                          },
                          "startAt": {
                            "type": "string"
                          },
                          "endedAt": {
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "required": [
                          "projectId",
                          "pointsDestinationAddress",
                          "referrerAddress",
                          "startAt",
                          "endedAt"
                        ]
                      }
                    }
                  },
                  "required": [
                    "projectId",
                    "referrals"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The body is malformed, or the signature or timestamp format is wrong.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "The timestamp is too old, or the signature does not verify.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "The signer is not an admin of this campaign.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/admin/sacrifice-mutations": {
      "post": {
        "tags": [
          "Campaign admin"
        ],
        "summary": "List deposit corrections",
        "description": "Returns the deposit corrections (mutations) of the campaign. The same list is public in the stats response.\n\n**Authorization:** a typed-data (EIP-712) signature of kind `adminRead` in the request body. The exact message is in the `x-altar-signature` extension and in the signing guide. The signed timestamp must be no older than 60 minutes and no more than 5 minutes in the future.",
        "x-altar-auth": "signature",
        "x-altar-signature": {
          "kind": "adminRead",
          "domain": {
            "name": "ProveX",
            "version": "1",
            "chainId": 1,
            "verifyingContract": "0x0000000000000000000000000000000000000000"
          },
          "primaryType": "AdminRead",
          "types": {
            "AdminRead": [
              {
                "name": "purpose",
                "type": "string"
              },
              {
                "name": "projectId",
                "type": "string"
              },
              {
                "name": "timestamp",
                "type": "uint256"
              }
            ]
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "signature": {
                    "type": "string",
                    "pattern": "^0x[0-9a-fA-F]*$",
                    "description": "A 0x-prefixed hexadecimal string."
                  },
                  "inputs": {
                    "type": "object",
                    "properties": {
                      "timestamp": {
                        "type": "object",
                        "properties": {
                          "__type__": {
                            "type": "string",
                            "enum": [
                              "bigint"
                            ]
                          },
                          "value": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "__type__",
                          "value"
                        ]
                      }
                    },
                    "required": [
                      "timestamp"
                    ]
                  },
                  "projectId": {
                    "type": "string"
                  }
                },
                "required": [
                  "signature",
                  "inputs",
                  "projectId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "projectId": {
                      "type": "string"
                    },
                    "mutations": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "projectId": {
                            "type": "string"
                          },
                          "networkType": {
                            "type": "string",
                            "enum": [
                              "evm",
                              "memo",
                              "tvm",
                              "bip32",
                              "solana",
                              "monero",
                              "cardano"
                            ]
                          },
                          "chainId": {
                            "type": "number"
                          },
                          "blockHash": {
                            "type": "string"
                          },
                          "transactionHash": {
                            "type": "string"
                          },
                          "tokenAddress": {
                            "type": "string"
                          },
                          "logIndex": {
                            "type": "number"
                          },
                          "logType": {
                            "type": "string",
                            "enum": [
                              "native",
                              "token",
                              "mutation"
                            ]
                          },
                          "action": {
                            "type": "string",
                            "enum": [
                              "ignore",
                              "modify",
                              "add"
                            ]
                          },
                          "amount": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "pointsDestinationAddress": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "userAddressListIndex": {
                            "type": [
                              "number",
                              "null"
                            ]
                          },
                          "source": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "enum": [
                              "stable",
                              "ccxt",
                              "dex",
                              "zero",
                              "pending",
                              null
                            ]
                          },
                          "market": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "timestamp": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "blockNumber": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "blockStatus": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "tokenSymbol": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "tokenName": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "tokenDecimals": {
                            "type": [
                              "number",
                              "null"
                            ]
                          },
                          "price": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "createdBy": {
                            "type": "string"
                          },
                          "createdAt": {
                            "type": "string"
                          },
                          "reason": {
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "required": [
                          "projectId",
                          "networkType",
                          "chainId",
                          "blockHash",
                          "transactionHash",
                          "tokenAddress",
                          "logIndex",
                          "logType",
                          "action",
                          "amount",
                          "pointsDestinationAddress",
                          "userAddressListIndex",
                          "source",
                          "market",
                          "timestamp",
                          "blockNumber",
                          "blockStatus",
                          "tokenSymbol",
                          "tokenName",
                          "tokenDecimals",
                          "price",
                          "createdBy",
                          "createdAt",
                          "reason"
                        ]
                      }
                    }
                  },
                  "required": [
                    "projectId",
                    "mutations"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The body is malformed, or the signature or timestamp format is wrong.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "The timestamp is too old, or the signature does not verify.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "The signer is not an admin of this campaign.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/admin/sacrifice-mutation/upsert": {
      "post": {
        "tags": [
          "Campaign admin"
        ],
        "summary": "Create or change a deposit correction",
        "description": "The signed message names the exact deposit and the correction.\n\n**Authorization:** a typed-data (EIP-712) signature of kind `sacrificeMutation` in the request body. The exact message is in the `x-altar-signature` extension and in the signing guide. The signed timestamp must be no older than 60 minutes and no more than 5 minutes in the future.",
        "x-altar-auth": "signature",
        "x-altar-signature": {
          "kind": "sacrificeMutation",
          "domain": {
            "name": "ProveX",
            "version": "1",
            "chainId": 1,
            "verifyingContract": "0x0000000000000000000000000000000000000000"
          },
          "primaryType": "SacrificeMutation",
          "types": {
            "SacrificeMutation": [
              {
                "name": "projectId",
                "type": "string"
              },
              {
                "name": "networkType",
                "type": "string"
              },
              {
                "name": "chainId",
                "type": "uint256"
              },
              {
                "name": "blockHash",
                "type": "string"
              },
              {
                "name": "transactionHash",
                "type": "string"
              },
              {
                "name": "tokenAddress",
                "type": "string"
              },
              {
                "name": "logIndex",
                "type": "uint32"
              },
              {
                "name": "logType",
                "type": "string"
              },
              {
                "name": "action",
                "type": "string"
              },
              {
                "name": "timestamp",
                "type": "uint256"
              },
              {
                "name": "amount",
                "type": "string"
              },
              {
                "name": "pointsDestinationAddress",
                "type": "string"
              },
              {
                "name": "userAddressListIndex",
                "type": "string"
              },
              {
                "name": "source",
                "type": "string"
              },
              {
                "name": "market",
                "type": "string"
              },
              {
                "name": "sacrificeTimestamp",
                "type": "string"
              },
              {
                "name": "blockNumber",
                "type": "string"
              },
              {
                "name": "blockStatus",
                "type": "string"
              },
              {
                "name": "tokenSymbol",
                "type": "string"
              },
              {
                "name": "tokenName",
                "type": "string"
              },
              {
                "name": "tokenDecimals",
                "type": "string"
              },
              {
                "name": "price",
                "type": "string"
              },
              {
                "name": "reason",
                "type": "string"
              }
            ]
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "signature": {
                    "type": "string",
                    "pattern": "^0x[0-9a-fA-F]*$",
                    "description": "A 0x-prefixed hexadecimal string."
                  },
                  "inputs": {
                    "type": "object",
                    "properties": {
                      "projectId": {
                        "type": "string",
                        "minLength": 1
                      },
                      "networkType": {
                        "type": "string",
                        "enum": [
                          "evm",
                          "memo",
                          "tvm",
                          "bip32",
                          "solana",
                          "monero",
                          "cardano"
                        ]
                      },
                      "chainId": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "blockHash": {
                        "type": "string",
                        "minLength": 1
                      },
                      "transactionHash": {
                        "type": "string",
                        "minLength": 1
                      },
                      "tokenAddress": {
                        "type": "string",
                        "minLength": 1
                      },
                      "logIndex": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "logType": {
                        "type": "string",
                        "enum": [
                          "native",
                          "token",
                          "mutation"
                        ]
                      },
                      "action": {
                        "type": "string",
                        "enum": [
                          "ignore",
                          "modify",
                          "add"
                        ]
                      },
                      "timestamp": {
                        "type": "object",
                        "properties": {
                          "__type__": {
                            "type": "string",
                            "enum": [
                              "bigint"
                            ]
                          },
                          "value": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "__type__",
                          "value"
                        ]
                      },
                      "amount": {
                        "type": "string"
                      },
                      "pointsDestinationAddress": {
                        "type": "string"
                      },
                      "userAddressListIndex": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "source": {
                        "type": "string",
                        "enum": [
                          "stable",
                          "ccxt",
                          "dex",
                          "zero",
                          "pending"
                        ]
                      },
                      "market": {
                        "type": "string"
                      },
                      "sacrificeTimestamp": {
                        "type": "string"
                      },
                      "blockNumber": {
                        "type": "string"
                      },
                      "blockStatus": {
                        "type": "string",
                        "enum": [
                          "pending",
                          "finalized",
                          "uncled"
                        ]
                      },
                      "tokenSymbol": {
                        "type": "string"
                      },
                      "tokenName": {
                        "type": "string"
                      },
                      "tokenDecimals": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "price": {
                        "type": "string"
                      },
                      "reason": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "projectId",
                      "networkType",
                      "chainId",
                      "blockHash",
                      "transactionHash",
                      "tokenAddress",
                      "logIndex",
                      "logType",
                      "action",
                      "timestamp"
                    ]
                  }
                },
                "required": [
                  "signature",
                  "inputs"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Done.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    },
                    "mutation": {
                      "type": "object",
                      "properties": {
                        "projectId": {
                          "type": "string"
                        },
                        "networkType": {
                          "type": "string",
                          "enum": [
                            "evm",
                            "memo",
                            "tvm",
                            "bip32",
                            "solana",
                            "monero",
                            "cardano"
                          ]
                        },
                        "chainId": {
                          "type": "number"
                        },
                        "blockHash": {
                          "type": "string"
                        },
                        "transactionHash": {
                          "type": "string"
                        },
                        "tokenAddress": {
                          "type": "string"
                        },
                        "logIndex": {
                          "type": "number"
                        },
                        "logType": {
                          "type": "string",
                          "enum": [
                            "native",
                            "token",
                            "mutation"
                          ]
                        },
                        "action": {
                          "type": "string",
                          "enum": [
                            "ignore",
                            "modify",
                            "add"
                          ]
                        },
                        "amount": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "pointsDestinationAddress": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "userAddressListIndex": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "source": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "enum": [
                            "stable",
                            "ccxt",
                            "dex",
                            "zero",
                            "pending",
                            null
                          ]
                        },
                        "market": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "timestamp": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "blockNumber": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "blockStatus": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "tokenSymbol": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "tokenName": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "tokenDecimals": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "price": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "createdBy": {
                          "type": "string"
                        },
                        "createdAt": {
                          "type": "string"
                        },
                        "reason": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "projectId",
                        "networkType",
                        "chainId",
                        "blockHash",
                        "transactionHash",
                        "tokenAddress",
                        "logIndex",
                        "logType",
                        "action",
                        "amount",
                        "pointsDestinationAddress",
                        "userAddressListIndex",
                        "source",
                        "market",
                        "timestamp",
                        "blockNumber",
                        "blockStatus",
                        "tokenSymbol",
                        "tokenName",
                        "tokenDecimals",
                        "price",
                        "createdBy",
                        "createdAt",
                        "reason"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "mutation"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The body is malformed, or the signature or timestamp format is wrong.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "The timestamp is too old, or the signature does not verify.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "The signer is not an admin of this campaign.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/admin/price-overrides": {
      "post": {
        "tags": [
          "Campaign admin"
        ],
        "summary": "List price corrections",
        "description": "Returns the price overrides of the campaign. The same list is public in the stats response.\n\n**Authorization:** a typed-data (EIP-712) signature of kind `adminRead` in the request body. The exact message is in the `x-altar-signature` extension and in the signing guide. The signed timestamp must be no older than 60 minutes and no more than 5 minutes in the future.",
        "x-altar-auth": "signature",
        "x-altar-signature": {
          "kind": "adminRead",
          "domain": {
            "name": "ProveX",
            "version": "1",
            "chainId": 1,
            "verifyingContract": "0x0000000000000000000000000000000000000000"
          },
          "primaryType": "AdminRead",
          "types": {
            "AdminRead": [
              {
                "name": "purpose",
                "type": "string"
              },
              {
                "name": "projectId",
                "type": "string"
              },
              {
                "name": "timestamp",
                "type": "uint256"
              }
            ]
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "signature": {
                    "type": "string",
                    "pattern": "^0x[0-9a-fA-F]*$",
                    "description": "A 0x-prefixed hexadecimal string."
                  },
                  "inputs": {
                    "type": "object",
                    "properties": {
                      "timestamp": {
                        "type": "object",
                        "properties": {
                          "__type__": {
                            "type": "string",
                            "enum": [
                              "bigint"
                            ]
                          },
                          "value": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "__type__",
                          "value"
                        ]
                      }
                    },
                    "required": [
                      "timestamp"
                    ]
                  },
                  "projectId": {
                    "type": "string"
                  }
                },
                "required": [
                  "signature",
                  "inputs",
                  "projectId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "projectId": {
                      "type": "string"
                    },
                    "overrides": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "projectId": {
                            "type": "string"
                          },
                          "networkType": {
                            "type": "string",
                            "enum": [
                              "evm",
                              "memo",
                              "tvm",
                              "bip32",
                              "solana",
                              "monero",
                              "cardano"
                            ]
                          },
                          "chainId": {
                            "type": "number"
                          },
                          "blockHash": {
                            "type": "string"
                          },
                          "tokenAddress": {
                            "type": "string"
                          },
                          "source": {
                            "type": "string",
                            "enum": [
                              "stable",
                              "ccxt",
                              "dex",
                              "zero",
                              "pending"
                            ]
                          },
                          "market": {
                            "type": "string"
                          },
                          "price": {
                            "type": "string"
                          },
                          "createdBy": {
                            "type": "string"
                          },
                          "createdAt": {
                            "type": "string"
                          },
                          "reason": {
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "required": [
                          "projectId",
                          "networkType",
                          "chainId",
                          "blockHash",
                          "tokenAddress",
                          "source",
                          "market",
                          "price",
                          "createdBy",
                          "createdAt",
                          "reason"
                        ]
                      }
                    }
                  },
                  "required": [
                    "projectId",
                    "overrides"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The body is malformed, or the signature or timestamp format is wrong.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "The timestamp is too old, or the signature does not verify.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "The signer is not an admin of this campaign.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/admin/sacrifice-details": {
      "post": {
        "tags": [
          "Campaign admin"
        ],
        "summary": "Read the block, transaction, token, and log of a deposit",
        "description": "Returns the raw records behind one deposit.\n\n**Authorization:** a typed-data (EIP-712) signature of kind `adminRead` in the request body. The exact message is in the `x-altar-signature` extension and in the signing guide. The signed timestamp must be no older than 60 minutes and no more than 5 minutes in the future.",
        "x-altar-auth": "signature",
        "x-altar-signature": {
          "kind": "adminRead",
          "domain": {
            "name": "ProveX",
            "version": "1",
            "chainId": 1,
            "verifyingContract": "0x0000000000000000000000000000000000000000"
          },
          "primaryType": "AdminRead",
          "types": {
            "AdminRead": [
              {
                "name": "purpose",
                "type": "string"
              },
              {
                "name": "projectId",
                "type": "string"
              },
              {
                "name": "timestamp",
                "type": "uint256"
              }
            ]
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "signature": {
                    "type": "string",
                    "pattern": "^0x[0-9a-fA-F]*$",
                    "description": "A 0x-prefixed hexadecimal string."
                  },
                  "inputs": {
                    "type": "object",
                    "properties": {
                      "timestamp": {
                        "type": "object",
                        "properties": {
                          "__type__": {
                            "type": "string",
                            "enum": [
                              "bigint"
                            ]
                          },
                          "value": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "__type__",
                          "value"
                        ]
                      }
                    },
                    "required": [
                      "timestamp"
                    ]
                  },
                  "projectId": {
                    "type": "string"
                  }
                },
                "required": [
                  "signature",
                  "inputs",
                  "projectId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "projectId": {
                      "type": "string"
                    },
                    "block": {
                      "type": "object",
                      "properties": {
                        "networkType": {
                          "type": "string",
                          "enum": [
                            "evm",
                            "memo",
                            "tvm",
                            "bip32",
                            "solana",
                            "monero",
                            "cardano"
                          ]
                        },
                        "chainId": {
                          "type": "number"
                        },
                        "blockNumber": {
                          "type": "string"
                        },
                        "blockHash": {
                          "type": "string"
                        },
                        "timestamp": {
                          "type": "string"
                        },
                        "status": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "networkType",
                        "chainId",
                        "blockNumber",
                        "blockHash",
                        "timestamp",
                        "status"
                      ]
                    },
                    "transaction": {
                      "type": "object",
                      "properties": {
                        "networkType": {
                          "type": "string",
                          "enum": [
                            "evm",
                            "memo",
                            "tvm",
                            "bip32",
                            "solana",
                            "monero",
                            "cardano"
                          ]
                        },
                        "chainId": {
                          "type": "number"
                        },
                        "blockHash": {
                          "type": "string"
                        },
                        "transactionHash": {
                          "type": "string"
                        },
                        "transactionIndex": {
                          "type": "number"
                        },
                        "from": {
                          "type": "string"
                        },
                        "to": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "networkType",
                        "chainId",
                        "blockHash",
                        "transactionHash",
                        "transactionIndex",
                        "from",
                        "to"
                      ]
                    },
                    "token": {
                      "type": "object",
                      "properties": {
                        "networkType": {
                          "type": "string",
                          "enum": [
                            "evm",
                            "memo",
                            "tvm",
                            "bip32",
                            "solana",
                            "monero",
                            "cardano"
                          ]
                        },
                        "chainId": {
                          "type": "number"
                        },
                        "tokenAddress": {
                          "type": "string"
                        },
                        "symbol": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "decimals": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "networkType",
                        "chainId",
                        "tokenAddress",
                        "symbol",
                        "name",
                        "decimals"
                      ]
                    },
                    "log": {
                      "type": "object",
                      "properties": {
                        "networkType": {
                          "type": "string",
                          "enum": [
                            "evm",
                            "memo",
                            "tvm",
                            "bip32",
                            "solana",
                            "monero",
                            "cardano"
                          ]
                        },
                        "chainId": {
                          "type": "number"
                        },
                        "blockHash": {
                          "type": "string"
                        },
                        "transactionHash": {
                          "type": "string"
                        },
                        "logIndex": {
                          "type": "number"
                        },
                        "logType": {
                          "type": "string",
                          "enum": [
                            "native",
                            "token",
                            "mutation"
                          ]
                        }
                      },
                      "required": [
                        "networkType",
                        "chainId",
                        "blockHash",
                        "transactionHash",
                        "logIndex",
                        "logType"
                      ]
                    }
                  },
                  "required": [
                    "projectId",
                    "block",
                    "transaction",
                    "token",
                    "log"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The body is malformed, or the signature or timestamp format is wrong.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "The timestamp is too old, or the signature does not verify.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "The signer is not an admin of this campaign.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/admin/reports": {
      "post": {
        "tags": [
          "Campaign admin"
        ],
        "summary": "List deposit reports",
        "description": "Returns the reports users submitted for the campaign.\n\n**Authorization:** a typed-data (EIP-712) signature of kind `adminRead` in the request body. The exact message is in the `x-altar-signature` extension and in the signing guide. The signed timestamp must be no older than 60 minutes and no more than 5 minutes in the future.",
        "x-altar-auth": "signature",
        "x-altar-signature": {
          "kind": "adminRead",
          "domain": {
            "name": "ProveX",
            "version": "1",
            "chainId": 1,
            "verifyingContract": "0x0000000000000000000000000000000000000000"
          },
          "primaryType": "AdminRead",
          "types": {
            "AdminRead": [
              {
                "name": "purpose",
                "type": "string"
              },
              {
                "name": "projectId",
                "type": "string"
              },
              {
                "name": "timestamp",
                "type": "uint256"
              }
            ]
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "signature": {
                    "type": "string",
                    "pattern": "^0x[0-9a-fA-F]*$",
                    "description": "A 0x-prefixed hexadecimal string."
                  },
                  "inputs": {
                    "type": "object",
                    "properties": {
                      "timestamp": {
                        "type": "object",
                        "properties": {
                          "__type__": {
                            "type": "string",
                            "enum": [
                              "bigint"
                            ]
                          },
                          "value": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "__type__",
                          "value"
                        ]
                      }
                    },
                    "required": [
                      "timestamp"
                    ]
                  },
                  "projectId": {
                    "type": "string"
                  }
                },
                "required": [
                  "signature",
                  "inputs",
                  "projectId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "projectId": {
                      "type": "string"
                    },
                    "reports": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "projectId": {
                            "type": "string"
                          },
                          "networkType": {
                            "type": "string",
                            "enum": [
                              "evm",
                              "memo",
                              "tvm",
                              "bip32",
                              "solana",
                              "monero",
                              "cardano"
                            ]
                          },
                          "chainId": {
                            "type": "number"
                          },
                          "blockHash": {
                            "type": "string"
                          },
                          "tokenAddress": {
                            "type": "string"
                          },
                          "transactionHash": {
                            "type": "string"
                          },
                          "logIndex": {
                            "type": "number"
                          },
                          "logType": {
                            "type": "string",
                            "enum": [
                              "native",
                              "token",
                              "mutation"
                            ]
                          },
                          "message": {
                            "type": "string"
                          },
                          "signature": {
                            "type": "string"
                          },
                          "signerAddress": {
                            "type": "string"
                          },
                          "timestamp": {
                            "type": "string"
                          },
                          "ignored": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "projectId",
                          "networkType",
                          "chainId",
                          "blockHash",
                          "tokenAddress",
                          "transactionHash",
                          "logIndex",
                          "logType",
                          "message",
                          "signature",
                          "signerAddress",
                          "timestamp",
                          "ignored"
                        ]
                      }
                    }
                  },
                  "required": [
                    "projectId",
                    "reports"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The body is malformed, or the signature or timestamp format is wrong.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "The timestamp is too old, or the signature does not verify.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "The signer is not an admin of this campaign.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/admin/report/toggle-ignored": {
      "post": {
        "tags": [
          "Campaign admin"
        ],
        "summary": "Mark a report ignored or not ignored",
        "description": "The signed message names the report and the new state.\n\n**Authorization:** a typed-data (EIP-712) signature of kind `reportToggle` in the request body. The exact message is in the `x-altar-signature` extension and in the signing guide. The signed timestamp must be no older than 60 minutes and no more than 5 minutes in the future.",
        "x-altar-auth": "signature",
        "x-altar-signature": {
          "kind": "reportToggle",
          "domain": {
            "name": "ProveX",
            "version": "1",
            "chainId": 1,
            "verifyingContract": "0x0000000000000000000000000000000000000000"
          },
          "primaryType": "ReportToggle",
          "types": {
            "ReportToggle": [
              {
                "name": "projectId",
                "type": "string"
              },
              {
                "name": "networkType",
                "type": "string"
              },
              {
                "name": "chainId",
                "type": "uint256"
              },
              {
                "name": "blockHash",
                "type": "string"
              },
              {
                "name": "tokenAddress",
                "type": "string"
              },
              {
                "name": "transactionHash",
                "type": "string"
              },
              {
                "name": "logIndex",
                "type": "uint32"
              },
              {
                "name": "logType",
                "type": "string"
              },
              {
                "name": "signerAddress",
                "type": "string"
              },
              {
                "name": "ignored",
                "type": "bool"
              },
              {
                "name": "timestamp",
                "type": "uint256"
              }
            ]
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "signature": {
                    "type": "string",
                    "pattern": "^0x[0-9a-fA-F]*$",
                    "description": "A 0x-prefixed hexadecimal string."
                  },
                  "inputs": {
                    "type": "object",
                    "properties": {
                      "projectId": {
                        "type": "string",
                        "minLength": 1
                      },
                      "networkType": {
                        "type": "string",
                        "enum": [
                          "evm",
                          "memo",
                          "tvm",
                          "bip32",
                          "solana",
                          "monero",
                          "cardano"
                        ]
                      },
                      "chainId": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "blockHash": {
                        "type": "string"
                      },
                      "tokenAddress": {
                        "type": "string"
                      },
                      "transactionHash": {
                        "type": "string"
                      },
                      "logIndex": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "logType": {
                        "type": "string",
                        "enum": [
                          "native",
                          "token",
                          "mutation"
                        ]
                      },
                      "signerAddress": {
                        "type": "string",
                        "minLength": 1
                      },
                      "ignored": {
                        "type": "boolean"
                      },
                      "timestamp": {
                        "type": "object",
                        "properties": {
                          "__type__": {
                            "type": "string",
                            "enum": [
                              "bigint"
                            ]
                          },
                          "value": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "__type__",
                          "value"
                        ]
                      }
                    },
                    "required": [
                      "projectId",
                      "networkType",
                      "chainId",
                      "blockHash",
                      "tokenAddress",
                      "transactionHash",
                      "logIndex",
                      "logType",
                      "signerAddress",
                      "ignored",
                      "timestamp"
                    ]
                  }
                },
                "required": [
                  "signature",
                  "inputs"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Done.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    },
                    "report": {
                      "type": "object",
                      "properties": {
                        "projectId": {
                          "type": "string"
                        },
                        "networkType": {
                          "type": "string",
                          "enum": [
                            "evm",
                            "memo",
                            "tvm",
                            "bip32",
                            "solana",
                            "monero",
                            "cardano"
                          ]
                        },
                        "chainId": {
                          "type": "number"
                        },
                        "blockHash": {
                          "type": "string"
                        },
                        "tokenAddress": {
                          "type": "string"
                        },
                        "transactionHash": {
                          "type": "string"
                        },
                        "logIndex": {
                          "type": "number"
                        },
                        "logType": {
                          "type": "string",
                          "enum": [
                            "native",
                            "token",
                            "mutation"
                          ]
                        },
                        "message": {
                          "type": "string"
                        },
                        "signature": {
                          "type": "string"
                        },
                        "signerAddress": {
                          "type": "string"
                        },
                        "timestamp": {
                          "type": "string"
                        },
                        "ignored": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "projectId",
                        "networkType",
                        "chainId",
                        "blockHash",
                        "tokenAddress",
                        "transactionHash",
                        "logIndex",
                        "logType",
                        "message",
                        "signature",
                        "signerAddress",
                        "timestamp",
                        "ignored"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "report"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The body is malformed, or the signature or timestamp format is wrong.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "The timestamp is too old, or the signature does not verify.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "The signer is not an admin of this campaign.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/admin/address-pool/begin": {
      "post": {
        "tags": [
          "Address pool upload"
        ],
        "summary": "Open an upload session for a range of addresses",
        "description": "The admin signs the range, the count, and the Merkle root. The server returns a session to upload chunks into. The body limit on the three upload routes is 5 MB.\n\n**Authorization:** a typed-data (EIP-712) signature of kind `addressPoolUpload` in the request body. The exact message is in the `x-altar-signature` extension and in the signing guide. The signed timestamp must be no older than 60 minutes and no more than 5 minutes in the future.",
        "x-altar-auth": "signature",
        "x-altar-signature": {
          "kind": "addressPoolUpload",
          "domain": {
            "name": "ProveX",
            "version": "1",
            "chainId": 1,
            "verifyingContract": "0x0000000000000000000000000000000000000000"
          },
          "primaryType": "AddressPoolUpload",
          "types": {
            "AddressPoolUpload": [
              {
                "name": "projectId",
                "type": "string"
              },
              {
                "name": "networkType",
                "type": "string"
              },
              {
                "name": "chainId",
                "type": "uint256"
              },
              {
                "name": "rangeStart",
                "type": "uint256"
              },
              {
                "name": "count",
                "type": "uint256"
              },
              {
                "name": "merkleRoot",
                "type": "bytes32"
              },
              {
                "name": "timestamp",
                "type": "uint256"
              }
            ]
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "projectId": {
                    "type": "string",
                    "minLength": 1
                  },
                  "inputs": {
                    "type": "object",
                    "properties": {
                      "networkType": {
                        "type": "string",
                        "minLength": 1
                      },
                      "chainId": {
                        "type": "object",
                        "properties": {
                          "__type__": {
                            "type": "string",
                            "enum": [
                              "bigint"
                            ]
                          },
                          "value": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "__type__",
                          "value"
                        ]
                      },
                      "rangeStart": {
                        "type": "object",
                        "properties": {
                          "__type__": {
                            "type": "string",
                            "enum": [
                              "bigint"
                            ]
                          },
                          "value": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "__type__",
                          "value"
                        ]
                      },
                      "count": {
                        "type": "object",
                        "properties": {
                          "__type__": {
                            "type": "string",
                            "enum": [
                              "bigint"
                            ]
                          },
                          "value": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "__type__",
                          "value"
                        ]
                      },
                      "merkleRoot": {
                        "type": "string",
                        "pattern": "^0x[0-9a-fA-F]{64}$"
                      },
                      "timestamp": {
                        "type": "object",
                        "properties": {
                          "__type__": {
                            "type": "string",
                            "enum": [
                              "bigint"
                            ]
                          },
                          "value": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "__type__",
                          "value"
                        ]
                      }
                    },
                    "required": [
                      "networkType",
                      "chainId",
                      "rangeStart",
                      "count",
                      "merkleRoot",
                      "timestamp"
                    ]
                  },
                  "signature": {
                    "type": "string",
                    "minLength": 1
                  }
                },
                "required": [
                  "projectId",
                  "inputs",
                  "signature"
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The session was opened.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "sessionId": {
                      "type": "string"
                    },
                    "expiresAt": {}
                  },
                  "required": [
                    "sessionId"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The body is malformed, or the signature or timestamp format is wrong.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "The timestamp is too old, or the signature does not verify.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "The signer is not an admin of this campaign.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/admin/address-pool/chunk": {
      "post": {
        "tags": [
          "Address pool upload"
        ],
        "summary": "Upload one chunk of addresses",
        "description": "Up to 5000 addresses per chunk. Authorized by the session id from `begin`.\n\n**Authorization:** the `sessionId` returned by `POST /admin/address-pool/begin`. The signed step happens in `begin`.",
        "x-altar-auth": "poolSession",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "sessionId": {
                    "type": "string",
                    "minLength": 1
                  },
                  "chunkIndex": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "addresses": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "addressIndex": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "listIndex": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "address": {
                          "type": "string",
                          "minLength": 1
                        }
                      },
                      "required": [
                        "addressIndex",
                        "listIndex",
                        "address"
                      ]
                    },
                    "maxItems": 5000
                  }
                },
                "required": [
                  "sessionId",
                  "chunkIndex",
                  "addresses"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The chunk was stored.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "received": {
                      "type": "number"
                    }
                  },
                  "required": [
                    "received"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The body is invalid, or the session is not open.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "The session does not exist.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "410": {
            "description": "The session expired.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/admin/address-pool/commit": {
      "post": {
        "tags": [
          "Address pool upload"
        ],
        "summary": "Close the session and publish the range",
        "description": "The server rebuilds the Merkle tree from the uploaded addresses and accepts the range only when the root equals the root the admin signed.\n\n**Authorization:** the `sessionId` returned by `POST /admin/address-pool/begin`. The signed step happens in `begin`.",
        "x-altar-auth": "poolSession",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "sessionId": {
                    "type": "string",
                    "minLength": 1
                  }
                },
                "required": [
                  "sessionId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Committed.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "enum": [
                        "committed",
                        "already-committed"
                      ]
                    }
                  },
                  "required": [
                    "status"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The body is invalid, the range is not fully covered, or the Merkle root does not match.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "The session does not exist.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "409": {
            "description": "A different commitment, or rows, already exist for the range.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "410": {
            "description": "The session expired.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/admin/instance/whoami": {
      "post": {
        "tags": [
          "Instance admin"
        ],
        "summary": "Check whether the signer is an instance admin",
        "description": "Returns whether the signer is on the instance admin list.\n\n**Authorization:** a typed-data (EIP-712) signature of kind `instanceLogin` in the request body. The exact message is in the `x-altar-signature` extension and in the signing guide. The signed timestamp must be no older than 60 minutes and no more than 5 minutes in the future.",
        "x-altar-auth": "signature",
        "x-altar-signature": {
          "kind": "instanceLogin",
          "domain": {
            "name": "ProveX",
            "version": "1",
            "chainId": 1,
            "verifyingContract": "0x0000000000000000000000000000000000000000"
          },
          "primaryType": "InstanceLogin",
          "types": {
            "InstanceLogin": [
              {
                "name": "purpose",
                "type": "string"
              },
              {
                "name": "timestamp",
                "type": "uint256"
              }
            ]
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "signature": {
                    "type": "string",
                    "pattern": "^0x[0-9a-fA-F]*$",
                    "description": "A 0x-prefixed hexadecimal string."
                  },
                  "inputs": {
                    "type": "object",
                    "properties": {
                      "timestamp": {
                        "type": "object",
                        "properties": {
                          "__type__": {
                            "type": "string",
                            "enum": [
                              "bigint"
                            ]
                          },
                          "value": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "__type__",
                          "value"
                        ]
                      }
                    },
                    "required": [
                      "timestamp"
                    ]
                  }
                },
                "required": [
                  "signature",
                  "inputs"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "isInstanceAdmin": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "isInstanceAdmin"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The body is malformed, or the signature or timestamp format is wrong.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "The timestamp is too old, or the signature does not verify.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "The signer is not on the instance admin list.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/admin/instance/labels": {
      "post": {
        "tags": [
          "Instance admin"
        ],
        "summary": "List address labels",
        "description": "Returns all identity labels.\n\n**Authorization:** a typed-data (EIP-712) signature of kind `instanceLogin` in the request body. The exact message is in the `x-altar-signature` extension and in the signing guide. The signed timestamp must be no older than 60 minutes and no more than 5 minutes in the future.",
        "x-altar-auth": "signature",
        "x-altar-signature": {
          "kind": "instanceLogin",
          "domain": {
            "name": "ProveX",
            "version": "1",
            "chainId": 1,
            "verifyingContract": "0x0000000000000000000000000000000000000000"
          },
          "primaryType": "InstanceLogin",
          "types": {
            "InstanceLogin": [
              {
                "name": "purpose",
                "type": "string"
              },
              {
                "name": "timestamp",
                "type": "uint256"
              }
            ]
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "signature": {
                    "type": "string",
                    "pattern": "^0x[0-9a-fA-F]*$",
                    "description": "A 0x-prefixed hexadecimal string."
                  },
                  "inputs": {
                    "type": "object",
                    "properties": {
                      "timestamp": {
                        "type": "object",
                        "properties": {
                          "__type__": {
                            "type": "string",
                            "enum": [
                              "bigint"
                            ]
                          },
                          "value": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "__type__",
                          "value"
                        ]
                      }
                    },
                    "required": [
                      "timestamp"
                    ]
                  }
                },
                "required": [
                  "signature",
                  "inputs"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "labels": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "address": {
                            "type": "string"
                          },
                          "label": {
                            "type": "string"
                          },
                          "createdAt": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "address",
                          "label",
                          "createdAt"
                        ]
                      }
                    }
                  },
                  "required": [
                    "labels"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The body is malformed, or the signature or timestamp format is wrong.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "The timestamp is too old, or the signature does not verify.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "The signer is not on the instance admin list.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/admin/instance/labels/add": {
      "post": {
        "tags": [
          "Instance admin"
        ],
        "summary": "Add an address label",
        "description": "Adds one label to an address. Returns the full label list.\n\n**Authorization:** a typed-data (EIP-712) signature of kind `instanceLogin` in the request body. The exact message is in the `x-altar-signature` extension and in the signing guide. The signed timestamp must be no older than 60 minutes and no more than 5 minutes in the future.",
        "x-altar-auth": "signature",
        "x-altar-signature": {
          "kind": "instanceLogin",
          "domain": {
            "name": "ProveX",
            "version": "1",
            "chainId": 1,
            "verifyingContract": "0x0000000000000000000000000000000000000000"
          },
          "primaryType": "InstanceLogin",
          "types": {
            "InstanceLogin": [
              {
                "name": "purpose",
                "type": "string"
              },
              {
                "name": "timestamp",
                "type": "uint256"
              }
            ]
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "signature": {
                    "type": "string",
                    "pattern": "^0x[0-9a-fA-F]*$",
                    "description": "A 0x-prefixed hexadecimal string."
                  },
                  "inputs": {
                    "type": "object",
                    "properties": {
                      "timestamp": {
                        "type": "object",
                        "properties": {
                          "__type__": {
                            "type": "string",
                            "enum": [
                              "bigint"
                            ]
                          },
                          "value": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "__type__",
                          "value"
                        ]
                      }
                    },
                    "required": [
                      "timestamp"
                    ]
                  },
                  "address": {
                    "type": "string"
                  },
                  "label": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 50
                  }
                },
                "required": [
                  "signature",
                  "inputs",
                  "address",
                  "label"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "labels": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "address": {
                            "type": "string"
                          },
                          "label": {
                            "type": "string"
                          },
                          "createdAt": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "address",
                          "label",
                          "createdAt"
                        ]
                      }
                    }
                  },
                  "required": [
                    "labels"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The body is malformed, or the signature or timestamp format is wrong.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "The timestamp is too old, or the signature does not verify.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "The signer is not on the instance admin list.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/admin/instance/labels/remove": {
      "post": {
        "tags": [
          "Instance admin"
        ],
        "summary": "Remove an address label",
        "description": "Removes one label from an address. Returns the full label list.\n\n**Authorization:** a typed-data (EIP-712) signature of kind `instanceLogin` in the request body. The exact message is in the `x-altar-signature` extension and in the signing guide. The signed timestamp must be no older than 60 minutes and no more than 5 minutes in the future.",
        "x-altar-auth": "signature",
        "x-altar-signature": {
          "kind": "instanceLogin",
          "domain": {
            "name": "ProveX",
            "version": "1",
            "chainId": 1,
            "verifyingContract": "0x0000000000000000000000000000000000000000"
          },
          "primaryType": "InstanceLogin",
          "types": {
            "InstanceLogin": [
              {
                "name": "purpose",
                "type": "string"
              },
              {
                "name": "timestamp",
                "type": "uint256"
              }
            ]
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "signature": {
                    "type": "string",
                    "pattern": "^0x[0-9a-fA-F]*$",
                    "description": "A 0x-prefixed hexadecimal string."
                  },
                  "inputs": {
                    "type": "object",
                    "properties": {
                      "timestamp": {
                        "type": "object",
                        "properties": {
                          "__type__": {
                            "type": "string",
                            "enum": [
                              "bigint"
                            ]
                          },
                          "value": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "__type__",
                          "value"
                        ]
                      }
                    },
                    "required": [
                      "timestamp"
                    ]
                  },
                  "address": {
                    "type": "string"
                  },
                  "label": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 50
                  }
                },
                "required": [
                  "signature",
                  "inputs",
                  "address",
                  "label"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "labels": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "address": {
                            "type": "string"
                          },
                          "label": {
                            "type": "string"
                          },
                          "createdAt": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "address",
                          "label",
                          "createdAt"
                        ]
                      }
                    }
                  },
                  "required": [
                    "labels"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The body is malformed, or the signature or timestamp format is wrong.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "The timestamp is too old, or the signature does not verify.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "The signer is not on the instance admin list.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/admin/instance/activity": {
      "post": {
        "tags": [
          "Instance admin"
        ],
        "summary": "List recent deposits across campaigns",
        "description": "A paged feed of deposits, with an optional label filter.\n\n**Authorization:** a typed-data (EIP-712) signature of kind `instanceLogin` in the request body. The exact message is in the `x-altar-signature` extension and in the signing guide. The signed timestamp must be no older than 60 minutes and no more than 5 minutes in the future.",
        "x-altar-auth": "signature",
        "x-altar-signature": {
          "kind": "instanceLogin",
          "domain": {
            "name": "ProveX",
            "version": "1",
            "chainId": 1,
            "verifyingContract": "0x0000000000000000000000000000000000000000"
          },
          "primaryType": "InstanceLogin",
          "types": {
            "InstanceLogin": [
              {
                "name": "purpose",
                "type": "string"
              },
              {
                "name": "timestamp",
                "type": "uint256"
              }
            ]
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "signature": {
                    "type": "string",
                    "pattern": "^0x[0-9a-fA-F]*$",
                    "description": "A 0x-prefixed hexadecimal string."
                  },
                  "inputs": {
                    "type": "object",
                    "properties": {
                      "timestamp": {
                        "type": "object",
                        "properties": {
                          "__type__": {
                            "type": "string",
                            "enum": [
                              "bigint"
                            ]
                          },
                          "value": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "__type__",
                          "value"
                        ]
                      }
                    },
                    "required": [
                      "timestamp"
                    ]
                  },
                  "limit": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 200
                  },
                  "offset": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "filter": {
                    "type": "object",
                    "properties": {
                      "mode": {
                        "type": "string",
                        "enum": [
                          "only",
                          "exclude"
                        ]
                      },
                      "labels": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    },
                    "required": [
                      "mode",
                      "labels"
                    ]
                  }
                },
                "required": [
                  "signature",
                  "inputs"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "pageInfo": {
                      "type": "object",
                      "properties": {
                        "limit": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "offset": {
                          "type": "number"
                        },
                        "returned": {
                          "type": "number"
                        },
                        "totalCount": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "limit",
                        "offset",
                        "returned",
                        "totalCount"
                      ]
                    },
                    "sacrifices": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "projectId": {
                            "type": "string"
                          },
                          "networkType": {
                            "type": "string"
                          },
                          "chainId": {
                            "type": "number"
                          },
                          "blockHash": {
                            "type": "string"
                          },
                          "transactionHash": {
                            "type": "string"
                          },
                          "logIndex": {
                            "type": "number"
                          },
                          "logType": {
                            "type": "string",
                            "enum": [
                              "native",
                              "token",
                              "mutation"
                            ]
                          },
                          "tokenAddress": {
                            "type": "string"
                          },
                          "pointsDestinationAddress": {
                            "type": "string",
                            "pattern": "^0x[0-9a-fA-F]*$",
                            "description": "A 0x-prefixed hexadecimal string."
                          },
                          "timestamp": {
                            "type": "string"
                          },
                          "amount": {
                            "type": "string"
                          },
                          "blockNumber": {
                            "type": "string"
                          },
                          "blockStatus": {
                            "type": "string"
                          },
                          "tokenSymbol": {
                            "type": "string"
                          },
                          "tokenName": {
                            "type": "string"
                          },
                          "tokenDecimals": {
                            "type": "number"
                          },
                          "price": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "priceSourceHash": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "pointsAmount": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "pointsType": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "isCexAddress": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "projectId",
                          "networkType",
                          "chainId",
                          "blockHash",
                          "transactionHash",
                          "logIndex",
                          "logType",
                          "tokenAddress",
                          "pointsDestinationAddress",
                          "timestamp",
                          "amount",
                          "blockNumber",
                          "blockStatus",
                          "tokenSymbol",
                          "tokenName",
                          "tokenDecimals",
                          "price",
                          "priceSourceHash",
                          "pointsAmount",
                          "pointsType",
                          "isCexAddress"
                        ]
                      }
                    }
                  },
                  "required": [
                    "pageInfo",
                    "sacrifices"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The body is malformed, or the signature or timestamp format is wrong.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "The timestamp is too old, or the signature does not verify.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "The signer is not on the instance admin list.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/admin/instance/campaigns": {
      "post": {
        "tags": [
          "Instance admin"
        ],
        "summary": "Summarize every campaign",
        "description": "Returns one summary row per campaign.\n\n**Authorization:** a typed-data (EIP-712) signature of kind `instanceLogin` in the request body. The exact message is in the `x-altar-signature` extension and in the signing guide. The signed timestamp must be no older than 60 minutes and no more than 5 minutes in the future.",
        "x-altar-auth": "signature",
        "x-altar-signature": {
          "kind": "instanceLogin",
          "domain": {
            "name": "ProveX",
            "version": "1",
            "chainId": 1,
            "verifyingContract": "0x0000000000000000000000000000000000000000"
          },
          "primaryType": "InstanceLogin",
          "types": {
            "InstanceLogin": [
              {
                "name": "purpose",
                "type": "string"
              },
              {
                "name": "timestamp",
                "type": "uint256"
              }
            ]
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "signature": {
                    "type": "string",
                    "pattern": "^0x[0-9a-fA-F]*$",
                    "description": "A 0x-prefixed hexadecimal string."
                  },
                  "inputs": {
                    "type": "object",
                    "properties": {
                      "timestamp": {
                        "type": "object",
                        "properties": {
                          "__type__": {
                            "type": "string",
                            "enum": [
                              "bigint"
                            ]
                          },
                          "value": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "__type__",
                          "value"
                        ]
                      }
                    },
                    "required": [
                      "timestamp"
                    ]
                  },
                  "filter": {
                    "type": "object",
                    "properties": {
                      "mode": {
                        "type": "string",
                        "enum": [
                          "only",
                          "exclude"
                        ]
                      },
                      "labels": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    },
                    "required": [
                      "mode",
                      "labels"
                    ]
                  }
                },
                "required": [
                  "signature",
                  "inputs"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "campaigns": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "projectId": {
                            "type": "string"
                          },
                          "projectName": {
                            "type": "string"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "upcoming",
                              "live",
                              "ended"
                            ]
                          },
                          "isTest": {
                            "type": "boolean"
                          },
                          "depositCount": {
                            "type": "string"
                          },
                          "uniqueDepositors": {
                            "type": "string"
                          },
                          "totalUsd": {
                            "type": "string",
                            "pattern": "^\\d+\\.\\d{2}$"
                          }
                        },
                        "required": [
                          "projectId",
                          "projectName",
                          "status",
                          "isTest",
                          "depositCount",
                          "uniqueDepositors",
                          "totalUsd"
                        ]
                      }
                    }
                  },
                  "required": [
                    "campaigns"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The body is malformed, or the signature or timestamp format is wrong.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "The timestamp is too old, or the signature does not verify.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "The signer is not on the instance admin list.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/admin/instance/identities": {
      "post": {
        "tags": [
          "Instance admin"
        ],
        "summary": "Summarize depositor identities",
        "description": "Returns one summary row per identity.\n\n**Authorization:** a typed-data (EIP-712) signature of kind `instanceLogin` in the request body. The exact message is in the `x-altar-signature` extension and in the signing guide. The signed timestamp must be no older than 60 minutes and no more than 5 minutes in the future.",
        "x-altar-auth": "signature",
        "x-altar-signature": {
          "kind": "instanceLogin",
          "domain": {
            "name": "ProveX",
            "version": "1",
            "chainId": 1,
            "verifyingContract": "0x0000000000000000000000000000000000000000"
          },
          "primaryType": "InstanceLogin",
          "types": {
            "InstanceLogin": [
              {
                "name": "purpose",
                "type": "string"
              },
              {
                "name": "timestamp",
                "type": "uint256"
              }
            ]
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "signature": {
                    "type": "string",
                    "pattern": "^0x[0-9a-fA-F]*$",
                    "description": "A 0x-prefixed hexadecimal string."
                  },
                  "inputs": {
                    "type": "object",
                    "properties": {
                      "timestamp": {
                        "type": "object",
                        "properties": {
                          "__type__": {
                            "type": "string",
                            "enum": [
                              "bigint"
                            ]
                          },
                          "value": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "__type__",
                          "value"
                        ]
                      }
                    },
                    "required": [
                      "timestamp"
                    ]
                  },
                  "filter": {
                    "type": "object",
                    "properties": {
                      "mode": {
                        "type": "string",
                        "enum": [
                          "only",
                          "exclude"
                        ]
                      },
                      "labels": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    },
                    "required": [
                      "mode",
                      "labels"
                    ]
                  },
                  "limit": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 500
                  },
                  "offset": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "signature",
                  "inputs"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "identities": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "address": {
                            "type": "string"
                          },
                          "totalUsd": {
                            "type": "string",
                            "pattern": "^\\d+\\.\\d{2}$"
                          },
                          "campaignCount": {
                            "type": "string"
                          },
                          "depositCount": {
                            "type": "string"
                          },
                          "firstSeen": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "lastSeen": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "labels": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        },
                        "required": [
                          "address",
                          "totalUsd",
                          "campaignCount",
                          "depositCount",
                          "firstSeen",
                          "lastSeen",
                          "labels"
                        ]
                      }
                    }
                  },
                  "required": [
                    "identities"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The body is malformed, or the signature or timestamp format is wrong.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "The timestamp is too old, or the signature does not verify.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "The signer is not on the instance admin list.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/admin/instance/cycle-status": {
      "post": {
        "tags": [
          "Instance admin"
        ],
        "summary": "Read the funding cycle status",
        "description": "Returns the cycle snapshot for every campaign.\n\n**Authorization:** a typed-data (EIP-712) signature of kind `instanceLogin` in the request body. The exact message is in the `x-altar-signature` extension and in the signing guide. The signed timestamp must be no older than 60 minutes and no more than 5 minutes in the future.",
        "x-altar-auth": "signature",
        "x-altar-signature": {
          "kind": "instanceLogin",
          "domain": {
            "name": "ProveX",
            "version": "1",
            "chainId": 1,
            "verifyingContract": "0x0000000000000000000000000000000000000000"
          },
          "primaryType": "InstanceLogin",
          "types": {
            "InstanceLogin": [
              {
                "name": "purpose",
                "type": "string"
              },
              {
                "name": "timestamp",
                "type": "uint256"
              }
            ]
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "signature": {
                    "type": "string",
                    "pattern": "^0x[0-9a-fA-F]*$",
                    "description": "A 0x-prefixed hexadecimal string."
                  },
                  "inputs": {
                    "type": "object",
                    "properties": {
                      "timestamp": {
                        "type": "object",
                        "properties": {
                          "__type__": {
                            "type": "string",
                            "enum": [
                              "bigint"
                            ]
                          },
                          "value": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "__type__",
                          "value"
                        ]
                      }
                    },
                    "required": [
                      "timestamp"
                    ]
                  }
                },
                "required": [
                  "signature",
                  "inputs"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statuses": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "command": {
                            "type": "string",
                            "enum": [
                              "tick",
                              "deposit-drip",
                              "closeout"
                            ]
                          },
                          "enabled": {
                            "type": "boolean"
                          },
                          "paused": {
                            "type": "boolean"
                          },
                          "dryRun": {
                            "type": "boolean"
                          },
                          "lifecycleCounts": {
                            "type": "object",
                            "properties": {
                              "pending": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "open": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "closing": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "swept": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "failed": {
                                "type": "integer",
                                "minimum": 0
                              }
                            },
                            "required": [
                              "pending",
                              "open",
                              "closing",
                              "swept",
                              "failed"
                            ]
                          },
                          "chainSpend": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "networkType": {
                                  "type": "string"
                                },
                                "chainId": {
                                  "type": "integer"
                                },
                                "spentNative": {
                                  "type": "string"
                                },
                                "spentUsdEstimate": {
                                  "type": "number"
                                }
                              },
                              "required": [
                                "networkType",
                                "chainId",
                                "spentNative",
                                "spentUsdEstimate"
                              ]
                            }
                          },
                          "totalUsd": {
                            "type": "number"
                          },
                          "spendCapUsd": {
                            "type": "number"
                          },
                          "lastRunAt": {
                            "type": "string"
                          },
                          "lastOutcome": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "command",
                          "enabled",
                          "paused",
                          "dryRun",
                          "lifecycleCounts",
                          "chainSpend",
                          "totalUsd",
                          "spendCapUsd",
                          "lastRunAt",
                          "lastOutcome"
                        ]
                      }
                    }
                  },
                  "required": [
                    "statuses"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The body is malformed, or the signature or timestamp format is wrong.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "The timestamp is too old, or the signature does not verify.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "The signer is not on the instance admin list.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/admin/instance/activity/stream": {
      "get": {
        "tags": [
          "Instance admin"
        ],
        "summary": "Live-tail new deposits (server-sent events)",
        "description": "Browsers cannot send a body or headers on an event stream, so the instance-login signature travels in the query string. The stream sends one `data:` line per new deposit and a keepalive comment line. Only deposits after the connection opens are sent.\n\n**Authorization:** a typed-data (EIP-712) signature of kind `instanceLogin` in the query string. The exact message is in the `x-altar-signature` extension and in the signing guide. The signed timestamp must be no older than 60 minutes and no more than 5 minutes in the future.",
        "x-altar-auth": "signature",
        "x-altar-signature": {
          "kind": "instanceLogin",
          "domain": {
            "name": "ProveX",
            "version": "1",
            "chainId": 1,
            "verifyingContract": "0x0000000000000000000000000000000000000000"
          },
          "primaryType": "InstanceLogin",
          "types": {
            "InstanceLogin": [
              {
                "name": "purpose",
                "type": "string"
              },
              {
                "name": "timestamp",
                "type": "uint256"
              }
            ]
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The instance-login signature (hex)."
            },
            "required": true,
            "description": "The instance-login signature (hex).",
            "name": "signature",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "description": "Signed timestamp, milliseconds since the Unix epoch, as a decimal string."
            },
            "required": true,
            "description": "Signed timestamp, milliseconds since the Unix epoch, as a decimal string.",
            "name": "timestamp",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "only",
                "exclude"
              ],
              "description": "Label filter mode."
            },
            "required": false,
            "description": "Label filter mode.",
            "name": "mode",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "description": "Comma-separated labels for the filter."
            },
            "required": false,
            "description": "Comma-separated labels for the filter.",
            "name": "labels",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "An event stream.",
            "content": {
              "text/event-stream": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "The signature or timestamp is missing or malformed.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "The timestamp is too old, or the signature does not verify.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "The signer is not on the instance admin list.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    }
  },
  "webhooks": {}
}
