@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.
Files changed (140) hide show
  1. package/dist/index.d.ts +32 -22
  2. package/dist/index.js +32 -22
  3. package/dist/tari-indexer-client.d.ts +49 -39
  4. package/dist/tari-indexer-client.js +49 -39
  5. package/dist/types/AbortReason.d.ts +1 -1
  6. package/dist/types/AddressBookPermission.d.ts +1 -0
  7. package/dist/types/AddressBookPermission.js +2 -0
  8. package/dist/types/Blob.d.ts +12 -0
  9. package/dist/types/Blob.js +2 -0
  10. package/dist/types/BlobHashes.d.ts +11 -0
  11. package/dist/types/BlobHashes.js +1 -0
  12. package/dist/types/Blobs.d.ts +6 -0
  13. package/dist/types/Blobs.js +1 -0
  14. package/dist/types/BlockHeader.d.ts +2 -2
  15. package/dist/types/Component.d.ts +6 -0
  16. package/dist/types/Component.js +1 -0
  17. package/dist/types/ComponentHeader.d.ts +0 -3
  18. package/dist/types/ExecuteResult.d.ts +2 -1
  19. package/dist/types/FeeSource.d.ts +1 -1
  20. package/dist/types/ForeignProposalAtom.d.ts +2 -1
  21. package/dist/types/ForeignProposalAtom.js +0 -1
  22. package/dist/types/Instruction.d.ts +5 -1
  23. package/dist/types/InstructionArg.d.ts +3 -1
  24. package/dist/types/JrpcPermission.d.ts +4 -1
  25. package/dist/types/LeaderFee.d.ts +2 -2
  26. package/dist/types/LockedEpoch.d.ts +6 -0
  27. package/dist/types/LockedEpoch.js +1 -0
  28. package/dist/types/PrunedTransaction.d.ts +12 -0
  29. package/dist/types/PrunedTransaction.js +1 -0
  30. package/dist/types/PrunedTransactionV1.d.ts +13 -0
  31. package/dist/types/PrunedTransactionV1.js +1 -0
  32. package/dist/types/PrunedUnsealedTransactionV1.d.ts +9 -0
  33. package/dist/types/PrunedUnsealedTransactionV1.js +1 -0
  34. package/dist/types/PrunedUnsignedTransactionV1.d.ts +31 -0
  35. package/dist/types/PrunedUnsignedTransactionV1.js +1 -0
  36. package/dist/types/ResourceAccessRules.d.ts +6 -0
  37. package/dist/types/SubstateValue.d.ts +2 -2
  38. package/dist/types/TemplateMetadata.d.ts +10 -0
  39. package/dist/types/TransactionAtom.d.ts +1 -1
  40. package/dist/types/TransactionPoolRecord.d.ts +7 -2
  41. package/dist/types/TransactionReceipt.d.ts +2 -1
  42. package/dist/types/UnsignedTransactionV1.d.ts +8 -0
  43. package/dist/types/UnspentOutput.d.ts +1 -1
  44. package/dist/types/WalletTransaction.d.ts +7 -2
  45. package/dist/types/tari-indexer-client/GetLatestEpochCheckpointResponse.d.ts +3 -0
  46. package/dist/types/tari-indexer-client/GetLatestEpochCheckpointResponse.js +2 -0
  47. package/dist/types/tari-indexer-client/GetNetworkSyncStateResponse.d.ts +9 -0
  48. package/dist/types/tari-indexer-client/GetNonFungiblesRequest.d.ts +2 -2
  49. package/dist/types/tari-indexer-client/IndexerGetEpochManagerStatsResponse.d.ts +1 -1
  50. package/dist/types/tari-indexer-client/ListEpochCheckpointsRequest.d.ts +11 -0
  51. package/dist/types/tari-indexer-client/ListEpochCheckpointsRequest.js +1 -0
  52. package/dist/types/tari-indexer-client/ListEpochCheckpointsResponse.d.ts +3 -0
  53. package/dist/types/tari-indexer-client/ListEpochCheckpointsResponse.js +2 -0
  54. package/dist/types/tari-indexer-client/ListTemplateCatalogueRequest.d.ts +2 -1
  55. package/dist/types/tari-indexer-client/ListTemplateCatalogueRequest.js +0 -1
  56. package/dist/types/tari-indexer-client/ListWatchedSubstatesRequest.d.ts +6 -0
  57. package/dist/types/tari-indexer-client/ListWatchedSubstatesRequest.js +1 -0
  58. package/dist/types/tari-indexer-client/ListWatchedSubstatesResponse.d.ts +4 -0
  59. package/dist/types/tari-indexer-client/ListWatchedSubstatesResponse.js +1 -0
  60. package/dist/types/tari-indexer-client/ListWatchedTemplatesResponse.d.ts +4 -0
  61. package/dist/types/tari-indexer-client/ListWatchedTemplatesResponse.js +1 -0
  62. package/dist/types/tari-indexer-client/QueryTransactionEventsRequest.d.ts +7 -0
  63. package/dist/types/tari-indexer-client/StreamTransactionEventsRequest.d.ts +7 -0
  64. package/dist/types/tari-indexer-client/TransactionEntry.d.ts +6 -2
  65. package/dist/types/tari-indexer-client/ValidatorConsensusState.d.ts +1 -0
  66. package/dist/types/tari-indexer-client/ValidatorConsensusState.js +2 -0
  67. package/dist/types/tari-indexer-client/ValidatorStatus.d.ts +23 -0
  68. package/dist/types/tari-indexer-client/ValidatorStatus.js +1 -0
  69. package/dist/types/tari-indexer-client/WatchedSubstateItem.d.ts +6 -0
  70. package/dist/types/tari-indexer-client/WatchedSubstateItem.js +1 -0
  71. package/dist/types/tari-indexer-client/WatchedTemplateItem.d.ts +5 -0
  72. package/dist/types/tari-indexer-client/WatchedTemplateItem.js +1 -0
  73. package/dist/types/validator-node-client/GetBlocksCountResponse.d.ts +1 -1
  74. package/dist/types/validator-node-client/GetEpochManagerStatsResponse.d.ts +1 -1
  75. package/dist/types/validator-node-client/VNCommitteeShardInfo.d.ts +2 -1
  76. package/dist/types/validator-node-client/VNLogEntry.d.ts +1 -1
  77. package/dist/types/wallet-types/AccountsCreateFreeTestCoinsRequest.d.ts +1 -1
  78. package/dist/types/wallet-types/AccountsCreateFreeTestCoinsResponse.d.ts +1 -1
  79. package/dist/types/wallet-types/AccountsListResponse.d.ts +1 -1
  80. package/dist/types/wallet-types/AccountsTransferRequest.d.ts +1 -1
  81. package/dist/types/wallet-types/AddressBookAddRequest.d.ts +5 -0
  82. package/dist/types/wallet-types/AddressBookAddRequest.js +2 -0
  83. package/dist/types/wallet-types/AddressBookAddResponse.d.ts +4 -0
  84. package/dist/types/wallet-types/AddressBookAddResponse.js +1 -0
  85. package/dist/types/wallet-types/AddressBookDeleteRequest.d.ts +3 -0
  86. package/dist/types/wallet-types/AddressBookDeleteRequest.js +2 -0
  87. package/dist/types/wallet-types/AddressBookDeleteResponse.d.ts +1 -0
  88. package/dist/types/wallet-types/AddressBookDeleteResponse.js +2 -0
  89. package/dist/types/wallet-types/AddressBookEntry.d.ts +6 -0
  90. package/dist/types/wallet-types/AddressBookEntry.js +2 -0
  91. package/dist/types/wallet-types/AddressBookGetRequest.d.ts +3 -0
  92. package/dist/types/wallet-types/AddressBookGetRequest.js +2 -0
  93. package/dist/types/wallet-types/AddressBookGetResponse.d.ts +4 -0
  94. package/dist/types/wallet-types/AddressBookGetResponse.js +1 -0
  95. package/dist/types/wallet-types/AddressBookListRequest.d.ts +1 -0
  96. package/dist/types/wallet-types/AddressBookListRequest.js +2 -0
  97. package/dist/types/wallet-types/AddressBookListResponse.d.ts +4 -0
  98. package/dist/types/wallet-types/AddressBookListResponse.js +1 -0
  99. package/dist/types/wallet-types/AddressBookUpdateRequest.d.ts +6 -0
  100. package/dist/types/wallet-types/AddressBookUpdateRequest.js +2 -0
  101. package/dist/types/wallet-types/AddressBookUpdateResponse.d.ts +4 -0
  102. package/dist/types/wallet-types/AddressBookUpdateResponse.js +1 -0
  103. package/dist/types/wallet-types/CallInstructionRequest.d.ts +1 -2
  104. package/dist/types/wallet-types/ClaimBurnRequest.d.ts +1 -1
  105. package/dist/types/wallet-types/ClaimBurnResponse.d.ts +5 -0
  106. package/dist/types/wallet-types/ClaimValidatorFeesRequest.d.ts +1 -1
  107. package/dist/types/wallet-types/ClaimValidatorFeesResponse.d.ts +1 -1
  108. package/dist/types/wallet-types/ConfidentialTransferRequest.d.ts +1 -1
  109. package/dist/types/wallet-types/ConfidentialViewVaultBalanceRequest.d.ts +1 -1
  110. package/dist/types/wallet-types/FeePoolDetails.d.ts +1 -1
  111. package/dist/types/wallet-types/KeysCreateResponse.d.ts +1 -1
  112. package/dist/types/wallet-types/KeysSetActiveRequest.d.ts +1 -1
  113. package/dist/types/wallet-types/MintFaucetNftRequest.d.ts +1 -1
  114. package/dist/types/wallet-types/PublishTemplateRequest.d.ts +1 -1
  115. package/dist/types/wallet-types/SettingsGetResponse.d.ts +1 -0
  116. package/dist/types/wallet-types/SettingsSetRequest.d.ts +2 -1
  117. package/dist/types/wallet-types/StealthTransferRequest.d.ts +1 -1
  118. package/dist/types/wallet-types/SwapPoolGetExchangeRateRequest.d.ts +9 -0
  119. package/dist/types/wallet-types/SwapPoolGetExchangeRateRequest.js +1 -0
  120. package/dist/types/wallet-types/SwapPoolGetExchangeRateResponse.d.ts +12 -0
  121. package/dist/types/wallet-types/SwapPoolGetExchangeRateResponse.js +1 -0
  122. package/dist/types/wallet-types/SwapPoolInfo.d.ts +8 -0
  123. package/dist/types/wallet-types/SwapPoolInfo.js +1 -0
  124. package/dist/types/wallet-types/SwapPoolsListRequest.d.ts +9 -0
  125. package/dist/types/wallet-types/SwapPoolsListRequest.js +2 -0
  126. package/dist/types/wallet-types/SwapPoolsListResponse.d.ts +4 -0
  127. package/dist/types/wallet-types/SwapPoolsListResponse.js +1 -0
  128. package/dist/types/wallet-types/TemplatesListAuthoredResponse.d.ts +1 -1
  129. package/dist/types/wallet-types/TransactionGetResponse.d.ts +10 -2
  130. package/dist/types/wallet-types/TransactionSubmitDryRunResponse.d.ts +8 -1
  131. package/dist/types/wallet-types/TransactionSubmitManifestRequest.d.ts +15 -1
  132. package/dist/types/wallet-types/TransactionSubmitManifestResponse.d.ts +5 -0
  133. package/dist/types/wallet-types/TransactionWaitResultResponse.d.ts +1 -1
  134. package/dist/types/wallet-types/TransferNftRequest.d.ts +1 -1
  135. package/dist/types/wallet-types/TransferNftResponse.d.ts +2 -2
  136. package/dist/validator-node-client.d.ts +42 -42
  137. package/dist/validator-node-client.js +42 -42
  138. package/dist/wallet-types.d.ts +144 -128
  139. package/dist/wallet-types.js +144 -128
  140. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  import type { VNLogLevel } from "./VNLogLevel";
