@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.
Files changed (119) hide show
  1. package/dist/helpers/helpers.js +4 -5
  2. package/dist/helpers/ootleAddress.d.ts +1 -1
  3. package/dist/index.d.ts +56 -44
  4. package/dist/index.js +56 -44
  5. package/dist/tari-indexer-client.d.ts +55 -54
  6. package/dist/tari-indexer-client.js +55 -54
  7. package/dist/types/BlockHeader.d.ts +6 -3
  8. package/dist/types/BurnOutput.d.ts +24 -0
  9. package/dist/types/BurnOutputFeatures.d.ts +22 -0
  10. package/dist/types/BurnOutputInclusionProof.d.ts +15 -0
  11. package/dist/types/BurnRateChange.d.ts +4 -0
  12. package/dist/types/BurnRateGovernanceState.d.ts +5 -0
  13. package/dist/types/BurnSidechainId.d.ts +6 -0
  14. package/dist/types/BurnSidechainId.js +1 -0
  15. package/dist/types/Command.d.ts +7 -6
  16. package/dist/types/DiffSummary.d.ts +9 -0
  17. package/dist/types/DownSubstate.d.ts +6 -0
  18. package/dist/types/DownSubstate.js +1 -0
  19. package/dist/types/EvidenceInputLockData.d.ts +2 -1
  20. package/dist/types/EvidenceInputLockData.js +0 -1
  21. package/dist/types/ExecutionFailureCode.d.ts +1 -0
  22. package/dist/types/FeeSource.d.ts +1 -1
  23. package/dist/types/IndexedWellKnownTypes.d.ts +0 -2
  24. package/dist/types/InputDeclaration.d.ts +5 -0
  25. package/dist/types/InputDeclaration.js +2 -0
  26. package/dist/types/LocalOnlyAtom.d.ts +8 -0
  27. package/dist/types/LocalOnlyAtom.js +1 -0
  28. package/dist/types/LockedEpoch.d.ts +1 -0
  29. package/dist/types/Metadata.d.ts +6 -4
  30. package/dist/types/MinotariBurnClaimProof.d.ts +11 -8
  31. package/dist/types/MmrInclusionProof.d.ts +19 -0
  32. package/dist/types/MmrInclusionProof.js +1 -0
  33. package/dist/types/{TransactionAtom.d.ts → MultiShardAtom.d.ts} +1 -1
  34. package/dist/types/MultiShardAtom.js +1 -0
  35. package/dist/types/Permission.d.ts +2 -0
  36. package/dist/types/PrunedUnsignedTransactionV1.d.ts +2 -2
  37. package/dist/types/RejectReason.d.ts +5 -1
  38. package/dist/types/RevealedOutput.d.ts +21 -0
  39. package/dist/types/RevealedOutput.js +1 -0
  40. package/dist/types/SignedTimeout.d.ts +6 -0
  41. package/dist/types/SignedTimeout.js +1 -0
  42. package/dist/types/StealthOutputsStatement.d.ts +5 -4
  43. package/dist/types/Substate.d.ts +2 -1
  44. package/dist/types/SubstateDiff.d.ts +2 -1
  45. package/dist/types/SubstateRecord.d.ts +2 -1
  46. package/dist/types/SubstateRequirement.d.ts +2 -1
  47. package/dist/types/SubstateRequirement.js +0 -1
  48. package/dist/types/SubstateVersion.d.ts +7 -0
  49. package/dist/types/SubstateVersion.js +2 -0
  50. package/dist/types/TimeoutCertificate.d.ts +4 -3
  51. package/dist/types/UnsignedTransactionV1.d.ts +2 -2
  52. package/dist/types/UpSubstate.d.ts +2 -1
  53. package/dist/types/UtxoBurnt.d.ts +2 -1
  54. package/dist/types/UtxoSpent.d.ts +2 -1
  55. package/dist/types/VersionedSubstateId.d.ts +2 -1
  56. package/dist/types/tari-indexer-client/GetNetworkEconomicsResponse.d.ts +10 -0
  57. package/dist/types/tari-indexer-client/GetNetworkSyncStateResponse.d.ts +2 -5
  58. package/dist/types/tari-indexer-client/GetResourceResponse.d.ts +2 -1
  59. package/dist/types/tari-indexer-client/IndexerGetSubstateRequest.d.ts +2 -1
  60. package/dist/types/tari-indexer-client/IndexerGetSubstateRequest.js +0 -1
  61. package/dist/types/tari-indexer-client/IndexerGetSubstateResponse.d.ts +2 -1
  62. package/dist/types/tari-indexer-client/InspectSubstateRequest.d.ts +2 -1
  63. package/dist/types/tari-indexer-client/InspectSubstateResponse.d.ts +2 -1
  64. package/dist/types/tari-indexer-client/ListSubstateItem.d.ts +2 -1
  65. package/dist/types/tari-indexer-client/NonFungibleSubstate.d.ts +2 -1
  66. package/dist/types/tari-indexer-client/ScheduledBurnRate.d.ts +7 -0
  67. package/dist/types/tari-indexer-client/ScheduledBurnRate.js +2 -0
  68. package/dist/types/tari-indexer-client/ValidatorProbeError.d.ts +8 -0
  69. package/dist/types/tari-indexer-client/ValidatorProbeError.js +1 -0
  70. package/dist/types/tari-indexer-client/ValidatorProbeErrorKind.d.ts +1 -0
  71. package/dist/types/tari-indexer-client/ValidatorProbeErrorKind.js +2 -0
  72. package/dist/types/tari-indexer-client/ValidatorStatus.d.ts +13 -13
  73. package/dist/types/tari-indexer-client/ValidatorStatusSnapshot.d.ts +18 -0
  74. package/dist/types/tari-indexer-client/ValidatorStatusSnapshot.js +1 -0
  75. package/dist/types/validator-node-client/VNGetSubstateRequest.d.ts +2 -1
  76. package/dist/types/wallet-types/AccountsGetFaucetBalanceRequest.d.ts +1 -0
  77. package/dist/types/wallet-types/AccountsGetFaucetBalanceRequest.js +2 -0
  78. package/dist/types/wallet-types/AccountsGetFaucetBalanceResponse.d.ts +11 -0
  79. package/dist/types/wallet-types/AccountsGetFaucetBalanceResponse.js +1 -0
  80. package/dist/types/wallet-types/CallInstructionRequest.d.ts +2 -2
  81. package/dist/types/wallet-types/ConfidentialViewVaultBalanceResponse.d.ts +2 -0
  82. package/dist/types/wallet-types/ConfidentialViewVaultBalanceResponse.js +0 -1
  83. package/dist/types/wallet-types/KeyType.d.ts +1 -0
  84. package/dist/types/wallet-types/KeyType.js +2 -0
  85. package/dist/types/wallet-types/KeysImportRequest.d.ts +8 -0
  86. package/dist/types/wallet-types/KeysImportRequest.js +1 -0
  87. package/dist/types/wallet-types/KeysImportResponse.d.ts +6 -0
  88. package/dist/types/wallet-types/KeysImportResponse.js +1 -0
  89. package/dist/types/wallet-types/ResourcesGetManyRequest.d.ts +4 -0
  90. package/dist/types/wallet-types/ResourcesGetManyRequest.js +1 -0
  91. package/dist/types/wallet-types/ResourcesGetManyResponse.d.ts +11 -0
  92. package/dist/types/wallet-types/ResourcesGetManyResponse.js +1 -0
  93. package/dist/types/wallet-types/ResourcesGetRequest.d.ts +4 -0
  94. package/dist/types/wallet-types/ResourcesGetRequest.js +1 -0
  95. package/dist/types/wallet-types/ResourcesGetResponse.d.ts +4 -0
  96. package/dist/types/wallet-types/ResourcesGetResponse.js +1 -0
  97. package/dist/types/wallet-types/StealthUtxosDecryptValueResponse.d.ts +2 -0
  98. package/dist/types/wallet-types/ValueScanCoverage.d.ts +25 -0
  99. package/dist/types/wallet-types/ValueScanCoverage.js +2 -0
  100. package/dist/types/wallet-types/WalletSubstateInfo.d.ts +2 -1
  101. package/dist/types/wallet-types/WebauthnAlreadyRegisteredRequest.d.ts +1 -3
  102. package/dist/types/wallet-types/WebauthnFinishRegisterRequest.d.ts +0 -5
  103. package/dist/types/wallet-types/WebauthnFinishRegisterRequest.js +1 -0
  104. package/dist/validator-node-client.d.ts +42 -42
  105. package/dist/validator-node-client.js +42 -42
  106. package/dist/wallet-types.d.ts +186 -176
  107. package/dist/wallet-types.js +186 -176
  108. package/package.json +1 -1
  109. package/dist/types/AbridgedTransactionKernel.d.ts +0 -9
  110. package/dist/types/EncodedMerkleProof.d.ts +0 -5
  111. package/dist/types/tari-indexer-client/ListTemplatesRequest.d.ts +0 -3
  112. package/dist/types/tari-indexer-client/ListTemplatesResponse.d.ts +0 -4
  113. package/dist/types/tari-indexer-client/TemplateMeta.d.ts +0 -15
  114. /package/dist/types/{AbridgedTransactionKernel.js → BurnOutput.js} +0 -0
  115. /package/dist/types/{TransactionAtom.js → BurnOutputFeatures.js} +0 -0
  116. /package/dist/types/{tari-indexer-client/ListTemplatesResponse.js → BurnOutputInclusionProof.js} +0 -0
  117. /package/dist/types/{EncodedMerkleProof.js → BurnRateChange.js} +0 -0
  118. /package/dist/types/{tari-indexer-client/TemplateMeta.js → BurnRateGovernanceState.js} +0 -0
  119. /package/dist/types/{tari-indexer-client/ListTemplatesRequest.js → ExecutionFailureCode.js} +0 -0
