@tari-project/ootle-ts-bindings 1.34.2 → 1.43.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 (118) hide show
  1. package/dist/helpers/cbor.d.ts +38 -0
  2. package/dist/helpers/cbor.js +136 -0
  3. package/dist/helpers/helpers.d.ts +2 -2
  4. package/dist/helpers/helpers.js +48 -20
  5. package/dist/index.d.ts +45 -28
  6. package/dist/index.js +45 -28
  7. package/dist/tari-indexer-client.d.ts +53 -48
  8. package/dist/tari-indexer-client.js +53 -48
  9. package/dist/types/AtomicCondition.d.ts +17 -0
  10. package/dist/types/BuiltinPredicate.d.ts +24 -0
  11. package/dist/types/Bytes.d.ts +3 -5
  12. package/dist/types/Claims.d.ts +2 -2
  13. package/dist/types/Command.d.ts +4 -1
  14. package/dist/types/Covenant.d.ts +16 -0
  15. package/dist/types/Covenant.js +1 -0
  16. package/dist/types/CovenantBalanceClaim.d.ts +26 -0
  17. package/dist/types/CovenantBalanceClaim.js +1 -0
  18. package/dist/types/Crud.d.ts +1 -0
  19. package/dist/types/CurrentInputView.d.ts +14 -0
  20. package/dist/types/CurrentInputView.js +1 -0
  21. package/dist/types/EndEpochAtom.d.ts +17 -0
  22. package/dist/types/EndEpochAtom.js +2 -0
  23. package/dist/types/ExecuteResult.d.ts +7 -0
  24. package/dist/types/FeeSource.d.ts +1 -1
  25. package/dist/types/FunctionDoc.d.ts +7 -0
  26. package/dist/types/FunctionDoc.js +2 -0
  27. package/dist/types/HashAlg.d.ts +5 -0
  28. package/dist/types/HashAlg.js +2 -0
  29. package/dist/types/Instruction.d.ts +5 -0
  30. package/dist/types/Memo.d.ts +2 -0
  31. package/dist/types/MerkleProof.d.ts +11 -0
  32. package/dist/types/MerkleProof.js +1 -0
  33. package/dist/types/Permission.d.ts +43 -0
  34. package/dist/types/Permission.js +1 -0
  35. package/dist/types/Permissions.d.ts +2 -0
  36. package/dist/types/Permissions.js +1 -0
  37. package/dist/types/ReadOnly.d.ts +6 -0
  38. package/dist/types/ReadOnly.js +2 -0
  39. package/dist/types/ResourceAccessRules.d.ts +15 -12
  40. package/dist/types/SpendAuthorization.d.ts +24 -0
  41. package/dist/types/SpendAuthorization.js +1 -0
  42. package/dist/types/SpendCondition.d.ts +11 -7
  43. package/dist/types/SpendWitness.d.ts +18 -0
  44. package/dist/types/SpendWitness.js +1 -0
  45. package/dist/types/StealthInput.d.ts +5 -0
  46. package/dist/types/StealthInputView.d.ts +9 -0
  47. package/dist/types/StealthInputView.js +1 -0
  48. package/dist/types/StealthOutputView.d.ts +16 -0
  49. package/dist/types/StealthOutputView.js +1 -0
  50. package/dist/types/StealthTransferStatement.d.ts +6 -0
  51. package/dist/types/StealthUnspentOutput.d.ts +5 -2
  52. package/dist/types/TemplateFunction.d.ts +23 -0
  53. package/dist/types/TemplateFunction.js +1 -0
  54. package/dist/types/TemplateMetadata.d.ts +5 -0
  55. package/dist/types/TemplateMetadata.js +0 -1
  56. package/dist/types/TransactionPoolRecord.d.ts +6 -0
  57. package/dist/types/UpdateRule.d.ts +4 -0
  58. package/dist/types/UpdateRule.js +1 -0
  59. package/dist/types/UtxoOutput.d.ts +2 -2
  60. package/dist/types/tari-indexer-client/IndexerGetSubstateResponse.d.ts +6 -0
  61. package/dist/types/tari-indexer-client/IndexerGetTransactionResponse.d.ts +7 -0
  62. package/dist/types/tari-indexer-client/IndexerGetTransactionResponse.js +1 -0
  63. package/dist/types/tari-indexer-client/IndexerTransactionFinalizedResult.d.ts +5 -0
  64. package/dist/types/tari-indexer-client/ListValidatorsRequest.d.ts +7 -0
  65. package/dist/types/tari-indexer-client/ListValidatorsRequest.js +1 -0
  66. package/dist/types/tari-indexer-client/ListValidatorsResponse.d.ts +14 -0
  67. package/dist/types/tari-indexer-client/ListValidatorsResponse.js +1 -0
  68. package/dist/types/tari-indexer-client/TransactionEntry.d.ts +11 -0
  69. package/dist/types/tari-indexer-client/TransactionResultSummary.d.ts +6 -0
  70. package/dist/types/tari-indexer-client/TransactionResultSummary.js +1 -0
  71. package/dist/types/tari-indexer-client/ValidatorInfo.d.ts +34 -0
  72. package/dist/types/tari-indexer-client/ValidatorInfo.js +1 -0
  73. package/dist/types/tari-indexer-client/ValidatorStatus.d.ts +4 -0
  74. package/dist/types/validator-node-client/GetBlockResponse.d.ts +5 -0
  75. package/dist/types/wallet-types/AccountsGetBalanceChangesRequest.d.ts +12 -0
  76. package/dist/types/wallet-types/AccountsGetBalanceChangesRequest.js +1 -0
  77. package/dist/types/wallet-types/AccountsGetBalanceChangesResponse.d.ts +5 -0
  78. package/dist/types/wallet-types/AccountsGetBalanceChangesResponse.js +1 -0
  79. package/dist/types/wallet-types/AuthCreateApiKeyRequest.d.ts +25 -0
  80. package/dist/types/wallet-types/AuthCreateApiKeyRequest.js +2 -0
  81. package/dist/types/wallet-types/AuthCreateApiKeyResponse.d.ts +19 -0
  82. package/dist/types/wallet-types/AuthCreateApiKeyResponse.js +1 -0
  83. package/dist/types/wallet-types/AuthCredentials.d.ts +7 -0
  84. package/dist/types/wallet-types/AuthListApiKeysRequest.d.ts +10 -0
  85. package/dist/types/wallet-types/AuthListApiKeysRequest.js +2 -0
  86. package/dist/types/wallet-types/AuthListApiKeysResponse.d.ts +4 -0
  87. package/dist/types/wallet-types/AuthListApiKeysResponse.js +1 -0
  88. package/dist/types/wallet-types/AuthLoginRequest.d.ts +2 -2
  89. package/dist/types/wallet-types/AuthRevokeApiKeyRequest.d.ts +10 -0
  90. package/dist/types/wallet-types/AuthRevokeApiKeyRequest.js +2 -0
  91. package/dist/types/wallet-types/AuthRevokeApiKeyResponse.d.ts +1 -0
  92. package/dist/types/wallet-types/AuthRevokeApiKeyResponse.js +2 -0
  93. package/dist/types/wallet-types/AuthSessionInfo.d.ts +2 -2
  94. package/dist/types/wallet-types/BalanceChange.d.ts +21 -0
  95. package/dist/types/wallet-types/BalanceChange.js +1 -0
  96. package/dist/types/wallet-types/BalanceChangeSource.d.ts +8 -0
  97. package/dist/types/wallet-types/BalanceChangeSource.js +2 -0
  98. package/dist/types/wallet-types/BalanceChangeSourceType.d.ts +1 -0
  99. package/dist/types/wallet-types/BalanceChangeSourceType.js +2 -0
  100. package/dist/types/wallet-types/ClaimValidatorFeesRequest.d.ts +5 -0
  101. package/dist/types/wallet-types/IssuedApiKey.d.ts +32 -0
  102. package/dist/types/wallet-types/IssuedApiKey.js +1 -0
  103. package/dist/types/wallet-types/PayTo.d.ts +11 -0
  104. package/dist/types/wallet-types/StealthTransfer.d.ts +13 -0
  105. package/dist/types/wallet-types/TransactionGetAllRequest.d.ts +5 -3
  106. package/dist/types/wallet-types/UtxoInfo.d.ts +11 -2
  107. package/dist/types/wallet-types/WebauthnFinishRegisterRequest.d.ts +2 -2
  108. package/dist/validator-node-client.d.ts +42 -42
  109. package/dist/validator-node-client.js +42 -42
  110. package/dist/wallet-types.d.ts +154 -142
  111. package/dist/wallet-types.js +154 -142
  112. package/package.json +2 -2
  113. package/dist/types/AddressBookPermission.d.ts +0 -1
  114. package/dist/types/JrpcPermission.d.ts +0 -17
  115. package/dist/types/JrpcPermissions.d.ts +0 -2
  116. /package/dist/types/{JrpcPermission.js → AtomicCondition.js} +0 -0
  117. /package/dist/types/{JrpcPermissions.js → BuiltinPredicate.js} +0 -0
  118. /package/dist/types/{AddressBookPermission.js → Crud.js} +0 -0