2
2
  export type VNLogEntry = {
3
- timestamp: number;
3
+ timestamp: bigint;
4
4
  message: string;
5
5
  level: VNLogLevel;
6
6
  };
@@ -1,5 +1,5 @@
1
1
  import type { ComponentAddressOrName } from "./ComponentAddressOrName";
2
2
  export type AccountsCreateFreeTestCoinsRequest = {
3
3
  account: ComponentAddressOrName;
4
- max_fee: number | null;
4
+ max_fee: bigint;
5
5
  };
@@ -7,7 +7,7 @@ export type AccountsCreateFreeTestCoinsResponse = {
7
7
  account: Account;
8
8
  transaction_id: TransactionId;
9
9
  amount: Amount;
10
- fee: number;
10
+ fee: bigint;
11
11
  result: FinalizeResult;
12
12
  address: OotleAddress;
13
13
  };
@@ -1,5 +1,5 @@
1
1
  import type { AccountInfo } from "./AccountInfo";
2
2
  export type AccountsListResponse = {
3
3
  accounts: Array<AccountInfo>;
4
- total: number;
4
+ total: bigint;
5
5
  };
@@ -7,7 +7,7 @@ export type AccountsTransferRequest = {
7
7
  amount: Amount;
8
8
  resource_address: ResourceAddress;
9
9
  destination_public_key: RistrettoPublicKeyBytes;
10
- max_fee: number | null;
10
+ max_fee: bigint;
11
11
  proof_from_badge_resource: ResourceAddress | null;
12
12
  dry_run: boolean;
13
13
  };
