diff --git a/db/README.md b/db/README.md
index 03dee881..a97dc30b 100644
--- a/db/README.md
+++ b/db/README.md
@@ -31,9 +31,10 @@ CREATE TABLE `inputs` (
CREATE UNIQUE INDEX `inputsByOutputReference` ON `inputs` (`output_reference`);
-CREATE INDEX `inputsByAddress` ON `inputs` (`address` COLLATE NOCASE, `spent_at`);
-CREATE INDEX `inputsByPaymentCredential` ON `inputs` (`payment_credential` COLLATE NOCASE, `spent_at`);
+CREATE INDEX `inputsByAddress` ON `inputs` (`address` COLLATE NOCASE);
+CREATE INDEX `inputsByPaymentCredential` ON `inputs` (`payment_credential` COLLATE NOCASE);
CREATE INDEX `inputsByCreatedAt` ON `inputs` (`created_at`);
+CREATE INDEX `inputsBySpentAt` ON `inputs` (`spent_at`);
CREATE TABLE `policies` (
`output_reference` BLOB NOT NULL,
@@ -68,6 +69,12 @@ CREATE TABLE `patterns` (
## Changelog
+
v2.5.0
+
+
+- Remove `spent_at` from compound indexes `inputsByAddress` and `inputsByPaymentCredential`
+- Add permanent index `inputsBySpentAt(spent_at)`
+
v2.2.0
diff --git a/docs/api/v2.3.3.yaml b/docs/api/v2.5.0.yaml
similarity index 98%
rename from docs/api/v2.3.3.yaml
rename to docs/api/v2.5.0.yaml
index 44f3fc70..1ac3643e 100644
--- a/docs/api/v2.3.3.yaml
+++ b/docs/api/v2.5.0.yaml
@@ -5,7 +5,7 @@ servers:
info:
title: Kupo
- version: v2.3.3
+ version: v2.5.0
license:
name: MPL-2.0
url: https://raw.githubusercontent.com/cardanosolutions/kupo/master/LICENSE
@@ -279,8 +279,11 @@ info:
├─┫ POLICY_ID ┣────┤ . ├─┫ ASSET_NAME ┣─────┤
│ ┗━━━━━━━━━━━┛ ╰───╯ ┗━━━━━━━━━━━━┛ │
│ ┏━━━━━━━━━━━━━━┓ ╭───╮ ┏━━━━━━━━━━━━━━━━┓ │
- └─┫ OUTPUT_INDEX ┣─┤ @ ├─┫ TRANSACTION_ID ┣─┘
- ┗━━━━━━━━━━━━━━┛ ╰───╯ ┗━━━━━━━━━━━━━━━━┛
+ ├─┫ OUTPUT_INDEX ┣─┤ @ ├─┫ TRANSACTION_ID ┣─┤
+ │ ┗━━━━━━━━━━━━━━┛ ╰───╯ ┗━━━━━━━━━━━━━━━━┛ │
+ │ ┏━━━━━━━━━━━━━━┓ │
+ └─┫ METADATA_TAG ┣──────────────────────────┘
+ ┗━━━━━━━━━━━━━━┛
```
## Address
@@ -381,12 +384,26 @@ info:
HEXDIG = %x30–39 / %x41-%46
```
+ ## Metadata tag
+
+ > WARNING
+ >
+ > This pattern can only be used for indexing, not for querying.
+
+ ```
+ METADATA_TAG =
+
+ ╭───╮ ┏━━━━━━━━━━━━━━┓ ╭───╮
+ ╾─┤ { ├──┫ METADATA TAG ┣──┤ } ├─╼
+ ╰───╯ ┗━━━━━━━━━━━━━━┛ ╰───╯
+ ```
+
### Examples
- | Pattern | Description |
- | --- | --- |
- | `*@dca1e44765b9f80c8b18105e17de90d4a07e4d5a83de533e53fee32e0502d17e` | Outputs from a specific transaction |
- | `3@dca1e44765b9f80c8b18105e17de90d4a07e4d5a83de533e53fee32e0502d17e` | The 4th output (0-based indexing) of a given transaction |
+ | Pattern | Description |
+ | --- | --- |
+ | `{25}` | Outputs of any transaction that has metadata with label 25 |
+ | `{42}` | Outputs of any transaction that has metadata with label 42 |
# Accessing results
@@ -1241,6 +1258,7 @@ components:
- connection_status
- most_recent_checkpoint
- most_recent_node_tip
+ - version
properties:
connection_status:
type: string
@@ -1260,6 +1278,9 @@ components:
description: Absolute slot number of the current tip of the node.
- type: "null"
description: Absolute slot number of the current tip of the node.
+ version:
+ type: string
+ description: Current software version.
parameters:
asset-name:
@@ -2057,7 +2078,8 @@ paths:
description: |
A key-value export compatible with Prometheus.
- `connected` and `disconnected` are encoded as `1.0` and `0.0` respectively.
+ - `connected` and `disconnected` are encoded as `1.0` and `0.0` respectively.
+ - `version` is not present in the Prometheus metrics.
examples:
response:
value: |
diff --git a/docs/index.html b/docs/index.html
index c3647efc..d51d386b 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -126,8 +126,8 @@