@@ -0,0 +1,6 @@
1
+ import type { NodeHeight } from "./NodeHeight";
2
+ import type { ValidatorSignatureBytes } from "./ValidatorSignatureBytes";
3
+ export type SignedTimeout = {
4
+ high_pc_height: NodeHeight;
5
+ signature: ValidatorSignatureBytes;
6
+ };
@@ -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 amount of revealed funds to output. If this is a positive (non-zero) value, a bucket containing the
14
- * revealed stealth funds is created.
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
- revealed_output_amount: Amount;
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)
@@ -1,5 +1,6 @@
1
1
  import type { SubstateValue } from "./SubstateValue";
2
+ import type { SubstateVersion } from "./SubstateVersion";
2
3
  export type Substate = {
3
4
  substate: SubstateValue;
4
- version: number;
5
+ version: SubstateVersion;
5
6
  };
@@ -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, number]>;
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: number;
8
+ version: SubstateVersion;
8
9
  substate_value: SubstateValue | null;
9
10
  state_hash: string;
10
11
  created: SubstateCreated;
@@ -1,4 +1,5 @@
1
+ import type { SubstateVersion } from "./SubstateVersion";
1
2
  export type SubstateRequirement = {
2
3
  substate_id: string;
3
- version: number | null;
4
+ version: SubstateVersion | null;
4
5
  };
