@tari-project/ootle-ts-bindings 1.47.0 → 1.49.1

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 (61) hide show
  1. package/dist/index.d.ts +32 -32
  2. package/dist/index.js +32 -32
  3. package/dist/tari-indexer-client.d.ts +53 -53
  4. package/dist/tari-indexer-client.js +53 -53
  5. package/dist/types/AbortReason.d.ts +1 -1
  6. package/dist/types/AbridgedTransactionKernel.d.ts +2 -2
  7. package/dist/types/Amount.d.ts +2 -2
  8. package/dist/types/BuiltinPredicate.d.ts +2 -2
  9. package/dist/types/{StealthValueProof.d.ts → CommitmentValueProof.d.ts} +4 -2
  10. package/dist/types/ConfidentialOutput.d.ts +1 -1
  11. package/dist/types/Covenant.d.ts +2 -2
  12. package/dist/types/EncodedMerkleProof.d.ts +1 -1
  13. package/dist/types/ExecuteResult.d.ts +11 -2
  14. package/dist/types/FinalizeResult.d.ts +11 -0
  15. package/dist/types/IndexedWellKnownTypes.d.ts +2 -0
  16. package/dist/types/Instruction.d.ts +1 -6
  17. package/dist/types/LeaderFee.d.ts +13 -0
  18. package/dist/types/MinotariBurnClaimProof.d.ts +1 -1
  19. package/dist/types/PrunedUnsignedTransactionV1.d.ts +5 -1
  20. package/dist/types/ResourceContainer.d.ts +2 -7
  21. package/dist/types/StateVersion.d.ts +1 -1
  22. package/dist/types/TransactionPoolRecord.d.ts +2 -2
  23. package/dist/types/TransactionReceipt.d.ts +14 -2
  24. package/dist/types/UnsignedTransactionV1.d.ts +14 -1
  25. package/dist/types/UnspentOutput.d.ts +1 -1
  26. package/dist/types/ValueKnowledgeProof.d.ts +15 -3
  27. package/dist/types/tari-indexer-client/GetNetworkEconomicsResponse.d.ts +25 -0
  28. package/dist/types/tari-indexer-client/GetNonFungiblesRequest.d.ts +2 -2
  29. package/dist/types/tari-indexer-client/IndexerSubmitTransactionResponse.d.ts +1 -7
  30. package/dist/types/tari-indexer-client/ListTemplateCatalogueRequest.d.ts +1 -1
  31. package/dist/types/tari-indexer-client/ListWatchedSubstatesRequest.d.ts +2 -2
  32. package/dist/types/tari-indexer-client/StreamTransactionEventsRequest.d.ts +1 -1
  33. package/dist/types/wallet-types/AccountGetByKeyIndexRequest.d.ts +1 -1
  34. package/dist/types/wallet-types/AccountsCreateFreeTestCoinsRequest.d.ts +1 -1
  35. package/dist/types/wallet-types/AccountsTransferRequest.d.ts +1 -1
  36. package/dist/types/wallet-types/AuthCreateApiKeyRequest.d.ts +1 -1
  37. package/dist/types/wallet-types/CallInstructionRequest.d.ts +8 -1
  38. package/dist/types/wallet-types/ClaimBurnRequest.d.ts +1 -1
  39. package/dist/types/wallet-types/ClaimValidatorFeesRequest.d.ts +1 -1
  40. package/dist/types/wallet-types/ConfidentialTransferRequest.d.ts +1 -1
  41. package/dist/types/wallet-types/ConfidentialViewVaultBalanceRequest.d.ts +1 -1
  42. package/dist/types/wallet-types/InputSelection.d.ts +3 -3
  43. package/dist/types/wallet-types/KeyId.d.ts +2 -2
  44. package/dist/types/wallet-types/KeysSetActiveRequest.d.ts +1 -1
  45. package/dist/types/wallet-types/MintFaucetNftRequest.d.ts +2 -2
  46. package/dist/types/wallet-types/PublishTemplateRequest.d.ts +1 -1
  47. package/dist/types/wallet-types/SettingsGetResponse.d.ts +12 -0
  48. package/dist/types/wallet-types/StealthTransferRequest.d.ts +1 -1
  49. package/dist/types/wallet-types/StealthUtxosDecryptValueRequest.d.ts +2 -2
  50. package/dist/types/wallet-types/StealthUtxosGetValueLookupInfoResponse.d.ts +4 -0
  51. package/dist/types/wallet-types/SwapPoolsListRequest.d.ts +2 -2
  52. package/dist/types/wallet-types/TransactionDetectInputsRequest.d.ts +10 -0
  53. package/dist/types/wallet-types/TransactionSubmitManifestRequest.d.ts +1 -1
  54. package/dist/types/wallet-types/TransferNftRequest.d.ts +1 -1
  55. package/dist/types/wallet-types/TransferOutput.d.ts +1 -1
  56. package/dist/validator-node-client.d.ts +42 -42
  57. package/dist/validator-node-client.js +42 -42
  58. package/dist/wallet-types.d.ts +172 -172
  59. package/dist/wallet-types.js +172 -172
  60. package/package.json +1 -1
  61. /package/dist/types/{StealthValueProof.js → CommitmentValueProof.js} +0 -0
