@tari-project/ootle-ts-bindings 1.54.0 → 1.56.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 (111) hide show
  1. package/dist/helpers/helpers.js +4 -5
  2. package/dist/index.d.ts +15 -3
  3. package/dist/index.js +15 -3
  4. package/dist/tari-indexer-client.d.ts +4 -3
  5. package/dist/tari-indexer-client.js +4 -3
  6. package/dist/types/BlockHeader.d.ts +6 -3
  7. package/dist/types/BurnOutput.d.ts +24 -0
  8. package/dist/types/BurnOutputFeatures.d.ts +22 -0
  9. package/dist/types/BurnOutputInclusionProof.d.ts +15 -0
  10. package/dist/types/BurnRateChange.d.ts +4 -0
  11. package/dist/types/BurnRateGovernanceState.d.ts +5 -0
  12. package/dist/types/BurnSidechainId.d.ts +6 -0
  13. package/dist/types/BurnSidechainId.js +1 -0
  14. package/dist/types/Command.d.ts +7 -6
  15. package/dist/types/DiffSummary.d.ts +9 -0
  16. package/dist/types/DownSubstate.d.ts +6 -0
  17. package/dist/types/DownSubstate.js +1 -0
  18. package/dist/types/EvidenceInputLockData.d.ts +2 -1
  19. package/dist/types/EvidenceInputLockData.js +0 -1
  20. package/dist/types/ExecutionFailureCode.d.ts +1 -0
  21. package/dist/types/FeeSource.d.ts +1 -1
  22. package/dist/types/IndexedWellKnownTypes.d.ts +0 -2
  23. package/dist/types/InputDeclaration.d.ts +5 -0
  24. package/dist/types/InputDeclaration.js +2 -0
  25. package/dist/types/LocalOnlyAtom.d.ts +8 -0
  26. package/dist/types/LocalOnlyAtom.js +1 -0
  27. package/dist/types/LockedEpoch.d.ts +1 -0
  28. package/dist/types/Metadata.d.ts +6 -4
  29. package/dist/types/MinotariBurnClaimProof.d.ts +11 -8
  30. package/dist/types/MmrInclusionProof.d.ts +19 -0
  31. package/dist/types/MmrInclusionProof.js +1 -0
  32. package/dist/types/{TransactionAtom.d.ts → MultiShardAtom.d.ts} +1 -1
  33. package/dist/types/MultiShardAtom.js +1 -0
  34. package/dist/types/Permission.d.ts +2 -0
  35. package/dist/types/PrunedUnsignedTransactionV1.d.ts +2 -2
  36. package/dist/types/RejectReason.d.ts +5 -1
  37. package/dist/types/RevealedOutput.d.ts +21 -0
  38. package/dist/types/RevealedOutput.js +1 -0
  39. package/dist/types/SignedTimeout.d.ts +6 -0
  40. package/dist/types/SignedTimeout.js +1 -0
  41. package/dist/types/StealthOutputsStatement.d.ts +5 -4
  42. package/dist/types/Substate.d.ts +2 -1
  43. package/dist/types/SubstateDiff.d.ts +2 -1
  44. package/dist/types/SubstateRecord.d.ts +2 -1
  45. package/dist/types/SubstateRequirement.d.ts +2 -1
  46. package/dist/types/SubstateRequirement.js +0 -1
  47. package/dist/types/SubstateVersion.d.ts +7 -0
  48. package/dist/types/SubstateVersion.js +2 -0
  49. package/dist/types/TimeoutCertificate.d.ts +4 -3
  50. package/dist/types/UnsignedTransactionV1.d.ts +2 -2
  51. package/dist/types/UpSubstate.d.ts +2 -1
  52. package/dist/types/UtxoBurnt.d.ts +2 -1
  53. package/dist/types/UtxoSpent.d.ts +2 -1
  54. package/dist/types/VersionedSubstateId.d.ts +2 -1
  55. package/dist/types/tari-indexer-client/GetNetworkEconomicsResponse.d.ts +10 -0
  56. package/dist/types/tari-indexer-client/GetNetworkSyncStateResponse.d.ts +2 -5
  57. package/dist/types/tari-indexer-client/GetResourceResponse.d.ts +2 -1
  58. package/dist/types/tari-indexer-client/IndexerGetEpochManagerStatsResponse.d.ts +7 -0
  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/QueryTransactionEventsRequest.d.ts +7 -0
  67. package/dist/types/tari-indexer-client/QueryTransactionEventsResponse.d.ts +6 -0
  68. package/dist/types/tari-indexer-client/ScheduledBurnRate.d.ts +7 -0
  69. package/dist/types/tari-indexer-client/ScheduledBurnRate.js +2 -0
  70. package/dist/types/tari-indexer-client/ValidatorProbeError.d.ts +8 -0
  71. package/dist/types/tari-indexer-client/ValidatorProbeError.js +1 -0
  72. package/dist/types/tari-indexer-client/ValidatorProbeErrorKind.d.ts +1 -0
  73. package/dist/types/tari-indexer-client/ValidatorProbeErrorKind.js +2 -0
  74. package/dist/types/tari-indexer-client/ValidatorStatus.d.ts +13 -13
  75. package/dist/types/tari-indexer-client/ValidatorStatusSnapshot.d.ts +18 -0
  76. package/dist/types/tari-indexer-client/ValidatorStatusSnapshot.js +1 -0
  77. package/dist/types/validator-node-client/VNGetSubstateRequest.d.ts +2 -1
  78. package/dist/types/wallet-types/AccountsGetFaucetBalanceRequest.d.ts +1 -0
  79. package/dist/types/wallet-types/AccountsGetFaucetBalanceRequest.js +2 -0
  80. package/dist/types/wallet-types/AccountsGetFaucetBalanceResponse.d.ts +11 -0
  81. package/dist/types/wallet-types/AccountsGetFaucetBalanceResponse.js +1 -0
  82. package/dist/types/wallet-types/CallInstructionRequest.d.ts +2 -2
  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/WalletSubstateInfo.d.ts +2 -1
  98. package/dist/wallet-types.d.ts +9 -0
  99. package/dist/wallet-types.js +9 -0
  100. package/package.json +1 -1
  101. package/dist/types/AbridgedTransactionKernel.d.ts +0 -9
  102. package/dist/types/EncodedMerkleProof.d.ts +0 -5
  103. package/dist/types/tari-indexer-client/ListTemplatesRequest.d.ts +0 -3
  104. package/dist/types/tari-indexer-client/ListTemplatesResponse.d.ts +0 -4
  105. package/dist/types/tari-indexer-client/TemplateMeta.d.ts +0 -15
  106. /package/dist/types/{AbridgedTransactionKernel.js → BurnOutput.js} +0 -0
  107. /package/dist/types/{TransactionAtom.js → BurnOutputFeatures.js} +0 -0
  108. /package/dist/types/{tari-indexer-client/ListTemplatesResponse.js → BurnOutputInclusionProof.js} +0 -0
  109. /package/dist/types/{EncodedMerkleProof.js → BurnRateChange.js} +0 -0
  110. /package/dist/types/{tari-indexer-client/TemplateMeta.js → BurnRateGovernanceState.js} +0 -0
  111. /package/dist/types/{tari-indexer-client/ListTemplatesRequest.js → ExecutionFailureCode.js} +0 -0