@@ -1,2 +1 @@
1
- // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
1
  export {};
@@ -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;
@@ -0,0 +1,2 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ export {};
@@ -1,11 +1,12 @@
1
1
  import type { Epoch } from "./Epoch";
2
2
  import type { NodeHeight } from "./NodeHeight";
3
- import type { ValidatorSignatureBytes } from "./ValidatorSignatureBytes";
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
- signatures: Array<ValidatorSignatureBytes>;
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<SubstateRequirement>;
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: number;
6
+ version: SubstateVersion;
6
7
  value_hash: Hash32;
7
8
  };
@@ -1,5 +1,6 @@
1
+ import type { SubstateVersion } from "./SubstateVersion";
1
2
  import type { UtxoId } from "./UtxoId";
2
3
  export type UtxoBurnt = {
3
4
  id: UtxoId;
4
- version: number;
5
+ version: SubstateVersion;
5
6
  };
@@ -1,5 +1,6 @@
1
+ import type { SubstateVersion } from "./SubstateVersion";
1
2
  import type { UtxoId } from "./UtxoId";
2
3
  export type UtxoSpent = {
3
4
  id: UtxoId;
4
- version: number;
5
+ version: SubstateVersion;
5
6
  };
@@ -1,5 +1,6 @@
1
1
  import type { SubstateId } from "./SubstateId";