package/dist/index.js CHANGED
@@ -5,51 +5,57 @@ export * from "./types/AbridgedTransactionKernel";
5
5
  export * from "./types/AccessRule";
6
6
  export * from "./types/Account";
7
7
  export * from "./types/AccountWithAddress";
8
- export * from "./types/AddressBookPermission";
9
8
  export * from "./types/AllocatableAddressType";
10
9
  export * from "./types/Amount";
11
10
  export * from "./types/ArgDef";
12
11
  export * from "./types/Assertion";
12
+ export * from "./types/AtomicCondition";
13
13
  export * from "./types/AuthHook";
14
+ export * from "./types/Blob";
14
15
  export * from "./types/BlobHashes";
15
16
  export * from "./types/Blobs";
16
- export * from "./types/Blob";
17
+ export * from "./types/Block";
17
18
  export * from "./types/BlockHeader";
18
19
  export * from "./types/BlockId";
19
- export * from "./types/Block";
20
20
  export * from "./types/BucketId";
21
+ export * from "./types/BuiltinPredicate";
21
22
  export * from "./types/Bytes";
22
23
  export * from "./types/CheckOrd";
23
24
  export * from "./types/ClaimBurnOutputData";
24
- export * from "./types/ClaimedOutputTombstoneAddress";
25
25
  export * from "./types/ClaimedOutputTombstone";
26
+ export * from "./types/ClaimedOutputTombstoneAddress";
26
27
  export * from "./types/Claims";
27
28
  export * from "./types/Command";
28
29
  export * from "./types/CommitmentSignatureBytes";
30
+ export * from "./types/Committee";
29
31
  export * from "./types/CommitteeInfo";
30
32
  export * from "./types/CommitteeMember";
31
- export * from "./types/Committee";
33
+ export * from "./types/Component";
32
34
  export * from "./types/ComponentAccessRules";
33
35
  export * from "./types/ComponentAddress";
34
36
  export * from "./types/ComponentBody";
35
37
  export * from "./types/ComponentHeader";
36
38
  export * from "./types/ComponentKey";
37
39
  export * from "./types/ComponentReference";
38
- export * from "./types/Component";
39
40
  export * from "./types/ConfidentialOutputStatement";
40
41
  export * from "./types/ConfidentialWithdrawProof";
42
+ export * from "./types/Covenant";
43
+ export * from "./types/CovenantBalanceClaim";
44
+ export * from "./types/Crud";
45
+ export * from "./types/CurrentInputView";
41
46
  export * from "./types/Decision";
42
47
  export * from "./types/DiffSummary";
43
48
  export * from "./types/ElgamalVerifiableBalanceBytes";
44
49
  export * from "./types/EncodedMerkleProof";
45
50
  export * from "./types/EncryptedData";
51
+ export * from "./types/EndEpochAtom";
46
52
  export * from "./types/EntityId";
