@tari-project/ootle-ts-bindings 1.44.2 → 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.
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -0
- package/dist/types/ConfidentialOutput.d.ts +12 -0
- package/dist/types/ConfidentialOutput.js +1 -0
- package/dist/types/ConfidentialOutputAddress.d.ts +9 -0
- package/dist/types/ConfidentialOutputAddress.js +1 -0
- package/dist/types/ConfidentialOutputAddressContents.d.ts +6 -0
- package/dist/types/ConfidentialOutputAddressContents.js +1 -0
- package/dist/types/SubstateType.d.ts +1 -1
- package/dist/types/SubstateValue.d.ts +3 -0
- package/dist/types/wallet-types/ConfidentialOutputInfo.d.ts +21 -0
- package/dist/types/wallet-types/ConfidentialOutputInfo.js +1 -0
- package/dist/types/wallet-types/ConfidentialOutputsListRequest.d.ts +8 -0
- package/dist/types/wallet-types/ConfidentialOutputsListRequest.js +1 -0
- package/dist/types/wallet-types/ConfidentialOutputsListResponse.d.ts +4 -0
- package/dist/types/wallet-types/ConfidentialOutputsListResponse.js +1 -0
- package/dist/types/wallet-types/ConfidentialTransferRequest.d.ts +1 -1
- package/dist/types/wallet-types/ProofsGenerateRequest.d.ts +3 -3
- package/dist/wallet-types.d.ts +3 -0
- package/dist/wallet-types.js +3 -0
- 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";
|
|
@@ -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 @@
|
|
|
1
|
+
export {};
|
|
@@ -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
|
};
|
|
@@ -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 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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
|
-
|
|
12
|
-
|
|
11
|
+
destination_address: OotleAddress;
|
|
12
|
+
output_memo?: Memo | null;
|
|
13
13
|
};
|
package/dist/wallet-types.d.ts
CHANGED
|
@@ -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";
|
package/dist/wallet-types.js
CHANGED
|
@@ -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";
|