@tari-project/ootle-ts-bindings 1.34.1 → 1.42.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 (109) hide show
  1. package/dist/helpers/cbor.d.ts +38 -0
  2. package/dist/helpers/cbor.js +136 -0
  3. package/dist/helpers/helpers.d.ts +2 -2
  4. package/dist/helpers/helpers.js +48 -20
  5. package/dist/index.d.ts +45 -28
  6. package/dist/index.js +45 -28
  7. package/dist/tari-indexer-client.d.ts +53 -48
  8. package/dist/tari-indexer-client.js +53 -48
  9. package/dist/types/AtomicCondition.d.ts +17 -0
  10. package/dist/types/BuiltinPredicate.d.ts +24 -0
  11. package/dist/types/Bytes.d.ts +3 -5
  12. package/dist/types/Claims.d.ts +2 -2
  13. package/dist/types/Command.d.ts +4 -1
  14. package/dist/types/Covenant.d.ts +16 -0
  15. package/dist/types/Covenant.js +1 -0
  16. package/dist/types/CovenantBalanceClaim.d.ts +26 -0
  17. package/dist/types/CovenantBalanceClaim.js +1 -0
  18. package/dist/types/Crud.d.ts +1 -0
  19. package/dist/types/CurrentInputView.d.ts +14 -0
  20. package/dist/types/CurrentInputView.js +1 -0
  21. package/dist/types/EndEpochAtom.d.ts +17 -0
  22. package/dist/types/EndEpochAtom.js +2 -0
  23. package/dist/types/ExecuteResult.d.ts +7 -0
  24. package/dist/types/FeeSource.d.ts +1 -1
  25. package/dist/types/FunctionDoc.d.ts +7 -0
  26. package/dist/types/FunctionDoc.js +2 -0
  27. package/dist/types/HashAlg.d.ts +5 -0
  28. package/dist/types/HashAlg.js +2 -0
  29. package/dist/types/Instruction.d.ts +5 -0
  30. package/dist/types/Memo.d.ts +2 -0
  31. package/dist/types/MerkleProof.d.ts +11 -0
  32. package/dist/types/MerkleProof.js +1 -0
  33. package/dist/types/Permission.d.ts +43 -0
  34. package/dist/types/Permission.js +1 -0
  35. package/dist/types/Permissions.d.ts +2 -0
  36. package/dist/types/Permissions.js +1 -0
  37. package/dist/types/ReadOnly.d.ts +6 -0
  38. package/dist/types/ReadOnly.js +2 -0
  39. package/dist/types/ResourceAccessRules.d.ts +15 -12
  40. package/dist/types/SpendAuthorization.d.ts +24 -0
  41. package/dist/types/SpendAuthorization.js +1 -0
  42. package/dist/types/SpendCondition.d.ts +7 -7
  43. package/dist/types/SpendWitness.d.ts +19 -0
  44. package/dist/types/SpendWitness.js +1 -0
  45. package/dist/types/StealthInput.d.ts +5 -0
  46. package/dist/types/StealthInputView.d.ts +9 -0
  47. package/dist/types/StealthInputView.js +1 -0
  48. package/dist/types/StealthOutputView.d.ts +16 -0
  49. package/dist/types/StealthOutputView.js +1 -0
  50. package/dist/types/StealthTransferStatement.d.ts +6 -0
  51. package/dist/types/StealthUnspentOutput.d.ts +5 -2
  52. package/dist/types/TemplateFunction.d.ts +23 -0
  53. package/dist/types/TemplateFunction.js +1 -0
  54. package/dist/types/TemplateMetadata.d.ts +5 -0
  55. package/dist/types/TemplateMetadata.js +0 -1
  56. package/dist/types/TransactionPoolRecord.d.ts +6 -0
  57. package/dist/types/UpdateRule.d.ts +4 -0
  58. package/dist/types/UpdateRule.js +1 -0
  59. package/dist/types/UtxoOutput.d.ts +2 -2
  60. package/dist/types/tari-indexer-client/IndexerConnection.d.ts +0 -1
  61. package/dist/types/tari-indexer-client/IndexerGetSubstateResponse.d.ts +6 -0
  62. package/dist/types/tari-indexer-client/IndexerGetTransactionResponse.d.ts +7 -0
  63. package/dist/types/tari-indexer-client/IndexerGetTransactionResponse.js +1 -0
  64. package/dist/types/tari-indexer-client/IndexerTransactionFinalizedResult.d.ts +5 -0
  65. package/dist/types/tari-indexer-client/ListValidatorsRequest.d.ts +7 -0
  66. package/dist/types/tari-indexer-client/ListValidatorsRequest.js +1 -0
  67. package/dist/types/tari-indexer-client/ListValidatorsResponse.d.ts +14 -0
  68. package/dist/types/tari-indexer-client/ListValidatorsResponse.js +1 -0
  69. package/dist/types/tari-indexer-client/TransactionEntry.d.ts +11 -0
  70. package/dist/types/tari-indexer-client/TransactionResultSummary.d.ts +6 -0
  71. package/dist/types/tari-indexer-client/TransactionResultSummary.js +1 -0
  72. package/dist/types/tari-indexer-client/ValidatorInfo.d.ts +34 -0
  73. package/dist/types/tari-indexer-client/ValidatorInfo.js +1 -0
  74. package/dist/types/tari-indexer-client/ValidatorStatus.d.ts +4 -0
  75. package/dist/types/validator-node-client/GetBlockResponse.d.ts +5 -0
  76. package/dist/types/wallet-types/AuthCreateApiKeyRequest.d.ts +25 -0
  77. package/dist/types/wallet-types/AuthCreateApiKeyRequest.js +2 -0
  78. package/dist/types/wallet-types/AuthCreateApiKeyResponse.d.ts +19 -0
  79. package/dist/types/wallet-types/AuthCreateApiKeyResponse.js +1 -0
  80. package/dist/types/wallet-types/AuthCredentials.d.ts +7 -0
  81. package/dist/types/wallet-types/AuthListApiKeysRequest.d.ts +10 -0
  82. package/dist/types/wallet-types/AuthListApiKeysRequest.js +2 -0
  83. package/dist/types/wallet-types/AuthListApiKeysResponse.d.ts +4 -0
  84. package/dist/types/wallet-types/AuthListApiKeysResponse.js +1 -0
  85. package/dist/types/wallet-types/AuthLoginRequest.d.ts +2 -2
  86. package/dist/types/wallet-types/AuthRevokeApiKeyRequest.d.ts +10 -0
  87. package/dist/types/wallet-types/AuthRevokeApiKeyRequest.js +2 -0
  88. package/dist/types/wallet-types/AuthRevokeApiKeyResponse.d.ts +1 -0
  89. package/dist/types/wallet-types/AuthRevokeApiKeyResponse.js +2 -0
  90. package/dist/types/wallet-types/AuthSessionInfo.d.ts +2 -2
  91. package/dist/types/wallet-types/ClaimValidatorFeesRequest.d.ts +5 -0
  92. package/dist/types/wallet-types/IssuedApiKey.d.ts +32 -0
  93. package/dist/types/wallet-types/IssuedApiKey.js +1 -0
  94. package/dist/types/wallet-types/PayTo.d.ts +11 -0
  95. package/dist/types/wallet-types/StealthTransfer.d.ts +13 -0
  96. package/dist/types/wallet-types/TransactionGetAllRequest.d.ts +5 -3
  97. package/dist/types/wallet-types/UtxoInfo.d.ts +11 -2
  98. package/dist/types/wallet-types/WebauthnFinishRegisterRequest.d.ts +2 -2
  99. package/dist/validator-node-client.d.ts +42 -42
  100. package/dist/validator-node-client.js +42 -42
  101. package/dist/wallet-types.d.ts +149 -142
  102. package/dist/wallet-types.js +149 -142
  103. package/package.json +2 -2
  104. package/dist/types/AddressBookPermission.d.ts +0 -1
  105. package/dist/types/JrpcPermission.d.ts +0 -17
  106. package/dist/types/JrpcPermissions.d.ts +0 -2
  107. /package/dist/types/{JrpcPermission.js → AtomicCondition.js} +0 -0
  108. /package/dist/types/{JrpcPermissions.js → BuiltinPredicate.js} +0 -0
  109. /package/dist/types/{AddressBookPermission.js → Crud.js} +0 -0
