@tari-project/ootle-ts-bindings 1.54.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.
Files changed (111) hide show
  1. package/dist/helpers/helpers.js +4 -5
  2. package/dist/index.d.ts +15 -3
  3. package/dist/index.js +15 -3
  4. package/dist/tari-indexer-client.d.ts +4 -3
  5. package/dist/tari-indexer-client.js +4 -3
  6. package/dist/types/BlockHeader.d.ts +6 -3
  7. package/dist/types/BurnOutput.d.ts +24 -0
  8. package/dist/types/BurnOutputFeatures.d.ts +22 -0
  9. package/dist/types/BurnOutputInclusionProof.d.ts +15 -0
  10. package/dist/types/BurnRateChange.d.ts +4 -0
  11. package/dist/types/BurnRateGovernanceState.d.ts +5 -0
  12. package/dist/types/BurnSidechainId.d.ts +6 -0
  13. package/dist/types/BurnSidechainId.js +1 -0
  14. package/dist/types/Command.d.ts +7 -6
  15. package/dist/types/DiffSummary.d.ts +9 -0
  16. package/dist/types/DownSubstate.d.ts +6 -0
  17. package/dist/types/DownSubstate.js +1 -0
  18. package/dist/types/EvidenceInputLockData.d.ts +2 -1
  19. package/dist/types/EvidenceInputLockData.js +0 -1
  20. package/dist/types/ExecutionFailureCode.d.ts +1 -0
  21. package/dist/types/FeeSource.d.ts +1 -1
  22. package/dist/types/IndexedWellKnownTypes.d.ts +0 -2
  23. package/dist/types/InputDeclaration.d.ts +5 -0
  24. package/dist/types/InputDeclaration.js +2 -0
  25. package/dist/types/LocalOnlyAtom.d.ts +8 -0
  26. package/dist/types/LocalOnlyAtom.js +1 -0
  27. package/dist/types/LockedEpoch.d.ts +1 -0
  28. package/dist/types/Metadata.d.ts +6 -4
  29. package/dist/types/MinotariBurnClaimProof.d.ts +11 -8
  30. package/dist/types/MmrInclusionProof.d.ts +19 -0
  31. package/dist/types/MmrInclusionProof.js +1 -0
  32. package/dist/types/{TransactionAtom.d.ts → MultiShardAtom.d.ts} +1 -1
  33. package/dist/types/MultiShardAtom.js +1 -0
  34. package/dist/types/Permission.d.ts +2 -0
  35. package/dist/types/PrunedUnsignedTransactionV1.d.ts +2 -2
  36. package/dist/types/RejectReason.d.ts +5 -1
  37. package/dist/types/RevealedOutput.d.ts +21 -0
  38. package/dist/types/RevealedOutput.js +1 -0
  39. package/dist/types/SignedTimeout.d.ts +6 -0
  40. package/dist/types/SignedTimeout.js +1 -0
  41. package/dist/types/StealthOutputsStatement.d.ts +5 -4
  42. package/dist/types/Substate.d.ts +2 -1
  43. package/dist/types/SubstateDiff.d.ts +2 -1
  44. package/dist/types/SubstateRecord.d.ts +2 -1
  45. package/dist/types/SubstateRequirement.d.ts +2 -1
  46. package/dist/types/SubstateRequirement.js +0 -1
  47. package/dist/types/SubstateVersion.d.ts +7 -0
  48. package/dist/types/SubstateVersion.js +2 -0
  49. package/dist/types/TimeoutCertificate.d.ts +4 -3
  50. package/dist/types/UnsignedTransactionV1.d.ts +2 -2
  51. package/dist/types/UpSubstate.d.ts +2 -1
  52. package/dist/types/UtxoBurnt.d.ts +2 -1
  53. package/dist/types/UtxoSpent.d.ts +2 -1
  54. package/dist/types/VersionedSubstateId.d.ts +2 -1
  55. package/dist/types/tari-indexer-client/GetNetworkEconomicsResponse.d.ts +10 -0
  56. package/dist/types/tari-indexer-client/GetNetworkSyncStateResponse.d.ts +2 -5
  57. package/dist/types/tari-indexer-client/GetResourceResponse.d.ts +2 -1
  58. package/dist/types/tari-indexer-client/IndexerGetEpochManagerStatsResponse.d.ts +7 -0
  59. package/dist/types/tari-indexer-client/IndexerGetSubstateRequest.d.ts +2 -1
  60. package/dist/types/tari-indexer-client/IndexerGetSubstateRequest.js +0 -1
  61. package/dist/types/tari-indexer-client/IndexerGetSubstateResponse.d.ts +2 -1
  62. package/dist/types/tari-indexer-client/InspectSubstateRequest.d.ts +2 -1
  63. package/dist/types/tari-indexer-client/InspectSubstateResponse.d.ts +2 -1
  64. package/dist/types/tari-indexer-client/ListSubstateItem.d.ts +2 -1
  65. package/dist/types/tari-indexer-client/NonFungibleSubstate.d.ts +2 -1
  66. package/dist/types/tari-indexer-client/QueryTransactionEventsRequest.d.ts +7 -0
  67. package/dist/types/tari-indexer-client/QueryTransactionEventsResponse.d.ts +6 -0
  68. package/dist/types/tari-indexer-client/ScheduledBurnRate.d.ts +7 -0
  69. package/dist/types/tari-indexer-client/ScheduledBurnRate.js +2 -0
  70. package/dist/types/tari-indexer-client/ValidatorProbeError.d.ts +8 -0
  71. package/dist/types/tari-indexer-client/ValidatorProbeError.js +1 -0
  72. package/dist/types/tari-indexer-client/ValidatorProbeErrorKind.d.ts +1 -0
  73. package/dist/types/tari-indexer-client/ValidatorProbeErrorKind.js +2 -0
  74. package/dist/types/tari-indexer-client/ValidatorStatus.d.ts +13 -13
  75. package/dist/types/tari-indexer-client/ValidatorStatusSnapshot.d.ts +18 -0
  76. package/dist/types/tari-indexer-client/ValidatorStatusSnapshot.js +1 -0
  77. package/dist/types/validator-node-client/VNGetSubstateRequest.d.ts +2 -1
  78. package/dist/types/wallet-types/AccountsGetFaucetBalanceRequest.d.ts +1 -0
  79. package/dist/types/wallet-types/AccountsGetFaucetBalanceRequest.js +2 -0
  80. package/dist/types/wallet-types/AccountsGetFaucetBalanceResponse.d.ts +11 -0
  81. package/dist/types/wallet-types/AccountsGetFaucetBalanceResponse.js +1 -0
  82. package/dist/types/wallet-types/CallInstructionRequest.d.ts +2 -2
  83. package/dist/types/wallet-types/KeyType.d.ts +1 -0
  84. package/dist/types/wallet-types/KeyType.js +2 -0
  85. package/dist/types/wallet-types/KeysImportRequest.d.ts +8 -0
  86. package/dist/types/wallet-types/KeysImportRequest.js +1 -0
  87. package/dist/types/wallet-types/KeysImportResponse.d.ts +6 -0
  88. package/dist/types/wallet-types/KeysImportResponse.js +1 -0
  89. package/dist/types/wallet-types/ResourcesGetManyRequest.d.ts +4 -0
  90. package/dist/types/wallet-types/ResourcesGetManyRequest.js +1 -0
  91. package/dist/types/wallet-types/ResourcesGetManyResponse.d.ts +11 -0
  92. package/dist/types/wallet-types/ResourcesGetManyResponse.js +1 -0
  93. package/dist/types/wallet-types/ResourcesGetRequest.d.ts +4 -0
  94. package/dist/types/wallet-types/ResourcesGetRequest.js +1 -0
  95. package/dist/types/wallet-types/ResourcesGetResponse.d.ts +4 -0
  96. package/dist/types/wallet-types/ResourcesGetResponse.js +1 -0
  97. package/dist/types/wallet-types/WalletSubstateInfo.d.ts +2 -1
  98. package/dist/wallet-types.d.ts +9 -0
  99. package/dist/wallet-types.js +9 -0
  100. package/package.json +1 -1
  101. package/dist/types/AbridgedTransactionKernel.d.ts +0 -9
  102. package/dist/types/EncodedMerkleProof.d.ts +0 -5
  103. package/dist/types/tari-indexer-client/ListTemplatesRequest.d.ts +0 -3
  104. package/dist/types/tari-indexer-client/ListTemplatesResponse.d.ts +0 -4
  105. package/dist/types/tari-indexer-client/TemplateMeta.d.ts +0 -15
  106. /package/dist/types/{AbridgedTransactionKernel.js → BurnOutput.js} +0 -0
  107. /package/dist/types/{TransactionAtom.js → BurnOutputFeatures.js} +0 -0
  108. /package/dist/types/{tari-indexer-client/ListTemplatesResponse.js → BurnOutputInclusionProof.js} +0 -0
  109. /package/dist/types/{EncodedMerkleProof.js → BurnRateChange.js} +0 -0
  110. /package/dist/types/{tari-indexer-client/TemplateMeta.js → BurnRateGovernanceState.js} +0 -0
  111. /package/dist/types/{tari-indexer-client/ListTemplatesRequest.js → ExecutionFailureCode.js} +0 -0
