@tari-project/ootle-ts-bindings 1.32.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 +32 -22
- package/dist/index.js +32 -22
- package/dist/tari-indexer-client.d.ts +49 -39
- package/dist/tari-indexer-client.js +49 -39
- package/dist/types/AbortReason.d.ts +1 -1
- package/dist/types/AddressBookPermission.d.ts +1 -0
- package/dist/types/AddressBookPermission.js +2 -0
- package/dist/types/Blob.d.ts +12 -0
- package/dist/types/Blob.js +2 -0
- package/dist/types/BlobHashes.d.ts +11 -0
- package/dist/types/BlobHashes.js +1 -0
- package/dist/types/Blobs.d.ts +6 -0
- package/dist/types/Blobs.js +1 -0
- package/dist/types/BlockHeader.d.ts +2 -2
- package/dist/types/Component.d.ts +6 -0
- package/dist/types/Component.js +1 -0
- package/dist/types/ComponentHeader.d.ts +0 -3
- package/dist/types/ExecuteResult.d.ts +2 -1
- package/dist/types/FeeSource.d.ts +1 -1
- package/dist/types/ForeignProposalAtom.d.ts +2 -1
- package/dist/types/ForeignProposalAtom.js +0 -1
- package/dist/types/Instruction.d.ts +5 -1
- package/dist/types/InstructionArg.d.ts +3 -1
- package/dist/types/JrpcPermission.d.ts +4 -1
- package/dist/types/LeaderFee.d.ts +2 -2
- package/dist/types/LockedEpoch.d.ts +6 -0
- package/dist/types/LockedEpoch.js +1 -0
- package/dist/types/PrunedTransaction.d.ts +12 -0
- package/dist/types/PrunedTransaction.js +1 -0
- package/dist/types/PrunedTransactionV1.d.ts +13 -0
- package/dist/types/PrunedTransactionV1.js +1 -0
- package/dist/types/PrunedUnsealedTransactionV1.d.ts +9 -0
- package/dist/types/PrunedUnsealedTransactionV1.js +1 -0
- package/dist/types/PrunedUnsignedTransactionV1.d.ts +31 -0
- package/dist/types/PrunedUnsignedTransactionV1.js +1 -0
- package/dist/types/ResourceAccessRules.d.ts +6 -0
- package/dist/types/SubstateValue.d.ts +2 -2
- package/dist/types/TemplateMetadata.d.ts +10 -0
- package/dist/types/TransactionAtom.d.ts +1 -1
- package/dist/types/TransactionPoolRecord.d.ts +7 -2
- package/dist/types/TransactionReceipt.d.ts +2 -1
- package/dist/types/UnsignedTransactionV1.d.ts +8 -0
- package/dist/types/UnspentOutput.d.ts +1 -1
- package/dist/types/WalletTransaction.d.ts +7 -2
- package/dist/types/tari-indexer-client/GetLatestEpochCheckpointResponse.d.ts +3 -0
- package/dist/types/tari-indexer-client/GetLatestEpochCheckpointResponse.js +2 -0
- package/dist/types/tari-indexer-client/GetNetworkSyncStateResponse.d.ts +9 -0
- 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/ListEpochCheckpointsRequest.d.ts +11 -0
- package/dist/types/tari-indexer-client/ListEpochCheckpointsRequest.js +1 -0
- package/dist/types/tari-indexer-client/ListEpochCheckpointsResponse.d.ts +3 -0
- package/dist/types/tari-indexer-client/ListEpochCheckpointsResponse.js +2 -0
- package/dist/types/tari-indexer-client/ListTemplateCatalogueRequest.d.ts +2 -1
- package/dist/types/tari-indexer-client/ListTemplateCatalogueRequest.js +0 -1
- package/dist/types/tari-indexer-client/ListWatchedSubstatesRequest.d.ts +6 -0
- package/dist/types/tari-indexer-client/ListWatchedSubstatesRequest.js +1 -0
- package/dist/types/tari-indexer-client/ListWatchedSubstatesResponse.d.ts +4 -0
- package/dist/types/tari-indexer-client/ListWatchedSubstatesResponse.js +1 -0
- package/dist/types/tari-indexer-client/ListWatchedTemplatesResponse.d.ts +4 -0
- package/dist/types/tari-indexer-client/ListWatchedTemplatesResponse.js +1 -0
- package/dist/types/tari-indexer-client/QueryTransactionEventsRequest.d.ts +7 -0
- package/dist/types/tari-indexer-client/StreamTransactionEventsRequest.d.ts +7 -0
- package/dist/types/tari-indexer-client/TransactionEntry.d.ts +6 -2
- package/dist/types/tari-indexer-client/ValidatorConsensusState.d.ts +1 -0
- package/dist/types/tari-indexer-client/ValidatorConsensusState.js +2 -0
- package/dist/types/tari-indexer-client/ValidatorStatus.d.ts +23 -0
- package/dist/types/tari-indexer-client/ValidatorStatus.js +1 -0
- package/dist/types/tari-indexer-client/WatchedSubstateItem.d.ts +6 -0
- package/dist/types/tari-indexer-client/WatchedSubstateItem.js +1 -0
- package/dist/types/tari-indexer-client/WatchedTemplateItem.d.ts +5 -0
- package/dist/types/tari-indexer-client/WatchedTemplateItem.js +1 -0
- 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/AddressBookAddRequest.d.ts +5 -0
- package/dist/types/wallet-types/AddressBookAddRequest.js +2 -0
- package/dist/types/wallet-types/AddressBookAddResponse.d.ts +4 -0
- package/dist/types/wallet-types/AddressBookAddResponse.js +1 -0
- package/dist/types/wallet-types/AddressBookDeleteRequest.d.ts +3 -0
- package/dist/types/wallet-types/AddressBookDeleteRequest.js +2 -0
- package/dist/types/wallet-types/AddressBookDeleteResponse.d.ts +1 -0
- package/dist/types/wallet-types/AddressBookDeleteResponse.js +2 -0
- package/dist/types/wallet-types/AddressBookEntry.d.ts +6 -0
- package/dist/types/wallet-types/AddressBookEntry.js +2 -0
- package/dist/types/wallet-types/AddressBookGetRequest.d.ts +3 -0
- package/dist/types/wallet-types/AddressBookGetRequest.js +2 -0
- package/dist/types/wallet-types/AddressBookGetResponse.d.ts +4 -0
- package/dist/types/wallet-types/AddressBookGetResponse.js +1 -0
- package/dist/types/wallet-types/AddressBookListRequest.d.ts +1 -0
- package/dist/types/wallet-types/AddressBookListRequest.js +2 -0
- package/dist/types/wallet-types/AddressBookListResponse.d.ts +4 -0
- package/dist/types/wallet-types/AddressBookListResponse.js +1 -0
- package/dist/types/wallet-types/AddressBookUpdateRequest.d.ts +6 -0
- package/dist/types/wallet-types/AddressBookUpdateRequest.js +2 -0
- package/dist/types/wallet-types/AddressBookUpdateResponse.d.ts +4 -0
- package/dist/types/wallet-types/AddressBookUpdateResponse.js +1 -0
- 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/ClaimBurnResponse.d.ts +5 -0
- 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/SettingsGetResponse.d.ts +1 -0
- package/dist/types/wallet-types/SettingsSetRequest.d.ts +2 -1
- package/dist/types/wallet-types/StealthTransferRequest.d.ts +1 -1
- package/dist/types/wallet-types/SwapPoolGetExchangeRateRequest.d.ts +9 -0
- package/dist/types/wallet-types/SwapPoolGetExchangeRateRequest.js +1 -0
- package/dist/types/wallet-types/SwapPoolGetExchangeRateResponse.d.ts +12 -0
- package/dist/types/wallet-types/SwapPoolGetExchangeRateResponse.js +1 -0
- package/dist/types/wallet-types/SwapPoolInfo.d.ts +8 -0
- package/dist/types/wallet-types/SwapPoolInfo.js +1 -0
- package/dist/types/wallet-types/SwapPoolsListRequest.d.ts +9 -0
- package/dist/types/wallet-types/SwapPoolsListRequest.js +2 -0
- package/dist/types/wallet-types/SwapPoolsListResponse.d.ts +4 -0
- package/dist/types/wallet-types/SwapPoolsListResponse.js +1 -0
- package/dist/types/wallet-types/TemplatesListAuthoredResponse.d.ts +1 -1
- package/dist/types/wallet-types/TransactionGetResponse.d.ts +10 -2
- package/dist/types/wallet-types/TransactionSubmitDryRunResponse.d.ts +8 -1
- package/dist/types/wallet-types/TransactionSubmitManifestRequest.d.ts +15 -1
- package/dist/types/wallet-types/TransactionSubmitManifestResponse.d.ts +5 -0
- 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/dist/validator-node-client.d.ts +42 -42
- package/dist/validator-node-client.js +42 -42
- package/dist/wallet-types.d.ts +144 -128
- package/dist/wallet-types.js +144 -128
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import type { ComponentAccessRules } from "./ComponentAccessRules";
|
|
2
|
-
import type { ComponentBody } from "./ComponentBody";
|
|
3
2
|
import type { EntityId } from "./EntityId";
|
|
4
3
|
import type { Hash32 } from "./Hash32";
|
|
5
4
|
import type { SubstateOwnerRule } from "./SubstateOwnerRule";
|
|
6
5
|
export type ComponentHeader = {
|
|
7
6
|
template_address: Hash32;
|
|
8
|
-
module_name: string;
|
|
9
7
|
owner_rule: SubstateOwnerRule;
|
|
10
8
|
access_rules: ComponentAccessRules;
|
|
11
9
|
entity_id: EntityId;
|
|
12
|
-
body: ComponentBody;
|
|
13
10
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Epoch } from "./Epoch";
|
|
1
2
|
import type { FinalizeResult } from "./FinalizeResult";
|
|
2
3
|
export type ExecuteResult = {
|
|
3
4
|
/**
|
|
@@ -15,5 +16,5 @@ export type ExecuteResult = {
|
|
|
15
16
|
* The epoch during which the transaction was executed. This may be None if consensus aborted before being able to
|
|
16
17
|
* lock to an epoch.
|
|
17
18
|
*/
|
|
18
|
-
execute_epoch:
|
|
19
|
+
execute_epoch: Epoch | null;
|
|
19
20
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type FeeSource = "Initial" | "RuntimeCall" | "Storage" | "Events" | "Logs" | "TransactionWeight" | "SignatureVerification" | "TemplateLoad";
|
|
1
|
+
export type FeeSource = "Initial" | "RuntimeCall" | "Storage" | "Events" | "Logs" | "TransactionWeight" | "SignatureVerification" | "TemplateLoad" | "SubstateCreate";
|
|
@@ -65,7 +65,11 @@ export type Instruction = {
|
|
|
65
65
|
};
|
|
66
66
|
} | {
|
|
67
67
|
PublishTemplate: {
|
|
68
|
-
|
|
68
|
+
/**
|
|
69
|
+
* Index into the transaction's `blobs` list. The referenced blob's bytes are the WASM
|
|
70
|
+
* binary, which the engine resolves via the surrounding `Blobs` at execution time.
|
|
71
|
+
*/
|
|
72
|
+
binary: number;
|
|
69
73
|
/**
|
|
70
74
|
* Optional multihash of off-chain CBOR metadata
|
|
71
75
|
*/
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import type { WorkspaceOffsetId } from "./WorkspaceOffsetId";
|
|
2
2
|
/**
|
|
3
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.
|
|
4
|
+
* item on the runtime's workspace, or a reference to a transaction blob by index.
|
|
5
5
|
*/
|
|
6
6
|
export type InstructionArg = {
|
|
7
7
|
Workspace: WorkspaceOffsetId;
|
|
8
8
|
} | {
|
|
9
9
|
Literal: string;
|
|
10
|
+
} | {
|
|
11
|
+
Blob: number;
|
|
10
12
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { AddressBookPermission } from "./AddressBookPermission";
|
|
1
2
|
import type { ComponentAddress } from "./ComponentAddress";
|
|
2
3
|
import type { ResourceAddress } from "./ResourceAddress";
|
|
3
4
|
import type { SubstateId } from "./SubstateId";
|
|
@@ -11,4 +12,6 @@ export type JrpcPermission = "AccountInfo" | {
|
|
|
11
12
|
TransactionSend: SubstateId | null;
|
|
12
13
|
} | {
|
|
13
14
|
GetNft: [SubstateId | null, ResourceAddress | null];
|
|
14
|
-
} | "StartWebrtc" |
|
|
15
|
+
} | "StartWebrtc" | {
|
|
16
|
+
AddressBook: AddressBookPermission;
|
|
17
|
+
} | "Admin";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { PrunedTransactionV1 } from "./PrunedTransactionV1";
|
|
2
|
+
/**
|
|
3
|
+
* Pruned, archive-only counterpart of `Transaction`. Carries blob commitments instead of
|
|
4
|
+
* blob payloads, so API responses can omit the raw bytes while preserving the `TransactionId`,
|
|
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.
|
|
9
|
+
*/
|
|
10
|
+
export type PrunedTransaction = {
|
|
11
|
+
V1: PrunedTransactionV1;
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { PrunedUnsealedTransactionV1 } from "./PrunedUnsealedTransactionV1";
|
|
2
|
+
import type { TransactionSealSignature } from "./TransactionSealSignature";
|
|
3
|
+
/**
|
|
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.
|
|
9
|
+
*/
|
|
10
|
+
export type PrunedTransactionV1 = {
|
|
11
|
+
body: PrunedUnsealedTransactionV1;
|
|
12
|
+
seal_signature: TransactionSealSignature;
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { PrunedUnsignedTransactionV1 } from "./PrunedUnsignedTransactionV1";
|
|
2
|
+
import type { TransactionSignature } from "./TransactionSignature";
|
|
3
|
+
/**
|
|
4
|
+
* Mirror of `UnsealedTransactionV1` for the pruned form.
|
|
5
|
+
*/
|
|
6
|
+
export type PrunedUnsealedTransactionV1 = {
|
|
7
|
+
transaction: PrunedUnsignedTransactionV1;
|
|
8
|
+
signatures: Array<TransactionSignature>;
|
|
9
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { BlobHashes } from "./BlobHashes";
|
|
2
|
+
import type { Epoch } from "./Epoch";
|
|
3
|
+
import type { Instruction } from "./Instruction";
|
|
4
|
+
import type { SubstateRequirement } from "./SubstateRequirement";
|
|
5
|
+
/**
|
|
6
|
+
* Mirror of `UnsignedTransactionV1` but with blob commitments instead of blob payloads.
|
|
7
|
+
*
|
|
8
|
+
* All non-blob fields are preserved verbatim so the field projection used in the signing /
|
|
9
|
+
* id digest is byte-identical to the full form.
|
|
10
|
+
*/
|
|
11
|
+
export type PrunedUnsignedTransactionV1 = {
|
|
12
|
+
network: number;
|
|
13
|
+
fee_instructions: Array<Instruction>;
|
|
14
|
+
instructions: Array<Instruction>;
|
|
15
|
+
inputs: Array<SubstateRequirement>;
|
|
16
|
+
min_epoch: Epoch | null;
|
|
17
|
+
max_epoch: Epoch | null;
|
|
18
|
+
is_seal_signer_authorized: boolean;
|
|
19
|
+
dry_run: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Per-blob commitments. Mirrors `UnsignedTransactionV1::blobs.hashes()` of the full form.
|
|
22
|
+
*/
|
|
23
|
+
blob_hashes: BlobHashes;
|
|
24
|
+
/**
|
|
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.
|
|
29
|
+
*/
|
|
30
|
+
blob_sizes: Array<number>;
|
|
31
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -11,4 +11,10 @@ export type ResourceAccessRules = {
|
|
|
11
11
|
update_non_fungible_data: AccessRule;
|
|
12
12
|
update_access_rules: AccessRule;
|
|
13
13
|
freeze: AccessRule;
|
|
14
|
+
/**
|
|
15
|
+
* Added post-launch. Appended last to keep bincode field positions stable for prior fields;
|
|
16
|
+
* this is still a breaking change for pre-existing substates because bincode cannot read a
|
|
17
|
+
* missing trailing field, so the chain must be reset or data migrated on upgrade.
|
|
18
|
+
*/
|
|
19
|
+
update_metadata: AccessRule;
|
|
14
20
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ClaimedOutputTombstone } from "./ClaimedOutputTombstone";
|
|
2
|
-
import type {
|
|
2
|
+
import type { Component } from "./Component";
|
|
3
3
|
import type { NonFungibleContainer } from "./NonFungibleContainer";
|
|
4
4
|
import type { PublishedTemplate } from "./PublishedTemplate";
|
|
5
5
|
import type { Resource } from "./Resource";
|
|
@@ -8,7 +8,7 @@ import type { Utxo } from "./Utxo";
|
|
|
8
8
|
import type { ValidatorFeePool } from "./ValidatorFeePool";
|
|
9
9
|
import type { Vault } from "./Vault";
|
|
10
10
|
export type SubstateValue = {
|
|
11
|
-
Component:
|
|
11
|
+
Component: Component;
|
|
12
12
|
} | {
|
|
13
13
|
Resource: Resource;
|
|
14
14
|
} | {
|
|
@@ -13,10 +13,20 @@ export type TemplateMetadata = {
|
|
|
13
13
|
tags?: Array<string>;
|
|
14
14
|
category?: string | null;
|
|
15
15
|
repository?: string | null;
|
|
16
|
+
/**
|
|
17
|
+
* The commit hash of the source code used to build this template, for reproducible build verification.
|
|
18
|
+
*/
|
|
19
|
+
commit_hash?: {
|
|
20
|
+
Sha1: string;
|
|
21
|
+
} | null;
|
|
16
22
|
documentation?: string | null;
|
|
17
23
|
homepage?: string | null;
|
|
18
24
|
license?: string | null;
|
|
19
25
|
logo_url?: string | null;
|
|
26
|
+
/**
|
|
27
|
+
* The template address of a previous version that this template supersedes.
|
|
28
|
+
*/
|
|
29
|
+
supersedes?: string | null;
|
|
20
30
|
extra?: {
|
|
21
31
|
[key in string]?: string;
|
|
22
32
|
};
|
|
@@ -3,12 +3,13 @@ import type { Decision } from "./Decision";
|
|
|
3
3
|
import type { Epoch } from "./Epoch";
|
|
4
4
|
import type { Evidence } from "./Evidence";
|
|
5
5
|
import type { LeaderFee } from "./LeaderFee";
|
|
6
|
+
import type { LockedEpoch } from "./LockedEpoch";
|
|
6
7
|
import type { TransactionPoolStage } from "./TransactionPoolStage";
|
|
7
8
|
export type TransactionPoolRecord = {
|
|
8
9
|
transaction_id: string;
|
|
9
10
|
evidence: Evidence;
|
|
10
11
|
is_global: boolean;
|
|
11
|
-
transaction_fee:
|
|
12
|
+
transaction_fee: bigint;
|
|
12
13
|
leader_fee: LeaderFee | null;
|
|
13
14
|
stage: TransactionPoolStage;
|
|
14
15
|
pending_stage: TransactionPoolStage | null;
|
|
@@ -16,11 +17,15 @@ export type TransactionPoolRecord = {
|
|
|
16
17
|
local_decision: Decision | null;
|
|
17
18
|
remote_decision: Decision | null;
|
|
18
19
|
is_ready: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* The maximum epoch for which this transaction is valid.
|
|
22
|
+
*/
|
|
23
|
+
max_epoch: Epoch | null;
|
|
19
24
|
/**
|
|
20
25
|
* Epoch to use when executing the transaction. This updates as foreign proposals are received
|
|
21
26
|
* until the transaction is executed.
|
|
22
27
|
*/
|
|
23
|
-
locked_epoch:
|
|
28
|
+
locked_epoch: LockedEpoch | null;
|
|
24
29
|
last_updated: string;
|
|
25
30
|
last_updated_in_block: BlockId | null;
|
|
26
31
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { DiffSummary } from "./DiffSummary";
|
|
2
|
+
import type { Epoch } from "./Epoch";
|
|
2
3
|
import type { Event } from "./Event";
|
|
3
4
|
import type { FeeReceipt } from "./FeeReceipt";
|
|
4
5
|
import type { FinalizeOutcome } from "./FinalizeOutcome";
|
|
@@ -11,5 +12,5 @@ export type TransactionReceipt = {
|
|
|
11
12
|
events: Array<Event>;
|
|
12
13
|
logs: Array<LogEntry>;
|
|
13
14
|
fee_receipt: FeeReceipt;
|
|
14
|
-
epoch:
|
|
15
|
+
epoch: Epoch;
|
|
15
16
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Blobs } from "./Blobs";
|
|
1
2
|
import type { Epoch } from "./Epoch";
|
|
2
3
|
import type { Instruction } from "./Instruction";
|
|
3
4
|
import type { SubstateRequirement } from "./SubstateRequirement";
|
|
@@ -13,4 +14,11 @@ export type UnsignedTransactionV1 = {
|
|
|
13
14
|
max_epoch: Epoch | null;
|
|
14
15
|
is_seal_signer_authorized: boolean;
|
|
15
16
|
dry_run: boolean;
|
|
17
|
+
/**
|
|
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.
|
|
22
|
+
*/
|
|
23
|
+
blobs: Blobs;
|
|
16
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
|
*/
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
import type { FinalizeResult } from "./FinalizeResult";
|
|
2
2
|
import type { ProposalCertificate } from "./ProposalCertificate";
|
|
3
|
-
import type {
|
|
3
|
+
import type { PrunedTransaction } from "./PrunedTransaction";
|
|
4
4
|
import type { TransactionStatus } from "./TransactionStatus";
|
|
5
5
|
import type { NewAccountData } from "./wallet-types/NewAccountData";
|
|
6
6
|
export type WalletTransaction = {
|
|
7
7
|
id: string;
|
|
8
|
-
|
|
8
|
+
/**
|
|
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.
|
|
12
|
+
*/
|
|
13
|
+
transaction: PrunedTransaction;
|
|
9
14
|
status: TransactionStatus;
|
|
10
15
|
finalize: FinalizeResult | null;
|
|
11
16
|
final_fee: bigint | null;
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
import type { NetworkDescription } from "./NetworkDescription";
|
|
2
2
|
import type { SyncProgress } from "./SyncProgress";
|
|
3
|
+
import type { ValidatorStatus } from "./ValidatorStatus";
|
|
3
4
|
export type GetNetworkSyncStateResponse = {
|
|
4
5
|
network_desc: NetworkDescription;
|
|
5
6
|
sync_progress: SyncProgress | null;
|
|
7
|
+
/**
|
|
8
|
+
* Per-validator consensus state as last observed by this indexer while
|
|
9
|
+
* syncing from the network. Populated lazily, so validators that have
|
|
10
|
+
* never been contacted for a sync will not appear here. Each entry
|
|
11
|
+
* carries an `observed_at_unix_s` timestamp so callers can judge whether
|
|
12
|
+
* the reading is fresh.
|
|
13
|
+
*/
|
|
14
|
+
validators: Array<ValidatorStatus>;
|
|
6
15
|
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Epoch } from "../Epoch";
|
|
2
|
+
export type ListEpochCheckpointsRequest = {
|
|
3
|
+
/**
|
|
4
|
+
* The epoch to start listing from (inclusive). Defaults to 0.
|
|
5
|
+
*/
|
|
6
|
+
from_epoch: Epoch | null;
|
|
7
|
+
/**
|
|
8
|
+
* Maximum number of checkpoints to return (default: 20, max: 100).
|
|
9
|
+
*/
|
|
10
|
+
limit: number | null;
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Hash32 } from "../Hash32";
|
|
1
2
|
export type ListTemplateCatalogueRequest = {
|
|
2
3
|
/**
|
|
3
4
|
* Optional substring filter on template name.
|
|
@@ -11,5 +12,5 @@ export type ListTemplateCatalogueRequest = {
|
|
|
11
12
|
* Cursor: return entries inserted after the row with this template address.
|
|
12
13
|
* When omitted, returns from the beginning.
|
|
13
14
|
*/
|
|
14
|
-
after:
|
|
15
|
+
after: Hash32 | null;
|
|
15
16
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ResourceAddress } from "../ResourceAddress";
|
|
1
2
|
import type { SubstateId } from "../SubstateId";
|
|
2
3
|
export type QueryTransactionEventsRequest = {
|
|
3
4
|
/**
|
|
@@ -5,6 +6,12 @@ export type QueryTransactionEventsRequest = {
|
|
|
5
6
|
*/
|
|
6
7
|
topic: string | null;
|
|
7
8
|
substate_id: SubstateId | null;
|
|
9
|
+
/**
|
|
10
|
+
* Filter by resource address. Matches when either the event's `substate_id` is the given
|
|
11
|
+
* resource (std.resource.* events) or the event payload contains a `resource_address` entry
|
|
12
|
+
* equal to the given address (std.vault.deposit / std.vault.withdraw).
|
|
13
|
+
*/
|
|
14
|
+
resource_address?: ResourceAddress | null;
|
|
8
15
|
limit: number | null;
|
|
9
16
|
offset: number | null;
|
|
10
17
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Hash32 } from "../Hash32";
|
|
2
|
+
import type { ResourceAddress } from "../ResourceAddress";
|
|
2
3
|
import type { SubstateId } from "../SubstateId";
|
|
3
4
|
/**
|
|
4
5
|
* Filter parameters for the transaction events SSE stream.
|
|
@@ -7,6 +8,12 @@ export type StreamTransactionEventsRequest = {
|
|
|
7
8
|
topic: string | null;
|
|
8
9
|
substate_id: SubstateId | null;
|
|
9
10
|
template_address: Hash32 | null;
|
|
11
|
+
/**
|
|
12
|
+
* Filter by resource address. Matches when either the event's `substate_id` is the given
|
|
13
|
+
* resource (std.resource.* events) or the event payload contains a `resource_address` entry
|
|
14
|
+
* equal to the given address (std.vault.deposit / std.vault.withdraw).
|
|
15
|
+
*/
|
|
16
|
+
resource_address?: ResourceAddress | null;
|
|
10
17
|
/**
|
|
11
18
|
* Resume the event stream from this event ID (exclusive). Events with id > after_id will be
|
|
12
19
|
* replayed from the database before switching to the live stream.
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { PrunedTransaction } from "../PrunedTransaction";
|
|
2
2
|
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 to keep the
|
|
7
|
+
* response size bounded. The transaction id and signatures remain verifiable.
|
|
8
|
+
*/
|
|
9
|
+
transaction: PrunedTransaction;
|
|
6
10
|
created_at: string;
|
|
7
11
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type ValidatorConsensusState = "Idle" | "CheckSync" | "Syncing" | "Running" | "Sleeping" | "Shutdown";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { Epoch } from "../Epoch";
|
|
2
|
+
import type { ShardGroup } from "../ShardGroup";
|
|
3
|
+
import type { ValidatorConsensusState } from "./ValidatorConsensusState";
|
|
4
|
+
/**
|
|
5
|
+
* A snapshot of one validator's consensus pacemaker state as observed by the
|
|
6
|
+
* indexer during a recent sync round.
|
|
7
|
+
*/
|
|
8
|
+
export type ValidatorStatus = {
|
|
9
|
+
/**
|
|
10
|
+
* libp2p PeerId of the validator.
|
|
11
|
+
*/
|
|
12
|
+
peer_id: string;
|
|
13
|
+
shard_group: ShardGroup;
|
|
14
|
+
epoch: Epoch;
|
|
15
|
+
height: bigint;
|
|
16
|
+
state: ValidatorConsensusState;
|
|
17
|
+
/**
|
|
18
|
+
* Unix timestamp (seconds) at which this snapshot was captured. Clients
|
|
19
|
+
* can derive the freshness of the snapshot by comparing this to the
|
|
20
|
+
* current wall-clock time.
|
|
21
|
+
*/
|
|
22
|
+
observed_at_unix_s: bigint;
|
|
23
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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;
|