@@ -0,0 +1,21 @@
1
+ import type { Amount } from "./Amount";
2
+ import type { RistrettoPublicKeyBytes } from "./RistrettoPublicKeyBytes";
3
+ /**
4
+ * A revealed output together with the key authorised to take it.
5
+ *
6
+ * The revealed funds materialise as a bucket in the executing workspace rather than as a stealth output, so unlike a
7
+ * confidential output nothing in the statement says where they end up. `receiver` supplies that: the engine requires
8
+ * the receiver's badge in the transaction's auth scope before it creates the bucket, so a statement lifted into
9
+ * another transaction yields its revealed funds to nobody. The receiver authorises the reveal; where the bucket goes
10
+ * afterwards is up to the instructions that take it.
11
+ */
12
+ export type RevealedOutput = {
13
+ /**
14
+ * The amount of revealed funds to output. Must be positive.
15
+ */
16
+ amount: Amount;
17
+ /**
18
+ * The public key whose badge must be in the transaction's auth scope for the revealed bucket to be created.
19
+ */
20
+ receiver: RistrettoPublicKeyBytes;
21
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -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
  };
@@ -5,6 +5,13 @@ export type IndexerGetEpochManagerStatsResponse = {
5
5
  * The current epoch according to the indexer's epoch oracle view
6
6
  */
7
7
  current_epoch: Epoch;
8
+ /**
9
+ * The epoch the validators execute transactions in, as the indexer has observed from their
10
+ * committed blocks, held within one epoch below `current_epoch`. It trails `current_epoch` after
11
+ * each epoch boundary until every committee has committed its end-of-epoch block. `None` until
12
+ * the indexer has observed every committee.
13
+ */
14
+ consensus_epoch: Epoch | null;
8
15
  current_block_height: bigint;
9
16
  current_block_hash: Hash32;
10
17
  };