47
53
  export * from "./types/Epoch";
48
54
  export * from "./types/Era";
49
55
  export * from "./types/Event";
50
56
  export * from "./types/EvictNodeAtom";
51
- export * from "./types/EvidenceInputLockData";
52
57
  export * from "./types/Evidence";
58
+ export * from "./types/EvidenceInputLockData";
53
59
  export * from "./types/ExecuteResult";
54
60
  export * from "./types/ExtraData";
55
61
  export * from "./types/FeeBreakdown";
@@ -60,33 +66,34 @@ export * from "./types/FinalizeOutcome";
60
66
  export * from "./types/FinalizeResult";
61
67
  export * from "./types/ForeignProposalAtom";
62
68
  export * from "./types/FunctionDef";
69
+ export * from "./types/FunctionDoc";
63
70
  export * from "./types/Hash32";
64
71
  export * from "./types/Hash64";
72
+ export * from "./types/HashAlg";
65
73
  export * from "./types/IndexedValue";
66
74
  export * from "./types/IndexedWellKnownTypes";
75
+ export * from "./types/Instruction";
67
76
  export * from "./types/InstructionArg";
68
77
  export * from "./types/InstructionResult";
69
- export * from "./types/Instruction";
70
- export * from "./types/JrpcPermissions";
71
- export * from "./types/JrpcPermission";
72
78
  export * from "./types/LeaderFee";
73
- export * from "./types/LockedEpoch";
74
79
  export * from "./types/LockFlag";
80
+ export * from "./types/LockedEpoch";
75
81
  export * from "./types/LogEntry";
76
82
  export * from "./types/LogLevel";
77
83
  export * from "./types/Memo";
84
+ export * from "./types/MerkleProof";
78
85
  export * from "./types/Metadata";
79
86
  export * from "./types/MigrateFunction";
80
87
  export * from "./types/MinotariBurnClaimProof";
81
88
  export * from "./types/Network";
82
89
  export * from "./types/NftCheck";
83
90
  export * from "./types/NodeHeight";
84
- export * from "./types/NonFungibleAddressContents";
91
+ export * from "./types/NonFungible";
85
92
  export * from "./types/NonFungibleAddress";
93
+ export * from "./types/NonFungibleAddressContents";
86
94
  export * from "./types/NonFungibleContainer";
87
95
  export * from "./types/NonFungibleId";
88
96
  export * from "./types/NonFungibleToken";
89
- export * from "./types/NonFungible";
90
97
  export * from "./types/NumPreshards";
91
98
  export * from "./types/OotleAddress";
92
99
  export * from "./types/Ordering";
@@ -96,6 +103,8 @@ export * from "./types/OwnerRule";
96
103
  export * from "./types/PayRef";
97
104
  export * from "./types/PedersenCommitmentBytes";
98
105
  export * from "./types/PeerAddress";
106
+ export * from "./types/Permission";
107
+ export * from "./types/Permissions";
99
108
  export * from "./types/PrecisionAmount";
100
109
  export * from "./types/ProofId";
101
110
  export * from "./types/ProposalCertificate";
@@ -103,36 +112,42 @@ export * from "./types/PrunedTransaction";
103
112
  export * from "./types/PrunedTransactionV1";
104
113
  export * from "./types/PrunedUnsealedTransactionV1";
105
114
  export * from "./types/PrunedUnsignedTransactionV1";
115
+ export * from "./types/PublishedTemplate";
106
116
  export * from "./types/PublishedTemplateAddress";
107
117
  export * from "./types/PublishedTemplateMetadata";
108
- export * from "./types/PublishedTemplate";
109
118
  export * from "./types/RangeProofBytes";
119
+ export * from "./types/ReadOnly";
110
120
  export * from "./types/RejectReason";
111
121
  export * from "./types/RequireRule";
122
+ export * from "./types/Resource";
112
123
  export * from "./types/ResourceAccessRules";
113
- export * from "./types/ResourceAddressRef";
114
124
  export * from "./types/ResourceAddress";
125
+ export * from "./types/ResourceAddressRef";
115
126
  export * from "./types/ResourceContainer";
116
- export * from "./types/Resource";
117
127
  export * from "./types/ResourceType";
118
128
  export * from "./types/RestrictedAccessRule";
119
129
  export * from "./types/RistrettoPublicKeyBytes";
120
130
  export * from "./types/RuleRequirement";
121
131
  export * from "./types/Scalar32Bytes";
122
132
  export * from "./types/SchnorrSignatureBytes";
133
+ export * from "./types/Shard";
134
+ export * from "./types/ShardGroup";
123
135
  export * from "./types/ShardGroupAccumulatedData";
124
136
  export * from "./types/ShardGroupEvidence";
125
- export * from "./types/ShardGroup";
126
137
  export * from "./types/ShardStateVersions";
127
- export * from "./types/Shard";
138
+ export * from "./types/SpendAuthorization";
128
139
  export * from "./types/SpendCondition";
140
+ export * from "./types/SpendWitness";
129
141
  export * from "./types/StateVersion";
130
- export * from "./types/StealthInputsStatement";
131
142
  export * from "./types/StealthInput";
143
+ export * from "./types/StealthInputView";
144
+ export * from "./types/StealthInputsStatement";
145
+ export * from "./types/StealthOutputView";
132
146
  export * from "./types/StealthOutputsStatement";
133
147
  export * from "./types/StealthTransferStatement";
134
148
  export * from "./types/StealthUnspentOutput";
135
149
  export * from "./types/StealthValueProof";
150
+ export * from "./types/Substate";
136
151
  export * from "./types/SubstateAddress";
137
152
  export * from "./types/SubstateCreated";
138
153
  export * from "./types/SubstateDestroyed";
@@ -142,26 +157,26 @@ export * from "./types/SubstateLockType";
142
157
  export * from "./types/SubstateOwnerRule";
143
158
  export * from "./types/SubstateRecord";
144
159
  export * from "./types/SubstateRequirement";
145
- export * from "./types/Substate";
146
160
  export * from "./types/SubstateType";