@@ -0,0 +1,38 @@
1
+ export declare const CBOR_SENTINEL_KEY = "@cbor";
2
+ export declare const CBOR_SENTINEL_BYTES = "bytes";
3
+ export declare const CBOR_SENTINEL_INT = "int";
4
+ export declare const CBOR_SENTINEL_MAP = "map";
5
+ export declare const CBOR_SENTINEL_TAG = "tag";
6
+ /**
7
+ * Decode `BinaryTag(N, value)` into a domain-specific representation. Receives the tag number
8
+ * and the *already-decoded* tag payload. Return whatever you want callers to see — the decoder
9
+ * does not further transform the result. Throw or return `value` for tags you don't recognise.
10
+ */
11
+ export type CborTagHandler = (tag: number, value: any) => any;
12
+ export interface DecodeCborJsonOptions {
13
+ /** Plug-in tag handler. Defaults to a passthrough that returns `{ tag, value }`. */
14
+ onTag?: CborTagHandler;
15
+ }
16
+ /**
17
+ * Walk JSON produced by the sentinel encoding of `tari_bor::Value` and return native JS:
18
+ *
19
+ * - primitives, arrays, and text-keyed objects pass through (after recursive decoding);
20
+ * - `{ "@cbor": "bytes", hex }` → `number[]` of byte values;
21
+ * - `{ "@cbor": "int", value }` → `number` when safe, otherwise `BigInt`;
22
+ * - `{ "@cbor": "map", entries }` → plain object (keys coerced via `String(decoded)`);
23
+ * - `{ "@cbor": "tag", tag, value }` → whatever `opts.onTag` returns.
24
+ *
25
+ * Decoding is shallow-by-default for tags: `onTag` receives the *decoded* `value`, so it can
26
+ * inspect it without recursing again.
27
+ */
28
+ export declare function decodeCborJson(input: any, opts?: DecodeCborJsonOptions): any;
29
+ /**
30
+ * Tari-flavoured `convertCborValue`. Identical to `decodeCborJson(input, { onTag: tariCborTagHandler })`.
31
+ */
32
+ export declare function convertCborValue(input: any): any;
33
+ /**
34
+ * Recognise the Tari CBOR tag set and render known byte-payload tags as canonical address
35
+ * strings (e.g. tag 132 → `vault_<hex>`). Falls through to a `{ tag, value }` envelope for
36
+ * unknown tags so callers can still see them in the JSON output.
37
+ */
38
+ export declare function tariCborTagHandler(tag: number, value: any): any;
@@ -0,0 +1,136 @@
1
+ // Copyright 2026 The Tari Project
2
+ // SPDX-License-Identifier: BSD-3-Clause
3
+ // JSON-side decoder for `tari_bor::Value`.
4
+ //
5
+ // The minicbor-based encoding (see `crates/tari_bor/src/value_serde.rs`) emits values as natural
6
+ // JSON for primitives, text-keyed maps and arrays, and uses `@cbor` sentinel objects otherwise:
7
+ // - `{ "@cbor": "bytes", "hex": "..." }`
8
+ // - `{ "@cbor": "int", "value": "..." }` (integers outside i64/u64)
9
+ // - `{ "@cbor": "map", "entries": [[k, v], ...] }`
10
+ // - `{ "@cbor": "tag", "tag": N, "value": v }`
11
+ //
12
+ // The decoder in this file is generic over the meaning of CBOR tags — consumers plug in a
13
+ // `CborTagHandler` to translate domain-specific tags. The exported `convertCborValue` is the
14
+ // Tari-flavoured convenience wrapper that uses `tariCborTagHandler` to render known address
15
+ // tags as canonical `<type>_<hex>` strings.
16
+ import { TariTypeTag } from "./tariTypeTag";
17
+ export const CBOR_SENTINEL_KEY = "@cbor";
18
+ export const CBOR_SENTINEL_BYTES = "bytes";
19
+ export const CBOR_SENTINEL_INT = "int";
20
+ export const CBOR_SENTINEL_MAP = "map";
21
+ export const CBOR_SENTINEL_TAG = "tag";
22
+ /**
23
+ * Walk JSON produced by the sentinel encoding of `tari_bor::Value` and return native JS:
24
+ *
25
+ * - primitives, arrays, and text-keyed objects pass through (after recursive decoding);
26
+ * - `{ "@cbor": "bytes", hex }` → `number[]` of byte values;
27
+ * - `{ "@cbor": "int", value }` → `number` when safe, otherwise `BigInt`;
28
+ * - `{ "@cbor": "map", entries }` → plain object (keys coerced via `String(decoded)`);
29
+ * - `{ "@cbor": "tag", tag, value }` → whatever `opts.onTag` returns.
30
+ *
31
+ * Decoding is shallow-by-default for tags: `onTag` receives the *decoded* `value`, so it can
32
+ * inspect it without recursing again.
33
+ */
34
+ export function decodeCborJson(input, opts) {
35
+ const onTag = opts?.onTag ?? defaultTagHandler;
36
+ return walk(input, onTag);
37
+ }
38
+ /**
39
+ * Tari-flavoured `convertCborValue`. Identical to `decodeCborJson(input, { onTag: tariCborTagHandler })`.
40
+ */
41
+ export function convertCborValue(input) {
42
+ return decodeCborJson(input, { onTag: tariCborTagHandler });
43
+ }
44
+ /**
45
+ * Recognise the Tari CBOR tag set and render known byte-payload tags as canonical address
46
+ * strings (e.g. tag 132 → `vault_<hex>`). Falls through to a `{ tag, value }` envelope for
47
+ * unknown tags so callers can still see them in the JSON output.
48
+ */
49
+ export function tariCborTagHandler(tag, value) {
50
+ switch (tag) {
51
+ case TariTypeTag.VaultId:
52
+ return bytesValueToAddressString("vault", value);
53
+ case TariTypeTag.ComponentAddress:
54
+ return bytesValueToAddressString("component", value);
55
+ case TariTypeTag.ResourceAddress:
56
+ return bytesValueToAddressString("resource", value);
57
+ case TariTypeTag.NonFungibleAddress:
58
+ return bytesValueToAddressString("nft", value);
59
+ case TariTypeTag.ClaimedOutputTombstoneAddress:
60
+ return bytesValueToAddressString("tombstone", value);
61
+ case TariTypeTag.TemplateAddress:
62
+ return bytesValueToAddressString("template", value);
63
+ case TariTypeTag.Utxo:
64
+ return bytesValueToAddressString("utxo", value);
65
+ case TariTypeTag.TransactionReceipt:
66
+ return bytesValueToAddressString("txreceipt", value);
67
+ case TariTypeTag.Metadata:
68
+ return value;
69
+ default:
70
+ return { tag, value };
71
+ }
72
+ }
73
+ function defaultTagHandler(tag, value) {
74
+ return { tag, value };
75
+ }
76
+ function walk(value, onTag) {
77
+ if (value === null || value === undefined) {
78
+ return null;
79
+ }
80
+ if (typeof value !== "object") {
81
+ return value;
82
+ }
83
+ if (Array.isArray(value)) {
84
+ return value.map((v) => walk(v, onTag));
85
+ }
86
+ if (CBOR_SENTINEL_KEY in value) {
87
+ return walkSentinel(value, onTag);
88
+ }
89
+ const result = {};
90
+ for (const [k, v] of Object.entries(value)) {
91
+ result[k] = walk(v, onTag);
92
+ }
93
+ return result;
94
+ }
95
+ function walkSentinel(value, onTag) {
96
+ switch (value[CBOR_SENTINEL_KEY]) {
97
+ case CBOR_SENTINEL_BYTES:
98
+ return hexToBytes(value.hex);
99
+ case CBOR_SENTINEL_INT: {
100
+ const big = BigInt(value.value);
101
+ const num = Number(big);
102
+ return Number.isSafeInteger(num) && BigInt(num) === big ? num : big;
103
+ }
104
+ case CBOR_SENTINEL_MAP: {
105
+ const result = {};
106
+ for (const [k, v] of value.entries) {
107
+ result[String(walk(k, onTag))] = walk(v, onTag);
108
+ }
109
+ return result;
110
+ }
111
+ case CBOR_SENTINEL_TAG:
112
+ return onTag(value.tag, walk(value.value, onTag));
113
+ default:
114
+ return value;
115
+ }
116
+ }
117
+ function hexToBytes(hex) {
118
+ const out = [];
119
+ for (let i = 0; i + 1 < hex.length; i += 2) {
120
+ out.push(parseInt(hex.substring(i, i + 2), 16));
121
+ }
122
+ return out;
123
+ }
124
+ function bytesValueToAddressString(type, value) {
125
+ let hex;
126
+ if (Array.isArray(value)) {
127
+ hex = value.map((b) => ("0" + (b & 0xff).toString(16)).slice(-2)).join("");
128
+ }
129
+ else if (typeof value === "string") {
130
+ hex = value;
131
+ }
132
+ else {
133
+ return JSON.stringify(value);
134
+ }
135
+ return `${type}_${hex}`;
136
+ }
@@ -1,4 +1,4 @@
1
- import { JrpcPermission } from "../types/JrpcPermission";
1
+ import { Permission } from "../types/Permission";
2
2
  import { RejectReason } from "../types/RejectReason";
