@tari-project/ootle-ts-bindings 1.32.0 → 1.34.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.
Files changed (108) hide show
  1. package/dist/index.d.ts +32 -22
  2. package/dist/index.js +32 -22
  3. package/dist/tari-indexer-client.d.ts +49 -39
  4. package/dist/tari-indexer-client.js +49 -39
  5. package/dist/types/AbortReason.d.ts +1 -1
  6. package/dist/types/AddressBookPermission.d.ts +1 -0
  7. package/dist/types/AddressBookPermission.js +2 -0
  8. package/dist/types/Blob.d.ts +10 -0
  9. package/dist/types/Blob.js +2 -0
  10. package/dist/types/BlobHashes.d.ts +6 -0
  11. package/dist/types/BlobHashes.js +1 -0
  12. package/dist/types/Blobs.d.ts +6 -0
  13. package/dist/types/Blobs.js +1 -0
  14. package/dist/types/Component.d.ts +6 -0
  15. package/dist/types/Component.js +1 -0
  16. package/dist/types/ComponentHeader.d.ts +0 -3
  17. package/dist/types/ExecuteResult.d.ts +2 -1
  18. package/dist/types/FeeSource.d.ts +1 -1
  19. package/dist/types/Instruction.d.ts +5 -1
  20. package/dist/types/InstructionArg.d.ts +5 -2
  21. package/dist/types/JrpcPermission.d.ts +4 -1
  22. package/dist/types/LockedEpoch.d.ts +6 -0
  23. package/dist/types/LockedEpoch.js +1 -0
  24. package/dist/types/PrunedTransaction.d.ts +9 -0
  25. package/dist/types/PrunedTransaction.js +1 -0
  26. package/dist/types/PrunedTransactionV1.d.ts +11 -0
  27. package/dist/types/PrunedTransactionV1.js +1 -0
  28. package/dist/types/PrunedUnsealedTransactionV1.d.ts +9 -0
  29. package/dist/types/PrunedUnsealedTransactionV1.js +1 -0
  30. package/dist/types/PrunedUnsignedTransactionV1.d.ts +30 -0
  31. package/dist/types/PrunedUnsignedTransactionV1.js +1 -0
  32. package/dist/types/ResourceAccessRules.d.ts +6 -0
  33. package/dist/types/SubstateValue.d.ts +2 -2
  34. package/dist/types/TemplateMetadata.d.ts +10 -0
  35. package/dist/types/TransactionPoolRecord.d.ts +6 -1
  36. package/dist/types/TransactionReceipt.d.ts +2 -1
  37. package/dist/types/UnsignedTransactionV1.d.ts +6 -0
  38. package/dist/types/WalletTransaction.d.ts +6 -2
  39. package/dist/types/tari-indexer-client/GetLatestEpochCheckpointResponse.d.ts +3 -0
  40. package/dist/types/tari-indexer-client/GetLatestEpochCheckpointResponse.js +2 -0
  41. package/dist/types/tari-indexer-client/GetNetworkSyncStateResponse.d.ts +9 -0
  42. package/dist/types/tari-indexer-client/ListEpochCheckpointsRequest.d.ts +11 -0
  43. package/dist/types/tari-indexer-client/ListEpochCheckpointsRequest.js +1 -0
  44. package/dist/types/tari-indexer-client/ListEpochCheckpointsResponse.d.ts +3 -0
  45. package/dist/types/tari-indexer-client/ListEpochCheckpointsResponse.js +2 -0
  46. package/dist/types/tari-indexer-client/ListTemplateCatalogueRequest.d.ts +2 -1
  47. package/dist/types/tari-indexer-client/ListTemplateCatalogueRequest.js +0 -1
  48. package/dist/types/tari-indexer-client/ListWatchedSubstatesRequest.d.ts +6 -0
  49. package/dist/types/tari-indexer-client/ListWatchedSubstatesRequest.js +1 -0
  50. package/dist/types/tari-indexer-client/ListWatchedSubstatesResponse.d.ts +4 -0
  51. package/dist/types/tari-indexer-client/ListWatchedSubstatesResponse.js +1 -0
  52. package/dist/types/tari-indexer-client/ListWatchedTemplatesResponse.d.ts +4 -0
  53. package/dist/types/tari-indexer-client/ListWatchedTemplatesResponse.js +1 -0
  54. package/dist/types/tari-indexer-client/QueryTransactionEventsRequest.d.ts +7 -0
  55. package/dist/types/tari-indexer-client/StreamTransactionEventsRequest.d.ts +7 -0
  56. package/dist/types/tari-indexer-client/TransactionEntry.d.ts +5 -2
  57. package/dist/types/tari-indexer-client/ValidatorConsensusState.d.ts +1 -0
  58. package/dist/types/tari-indexer-client/ValidatorConsensusState.js +2 -0
  59. package/dist/types/tari-indexer-client/ValidatorStatus.d.ts +23 -0
  60. package/dist/types/tari-indexer-client/ValidatorStatus.js +1 -0
  61. package/dist/types/tari-indexer-client/WatchedSubstateItem.d.ts +6 -0
  62. package/dist/types/tari-indexer-client/WatchedSubstateItem.js +1 -0
  63. package/dist/types/tari-indexer-client/WatchedTemplateItem.d.ts +5 -0
  64. package/dist/types/tari-indexer-client/WatchedTemplateItem.js +1 -0
  65. package/dist/types/wallet-types/AddressBookAddRequest.d.ts +5 -0
  66. package/dist/types/wallet-types/AddressBookAddRequest.js +2 -0
  67. package/dist/types/wallet-types/AddressBookAddResponse.d.ts +4 -0
  68. package/dist/types/wallet-types/AddressBookAddResponse.js +1 -0
  69. package/dist/types/wallet-types/AddressBookDeleteRequest.d.ts +3 -0
  70. package/dist/types/wallet-types/AddressBookDeleteRequest.js +2 -0
  71. package/dist/types/wallet-types/AddressBookDeleteResponse.d.ts +1 -0
  72. package/dist/types/wallet-types/AddressBookDeleteResponse.js +2 -0
  73. package/dist/types/wallet-types/AddressBookEntry.d.ts +6 -0
  74. package/dist/types/wallet-types/AddressBookEntry.js +2 -0
  75. package/dist/types/wallet-types/AddressBookGetRequest.d.ts +3 -0
  76. package/dist/types/wallet-types/AddressBookGetRequest.js +2 -0
  77. package/dist/types/wallet-types/AddressBookGetResponse.d.ts +4 -0
  78. package/dist/types/wallet-types/AddressBookGetResponse.js +1 -0
  79. package/dist/types/wallet-types/AddressBookListRequest.d.ts +1 -0
  80. package/dist/types/wallet-types/AddressBookListRequest.js +2 -0
  81. package/dist/types/wallet-types/AddressBookListResponse.d.ts +4 -0
  82. package/dist/types/wallet-types/AddressBookListResponse.js +1 -0
  83. package/dist/types/wallet-types/AddressBookUpdateRequest.d.ts +6 -0
  84. package/dist/types/wallet-types/AddressBookUpdateRequest.js +2 -0
  85. package/dist/types/wallet-types/AddressBookUpdateResponse.d.ts +4 -0
  86. package/dist/types/wallet-types/AddressBookUpdateResponse.js +1 -0
  87. package/dist/types/wallet-types/ClaimBurnResponse.d.ts +5 -0
  88. package/dist/types/wallet-types/SettingsGetResponse.d.ts +1 -0
  89. package/dist/types/wallet-types/SettingsSetRequest.d.ts +2 -1
  90. package/dist/types/wallet-types/SwapPoolGetExchangeRateRequest.d.ts +9 -0
  91. package/dist/types/wallet-types/SwapPoolGetExchangeRateRequest.js +1 -0
  92. package/dist/types/wallet-types/SwapPoolGetExchangeRateResponse.d.ts +12 -0
  93. package/dist/types/wallet-types/SwapPoolGetExchangeRateResponse.js +1 -0
  94. package/dist/types/wallet-types/SwapPoolInfo.d.ts +8 -0
  95. package/dist/types/wallet-types/SwapPoolInfo.js +1 -0
  96. package/dist/types/wallet-types/SwapPoolsListRequest.d.ts +9 -0
  97. package/dist/types/wallet-types/SwapPoolsListRequest.js +2 -0
  98. package/dist/types/wallet-types/SwapPoolsListResponse.d.ts +4 -0
  99. package/dist/types/wallet-types/SwapPoolsListResponse.js +1 -0
  100. package/dist/types/wallet-types/TransactionGetResponse.d.ts +10 -2
  101. package/dist/types/wallet-types/TransactionSubmitDryRunResponse.d.ts +7 -0
  102. package/dist/types/wallet-types/TransactionSubmitManifestRequest.d.ts +14 -0
  103. package/dist/types/wallet-types/TransactionSubmitManifestResponse.d.ts +5 -0
  104. package/dist/validator-node-client.d.ts +42 -42
  105. package/dist/validator-node-client.js +42 -42
  106. package/dist/wallet-types.d.ts +144 -128
  107. package/dist/wallet-types.js +144 -128
  108. package/package.json +1 -1