147
161
  export * from "./types/SubstateValue";
148
162
  export * from "./types/TemplateDef";
149
163
  export * from "./types/TemplateDefV1";
164
+ export * from "./types/TemplateFunction";
150
165
  export * from "./types/TemplateMetadata";
151
166
  export * from "./types/TimeoutCertificate";
167
+ export * from "./types/Transaction";
152
168
  export * from "./types/TransactionAtom";
153
169
  export * from "./types/TransactionEnvelope";
154
170
  export * from "./types/TransactionExecution";
155
171
  export * from "./types/TransactionId";
156
172
  export * from "./types/TransactionPoolRecord";
157
173
  export * from "./types/TransactionPoolStage";
158
- export * from "./types/TransactionReceiptAddress";
159
174
  export * from "./types/TransactionReceipt";
175
+ export * from "./types/TransactionReceiptAddress";
160
176
  export * from "./types/TransactionResult";
161
177
  export * from "./types/TransactionSealSignature";
162
178
  export * from "./types/TransactionSignature";
163
179
  export * from "./types/TransactionStatus";
164
- export * from "./types/Transaction";
165
180
  export * from "./types/TransactionV1";
166
181
  export * from "./types/Type";
167
182
  export * from "./types/UnsealedTransaction";
@@ -170,8 +185,10 @@ export * from "./types/UnsignedTransaction";
170
185
  export * from "./types/UnsignedTransactionV1";
171
186
  export * from "./types/UnspentOutput";
172
187
  export * from "./types/UpSubstate";
173
- export * from "./types/UtxoAddressContents";
188
+ export * from "./types/UpdateRule";
189
+ export * from "./types/Utxo";
174
190
  export * from "./types/UtxoAddress";
191
+ export * from "./types/UtxoAddressContents";
175
192
  export * from "./types/UtxoBurnt";
176
193
  export * from "./types/UtxoId";
177
194
  export * from "./types/UtxoInputSelection";
@@ -179,19 +196,18 @@ export * from "./types/UtxoOutput";
179
196
  export * from "./types/UtxoSpent";
180
197
  export * from "./types/UtxoStateUpdateSet";
181
198
  export * from "./types/UtxoTag";
182
- export * from "./types/Utxo";
183
199
  export * from "./types/UtxoUnspent";
184
200
  export * from "./types/UtxoUpdateSet";
185
- export * from "./types/ValidatorFeePoolAddress";
186
201
  export * from "./types/ValidatorFeePool";
202
+ export * from "./types/ValidatorFeePoolAddress";
187
203
  export * from "./types/ValidatorFeeWithdrawal";
188
204
  export * from "./types/ValidatorSignatureBytes";
189
205
  export * from "./types/ValueKnowledgeProof";
206
+ export * from "./types/Vault";
190
207
  export * from "./types/VaultFreezeFlags";
191
208
  export * from "./types/VaultId";
192
- export * from "./types/Vault";
193
- export * from "./types/VersionedSubstateIdLockIntent";
194
209
  export * from "./types/VersionedSubstateId";
210
+ export * from "./types/VersionedSubstateIdLockIntent";
195
211
  export * from "./types/ViewableBalanceProof";
196
212
  export * from "./types/VotePower";
197
213
  export * from "./types/WalletTransaction";
@@ -202,9 +218,10 @@ export * from "./tari-indexer-client";
202
218
  export * from "./validator-node-client";
203
219
  export * from "./wallet-types";
204
220
  export * from "./helpers/BigAmount";
221
+ export * from "./helpers/NetworkByte";
222
+ export * from "./helpers/cbor";
205
223
  export * from "./helpers/consts";
206
224
  export * from "./helpers/enum";
207
225
  export * from "./helpers/helpers";
208
- export * from "./helpers/NetworkByte";
209
226
  export * from "./helpers/ootleAddress";
210
227
  export * from "./helpers/tariTypeTag";
@@ -1,59 +1,64 @@
1
- export * from "./types/tari-indexer-client/IndexerSubmitTransactionResponse";
2
- export * from "./types/tari-indexer-client/GetTransactionReceiptResponse";
3
- export * from "./types/tari-indexer-client/GetNetworkInfoResponse";
4
- export * from "./types/tari-indexer-client/WatchedSubstateItem";
5
- export * from "./types/tari-indexer-client/GetUtxoUpdatesRequest";
6
- export * from "./types/tari-indexer-client/WatchedTemplateItem";
7
- export * from "./types/tari-indexer-client/ValidatorConsensusState";
8
- export * from "./types/tari-indexer-client/StreamTransactionEventsRequest";
9
- export * from "./types/tari-indexer-client/QueryTransactionEventsRequest";
10
- export * from "./types/tari-indexer-client/TransactionEntry";
11
- export * from "./types/tari-indexer-client/InspectSubstateRequest";
12
- export * from "./types/tari-indexer-client/ListSubstateItem";
13
- export * from "./types/tari-indexer-client/IndexerTransactionFinalizedResult";
14
1
  export * from "./types/tari-indexer-client/NetworkDescription";
15
- export * from "./types/tari-indexer-client/GetUtxoUpdatesResponse";
2
+ export * from "./types/tari-indexer-client/TemplateCatalogueItem";
3
+ export * from "./types/tari-indexer-client/IndexerGetEpochManagerStatsResponse";
4
+ export * from "./types/tari-indexer-client/GetLatestEpochCheckpointResponse";
5
+ export * from "./types/tari-indexer-client/ListTransactionReceiptsResponse";
6
+ export * from "./types/tari-indexer-client/NonFungibleSubstate";
7
+ export * from "./types/tari-indexer-client/QueryTransactionEventsResponse";
8
+ export * from "./types/tari-indexer-client/IndexerGetIdentityResponse";
9
+ export * from "./types/tari-indexer-client/TemplateMeta";
10
+ export * from "./types/tari-indexer-client/ListTemplateCatalogueResponse";
11
+ export * from "./types/tari-indexer-client/IndexerGetSubstateRequest";
12
+ export * from "./types/tari-indexer-client/GetNetworkInfoResponse";
13
+ export * from "./types/tari-indexer-client/GetTemplateDefinitionResponse";
14
+ export * from "./types/tari-indexer-client/ListTemplatesRequest";
15
+ export * from "./types/tari-indexer-client/GetNonFungiblesRequest";
16
16
  export * from "./types/tari-indexer-client/IndexerGetSubstateResponse";
