starknet 9.0.0-beta.1 → 9.0.0-beta.2

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/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ # [9.0.0-beta.2](https://github.com/starknet-io/starknet.js/compare/v9.0.0-beta.1...v9.0.0-beta.2) (2025-11-24)
2
+
3
+ ### Bug Fixes
4
+
5
+ - fix also fastWaitForTransaction ([1c1fe69](https://github.com/starknet-io/starknet.js/commit/1c1fe693101cab332262646f7c334233533ec799))
6
+ - remove not more necessary rpc version test ([c783cb2](https://github.com/starknet-io/starknet.js/commit/c783cb20420d460eda5e14917b667105a3606c6c))
7
+ - remove test not rpc0.8 ([4ee93f0](https://github.com/starknet-io/starknet.js/commit/4ee93f04b39d99e4943b5e6545e89b6c5744b9fb))
8
+ - spec 10rc2 ([13ddab9](https://github.com/starknet-io/starknet.js/commit/13ddab953cde0e95207813f849bf1f27fc82e42a))
9
+
1
10
  # [9.0.0-beta.1](https://github.com/starknet-io/starknet.js/compare/v8.9.0...v9.0.0-beta.1) (2025-11-20)
2
11
 
3
12
  ### Bug Fixes
package/dist/index.d.ts CHANGED
@@ -4191,6 +4191,13 @@ declare class RpcChannel {
4191
4191
  new_root?: undefined;
4192
4192
  status?: undefined;
4193
4193
  parent_hash?: undefined;
4194
+ event_commitment?: undefined;
4195
+ transaction_commitment?: undefined;
4196
+ receipt_commitment?: undefined;
4197
+ state_diff_commitment?: undefined;
4198
+ event_count?: undefined;
4199
+ transaction_count?: undefined;
4200
+ state_diff_length?: undefined;
4194
4201
  })>;
4195
4202
  getBlockWithTxs(blockIdentifier?: BlockIdentifier): Promise<({
4196
4203
  status: RPC.BLOCK_STATUS;
@@ -4199,6 +4206,13 @@ declare class RpcChannel {
4199
4206
  new_root?: undefined;
4200
4207
  status?: undefined;
4201
4208
  parent_hash?: undefined;
4209
+ event_commitment?: undefined;
4210
+ transaction_commitment?: undefined;
4211
+ receipt_commitment?: undefined;
4212
+ state_diff_commitment?: undefined;
4213
+ event_count?: undefined;
4214
+ transaction_count?: undefined;
4215
+ state_diff_length?: undefined;
4202
4216
  })>;
4203
4217
  getBlockWithReceipts(blockIdentifier?: BlockIdentifier): Promise<({
4204
4218
  status: RPC.BLOCK_STATUS;
@@ -4207,6 +4221,13 @@ declare class RpcChannel {
4207
4221
  new_root?: undefined;
4208
4222
  status?: undefined;
4209
4223
  parent_hash?: undefined;
4224
+ event_commitment?: undefined;
4225
+ transaction_commitment?: undefined;
4226
+ receipt_commitment?: undefined;
4227
+ state_diff_commitment?: undefined;
4228
+ event_count?: undefined;
4229
+ transaction_count?: undefined;
4230
+ state_diff_length?: undefined;
4210
4231
  })>;
4211
4232
  getBlockStateUpdate(blockIdentifier?: BlockIdentifier): Promise<(RPC.STATE_UPDATE & {}) | (RPC.PRE_CONFIRMED_STATE_UPDATE & {
4212
4233
  new_root?: undefined;
@@ -17730,7 +17730,7 @@ ${indent}}` : "}";
17730
17730
  let isTargetBlock = false;
17731
17731
  while (!isTargetBlock) {
17732
17732
  const currBlock = await this.getBlockNumber();
17733
- if (currBlock === targetBlock) {
17733
+ if (currBlock >= targetBlock) {
17734
17734
  isTargetBlock = true;
17735
17735
  } else {
17736
17736
  await wait(retryInterval);
@@ -17828,16 +17828,13 @@ ${indent}}` : "}";
17828
17828
  * throw an error in case of provider communication.
17829
17829
  */
17830
17830
  async fastWaitForTransaction(txHash, address, initNonce, options) {
17831
- if (this.channel instanceof rpc_0_9_0_exports.RpcChannel) {
17832
- const isSuccess = await this.channel.fastWaitForTransaction(
17833
- txHash,
17834
- address,
17835
- initNonce,
17836
- options
17837
- );
17838
- return isSuccess;
17839
- }
17840
- throw new Error("Unsupported channel type");
17831
+ const isSuccess = await this.channel.fastWaitForTransaction(
17832
+ txHash,
17833
+ address,
17834
+ initNonce,
17835
+ options
17836
+ );
17837
+ return isSuccess;
17841
17838
  }
17842
17839
  async getStorageAt(contractAddress, key, blockIdentifier) {
17843
17840
  return this.channel.getStorageAt(contractAddress, key, blockIdentifier);
@@ -20665,10 +20662,6 @@ ${indent}}` : "}";
20665
20662
  * ```
20666
20663
  */
20667
20664
  async fastExecute(transactions, transactionsDetail = {}, waitDetail = {}) {
20668
- assert(
20669
- this.channel instanceof rpc_0_9_0_exports.RpcChannel,
20670
- "Wrong Rpc version in Provider. At least Rpc v0.9 required."
20671
- );
20672
20665
  assert(
20673
20666
  this.channel.blockIdentifier === BlockTag.PRE_CONFIRMED,
20674
20667
  "Provider needs to be initialized with `pre_confirmed` blockIdentifier option."