@tari-project/ootle-ts-bindings 1.55.0 → 1.56.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.
@@ -5,6 +5,13 @@ export type IndexerGetEpochManagerStatsResponse = {
5
5
  * The current epoch according to the indexer's epoch oracle view
6
6
  */
7
7
  current_epoch: Epoch;
8
+ /**
9
+ * The epoch the validators execute transactions in, as the indexer has observed from their
10
+ * committed blocks, held within one epoch below `current_epoch`. It trails `current_epoch` after
11
+ * each epoch boundary until every committee has committed its end-of-epoch block. `None` until
12
+ * the indexer has observed every committee.
13
+ */
14
+ consensus_epoch: Epoch | null;
8
15
  current_block_height: bigint;
9
16
  current_block_hash: Hash32;
10
17
  };
@@ -13,5 +13,12 @@ export type QueryTransactionEventsRequest = {
13
13
  */
14
14
  resource_address?: ResourceAddress | null;
15
15
  limit: number | null;
16
+ /**
17
+ * Matches to skip, at most 10,000. Page deeper with `before_id`.
18
+ */
16
19
  offset: number | null;
20
+ /**
21
+ * Return only events older than this cursor. Pass the previous page's `next_before_id`.
22
+ */
23
+ before_id?: number | bigint | string | null;
17
24
  };
@@ -2,4 +2,10 @@ import type { Event } from "../Event";
2
2
  import type { TransactionId } from "../TransactionId";
3
3
  export type QueryTransactionEventsResponse = {
4
4
  events: Array<[TransactionId, Event]>;
5
+ /**
6
+ * The `before_id` for the next page, or `None` once no older event can match. A wildcard
7
+ * topic query examines a bounded number of events per request, so a page can be short, or
8
+ * empty, and still carry a cursor.
9
+ */
10
+ next_before_id?: bigint | null;
5
11
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tari-project/ootle-ts-bindings",
3
- "version": "1.55.0",
3
+ "version": "1.56.0",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"