@@ -1,67 +1,67 @@
1
1
  // Copyright 2026 The Tari Project
2
2
  // SPDX-License-Identifier: BSD-3-Clause
3
- export * from "./types/tari-indexer-client/NetworkDescription";
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";
3
+ export * from "./types/tari-indexer-client/IndexerSubmitTransactionResponse";
4
+ export * from "./types/tari-indexer-client/GetTransactionReceiptResponse";
14
5
  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";
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
+ export * from "./types/tari-indexer-client/NetworkDescription";
17
+ export * from "./types/tari-indexer-client/GetUtxoUpdatesResponse";
18
+ export * from "./types/tari-indexer-client/TransactionResultSummary";
18
19
  export * from "./types/tari-indexer-client/IndexerGetSubstateResponse";
20
+ export * from "./types/tari-indexer-client/IndexerGetCommsStatsResponse";
19
21
  export * from "./types/tari-indexer-client/ListWatchedTemplatesResponse";
20
- export * from "./types/tari-indexer-client/ListUtxosRequest";
21
- export * from "./types/tari-indexer-client/GetSubstatesRequest";
22
- export * from "./types/tari-indexer-client/GetUtxoUpdatesResponse";
23
- export * from "./types/tari-indexer-client/GetNetworkSyncStateResponse";
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
22
  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";
23
+ export * from "./types/tari-indexer-client/IndexerConnection";
24
+ export * from "./types/tari-indexer-client/GetNonFungiblesRequest";
32
25
  export * from "./types/tari-indexer-client/ListValidatorsRequest";
33
- export * from "./types/tari-indexer-client/IndexerGetCommsStatsResponse";
34
- export * from "./types/tari-indexer-client/ListUtxosResponse";
35
- export * from "./types/tari-indexer-client/IndexerGetConnectionsResponse";
36
- export * from "./types/tari-indexer-client/GetNonFungiblesResponse";
37
- export * from "./types/tari-indexer-client/ValidatorInfo";
38
- export * from "./types/tari-indexer-client/ValidatorStatus";
39
- export * from "./types/tari-indexer-client/SyncProgress";
40
- export * from "./types/tari-indexer-client/ListRecentTransactionsRequest";
41
- export * from "./types/tari-indexer-client/GetTransactionReceiptResponse";
42
- export * from "./types/tari-indexer-client/GetUtxosRequest";
43
26
  export * from "./types/tari-indexer-client/GetResourceResponse";
44
- export * from "./types/tari-indexer-client/GetNetworkEconomicsResponse";
45
27
  export * from "./types/tari-indexer-client/ListEpochCheckpointsResponse";
46
- export * from "./types/tari-indexer-client/IndexerGetTransactionResultResponse";
47
- export * from "./types/tari-indexer-client/TransactionEntry";
48
- export * from "./types/tari-indexer-client/ListTemplateCatalogueRequest";
28
+ export * from "./types/tari-indexer-client/ListTransactionReceiptsRequest";
29
+ export * from "./types/tari-indexer-client/GetUtxosRequest";
30
+ export * from "./types/tari-indexer-client/ListRecentTransactionsResponse";
31
+ export * from "./types/tari-indexer-client/ListWatchedSubstatesRequest";
32
+ export * from "./types/tari-indexer-client/ValidatorInfo";
33
+ export * from "./types/tari-indexer-client/GetLatestEpochCheckpointResponse";
34
+ export * from "./types/tari-indexer-client/GetNetworkSyncStateResponse";
49
35
  export * from "./types/tari-indexer-client/GetUtxosResponse";
50
- export * from "./types/tari-indexer-client/ListTemplatesResponse";
51
- export * from "./types/tari-indexer-client/TransactionResultSummary";
36
+ export * from "./types/tari-indexer-client/ListUtxosResponse";
37
+ export * from "./types/tari-indexer-client/GetNonFungiblesResponse";
38
+ export * from "./types/tari-indexer-client/GetTemplateDefinitionResponse";
39
+ export * from "./types/tari-indexer-client/ListTransactionReceiptsResponse";
40
+ export * from "./types/tari-indexer-client/IndexerGetConnectionsResponse";
52
41
  export * from "./types/tari-indexer-client/IndexerGetTransactionResponse";