3
3
  import { SubstateDiff } from "../types/SubstateDiff";
4
4
  import { SubstateId } from "../types/SubstateId";
@@ -10,4 +10,4 @@ export declare function shortenString(string: string, start?: number, end?: numb
10
10
  export declare function rejectReasonToString(reason: RejectReason | null): string;
11
11
  export declare function getSubstateDiffFromTransactionResult(result: TransactionResult): SubstateDiff | null;
12
12
  export declare function getRejectReasonFromTransactionResult(result: TransactionResult): RejectReason | null;
13
- export declare function jrpcPermissionToString(jrpcPermission: JrpcPermission): string;
13
+ export declare function permissionToString(permission: Permission): string;
@@ -122,26 +122,54 @@ export function getRejectReasonFromTransactionResult(result) {
122
122
  }
123
123
  return null;
124
124
  }
125
- export function jrpcPermissionToString(jrpcPermission) {
126
- if (typeof jrpcPermission === "string") {
127
- return jrpcPermission;
128
- }
129
- if ("NftGetOwnershipProof" in jrpcPermission) {
130
- return `NftGetOwnershipProof(${jrpcPermission.NftGetOwnershipProof})`;
131
- }
132
- if ("AccountBalance" in jrpcPermission) {
133
- return `AccountBalance(${substateIdToString(jrpcPermission.AccountBalance)})`;
134
- }
135
- if ("AccountList" in jrpcPermission) {
136
- return `AccountList(${jrpcPermission.AccountList})`;
137
- }
138
- if ("TransactionSend" in jrpcPermission) {
139
- return `TransactionSend(${jrpcPermission.TransactionSend})`;
140
- }
141
- if ("GetNft" in jrpcPermission) {
142
- return `GetNft(${substateIdToString(jrpcPermission.GetNft[0])}, ${jrpcPermission.GetNft[1]})`;
143
- }
144
- return "Unknown";
125
+ // Render a Permission to its canonical grant string, e.g.
126
+ // `admin`, `webrtc`, `accounts:read`, `transfer:create:component_abc…`,
127
+ // `substates:read`. Round-trips with the Rust `Permission::FromStr`.
128
+ export function permissionToString(permission) {
129
+ if (typeof permission === "string") {
130
+ // Bare variants (`Admin`, `Webrtc`) serialise to lowercase strings.
131
+ return permission.toLowerCase();
132
+ }
133
+ // Read-only resources: { Substates: "Read" } / { BurnProofs: "Read" } /
134
+ // { SwapPools: "Read" } — render with the resource name in snake_case
135
+ // plus explicit `:read`.
136
+ if ("Substates" in permission)
137
+ return "substates:read";
138
+ if ("BurnProofs" in permission)
139
+ return "burn_proofs:read";
140
+ if ("SwapPools" in permission)
141
+ return "swap_pools:read";
142
+ // Unscoped CRUD resources: { Keys: "Read" } -> "keys:read".
143
+ if ("Keys" in permission)
144
+ return `keys:${permission.Keys.toLowerCase()}`;
145
+ if ("Templates" in permission)
146
+ return `templates:${permission.Templates.toLowerCase()}`;
147
+ if ("Transactions" in permission)
148
+ return `transactions:${permission.Transactions.toLowerCase()}`;
149
+ if ("Validators" in permission)
150
+ return `validators:${permission.Validators.toLowerCase()}`;
151
+ if ("Settings" in permission)
152
+ return `settings:${permission.Settings.toLowerCase()}`;
153
+ if ("AddressBook" in permission)
154
+ return `address_book:${permission.AddressBook.toLowerCase()}`;
155
+ // Scoped CRUD resources: { Accounts: ["Read", "component_abc..." | null] }.
156
+ if ("Accounts" in permission)
157
+ return scoped("accounts", permission.Accounts);
158
+ if ("Transfer" in permission)
159
+ return scoped("transfer", permission.Transfer);
160
+ if ("Nfts" in permission)
161
+ return scoped("nfts", permission.Nfts);
162
+ if ("Confidential" in permission)
163
+ return scoped("confidential", permission.Confidential);
164
+ if ("StealthUtxos" in permission)
165
+ return scoped("stealth_utxos", permission.StealthUtxos);
166
+ console.error("Unknown permission", permission);
167
+ return JSON.stringify(permission);
168
+ }
169
+ function scoped(resource, value) {
170
+ const [action, entity] = value;
171
+ const base = `${resource}:${action.toLowerCase()}`;
172
+ return entity ? `${base}:${entity}` : base;
145
173
  }
146
174
  function splitOnce(str, separator) {
147
175
  const index = str.indexOf(separator);
package/dist/index.d.ts CHANGED
@@ -3,51 +3,57 @@ export * from "./types/AbridgedTransactionKernel";
3
3
  export * from "./types/AccessRule";
4
4
  export * from "./types/Account";
5
5
  export * from "./types/AccountWithAddress";
6
- export * from "./types/AddressBookPermission";
7
6
  export * from "./types/AllocatableAddressType";
8
7
  export * from "./types/Amount";
9
8
  export * from "./types/ArgDef";
10
9
  export * from "./types/Assertion";
10
+ export * from "./types/AtomicCondition";
11
11
  export * from "./types/AuthHook";
12
+ export * from "./types/Blob";
12
13
  export * from "./types/BlobHashes";
13
14
  export * from "./types/Blobs";
14
- export * from "./types/Blob";
15
+ export * from "./types/Block";
15
16
  export * from "./types/BlockHeader";
16
17
  export * from "./types/BlockId";
17
- export * from "./types/Block";
18
18
  export * from "./types/BucketId";
19
+ export * from "./types/BuiltinPredicate";
19
20
  export * from "./types/Bytes";
20
21
  export * from "./types/CheckOrd";
21
22
  export * from "./types/ClaimBurnOutputData";
22
- export * from "./types/ClaimedOutputTombstoneAddress";
23
23
  export * from "./types/ClaimedOutputTombstone";
24
+ export * from "./types/ClaimedOutputTombstoneAddress";
24
25
  export * from "./types/Claims";
25
26
  export * from "./types/Command";
26
27
  export * from "./types/CommitmentSignatureBytes";
28
+ export * from "./types/Committee";
27
29
  export * from "./types/CommitteeInfo";
28
30
  export * from "./types/CommitteeMember";
29
- export * from "./types/Committee";
31
+ export * from "./types/Component";
30
32
  export * from "./types/ComponentAccessRules";
31
33
  export * from "./types/ComponentAddress";
32
34
  export * from "./types/ComponentBody";
33
35
  export * from "./types/ComponentHeader";
34
36
  export * from "./types/ComponentKey";
35
37
  export * from "./types/ComponentReference";
36
- export * from "./types/Component";
37
38
  export * from "./types/ConfidentialOutputStatement";
38
39
  export * from "./types/ConfidentialWithdrawProof";
40
+ export * from "./types/Covenant";
41
+ export * from "./types/CovenantBalanceClaim";
42
+ export * from "./types/Crud";
43
+ export * from "./types/CurrentInputView";
39
44
  export * from "./types/Decision";
40
45
  export * from "./types/DiffSummary";
41
46
  export * from "./types/ElgamalVerifiableBalanceBytes";
42
47
  export * from "./types/EncodedMerkleProof";
43
48
  export * from "./types/EncryptedData";
49
+ export * from "./types/EndEpochAtom";
44
50
  export * from "./types/EntityId";
45
51
  export * from "./types/Epoch";
46
52
  export * from "./types/Era";
47
53
  export * from "./types/Event";
48
54
  export * from "./types/EvictNodeAtom";
49
- export * from "./types/EvidenceInputLockData";
50
55
  export * from "./types/Evidence";
56
+ export * from "./types/EvidenceInputLockData";
51
57
  export * from "./types/ExecuteResult";
52
58
  export * from "./types/ExtraData";
53
59
  export * from "./types/FeeBreakdown";
@@ -58,33 +64,34 @@ export * from "./types/FinalizeOutcome";
58
64
  export * from "./types/FinalizeResult";
59
65
  export * from "./types/ForeignProposalAtom";
60
66
  export * from "./types/FunctionDef";
67
+ export * from "./types/FunctionDoc";
61
68
  export * from "./types/Hash32";
62
69
  export * from "./types/Hash64";
70
+ export * from "./types/HashAlg";
63
71
  export * from "./types/IndexedValue";
64
72
  export * from "./types/IndexedWellKnownTypes";
73
+ export * from "./types/Instruction";
65
74
  export * from "./types/InstructionArg";
66
75
  export * from "./types/InstructionResult";
67
- export * from "./types/Instruction";
68
- export * from "./types/JrpcPermissions";
69
- export * from "./types/JrpcPermission";
70
76
  export * from "./types/LeaderFee";
71
- export * from "./types/LockedEpoch";
72
77
  export * from "./types/LockFlag";
78
+ export * from "./types/LockedEpoch";
73
79
  export * from "./types/LogEntry";
74
80
  export * from "./types/LogLevel";
75
81
  export * from "./types/Memo";
82
+ export * from "./types/MerkleProof";
76
83
  export * from "./types/Metadata";
77
84
  export * from "./types/MigrateFunction";
78
85
  export * from "./types/MinotariBurnClaimProof";
79
86
  export * from "./types/Network";
80
87
  export * from "./types/NftCheck";
81
88
  export * from "./types/NodeHeight";
82
- export * from "./types/NonFungibleAddressContents";
89
+ export * from "./types/NonFungible";
83
90
  export * from "./types/NonFungibleAddress";
91
+ export * from "./types/NonFungibleAddressContents";
84
92
  export * from "./types/NonFungibleContainer";
85
93
  export * from "./types/NonFungibleId";
86
94
  export * from "./types/NonFungibleToken";
87
- export * from "./types/NonFungible";
88
95
  export * from "./types/NumPreshards";
89
96
  export * from "./types/OotleAddress";
90
97
  export * from "./types/Ordering";
@@ -94,6 +101,8 @@ export * from "./types/OwnerRule";
94
101
  export * from "./types/PayRef";
95
102
  export * from "./types/PedersenCommitmentBytes";
96
103
  export * from "./types/PeerAddress";
104
+ export * from "./types/Permission";
105
+ export * from "./types/Permissions";
97
106
  export * from "./types/PrecisionAmount";
98
107
  export * from "./types/ProofId";
99
108
  export * from "./types/ProposalCertificate";
@@ -101,36 +110,42 @@ export * from "./types/PrunedTransaction";
101
110
  export * from "./types/PrunedTransactionV1";
102
111
  export * from "./types/PrunedUnsealedTransactionV1";
103
112
  export * from "./types/PrunedUnsignedTransactionV1";
113
+ export * from "./types/PublishedTemplate";
104
114
  export * from "./types/PublishedTemplateAddress";
105
115
  export * from "./types/PublishedTemplateMetadata";
106
- export * from "./types/PublishedTemplate";
107
116
  export * from "./types/RangeProofBytes";
117
+ export * from "./types/ReadOnly";
108
118
  export * from "./types/RejectReason";
109
119
  export * from "./types/RequireRule";
120
+ export * from "./types/Resource";
110
121
  export * from "./types/ResourceAccessRules";
111
- export * from "./types/ResourceAddressRef";
112
122
  export * from "./types/ResourceAddress";
123
+ export * from "./types/ResourceAddressRef";
113
124
  export * from "./types/ResourceContainer";
114
- export * from "./types/Resource";
115
125
  export * from "./types/ResourceType";
116
126
  export * from "./types/RestrictedAccessRule";
117
127
  export * from "./types/RistrettoPublicKeyBytes";
118
128
  export * from "./types/RuleRequirement";
119
129
  export * from "./types/Scalar32Bytes";
120
130
  export * from "./types/SchnorrSignatureBytes";
131
+ export * from "./types/Shard";
132
+ export * from "./types/ShardGroup";
121
133
  export * from "./types/ShardGroupAccumulatedData";
122
134
  export * from "./types/ShardGroupEvidence";
123
- export * from "./types/ShardGroup";
124
135
  export * from "./types/ShardStateVersions";
125
- export * from "./types/Shard";
136
+ export * from "./types/SpendAuthorization";
126
137
  export * from "./types/SpendCondition";
138
+ export * from "./types/SpendWitness";
127
139
  export * from "./types/StateVersion";
128
- export * from "./types/StealthInputsStatement";
129
140
  export * from "./types/StealthInput";
141
+ export * from "./types/StealthInputView";
142
+ export * from "./types/StealthInputsStatement";
143
+ export * from "./types/StealthOutputView";
130
144
  export * from "./types/StealthOutputsStatement";
131
145
  export * from "./types/StealthTransferStatement";
132
146
  export * from "./types/StealthUnspentOutput";
133
147
  export * from "./types/StealthValueProof";
148
+ export * from "./types/Substate";
134
149
  export * from "./types/SubstateAddress";
135
150
  export * from "./types/SubstateCreated";
136
151
  export * from "./types/SubstateDestroyed";
@@ -140,26 +155,26 @@ export * from "./types/SubstateLockType";
140
155
  export * from "./types/SubstateOwnerRule";
141
156
  export * from "./types/SubstateRecord";
142
157
  export * from "./types/SubstateRequirement";
143
- export * from "./types/Substate";
144
158
  export * from "./types/SubstateType";
145
159
  export * from "./types/SubstateValue";
146
160
  export * from "./types/TemplateDef";
147
161
  export * from "./types/TemplateDefV1";
162
+ export * from "./types/TemplateFunction";
148
163
  export * from "./types/TemplateMetadata";
149
164
  export * from "./types/TimeoutCertificate";
165
+ export * from "./types/Transaction";
150
166
  export * from "./types/TransactionAtom";
151
167
  export * from "./types/TransactionEnvelope";
152
168
  export * from "./types/TransactionExecution";
153
169
  export * from "./types/TransactionId";
154
170
  export * from "./types/TransactionPoolRecord";
155
171
  export * from "./types/TransactionPoolStage";
156
- export * from "./types/TransactionReceiptAddress";
157
172
  export * from "./types/TransactionReceipt";
173
+ export * from "./types/TransactionReceiptAddress";
158
174
  export * from "./types/TransactionResult";
159
175
  export * from "./types/TransactionSealSignature";
160
176
  export * from "./types/TransactionSignature";
161
177
  export * from "./types/TransactionStatus";
162
- export * from "./types/Transaction";
163
178
  export * from "./types/TransactionV1";
164
179
  export * from "./types/Type";
165
180
  export * from "./types/UnsealedTransaction";
@@ -168,8 +183,10 @@ export * from "./types/UnsignedTransaction";
168
183
  export * from "./types/UnsignedTransactionV1";
169
184
  export * from "./types/UnspentOutput";
170
185
  export * from "./types/UpSubstate";
171
- export * from "./types/UtxoAddressContents";
186
+ export * from "./types/UpdateRule";
187
+ export * from "./types/Utxo";
172
188
  export * from "./types/UtxoAddress";
189
+ export * from "./types/UtxoAddressContents";
173
190
  export * from "./types/UtxoBurnt";
174
191
  export * from "./types/UtxoId";
175
192
  export * from "./types/UtxoInputSelection";
@@ -177,19 +194,18 @@ export * from "./types/UtxoOutput";
177
194
  export * from "./types/UtxoSpent";
178
195
  export * from "./types/UtxoStateUpdateSet";
179
196
  export * from "./types/UtxoTag";
180
- export * from "./types/Utxo";
181
197
  export * from "./types/UtxoUnspent";
182
198
  export * from "./types/UtxoUpdateSet";
183
- export * from "./types/ValidatorFeePoolAddress";
184
199
  export * from "./types/ValidatorFeePool";
200
+ export * from "./types/ValidatorFeePoolAddress";
185
201
  export * from "./types/ValidatorFeeWithdrawal";
186
202
  export * from "./types/ValidatorSignatureBytes";
187
203
  export * from "./types/ValueKnowledgeProof";
204
+ export * from "./types/Vault";
188
205
  export * from "./types/VaultFreezeFlags";
189
206
  export * from "./types/VaultId";
190
- export * from "./types/Vault";
191
- export * from "./types/VersionedSubstateIdLockIntent";
192
207
  export * from "./types/VersionedSubstateId";
208
+ export * from "./types/VersionedSubstateIdLockIntent";
193
209
  export * from "./types/ViewableBalanceProof";
194
210
  export * from "./types/VotePower";
195
211
  export * from "./types/WalletTransaction";
@@ -200,9 +216,10 @@ export * from "./tari-indexer-client";
200
216
  export * from "./validator-node-client";
201
217
  export * from "./wallet-types";
202
218
  export * from "./helpers/BigAmount";
219
+ export * from "./helpers/NetworkByte";
220
+ export * from "./helpers/cbor";
203
221
  export * from "./helpers/consts";
204
222
  export * from "./helpers/enum";
205
223
  export * from "./helpers/helpers";
206
- export * from "./helpers/NetworkByte";
207
224
  export * from "./helpers/ootleAddress";
208
225
  export * from "./helpers/tariTypeTag";