@@ -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
  };
@@ -13,5 +13,12 @@ export type QueryTransactionEventsRequest = {
13
13
  */
14
14
  resource_address?: ResourceAddress | null;
15
15
  limit: number | null;
16
+ /**
17
+ * Matches to skip, at most 10,000. Page deeper with `before_id`.
18
+ */
16
19
  offset: number | null;
20
+ /**
21
+ * Return only events older than this cursor. Pass the previous page's `next_before_id`.
22
+ */
23
+ before_id?: number | bigint | string | null;
17
24
  };
@@ -2,4 +2,10 @@ import type { Event } from "../Event";
2
2
  import type { TransactionId } from "../TransactionId";
3
3
  export type QueryTransactionEventsResponse = {
4
4
  events: Array<[TransactionId, Event]>;
5
+ /**
6
+ * The `before_id` for the next page, or `None` once no older event can match. A wildcard
7
+ * topic query examines a bounded number of events per request, so a page can be short, or
8
+ * empty, and still carry a cursor.
9
+ */
10
+ next_before_id?: bigint | null;
5
11
  };
@@ -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
  */
@@ -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,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
  };
@@ -20,6 +20,8 @@ export * from "./types/wallet-types/AccountsGetBalanceChangesRequest";
20
20
  export * from "./types/wallet-types/AccountsGetBalanceChangesResponse";
21
21
  export * from "./types/wallet-types/AccountsGetBalancesRequest";
22
22
  export * from "./types/wallet-types/AccountsGetBalancesResponse";
23
+ export * from "./types/wallet-types/AccountsGetFaucetBalanceRequest";
24
+ export * from "./types/wallet-types/AccountsGetFaucetBalanceResponse";
23
25
  export * from "./types/wallet-types/AccountsListRequest";
24
26
  export * from "./types/wallet-types/AccountsListResponse";
25
27
  export * from "./types/wallet-types/AccountsRenameRequest";
@@ -97,10 +99,13 @@ export * from "./types/wallet-types/KeyBranch";
97
99
  export * from "./types/wallet-types/KeyId";
98
100
  export * from "./types/wallet-types/KeysCreateRequest";
99
101
  export * from "./types/wallet-types/KeysCreateResponse";
102
+ export * from "./types/wallet-types/KeysImportRequest";
103
+ export * from "./types/wallet-types/KeysImportResponse";
100
104
  export * from "./types/wallet-types/KeysListRequest";
101
105
  export * from "./types/wallet-types/KeysListResponse";
102
106
  export * from "./types/wallet-types/KeysSetActiveRequest";
103
107
  export * from "./types/wallet-types/KeysSetActiveResponse";
108
+ export * from "./types/wallet-types/KeyType";
104
109
  export * from "./types/wallet-types/ListNftsRequest";
105
110
  export * from "./types/wallet-types/ListNftsResponse";
106
111
  export * from "./types/wallet-types/MintFaucetNftRequest";
@@ -119,6 +124,10 @@ export * from "./types/wallet-types/PublishTemplateMetadata";
119
124
  export * from "./types/wallet-types/PublishTemplateRequest";
120
125
  export * from "./types/wallet-types/PublishTemplateResponse";
121
126
  export * from "./types/wallet-types/RefreshTokenHash";
127
+ export * from "./types/wallet-types/ResourcesGetManyRequest";
128
+ export * from "./types/wallet-types/ResourcesGetManyResponse";
129
+ export * from "./types/wallet-types/ResourcesGetRequest";
130
+ export * from "./types/wallet-types/ResourcesGetResponse";
122
131
  export * from "./types/wallet-types/SettingsGetResponse";
123
132
  export * from "./types/wallet-types/SettingsSetRequest";
124
133
  export * from "./types/wallet-types/SettingsSetResponse";