@tari-project/ootle-ts-bindings 1.43.0 → 1.44.6

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 (32) hide show
  1. package/dist/index.d.ts +3 -0
  2. package/dist/index.js +3 -0
  3. package/dist/tari-indexer-client.d.ts +1 -0
  4. package/dist/tari-indexer-client.js +1 -0
  5. package/dist/types/ConfidentialOutput.d.ts +12 -0
  6. package/dist/types/ConfidentialOutput.js +1 -0
  7. package/dist/types/ConfidentialOutputAddress.d.ts +9 -0
  8. package/dist/types/ConfidentialOutputAddress.js +1 -0
  9. package/dist/types/ConfidentialOutputAddressContents.d.ts +6 -0
  10. package/dist/types/ConfidentialOutputAddressContents.js +1 -0
  11. package/dist/types/FeeSource.d.ts +1 -1
  12. package/dist/types/SubstateType.d.ts +1 -1
  13. package/dist/types/SubstateValue.d.ts +3 -0
  14. package/dist/types/TransactionPoolRecord.d.ts +5 -0
  15. package/dist/types/tari-indexer-client/GetNetworkEconomicsResponse.d.ts +12 -0
  16. package/dist/types/tari-indexer-client/GetNetworkEconomicsResponse.js +1 -0
  17. package/dist/types/wallet-types/ConfidentialOutputInfo.d.ts +21 -0
  18. package/dist/types/wallet-types/ConfidentialOutputInfo.js +1 -0
  19. package/dist/types/wallet-types/ConfidentialOutputsListRequest.d.ts +8 -0
  20. package/dist/types/wallet-types/ConfidentialOutputsListRequest.js +1 -0
  21. package/dist/types/wallet-types/ConfidentialOutputsListResponse.d.ts +4 -0
  22. package/dist/types/wallet-types/ConfidentialOutputsListResponse.js +1 -0
  23. package/dist/types/wallet-types/ConfidentialTransferRequest.d.ts +1 -1
  24. package/dist/types/wallet-types/ProofsGenerateRequest.d.ts +3 -3
  25. package/dist/types/wallet-types/StealthUtxosDecryptValueRequest.d.ts +1 -1
  26. package/dist/types/wallet-types/StealthUtxosGetValueLookupInfoRequest.d.ts +1 -0
  27. package/dist/types/wallet-types/StealthUtxosGetValueLookupInfoRequest.js +2 -0
  28. package/dist/types/wallet-types/StealthUtxosGetValueLookupInfoResponse.d.ts +10 -0
  29. package/dist/types/wallet-types/StealthUtxosGetValueLookupInfoResponse.js +2 -0
  30. package/dist/wallet-types.d.ts +5 -0
  31. package/dist/wallet-types.js +5 -0
  32. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -35,6 +35,9 @@ export * from "./types/ComponentBody";
35
35
  export * from "./types/ComponentHeader";
36
36
  export * from "./types/ComponentKey";
37
37
  export * from "./types/ComponentReference";
38
+ export * from "./types/ConfidentialOutput";
39
+ export * from "./types/ConfidentialOutputAddress";
40
+ export * from "./types/ConfidentialOutputAddressContents";
38
41
  export * from "./types/ConfidentialOutputStatement";
39
42
  export * from "./types/ConfidentialWithdrawProof";
40
43
  export * from "./types/Covenant";
package/dist/index.js CHANGED
@@ -37,6 +37,9 @@ export * from "./types/ComponentBody";
37
37
  export * from "./types/ComponentHeader";
38
38
  export * from "./types/ComponentKey";
39
39
  export * from "./types/ComponentReference";
40
+ export * from "./types/ConfidentialOutput";
41
+ export * from "./types/ConfidentialOutputAddress";
42
+ export * from "./types/ConfidentialOutputAddressContents";
40
43
  export * from "./types/ConfidentialOutputStatement";
41
44
  export * from "./types/ConfidentialWithdrawProof";
42
45
  export * from "./types/Covenant";