17
- export * from "./types/tari-indexer-client/IndexerGetCommsStatsResponse";
18
17
  export * from "./types/tari-indexer-client/ListWatchedTemplatesResponse";
19
- export * from "./types/tari-indexer-client/IndexerConnection";
20
- export * from "./types/tari-indexer-client/GetNonFungiblesRequest";
21
- export * from "./types/tari-indexer-client/GetResourceResponse";
22
- export * from "./types/tari-indexer-client/ListEpochCheckpointsResponse";
23
- export * from "./types/tari-indexer-client/ListTransactionReceiptsRequest";
24
- export * from "./types/tari-indexer-client/GetUtxosRequest";
25
- export * from "./types/tari-indexer-client/ListRecentTransactionsResponse";
26
- export * from "./types/tari-indexer-client/ListWatchedSubstatesRequest";
27
- export * from "./types/tari-indexer-client/GetLatestEpochCheckpointResponse";
18
+ export * from "./types/tari-indexer-client/ListUtxosRequest";
19
+ export * from "./types/tari-indexer-client/GetSubstatesRequest";
20
+ export * from "./types/tari-indexer-client/GetUtxoUpdatesResponse";
28
21
  export * from "./types/tari-indexer-client/GetNetworkSyncStateResponse";
29
- export * from "./types/tari-indexer-client/GetUtxosResponse";
22
+ export * from "./types/tari-indexer-client/IndexerSubmitTransactionRequest";
23
+ export * from "./types/tari-indexer-client/ListWatchedSubstatesResponse";
24
+ export * from "./types/tari-indexer-client/IndexerConnection";
25
+ export * from "./types/tari-indexer-client/ListValidatorsResponse";
26
+ export * from "./types/tari-indexer-client/InspectSubstateResponse";
27
+ export * from "./types/tari-indexer-client/InspectSubstateRequest";
28
+ export * from "./types/tari-indexer-client/ValidatorConsensusState";
29
+ export * from "./types/tari-indexer-client/GetUtxoUpdatesRequest";
30
+ export * from "./types/tari-indexer-client/ListValidatorsRequest";
31
+ export * from "./types/tari-indexer-client/IndexerGetCommsStatsResponse";
30
32
  export * from "./types/tari-indexer-client/ListUtxosResponse";
31
- export * from "./types/tari-indexer-client/GetNonFungiblesResponse";
32
- export * from "./types/tari-indexer-client/GetTemplateDefinitionResponse";
33
- export * from "./types/tari-indexer-client/ListTransactionReceiptsResponse";
34
33
  export * from "./types/tari-indexer-client/IndexerGetConnectionsResponse";
35
- export * from "./types/tari-indexer-client/ListTemplateCatalogueRequest";
36
- export * from "./types/tari-indexer-client/GetSubstatesResponse";
37
- export * from "./types/tari-indexer-client/TemplateCatalogueItem";
34
+ export * from "./types/tari-indexer-client/GetNonFungiblesResponse";
35
+ export * from "./types/tari-indexer-client/ValidatorInfo";
38
36
  export * from "./types/tari-indexer-client/ValidatorStatus";
39
- export * from "./types/tari-indexer-client/ListWatchedSubstatesResponse";
40
- export * from "./types/tari-indexer-client/IndexerSubmitTransactionRequest";
41
- export * from "./types/tari-indexer-client/ListTemplatesResponse";
42
- export * from "./types/tari-indexer-client/TemplateMeta";
43
- export * from "./types/tari-indexer-client/InspectSubstateResponse";
37
+ export * from "./types/tari-indexer-client/SyncProgress";
44
38
  export * from "./types/tari-indexer-client/ListRecentTransactionsRequest";
45
- export * from "./types/tari-indexer-client/GetSubstatesRequest";
46
- export * from "./types/tari-indexer-client/IndexerGetSubstateRequest";
47
- export * from "./types/tari-indexer-client/IndexerGetEpochManagerStatsResponse";
48
- export * from "./types/tari-indexer-client/NonFungibleSubstate";
49
- export * from "./types/tari-indexer-client/ListTemplateCatalogueResponse";
50
- export * from "./types/tari-indexer-client/ListTemplatesRequest";
39
+ export * from "./types/tari-indexer-client/GetTransactionReceiptResponse";
40
+ export * from "./types/tari-indexer-client/GetUtxosRequest";
41
+ export * from "./types/tari-indexer-client/GetResourceResponse";
42
+ export * from "./types/tari-indexer-client/ListEpochCheckpointsResponse";
51
43
  export * from "./types/tari-indexer-client/IndexerGetTransactionResultResponse";
52
- export * from "./types/tari-indexer-client/IndexerConnectionDirection";
53
- export * from "./types/tari-indexer-client/IndexerGetIdentityResponse";
54
- export * from "./types/tari-indexer-client/ListEpochCheckpointsRequest";
55
- export * from "./types/tari-indexer-client/ListUtxosRequest";
56
- export * from "./types/tari-indexer-client/SyncProgress";
44
+ export * from "./types/tari-indexer-client/TransactionEntry";
45
+ export * from "./types/tari-indexer-client/ListTemplateCatalogueRequest";
46
+ export * from "./types/tari-indexer-client/GetUtxosResponse";
47
+ export * from "./types/tari-indexer-client/ListTemplatesResponse";
48
+ export * from "./types/tari-indexer-client/TransactionResultSummary";
49
+ export * from "./types/tari-indexer-client/IndexerGetTransactionResponse";
50
+ export * from "./types/tari-indexer-client/GetSubstatesResponse";
57
51
  export * from "./types/tari-indexer-client/IndexerGetTransactionResultRequest";
