@midnight-ntwrk/midnight-js-types 3.0.0-alpha.7 → 3.0.0-alpha.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -578,14 +578,37 @@ interface PublicDataProvider {
578
578
  watchForUnshieldedBalances(contractAddress: ContractAddress): Promise<UnshieldedBalances>;
579
579
  /**
580
580
  * Retrieves data of the deployment transaction for the contract at the given contract address.
581
- * Waits indefinitely for matching data to appear.
581
+ *
582
+ * **IMPORTANT: This method waits indefinitely** until the deployment transaction appears on the
583
+ * blockchain. It will never timeout or reject unless an error occurs.
584
+ *
585
+ * Custom implementations MUST maintain this indefinite waiting behavior to ensure consistency
586
+ * across all PublicDataProvider implementations. Do not implement timeouts in this method.
587
+ *
582
588
  * @param contractAddress The address of the contract of interest.
589
+ *
590
+ * @returns A promise that resolves with finalized transaction data when the deployment appears on-chain.
591
+ * The promise never rejects due to timeout.
583
592
  */
584
593
  watchForDeployTxData(contractAddress: ContractAddress): Promise<FinalizedTxData>;
585
594
  /**
586
595
  * Retrieves data of the transaction containing the call or deployment with the given identifier.
587
- * Waits indefinitely for matching data to appear.
596
+ *
597
+ * **IMPORTANT: This method waits indefinitely** until the transaction appears on the blockchain.
598
+ * It will never timeout or reject unless an error occurs.
599
+ *
600
+ * Custom implementations MUST maintain this indefinite waiting behavior to ensure consistency
601
+ * across all PublicDataProvider implementations. Do not implement timeouts in this method.
602
+ *
603
+ * Applications using this method should be aware that:
604
+ * - The promise will not resolve until the transaction appears on-chain
605
+ * - If a transaction is invalid and never appears, this will never return
606
+ * - Consider using application-level timeouts or cancellation mechanisms if needed
607
+ *
588
608
  * @param txId The identifier of the call or deployment of interest.
609
+ *
610
+ * @returns A promise that resolves with finalized transaction data when the transaction appears on-chain.
611
+ * The promise never rejects due to timeout.
589
612
  */
590
613
  watchForTxData(txId: TransactionId): Promise<FinalizedTxData>;
591
614
  /**
package/dist/index.d.mts CHANGED
@@ -578,14 +578,37 @@ interface PublicDataProvider {
578
578
  watchForUnshieldedBalances(contractAddress: ContractAddress): Promise<UnshieldedBalances>;
579
579
  /**
580
580
  * Retrieves data of the deployment transaction for the contract at the given contract address.
581
- * Waits indefinitely for matching data to appear.
581
+ *
582
+ * **IMPORTANT: This method waits indefinitely** until the deployment transaction appears on the
583
+ * blockchain. It will never timeout or reject unless an error occurs.
584
+ *
585
+ * Custom implementations MUST maintain this indefinite waiting behavior to ensure consistency
586
+ * across all PublicDataProvider implementations. Do not implement timeouts in this method.
587
+ *
582
588
  * @param contractAddress The address of the contract of interest.
589
+ *
590
+ * @returns A promise that resolves with finalized transaction data when the deployment appears on-chain.
591
+ * The promise never rejects due to timeout.
583
592
  */
584
593
  watchForDeployTxData(contractAddress: ContractAddress): Promise<FinalizedTxData>;
585
594
  /**
586
595
  * Retrieves data of the transaction containing the call or deployment with the given identifier.
587
- * Waits indefinitely for matching data to appear.
596
+ *
597
+ * **IMPORTANT: This method waits indefinitely** until the transaction appears on the blockchain.
598
+ * It will never timeout or reject unless an error occurs.
599
+ *
600
+ * Custom implementations MUST maintain this indefinite waiting behavior to ensure consistency
601
+ * across all PublicDataProvider implementations. Do not implement timeouts in this method.
602
+ *
603
+ * Applications using this method should be aware that:
604
+ * - The promise will not resolve until the transaction appears on-chain
605
+ * - If a transaction is invalid and never appears, this will never return
606
+ * - Consider using application-level timeouts or cancellation mechanisms if needed
607
+ *
588
608
  * @param txId The identifier of the call or deployment of interest.
609
+ *
610
+ * @returns A promise that resolves with finalized transaction data when the transaction appears on-chain.
611
+ * The promise never rejects due to timeout.
589
612
  */
590
613
  watchForTxData(txId: TransactionId): Promise<FinalizedTxData>;
591
614
  /**
package/dist/index.d.ts CHANGED
@@ -578,14 +578,37 @@ interface PublicDataProvider {
578
578
  watchForUnshieldedBalances(contractAddress: ContractAddress): Promise<UnshieldedBalances>;
579
579
  /**
580
580
  * Retrieves data of the deployment transaction for the contract at the given contract address.
581
- * Waits indefinitely for matching data to appear.
581
+ *
582
+ * **IMPORTANT: This method waits indefinitely** until the deployment transaction appears on the
583
+ * blockchain. It will never timeout or reject unless an error occurs.
584
+ *
585
+ * Custom implementations MUST maintain this indefinite waiting behavior to ensure consistency
586
+ * across all PublicDataProvider implementations. Do not implement timeouts in this method.
587
+ *
582
588
  * @param contractAddress The address of the contract of interest.
589
+ *
590
+ * @returns A promise that resolves with finalized transaction data when the deployment appears on-chain.
591
+ * The promise never rejects due to timeout.
583
592
  */
584
593
  watchForDeployTxData(contractAddress: ContractAddress): Promise<FinalizedTxData>;
585
594
  /**
586
595
  * Retrieves data of the transaction containing the call or deployment with the given identifier.
587
- * Waits indefinitely for matching data to appear.
596
+ *
597
+ * **IMPORTANT: This method waits indefinitely** until the transaction appears on the blockchain.
598
+ * It will never timeout or reject unless an error occurs.
599
+ *
600
+ * Custom implementations MUST maintain this indefinite waiting behavior to ensure consistency
601
+ * across all PublicDataProvider implementations. Do not implement timeouts in this method.
602
+ *
603
+ * Applications using this method should be aware that:
604
+ * - The promise will not resolve until the transaction appears on-chain
605
+ * - If a transaction is invalid and never appears, this will never return
606
+ * - Consider using application-level timeouts or cancellation mechanisms if needed
607
+ *
588
608
  * @param txId The identifier of the call or deployment of interest.
609
+ *
610
+ * @returns A promise that resolves with finalized transaction data when the transaction appears on-chain.
611
+ * The promise never rejects due to timeout.
589
612
  */
590
613
  watchForTxData(txId: TransactionId): Promise<FinalizedTxData>;
591
614
  /**
@@ -109,14 +109,37 @@ export interface PublicDataProvider {
109
109
  watchForUnshieldedBalances(contractAddress: ContractAddress): Promise<UnshieldedBalances>;
110
110
  /**
111
111
  * Retrieves data of the deployment transaction for the contract at the given contract address.
112
- * Waits indefinitely for matching data to appear.
112
+ *
113
+ * **IMPORTANT: This method waits indefinitely** until the deployment transaction appears on the
114
+ * blockchain. It will never timeout or reject unless an error occurs.
115
+ *
116
+ * Custom implementations MUST maintain this indefinite waiting behavior to ensure consistency
117
+ * across all PublicDataProvider implementations. Do not implement timeouts in this method.
118
+ *
113
119
  * @param contractAddress The address of the contract of interest.
120
+ *
121
+ * @returns A promise that resolves with finalized transaction data when the deployment appears on-chain.
122
+ * The promise never rejects due to timeout.
114
123
  */
115
124
  watchForDeployTxData(contractAddress: ContractAddress): Promise<FinalizedTxData>;
116
125
  /**
117
126
  * Retrieves data of the transaction containing the call or deployment with the given identifier.
118
- * Waits indefinitely for matching data to appear.
127
+ *
128
+ * **IMPORTANT: This method waits indefinitely** until the transaction appears on the blockchain.
129
+ * It will never timeout or reject unless an error occurs.
130
+ *
131
+ * Custom implementations MUST maintain this indefinite waiting behavior to ensure consistency
132
+ * across all PublicDataProvider implementations. Do not implement timeouts in this method.
133
+ *
134
+ * Applications using this method should be aware that:
135
+ * - The promise will not resolve until the transaction appears on-chain
136
+ * - If a transaction is invalid and never appears, this will never return
137
+ * - Consider using application-level timeouts or cancellation mechanisms if needed
138
+ *
119
139
  * @param txId The identifier of the call or deployment of interest.
140
+ *
141
+ * @returns A promise that resolves with finalized transaction data when the transaction appears on-chain.
142
+ * The promise never rejects due to timeout.
120
143
  */
121
144
  watchForTxData(txId: TransactionId): Promise<FinalizedTxData>;
122
145
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"public-data-provider.d.ts","sourceRoot":"","sources":["../src/public-data-provider.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,KAAK,EAAE,eAAe,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AACjG,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAEvC,OAAO,KAAK,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAE5E;;GAEG;AACH,MAAM,MAAM,GAAG,GAAG;IAChB,QAAQ,CAAC,IAAI,EAAE,KAAK,CAAC;CACtB,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,MAAM,GAAG;IACnB,QAA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CAAC,EAAE,iBAAiB,GAAG,eAAe,GAC3C,OAAO,CAAC,kBAAkB,GAAG,IAAI,CAAC,CAAC;IAEtC;;;;OAIG;IACH,qBAAqB,CAAC,eAAe,EAAE,eAAe,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;IAEhF;;;;;OAKG;IACH,0BAA0B,CAAC,eAAe,EAAE,eAAe,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAC;IAE1F;;;;;;;;;;;;;OAaG;IACH,oBAAoB,CAAC,eAAe,EAAE,eAAe,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;IAEjF;;;;;;;;;;;;;;;;;;OAkBG;IACH,cAAc,CAAC,IAAI,EAAE,aAAa,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;IAE9D;;;;;;OAMG;IACH,uBAAuB,CAAC,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,6BAA6B,GAAG,UAAU,CAAC,aAAa,CAAC,CAAC;IAEpH;;;;;;OAMG;IACH,4BAA4B,CAAC,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,6BAA6B,GAAG,UAAU,CAAC,kBAAkB,CAAC,CAAC;CAC/H"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midnight-ntwrk/midnight-js-types",
3
- "version": "3.0.0-alpha.7",
3
+ "version": "3.0.0-alpha.9",
4
4
  "description": "Shared data types and interfaces for MidnightJS modules",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",