2
+ import type { SubstateVersion } from "./SubstateVersion";
2
3
  export type VersionedSubstateId = {
3
4
  substate_id: SubstateId;
4
- version: number;
5
+ version: SubstateVersion;
5
6
  };
@@ -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
- * 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.
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: number;
6
+ version: SubstateVersion;
6
7
  total_supply: Amount | null;
7
8
  };
@@ -1,4 +1,5 @@
1
+ import type { SubstateVersion } from "../SubstateVersion";
1
2
  export type IndexerGetSubstateRequest = {
2
- version: number | null;
3
+ version: SubstateVersion | null;
3
4
  local_search_only: boolean;
4
5
  };
@@ -1,2 +1 @@
1
- // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
1
  export {};
@@ -1,6 +1,7 @@
1
1
  import type { SubstateValue } from "../SubstateValue";
2
+ import type { SubstateVersion } from "../SubstateVersion";
2
3
  export type IndexerGetSubstateResponse = {
3
- version: number;
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,5 +1,6 @@
1
1
  import type { SubstateId } from "../SubstateId";
2
+ import type { SubstateVersion } from "../SubstateVersion";
2
3
  export type InspectSubstateRequest = {
3
4
  address: SubstateId;
4
- version: number | null;
5
+ version: SubstateVersion | null;
5
6
  };
@@ -1,5 +1,6 @@
1
1
  import type { SubstateValue } from "../SubstateValue";
2
+ import type { SubstateVersion } from "../SubstateVersion";
2
3
  export type InspectSubstateResponse = {
3
- version: number;
4
+ version: SubstateVersion;
4
5
  substate: SubstateValue;
5
6
  };
@@ -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: number;
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: number;
6
+ version: SubstateVersion;
6
7
  substate: SubstateValue;
7
8
  };
@@ -0,0 +1,7 @@
1
+ /**
2
+ * A burn rate the council has scheduled, taking effect from `activation_epoch`.
3
+ */
4
+ export type ScheduledBurnRate = {
5
+ activation_epoch: bigint;
6
+ rate_bps: number;
7
+ };
@@ -0,0 +1,2 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ export {};
@@ -0,0 +1,8 @@
1
+ import type { ValidatorProbeErrorKind } from "./ValidatorProbeErrorKind";
2
+ /**
3
+ * Why a probe of a validator produced no snapshot.
4
+ */
5
+ export type ValidatorProbeError = {
6
+ kind: ValidatorProbeErrorKind;
7
+ message: string;
8
+ };
@@ -0,0 +1 @@
1
+ export type ValidatorProbeErrorKind = "StatusUnavailable" | "InvalidProof";
@@ -0,0 +1,2 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ export {};
@@ -1,9 +1,9 @@
1
- import type { Epoch } from "../Epoch";
2
1
  import type { ShardGroup } from "../ShardGroup";