@@ -0,0 +1,5 @@
1
+ export type AddressBookAddRequest = {
2
+ name: string;
3
+ address: string;
4
+ note: string | null;
5
+ };
@@ -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,4 @@
1
+ import type { AddressBookEntry } from "./AddressBookEntry";
2
+ export type AddressBookAddResponse = {
3
+ entry: AddressBookEntry;
4
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ export type AddressBookDeleteRequest = {
2
+ name: string;
3
+ };
@@ -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 @@
1
+ export type AddressBookDeleteResponse = 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,6 @@
1
+ export type AddressBookEntry = {
2
+ id: number;
3
+ name: string;
4
+ address: string;
5
+ note: string | null;
6
+ };
@@ -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,3 @@
1
+ export type AddressBookGetRequest = {
2
+ name: string;
3
+ };
@@ -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,4 @@
1
+ import type { AddressBookEntry } from "./AddressBookEntry";
2
+ export type AddressBookGetResponse = {
3
+ entry: AddressBookEntry;
4
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export type AddressBookListRequest = 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,4 @@
1
+ import type { AddressBookEntry } from "./AddressBookEntry";
2
+ export type AddressBookListResponse = {
3
+ entries: Array<AddressBookEntry>;
4
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ export type AddressBookUpdateRequest = {
2
+ name: string;
3
+ new_name: string | null;
4
+ address: string | null;
5
+ note: string | null;
6
+ };
@@ -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,4 @@
1
+ import type { AddressBookEntry } from "./AddressBookEntry";
2
+ export type AddressBookUpdateResponse = {
3
+ entry: AddressBookEntry;
4
+ };
@@ -4,8 +4,7 @@ import type { ComponentAddressOrName } from "./ComponentAddressOrName";
4
4
  export type CallInstructionRequest = {
5
5
  instructions: Array<Instruction>;
6
6
  fee_account: ComponentAddressOrName;
7
- dump_outputs_into: ComponentAddressOrName | null;
8
- max_fee: number;
7
+ max_fee: bigint;
9
8
  inputs: Array<SubstateRequirement>;
10
9
  override_inputs: boolean | null;
11
10
  new_outputs: number | null;
@@ -3,6 +3,6 @@ import type { ComponentAddressOrName } from "./ComponentAddressOrName";
3
3
  export type ClaimBurnRequest = {
4
4
  account: ComponentAddressOrName;
5
5
  claim_proof: ClaimBurnProof;
6
- max_fee: number | null;
6
+ max_fee: bigint;
7
7
  is_dry_run: boolean;
8
8
  };
@@ -2,6 +2,11 @@ import type { ExecuteResult } from "../ExecuteResult";
2
2
  import type { TransactionId } from "../TransactionId";
3
3
  export type ClaimBurnResponse = {
4
4
  transaction_id: TransactionId;
5
+ /**
6
+ * The minimum fee required to submit this transaction. Only present for dry runs.
7
+ * Includes a +1 buffer over `total_fees_charged` to account for storage fee rounding
8
+ * differences between the dry run and actual submission.
9
+ */
5
10
  required_fees: number | null;
6
11
  dry_run_result: ExecuteResult | null;
7
12
  };
@@ -3,7 +3,7 @@ import type { ComponentAddressOrName } from "./ComponentAddressOrName";
3
3
  export type ClaimValidatorFeesRequest = {
4
4
  account: ComponentAddressOrName | null;
5
5
  claim_key_index: number | null;
6
- max_fee: number | null;
6
+ max_fee: bigint;
7
7
  shards: Array<Shard>;
8
8
  dry_run: boolean;
9
9
  };
@@ -2,6 +2,6 @@ import type { FinalizeResult } from "../FinalizeResult";
2
2
  import type { TransactionId } from "../TransactionId";
3
3
  export type ClaimValidatorFeesResponse = {
4
4
  transaction_id: TransactionId;
5
- fee: number;
5
+ fee: bigint;
6
6
  result: FinalizeResult;
7
7
  };
@@ -10,7 +10,7 @@ export type ConfidentialTransferRequest = {
10
10
  input_selection: UtxoInputSelection;
11
11
  resource_address: ResourceAddress;
12
12
  destination_address: OotleAddress;
13
- max_fee: number | null;
13
+ max_fee: bigint;
14
14
  output_to_revealed: boolean;
15
15
  proof_from_badge_resource: ResourceAddress | null;
16
16
  memo?: Memo | null;
@@ -3,5 +3,5 @@ export type ConfidentialViewVaultBalanceRequest = {
3
3
  vault_id: VaultId;
4
4
  minimum_expected_value: number | null;
5
5
  maximum_expected_value: number | null;
6
- view_key_id: number;
6
+ view_key_id: bigint;
7
7
  };
@@ -1,5 +1,5 @@
1
1
  import type { ValidatorFeePoolAddress } from "../ValidatorFeePoolAddress";
2
2
  export type FeePoolDetails = {
3
3
  address: ValidatorFeePoolAddress;
4
- amount: number;
4
+ amount: bigint;
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import type { RistrettoPublicKeyBytes } from "../RistrettoPublicKeyBytes";
2
2
  export type KeysCreateResponse = {
3
- id: number;
3
+ id: bigint;
4
4
  public_key: RistrettoPublicKeyBytes;
5
5
  };
@@ -1,3 +1,3 @@
1
1
  export type KeysSetActiveRequest = {
2
- index: number;
2
+ index: bigint;
3
3
  };
@@ -3,5 +3,5 @@ export type MintFaucetNftRequest = {
3
3
  account: ComponentAddressOrName;
4
4
  mutable_data: object;
5
5
  number_to_mint: bigint;
6
- max_fee: number | null;
6
+ max_fee: bigint | null;
7
7
  };
@@ -3,7 +3,7 @@ import type { PublishTemplateMetadata } from "./PublishTemplateMetadata";
3
3
  export type PublishTemplateRequest = {
4
4
  binary: string;
5
5
  fee_account: ComponentAddressOrName | null;
6
- max_fee: number;
6
+ max_fee: bigint;
7
7
  /**
8
8
  * Attempt to infer inputs and their dependencies from instructions. If false, the provided transaction must
9
9
  * contain the required inputs.
@@ -4,4 +4,5 @@ export type SettingsGetResponse = {
4
4
  indexer_url: string;
5
5
  network: NetworkInfo;
6
6
  advanced_ui_features: AdvancedUiFeatures;
7
+ claimed_accounts: Array<string>;
7
8
  };
@@ -1,5 +1,6 @@
1
1
  import type { AdvancedUiFeatures } from "./AdvancedUiFeatures";
2
2
  export type SettingsSetRequest = {
3
- indexer_url: string;
3
+ indexer_url: string | null;
4
4
  advanced_ui_features: AdvancedUiFeatures | null;
5
+ claimed_accounts: Array<string> | null;
5
6
  };
@@ -11,6 +11,6 @@ export type StealthTransferRequest = {
11
11
  resource_address: ResourceAddress;
12
12
  badge_usage?: BadgeUsage;
13
13
  transfers: Array<StealthTransfer>;
14
- max_fee: number;
14
+ max_fee: bigint;
15
15
  dry_run: boolean;
16
16
  };
@@ -0,0 +1,9 @@
1
+ import type { Amount } from "../Amount";
2
+ export type SwapPoolGetExchangeRateRequest = {
3
+ pool_address: string;
4
+ /**
5
+ * If provided, the response will include the calculated swap input amount needed
6
+ * to receive at least this amount of TARI from the pool (with a slippage margin).
7
+ */
8
+ desired_tari_output: Amount | null;
9
+ };
@@ -0,0 +1,12 @@
1
+ import type { Amount } from "../Amount";
2
+ export type SwapPoolGetExchangeRateResponse = {
3
+ resource_a: string;
4
+ balance_a: Amount;
5
+ resource_b: string;
6
+ balance_b: Amount;
7
+ /**
8
+ * The calculated input amount of the non-TARI token needed to receive at least
9
+ * `desired_tari_output` TARI from the pool. Only present when `desired_tari_output` was provided.
10
+ */
11
+ swap_input_amount?: Amount | null;
12
+ };
@@ -0,0 +1,8 @@
1
+ import type { Amount } from "../Amount";
2
+ export type SwapPoolInfo = {
3
+ pool_address: string;
4
+ resource_a: string;
5
+ balance_a: Amount;
6
+ resource_b: string;
7
+ balance_b: Amount;
8
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,9 @@
1
+ export type SwapPoolsListRequest = {
2
+ /**
3
+ * Filter pools to only those containing this exact resource pair (in any order).
4
+ * Both must be provided for filtering to take effect.
5
+ */
6
+ resource_pair: [string, string] | null;
7
+ limit: bigint | null;
8
+ offset: bigint | null;
9
+ };
@@ -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,4 @@
1
+ import type { SwapPoolInfo } from "./SwapPoolInfo";
2
+ export type SwapPoolsListResponse = {
3
+ pools: Array<SwapPoolInfo>;
4
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -1,5 +1,5 @@
1
1
  import type { AuthoredTemplate } from "./AuthoredTemplate";
2
2
  export type TemplatesListAuthoredResponse = {
3
3
  templates: Array<AuthoredTemplate>;
4
- total_templates: number;
4
+ total_templates: bigint;
5
5
  };
@@ -1,10 +1,18 @@
1
1
  import type { FinalizeResult } from "../FinalizeResult";
2
- import type { Transaction } from "../Transaction";
2
+ import type { PrunedTransaction } from "../PrunedTransaction";
3
3
  import type { TransactionStatus } from "../TransactionStatus";
4
4
  export type TransactionGetResponse = {
5
- transaction: Transaction;
5
+ /**
6
+ * Pruned transaction — blob commitments are present but raw blob bytes are omitted to
7
+ * keep API responses small. Use a separate endpoint to fetch blob payloads if required.
8
+ */
9
+ transaction: PrunedTransaction;
6
10
  result: FinalizeResult | null;
7
11
  status: TransactionStatus;
12
+ /**
13
+ * The estimated fee required for the transaction. For dry runs, this is the minimum fee
14
+ * that should be used as `max_fee` for the actual submission.
15
+ */
8
16
  final_fee: number | null;
9
17
  invalid_reason: string | null;
10
18
  last_update_time: string;
@@ -2,6 +2,13 @@ import type { ExecuteResult } from "../ExecuteResult";
2
2
  import type { TransactionId } from "../TransactionId";
3
3
  export type TransactionSubmitDryRunResponse = {
4
4
  transaction_id: TransactionId;
5
- required_fees: number;
5
+ /**
6
+ * The minimum fee required to submit this transaction. Includes a +1 buffer over
7
+ * `total_fees_charged` to account for storage fee rounding differences between the dry run
8
+ * and actual submission (the vault balance changes with a different max_fee, which can shift
9
+ * `floor(total_bytes / 4)` by 1 at a rounding boundary). Non-refundable overcharge is
10
+ * subtracted since it won't recur with a tighter max_fee.
11
+ */
12
+ required_fees: bigint;
6
13
  result: ExecuteResult;
7
14
  };
@@ -1,11 +1,25 @@
1
+ import type { Blob } from "../Blob";
1
2
  import type { KeyId } from "./KeyId";
2
3
  export type TransactionSubmitManifestRequest = {
3
4
  manifest: string;
4
5
  variables: {
5
6
  [key in string]?: string;
6
7
  };
8
+ /**
9
+ * The key used for the seal (owner) signature. If not provided, defaults to the default account's owner key.
10
+ */
7
11
  seal_signer_key_id: KeyId | null;
12
+ /**
13
+ * Additional signing keys for accounts involved in the transaction (e.g. for multi-account manifests).
14
+ */
8
15
  signing_key_ids: Array<KeyId>;
9
- max_fee: number;
16
+ max_fee: bigint;
10
17
  dry_run: boolean;
18
+ /**
19
+ * Blob payloads referenced from the manifest via `blob!(name)`. Keys are the names used
20
+ * in the manifest text; values are base64-encoded byte payloads in JSON.
21
+ */
22
+ blobs: {
23
+ [key in string]?: Blob;
24
+ };
11
25
  };
@@ -2,6 +2,11 @@ import type { ExecuteResult } from "../ExecuteResult";
2
2
  import type { TransactionId } from "../TransactionId";
3
3
  export type TransactionSubmitManifestResponse = {
4
4
  transaction_id: TransactionId;
5
+ /**
6
+ * The minimum fee required to submit this transaction. Only present for dry runs.
7
+ * Includes a +1 buffer over `total_fees_charged` to account for storage fee rounding
8
+ * differences between the dry run and actual submission.
9
+ */
5
10
  required_fees: number | null;
6
11
  result: ExecuteResult | null;
7
12
  };
@@ -5,6 +5,6 @@ export type TransactionWaitResultResponse = {
5
5
  transaction_id: TransactionId;
6
6
  result: FinalizeResult | null;
7
7
  status: TransactionStatus;
8
- final_fee: number;
8
+ final_fee: bigint;
9
9
  timed_out: boolean;
10
10
  };
@@ -8,6 +8,6 @@ export type TransferNftRequest = {
8
8
  fee_payer_account: ComponentAddressOrName;
9
9
  source_account: ComponentAddressOrName;
10
10
  target_account_address: OotleAddress;
11
- max_fee: number;
11
+ max_fee: bigint;
12
12
  dry_run: boolean;
13
13
  };
@@ -2,7 +2,7 @@ import type { FinalizeResult } from "../FinalizeResult";
2
2
  import type { TransactionId } from "../TransactionId";
3
3
  export type TransferNftResponse = {
4
4
  transaction_id: TransactionId;
5
- fee: number;
6
- fee_refunded: number;
5
+ fee: bigint;
6
+ fee_refunded: bigint;
7
7
  result: FinalizeResult;
8
8
  };
@@ -1,53 +1,53 @@
1
- export * from "./types/validator-node-client/GetCommitteeRequest";
2
- export * from "./types/validator-node-client/VNTemplateMetadata";
3
- export * from "./types/validator-node-client/GetBlocksCountResponse";
4
- export * from "./types/validator-node-client/VNAddPeerRequest";
5
- export * from "./types/validator-node-client/GetCommitteeResponse";
6
- export * from "./types/validator-node-client/VNSubmitTransactionRequest";
7
- export * from "./types/validator-node-client/VNConnectionDirection";
8
- export * from "./types/validator-node-client/VNAddPeerResponse";
9
- export * from "./types/validator-node-client/VNCommitteeShardInfo";
10
- export * from "./types/validator-node-client/VNFunctionDef";
11
- export * from "./types/validator-node-client/LayerOneTransactionParams";
12
1
  export * from "./types/validator-node-client/ValidatorNodeChange";
13
- export * from "./types/validator-node-client/PrepareLayerOneTransactionResponse";
14
- export * from "./types/validator-node-client/VNGetAllVnsResponse";
15
- export * from "./types/validator-node-client/TemplateAbi";
16
- export * from "./types/validator-node-client/GetMempoolStatsResponse";
17
- export * from "./types/validator-node-client/GetBlockResponse";
18
- export * from "./types/validator-node-client/VNLogLevel";
19
- export * from "./types/validator-node-client/VNGetAllVnsRequest";
20
- export * from "./types/validator-node-client/GetBaseLayerEpochChangesRequest";
21
- export * from "./types/validator-node-client/GetBaseLayerEpochChangesResponse";
22
- export * from "./types/validator-node-client/PrepareLayerOneTransactionRequest";
2
+ export * from "./types/validator-node-client/VNSubmitTransactionRequest";
3
+ export * from "./types/validator-node-client/GetFilteredBlocksCountRequest";
23
4
  export * from "./types/validator-node-client/VNLogEntry";
24
5
  export * from "./types/validator-node-client/GetShardKeyRequest";
25
- export * from "./types/validator-node-client/GetBlockRequest";
6
+ export * from "./types/validator-node-client/VNGetTransactionResultResponse";
26
7
  export * from "./types/validator-node-client/VNSubmitTransactionResponse";
27
- export * from "./types/validator-node-client/DryRunTransactionFinalizeResult";
28
- export * from "./types/validator-node-client/GetTransactionResponse";
29
- export * from "./types/validator-node-client/GetStateResponse";
30
- export * from "./types/validator-node-client/VNGetSubstateRequest";
31
- export * from "./types/validator-node-client/VNGetSubstateResponse";
32
- export * from "./types/validator-node-client/ListBlocksResponse";
33
- export * from "./types/validator-node-client/SubstateStatus";
34
- export * from "./types/validator-node-client/ValidatorNode";
35
- export * from "./types/validator-node-client/GetFilteredBlocksCountRequest";
36
- export * from "./types/validator-node-client/ListBlocksRequest";
37
- export * from "./types/validator-node-client/GetEpochManagerStatsResponse";
38
8
  export * from "./types/validator-node-client/GetTxPoolResponse";
39
- export * from "./types/validator-node-client/VNConnection";
40
- export * from "./types/validator-node-client/GetConsensusStatusResponse";
41
9
  export * from "./types/validator-node-client/GetTemplateResponse";
42
- export * from "./types/validator-node-client/VNGetConnectionsResponse";
43
- export * from "./types/validator-node-client/VNGetCommsStatsResponse";
44
- export * from "./types/validator-node-client/GetTemplateRequest";
10
+ export * from "./types/validator-node-client/GetBlocksCountResponse";
11
+ export * from "./types/validator-node-client/VNConnectionDirection";
12
+ export * from "./types/validator-node-client/VNAddPeerRequest";
13
+ export * from "./types/validator-node-client/PrepareLayerOneTransactionResponse";
14
+ export * from "./types/validator-node-client/GetTransactionRequest";
45
15
  export * from "./types/validator-node-client/GetStateRequest";
16
+ export * from "./types/validator-node-client/VNGetIdentityResponse";
17
+ export * from "./types/validator-node-client/VNFunctionDef";
18
+ export * from "./types/validator-node-client/LayerOneTransactionParams";
46
19
  export * from "./types/validator-node-client/GetBlocksRequest";
47
- export * from "./types/validator-node-client/VNGetTransactionResultRequest";
48
- export * from "./types/validator-node-client/GetTransactionRequest";
49
- export * from "./types/validator-node-client/VNGetTransactionResultResponse";
20
+ export * from "./types/validator-node-client/GetTemplateRequest";
50
21
  export * from "./types/validator-node-client/GetShardKeyResponse";
22
+ export * from "./types/validator-node-client/GetBaseLayerEpochChangesResponse";
23
+ export * from "./types/validator-node-client/VNGetCommsStatsResponse";
24
+ export * from "./types/validator-node-client/GetTransactionResponse";
25
+ export * from "./types/validator-node-client/GetCommitteeResponse";
26
+ export * from "./types/validator-node-client/VNGetAllVnsRequest";
27
+ export * from "./types/validator-node-client/GetCommitteeRequest";
28
+ export * from "./types/validator-node-client/DryRunTransactionFinalizeResult";
29
+ export * from "./types/validator-node-client/GetStateResponse";
30
+ export * from "./types/validator-node-client/GetBaseLayerEpochChangesRequest";
31
+ export * from "./types/validator-node-client/SubstateStatus";
32
+ export * from "./types/validator-node-client/GetConsensusStatusResponse";
51
33
  export * from "./types/validator-node-client/GetBlocksResponse";
52
- export * from "./types/validator-node-client/VNGetIdentityResponse";
34
+ export * from "./types/validator-node-client/ListBlocksResponse";
35
+ export * from "./types/validator-node-client/GetBlockRequest";
36
+ export * from "./types/validator-node-client/VNGetTransactionResultRequest";
37
+ export * from "./types/validator-node-client/VNTemplateMetadata";
38
+ export * from "./types/validator-node-client/VNLogLevel";
39
+ export * from "./types/validator-node-client/VNAddPeerResponse";
40
+ export * from "./types/validator-node-client/VNConnection";
41
+ export * from "./types/validator-node-client/ValidatorNode";
42
+ export * from "./types/validator-node-client/PrepareLayerOneTransactionRequest";
43
+ export * from "./types/validator-node-client/VNGetConnectionsResponse";
44
+ export * from "./types/validator-node-client/ListBlocksRequest";
53
45
  export * from "./types/validator-node-client/GetNetworkCommitteeResponse";
46
+ export * from "./types/validator-node-client/VNGetSubstateRequest";
47
+ export * from "./types/validator-node-client/GetMempoolStatsResponse";
48
+ export * from "./types/validator-node-client/TemplateAbi";
49
+ export * from "./types/validator-node-client/VNGetSubstateResponse";
50
+ export * from "./types/validator-node-client/VNGetAllVnsResponse";
51
+ export * from "./types/validator-node-client/GetEpochManagerStatsResponse";
52
+ export * from "./types/validator-node-client/GetBlockResponse";
53
+ export * from "./types/validator-node-client/VNCommitteeShardInfo";