58
- export * from "./types/tari-indexer-client/QueryTransactionEventsResponse";
52
+ export * from "./types/tari-indexer-client/WatchedSubstateItem";
53
+ export * from "./types/tari-indexer-client/ListRecentTransactionsResponse";
54
+ export * from "./types/tari-indexer-client/WatchedTemplateItem";
55
+ export * from "./types/tari-indexer-client/QueryTransactionEventsRequest";
56
+ export * from "./types/tari-indexer-client/IndexerTransactionFinalizedResult";
59
57
  export * from "./types/tari-indexer-client/IndexerReadyResponse";
58
+ export * from "./types/tari-indexer-client/IndexerSubmitTransactionResponse";
59
+ export * from "./types/tari-indexer-client/ListTransactionReceiptsRequest";
60
+ export * from "./types/tari-indexer-client/IndexerConnectionDirection";
61
+ export * from "./types/tari-indexer-client/ListSubstateItem";
62
+ export * from "./types/tari-indexer-client/StreamTransactionEventsRequest";
63
+ export * from "./types/tari-indexer-client/ListWatchedSubstatesRequest";
64
+ export * from "./types/tari-indexer-client/ListEpochCheckpointsRequest";
@@ -1,61 +1,66 @@
1
1
  // Copyright 2026 The Tari Project
2
2
  // SPDX-License-Identifier: BSD-3-Clause
3
- export * from "./types/tari-indexer-client/IndexerSubmitTransactionResponse";
4
- export * from "./types/tari-indexer-client/GetTransactionReceiptResponse";
5
- export * from "./types/tari-indexer-client/GetNetworkInfoResponse";
6
- export * from "./types/tari-indexer-client/WatchedSubstateItem";
7
- export * from "./types/tari-indexer-client/GetUtxoUpdatesRequest";
8
- export * from "./types/tari-indexer-client/WatchedTemplateItem";
9
- export * from "./types/tari-indexer-client/ValidatorConsensusState";
10
- export * from "./types/tari-indexer-client/StreamTransactionEventsRequest";
11
- export * from "./types/tari-indexer-client/QueryTransactionEventsRequest";
12
- export * from "./types/tari-indexer-client/TransactionEntry";
13
- export * from "./types/tari-indexer-client/InspectSubstateRequest";
14
- export * from "./types/tari-indexer-client/ListSubstateItem";
15
- export * from "./types/tari-indexer-client/IndexerTransactionFinalizedResult";
16
3
  export * from "./types/tari-indexer-client/NetworkDescription";
17
- export * from "./types/tari-indexer-client/GetUtxoUpdatesResponse";
4
+ export * from "./types/tari-indexer-client/TemplateCatalogueItem";
5
+ export * from "./types/tari-indexer-client/IndexerGetEpochManagerStatsResponse";
6
+ export * from "./types/tari-indexer-client/GetLatestEpochCheckpointResponse";
7
+ export * from "./types/tari-indexer-client/ListTransactionReceiptsResponse";
8
+ export * from "./types/tari-indexer-client/NonFungibleSubstate";
9
+ export * from "./types/tari-indexer-client/QueryTransactionEventsResponse";
10
+ export * from "./types/tari-indexer-client/IndexerGetIdentityResponse";
11
+ export * from "./types/tari-indexer-client/TemplateMeta";
12
+ export * from "./types/tari-indexer-client/ListTemplateCatalogueResponse";
13
+ export * from "./types/tari-indexer-client/IndexerGetSubstateRequest";
14
+ export * from "./types/tari-indexer-client/GetNetworkInfoResponse";
15
+ export * from "./types/tari-indexer-client/GetTemplateDefinitionResponse";
16
+ export * from "./types/tari-indexer-client/ListTemplatesRequest";
17
+ export * from "./types/tari-indexer-client/GetNonFungiblesRequest";
18
18
  export * from "./types/tari-indexer-client/IndexerGetSubstateResponse";
19
- export * from "./types/tari-indexer-client/IndexerGetCommsStatsResponse";
20
19
  export * from "./types/tari-indexer-client/ListWatchedTemplatesResponse";
21
- export * from "./types/tari-indexer-client/IndexerConnection";
22
- export * from "./types/tari-indexer-client/GetNonFungiblesRequest";
23
- export * from "./types/tari-indexer-client/GetResourceResponse";
24
- export * from "./types/tari-indexer-client/ListEpochCheckpointsResponse";
25
- export * from "./types/tari-indexer-client/ListTransactionReceiptsRequest";
26
- export * from "./types/tari-indexer-client/GetUtxosRequest";
27
- export * from "./types/tari-indexer-client/ListRecentTransactionsResponse";
28
- export * from "./types/tari-indexer-client/ListWatchedSubstatesRequest";
29
- export * from "./types/tari-indexer-client/GetLatestEpochCheckpointResponse";
20
+ export * from "./types/tari-indexer-client/ListUtxosRequest";
21
+ export * from "./types/tari-indexer-client/GetSubstatesRequest";
22
+ export * from "./types/tari-indexer-client/GetUtxoUpdatesResponse";
30
23
  export * from "./types/tari-indexer-client/GetNetworkSyncStateResponse";
31
- export * from "./types/tari-indexer-client/GetUtxosResponse";
24
+ export * from "./types/tari-indexer-client/IndexerSubmitTransactionRequest";
25
+ export * from "./types/tari-indexer-client/ListWatchedSubstatesResponse";
26
+ export * from "./types/tari-indexer-client/IndexerConnection";
27
+ export * from "./types/tari-indexer-client/ListValidatorsResponse";
28
+ export * from "./types/tari-indexer-client/InspectSubstateResponse";
29
+ export * from "./types/tari-indexer-client/InspectSubstateRequest";
30
+ export * from "./types/tari-indexer-client/ValidatorConsensusState";
31
+ export * from "./types/tari-indexer-client/GetUtxoUpdatesRequest";
32
+ export * from "./types/tari-indexer-client/ListValidatorsRequest";
33
+ export * from "./types/tari-indexer-client/IndexerGetCommsStatsResponse";
32
34
  export * from "./types/tari-indexer-client/ListUtxosResponse";