3
- import type { ValidatorConsensusState } from "./ValidatorConsensusState";
2
+ import type { ValidatorProbeError } from "./ValidatorProbeError";
3
+ import type { ValidatorStatusSnapshot } from "./ValidatorStatusSnapshot";
4
4
  /**
5
- * A snapshot of one validator's consensus pacemaker state as observed by the
6
- * indexer during a recent sync round.
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
- * The validator's self-reported consensus pacemaker state. Diagnostic only - this is not
18
- * verified, so it should not be relied upon for anything but display.
15
+ * Unix timestamp (seconds) of the latest probe.
19
16
  */
20
- state: ValidatorConsensusState;
17
+ probed_at_unix_s: bigint;
21
18
  /**
22
- * Unix timestamp (seconds) at which this snapshot was captured. Clients
23
- * can derive the freshness of the snapshot by comparing this to the
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
- observed_at_unix_s: bigint;
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
+ };
@@ -1,5 +1,6 @@
1
1
  import type { SubstateId } from "../SubstateId";
2
+ import type { SubstateVersion } from "../SubstateVersion";
2
3
  export type VNGetSubstateRequest = {
3
4
  address: SubstateId;
4
- version: number;
5
+ version: SubstateVersion;
5
6
  };
@@ -0,0 +1 @@
1
+ export type AccountsGetFaucetBalanceRequest = Record<string, never>;
@@ -0,0 +1,2 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ export {};
@@ -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
+ };
@@ -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<SubstateRequirement>;
12
+ inputs: Array<InputDeclaration>;
13
13
  /**
14
14
  * If true, inputs inferred from the instructions are added to `inputs`.
15
15
  */
@@ -1,3 +1,5 @@
1
+ import type { ValueScanCoverage } from "./ValueScanCoverage";
1
2
  export type ConfidentialViewVaultBalanceResponse = {
2
3
  balances: Record<string, number | null>;
4
+ searched: ValueScanCoverage;
3
5
  };
@@ -1,2 +1 @@
1
- // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
1
  export {};
@@ -0,0 +1 @@
1
+ export type KeyType = "ViewOnly" | "Owner" | "GeneralPurpose";
@@ -0,0 +1,2 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ export {};
@@ -0,0 +1,8 @@
1
+ import type { KeyType } from "./KeyType";
2
+ /**
3
+ * Imports an externally-generated secret key into the wallet's keystore. The `secret_key` is transmitted as hex.
4
+ */
5
+ export type KeysImportRequest = {
6
+ secret_key: string;
7
+ key_type: KeyType;
8
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ import type { RistrettoPublicKeyBytes } from "../RistrettoPublicKeyBytes";
2
+ import type { KeyId } from "./KeyId";
3
+ export type KeysImportResponse = {
4
+ key_id: KeyId;
5
+ public_key: RistrettoPublicKeyBytes;
6
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ import type { ResourceAddress } from "../ResourceAddress";
2
+ export type ResourcesGetManyRequest = {
3
+ addresses: Array<ResourceAddress>;
4
+ };
@@ -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,4 @@
1
+ import type { ResourceAddress } from "../ResourceAddress";
2
+ export type ResourcesGetRequest = {
3
+ address: ResourceAddress;
4
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ import type { Resource } from "../Resource";
2
+ export type ResourcesGetResponse = {
3
+ resource: Resource;
4
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -1,6 +1,8 @@
1
1
  import type { UtxoId } from "../UtxoId";
2
+ import type { ValueScanCoverage } from "./ValueScanCoverage";
2
3
  export type StealthUtxosDecryptValueResponse = {
3
4
  values: {
4
5
  [key in UtxoId]?: bigint | null;
5
6
  };
7
+ searched: ValueScanCoverage;
6
8
  };
@@ -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
+ };
@@ -0,0 +1,2 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ export {};
@@ -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: number;
8
+ version: SubstateVersion;
8
9
  template_address: Hash32 | null;
9
10
  };
@@ -1,3 +1 @@
1
- export type WebauthnAlreadyRegisteredRequest = {
2
- username: string;
3
- };
1
+ export type WebauthnAlreadyRegisteredRequest = Record<string, never>;
@@ -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
  };
@@ -1 +1,2 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
1
2
  export {};