42
+ export * from "./types/tari-indexer-client/ListTemplateCatalogueRequest";
53
43
  export * from "./types/tari-indexer-client/GetSubstatesResponse";
54
- export * from "./types/tari-indexer-client/IndexerGetTransactionResultRequest";
55
- export * from "./types/tari-indexer-client/WatchedSubstateItem";
56
- export * from "./types/tari-indexer-client/ListRecentTransactionsResponse";
57
- export * from "./types/tari-indexer-client/WatchedTemplateItem";
58
- export * from "./types/tari-indexer-client/QueryTransactionEventsRequest";
59
- export * from "./types/tari-indexer-client/IndexerTransactionFinalizedResult";
60
- export * from "./types/tari-indexer-client/IndexerReadyResponse";
61
- export * from "./types/tari-indexer-client/IndexerSubmitTransactionResponse";
62
- export * from "./types/tari-indexer-client/ListTransactionReceiptsRequest";
44
+ export * from "./types/tari-indexer-client/TemplateCatalogueItem";
45
+ export * from "./types/tari-indexer-client/ValidatorStatus";
46
+ export * from "./types/tari-indexer-client/ListWatchedSubstatesResponse";
47
+ export * from "./types/tari-indexer-client/IndexerSubmitTransactionRequest";
48
+ export * from "./types/tari-indexer-client/ListTemplatesResponse";
49
+ export * from "./types/tari-indexer-client/TemplateMeta";
50
+ export * from "./types/tari-indexer-client/InspectSubstateResponse";
51
+ export * from "./types/tari-indexer-client/ListRecentTransactionsRequest";
52
+ export * from "./types/tari-indexer-client/GetSubstatesRequest";
53
+ export * from "./types/tari-indexer-client/IndexerGetSubstateRequest";
54
+ export * from "./types/tari-indexer-client/IndexerGetEpochManagerStatsResponse";
55
+ export * from "./types/tari-indexer-client/NonFungibleSubstate";
56
+ export * from "./types/tari-indexer-client/ListTemplateCatalogueResponse";
57
+ export * from "./types/tari-indexer-client/ListTemplatesRequest";
58
+ export * from "./types/tari-indexer-client/IndexerGetTransactionResultResponse";
63
59
  export * from "./types/tari-indexer-client/IndexerConnectionDirection";
64
- export * from "./types/tari-indexer-client/ListSubstateItem";
65
- export * from "./types/tari-indexer-client/StreamTransactionEventsRequest";
66
- export * from "./types/tari-indexer-client/ListWatchedSubstatesRequest";
60
+ export * from "./types/tari-indexer-client/IndexerGetIdentityResponse";
67
61
  export * from "./types/tari-indexer-client/ListEpochCheckpointsRequest";
62
+ export * from "./types/tari-indexer-client/ListUtxosRequest";
63
+ export * from "./types/tari-indexer-client/GetNetworkEconomicsResponse";
64
+ export * from "./types/tari-indexer-client/SyncProgress";
65
+ export * from "./types/tari-indexer-client/IndexerGetTransactionResultRequest";
66
+ export * from "./types/tari-indexer-client/QueryTransactionEventsResponse";
67
+ export * from "./types/tari-indexer-client/IndexerReadyResponse";
@@ -1 +1 @@
1
- export type AbortReason = "ForeignPledgeInputConflict" | "LockInputsFailed" | "LockOutputsFailed" | "LockInputsOutputsFailed" | "ExecutionFailure" | "OneOrMoreInputsNotFound" | "InsufficientFeesPaid" | "FeePaymentInMainIntent" | "EpochExpired";
1
+ export type AbortReason = "ForeignPledgeInputConflict" | "LockInputsFailed" | "LockOutputsFailed" | "LockInputsOutputsFailed" | "ExecutionFailure" | "OneOrMoreInputsNotFound" | "InsufficientFeesPaid" | "FeePaymentInMainIntent" | "EpochExpired" | "ValidityWindowTooLong";
@@ -2,8 +2,8 @@ import type { PedersenCommitmentBytes } from "./PedersenCommitmentBytes";
2
2
  import type { SchnorrSignatureBytes } from "./SchnorrSignatureBytes";
3
3
  export type AbridgedTransactionKernel = {
4
4
  version: number;
5
- fee: bigint;
6
- lock_height: bigint;
5
+ fee: number | bigint | string;
6
+ lock_height: number | bigint | string;
7
7
  excess: PedersenCommitmentBytes;
8
8
  excess_sig: SchnorrSignatureBytes;
9
9
  };