33
- export * from "./types/tari-indexer-client/GetNonFungiblesResponse";
34
- export * from "./types/tari-indexer-client/GetTemplateDefinitionResponse";
35
- export * from "./types/tari-indexer-client/ListTransactionReceiptsResponse";
36
35
  export * from "./types/tari-indexer-client/IndexerGetConnectionsResponse";
37
- export * from "./types/tari-indexer-client/ListTemplateCatalogueRequest";
38
- export * from "./types/tari-indexer-client/GetSubstatesResponse";
39
- export * from "./types/tari-indexer-client/TemplateCatalogueItem";
36
+ export * from "./types/tari-indexer-client/GetNonFungiblesResponse";
37
+ export * from "./types/tari-indexer-client/ValidatorInfo";
40
38
  export * from "./types/tari-indexer-client/ValidatorStatus";
41
- export * from "./types/tari-indexer-client/ListWatchedSubstatesResponse";
42
- export * from "./types/tari-indexer-client/IndexerSubmitTransactionRequest";
43
- export * from "./types/tari-indexer-client/ListTemplatesResponse";
44
- export * from "./types/tari-indexer-client/TemplateMeta";
45
- export * from "./types/tari-indexer-client/InspectSubstateResponse";
39
+ export * from "./types/tari-indexer-client/SyncProgress";
46
40
  export * from "./types/tari-indexer-client/ListRecentTransactionsRequest";
47
- export * from "./types/tari-indexer-client/GetSubstatesRequest";
48
- export * from "./types/tari-indexer-client/IndexerGetSubstateRequest";
49
- export * from "./types/tari-indexer-client/IndexerGetEpochManagerStatsResponse";
50
- export * from "./types/tari-indexer-client/NonFungibleSubstate";
51
- export * from "./types/tari-indexer-client/ListTemplateCatalogueResponse";
52
- export * from "./types/tari-indexer-client/ListTemplatesRequest";
41
+ export * from "./types/tari-indexer-client/GetTransactionReceiptResponse";
42
+ export * from "./types/tari-indexer-client/GetUtxosRequest";
43
+ export * from "./types/tari-indexer-client/GetResourceResponse";
44
+ export * from "./types/tari-indexer-client/ListEpochCheckpointsResponse";
53
45
  export * from "./types/tari-indexer-client/IndexerGetTransactionResultResponse";
54
- export * from "./types/tari-indexer-client/IndexerConnectionDirection";
55
- export * from "./types/tari-indexer-client/IndexerGetIdentityResponse";
56
- export * from "./types/tari-indexer-client/ListEpochCheckpointsRequest";
57
- export * from "./types/tari-indexer-client/ListUtxosRequest";
58
- export * from "./types/tari-indexer-client/SyncProgress";
46
+ export * from "./types/tari-indexer-client/TransactionEntry";
47
+ export * from "./types/tari-indexer-client/ListTemplateCatalogueRequest";
48
+ export * from "./types/tari-indexer-client/GetUtxosResponse";
49
+ export * from "./types/tari-indexer-client/ListTemplatesResponse";
50
+ export * from "./types/tari-indexer-client/TransactionResultSummary";
51
+ export * from "./types/tari-indexer-client/IndexerGetTransactionResponse";
52
+ export * from "./types/tari-indexer-client/GetSubstatesResponse";
59
53
  export * from "./types/tari-indexer-client/IndexerGetTransactionResultRequest";
60
- export * from "./types/tari-indexer-client/QueryTransactionEventsResponse";
54
+ export * from "./types/tari-indexer-client/WatchedSubstateItem";
55
+ export * from "./types/tari-indexer-client/ListRecentTransactionsResponse";
56
+ export * from "./types/tari-indexer-client/WatchedTemplateItem";
57
+ export * from "./types/tari-indexer-client/QueryTransactionEventsRequest";
58
+ export * from "./types/tari-indexer-client/IndexerTransactionFinalizedResult";
61
59
  export * from "./types/tari-indexer-client/IndexerReadyResponse";
60
+ export * from "./types/tari-indexer-client/IndexerSubmitTransactionResponse";
61
+ export * from "./types/tari-indexer-client/ListTransactionReceiptsRequest";
62
+ export * from "./types/tari-indexer-client/IndexerConnectionDirection";
63
+ export * from "./types/tari-indexer-client/ListSubstateItem";
64
+ export * from "./types/tari-indexer-client/StreamTransactionEventsRequest";
65
+ export * from "./types/tari-indexer-client/ListWatchedSubstatesRequest";
66
+ export * from "./types/tari-indexer-client/ListEpochCheckpointsRequest";
@@ -0,0 +1,17 @@
1
+ import type { AccessRule } from "./AccessRule";
2
+ import type { BuiltinPredicate } from "./BuiltinPredicate";
3
+ import type { Covenant } from "./Covenant";
4
+ import type { TemplateFunction } from "./TemplateFunction";
5
+ /**
6
+ * One conjunct of a [`SpendCondition`] leaf. Atoms are not self-referential — composition lives in the enclosing
7
+ * conjunction (AND) and the condition tree (OR), never inside an atom — so the type carries no recursion to bound.
8
+ */
9
+ export type AtomicCondition = {
10
+ AccessRule: AccessRule;
11
+ } | {
12
+ TemplateFunction: TemplateFunction;
13
+ } | {
14
+ Builtin: BuiltinPredicate;
15
+ } | {
16
+ Covenant: Covenant;
17
+ };
@@ -0,0 +1,24 @@
1
+ import type { Hash32 } from "./Hash32";
2
+ import type { HashAlg } from "./HashAlg";
3
+ /**
4
+ * A native, consensus-fixed local spend predicate committed as an [`AtomicCondition::Builtin`] leaf (TIP-0006): a
5
+ * timelock or hashlock that gates *this input* on a local fact. Constraints on the spending transaction's outputs are
6
+ * a [`Covenant`] instead.
7
+ *
8
+ * Unlike a [`TemplateFunction`], a builtin requires no deployed template and is evaluated natively by the engine —
9
+ * the canonical semantics live in trusted core code, so the set is append-only and a shipped variant is never
10
+ * resemanticised. Each variant is a pure boolean predicate over the spending transfer; rejecting a spend leaves its
11
+ * inputs unspent. A predicate that needs spender-supplied data reads the witness `data` blob
12
+ * ([`SpendWitness::ScriptPath`](super::SpendWitness::ScriptPath)) as its complete raw input — see
13
+ * [`BuiltinPredicate::consumes_data`] and the sole-consumer rule it implies.
14
+ */
15
+ export type BuiltinPredicate = {
16
+ AfterEpoch: bigint;
17
+ } | {
18
+ BeforeEpoch: bigint;
19
+ } | {
20
+ HashLock: {
21
+ hash: Hash32;
22
+ alg: HashAlg;
23
+ };
24
+ };
@@ -1,9 +1,7 @@
1
1
  /**
2
- * A wrapper around a byte buffer that implements efficient serde serialisation.
2
+ * A wrapper around a byte buffer that encodes as CBOR major type 2 (Bytes).
3
3
  *
4
- * Unfortunately, because we cannot implement a specialized version of serde::Serialize (impl serde::Serialize for
5
- * `Vec<u8>`) ciborium will represent bytes as `Array(vec![Integer(u8), ....])` instead of `Bytes(vec![u8, ...])`.
6
- * which results in a significant size overhead. This wrapper uses the `Value::Bytes` variant (similar to `serde_as(as
7
- * = "Bytes")`).
4
+ * Without this wrapper, deriving `Encode`/`Decode` on a `Vec<u8>` field would serialise as
5
+ * `Array(Integer(u8), ...)`, which is much larger than the dedicated `Bytes` representation.
8
6
  */
