@tari-project/ootle-ts-bindings 1.24.0 → 1.25.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.
@@ -1,6 +1,10 @@
1
1
  import type { Epoch } from "../Epoch";
2
+ import type { Hash32 } from "../Hash32";
2
3
  export type IndexerGetEpochManagerStatsResponse = {
4
+ /**
5
+ * The current epoch according to the indexer's epoch oracle view
6
+ */
3
7
  current_epoch: Epoch;
4
8
  current_block_height: number;
5
- current_block_hash: string;
9
+ current_block_hash: Hash32;
6
10
  };
@@ -1,4 +1,7 @@
1
1
  import type { TransactionId } from "../TransactionId";
2
2
  export type IndexerGetTransactionResultRequest = {
3
+ /**
4
+ * The ID of the transaction to query the result for
5
+ */
3
6
  transaction_id: TransactionId;
4
7
  };
@@ -1,4 +1,8 @@
1
1
  import type { IndexerTransactionFinalizedResult } from "./IndexerTransactionFinalizedResult";
2
2
  export type IndexerGetTransactionResultResponse = {
3
+ /**
4
+ * The result of the transaction, which may be pending (not yet finalized) or finalized with details such as the
5
+ * final decision, execution result, and timestamps
6
+ */
3
7
  result: IndexerTransactionFinalizedResult;
4
8
  };
@@ -1,4 +1,7 @@
1
1
  import type { TransactionEnvelope } from "../TransactionEnvelope";
2
2
  export type IndexerSubmitTransactionRequest = {
3
+ /**
4
+ * A BOR-encoded transaction envelope, base64 encoded as a string
5
+ */
3
6
  transaction: TransactionEnvelope;
4
7
  };
@@ -1,6 +1,13 @@
1
1
  import type { ExecuteResult } from "../ExecuteResult";
2
2
  import type { TransactionId } from "../TransactionId";
3
3
  export type IndexerSubmitTransactionResponse = {
4
+ /**
5
+ * The ID of the transaction that was dry-run
6
+ */
4
7
  transaction_id: TransactionId;
8
+ /**
9
+ * The result of the dry-run execution, including any emitted events and state changes, but without a final
10
+ * decision or commitment to the ledger
11
+ */
5
12
  result: ExecuteResult;
6
13
  };
@@ -4,7 +4,7 @@ import type { RistrettoPublicKeyBytes } from "../RistrettoPublicKeyBytes";
4
4
  export type TemplateMetadata = {
5
5
  name: string;
6
6
  address: Hash32;
7
- binary_sha: string;
7
+ binary_sha: Hash32;
8
8
  author_public_key: RistrettoPublicKeyBytes;
9
9
  code_size: number;
10
10
  epoch: Epoch;
@@ -0,0 +1,9 @@
1
+ import type { Amount } from "../Amount";
2
+ import type { ComponentAddress } from "../ComponentAddress";
3
+ import type { ResourceAddress } from "../ResourceAddress";
4
+ export type PayFeeWithSwapParams = {
5
+ pool_address: ComponentAddress;
6
+ input_resource: ResourceAddress;
7
+ input_amount: Amount;
8
+ min_xtr_output_amount: Amount;
9
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -3,9 +3,10 @@ import type { UtxoInputSelection } from "../UtxoInputSelection";
3
3
  import type { BadgeUsage } from "./BadgeUsage";
4
4
  import type { ComponentAddressOrName } from "./ComponentAddressOrName";
5
5
  import type { StealthTransfer } from "./StealthTransfer";
6
+ import type { TransferFeeParams } from "./TransferFeeParams";
6
7
  export type StealthTransferRequest = {
7
8
  owner_account: ComponentAddressOrName;
8
- fee_input_selection: UtxoInputSelection;
9
+ fee_params: TransferFeeParams;
9
10
  input_selection: UtxoInputSelection;
10
11
  resource_address: ResourceAddress;
11
12
  badge_usage?: BadgeUsage;
@@ -0,0 +1,6 @@
1
+ import type { UtxoInputSelection } from "../UtxoInputSelection";
2
+ import type { PayFeeWithSwapParams } from "./PayFeeWithSwapParams";
3
+ export type TransferFeeParams = {
4
+ input_selection: UtxoInputSelection;
5
+ pay_fee_with_swap: PayFeeWithSwapParams | null;
6
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -41,6 +41,7 @@ export * from "./types/wallet-types/AuthGetMethodResponse";
41
41
  export * from "./types/wallet-types/TransactionGetRequest";
42
42
  export * from "./types/wallet-types/AuthRevokeTokenResponse";
43
43
  export * from "./types/wallet-types/ProofsFinalizeRequest";
44
+ export * from "./types/wallet-types/PayFeeWithSwapParams";
44
45
  export * from "./types/wallet-types/WebauthnStartRegisterRequest";
45
46
  export * from "./types/wallet-types/FeePoolDetails";
46
47
  export * from "./types/wallet-types/AccountsTransferRequest";
@@ -56,6 +57,7 @@ export * from "./types/wallet-types/ClaimBurnRequest";
56
57
  export * from "./types/wallet-types/KeysListResponse";
57
58
  export * from "./types/wallet-types/KeyId";
58
59
  export * from "./types/wallet-types/SubstatesGetRequest";
60
+ export * from "./types/wallet-types/TransferFeeParams";
59
61
  export * from "./types/wallet-types/TransactionSubmitRequest";
60
62
  export * from "./types/wallet-types/AccountsGetBalancesResponse";
61
63
  export * from "./types/wallet-types/TransactionGetAllResponse";
@@ -43,6 +43,7 @@ export * from "./types/wallet-types/AuthGetMethodResponse";
43
43
  export * from "./types/wallet-types/TransactionGetRequest";
44
44
  export * from "./types/wallet-types/AuthRevokeTokenResponse";
45
45
  export * from "./types/wallet-types/ProofsFinalizeRequest";
46
+ export * from "./types/wallet-types/PayFeeWithSwapParams";
46
47
  export * from "./types/wallet-types/WebauthnStartRegisterRequest";
47
48
  export * from "./types/wallet-types/FeePoolDetails";
48
49
  export * from "./types/wallet-types/AccountsTransferRequest";
@@ -58,6 +59,7 @@ export * from "./types/wallet-types/ClaimBurnRequest";
58
59
  export * from "./types/wallet-types/KeysListResponse";
59
60
  export * from "./types/wallet-types/KeyId";
60
61
  export * from "./types/wallet-types/SubstatesGetRequest";
62
+ export * from "./types/wallet-types/TransferFeeParams";
61
63
  export * from "./types/wallet-types/TransactionSubmitRequest";
62
64
  export * from "./types/wallet-types/AccountsGetBalancesResponse";
63
65
  export * from "./types/wallet-types/TransactionGetAllResponse";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tari-project/ootle-ts-bindings",
3
- "version": "1.24.0",
3
+ "version": "1.25.0",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"