@@ -39,6 +39,7 @@ export * from "./types/tari-indexer-client/ListRecentTransactionsRequest";
39
39
  export * from "./types/tari-indexer-client/GetTransactionReceiptResponse";
40
40
  export * from "./types/tari-indexer-client/GetUtxosRequest";
41
41
  export * from "./types/tari-indexer-client/GetResourceResponse";
42
+ export * from "./types/tari-indexer-client/GetNetworkEconomicsResponse";
42
43
  export * from "./types/tari-indexer-client/ListEpochCheckpointsResponse";
43
44
  export * from "./types/tari-indexer-client/IndexerGetTransactionResultResponse";
44
45
  export * from "./types/tari-indexer-client/TransactionEntry";
@@ -41,6 +41,7 @@ export * from "./types/tari-indexer-client/ListRecentTransactionsRequest";
41
41
  export * from "./types/tari-indexer-client/GetTransactionReceiptResponse";
42
42
  export * from "./types/tari-indexer-client/GetUtxosRequest";
43
43
  export * from "./types/tari-indexer-client/GetResourceResponse";
44
+ export * from "./types/tari-indexer-client/GetNetworkEconomicsResponse";
44
45
  export * from "./types/tari-indexer-client/ListEpochCheckpointsResponse";
45
46
  export * from "./types/tari-indexer-client/IndexerGetTransactionResultResponse";
46
47
  export * from "./types/tari-indexer-client/TransactionEntry";
