@tari-project/ootle-indexer 0.5.0 → 0.6.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.
package/dist/index.d.ts CHANGED
@@ -5,17 +5,18 @@ import { IndexerClient } from '@tari-project/indexer-client';
5
5
  import { IndexerGetSubstateResponse } from '@tari-project/ootle-ts-bindings';
6
6
  import { IndexerGetTransactionResultResponse } from '@tari-project/ootle-ts-bindings';
7
7
  import { IndexerSubmitTransactionResponse } from '@tari-project/ootle-ts-bindings';
8
+ import { InputDeclaration } from '@tari-project/ootle-ts-bindings';
8
9
  import { ListRecentTransactionsRequest } from '@tari-project/ootle-ts-bindings';
9
10
  import { ListRecentTransactionsResponse } from '@tari-project/ootle-ts-bindings';
10
- import { ListTemplatesResponse } from '@tari-project/ootle-ts-bindings';
11
+ import { ListWatchedTemplatesResponse } from '@tari-project/ootle-ts-bindings';
11
12
  import { Network } from '@tari-project/ootle';
12
13
  import { Provider } from '@tari-project/ootle';
13
14
  import { SubstateId } from '@tari-project/ootle-ts-bindings';
14
15
  import { SubstateRequirement } from '@tari-project/ootle-ts-bindings';
15
- import { TemplateMeta } from '@tari-project/ootle-ts-bindings';
16
16
  import { TransactionEntry } from '@tari-project/ootle-ts-bindings';
17
17
  import { TransactionEnvelope } from '@tari-project/ootle-ts-bindings';
18
18
  import { transports } from '@tari-project/indexer-client';
19
+ import { WatchedTemplateItem } from '@tari-project/ootle-ts-bindings';
19
20
 
20
21
  export { IndexerClient }
21
22
 
@@ -53,7 +54,7 @@ export declare class IndexerProvider implements Provider {
53
54
  getTemplateDefinition(templateAddress: string): Promise<GetTemplateDefinitionResponse>;
54
55
  submitTransaction(envelope: TransactionEnvelope): Promise<IndexerSubmitTransactionResponse>;
55
56
  getTransactionResult(transactionId: string): Promise<IndexerGetTransactionResultResponse>;
56
- resolveInputs(inputs: SubstateRequirement[]): Promise<SubstateRequirement[]>;
57
+ resolveInputs(inputs: InputDeclaration[]): Promise<InputDeclaration[]>;
57
58
  listRecentTransactions(params: ListRecentTransactionsRequest): Promise<ListRecentTransactionsResponse>;
58
59
  }
59
60
 
@@ -74,7 +75,7 @@ export declare interface IndexerSseEvent {
74
75
  data: unknown;
75
76
  }
76
77
 
77
- export { ListTemplatesResponse }
78
+ export { ListWatchedTemplatesResponse }
78
79
 
79
80
  /**
80
81
  * Opens a persistent SSE connection to `url` using `fetch` and yields
@@ -206,8 +207,6 @@ declare type SseFinalizedDecision = {
206
207
  decision: "Indeterminate";
207
208
  };
208
209
 
209
- export { TemplateMeta }
210
-
211
210
  export { TransactionEntry }
212
211
 
213
212
  /**
@@ -270,4 +269,6 @@ export declare type WantInput = {
270
269
  version?: number | null;
271
270
  };
272
271
 
272
+ export { WatchedTemplateItem }
273
+
273
274
  export { }
package/dist/index.js CHANGED
@@ -234,9 +234,6 @@ var m = class e2 {
234
234
  templatesGet(e5) {
235
235
  return this.transport.sendGet(`templates/${encodeURIComponent(e5)}`, {});
236
236
  }
237
- templatesListCached(e5 = 0) {
238
- return this.transport.sendGet("templates/cached", { limit: e5 });
239
- }
240
237
  resourcesGet(e5) {
241
238
  return this.transport.sendGet(`resources/${encodeURIComponent(e5)}`, {});
242
239
  }
@@ -554,7 +551,7 @@ var w = class t2 {
554
551
  local_search_only: false
555
552
  });
556
553
  return {
557
- substate_id: t4.substate_id,
554
+ ...t4,
558
555
  version: e5.version
559
556
  };
560
557
  } catch (n2) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tari-project/ootle-indexer",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/tari-project/ootle.ts.git",
@@ -25,9 +25,9 @@
25
25
  }
26
26
  },
27
27
  "dependencies": {
28
- "@tari-project/indexer-client": "^1.6.0",
29
- "@tari-project/ootle-ts-bindings": "^1.52.0",
30
- "@tari-project/ootle": "0.5.0"
28
+ "@tari-project/indexer-client": "^1.8.0",
29
+ "@tari-project/ootle-ts-bindings": "^1.55.0",
30
+ "@tari-project/ootle": "0.6.0"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@types/node": "^25.5.0",