@tari-project/ootle-ts-bindings 1.34.0 → 1.34.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.
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/types/Blob.d.ts +6 -4
- package/dist/types/BlobHashes.d.ts +5 -0
- package/dist/types/Blobs.d.ts +2 -2
- package/dist/types/BlockHeader.d.ts +2 -2
- package/dist/types/ForeignProposalAtom.d.ts +2 -1
- package/dist/types/ForeignProposalAtom.js +0 -1
- package/dist/types/InstructionArg.d.ts +2 -3
- package/dist/types/LeaderFee.d.ts +2 -2
- package/dist/types/PrunedTransaction.d.ts +3 -0
- package/dist/types/PrunedTransactionV1.d.ts +5 -3
- package/dist/types/PrunedUnsignedTransactionV1.d.ts +5 -4
- package/dist/types/TransactionAtom.d.ts +1 -1
- package/dist/types/TransactionPoolRecord.d.ts +1 -1
- package/dist/types/UnsignedTransactionV1.d.ts +4 -2
- package/dist/types/UnspentOutput.d.ts +1 -1
- package/dist/types/WalletTransaction.d.ts +3 -2
- package/dist/types/tari-indexer-client/GetNonFungiblesRequest.d.ts +2 -2
- package/dist/types/tari-indexer-client/IndexerGetEpochManagerStatsResponse.d.ts +1 -1
- package/dist/types/tari-indexer-client/TransactionEntry.d.ts +2 -1
- package/dist/types/validator-node-client/GetBlocksCountResponse.d.ts +1 -1
- package/dist/types/validator-node-client/GetEpochManagerStatsResponse.d.ts +1 -1
- package/dist/types/validator-node-client/VNCommitteeShardInfo.d.ts +2 -1
- package/dist/types/validator-node-client/VNLogEntry.d.ts +1 -1
- package/dist/types/wallet-types/AccountsCreateFreeTestCoinsRequest.d.ts +1 -1
- package/dist/types/wallet-types/AccountsCreateFreeTestCoinsResponse.d.ts +1 -1
- package/dist/types/wallet-types/AccountsListResponse.d.ts +1 -1
- package/dist/types/wallet-types/AccountsTransferRequest.d.ts +1 -1
- package/dist/types/wallet-types/CallInstructionRequest.d.ts +1 -2
- package/dist/types/wallet-types/ClaimBurnRequest.d.ts +1 -1
- package/dist/types/wallet-types/ClaimValidatorFeesRequest.d.ts +1 -1
- package/dist/types/wallet-types/ClaimValidatorFeesResponse.d.ts +1 -1
- package/dist/types/wallet-types/ConfidentialTransferRequest.d.ts +1 -1
- package/dist/types/wallet-types/ConfidentialViewVaultBalanceRequest.d.ts +1 -1
- package/dist/types/wallet-types/FeePoolDetails.d.ts +1 -1
- package/dist/types/wallet-types/KeysCreateResponse.d.ts +1 -1
- package/dist/types/wallet-types/KeysSetActiveRequest.d.ts +1 -1
- package/dist/types/wallet-types/MintFaucetNftRequest.d.ts +1 -1
- package/dist/types/wallet-types/PublishTemplateRequest.d.ts +1 -1
- package/dist/types/wallet-types/StealthTransferRequest.d.ts +1 -1
- package/dist/types/wallet-types/TemplatesListAuthoredResponse.d.ts +1 -1
- package/dist/types/wallet-types/TransactionGetResponse.d.ts +2 -2
- package/dist/types/wallet-types/TransactionSubmitDryRunResponse.d.ts +1 -1
- package/dist/types/wallet-types/TransactionSubmitManifestRequest.d.ts +3 -3
- package/dist/types/wallet-types/TransactionWaitResultResponse.d.ts +1 -1
- package/dist/types/wallet-types/TransferNftRequest.d.ts +1 -1
- package/dist/types/wallet-types/TransferNftResponse.d.ts +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -10,8 +10,8 @@ export * from "./types/ArgDef";
|
|
|
10
10
|
export * from "./types/Assertion";
|
|
11
11
|
export * from "./types/AuthHook";
|
|
12
12
|
export * from "./types/BlobHashes";
|
|
13
|
-
export * from "./types/Blob";
|
|
14
13
|
export * from "./types/Blobs";
|
|
14
|
+
export * from "./types/Blob";
|
|
15
15
|
export * from "./types/BlockHeader";
|
|
16
16
|
export * from "./types/BlockId";
|
|
17
17
|
export * from "./types/Block";
|
package/dist/index.js
CHANGED
|
@@ -12,8 +12,8 @@ export * from "./types/ArgDef";
|
|
|
12
12
|
export * from "./types/Assertion";
|
|
13
13
|
export * from "./types/AuthHook";
|
|
14
14
|
export * from "./types/BlobHashes";
|
|
15
|
-
export * from "./types/Blob";
|
|
16
15
|
export * from "./types/Blobs";
|
|
16
|
+
export * from "./types/Blob";
|
|
17
17
|
export * from "./types/BlockHeader";
|
|
18
18
|
export * from "./types/BlockId";
|
|
19
19
|
export * from "./types/Block";
|
package/dist/types/Blob.d.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* An opaque, content-addressed payload referenced from a transaction's instructions by index.
|
|
3
3
|
*
|
|
4
|
-
* Blobs are the prunable side-channel of a transaction:
|
|
5
|
-
*
|
|
6
|
-
*
|
|
4
|
+
* Blobs are the prunable side-channel of a transaction: the bytes themselves are not bound
|
|
5
|
+
* directly into the signing domain — only their per-blob hashes are. Once a transaction has
|
|
6
|
+
* been finalized and its retention window has elapsed, blob payloads can be discarded without
|
|
7
|
+
* affecting the transaction id or signature verifiability.
|
|
7
8
|
*
|
|
8
|
-
* JSON encoding is base64.
|
|
9
|
+
* JSON encoding is base64 (matches `PublishTemplate` binary today). Borsh and CBOR use the
|
|
10
|
+
* `Bytes` byte-array form.
|
|
9
11
|
*/
|
|
10
12
|
export type Blob = string;
|
|
@@ -2,5 +2,10 @@ import type { Hash32 } from "./Hash32";
|
|
|
2
2
|
/**
|
|
3
3
|
* A typed collection of per-blob commitments — the prunable surrogate of `Blobs` in the
|
|
4
4
|
* signing domain.
|
|
5
|
+
*
|
|
6
|
+
* The only public way to obtain a non-default `BlobHashes` is via `Blobs::hashes()`. There is
|
|
7
|
+
* no `from_raw` constructor: anywhere a `BlobHashes` appears, it either originated from
|
|
8
|
+
* hashing real blobs or arrived via deserialization of bytes previously written by this
|
|
9
|
+
* crate's storage layer (and is bound by a signature, so tampering is detectable).
|
|
5
10
|
*/
|
|
6
11
|
export type BlobHashes = Array<Hash32>;
|
package/dist/types/Blobs.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Blob } from "./Blob";
|
|
2
2
|
/**
|
|
3
|
-
* Ordered collection of
|
|
4
|
-
* Instructions and arguments reference blobs by `BlobIndex`
|
|
3
|
+
* Ordered collection of `Blob`s carried by a transaction. Index 0 corresponds to the first
|
|
4
|
+
* blob, etc. Instructions and arguments reference blobs by `BlobIndex` into this list.
|
|
5
5
|
*/
|
|
6
6
|
export type Blobs = Array<Blob>;
|
|
@@ -41,7 +41,7 @@ export type BlockHeader = {
|
|
|
41
41
|
/**
|
|
42
42
|
* The total leader fee for this block. This should match the sum of the leader fees in the block's body.
|
|
43
43
|
*/
|
|
44
|
-
total_leader_fee:
|
|
44
|
+
total_leader_fee: bigint;
|
|
45
45
|
/**
|
|
46
46
|
* A Merkle root hash committing to all state after this block has been applied.
|
|
47
47
|
*/
|
|
@@ -58,7 +58,7 @@ export type BlockHeader = {
|
|
|
58
58
|
* The Unix Epoch timestamp indicating the creation time of the block. Currently, this can be chosen arbitrarily
|
|
59
59
|
* and is only informational/used for metrics.
|
|
60
60
|
*/
|
|
61
|
-
timestamp:
|
|
61
|
+
timestamp: bigint;
|
|
62
62
|
/**
|
|
63
63
|
* The epoch hash is a hash given by the epoch oracle. E.g. the base layer epoch oracle gives the first block hash
|
|
64
64
|
* of the epoch.
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import type { WorkspaceOffsetId } from "./WorkspaceOffsetId";
|
|
2
2
|
/**
|
|
3
|
-
* Represents an argument that can be passed to a transaction instruction. Either a literal
|
|
4
|
-
*
|
|
5
|
-
* blob by index. Use `Blob` for large/opaque data; prefer `Literal` for small values.
|
|
3
|
+
* Represents an argument that can be passed to a transaction instruction. Either a literal value or a reference to a
|
|
4
|
+
* item on the runtime's workspace, or a reference to a transaction blob by index.
|
|
6
5
|
*/
|
|
7
6
|
export type InstructionArg = {
|
|
8
7
|
Workspace: WorkspaceOffsetId;
|
|
@@ -3,6 +3,9 @@ import type { PrunedTransactionV1 } from "./PrunedTransactionV1";
|
|
|
3
3
|
* Pruned, archive-only counterpart of `Transaction`. Carries blob commitments instead of
|
|
4
4
|
* blob payloads, so API responses can omit the raw bytes while preserving the `TransactionId`,
|
|
5
5
|
* signature verifiability, and the structural shape the UI needs to display.
|
|
6
|
+
*
|
|
7
|
+
* Constructed only via `From<Transaction>` (which derives commitments from the full blobs and
|
|
8
|
+
* drops the payloads) or via deserialization of bytes previously written by the storage layer.
|
|
6
9
|
*/
|
|
7
10
|
export type PrunedTransaction = {
|
|
8
11
|
V1: PrunedTransactionV1;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import type { PrunedUnsealedTransactionV1 } from "./PrunedUnsealedTransactionV1";
|
|
2
2
|
import type { TransactionSealSignature } from "./TransactionSealSignature";
|
|
3
3
|
/**
|
|
4
|
-
* Pruned, archive-only counterpart of `TransactionV1`.
|
|
5
|
-
*
|
|
6
|
-
* full
|
|
4
|
+
* Pruned, archive-only counterpart of `TransactionV1`.
|
|
5
|
+
*
|
|
6
|
+
* Constructed only via `From<TransactionV1>` (which derives blob commitments from the full
|
|
7
|
+
* blobs and drops the payloads) or via deserialization of bytes previously written by the
|
|
8
|
+
* storage layer.
|
|
7
9
|
*/
|
|
8
10
|
export type PrunedTransactionV1 = {
|
|
9
11
|
body: PrunedUnsealedTransactionV1;
|
|
@@ -18,13 +18,14 @@ export type PrunedUnsignedTransactionV1 = {
|
|
|
18
18
|
is_seal_signer_authorized: boolean;
|
|
19
19
|
dry_run: boolean;
|
|
20
20
|
/**
|
|
21
|
-
* Per-blob commitments. Mirrors `UnsignedTransactionV1
|
|
21
|
+
* Per-blob commitments. Mirrors `UnsignedTransactionV1::blobs.hashes()` of the full form.
|
|
22
22
|
*/
|
|
23
23
|
blob_hashes: BlobHashes;
|
|
24
24
|
/**
|
|
25
|
-
* Byte size of each blob, parallel to `blob_hashes`. Not part of the signing/id
|
|
26
|
-
* populated at conversion time so
|
|
27
|
-
* May be empty when deserialised from older
|
|
25
|
+
* Byte size of each blob, parallel to `blob_hashes`. **Not part of the signing/id domain**
|
|
26
|
+
* — populated at conversion time from `Blobs` so that API consumers and UIs can show
|
|
27
|
+
* blob sizes without downloading payloads. May be empty when deserialised from older
|
|
28
|
+
* archives that didn't record sizes.
|
|
28
29
|
*/
|
|
29
30
|
blob_sizes: Array<number>;
|
|
30
31
|
};
|
|
@@ -9,7 +9,7 @@ export type TransactionPoolRecord = {
|
|
|
9
9
|
transaction_id: string;
|
|
10
10
|
evidence: Evidence;
|
|
11
11
|
is_global: boolean;
|
|
12
|
-
transaction_fee:
|
|
12
|
+
transaction_fee: bigint;
|
|
13
13
|
leader_fee: LeaderFee | null;
|
|
14
14
|
stage: TransactionPoolStage;
|
|
15
15
|
pending_stage: TransactionPoolStage | null;
|
|
@@ -15,8 +15,10 @@ export type UnsignedTransactionV1 = {
|
|
|
15
15
|
is_seal_signer_authorized: boolean;
|
|
16
16
|
dry_run: boolean;
|
|
17
17
|
/**
|
|
18
|
-
* Prunable side-channel of opaque payloads referenced by instructions via BlobIndex
|
|
19
|
-
* Only the per-blob commitments participate in the signing domain
|
|
18
|
+
* Prunable side-channel of opaque payloads referenced by instructions via `BlobIndex`.
|
|
19
|
+
* Only the per-blob commitments (`blobs.hashes()`) participate in the signing domain —
|
|
20
|
+
* raw blob bytes are excluded so that storage layers can drop them without affecting
|
|
21
|
+
* signature verifiability or transaction id.
|
|
20
22
|
*/
|
|
21
23
|
blobs: Blobs;
|
|
22
24
|
};
|
|
@@ -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:
|
|
26
|
+
minimum_value_promise: bigint;
|
|
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
|
*/
|
|
@@ -6,8 +6,9 @@ import type { NewAccountData } from "./wallet-types/NewAccountData";
|
|
|
6
6
|
export type WalletTransaction = {
|
|
7
7
|
id: string;
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
10
|
-
*
|
|
9
|
+
* The transaction in its pruned (blob-bytes-stripped) form. Blob commitments are retained
|
|
10
|
+
* so the `TransactionId` and signatures remain verifiable. Wallet daemon storage keeps the
|
|
11
|
+
* full form on disk for re-submission, but the public API returns this slimmer view.
|
|
11
12
|
*/
|
|
12
13
|
transaction: PrunedTransaction;
|
|
13
14
|
status: TransactionStatus;
|
|
@@ -3,7 +3,8 @@ import type { TransactionId } from "../TransactionId";
|
|
|
3
3
|
export type TransactionEntry = {
|
|
4
4
|
transaction_id: TransactionId;
|
|
5
5
|
/**
|
|
6
|
-
* Pruned transaction — blob commitments retained, raw blob bytes omitted
|
|
6
|
+
* Pruned transaction — blob commitments retained, raw blob bytes omitted to keep the
|
|
7
|
+
* response size bounded. The transaction id and signatures remain verifiable.
|
|
7
8
|
*/
|
|
8
9
|
transaction: PrunedTransaction;
|
|
9
10
|
created_at: string;
|
|
@@ -2,7 +2,7 @@ import type { CommitteeInfo } from "../CommitteeInfo";
|
|
|
2
2
|
import type { Epoch } from "../Epoch";
|
|
3
3
|
export type GetEpochManagerStatsResponse = {
|
|
4
4
|
current_epoch: Epoch;
|
|
5
|
-
current_block_height:
|
|
5
|
+
current_block_height: bigint;
|
|
6
6
|
current_block_hash: string;
|
|
7
7
|
is_valid: boolean;
|
|
8
8
|
is_initial_scanning_complete: boolean;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import type { Shard } from "../Shard";
|
|
1
2
|
import type { SubstateAddress } from "../SubstateAddress";
|
|
2
3
|
import type { ValidatorNode } from "./ValidatorNode";
|
|
3
4
|
export type VNCommitteeShardInfo = {
|
|
4
|
-
shard:
|
|
5
|
+
shard: Shard;
|
|
5
6
|
substate_address_range: {
|
|
6
7
|
start: SubstateAddress;
|
|
7
8
|
end: SubstateAddress;
|
|
@@ -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:
|
|
10
|
+
max_fee: bigint;
|
|
11
11
|
proof_from_badge_resource: ResourceAddress | null;
|
|
12
12
|
dry_run: boolean;
|
|
13
13
|
};
|
|
@@ -4,8 +4,7 @@ import type { ComponentAddressOrName } from "./ComponentAddressOrName";
|
|
|
4
4
|
export type CallInstructionRequest = {
|
|
5
5
|
instructions: Array<Instruction>;
|
|
6
6
|
fee_account: ComponentAddressOrName;
|
|
7
|
-
|
|
8
|
-
max_fee: number;
|
|
7
|
+
max_fee: bigint;
|
|
9
8
|
inputs: Array<SubstateRequirement>;
|
|
10
9
|
override_inputs: boolean | null;
|
|
11
10
|
new_outputs: number | null;
|
|
@@ -3,7 +3,7 @@ import type { ComponentAddressOrName } from "./ComponentAddressOrName";
|
|
|
3
3
|
export type ClaimValidatorFeesRequest = {
|
|
4
4
|
account: ComponentAddressOrName | null;
|
|
5
5
|
claim_key_index: number | null;
|
|
6
|
-
max_fee:
|
|
6
|
+
max_fee: bigint;
|
|
7
7
|
shards: Array<Shard>;
|
|
8
8
|
dry_run: boolean;
|
|
9
9
|
};
|
|
@@ -10,7 +10,7 @@ export type ConfidentialTransferRequest = {
|
|
|
10
10
|
input_selection: UtxoInputSelection;
|
|
11
11
|
resource_address: ResourceAddress;
|
|
12
12
|
destination_address: OotleAddress;
|
|
13
|
-
max_fee:
|
|
13
|
+
max_fee: bigint;
|
|
14
14
|
output_to_revealed: boolean;
|
|
15
15
|
proof_from_badge_resource: ResourceAddress | null;
|
|
16
16
|
memo?: Memo | null;
|
|
@@ -3,7 +3,7 @@ import type { PublishTemplateMetadata } from "./PublishTemplateMetadata";
|
|
|
3
3
|
export type PublishTemplateRequest = {
|
|
4
4
|
binary: string;
|
|
5
5
|
fee_account: ComponentAddressOrName | null;
|
|
6
|
-
max_fee:
|
|
6
|
+
max_fee: bigint;
|
|
7
7
|
/**
|
|
8
8
|
* Attempt to infer inputs and their dependencies from instructions. If false, the provided transaction must
|
|
9
9
|
* contain the required inputs.
|
|
@@ -3,8 +3,8 @@ import type { PrunedTransaction } from "../PrunedTransaction";
|
|
|
3
3
|
import type { TransactionStatus } from "../TransactionStatus";
|
|
4
4
|
export type TransactionGetResponse = {
|
|
5
5
|
/**
|
|
6
|
-
* Pruned transaction — blob commitments are present but raw blob bytes are omitted to
|
|
7
|
-
* API responses small. Use a separate endpoint to fetch blob payloads if required.
|
|
6
|
+
* Pruned transaction — blob commitments are present but raw blob bytes are omitted to
|
|
7
|
+
* keep API responses small. Use a separate endpoint to fetch blob payloads if required.
|
|
8
8
|
*/
|
|
9
9
|
transaction: PrunedTransaction;
|
|
10
10
|
result: FinalizeResult | null;
|
|
@@ -9,6 +9,6 @@ export type TransactionSubmitDryRunResponse = {
|
|
|
9
9
|
* `floor(total_bytes / 4)` by 1 at a rounding boundary). Non-refundable overcharge is
|
|
10
10
|
* subtracted since it won't recur with a tighter max_fee.
|
|
11
11
|
*/
|
|
12
|
-
required_fees:
|
|
12
|
+
required_fees: bigint;
|
|
13
13
|
result: ExecuteResult;
|
|
14
14
|
};
|
|
@@ -13,11 +13,11 @@ export type TransactionSubmitManifestRequest = {
|
|
|
13
13
|
* Additional signing keys for accounts involved in the transaction (e.g. for multi-account manifests).
|
|
14
14
|
*/
|
|
15
15
|
signing_key_ids: Array<KeyId>;
|
|
16
|
-
max_fee:
|
|
16
|
+
max_fee: bigint;
|
|
17
17
|
dry_run: boolean;
|
|
18
18
|
/**
|
|
19
|
-
* Blob payloads referenced from the manifest via `blob!(name)`. Keys are the names used
|
|
20
|
-
* the manifest text; values are base64-encoded byte payloads.
|
|
19
|
+
* Blob payloads referenced from the manifest via `blob!(name)`. Keys are the names used
|
|
20
|
+
* in the manifest text; values are base64-encoded byte payloads in JSON.
|
|
21
21
|
*/
|
|
22
22
|
blobs: {
|
|
23
23
|
[key in string]?: Blob;
|
|
@@ -2,7 +2,7 @@ import type { FinalizeResult } from "../FinalizeResult";
|
|
|
2
2
|
import type { TransactionId } from "../TransactionId";
|
|
3
3
|
export type TransferNftResponse = {
|
|
4
4
|
transaction_id: TransactionId;
|
|
5
|
-
fee:
|
|
6
|
-
fee_refunded:
|
|
5
|
+
fee: bigint;
|
|
6
|
+
fee_refunded: bigint;
|
|
7
7
|
result: FinalizeResult;
|
|
8
8
|
};
|