@tari-project/ootle-ts-bindings 1.53.0 → 1.55.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.
- package/dist/helpers/helpers.js +4 -5
- package/dist/helpers/ootleAddress.d.ts +1 -1
- package/dist/index.d.ts +56 -44
- package/dist/index.js +56 -44
- package/dist/tari-indexer-client.d.ts +55 -54
- package/dist/tari-indexer-client.js +55 -54
- package/dist/types/BlockHeader.d.ts +6 -3
- package/dist/types/BurnOutput.d.ts +24 -0
- package/dist/types/BurnOutputFeatures.d.ts +22 -0
- package/dist/types/BurnOutputInclusionProof.d.ts +15 -0
- package/dist/types/BurnRateChange.d.ts +4 -0
- package/dist/types/BurnRateGovernanceState.d.ts +5 -0
- package/dist/types/BurnSidechainId.d.ts +6 -0
- package/dist/types/BurnSidechainId.js +1 -0
- package/dist/types/Command.d.ts +7 -6
- package/dist/types/DiffSummary.d.ts +9 -0
- package/dist/types/DownSubstate.d.ts +6 -0
- package/dist/types/DownSubstate.js +1 -0
- package/dist/types/EvidenceInputLockData.d.ts +2 -1
- package/dist/types/EvidenceInputLockData.js +0 -1
- package/dist/types/ExecutionFailureCode.d.ts +1 -0
- package/dist/types/FeeSource.d.ts +1 -1
- package/dist/types/IndexedWellKnownTypes.d.ts +0 -2
- package/dist/types/InputDeclaration.d.ts +5 -0
- package/dist/types/InputDeclaration.js +2 -0
- package/dist/types/LocalOnlyAtom.d.ts +8 -0
- package/dist/types/LocalOnlyAtom.js +1 -0
- package/dist/types/LockedEpoch.d.ts +1 -0
- package/dist/types/Metadata.d.ts +6 -4
- package/dist/types/MinotariBurnClaimProof.d.ts +11 -8
- package/dist/types/MmrInclusionProof.d.ts +19 -0
- package/dist/types/MmrInclusionProof.js +1 -0
- package/dist/types/{TransactionAtom.d.ts → MultiShardAtom.d.ts} +1 -1
- package/dist/types/MultiShardAtom.js +1 -0
- package/dist/types/Permission.d.ts +2 -0
- package/dist/types/PrunedUnsignedTransactionV1.d.ts +2 -2
- package/dist/types/RejectReason.d.ts +5 -1
- package/dist/types/RevealedOutput.d.ts +21 -0
- package/dist/types/RevealedOutput.js +1 -0
- package/dist/types/SignedTimeout.d.ts +6 -0
- package/dist/types/SignedTimeout.js +1 -0
- package/dist/types/StealthOutputsStatement.d.ts +5 -4
- package/dist/types/Substate.d.ts +2 -1
- package/dist/types/SubstateDiff.d.ts +2 -1
- package/dist/types/SubstateRecord.d.ts +2 -1
- package/dist/types/SubstateRequirement.d.ts +2 -1
- package/dist/types/SubstateRequirement.js +0 -1
- package/dist/types/SubstateVersion.d.ts +7 -0
- package/dist/types/SubstateVersion.js +2 -0
- package/dist/types/TimeoutCertificate.d.ts +4 -3
- package/dist/types/UnsignedTransactionV1.d.ts +2 -2
- package/dist/types/UpSubstate.d.ts +2 -1
- package/dist/types/UtxoBurnt.d.ts +2 -1
- package/dist/types/UtxoSpent.d.ts +2 -1
- package/dist/types/VersionedSubstateId.d.ts +2 -1
- package/dist/types/tari-indexer-client/GetNetworkEconomicsResponse.d.ts +10 -0
- package/dist/types/tari-indexer-client/GetNetworkSyncStateResponse.d.ts +2 -5
- package/dist/types/tari-indexer-client/GetResourceResponse.d.ts +2 -1
- package/dist/types/tari-indexer-client/IndexerGetSubstateRequest.d.ts +2 -1
- package/dist/types/tari-indexer-client/IndexerGetSubstateRequest.js +0 -1
- package/dist/types/tari-indexer-client/IndexerGetSubstateResponse.d.ts +2 -1
- package/dist/types/tari-indexer-client/InspectSubstateRequest.d.ts +2 -1
- package/dist/types/tari-indexer-client/InspectSubstateResponse.d.ts +2 -1
- package/dist/types/tari-indexer-client/ListSubstateItem.d.ts +2 -1
- package/dist/types/tari-indexer-client/NonFungibleSubstate.d.ts +2 -1
- package/dist/types/tari-indexer-client/ScheduledBurnRate.d.ts +7 -0
- package/dist/types/tari-indexer-client/ScheduledBurnRate.js +2 -0
- package/dist/types/tari-indexer-client/ValidatorProbeError.d.ts +8 -0
- package/dist/types/tari-indexer-client/ValidatorProbeError.js +1 -0
- package/dist/types/tari-indexer-client/ValidatorProbeErrorKind.d.ts +1 -0
- package/dist/types/tari-indexer-client/ValidatorProbeErrorKind.js +2 -0
- package/dist/types/tari-indexer-client/ValidatorStatus.d.ts +13 -13
- package/dist/types/tari-indexer-client/ValidatorStatusSnapshot.d.ts +18 -0
- package/dist/types/tari-indexer-client/ValidatorStatusSnapshot.js +1 -0
- package/dist/types/validator-node-client/VNGetSubstateRequest.d.ts +2 -1
- package/dist/types/wallet-types/AccountsGetFaucetBalanceRequest.d.ts +1 -0
- package/dist/types/wallet-types/AccountsGetFaucetBalanceRequest.js +2 -0
- package/dist/types/wallet-types/AccountsGetFaucetBalanceResponse.d.ts +11 -0
- package/dist/types/wallet-types/AccountsGetFaucetBalanceResponse.js +1 -0
- package/dist/types/wallet-types/CallInstructionRequest.d.ts +2 -2
- package/dist/types/wallet-types/ConfidentialViewVaultBalanceResponse.d.ts +2 -0
- package/dist/types/wallet-types/ConfidentialViewVaultBalanceResponse.js +0 -1
- package/dist/types/wallet-types/KeyType.d.ts +1 -0
- package/dist/types/wallet-types/KeyType.js +2 -0
- package/dist/types/wallet-types/KeysImportRequest.d.ts +8 -0
- package/dist/types/wallet-types/KeysImportRequest.js +1 -0
- package/dist/types/wallet-types/KeysImportResponse.d.ts +6 -0
- package/dist/types/wallet-types/KeysImportResponse.js +1 -0
- package/dist/types/wallet-types/ResourcesGetManyRequest.d.ts +4 -0
- package/dist/types/wallet-types/ResourcesGetManyRequest.js +1 -0
- package/dist/types/wallet-types/ResourcesGetManyResponse.d.ts +11 -0
- package/dist/types/wallet-types/ResourcesGetManyResponse.js +1 -0
- package/dist/types/wallet-types/ResourcesGetRequest.d.ts +4 -0
- package/dist/types/wallet-types/ResourcesGetRequest.js +1 -0
- package/dist/types/wallet-types/ResourcesGetResponse.d.ts +4 -0
- package/dist/types/wallet-types/ResourcesGetResponse.js +1 -0
- package/dist/types/wallet-types/StealthUtxosDecryptValueResponse.d.ts +2 -0
- package/dist/types/wallet-types/ValueScanCoverage.d.ts +25 -0
- package/dist/types/wallet-types/ValueScanCoverage.js +2 -0
- package/dist/types/wallet-types/WalletSubstateInfo.d.ts +2 -1
- package/dist/types/wallet-types/WebauthnAlreadyRegisteredRequest.d.ts +1 -3
- package/dist/types/wallet-types/WebauthnFinishRegisterRequest.d.ts +0 -5
- package/dist/types/wallet-types/WebauthnFinishRegisterRequest.js +1 -0
- package/dist/validator-node-client.d.ts +42 -42
- package/dist/validator-node-client.js +42 -42
- package/dist/wallet-types.d.ts +186 -176
- package/dist/wallet-types.js +186 -176
- package/package.json +1 -1
- package/dist/types/AbridgedTransactionKernel.d.ts +0 -9
- package/dist/types/EncodedMerkleProof.d.ts +0 -5
- package/dist/types/tari-indexer-client/ListTemplatesRequest.d.ts +0 -3
- package/dist/types/tari-indexer-client/ListTemplatesResponse.d.ts +0 -4
- package/dist/types/tari-indexer-client/TemplateMeta.d.ts +0 -15
- /package/dist/types/{AbridgedTransactionKernel.js → BurnOutput.js} +0 -0
- /package/dist/types/{TransactionAtom.js → BurnOutputFeatures.js} +0 -0
- /package/dist/types/{tari-indexer-client/ListTemplatesResponse.js → BurnOutputInclusionProof.js} +0 -0
- /package/dist/types/{EncodedMerkleProof.js → BurnRateChange.js} +0 -0
- /package/dist/types/{tari-indexer-client/TemplateMeta.js → BurnRateGovernanceState.js} +0 -0
- /package/dist/types/{tari-indexer-client/ListTemplatesRequest.js → ExecutionFailureCode.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Amount } from "./Amount";
|
|
2
1
|
import type { RangeProofBytes } from "./RangeProofBytes";
|
|
2
|
+
import type { RevealedOutput } from "./RevealedOutput";
|
|
3
3
|
import type { StealthUnspentOutput } from "./StealthUnspentOutput";
|
|
4
4
|
/**
|
|
5
5
|
* A statement for stealth outputs. A statement must contain confidential outputs
|
|
@@ -10,10 +10,11 @@ export type StealthOutputsStatement = {
|
|
|
10
10
|
*/
|
|
11
11
|
outputs: Array<StealthUnspentOutput>;
|
|
12
12
|
/**
|
|
13
|
-
* The
|
|
14
|
-
*
|
|
13
|
+
* The revealed funds to output, and the key authorised to take them. When set, a bucket containing the revealed
|
|
14
|
+
* stealth funds is created for `receiver`. `None` is the only encoding of "no revealed output": a zero amount is
|
|
15
|
+
* rejected, so the presence of this field and the presence of a revealed bucket are the same thing.
|
|
15
16
|
*/
|
|
16
|
-
|
|
17
|
+
revealed_output: RevealedOutput | null;
|
|
17
18
|
/**
|
|
18
19
|
* Bulletproof range proof for the output commitments proving that values are in the range
|
|
19
20
|
* [minimum_value_promise, 2^64)
|
package/dist/types/Substate.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { Substate } from "./Substate";
|
|
2
2
|
import type { SubstateId } from "./SubstateId";
|
|
3
|
+
import type { SubstateVersion } from "./SubstateVersion";
|
|
3
4
|
import type { ValidatorFeeWithdrawal } from "./ValidatorFeeWithdrawal";
|
|
4
5
|
export type SubstateDiff = {
|
|
5
6
|
up_substates: Array<[SubstateId, Substate]>;
|
|
6
|
-
down_substates: Array<[SubstateId,
|
|
7
|
+
down_substates: Array<[SubstateId, SubstateVersion]>;
|
|
7
8
|
fee_withdrawals: Array<ValidatorFeeWithdrawal>;
|
|
8
9
|
};
|
|
@@ -2,9 +2,10 @@ import type { SubstateCreated } from "./SubstateCreated";
|
|
|
2
2
|
import type { SubstateDestroyed } from "./SubstateDestroyed";
|
|
3
3
|
import type { SubstateId } from "./SubstateId";
|
|
4
4
|
import type { SubstateValue } from "./SubstateValue";
|
|
5
|
+
import type { SubstateVersion } from "./SubstateVersion";
|
|
5
6
|
export type SubstateRecord = {
|
|
6
7
|
substate_id: SubstateId;
|
|
7
|
-
version:
|
|
8
|
+
version: SubstateVersion;
|
|
8
9
|
substate_value: SubstateValue | null;
|
|
9
10
|
state_hash: string;
|
|
10
11
|
created: SubstateCreated;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The version of a substate: the number of times it has been written since it was created at version 0.
|
|
3
|
+
*
|
|
4
|
+
* Every encoding (serde, CBOR and Borsh) is that of the inner `u64`, so the version hashes, and addresses the JMT,
|
|
5
|
+
* exactly as a bare integer would.
|
|
6
|
+
*/
|
|
7
|
+
export type SubstateVersion = number;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import type { Epoch } from "./Epoch";
|
|
2
2
|
import type { NodeHeight } from "./NodeHeight";
|
|
3
|
-
import type {
|
|
3
|
+
import type { SignedTimeout } from "./SignedTimeout";
|
|
4
4
|
export type TimeoutCertificate = {
|
|
5
5
|
epoch: Epoch;
|
|
6
6
|
height: NodeHeight;
|
|
7
7
|
/**
|
|
8
|
-
* A quorum of validator signatures that sign the timeout certificate
|
|
8
|
+
* A quorum of validator signatures that sign the timeout certificate, each attesting to the height of the
|
|
9
|
+
* signer's high proposal certificate at the time it timed out.
|
|
9
10
|
*/
|
|
10
|
-
|
|
11
|
+
timeouts: Array<SignedTimeout>;
|
|
11
12
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Blobs } from "./Blobs";
|
|
2
2
|
import type { Epoch } from "./Epoch";
|
|
3
|
+
import type { InputDeclaration } from "./InputDeclaration";
|
|
3
4
|
import type { Instruction } from "./Instruction";
|
|
4
|
-
import type { SubstateRequirement } from "./SubstateRequirement";
|
|
5
5
|
export type UnsignedTransactionV1 = {
|
|
6
6
|
network: number;
|
|
7
7
|
fee_instructions: Array<Instruction>;
|
|
@@ -9,7 +9,7 @@ export type UnsignedTransactionV1 = {
|
|
|
9
9
|
/**
|
|
10
10
|
* Input objects that may be read/write
|
|
11
11
|
*/
|
|
12
|
-
inputs: Array<
|
|
12
|
+
inputs: Array<InputDeclaration>;
|
|
13
13
|
min_epoch: Epoch | null;
|
|
14
14
|
/**
|
|
15
15
|
* The last epoch in which this transaction may be sequenced. Mandatory: every transaction has a
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { Hash32 } from "./Hash32";
|
|
2
2
|
import type { SubstateId } from "./SubstateId";
|
|
3
|
+
import type { SubstateVersion } from "./SubstateVersion";
|
|
3
4
|
export type UpSubstate = {
|
|
4
5
|
substate_id: SubstateId;
|
|
5
|
-
version:
|
|
6
|
+
version: SubstateVersion;
|
|
6
7
|
value_hash: Hash32;
|
|
7
8
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Amount } from "../Amount";
|
|
2
2
|
import type { Epoch } from "../Epoch";
|
|
3
|
+
import type { ScheduledBurnRate } from "./ScheduledBurnRate";
|
|
3
4
|
export type GetNetworkEconomicsResponse = {
|
|
4
5
|
current_epoch: Epoch;
|
|
5
6
|
/**
|
|
@@ -34,4 +35,13 @@ export type GetNetworkEconomicsResponse = {
|
|
|
34
35
|
* The share of collected fees burned rather than paid to leaders, in basis points, in effect at `current_epoch`.
|
|
35
36
|
*/
|
|
36
37
|
target_burn_rate_bps: number;
|
|
38
|
+
/**
|
|
39
|
+
* Rate changes the council has scheduled to activate after `current_epoch`, ascending by epoch.
|
|
40
|
+
* Empty when nothing is pending.
|
|
41
|
+
*/
|
|
42
|
+
scheduled_burn_rates: Array<ScheduledBurnRate>;
|
|
43
|
+
/**
|
|
44
|
+
* The first epoch the release-scheduled rate governs again, when the council has retired.
|
|
45
|
+
*/
|
|
46
|
+
burn_rate_retired_from: bigint | null;
|
|
37
47
|
};
|
|
@@ -5,11 +5,8 @@ export type GetNetworkSyncStateResponse = {
|
|
|
5
5
|
network_desc: NetworkDescription;
|
|
6
6
|
sync_progress: SyncProgress | null;
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
9
|
-
*
|
|
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.
|
|
8
|
+
* The latest probe of each validator this indexer has synced from. Populated lazily, so
|
|
9
|
+
* validators that have never been contacted for a sync will not appear here.
|
|
13
10
|
*/
|
|
14
11
|
validators: Array<ValidatorStatus>;
|
|
15
12
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { Amount } from "../Amount";
|
|
2
2
|
import type { Resource } from "../Resource";
|
|
3
|
+
import type { SubstateVersion } from "../SubstateVersion";
|
|
3
4
|
export type GetResourceResponse = {
|
|
4
5
|
resource: Resource;
|
|
5
|
-
version:
|
|
6
|
+
version: SubstateVersion;
|
|
6
7
|
total_supply: Amount | null;
|
|
7
8
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { SubstateValue } from "../SubstateValue";
|
|
2
|
+
import type { SubstateVersion } from "../SubstateVersion";
|
|
2
3
|
export type IndexerGetSubstateResponse = {
|
|
3
|
-
version:
|
|
4
|
+
version: SubstateVersion;
|
|
4
5
|
substate: SubstateValue;
|
|
5
6
|
/**
|
|
6
7
|
* True when the indexer verified this substate's value against the shard group committee (via a
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import type { Hash32 } from "../Hash32";
|
|
2
2
|
import type { SubstateId } from "../SubstateId";
|
|
3
|
+
import type { SubstateVersion } from "../SubstateVersion";
|
|
3
4
|
export type ListSubstateItem = {
|
|
4
5
|
substate_id: SubstateId;
|
|
5
6
|
module_name: string | null;
|
|
6
|
-
version:
|
|
7
|
+
version: SubstateVersion;
|
|
7
8
|
template_address: Hash32 | null;
|
|
8
9
|
timestamp: string;
|
|
9
10
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { NonFungibleAddress } from "../NonFungibleAddress";
|
|
2
2
|
import type { SubstateValue } from "../SubstateValue";
|
|
3
|
+
import type { SubstateVersion } from "../SubstateVersion";
|
|
3
4
|
export type NonFungibleSubstate = {
|
|
4
5
|
address: NonFungibleAddress;
|
|
5
|
-
version:
|
|
6
|
+
version: SubstateVersion;
|
|
6
7
|
substate: SubstateValue;
|
|
7
8
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type ValidatorProbeErrorKind = "StatusUnavailable" | "InvalidProof";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { Epoch } from "../Epoch";
|
|
2
1
|
import type { ShardGroup } from "../ShardGroup";
|
|
3
|
-
import type {
|
|
2
|
+
import type { ValidatorProbeError } from "./ValidatorProbeError";
|
|
3
|
+
import type { ValidatorStatusSnapshot } from "./ValidatorStatusSnapshot";
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
6
|
-
*
|
|
5
|
+
* The latest probe of one validator's consensus pacemaker state, made by the indexer when it
|
|
6
|
+
* opened a sync stream from that validator.
|
|
7
7
|
*/
|
|
8
8
|
export type ValidatorStatus = {
|
|
9
9
|
/**
|
|
@@ -11,17 +11,17 @@ export type ValidatorStatus = {
|
|
|
11
11
|
*/
|
|
12
12
|
peer_id: string;
|
|
13
13
|
shard_group: ShardGroup;
|
|
14
|
-
epoch: Epoch;
|
|
15
|
-
height: bigint;
|
|
16
14
|
/**
|
|
17
|
-
*
|
|
18
|
-
* verified, so it should not be relied upon for anything but display.
|
|
15
|
+
* Unix timestamp (seconds) of the latest probe.
|
|
19
16
|
*/
|
|
20
|
-
|
|
17
|
+
probed_at_unix_s: bigint;
|
|
21
18
|
/**
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
* current wall-clock time.
|
|
19
|
+
* Why the latest probe produced no snapshot, or `None` when it produced `snapshot`. While this
|
|
20
|
+
* is set, `snapshot` is stale: it is the last one an earlier probe produced.
|
|
25
21
|
*/
|
|
26
|
-
|
|
22
|
+
probe_error: ValidatorProbeError | null;
|
|
23
|
+
/**
|
|
24
|
+
* The last snapshot any probe of this validator produced, or `None` if none has succeeded.
|
|
25
|
+
*/
|
|
26
|
+
snapshot: ValidatorStatusSnapshot | null;
|
|
27
27
|
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Epoch } from "../Epoch";
|
|
2
|
+
import type { ValidatorConsensusState } from "./ValidatorConsensusState";
|
|
3
|
+
/**
|
|
4
|
+
* A validator's consensus pacemaker state as it reported it to the indexer.
|
|
5
|
+
*/
|
|
6
|
+
export type ValidatorStatusSnapshot = {
|
|
7
|
+
epoch: Epoch;
|
|
8
|
+
height: bigint;
|
|
9
|
+
/**
|
|
10
|
+
* The validator's self-reported consensus pacemaker state. Diagnostic only - this is not
|
|
11
|
+
* verified, so it should not be relied upon for anything but display.
|
|
12
|
+
*/
|
|
13
|
+
state: ValidatorConsensusState;
|
|
14
|
+
/**
|
|
15
|
+
* Unix timestamp (seconds) at which this snapshot was captured.
|
|
16
|
+
*/
|
|
17
|
+
observed_at_unix_s: bigint;
|
|
18
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type AccountsGetFaucetBalanceRequest = Record<string, never>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Amount } from "../Amount";
|
|
2
|
+
export type AccountsGetFaucetBalanceResponse = {
|
|
3
|
+
/**
|
|
4
|
+
* The faucet's available balance.
|
|
5
|
+
*/
|
|
6
|
+
balance: Amount;
|
|
7
|
+
/**
|
|
8
|
+
* The amount a single claim takes from the faucet. A claim fails while `balance` is below it.
|
|
9
|
+
*/
|
|
10
|
+
claim_amount: Amount;
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { InputDeclaration } from "../InputDeclaration";
|
|
1
2
|
import type { Instruction } from "../Instruction";
|
|
2
|
-
import type { SubstateRequirement } from "../SubstateRequirement";
|
|
3
3
|
import type { ComponentAddressOrName } from "./ComponentAddressOrName";
|
|
4
4
|
export type CallInstructionRequest = {
|
|
5
5
|
instructions: Array<Instruction>;
|
|
@@ -9,7 +9,7 @@ export type CallInstructionRequest = {
|
|
|
9
9
|
* Substates the instructions require as transaction inputs. Needed for any input that cannot be inferred
|
|
10
10
|
* from the instructions, e.g. a `ConfidentialOutput` named only by a commitment inside an opaque proof.
|
|
11
11
|
*/
|
|
12
|
-
inputs: Array<
|
|
12
|
+
inputs: Array<InputDeclaration>;
|
|
13
13
|
/**
|
|
14
14
|
* If true, inputs inferred from the instructions are added to `inputs`.
|
|
15
15
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type KeyType = "ViewOnly" | "Owner" | "GeneralPurpose";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Resource } from "../Resource";
|
|
2
|
+
import type { ResourceAddress } from "../ResourceAddress";
|
|
3
|
+
export type ResourcesGetManyResponse = {
|
|
4
|
+
/**
|
|
5
|
+
* The requested resources this wallet has stored. An address the wallet has no record of is
|
|
6
|
+
* absent from the map.
|
|
7
|
+
*/
|
|
8
|
+
resources: {
|
|
9
|
+
[key in ResourceAddress]?: Resource;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The values a balance recovery actually covered, so a `None` result can be told apart from a value
|
|
3
|
+
* the search never reached.
|
|
4
|
+
*
|
|
5
|
+
* Recovering a viewable balance is a reverse lookup over a range of candidate values, and the range
|
|
6
|
+
* is not always the one the caller named: without a lookup table file the daemon caps how much of it
|
|
7
|
+
* one request may scan, and with one the file's own coverage is what bounds the answer. A client that
|
|
8
|
+
* only sees `None` cannot tell "this output does not hold that value" from "nobody looked there".
|
|
9
|
+
*/
|
|
10
|
+
export type ValueScanCoverage = {
|
|
11
|
+
/**
|
|
12
|
+
* Lowest value the search covered.
|
|
13
|
+
*/
|
|
14
|
+
min: bigint;
|
|
15
|
+
/**
|
|
16
|
+
* Highest value the search covered.
|
|
17
|
+
*/
|
|
18
|
+
max: bigint;
|
|
19
|
+
/**
|
|
20
|
+
* True when `min`-`max` covers less than the caller asked for, at either end. Any `None` in the
|
|
21
|
+
* same response may then be a value the search did not reach, and finding it needs a wider lookup
|
|
22
|
+
* table file rather than a retry.
|
|
23
|
+
*/
|
|
24
|
+
clamped: boolean;
|
|
25
|
+
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import type { Hash32 } from "../Hash32";
|
|
2
2
|
import type { SubstateId } from "../SubstateId";
|
|
3
|
+
import type { SubstateVersion } from "../SubstateVersion";
|
|
3
4
|
export type WalletSubstateInfo = {
|
|
4
5
|
substate_id: SubstateId;
|
|
5
6
|
parent_id: SubstateId | null;
|
|
6
7
|
module_name: string | null;
|
|
7
|
-
version:
|
|
8
|
+
version: SubstateVersion;
|
|
8
9
|
template_address: Hash32 | null;
|
|
9
10
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { Permission } from "../Permission";
|
|
2
1
|
export type WebauthnFinishRegisterRequest = {
|
|
3
2
|
/**
|
|
4
3
|
* Session ID received from [`WebauthnStartRegisterResponse`].
|
|
@@ -8,8 +7,4 @@ export type WebauthnFinishRegisterRequest = {
|
|
|
8
7
|
* [`RegisterPublicKeyCredential`]
|
|
9
8
|
*/
|
|
10
9
|
credential: object;
|
|
11
|
-
/**
|
|
12
|
-
* Permissions requested by the client to be associated with the registered credential.
|
|
13
|
-
*/
|
|
14
|
-
requested_permissions: Array<Permission>;
|
|
15
10
|
};
|