@tari-project/ootle-ts-bindings 1.49.1 → 1.50.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,7 @@
1
1
  export * from "./types/tari-indexer-client/IndexerSubmitTransactionResponse";
2
2
  export * from "./types/tari-indexer-client/GetTransactionReceiptResponse";
3
3
  export * from "./types/tari-indexer-client/GetNetworkInfoResponse";
4
+ export * from "./types/tari-indexer-client/GetIndexerInfoResponse";
4
5
  export * from "./types/tari-indexer-client/WatchedSubstateItem";
5
6
  export * from "./types/tari-indexer-client/GetUtxoUpdatesRequest";
6
7
  export * from "./types/tari-indexer-client/WatchedTemplateItem";
@@ -3,6 +3,7 @@
3
3
  export * from "./types/tari-indexer-client/IndexerSubmitTransactionResponse";
4
4
  export * from "./types/tari-indexer-client/GetTransactionReceiptResponse";
5
5
  export * from "./types/tari-indexer-client/GetNetworkInfoResponse";
6
+ export * from "./types/tari-indexer-client/GetIndexerInfoResponse";
6
7
  export * from "./types/tari-indexer-client/WatchedSubstateItem";
7
8
  export * from "./types/tari-indexer-client/GetUtxoUpdatesRequest";
8
9
  export * from "./types/tari-indexer-client/WatchedTemplateItem";
@@ -0,0 +1,49 @@
1
+ import type { Epoch } from "../Epoch";
2
+ import type { Network } from "../Network";
3
+ import type { RistrettoPublicKeyBytes } from "../RistrettoPublicKeyBytes";
4
+ /**
5
+ * The configuration of a single indexer node, as far as it affects what its API returns. Every field
6
+ * is local to the node answering the request: two indexers on the same network can disagree on all of
7
+ * them, so a client that cares must ask the node it is talking to.
8
+ */
9
+ export type GetIndexerInfoResponse = {
10
+ /**
11
+ * The indexer's build version.
12
+ */
13
+ version: string;
14
+ network: Network;
15
+ network_byte: number;
16
+ /**
17
+ * The sidechain this indexer follows, if it is configured for one.
18
+ */
19
+ sidechain_id: RistrettoPublicKeyBytes | null;
20
+ /**
21
+ * The current epoch, so a client can resolve the epoch-denominated fields below against a clock
22
+ * without a second request.
23
+ */
24
+ current_epoch: Epoch;
25
+ /**
26
+ * How many epochs past its terminal epoch this indexer retains a transaction submitted through it
27
+ * before pruning the record. `None` means transactions are retained indefinitely. Transaction
28
+ * receipts are retained regardless of this setting. A client paginating transaction history hits
29
+ * this floor rather than the start of the chain.
30
+ */
31
+ transaction_retention_epochs: bigint | null;
32
+ /**
33
+ * Whether substates served by this indexer are verified against a shard group committee proof
34
+ * before being returned. When false, values are served as fetched from a single validator and
35
+ * carry no proof of correctness.
36
+ */
37
+ verify_substate_proofs: boolean;
38
+ /**
39
+ * How long this indexer may serve a cached substate as the latest version of that substate, in
40
+ * seconds. A read of the latest version may be up to this stale; reads of a specific version are
41
+ * unaffected.
42
+ */
43
+ latest_substate_cache_ttl_secs: bigint;
44
+ /**
45
+ * Whether this indexer stores every event on the network. When false it is configured with event
46
+ * filters, so event queries answer over a subset and absence is not proof an event did not occur.
47
+ */
48
+ indexes_all_events: boolean;
49
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tari-project/ootle-ts-bindings",
3
- "version": "1.49.1",
3
+ "version": "1.50.0",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"