@@ -75,7 +75,7 @@ export function rejectReasonToString(reason) {
75
75
  return `ShardsNotPledged: ${reason.ShardsNotPledged}`;
76
76
  }
77
77
  if ("ExecutionFailure" in reason) {
78
- return `ExecutionFailure: ${reason.ExecutionFailure}`;
78
+ return `ExecutionFailure (${reason.ExecutionFailure.code}): ${reason.ExecutionFailure.message}`;
79
79
  }
80
80
  if ("ShardPledgedToAnotherPayload" in reason) {
81
81
  return `ShardPledgedToAnotherPayload: ${reason.ShardPledgedToAnotherPayload}`;
@@ -93,9 +93,6 @@ export function rejectReasonToString(reason) {
93
93
  if ("InvalidTransaction" in reason) {
94
94
  return `InvalidTransaction: ${reason.InvalidTransaction}`;
95
95
  }
96
- if ("ExecutionFailure" in reason) {
97
- return `ExecutionFailure: ${reason.ExecutionFailure}`;
98
- }
99
96
  if ("OneOrMoreInputsNotFound" in reason) {
100
97
  return `OneOrMoreInputsNotFound: ${reason.OneOrMoreInputsNotFound}`;
101
98
  }
@@ -135,7 +132,7 @@ export function permissionToString(permission) {
135
132
  return permission.toLowerCase();
136
133
  }
137
134
  // Read-only resources: { Substates: "Read" } / { BurnProofs: "Read" } /
138
- // { SwapPools: "Read" } — render with the resource name in snake_case
135
+ // { SwapPools: "Read" } / { Resources: "Read" } — render with the resource name in snake_case
139
136
  // plus explicit `:read`.
140
137
  if ("Substates" in permission)
141
138
  return "substates:read";
@@ -143,6 +140,8 @@ export function permissionToString(permission) {
143
140
  return "burn_proofs:read";
144
141
  if ("SwapPools" in permission)
145
142
  return "swap_pools:read";
143
+ if ("Resources" in permission)
144
+ return "resources:read";
146
145
  // Unscoped CRUD resources: { Keys: "Read" } -> "keys:read".
147
146
  if ("Keys" in permission)
148
147
  return `keys:${permission.Keys.toLowerCase()}`;
package/dist/index.d.ts CHANGED
@@ -9,7 +9,6 @@ export * from "./helpers/ootleAddress";
9
9
  export * from "./helpers/tariTypeTag";
10
10
  export * from "./tari-indexer-client";
11
11
  export * from "./types/AbortReason";
12
- export * from "./types/AbridgedTransactionKernel";
13
12
  export * from "./types/AccessRule";
14
13
  export * from "./types/Account";
15
14
  export * from "./types/AccountWithAddress";
@@ -27,6 +26,12 @@ export * from "./types/BlockHeader";
27
26
  export * from "./types/BlockId";
28
27
  export * from "./types/BucketId";
29
28
  export * from "./types/BuiltinPredicate";
29
+ export * from "./types/BurnOutput";
30
+ export * from "./types/BurnOutputFeatures";
31
+ export * from "./types/BurnOutputInclusionProof";
32
+ export * from "./types/BurnRateChange";
33
+ export * from "./types/BurnRateGovernanceState";
34
+ export * from "./types/BurnSidechainId";
30
35
  export * from "./types/Bytes";
31
36
  export * from "./types/CheckOrd";
32
37
  export * from "./types/ClaimBurnOutputData";
@@ -61,8 +66,8 @@ export * from "./types/DiagnosticEventFilter";
61
66
  export * from "./types/DiagnosticEventRecord";
62
67
  export * from "./types/DiagnosticLevel";
63
68
  export * from "./types/DiffSummary";
69
+ export * from "./types/DownSubstate";
64
70
  export * from "./types/ElgamalVerifiableBalanceBytes";
65
- export * from "./types/EncodedMerkleProof";
66
71
  export * from "./types/EncryptedData";
67
72
  export * from "./types/EndEpochAtom";
68
73
  export * from "./types/EntityId";
@@ -72,6 +77,7 @@ export * from "./types/Event";
72
77
  export * from "./types/Evidence";
73
78
  export * from "./types/EvidenceInputLockData";
74
79
  export * from "./types/ExecuteResult";
80
+ export * from "./types/ExecutionFailureCode";
75
81
  export * from "./types/ExtraData";
76
82
  export * from "./types/FeeBreakdown";
77
83
  export * from "./types/FeeCostBreakdown";
@@ -87,10 +93,12 @@ export * from "./types/Hash64";
87
93
  export * from "./types/HashAlg";
88
94
  export * from "./types/IndexedValue";
89
95
  export * from "./types/IndexedWellKnownTypes";
96
+ export * from "./types/InputDeclaration";
90
97
  export * from "./types/Instruction";
91
98
  export * from "./types/InstructionArg";
92
99
  export * from "./types/InstructionResult";
93
100
  export * from "./types/LeaderFee";
101
+ export * from "./types/LocalOnlyAtom";
94
102
  export * from "./types/LockedEpoch";
95
103
  export * from "./types/LockFlag";
96
104
  export * from "./types/LogEntry";
@@ -100,6 +108,8 @@ export * from "./types/MerkleProof";
100
108
  export * from "./types/Metadata";
101
109
  export * from "./types/MigrateFunction";
102
110
  export * from "./types/MinotariBurnClaimProof";
111
+ export * from "./types/MmrInclusionProof";
112
+ export * from "./types/MultiShardAtom";
103
113
  export * from "./types/Network";
104
114
  export * from "./types/NftCheck";
105
115
  export * from "./types/NodeHeight";
@@ -141,6 +151,7 @@ export * from "./types/ResourceAddressRef";
141
151
  export * from "./types/ResourceContainer";
142
152
  export * from "./types/ResourceType";
143
153
  export * from "./types/RestrictedAccessRule";
154
+ export * from "./types/RevealedOutput";
144
155
  export * from "./types/RistrettoPublicKeyBytes";
145
156
  export * from "./types/RuleRequirement";
146
157
  export * from "./types/Scalar32Bytes";
@@ -150,6 +161,7 @@ export * from "./types/ShardGroup";
150
161
  export * from "./types/ShardGroupAccumulatedData";
151
162
  export * from "./types/ShardGroupEvidence";
152
163
  export * from "./types/ShardStateVersions";
164
+ export * from "./types/SignedTimeout";
153
165
  export * from "./types/SpendAuthorization";
154
166
  export * from "./types/SpendCondition";
155
167
  export * from "./types/SpendWitness";
@@ -173,13 +185,13 @@ export * from "./types/SubstateRecord";
173
185
  export * from "./types/SubstateRequirement";
174
186
  export * from "./types/SubstateType";
175
187
  export * from "./types/SubstateValue";
188
+ export * from "./types/SubstateVersion";
176
189
  export * from "./types/TemplateDef";
177
190
  export * from "./types/TemplateDefV1";
178
191
  export * from "./types/TemplateFunction";
179
192
  export * from "./types/TemplateMetadata";
180
193
  export * from "./types/TimeoutCertificate";
181
194
  export * from "./types/Transaction";
182
- export * from "./types/TransactionAtom";
183
195
  export * from "./types/TransactionEnvelope";
184
196
  export * from "./types/TransactionExecution";
185
197
  export * from "./types/TransactionId";
package/dist/index.js CHANGED
@@ -11,7 +11,6 @@ export * from "./helpers/ootleAddress";
11
11
  export * from "./helpers/tariTypeTag";
12
12
  export * from "./tari-indexer-client";
13
13
  export * from "./types/AbortReason";
14
- export * from "./types/AbridgedTransactionKernel";
15
14
  export * from "./types/AccessRule";
16
15
  export * from "./types/Account";
17
16
  export * from "./types/AccountWithAddress";
@@ -29,6 +28,12 @@ export * from "./types/BlockHeader";
29
28
  export * from "./types/BlockId";
30
29
  export * from "./types/BucketId";
31
30
  export * from "./types/BuiltinPredicate";
31
+ export * from "./types/BurnOutput";
32
+ export * from "./types/BurnOutputFeatures";
33
+ export * from "./types/BurnOutputInclusionProof";
34
+ export * from "./types/BurnRateChange";
35
+ export * from "./types/BurnRateGovernanceState";
36
+ export * from "./types/BurnSidechainId";
32
37
  export * from "./types/Bytes";
33
38
  export * from "./types/CheckOrd";
34
39
  export * from "./types/ClaimBurnOutputData";
@@ -63,8 +68,8 @@ export * from "./types/DiagnosticEventFilter";
63
68
  export * from "./types/DiagnosticEventRecord";
64
69
  export * from "./types/DiagnosticLevel";
65
70
  export * from "./types/DiffSummary";
71
+ export * from "./types/DownSubstate";
66
72
  export * from "./types/ElgamalVerifiableBalanceBytes";
67
- export * from "./types/EncodedMerkleProof";
68
73
  export * from "./types/EncryptedData";
69
74
  export * from "./types/EndEpochAtom";
70
75
  export * from "./types/EntityId";
@@ -74,6 +79,7 @@ export * from "./types/Event";
74
79
  export * from "./types/Evidence";
75
80
  export * from "./types/EvidenceInputLockData";
76
81
  export * from "./types/ExecuteResult";
82
+ export * from "./types/ExecutionFailureCode";
77
83
  export * from "./types/ExtraData";
78
84
  export * from "./types/FeeBreakdown";
79
85
  export * from "./types/FeeCostBreakdown";
@@ -89,10 +95,12 @@ export * from "./types/Hash64";
89
95
  export * from "./types/HashAlg";
90
96
  export * from "./types/IndexedValue";
91
97
  export * from "./types/IndexedWellKnownTypes";
98
+ export * from "./types/InputDeclaration";
92
99
  export * from "./types/Instruction";
93
100
  export * from "./types/InstructionArg";
94
101
  export * from "./types/InstructionResult";
95
102
  export * from "./types/LeaderFee";
103
+ export * from "./types/LocalOnlyAtom";
96
104
  export * from "./types/LockedEpoch";
97
105
  export * from "./types/LockFlag";
98
106
  export * from "./types/LogEntry";
@@ -102,6 +110,8 @@ export * from "./types/MerkleProof";
102
110
  export * from "./types/Metadata";
103
111
  export * from "./types/MigrateFunction";
104
112
  export * from "./types/MinotariBurnClaimProof";
113
+ export * from "./types/MmrInclusionProof";
114
+ export * from "./types/MultiShardAtom";
105
115
  export * from "./types/Network";
106
116
  export * from "./types/NftCheck";
107
117
  export * from "./types/NodeHeight";
@@ -143,6 +153,7 @@ export * from "./types/ResourceAddressRef";
143
153
  export * from "./types/ResourceContainer";
144
154
  export * from "./types/ResourceType";
145
155
  export * from "./types/RestrictedAccessRule";
156
+ export * from "./types/RevealedOutput";
146
157
  export * from "./types/RistrettoPublicKeyBytes";
147
158
  export * from "./types/RuleRequirement";
148
159
  export * from "./types/Scalar32Bytes";
@@ -152,6 +163,7 @@ export * from "./types/ShardGroup";
152
163
  export * from "./types/ShardGroupAccumulatedData";
153
164
  export * from "./types/ShardGroupEvidence";
154
165
  export * from "./types/ShardStateVersions";
166
+ export * from "./types/SignedTimeout";
155
167
  export * from "./types/SpendAuthorization";
156
168
  export * from "./types/SpendCondition";
157
169
  export * from "./types/SpendWitness";
@@ -175,13 +187,13 @@ export * from "./types/SubstateRecord";
175
187
  export * from "./types/SubstateRequirement";
176
188
  export * from "./types/SubstateType";
177
189
  export * from "./types/SubstateValue";
190
+ export * from "./types/SubstateVersion";
178
191
  export * from "./types/TemplateDef";
179
192
  export * from "./types/TemplateDefV1";
180
193
  export * from "./types/TemplateFunction";
181
194
  export * from "./types/TemplateMetadata";
182
195
  export * from "./types/TimeoutCertificate";
183
196
  export * from "./types/Transaction";
184
- export * from "./types/TransactionAtom";
185
197
  export * from "./types/TransactionEnvelope";
186
198
  export * from "./types/TransactionExecution";
187
199
  export * from "./types/TransactionId";
@@ -38,8 +38,6 @@ export * from "./types/tari-indexer-client/ListRecentTransactionsResponse";
38
38
  export * from "./types/tari-indexer-client/ListSubstateItem";
39
39
  export * from "./types/tari-indexer-client/ListTemplateCatalogueRequest";
40
40
  export * from "./types/tari-indexer-client/ListTemplateCatalogueResponse";
41
- export * from "./types/tari-indexer-client/ListTemplatesRequest";
42
- export * from "./types/tari-indexer-client/ListTemplatesResponse";
43
41
  export * from "./types/tari-indexer-client/ListTransactionReceiptsRequest";
44
42
  export * from "./types/tari-indexer-client/ListTransactionReceiptsResponse";
45
43
  export * from "./types/tari-indexer-client/ListUtxosRequest";
@@ -53,15 +51,18 @@ export * from "./types/tari-indexer-client/NetworkDescription";
53
51
  export * from "./types/tari-indexer-client/NonFungibleSubstate";
54
52
  export * from "./types/tari-indexer-client/QueryTransactionEventsRequest";
55
53
  export * from "./types/tari-indexer-client/QueryTransactionEventsResponse";
54
+ export * from "./types/tari-indexer-client/ScheduledBurnRate";
56
55
  export * from "./types/tari-indexer-client/StreamTransactionEventsRequest";
57
56
  export * from "./types/tari-indexer-client/SyncProgress";
58
57
  export * from "./types/tari-indexer-client/TemplateCatalogueItem";
59
- export * from "./types/tari-indexer-client/TemplateMeta";
60
58
  export * from "./types/tari-indexer-client/TransactionEntry";
61
59
  export * from "./types/tari-indexer-client/TransactionResultSummary";
62
60
  export * from "./types/tari-indexer-client/TransactionSource";
63
61
  export * from "./types/tari-indexer-client/ValidatorConsensusState";
64
62
  export * from "./types/tari-indexer-client/ValidatorInfo";
63
+ export * from "./types/tari-indexer-client/ValidatorProbeError";
64
+ export * from "./types/tari-indexer-client/ValidatorProbeErrorKind";
65
65
  export * from "./types/tari-indexer-client/ValidatorStatus";
66
+ export * from "./types/tari-indexer-client/ValidatorStatusSnapshot";
66
67
  export * from "./types/tari-indexer-client/WatchedSubstateItem";
67
68
  export * from "./types/tari-indexer-client/WatchedTemplateItem";
@@ -40,8 +40,6 @@ export * from "./types/tari-indexer-client/ListRecentTransactionsResponse";
40
40
  export * from "./types/tari-indexer-client/ListSubstateItem";
41
41
  export * from "./types/tari-indexer-client/ListTemplateCatalogueRequest";
42
42
  export * from "./types/tari-indexer-client/ListTemplateCatalogueResponse";
43
- export * from "./types/tari-indexer-client/ListTemplatesRequest";
44
- export * from "./types/tari-indexer-client/ListTemplatesResponse";
45
43
  export * from "./types/tari-indexer-client/ListTransactionReceiptsRequest";
46
44
  export * from "./types/tari-indexer-client/ListTransactionReceiptsResponse";
47
45
  export * from "./types/tari-indexer-client/ListUtxosRequest";
@@ -55,15 +53,18 @@ export * from "./types/tari-indexer-client/NetworkDescription";
55
53
  export * from "./types/tari-indexer-client/NonFungibleSubstate";
56
54
  export * from "./types/tari-indexer-client/QueryTransactionEventsRequest";
57
55
  export * from "./types/tari-indexer-client/QueryTransactionEventsResponse";
56
+ export * from "./types/tari-indexer-client/ScheduledBurnRate";
58
57
  export * from "./types/tari-indexer-client/StreamTransactionEventsRequest";
59
58
  export * from "./types/tari-indexer-client/SyncProgress";
60
59
  export * from "./types/tari-indexer-client/TemplateCatalogueItem";
61
- export * from "./types/tari-indexer-client/TemplateMeta";
62
60
  export * from "./types/tari-indexer-client/TransactionEntry";
63
61
  export * from "./types/tari-indexer-client/TransactionResultSummary";
64
62
  export * from "./types/tari-indexer-client/TransactionSource";
65
63
  export * from "./types/tari-indexer-client/ValidatorConsensusState";
66
64
  export * from "./types/tari-indexer-client/ValidatorInfo";
65
+ export * from "./types/tari-indexer-client/ValidatorProbeError";
66
+ export * from "./types/tari-indexer-client/ValidatorProbeErrorKind";
67
67
  export * from "./types/tari-indexer-client/ValidatorStatus";
68
+ export * from "./types/tari-indexer-client/ValidatorStatusSnapshot";
68
69
  export * from "./types/tari-indexer-client/WatchedSubstateItem";
69
70
  export * from "./types/tari-indexer-client/WatchedTemplateItem";
@@ -77,9 +77,12 @@ export type BlockHeader = {
77
77
  * The protocol version this block was produced under, resolved from the network's activation schedule at
78
78
  * [`Self::epoch`]. It makes the block self-describing: [`Self::calculate_hash`] and the L1 verifier in
79
79
  * `tari_sidechain` both select the hash schema from this field rather than from the schedule.
80
- *
81
- * A header that carries no version is under [`ProtocolVersion::V0`], so blocks written before the field
82
- * existed decode and hash unchanged.
83
80
  */
84
81
  protocol_version: number;
82
+ /**
83
+ * The id of the timeout certificate this block carries, or `None` when it carries none. It is part of the
84
+ * metadata hash and therefore of the signed block id, so a validity rule that reads the certificate
85
+ * (`check_justify_reaches_timeout_certificate`) reads data the proposer signed.
86
+ */
87
+ timeout_certificate_id: string | null;
85
88
  };
@@ -0,0 +1,24 @@
1
+ import type { BurnOutputFeatures } from "./BurnOutputFeatures";
2
+ import type { Hash32 } from "./Hash32";
3
+ import type { RistrettoPublicKeyBytes } from "./RistrettoPublicKeyBytes";
4
+ /**
5
+ * The fields of an L1 burn output that its hash commits to, in hash order, less the commitment, which is
6
+ * [`MinotariBurnClaimProof::commitment`].
7
+ *
8
+ * The range proof is carried as its hash, which is all the output hash commits to. `script`, `metadata_signature`,
9
+ * `covenant` and `encrypted_data` are their L1 consensus (borsh) encodings, hashed as given and never decoded.
10
+ */
11
+ export type BurnOutput = {
12
+ version: number;
13
+ features: BurnOutputFeatures;
14
+ rangeproof_hash: Hash32;
15
+ script: string;
16
+ /**
17
+ * The public nonce `R` the output was burnt with
18
+ */
19
+ sender_offset_public_key: RistrettoPublicKeyBytes;
20
+ metadata_signature: string;
21
+ covenant: string;
22
+ encrypted_data: string;
23
+ minimum_value_promise: number | bigint | string;
24
+ };
@@ -0,0 +1,22 @@
1
+ import type { BurnSidechainId } from "./BurnSidechainId";
2
+ import type { RistrettoPublicKeyBytes } from "./RistrettoPublicKeyBytes";
3
+ /**
4
+ * The `OutputFeatures` of an L1 burn output that Ootle mints against.
5
+ *
6
+ * Only the fields that vary between such outputs are carried. The rest are fixed: the output type is `Burn`, the
7
+ * coinbase extra is empty, and the sidechain feature is a `ConfidentialOutput` naming `claim_public_key`.
8
+ */
9
+ export type BurnOutputFeatures = {
10
+ version: number;
11
+ maturity: number | bigint | string;
12
+ /**
13
+ * The stealth key `S` the burn is made out to. Only its holder may claim the burn.
14
+ */
15
+ claim_public_key: RistrettoPublicKeyBytes;
16
+ /**
17
+ * The sidechain the burn is tagged for, with the deployment key's signature of `claim_public_key`. `None` is
18
+ * the default Ootle chain.
19
+ */
20
+ sidechain_id: BurnSidechainId | null;
21
+ range_proof_type: number;
22
+ };
@@ -0,0 +1,15 @@
1
+ import type { Hash32 } from "./Hash32";
2
+ import type { MmrInclusionProof } from "./MmrInclusionProof";
3
+ /**
4
+ * Proves that a burn output is in an L1 block, against that block's `block_output_mr`.
5
+ *
6
+ * The block output MMR has the block's coinbase output hashes as leaves, then one last leaf: the root of the MMR of
7
+ * every other output hash in the block (the normal output MMR). A burn is never a coinbase, so the proof has two
8
+ * levels: the output hash in the normal output MMR, then that MMR's root as the last leaf of the block output MMR.
9
+ */
10
+ export type BurnOutputInclusionProof = {
11
+ block_hash: Hash32;
12
+ normal_output_proof: MmrInclusionProof;
13
+ normal_output_mr: Hash32;
14
+ block_output_proof: MmrInclusionProof;
15
+ };
@@ -0,0 +1,4 @@
1
+ export type BurnRateChange = {
2
+ activation_epoch: number;
3
+ rate_bps: number;
4
+ };
@@ -0,0 +1,5 @@
1
+ import type { BurnRateChange } from "./BurnRateChange";
2
+ export type BurnRateGovernanceState = {
3
+ schedule: Array<BurnRateChange>;
4
+ retired_from: number | null;
5
+ };
@@ -0,0 +1,6 @@
1
+ import type { RistrettoPublicKeyBytes } from "./RistrettoPublicKeyBytes";
2
+ import type { SchnorrSignatureBytes } from "./SchnorrSignatureBytes";
3
+ export type BurnSidechainId = {
4
+ public_key: RistrettoPublicKeyBytes;
5
+ knowledge_proof: SchnorrSignatureBytes;
6
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -1,16 +1,17 @@
1
1
  import type { EndEpochAtom } from "./EndEpochAtom";
2
2
  import type { ForeignProposalAtom } from "./ForeignProposalAtom";
3
- import type { TransactionAtom } from "./TransactionAtom";
3
+ import type { LocalOnlyAtom } from "./LocalOnlyAtom";
4
+ import type { MultiShardAtom } from "./MultiShardAtom";
4
5
  export type Command = {
5
- LocalOnly: TransactionAtom;
6
+ LocalOnly: LocalOnlyAtom;
6
7
  } | {
7
- LocalPrepare: TransactionAtom;
8
+ LocalPrepare: MultiShardAtom;
8
9
  } | {
9
- LocalAccept: TransactionAtom;
10
+ LocalAccept: MultiShardAtom;
10
11
  } | {
11
- AllAccept: TransactionAtom;
12
+ AllAccept: MultiShardAtom;
12
13
  } | {
13
- SomeAccept: TransactionAtom;
14
+ SomeAccept: MultiShardAtom;
14
15
  } | {
15
16
  ForeignProposal: ForeignProposalAtom;
16
17
  } | {
@@ -1,4 +1,13 @@
1
+ import type { DownSubstate } from "./DownSubstate";
1
2
  import type { UpSubstate } from "./UpSubstate";
2
3
  export type DiffSummary = {
3
4
  upped: Array<UpSubstate>;
5
+ /**
6
+ * The substates the transaction downed without upping a later version: spent UTXOs and
7
+ * confidential outputs.
8
+ *
9
+ * A substate that is upped is always downed at its previous version, so those downs are implied
10
+ * by `upped` and are left out to keep the receipt small.
11
+ */
12
+ downed: Array<DownSubstate>;
4
13
  };
@@ -0,0 +1,6 @@
1
+ import type { SubstateId } from "./SubstateId";
2
+ import type { SubstateVersion } from "./SubstateVersion";
3
+ export type DownSubstate = {
4
+ substate_id: SubstateId;
5
+ version: SubstateVersion;
6
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -1,4 +1,5 @@
1
+ import type { SubstateVersion } from "./SubstateVersion";
1
2
  export type EvidenceInputLockData = {
2
3
  is_write: boolean;
3
- version: number;
4
+ version: SubstateVersion;
4
5
  };
@@ -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 @@
1
+ export type ExecutionFailureCode = "TemplateError" | "AccessDenied" | "AssertionFailed" | "InsufficientFunds" | "OutOfCompute" | "LimitExceeded" | "InvalidArgument" | "NotFound" | "DanglingResources" | "ResourceRestricted" | "InvalidProof" | "EngineInvariant" | "NotYetValid" | "Unclassified";
@@ -1 +1 @@
1
- export type FeeSource = "Initial" | "RuntimeCall" | "Storage" | "TransactionWeight" | "TemplateLoad" | "SubstateCreate" | "WasmExecution" | "TemplatePublish" | "Reserved" | "NativeExecution";
1
+ export type FeeSource = "Initial" | "RuntimeCall" | "Storage" | "TransactionWeight" | "TemplateLoad" | "SubstateCreate" | "WasmExecution" | "TemplatePublish" | "NativeExecution";
@@ -2,7 +2,6 @@ import type { BucketId } from "./BucketId";
2
2
  import type { ClaimedOutputTombstoneAddress } from "./ClaimedOutputTombstoneAddress";
3
3
  import type { ComponentAddress } from "./ComponentAddress";
4
4
  import type { ConfidentialOutputAddress } from "./ConfidentialOutputAddress";
5
- import type { Metadata } from "./Metadata";
6
5
  import type { NonFungibleAddress } from "./NonFungibleAddress";
7
6
  import type { ProofId } from "./ProofId";
8
7
  import type { PublishedTemplateAddress } from "./PublishedTemplateAddress";
@@ -19,7 +18,6 @@ export type IndexedWellKnownTypes = {
19
18
  transaction_receipt_addresses: Array<TransactionReceiptAddress>;
20
19
  non_fungible_addresses: Array<NonFungibleAddress>;
21
20
  vault_ids: Array<VaultId>;
22
- metadata: Array<Metadata>;
23
21
  unclaimed_confidential_output_address: Array<ClaimedOutputTombstoneAddress>;
24
22
  published_template_addresses: Array<PublishedTemplateAddress>;
25
23
  validator_node_fee_pools: Array<ValidatorFeePoolAddress>;
@@ -0,0 +1,5 @@
1
+ export type InputDeclaration = {
2
+ substate_id: string;
3
+ version: number | null;
4
+ is_write: boolean;
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,8 @@
1
+ import type { Decision } from "./Decision";
2
+ import type { LeaderFee } from "./LeaderFee";
3
+ export type LocalOnlyAtom = {
4
+ id: string;
5
+ decision: Decision;
6
+ transaction_fee: bigint;
7
+ leader_fee: LeaderFee | null;
8
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -3,4 +3,5 @@ import type { Hash32 } from "./Hash32";
3
3
  export type LockedEpoch = {
4
4
  epoch: Epoch;
5
5
  hash: Hash32;
6
+ exhaust_burn_rate: number;
6
7
  };
@@ -1,6 +1,8 @@
1
1
  /**
2
- * A collection of user-defined data used to describe other types, for example, non-fungible tokens or events
2
+ * A collection of user-defined data used to describe other types, for example, non-fungible tokens or events.
3
+ *
4
+ * Values are arbitrary CBOR, each held as the exact encoding its producer wrote, so a value that goes
5
+ * into a hashed substate comes back out byte for byte. Read one with [`Self::get_as`] for a typed
6
+ * value or [`Self::get_str`] when it is known to be text.
3
7
  */
4
- export type Metadata = {
5
- [key in string]?: string;
6
- };
8
+ export type Metadata = Record<string, any>;
@@ -1,17 +1,20 @@
1
- import type { AbridgedTransactionKernel } from "./AbridgedTransactionKernel";
2
- import type { EncodedMerkleProof } from "./EncodedMerkleProof";
1
+ import type { BurnOutput } from "./BurnOutput";
2
+ import type { BurnOutputInclusionProof } from "./BurnOutputInclusionProof";
3
3
  import type { PedersenCommitmentBytes } from "./PedersenCommitmentBytes";
4
- import type { RistrettoPublicKeyBytes } from "./RistrettoPublicKeyBytes";
5
4
  import type { SchnorrSignatureBytes } from "./SchnorrSignatureBytes";
5
+ /**
6
+ * Proves that an L1 burn output exists and that the claimant can open its commitment.
7
+ *
8
+ * The output is proven by recomputing its L1 hash from [`BurnOutput`] and folding that hash up to the
9
+ * `block_output_mr` of the L1 header named by [`BurnOutputInclusionProof::block_hash`].
10
+ */
6
11
  export type MinotariBurnClaimProof = {
7
12
  /**
8
- * This is typically the public nonce that the UTXO was burnt with
13
+ * The commitment of the burn output
9
14
  */
10
- burn_public_key: RistrettoPublicKeyBytes;
11
15
  commitment: PedersenCommitmentBytes;
12
16
  ownership_proof: SchnorrSignatureBytes;
13
- encoded_merkle_proof: EncodedMerkleProof;
14
- kernel: AbridgedTransactionKernel;
15
17
  value: number | bigint | string;
16
- sender_offset_public_key: RistrettoPublicKeyBytes;
18
+ output: BurnOutput;
19
+ inclusion_proof: BurnOutputInclusionProof;
17
20
  };
@@ -0,0 +1,19 @@
1
+ import type { Hash32 } from "./Hash32";
2
+ /**
3
+ * An inclusion proof of a leaf in an L1 Merkle mountain range.
4
+ */
5
+ export type MmrInclusionProof = {
6
+ leaf_index: number | bigint | string;
7
+ /**
8
+ * The node count of the MMR the proof was made for
9
+ */
10
+ mmr_size: number | bigint | string;
11
+ /**
12
+ * The sibling hashes from the leaf up to its local peak
13
+ */
14
+ path: Array<Hash32>;
15
+ /**
16
+ * The MMR peaks, less the leaf's local peak
17
+ */
18
+ peaks: Array<Hash32>;
19
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -1,7 +1,7 @@
1
1
  import type { Decision } from "./Decision";
2
2
  import type { Evidence } from "./Evidence";
3
3
  import type { LeaderFee } from "./LeaderFee";
4
- export type TransactionAtom = {
4
+ export type MultiShardAtom = {
5
5
  id: string;
6
6
  decision: Decision;
7
7
  evidence: Evidence;
@@ -0,0 +1 @@
1
+ export {};
@@ -43,4 +43,6 @@ export type Permission = "Admin" | {
43
43
  BurnProofs: ReadOnly;
44
44
  } | {
45
45
  SwapPools: ReadOnly;
46
+ } | {
47
+ Resources: ReadOnly;
46
48
  } | "Webrtc";
@@ -1,7 +1,7 @@
1
1
  import type { BlobHashes } from "./BlobHashes";
2
2
  import type { Epoch } from "./Epoch";
3
+ import type { InputDeclaration } from "./InputDeclaration";
3
4
  import type { Instruction } from "./Instruction";
4
- import type { SubstateRequirement } from "./SubstateRequirement";
5
5
  /**
6
6
  * Mirror of `UnsignedTransactionV1` but with blob commitments instead of blob payloads.
7
7
  *
@@ -12,7 +12,7 @@ export type PrunedUnsignedTransactionV1 = {
12
12
  network: number;
13
13
  fee_instructions: Array<Instruction>;
14
14
  instructions: Array<Instruction>;
15
- inputs: Array<SubstateRequirement>;
15
+ inputs: Array<InputDeclaration>;
16
16
  min_epoch: Epoch | null;
17
17
  max_epoch: Epoch;
18
18
  is_seal_signer_authorized: boolean;
@@ -1,6 +1,10 @@
1
1
  import type { AbortReason } from "./AbortReason";
2
+ import type { ExecutionFailureCode } from "./ExecutionFailureCode";
2
3
  export type RejectReason = {
3
- ExecutionFailure: string;
4
+ ExecutionFailure: {
5
+ code: ExecutionFailureCode;
6
+ message: string;
7
+ };
4
8
  } | {
5
9
  SubstateNotFound: string;
6
10
  } | {