@@ -1,7 +1,7 @@
1
1
  /**
2
- * A 128-bit signed amount.
2
+ * A 128-bit unsigned amount.
3
3
  *
4
- * This is a general purpose signed integer, but is primarily used to represent the smallest unit of value in
4
+ * This is a general purpose unsigned integer, but is primarily used to represent the smallest unit of value in
5
5
  * resources/vaults etc.
6
6
  *
7
7
  * This allows Tari to support a massive number tokens within resources.
@@ -13,9 +13,9 @@ import type { HashAlg } from "./HashAlg";
13
13
  * [`BuiltinPredicate::consumes_data`] and the sole-consumer rule it implies.
14
14
  */
15
15
  export type BuiltinPredicate = {
16
- AfterEpoch: bigint;
16
+ AfterEpoch: number | bigint | string;
17
17
  } | {
18
- BeforeEpoch: bigint;
18
+ BeforeEpoch: number | bigint | string;
19
19
  } | {
20
20
  HashLock: {
21
21
  hash: Hash32;
@@ -2,9 +2,11 @@ import type { Amount } from "./Amount";
2
2
  import type { ValueKnowledgeProof } from "./ValueKnowledgeProof";
3
3
  /**
4
4
  * Proof of knowledge of the opening to a commitment and that the commitment commits to a specific value.
5
- * Currently used when burning UTXOs to allow the total supply to be adjusted.
5
+ *
6
+ * Used wherever a resource's total supply must account for a value that is otherwise hidden in a commitment:
7
+ * burning a stealth UTXO, and minting a confidential commitment.
6
8
  */
7
- export type StealthValueProof = {
9
+ export type CommitmentValueProof = {
8
10
  /**
9
11
  * The claimed value to prove
10
12
  */
@@ -3,7 +3,7 @@ import type { OutputBody } from "./OutputBody";
3
3
  * A confidential output stored as its own substate, referenced by a vault's commitment list.
4
4
  *
5
5
  * Spend authorization is entirely controlled by the owning vault's access rules (unlike a stealth
6
- * `Utxo`, which carries its own spend authorization), so no per-output spend key is held here.
6
+ * [`crate::utxo::Utxo`], which carries its own spend authorization), so no per-output spend key is held here.
7
7
  * Spending or burning downs this substate; the only in-place mutation is freezing.
8
8
  */
9
9
  export type ConfidentialOutput = {
@@ -9,8 +9,8 @@ import type { Hash32 } from "./Hash32";
9
9
  export type Covenant = "OutputPreservesCondition" | {
10
10
  OutputTo: {
11
11
  condition_root: Hash32;
12
- min_value: bigint;
12
+ min_value: number | bigint | string;
13
13
  };
14
14
  } | {
15
- BalancePreserved: bigint;
15
+ BalancePreserved: number | bigint | string;
16
16
  };
@@ -1,5 +1,5 @@
1
1
  export type EncodedMerkleProof = {
2
2
  block_hash: string;
3
3
  encoded_merkle_proof: string;
4
- leaf_index: bigint;
4
+ leaf_index: number | bigint | string;
5
5
  };
@@ -20,8 +20,17 @@ export type ExecuteResult = {
20
20
  /**
21
21
  * Total WASM metering points consumed by the transaction across all calls, including failed/aborted execution.
22
22
  * Metering is deterministic, so every validator computes the identical value for the same transaction and
23
- * pledged state. Used to enforce the per-block WASM points budget. Defaults to 0 when decoding executions
24
- * persisted before this field existed.
23
+ * pledged state. Defaults to 0 when decoding executions persisted before this field existed.
25
24
  */
26
25
  wasm_execution_points: bigint;
26
+ /**
27
+ * Total native-verification points (stealth transfers, confidential withdraws, burn claims) charged to the
28
+ * transaction, priced in WASM-point equivalents by [`NativeExecutionPoints`]. Deterministic for the same
29
+ * reason as [`Self::wasm_execution_points`] — the price is a pure function of the declared statement — so
30
+ * every validator computes the identical value. Defaults to 0 when decoding executions persisted before this
31
+ * field existed.
32
+ *
33
+ * [`NativeExecutionPoints`]: crate::limits::NativeExecutionPoints
34
+ */
35
+ native_execution_points: bigint;
27
36
  };
@@ -11,4 +11,15 @@ export type FinalizeResult = {
11
11
  execution_results: Array<InstructionResult>;
12
12
  result: TransactionResult;
13
13
  fee_receipt: FeeReceipt;
14
+ /**
15
+ * What committing the whole transaction was priced at, which is what the commit-or-reject
16
+ * decision was made against.
17
+ *
18
+ * Equal to `fee_receipt.total_fees_charged()` on a full commit. When only the fee intent
19
+ * commits, the charges are re-derived over the fee checkpoint alone and so fall below what was
20
+ * paid; this keeps the figure the main intent was rejected for — the one a resubmission has to
21
+ * clear. Execution metadata rather than settled state, so it stays out of the persisted
22
+ * receipt, whose every field is priced into the storage charge of each transaction.
23
+ */
24
+ total_fees_required: bigint;
14
25
  };
@@ -1,6 +1,7 @@
1
1
  import type { BucketId } from "./BucketId";
2
2
  import type { ClaimedOutputTombstoneAddress } from "./ClaimedOutputTombstoneAddress";
3
3
  import type { ComponentAddress } from "./ComponentAddress";
4
+ import type { ConfidentialOutputAddress } from "./ConfidentialOutputAddress";
4
5
  import type { Metadata } from "./Metadata";
5
6
  import type { NonFungibleAddress } from "./NonFungibleAddress";
6
7
  import type { ProofId } from "./ProofId";
@@ -25,4 +26,5 @@ export type IndexedWellKnownTypes = {
25
26
  utxos: Array<UtxoAddress>;
26
27
  component_address_allocations: number[];
27
28
  resource_address_allocations: number[];
29
+ confidential_outputs: Array<ConfidentialOutputAddress>;
28
30
  };
@@ -6,7 +6,6 @@ import type { ComponentAccessRules } from "./ComponentAccessRules";
6
6
  import type { ComponentReference } from "./ComponentReference";
7
7
  import type { Hash32 } from "./Hash32";
8
8
  import type { InstructionArg } from "./InstructionArg";
9
- import type { LogLevel } from "./LogLevel";
10
9
  import type { MigrateFunction } from "./MigrateFunction";
11
10
  import type { MinotariBurnClaimProof } from "./MinotariBurnClaimProof";
12
11
  import type { OwnerRule } from "./OwnerRule";
@@ -38,11 +37,6 @@ export type Instruction = {
38
37
  PutLastInstructionOutputOnWorkspace: {
39
38
  key: number;
40
39
  };
41
- } | {
42
- EmitLog: {
43
- level: LogLevel;
44
- message: string;
45
- };
46
40
  } | {
47
41
  ClaimBurn: {
48
42
  claim: MinotariBurnClaimProof;
@@ -51,6 +45,7 @@ export type Instruction = {
51
45
  } | {
52
46
  ClaimValidatorFees: {
53
47
  address: ValidatorFeePoolAddress;
48
+ max_amount: Amount | null;
54
49
  };
55
50
  } | "DropAllProofsInWorkspace" | {
56
51
  Assert: {
@@ -1,4 +1,17 @@
1
1
  export type LeaderFee = {
2
+ /**
3
+ * The fee payable to the leader of each involved shard group.
4
+ */
2
5
  fee: bigint;
6
+ /**
7
+ * The amount burned for the whole transaction across all involved shard groups: the exhaust burn collected by
8
+ * the executor plus the indivisible remainder from dividing the transaction fee between the leaders
9
+ * (`fee * num_involved_shard_groups + exhaust_burn == transaction_fee + executor_exhaust_burn`).
10
+ *
11
+ * CONSENSUS RULE: this must equal the amount actually withheld from validators, exactly — the accumulated burn
12
+ * in block headers determines the total supply, so it must not be re-derived with lossy arithmetic. Each shard
13
+ * group accumulates only its portion of this into its block header burn total — see
14
+ * `Evidence::exhaust_burn_portion`.
15
+ */
3
16
  exhaust_burn: bigint;
4
17
  };
@@ -12,6 +12,6 @@ export type MinotariBurnClaimProof = {
12
12
  ownership_proof: SchnorrSignatureBytes;
13
13
  encoded_merkle_proof: EncodedMerkleProof;
14
14
  kernel: AbridgedTransactionKernel;
15
- value: bigint;
15
+ value: number | bigint | string;
16
16
  sender_offset_public_key: RistrettoPublicKeyBytes;
17
17
  };
@@ -14,7 +14,7 @@ export type PrunedUnsignedTransactionV1 = {
14
14
  instructions: Array<Instruction>;
15
15
  inputs: Array<SubstateRequirement>;
16
16
  min_epoch: Epoch | null;
17
- max_epoch: Epoch | null;
17
+ max_epoch: Epoch;
18
18
  is_seal_signer_authorized: boolean;
19
19
  dry_run: boolean;
20
20
  /**
@@ -28,4 +28,8 @@ export type PrunedUnsignedTransactionV1 = {
28
28
  * archives that didn't record sizes.
29
29
  */
30
30
  blob_sizes: Array<number>;
31
+ /**
32
+ * Mirrors `UnsignedTransactionV1::nonce` of the full form.
33
+ */
34
+ nonce: bigint;
31
35
  };
@@ -1,6 +1,5 @@
1
1
  import type { Amount } from "./Amount";
2
2
  import type { NonFungibleId } from "./NonFungibleId";
3
- import type { OutputBody } from "./OutputBody";
4
3
  import type { PedersenCommitmentBytes } from "./PedersenCommitmentBytes";
5
4
  import type { ResourceAddress } from "./ResourceAddress";
6
5
  /**
@@ -21,13 +20,9 @@ export type ResourceContainer = {
21
20
  } | {
22
21
  Confidential: {
23
22
  address: ResourceAddress;
24
- commitments: {
25
- [key in PedersenCommitmentBytes]?: OutputBody;
26
- };
23
+ commitments: Array<PedersenCommitmentBytes>;
27
24
  revealed_amount: Amount;
28
- locked_commitments: {
29
- [key in PedersenCommitmentBytes]?: OutputBody;
30
- };
25
+ locked_commitments: Array<PedersenCommitmentBytes>;
31
26
  locked_revealed_amount: Amount;
32
27
  };
33
28
  } | {
@@ -1 +1 @@
1
- export type StateVersion = number | bigint;
1
+ export type StateVersion = number | bigint | string;
@@ -20,7 +20,7 @@ export type TransactionPoolRecord = {
20
20
  /**
21
21
  * The maximum epoch for which this transaction is valid.
22
22
  */
23
- max_epoch: Epoch | null;
23
+ max_epoch: Epoch;
24
24
  /**
25
25
  * Epoch to use when executing the transaction. This updates as foreign proposals are received
26
26
  * until the transaction is executed.
@@ -35,7 +35,7 @@ export type TransactionPoolRecord = {
35
35
  */
36
36
  transaction_weight: bigint;
37
37
  /**
38
- * The exhaust burn surcharge collected by the executor (`FeeReceipt::exhaust_burn_charged`), set from local
38
+ * The exhaust burn collected by the executor (`FeeReceipt::exhaust_burn_charged`), set from local
39
39
  * execution alongside `transaction_fee`.
40
40
  */
41
41
  exhaust_burn: bigint;
@@ -3,14 +3,26 @@ import type { Epoch } from "./Epoch";
3
3
  import type { Event } from "./Event";
4
4
  import type { FeeReceipt } from "./FeeReceipt";
5
5
  import type { FinalizeOutcome } from "./FinalizeOutcome";
6
- import type { LogEntry } from "./LogEntry";
6
+ import type { Hash32 } from "./Hash32";
7
7
  import type { ValidatorFeeWithdrawal } from "./ValidatorFeeWithdrawal";
8
8
  export type TransactionReceipt = {
9
9
  outcome: FinalizeOutcome;
10
10
  diff_summary: DiffSummary;
11
11
  fee_withdrawals: Array<ValidatorFeeWithdrawal>;
12
12
  events: Array<Event>;
13
- logs: Array<LogEntry>;
14
13
  fee_receipt: FeeReceipt;
15
14
  epoch: Epoch;
15
+ /**
16
+ * Commitment to the transaction's intent: every field the signers authorized (network, fee
17
+ * instructions, instructions, inputs, epoch bounds, flags and blob commitments), excluding the
18
+ * signatures themselves.
19
+ *
20
+ * The receipt is already bound to the transaction transitively — it is addressed by the
21
+ * transaction id — but reproducing that id requires the signatures and the seal signature, so
22
+ * establishing the link that way reveals the signers. This commitment is over the same
23
+ * projection minus the signatures, so whoever holds the transaction can link it to this
24
+ * receipt without revealing who authorized it. It identifies the intent, not the signers:
25
+ * transactions differing only in who signed them share a commitment.
26
+ */
27
+ intent_commitment: Hash32;
16
28
  };
@@ -11,7 +11,13 @@ export type UnsignedTransactionV1 = {
11
11
  */
12
12
  inputs: Array<SubstateRequirement>;
13
13
  min_epoch: Epoch | null;
14
- max_epoch: Epoch | null;
14
+ /**
15
+ * The last epoch in which this transaction may be sequenced. Mandatory: every transaction has a
16
+ * bounded lifetime, capped at `ConsensusConstants::max_transaction_validity_epochs` past the
17
+ * current epoch, so a transaction's death is deterministic and an aborted attempt cannot be
18
+ * retried indefinitely.
19
+ */
20
+ max_epoch: Epoch;
15
21
  is_seal_signer_authorized: boolean;
16
22
  dry_run: boolean;
17
23
  /**
@@ -21,4 +27,11 @@ export type UnsignedTransactionV1 = {
21
27
  * signature verifiability or transaction id.
22
28
  */
23
29
  blobs: Blobs;
30
+ /**
31
+ * Distinguishes otherwise-identical transactions. The transaction id excludes the seal
32
+ * signature, so two identical bodies sealed by the same key are the *same* transaction —
33
+ * an intent builder (e.g. a wallet) that wants each submission to execute independently
34
+ * must stamp a distinct nonce per intent. Part of the signing and id domains.
35
+ */
36
+ nonce: number | bigint | string;
24
37
  };
@@ -23,7 +23,7 @@ export type UnspentOutput = {
23
23
  * Encrypted mask and value for the recipient.
24
24
  */
25
25
  encrypted_data: EncryptedData;
26
- minimum_value_promise: bigint;
26
+ minimum_value_promise: number | bigint | string;
27
27
  /**
28
28
  * If the view key is enabled for a given resource, this proof MUST be provided, otherwise it MUST NOT.
29
29
  */
@@ -1,4 +1,5 @@
1
1
  import type { RistrettoPublicKeyBytes } from "./RistrettoPublicKeyBytes";
2
+ import type { Scalar32Bytes } from "./Scalar32Bytes";
2
3
  import type { SchnorrSignatureBytes } from "./SchnorrSignatureBytes";
3
4
  export type ValueKnowledgeProof = {
4
5
  Commitment: {
@@ -11,9 +12,20 @@ export type ValueKnowledgeProof = {
11
12
  } | {
12
13
  ElgamalEncrypted: {
13
14
  /**
14
- * The R.p term of the ElGamal encryption. This allows validators to check the provided value is correct using
15
- * the viewable balance. This assumes that the verifiable proof was originally validated correctly.
15
+ * Chaum-Pedersen (DLEQ) proof of knowledge of the view private key `p` such that `P = p.G` (the resource
16
+ * view key) and `E - v.G = p.R`, where `(E, R)` is the UTXO's viewable balance and `v` is the claimed value.
17
+ * Binding both equations to a single scalar forces `v` to equal the value encrypted for the view key.
18
+ *
19
+ * `K_g = k.G` for the proof nonce `k`
16
20
  */
17
- reveal_key: RistrettoPublicKeyBytes;
21
+ public_nonce_g: RistrettoPublicKeyBytes;
22
+ /**
23
+ * `K_r = k.R`
24
+ */
25
+ public_nonce_r: RistrettoPublicKeyBytes;
26
+ /**
27
+ * `s = k + e.p` for the Fiat-Shamir challenge `e`
28
+ */
29
+ s_p: Scalar32Bytes;
18
30
  };
19
31
  };
@@ -2,11 +2,36 @@ import type { Amount } from "../Amount";
2
2
  import type { Epoch } from "../Epoch";
3
3
  export type GetNetworkEconomicsResponse = {
4
4
  current_epoch: Epoch;
5
+ /**
6
+ * Total XTR claimed (peg-in).
7
+ */
5
8
  total_claimed: Amount;
9
+ /**
10
+ * Total exhaust burned, sourced from checkpoint headers (consensus-backed, complete since genesis).
11
+ * Kept as a cross-check against `receipt_exhaust_burned`.
12
+ */
6
13
  total_exhaust_burned: Amount;
14
+ /**
15
+ * Total pre-burn execution fees `F`, summed from transaction receipts.
16
+ */
7
17
  fee_volume: Amount;
18
+ /**
19
+ * Total exhaust burned summed from the same receipts as `fee_volume`; `receipt_exhaust_burned /
20
+ * fee_volume` is the exact realized burn rate, and this is the burn netted from `total_supply`. May
21
+ * transiently trail `total_exhaust_burned` while the receipt sync frontier catches up to the checkpoint
22
+ * frontier.
23
+ */
8
24
  receipt_exhaust_burned: Amount;
25
+ /**
26
+ * Circulating L2 supply: `total_claimed - receipt_exhaust_burned`.
27
+ */
9
28
  total_supply: Amount;
29
+ /**
30
+ * Number of transaction receipts the indexer has stored.
31
+ */
10
32
  transaction_receipt_count: bigint;
33
+ /**
34
+ * The target exhaust burn rate in basis points in effect at `current_epoch`.
35
+ */
11
36
  target_burn_rate_bps: number;
12
37
  };
@@ -1,6 +1,6 @@
1
1
  import type { ResourceAddress } from "../ResourceAddress";
2
2
  export type GetNonFungiblesRequest = {
3
3
  address: ResourceAddress;
4
- start_index: bigint;
5
- end_index: bigint;
4
+ start_index: number | bigint | string;
5
+ end_index: number | bigint | string;
6
6
  };
@@ -1,13 +1,7 @@
1
- import type { ExecuteResult } from "../ExecuteResult";
2
1
  import type { TransactionId } from "../TransactionId";
3
2
  export type IndexerSubmitTransactionResponse = {
4
3
  /**
5
- * The ID of the transaction that was dry-run
4
+ * The ID of the submitted transaction
6
5
  */
7
6
  transaction_id: TransactionId;
8
- /**
9
- * The result of the dry-run execution, including any emitted events and state changes, but without a final
10
- * decision or commitment to the ledger
11
- */
12
- result: ExecuteResult;
13
7
  };
@@ -7,7 +7,7 @@ export type ListTemplateCatalogueRequest = {
7
7
  /**
8
8
  * Maximum number of entries to return (default: 20, max: 100).
9
9
  */
10
- limit: bigint | null;
10
+ limit: number | bigint | string | null;
11
11
  /**
12
12
  * Cursor: return entries inserted after the row with this template address.
13
13
  * When omitted, returns from the beginning.
@@ -1,6 +1,6 @@
1
1
  import type { Hash32 } from "../Hash32";
2
2
  export type ListWatchedSubstatesRequest = {
3
3
  template_address: Hash32 | null;
4
- limit: bigint | null;
5
- offset: bigint | null;
4
+ limit: number | bigint | string | null;
5
+ offset: number | bigint | string | null;
6
6
  };
@@ -18,5 +18,5 @@ export type StreamTransactionEventsRequest = {
18
18
  * Resume the event stream from this event ID (exclusive). Events with id > after_id will be
19
19
  * replayed from the database before switching to the live stream.
20
20
  */
21
- after_id: bigint | null;
21
+ after_id: number | bigint | string | null;
22
22
  };
@@ -1,3 +1,3 @@
1
1
  export type AccountGetByKeyIndexRequest = {
2
- key_index: bigint;
2
+ key_index: number | bigint | string;
3
3
  };
@@ -1,5 +1,5 @@
1
1
  import type { ComponentAddressOrName } from "./ComponentAddressOrName";
2
2
  export type AccountsCreateFreeTestCoinsRequest = {
3
3
  account: ComponentAddressOrName;
4
- max_fee: bigint;
4
+ max_fee: number | bigint | string;
5
5
  };
@@ -7,7 +7,7 @@ export type AccountsTransferRequest = {
7
7
  amount: Amount;
8
8
  resource_address: ResourceAddress;
9
9
  destination_public_key: RistrettoPublicKeyBytes;
10
- max_fee: bigint;
10
+ max_fee: number | bigint | string;
11
11
  proof_from_badge_resource: ResourceAddress | null;
12
12
  dry_run: boolean;
13
13
  };
@@ -21,5 +21,5 @@ export type AuthCreateApiKeyRequest = {
21
21
  * for a never-expiring key. Rejected at the handler if it lies in the
22
22
  * past — refusing to mint an instantly-expired credential.
23
23
  */
24
- expires_at: bigint | null;
24
+ expires_at: number | bigint | string | null;
25
25
  };
@@ -4,8 +4,15 @@ import type { ComponentAddressOrName } from "./ComponentAddressOrName";
4
4
  export type CallInstructionRequest = {
5
5
  instructions: Array<Instruction>;
6
6
  fee_account: ComponentAddressOrName;
7
- max_fee: bigint;
7
+ max_fee: number | bigint | string;
8
+ /**
9
+ * Substates the instructions require as transaction inputs. Needed for any input that cannot be inferred
10
+ * from the instructions, e.g. a `ConfidentialOutput` named only by a commitment inside an opaque proof.
11
+ */
8
12
  inputs: Array<SubstateRequirement>;
13
+ /**
14
+ * If true, inputs inferred from the instructions are added to `inputs`.
15
+ */
9
16
  override_inputs: boolean | null;
10
17
  new_outputs: number | null;
11
18
  proof_ids: Array<number>;
@@ -3,6 +3,6 @@ import type { ComponentAddressOrName } from "./ComponentAddressOrName";
3
3
  export type ClaimBurnRequest = {
4
4
  account: ComponentAddressOrName;
5
5
  claim_proof: ClaimBurnProof;
6
- max_fee: bigint;
6
+ max_fee: number | bigint | string;
7
7
  is_dry_run: boolean;
8
8
  };