@@ -0,0 +1,12 @@
1
+ import type { OutputBody } from "./OutputBody";
2
+ /**
3
+ * A confidential output stored as its own substate, referenced by a vault's commitment list.
4
+ *
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.
7
+ * Spending or burning downs this substate; the only in-place mutation is freezing.
8
+ */
9
+ export type ConfidentialOutput = {
10
+ output: OutputBody;
11
+ is_frozen: boolean;
12
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,9 @@
1
+ import type { ConfidentialOutputAddressContents } from "./ConfidentialOutputAddressContents";
2
+ /**
3
+ * Address of a confidential output substate: a resource-namespaced Pedersen commitment.
4
+ *
5
+ * The commitment is the identity, giving network-wide uniqueness (via the duplicate-substate guard).
6
+ * The owning vault is not encoded here — membership in a vault's commitment list is what expresses
7
+ * ownership.
8
+ */
9
+ export type ConfidentialOutputAddress = ConfidentialOutputAddressContents;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ import type { PedersenCommitmentBytes } from "./PedersenCommitmentBytes";
2
+ import type { ResourceAddress } from "./ResourceAddress";
3
+ export type ConfidentialOutputAddressContents = {
4
+ resource_address: ResourceAddress;
5
+ commitment: PedersenCommitmentBytes;
6
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -1 +1 @@
1
- export type FeeSource = "Initial" | "RuntimeCall" | "Storage" | "TransactionWeight" | "SignatureVerification" | "TemplateLoad" | "SubstateCreate" | "WasmExecution" | "TemplatePublish";
1
+ export type FeeSource = "Initial" | "RuntimeCall" | "Storage" | "TransactionWeight" | "SignatureVerification" | "TemplateLoad" | "SubstateCreate" | "WasmExecution" | "TemplatePublish" | "ExhaustBurn";
@@ -1 +1 @@
1
- export type SubstateType = "Component" | "Resource" | "Vault" | "ClaimedOutputTombstone" | "NonFungible" | "TransactionReceipt" | "ValidatorFeePool" | "Template" | "Utxo";
1
+ export type SubstateType = "Component" | "Resource" | "Vault" | "ClaimedOutputTombstone" | "NonFungible" | "TransactionReceipt" | "ValidatorFeePool" | "Template" | "Utxo" | "ConfidentialOutput";
@@ -1,5 +1,6 @@
1
1
  import type { ClaimedOutputTombstone } from "./ClaimedOutputTombstone";
2
2
  import type { Component } from "./Component";
3
+ import type { ConfidentialOutput } from "./ConfidentialOutput";
3
4
  import type { NonFungibleContainer } from "./NonFungibleContainer";
4
5
  import type { PublishedTemplate } from "./PublishedTemplate";
5
6
  import type { Resource } from "./Resource";
@@ -25,4 +26,6 @@ export type SubstateValue = {
25
26
  ValidatorFeePool: ValidatorFeePool;
26
27
  } | {
27
28
  Utxo: Utxo;
29
+ } | {
30
+ ConfidentialOutput: ConfidentialOutput;
28
31
  };
@@ -34,4 +34,9 @@ export type TransactionPoolRecord = {
34
34
  * record is created.
35
35
  */
36
36
  transaction_weight: bigint;
37
+ /**
38
+ * The exhaust burn surcharge collected by the executor (`FeeReceipt::exhaust_burn_charged`), set from local
39
+ * execution alongside `transaction_fee`.
40
+ */
41
+ exhaust_burn: bigint;
37
42
  };
@@ -0,0 +1,12 @@
1
+ import type { Amount } from "../Amount";
2
+ import type { Epoch } from "../Epoch";
3
+ export type GetNetworkEconomicsResponse = {
4
+ current_epoch: Epoch;
5
+ total_claimed: Amount;
6
+ total_exhaust_burned: Amount;
7
+ fee_volume: Amount;
8
+ receipt_exhaust_burned: Amount;
9
+ total_supply: Amount;
10
+ transaction_receipt_count: bigint;
11
+ target_burn_rate_bps: number;
12
+ };
@@ -0,0 +1,21 @@
1
+ import type { Amount } from "../Amount";
2
+ import type { ConfidentialOutputAddress } from "../ConfidentialOutputAddress";
3
+ import type { Memo } from "../Memo";
4
+ import type { OutputStatus } from "../OutputStatus";
5
+ import type { VaultId } from "../VaultId";
6
+ export type ConfidentialOutputInfo = {
7
+ /**
8
+ * Address of the output's own substate. It carries the commitment, which is the output's identity.
9
+ */
10
+ address: ConfidentialOutputAddress;
11
+ /**
12
+ * The vault holding this output. Membership of a vault's commitment list is what authorises the spend.
13
+ */
14
+ vault_id: VaultId;
15
+ /**
16
+ * The decrypted value. Zero for an output the wallet could not decrypt (`OutputStatus::Invalid`).
17
+ */
18
+ value: Amount;
19
+ status: OutputStatus;
20
+ memo: Memo | null;
21
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,8 @@
1
+ import type { ComponentAddress } from "../ComponentAddress";
2
+ import type { OutputStatus } from "../OutputStatus";
3
+ import type { ResourceAddress } from "../ResourceAddress";
4
+ export type ConfidentialOutputsListRequest = {
5
+ resource_address: ResourceAddress;
6
+ account_address: ComponentAddress | null;
7
+ filter_by_status: OutputStatus | null;
8
+ };
@@ -0,0 +1,4 @@
1
+ import type { ConfidentialOutputInfo } from "./ConfidentialOutputInfo";
2
+ export type ConfidentialOutputsListResponse = {
3
+ outputs: Array<ConfidentialOutputInfo>;
4
+ };
@@ -13,6 +13,6 @@ export type ConfidentialTransferRequest = {
13
13
  max_fee: bigint;
14
14
  output_to_revealed: boolean;
15
15
  proof_from_badge_resource: ResourceAddress | null;
16
- memo?: Memo | null;
16
+ output_memo?: Memo | null;
17
17
  dry_run: boolean;
18
18
  };
@@ -1,13 +1,13 @@
1
1
  import type { Amount } from "../Amount";
2
2
  import type { Memo } from "../Memo";
3
+ import type { OotleAddress } from "../OotleAddress";
3
4
  import type { ResourceAddress } from "../ResourceAddress";
4
- import type { RistrettoPublicKeyBytes } from "../RistrettoPublicKeyBytes";
5
5
  import type { ComponentAddressOrName } from "./ComponentAddressOrName";
6
6
  export type ProofsGenerateRequest = {
7
7
  confidential_amount: Amount;
8
8
  reveal_amount: Amount;
9
9
  account: ComponentAddressOrName | null;
10
10
  resource_address: ResourceAddress;
11
- destination_public_key: RistrettoPublicKeyBytes;
12
- memo?: Memo | null;
11
+ destination_address: OotleAddress;
12
+ output_memo?: Memo | null;
13
13
  };
@@ -6,5 +6,5 @@ export type StealthUtxosDecryptValueRequest = {
6
6
  ids: Array<UtxoId>;
7
7
  view_key_id: KeyId;
8
8
  minimum_expected_value: bigint | null;
9
- maximum_expected_value: bigint;
9
+ maximum_expected_value: bigint | null;
10
10
  };
@@ -0,0 +1 @@
1
+ export type StealthUtxosGetValueLookupInfoRequest = Record<string, never>;
@@ -0,0 +1,2 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ export {};
@@ -0,0 +1,10 @@
1
+ export type StealthUtxosGetValueLookupInfoResponse = {
2
+ configured: boolean;
3
+ path: string | null;
4
+ format: string | null;
5
+ min: bigint | null;
6
+ max: bigint | null;
7
+ prefix_len: number | null;
8
+ value_len: number | null;
9
+ num_records: bigint | null;
10
+ };
@@ -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 {};
@@ -97,6 +97,9 @@ export * from "./types/wallet-types/SettingsGetResponse";
97
97
  export * from "./types/wallet-types/NetworkInfo";
98
98
  export * from "./types/wallet-types/ClaimBurnProofContents";
99
99
  export * from "./types/wallet-types/ConfidentialViewVaultBalanceRequest";
100
+ export * from "./types/wallet-types/ConfidentialOutputsListRequest";
101
+ export * from "./types/wallet-types/ConfidentialOutputsListResponse";
102
+ export * from "./types/wallet-types/ConfidentialOutputInfo";
100
103
  export * from "./types/wallet-types/GetValidatorFeesResponse";
101
104
  export * from "./types/wallet-types/TransferNftRequest";
102
105
  export * from "./types/wallet-types/AuthCredentials";
@@ -176,3 +179,5 @@ export * from "./types/wallet-types/SubstatesListRequest";
176
179
  export * from "./types/wallet-types/ComponentAddressOrName";
177
180
  export * from "./types/wallet-types/TemplatesListAuthoredResponse";
178
181
  export * from "./types/wallet-types/StealthUtxosDecryptValueResponse";
182
+ export * from "./types/wallet-types/StealthUtxosGetValueLookupInfoRequest";
183
+ export * from "./types/wallet-types/StealthUtxosGetValueLookupInfoResponse";
@@ -99,6 +99,9 @@ export * from "./types/wallet-types/SettingsGetResponse";
99
99
  export * from "./types/wallet-types/NetworkInfo";
100
100
  export * from "./types/wallet-types/ClaimBurnProofContents";
101
101
  export * from "./types/wallet-types/ConfidentialViewVaultBalanceRequest";
102
+ export * from "./types/wallet-types/ConfidentialOutputsListRequest";
103
+ export * from "./types/wallet-types/ConfidentialOutputsListResponse";
104
+ export * from "./types/wallet-types/ConfidentialOutputInfo";
102
105
  export * from "./types/wallet-types/GetValidatorFeesResponse";
103
106
  export * from "./types/wallet-types/TransferNftRequest";
104
107
  export * from "./types/wallet-types/AuthCredentials";
@@ -178,3 +181,5 @@ export * from "./types/wallet-types/SubstatesListRequest";
178
181
  export * from "./types/wallet-types/ComponentAddressOrName";
179
182
  export * from "./types/wallet-types/TemplatesListAuthoredResponse";
180
183
  export * from "./types/wallet-types/StealthUtxosDecryptValueResponse";
184
+ export * from "./types/wallet-types/StealthUtxosGetValueLookupInfoRequest";
185
+ export * from "./types/wallet-types/StealthUtxosGetValueLookupInfoResponse";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tari-project/ootle-ts-bindings",
3
- "version": "1.43.0",
3
+ "version": "1.44.6",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"