9
7
  export type Bytes = Uint8Array;
@@ -1,5 +1,5 @@
1
- import type { JrpcPermissions } from "./JrpcPermissions";
1
+ import type { Permissions } from "./Permissions";
2
2
  export type Claims = {
3
- permissions: JrpcPermissions;
3
+ permissions: Permissions;
4
4
  exp: bigint;
5
5
  };
@@ -1,3 +1,4 @@
1
+ import type { EndEpochAtom } from "./EndEpochAtom";
1
2
  import type { EvictNodeAtom } from "./EvictNodeAtom";
2
3
  import type { ForeignProposalAtom } from "./ForeignProposalAtom";
3
4
  import type { TransactionAtom } from "./TransactionAtom";
@@ -15,4 +16,6 @@ export type Command = {
15
16
  ForeignProposal: ForeignProposalAtom;
16
17
  } | {
17
18
  EvictNode: EvictNodeAtom;
18
- } | "EndEpoch";
19
+ } | {
20
+ EndEpoch: EndEpochAtom;
21
+ };
@@ -0,0 +1,16 @@
1
+ import type { Hash32 } from "./Hash32";
2
+ /**
3
+ * A native, consensus-fixed covenant committed as an [`AtomicCondition::Covenant`] leaf (TIP-0006). Where a
4
+ * [`BuiltinPredicate`] gates an input on a local fact, a covenant constrains the *spending transaction* — which
5
+ * outputs the spent value may flow to, and that the value is conserved — so it propagates conditions forward. Each
6
+ * variant introspects the transfer's outputs natively, with canonical semantics in trusted core code. The set is a
7
+ * curated standard library of common value-routing constraints; anything bespoke is a [`TemplateFunction`] instead.
8
+ */
9
+ export type Covenant = "OutputPreservesCondition" | {
10
+ OutputTo: {
11
+ condition_root: Hash32;
12
+ min_value: bigint;
13
+ };
14
+ } | {
15
+ BalancePreserved: bigint;
16
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,26 @@
1
+ import type { Amount } from "./Amount";
2
+ import type { SchnorrSignatureBytes } from "./SchnorrSignatureBytes";
3
+ /**
4
+ * A covenant sub-balance proof (TIP-0006 `AssertCovenantBalanced`) covering one partition of the transfer: the inputs
5
+ * and outputs that share a `condition_root`. It proves the partition's committed value is conserved into outputs
6
+ * carrying that root save for an exact cleartext `revealed_amount`, without exposing confidential values.
7
+ *
8
+ * A claim is keyed by `partition_input_index` rather than by restating its condition root; the engine matches it to
9
+ * its partition by that index. The partition's `condition_root` is bound into `signature`, so a claim cannot be
10
+ * validated against the wrong partition.
11
+ */
12
+ export type CovenantBalanceClaim = {
13
+ /**
14
+ * The index, within the transfer's spent inputs, of the first input belonging to this partition. Identifies the
15
+ * partition without restating its spend condition.
16
+ */
17
+ partition_input_index: number;
18
+ /**
19
+ * The exact net cleartext amount leaving the partition (zero for full conservation). Must be non-negative.
20
+ */
21
+ revealed_amount: Amount;
22
+ /**
23
+ * Schnorr proof of knowledge of the partition's aggregate mask difference.
24
+ */
25
+ signature: SchnorrSignatureBytes;
26
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export type Crud = "Read" | "Create" | "Update" | "Delete";
@@ -0,0 +1,14 @@
1
+ import type { Hash32 } from "./Hash32";
2
+ import type { PedersenCommitmentBytes } from "./PedersenCommitmentBytes";
3
+ /**
4
+ * Identifies the input whose spend condition is currently executing, including the `condition_root` committed by the
5
+ * UTXO being spent (so a covenant predicate can require outputs to preserve it).
6
+ */
7
+ export type CurrentInputView = {
8
+ index: number;
9
+ commitment: PedersenCommitmentBytes;
10
+ /**
11
+ * The committed condition-tree root of the UTXO being spent. Always `Some` while a script-path predicate runs.
12
+ */
13
+ condition_root: Hash32 | null;
14
+ };
@@ -0,0 +1 @@
1
+ export {};