@@ -0,0 +1,6 @@
1
+ import type { ComponentBody } from "./ComponentBody";
2
+ import type { ComponentHeader } from "./ComponentHeader";
3
+ export type Component = {
4
+ header: ComponentHeader;
5
+ body: ComponentBody;
6
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -1,13 +1,10 @@
1
1
  import type { ComponentAccessRules } from "./ComponentAccessRules";
2
- import type { ComponentBody } from "./ComponentBody";
3
2
  import type { EntityId } from "./EntityId";
4
3
  import type { Hash32 } from "./Hash32";
5
4
  import type { SubstateOwnerRule } from "./SubstateOwnerRule";
6
5
  export type ComponentHeader = {
7
6
  template_address: Hash32;
8
- module_name: string;
9
7
  owner_rule: SubstateOwnerRule;
10
8
  access_rules: ComponentAccessRules;
11
9
  entity_id: EntityId;
12
- body: ComponentBody;
13
10
  };
@@ -1,3 +1,4 @@
1
+ import type { Epoch } from "./Epoch";
1
2
  import type { FinalizeResult } from "./FinalizeResult";
2
3
  export type ExecuteResult = {
3
4
  /**
@@ -15,5 +16,5 @@ export type ExecuteResult = {
15
16
  * The epoch during which the transaction was executed. This may be None if consensus aborted before being able to
16
17
  * lock to an epoch.
17
18
  */
18
- execute_epoch: bigint | null;
19
+ execute_epoch: Epoch | null;
19
20
  };
@@ -1 +1 @@
1
- export type FeeSource = "Initial" | "RuntimeCall" | "Storage" | "Events" | "Logs" | "TransactionWeight" | "SignatureVerification" | "TemplateLoad";
1
+ export type FeeSource = "Initial" | "RuntimeCall" | "Storage" | "Events" | "Logs" | "TransactionWeight" | "SignatureVerification" | "TemplateLoad" | "SubstateCreate";
@@ -65,7 +65,11 @@ export type Instruction = {
65
65
  };
66
66
  } | {
67
67
  PublishTemplate: {
68
- binary: string;
68
+ /**
69
+ * Index into the transaction's `blobs` list. The referenced blob's bytes are the WASM
70
+ * binary, which the engine resolves via the surrounding `Blobs` at execution time.
71
+ */
72
+ binary: number;
69
73
  /**
70
74
  * Optional multihash of off-chain CBOR metadata
71
75
  */
@@ -1,10 +1,13 @@
1
1
  import type { WorkspaceOffsetId } from "./WorkspaceOffsetId";
2
2
  /**
3
- * Represents an argument that can be passed to a transaction instruction. Either a literal value or a reference to a
4
- * item on the runtime's workspace.
3
+ * Represents an argument that can be passed to a transaction instruction. Either a literal
4
+ * value, a reference to an item on the runtime's workspace, or a reference to a transaction
5
+ * blob by index. Use `Blob` for large/opaque data; prefer `Literal` for small values.
5
6
  */
6
7
  export type InstructionArg = {
7
8
  Workspace: WorkspaceOffsetId;
8
9
  } | {
9
10
  Literal: string;
11
+ } | {
12
+ Blob: number;
10
13
  };
@@ -1,3 +1,4 @@
1
+ import type { AddressBookPermission } from "./AddressBookPermission";
1
2
  import type { ComponentAddress } from "./ComponentAddress";
2
3
  import type { ResourceAddress } from "./ResourceAddress";
3
4
  import type { SubstateId } from "./SubstateId";
@@ -11,4 +12,6 @@ export type JrpcPermission = "AccountInfo" | {
11
12
  TransactionSend: SubstateId | null;
12
13
  } | {
13
14
  GetNft: [SubstateId | null, ResourceAddress | null];
14
- } | "StartWebrtc" | "Admin";
15
+ } | "StartWebrtc" | {
16
+ AddressBook: AddressBookPermission;
17
+ } | "Admin";
@@ -0,0 +1,6 @@
1
+ import type { Epoch } from "./Epoch";
2
+ import type { Hash32 } from "./Hash32";
3
+ export type LockedEpoch = {
4
+ epoch: Epoch;
5
+ hash: Hash32;
6
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,9 @@
1
+ import type { PrunedTransactionV1 } from "./PrunedTransactionV1";
2
+ /**
3
+ * Pruned, archive-only counterpart of `Transaction`. Carries blob commitments instead of
4
+ * blob payloads, so API responses can omit the raw bytes while preserving the `TransactionId`,
5
+ * signature verifiability, and the structural shape the UI needs to display.
6
+ */
7
+ export type PrunedTransaction = {
8
+ V1: PrunedTransactionV1;
9
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,11 @@
1
+ import type { PrunedUnsealedTransactionV1 } from "./PrunedUnsealedTransactionV1";
2
+ import type { TransactionSealSignature } from "./TransactionSealSignature";
3
+ /**
4
+ * Pruned, archive-only counterpart of `TransactionV1`. Carries blob commitments instead of
5
+ * blob payloads. Produces the same `TransactionId` and verifies the same signatures as the
6
+ * full form.
7
+ */
8
+ export type PrunedTransactionV1 = {
9
+ body: PrunedUnsealedTransactionV1;
10
+ seal_signature: TransactionSealSignature;
11
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,9 @@
1
+ import type { PrunedUnsignedTransactionV1 } from "./PrunedUnsignedTransactionV1";
2
+ import type { TransactionSignature } from "./TransactionSignature";
3
+ /**
4
+ * Mirror of `UnsealedTransactionV1` for the pruned form.
5
+ */
6
+ export type PrunedUnsealedTransactionV1 = {
7
+ transaction: PrunedUnsignedTransactionV1;
8
+ signatures: Array<TransactionSignature>;
9
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,30 @@
1
+ import type { BlobHashes } from "./BlobHashes";
2
+ import type { Epoch } from "./Epoch";
3
+ import type { Instruction } from "./Instruction";
4
+ import type { SubstateRequirement } from "./SubstateRequirement";
5
+ /**
6
+ * Mirror of `UnsignedTransactionV1` but with blob commitments instead of blob payloads.
7
+ *
8
+ * All non-blob fields are preserved verbatim so the field projection used in the signing /
9
+ * id digest is byte-identical to the full form.
10
+ */
11
+ export type PrunedUnsignedTransactionV1 = {
12
+ network: number;
13
+ fee_instructions: Array<Instruction>;
14
+ instructions: Array<Instruction>;
15
+ inputs: Array<SubstateRequirement>;
16
+ min_epoch: Epoch | null;
17
+ max_epoch: Epoch | null;
18
+ is_seal_signer_authorized: boolean;
19
+ dry_run: boolean;
20
+ /**
21
+ * Per-blob commitments. Mirrors `UnsignedTransactionV1.blobs.hashes()` of the full form.
22
+ */
23
+ blob_hashes: BlobHashes;
24
+ /**
25
+ * Byte size of each blob, parallel to `blob_hashes`. Not part of the signing/id digest;
26
+ * populated at conversion time so UIs can display blob sizes without downloading payloads.
27
+ * May be empty when deserialised from older archives that didn't record sizes.
28
+ */
29
+ blob_sizes: Array<number>;
30
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -11,4 +11,10 @@ export type ResourceAccessRules = {
11
11
  update_non_fungible_data: AccessRule;
12
12
  update_access_rules: AccessRule;
13
13
  freeze: AccessRule;
14
+ /**
15
+ * Added post-launch. Appended last to keep bincode field positions stable for prior fields;
16
+ * this is still a breaking change for pre-existing substates because bincode cannot read a
17
+ * missing trailing field, so the chain must be reset or data migrated on upgrade.
18
+ */
19
+ update_metadata: AccessRule;
14
20
  };
@@ -1,5 +1,5 @@
1
1
  import type { ClaimedOutputTombstone } from "./ClaimedOutputTombstone";
2
- import type { ComponentHeader } from "./ComponentHeader";
2
+ import type { Component } from "./Component";
3
3
  import type { NonFungibleContainer } from "./NonFungibleContainer";
4
4
  import type { PublishedTemplate } from "./PublishedTemplate";
5
5
  import type { Resource } from "./Resource";
@@ -8,7 +8,7 @@ import type { Utxo } from "./Utxo";
8
8
  import type { ValidatorFeePool } from "./ValidatorFeePool";
9
9
  import type { Vault } from "./Vault";
10
10
  export type SubstateValue = {
11
- Component: ComponentHeader;
11
+ Component: Component;
12
12
  } | {
13
13
  Resource: Resource;
14
14
  } | {
@@ -13,10 +13,20 @@ export type TemplateMetadata = {
13
13
  tags?: Array<string>;
14
14
  category?: string | null;
15
15
  repository?: string | null;
16
+ /**
17
+ * The commit hash of the source code used to build this template, for reproducible build verification.
18
+ */
19
+ commit_hash?: {
20
+ Sha1: string;
21
+ } | null;
16
22
  documentation?: string | null;
17
23
  homepage?: string | null;
18
24
  license?: string | null;
19
25
  logo_url?: string | null;
26
+ /**
27
+ * The template address of a previous version that this template supersedes.
28
+ */
29
+ supersedes?: string | null;
20
30
  extra?: {
21
31
  [key in string]?: string;
22
32
  };
@@ -3,6 +3,7 @@ import type { Decision } from "./Decision";
3
3
  import type { Epoch } from "./Epoch";
4
4
  import type { Evidence } from "./Evidence";
5
5
  import type { LeaderFee } from "./LeaderFee";
6
+ import type { LockedEpoch } from "./LockedEpoch";
6
7
  import type { TransactionPoolStage } from "./TransactionPoolStage";
7
8
  export type TransactionPoolRecord = {
8
9
  transaction_id: string;
@@ -16,11 +17,15 @@ export type TransactionPoolRecord = {
16
17
  local_decision: Decision | null;
17
18
  remote_decision: Decision | null;
18
19
  is_ready: boolean;
20
+ /**
21
+ * The maximum epoch for which this transaction is valid.
22
+ */
23
+ max_epoch: Epoch | null;
19
24
  /**
20
25
  * Epoch to use when executing the transaction. This updates as foreign proposals are received
21
26
  * until the transaction is executed.
22
27
  */
23
- locked_epoch: Epoch | null;
28
+ locked_epoch: LockedEpoch | null;
24
29
  last_updated: string;
25
30
  last_updated_in_block: BlockId | null;
26
31
  };
@@ -1,4 +1,5 @@
1
1
  import type { DiffSummary } from "./DiffSummary";
2
+ import type { Epoch } from "./Epoch";
2
3
  import type { Event } from "./Event";
3
4
  import type { FeeReceipt } from "./FeeReceipt";
4
5
  import type { FinalizeOutcome } from "./FinalizeOutcome";
@@ -11,5 +12,5 @@ export type TransactionReceipt = {
11
12
  events: Array<Event>;
12
13
  logs: Array<LogEntry>;
13
14
  fee_receipt: FeeReceipt;
14
- epoch: bigint;
15
+ epoch: Epoch;
15
16
  };
@@ -1,3 +1,4 @@
1
+ import type { Blobs } from "./Blobs";
1
2
  import type { Epoch } from "./Epoch";
2
3
  import type { Instruction } from "./Instruction";
3
4
  import type { SubstateRequirement } from "./SubstateRequirement";
@@ -13,4 +14,9 @@ export type UnsignedTransactionV1 = {
13
14
  max_epoch: Epoch | null;
14
15
  is_seal_signer_authorized: boolean;
15
16
  dry_run: boolean;
17
+ /**
18
+ * Prunable side-channel of opaque payloads referenced by instructions via BlobIndex.
19
+ * Only the per-blob commitments participate in the signing domain.
20
+ */
21
+ blobs: Blobs;
16
22
  };
@@ -1,11 +1,15 @@
1
1
  import type { FinalizeResult } from "./FinalizeResult";
2
2
  import type { ProposalCertificate } from "./ProposalCertificate";
3
- import type { Transaction } from "./Transaction";
3
+ import type { PrunedTransaction } from "./PrunedTransaction";
4
4
  import type { TransactionStatus } from "./TransactionStatus";
5
5
  import type { NewAccountData } from "./wallet-types/NewAccountData";
6
6
  export type WalletTransaction = {
7
7
  id: string;
8
- transaction: Transaction;
8
+ /**
9
+ * Pruned transaction — blob commitments are present but raw blob payloads are omitted to
10
+ * keep API responses small.
11
+ */
12
+ transaction: PrunedTransaction;
9
13
  status: TransactionStatus;
10
14
  finalize: FinalizeResult | null;
11
15
  final_fee: bigint | null;
@@ -0,0 +1,3 @@
1
+ export type GetLatestEpochCheckpointResponse = {
2
+ checkpoint: Record<string, unknown>;
3
+ };
@@ -0,0 +1,2 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ export {};
@@ -1,6 +1,15 @@
1
1
  import type { NetworkDescription } from "./NetworkDescription";
2
2
  import type { SyncProgress } from "./SyncProgress";
3
+ import type { ValidatorStatus } from "./ValidatorStatus";
3
4
  export type GetNetworkSyncStateResponse = {
4
5
  network_desc: NetworkDescription;
5
6
  sync_progress: SyncProgress | null;
7
+ /**
8
+ * Per-validator consensus state as last observed by this indexer while
9
+ * syncing from the network. Populated lazily, so validators that have
10
+ * never been contacted for a sync will not appear here. Each entry
11
+ * carries an `observed_at_unix_s` timestamp so callers can judge whether
12
+ * the reading is fresh.
13
+ */
14
+ validators: Array<ValidatorStatus>;
6
15
  };
@@ -0,0 +1,11 @@
1
+ import type { Epoch } from "../Epoch";
2
+ export type ListEpochCheckpointsRequest = {
3
+ /**
4
+ * The epoch to start listing from (inclusive). Defaults to 0.
5
+ */
6
+ from_epoch: Epoch | null;
7
+ /**
8
+ * Maximum number of checkpoints to return (default: 20, max: 100).
9
+ */
10
+ limit: number | null;
11
+ };
@@ -0,0 +1,3 @@
1
+ export type ListEpochCheckpointsResponse = {
2
+ checkpoints: Array<Record<string, unknown>>;
3
+ };
@@ -0,0 +1,2 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ export {};
@@ -1,3 +1,4 @@
1
+ import type { Hash32 } from "../Hash32";
1
2
  export type ListTemplateCatalogueRequest = {
2
3
  /**
3
4
  * Optional substring filter on template name.
@@ -11,5 +12,5 @@ export type ListTemplateCatalogueRequest = {
11
12
  * Cursor: return entries inserted after the row with this template address.
12
13
  * When omitted, returns from the beginning.
13
14
  */
14
- after: string | null;
15
+ after: Hash32 | null;
15
16
  };
@@ -1,2 +1 @@
1
- // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
1
  export {};
@@ -0,0 +1,6 @@
1
+ import type { Hash32 } from "../Hash32";
2
+ export type ListWatchedSubstatesRequest = {
3
+ template_address: Hash32 | null;
4
+ limit: bigint | null;
5
+ offset: bigint | null;
6
+ };
@@ -0,0 +1,4 @@
1
+ import type { WatchedSubstateItem } from "./WatchedSubstateItem";
2
+ export type ListWatchedSubstatesResponse = {
3
+ substates: Array<WatchedSubstateItem>;
4
+ };
@@ -0,0 +1,4 @@
1
+ import type { WatchedTemplateItem } from "./WatchedTemplateItem";
2
+ export type ListWatchedTemplatesResponse = {
3
+ templates: Array<WatchedTemplateItem>;
4
+ };
@@ -1,3 +1,4 @@
1
+ import type { ResourceAddress } from "../ResourceAddress";
1
2
  import type { SubstateId } from "../SubstateId";
2
3
  export type QueryTransactionEventsRequest = {
3
4
  /**
@@ -5,6 +6,12 @@ export type QueryTransactionEventsRequest = {
5
6
  */
6
7
  topic: string | null;
7
8
  substate_id: SubstateId | null;
9
+ /**
10
+ * Filter by resource address. Matches when either the event's `substate_id` is the given
11
+ * resource (std.resource.* events) or the event payload contains a `resource_address` entry
12
+ * equal to the given address (std.vault.deposit / std.vault.withdraw).
13
+ */
14
+ resource_address?: ResourceAddress | null;
8
15
  limit: number | null;
9
16
  offset: number | null;
10
17
  };
@@ -1,4 +1,5 @@
1
1
  import type { Hash32 } from "../Hash32";
2
+ import type { ResourceAddress } from "../ResourceAddress";
2
3
  import type { SubstateId } from "../SubstateId";
3
4
  /**
4
5
  * Filter parameters for the transaction events SSE stream.
@@ -7,6 +8,12 @@ export type StreamTransactionEventsRequest = {
7
8
  topic: string | null;
8
9
  substate_id: SubstateId | null;
9
10
  template_address: Hash32 | null;
11
+ /**
12
+ * Filter by resource address. Matches when either the event's `substate_id` is the given
13
+ * resource (std.resource.* events) or the event payload contains a `resource_address` entry
14
+ * equal to the given address (std.vault.deposit / std.vault.withdraw).
15
+ */
16
+ resource_address?: ResourceAddress | null;
10
17
  /**
11
18
  * Resume the event stream from this event ID (exclusive). Events with id > after_id will be
12
19
  * replayed from the database before switching to the live stream.
@@ -1,7 +1,10 @@
1
- import type { Transaction } from "../Transaction";
1
+ import type { PrunedTransaction } from "../PrunedTransaction";
2
2
  import type { TransactionId } from "../TransactionId";
3
3
  export type TransactionEntry = {
4
4
  transaction_id: TransactionId;
5
- transaction: Transaction;
5
+ /**
6
+ * Pruned transaction — blob commitments retained, raw blob bytes omitted.
7
+ */
8
+ transaction: PrunedTransaction;
6
9
  created_at: string;
7
10
  };
@@ -0,0 +1 @@
1
+ export type ValidatorConsensusState = "Idle" | "CheckSync" | "Syncing" | "Running" | "Sleeping" | "Shutdown";
@@ -0,0 +1,2 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ export {};
@@ -0,0 +1,23 @@
1
+ import type { Epoch } from "../Epoch";
2
+ import type { ShardGroup } from "../ShardGroup";
3
+ import type { ValidatorConsensusState } from "./ValidatorConsensusState";
4
+ /**
5
+ * A snapshot of one validator's consensus pacemaker state as observed by the
6
+ * indexer during a recent sync round.
7
+ */
8
+ export type ValidatorStatus = {
9
+ /**
10
+ * libp2p PeerId of the validator.
11
+ */
12
+ peer_id: string;
13
+ shard_group: ShardGroup;
14
+ epoch: Epoch;
15
+ height: bigint;
16
+ state: ValidatorConsensusState;
17
+ /**
18
+ * Unix timestamp (seconds) at which this snapshot was captured. Clients
19
+ * can derive the freshness of the snapshot by comparing this to the
20
+ * current wall-clock time.
21
+ */
22
+ observed_at_unix_s: bigint;
23
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ import type { Hash32 } from "../Hash32";
2
+ import type { SubstateId } from "../SubstateId";
3
+ export type WatchedSubstateItem = {
4
+ component_address: SubstateId;
5
+ template_address: Hash32;
6
+ };
@@ -0,0 +1,5 @@
1
+ import type { Hash32 } from "../Hash32";
2
+ export type WatchedTemplateItem = {
3
+ template_address: Hash32;
4
+ template_name: string | null;
5
+ };
@@ -0,0 +1,5 @@
1
+ export type AddressBookAddRequest = {
2
+ name: string;
3
+ address: string;
4
+ note: string | null;
5
+ };
@@ -0,0 +1,2 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ export {};
@@ -0,0 +1,4 @@
1
+ import type { AddressBookEntry } from "./AddressBookEntry";
2
+ export type AddressBookAddResponse = {
3
+ entry: AddressBookEntry;
4
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ export type AddressBookDeleteRequest = {
2
+ name: string;
3
+ };
@@ -0,0 +1,2 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ export {};
@@ -0,0 +1 @@
1
+ export type AddressBookDeleteResponse = Record<string, never>;
@@ -0,0 +1,2 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ export {};
@@ -0,0 +1,6 @@
1
+ export type AddressBookEntry = {
2
+ id: number;
3
+ name: string;
4
+ address: string;
5
+ note: string | null;
6
+ };
@@ -0,0 +1,2 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ export {};
@@ -0,0 +1,3 @@
1
+ export type AddressBookGetRequest = {
2
+ name: string;
3
+ };
@@ -0,0 +1,2 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ export {};
@@ -0,0 +1,4 @@
1
+ import type { AddressBookEntry } from "./AddressBookEntry";
2
+ export type AddressBookGetResponse = {
3
+ entry: AddressBookEntry;
4
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export type AddressBookListRequest = Record<string, never>;
@@ -0,0 +1,2 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ export {};
@@ -0,0 +1,4 @@
1
+ import type { AddressBookEntry } from "./AddressBookEntry";
2
+ export type AddressBookListResponse = {
3
+ entries: Array<AddressBookEntry>;
4
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ export type AddressBookUpdateRequest = {
2
+ name: string;
3
+ new_name: string | null;
4
+ address: string | null;
5
+ note: string | null;
6
+ };
@@ -0,0 +1,2 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ export {};
@@ -0,0 +1,4 @@
1
+ import type { AddressBookEntry } from "./AddressBookEntry";
2
+ export type AddressBookUpdateResponse = {
3
+ entry: AddressBookEntry;
4
+ };