starknet 10.0.0-beta.5 → 10.0.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,49 @@
1
+ # [10.0.0](https://github.com/starknet-io/starknet.js/compare/v9.4.1...v10.0.0) (2026-04-19)
2
+
3
+ - feat!: refactor Account to use composition pattern, plugin system, docs\ \ BREAKING CHANGE: Account no longer extends Provider. Provider methods must now be accessed via account.provider property. \ Changes: - Account uses composition instead of inheritance - Add plugin system to replace ts-mixer - Update all tests to use account.provider.xyz() - Create migration guide and plugin documentation ([31d9458](https://github.com/starknet-io/starknet.js/commit/31d94587676a543c71dbd64b92d0e65d0ee3aa38))
4
+
5
+ ### Bug Fixes
6
+
7
+ - **hash:** fold invoke proofFacts into one poseidon element ([bd79872](https://github.com/starknet-io/starknet.js/commit/bd798723fa0dc06ffbdec27c26550c01f30b5634))
8
+ - node runtime array bufgfer fix ([5b95106](https://github.com/starknet-io/starknet.js/commit/5b95106d60389a5a12e170c9dda93e2a6bc9824b))
9
+ - proof/facts optional ([c0f4aaf](https://github.com/starknet-io/starknet.js/commit/c0f4aaf786bec9873d0dfb4152686dbe398ae7f1))
10
+ - replace rpc version literals with SupportedRpcVersion0_10 and update constants to 0.10.2 ([dc40318](https://github.com/starknet-io/starknet.js/commit/dc4031828699f9b979e767f17e4fcbcacf114dd5))
11
+ - rlease badge ([78992dd](https://github.com/starknet-io/starknet.js/commit/78992dd88be05b7763fc4d6e6afca1fe045017b2))
12
+ - semantic version, audit fix, ci permissions ([3c5dea3](https://github.com/starknet-io/starknet.js/commit/3c5dea301733c85cbd5a2785358e92f808874902))
13
+ - types-js ([e001d7f](https://github.com/starknet-io/starknet.js/commit/e001d7f8558ebf6fdc13ef572d47dfc251191220))
14
+ - update beta to dev ([b775d03](https://github.com/starknet-io/starknet.js/commit/b775d03da7fd8cc193b549b5570299eef968fd6a))
15
+ - updated rest of the outdated packages ([37ee66d](https://github.com/starknet-io/starknet.js/commit/37ee66d03983520472da47203beb95c922aaeae2))
16
+
17
+ ### Features
18
+
19
+ - fast-execuite as plugin ([d011417](https://github.com/starknet-io/starknet.js/commit/d0114177075b04b24b314812d16c0eb32ea9abe9))
20
+ - getSimulateTransaction response breaking change now using new response schema ([8b3a117](https://github.com/starknet-io/starknet.js/commit/8b3a117ec5ba5fa1a6096ba002c4d1e1accc87fa))
21
+ - include optional flags in provider, channel and ws ([1ba87ad](https://github.com/starknet-io/starknet.js/commit/1ba87adf46d62b49aa27cc9e425d8e0eff8d1793))
22
+ - new v3 transaction hash with proofFacts when defined ([3c8e5cb](https://github.com/starknet-io/starknet.js/commit/3c8e5cb0eed0457f43b02e277a31fbafbb3b6b55))
23
+ - proof & proof facts ([3b157ee](https://github.com/starknet-io/starknet.js/commit/3b157ee7e5a2d10bbfd78969d61f5136d9d89ec4))
24
+ - remove default providers - resolve unintended side effect initializations ([ea581a8](https://github.com/starknet-io/starknet.js/commit/ea581a821a517362886e16075068b8ce4104e7a7))
25
+ - remove pako package and replace with native and faster CompressionStream, update TS 5.9 ([75b8226](https://github.com/starknet-io/starknet.js/commit/75b8226ff70fa243d06f7530fb9053d26a9740ad))
26
+ - replace types-010 with types-0101 ([e7060e9](https://github.com/starknet-io/starknet.js/commit/e7060e98bc0fd87c0fcc6bae9ec279771310d34b))
27
+ - spec 0.10.1-rc3, resposeParser to provider, channel 0.10.1 support 0.10.0 and 0.10.1, docs ([8387a1e](https://github.com/starknet-io/starknet.js/commit/8387a1e8602239edee1d78f0ca4167544270527f))
28
+ - update account class execute with proofFacts and simulate with initial reads ([c42b787](https://github.com/starknet-io/starknet.js/commit/c42b7876edf254e9f843bdcb496ebe171d01308d))
29
+
30
+ ### BREAKING CHANGES
31
+
32
+ - Account no longer extends Provider. Provider methods must now be accessed via account.provider property.
33
+ \
34
+ Changes:
35
+
36
+ * Account uses composition instead of inheritance
37
+ * Add plugin system to replace ts-mixer
38
+ * Update all tests to use account.provider.xyz()
39
+ * Create migration guide and plugin documentation
40
+
41
+ # [10.0.0-beta.6](https://github.com/starknet-io/starknet.js/compare/v10.0.0-beta.5...v10.0.0-beta.6) (2026-04-08)
42
+
43
+ ### Bug Fixes
44
+
45
+ - **hash:** fold invoke proofFacts into one poseidon element ([bd79872](https://github.com/starknet-io/starknet.js/commit/bd798723fa0dc06ffbdec27c26550c01f30b5634))
46
+
1
47
  # [10.0.0-beta.5](https://github.com/starknet-io/starknet.js/compare/v10.0.0-beta.4...v10.0.0-beta.5) (2026-03-31)
2
48
 
3
49
  ### Bug Fixes
package/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
  <!-- primary badges -->
7
7
  <p align="center">
8
8
  <a href="https://github.com/starknet-io/starknet.js/actions">
9
- <img src="https://github.com/starknet-io/starknet.js/actions/workflows/manual-release.yml/badge.svg">
9
+ <img src="https://github.com/starknet-io/starknet.js/actions/workflows/release.yml/badge.svg">
10
10
  </a>
11
11
  <a href="https://www.npmjs.com/package/starknet">
12
12
  <img src='https://img.shields.io/npm/v/starknet' />
package/dist/index.d.ts CHANGED
@@ -4342,13 +4342,17 @@ type _TransactionHashPrefix = ValuesType<typeof _TransactionHashPrefix>;
4342
4342
  declare const _SupportedRpcVersion: {
4343
4343
  readonly '0.9.0': "0.9.0";
4344
4344
  readonly '0.10.0': "0.10.0";
4345
- readonly '0.10.1': "0.10.1";
4345
+ readonly '0.10.2': "0.10.2";
4346
4346
  readonly v0_9_0: "0.9.0";
4347
4347
  readonly v0_10_0: "0.10.0";
4348
- readonly v0_10_1: "0.10.1";
4348
+ readonly v0_10_2: "0.10.2";
4349
4349
  };
4350
4350
  type _SupportedRpcVersion = ValuesType<typeof _SupportedRpcVersion>;
4351
4351
 
4352
+ /**
4353
+ * Union of RPC 0.10.x dot-format versions (spec 0.10.0 family).
4354
+ */
4355
+ type SupportedRpcVersion0_10 = typeof _SupportedRpcVersion.v0_10_0 | typeof _SupportedRpcVersion.v0_10_2;
4352
4356
  type SupportedTransactionVersion = typeof ETransactionVersion$1.V3;
4353
4357
  type SupportedCairoVersion = '1';
4354
4358
  /**
@@ -4454,12 +4458,13 @@ declare const constants_SNIP9_V2_INTERFACE_ID: typeof SNIP9_V2_INTERFACE_ID;
4454
4458
  declare const constants_SN_VERSION_IMPLEMENTING_BLAKE_FOR_COMPILED_CLASS: typeof SN_VERSION_IMPLEMENTING_BLAKE_FOR_COMPILED_CLASS;
4455
4459
  declare const constants_SYSTEM_MESSAGES: typeof SYSTEM_MESSAGES;
4456
4460
  type constants_SupportedCairoVersion = SupportedCairoVersion;
4461
+ type constants_SupportedRpcVersion0_10 = SupportedRpcVersion0_10;
4457
4462
  type constants_SupportedTransactionVersion = SupportedTransactionVersion;
4458
4463
  declare const constants_TEXT_TO_FELT_MAX_LEN: typeof TEXT_TO_FELT_MAX_LEN;
4459
4464
  declare const constants_UDC: typeof UDC;
4460
4465
  declare const constants_ZERO: typeof ZERO;
4461
4466
  declare namespace constants {
4462
- export { constants_ADDR_BOUND as ADDR_BOUND, constants_API_VERSION as API_VERSION, _BaseUrl as BaseUrl, type constants_ChannelDefaultOptions as ChannelDefaultOptions, type constants_ChannelDefaults as ChannelDefaults, type constants_ChannelMethodOptions as ChannelMethodOptions, constants_DEFAULT_GLOBAL_CONFIG as DEFAULT_GLOBAL_CONFIG, constants_HARDENING_4BYTES as HARDENING_4BYTES, constants_HARDENING_BYTE as HARDENING_BYTE, constants_IS_BROWSER as IS_BROWSER, constants_LegacyUDC as LegacyUDC, constants_MASK_250 as MASK_250, constants_MASK_31 as MASK_31, constants_MAX_STORAGE_ITEM_SIZE as MAX_STORAGE_ITEM_SIZE, _NetworkName as NetworkName, constants_OutsideExecutionCallerAny as OutsideExecutionCallerAny, constants_PAYMASTER_RPC_NODES as PAYMASTER_RPC_NODES, constants_PRIME as PRIME, constants_RANGE_FELT as RANGE_FELT, constants_RANGE_I128 as RANGE_I128, constants_RANGE_I16 as RANGE_I16, constants_RANGE_I32 as RANGE_I32, constants_RANGE_I64 as RANGE_I64, constants_RANGE_I8 as RANGE_I8, constants_RANGE_U128 as RANGE_U128, constants_RANGE_U16 as RANGE_U16, constants_RANGE_U32 as RANGE_U32, constants_RANGE_U64 as RANGE_U64, constants_RANGE_U8 as RANGE_U8, constants_RANGE_U96 as RANGE_U96, constants_RPC_DEFAULT_NODES as RPC_DEFAULT_NODES, constants_SNIP9_V1_INTERFACE_ID as SNIP9_V1_INTERFACE_ID, constants_SNIP9_V2_INTERFACE_ID as SNIP9_V2_INTERFACE_ID, constants_SN_VERSION_IMPLEMENTING_BLAKE_FOR_COMPILED_CLASS as SN_VERSION_IMPLEMENTING_BLAKE_FOR_COMPILED_CLASS, constants_SYSTEM_MESSAGES as SYSTEM_MESSAGES, _StarknetChainId as StarknetChainId, type constants_SupportedCairoVersion as SupportedCairoVersion, _SupportedRpcVersion as SupportedRpcVersion, type constants_SupportedTransactionVersion as SupportedTransactionVersion, constants_TEXT_TO_FELT_MAX_LEN as TEXT_TO_FELT_MAX_LEN, _TransactionHashPrefix as TransactionHashPrefix, constants_UDC as UDC, constants_ZERO as ZERO };
4467
+ export { constants_ADDR_BOUND as ADDR_BOUND, constants_API_VERSION as API_VERSION, _BaseUrl as BaseUrl, type constants_ChannelDefaultOptions as ChannelDefaultOptions, type constants_ChannelDefaults as ChannelDefaults, type constants_ChannelMethodOptions as ChannelMethodOptions, constants_DEFAULT_GLOBAL_CONFIG as DEFAULT_GLOBAL_CONFIG, constants_HARDENING_4BYTES as HARDENING_4BYTES, constants_HARDENING_BYTE as HARDENING_BYTE, constants_IS_BROWSER as IS_BROWSER, constants_LegacyUDC as LegacyUDC, constants_MASK_250 as MASK_250, constants_MASK_31 as MASK_31, constants_MAX_STORAGE_ITEM_SIZE as MAX_STORAGE_ITEM_SIZE, _NetworkName as NetworkName, constants_OutsideExecutionCallerAny as OutsideExecutionCallerAny, constants_PAYMASTER_RPC_NODES as PAYMASTER_RPC_NODES, constants_PRIME as PRIME, constants_RANGE_FELT as RANGE_FELT, constants_RANGE_I128 as RANGE_I128, constants_RANGE_I16 as RANGE_I16, constants_RANGE_I32 as RANGE_I32, constants_RANGE_I64 as RANGE_I64, constants_RANGE_I8 as RANGE_I8, constants_RANGE_U128 as RANGE_U128, constants_RANGE_U16 as RANGE_U16, constants_RANGE_U32 as RANGE_U32, constants_RANGE_U64 as RANGE_U64, constants_RANGE_U8 as RANGE_U8, constants_RANGE_U96 as RANGE_U96, constants_RPC_DEFAULT_NODES as RPC_DEFAULT_NODES, constants_SNIP9_V1_INTERFACE_ID as SNIP9_V1_INTERFACE_ID, constants_SNIP9_V2_INTERFACE_ID as SNIP9_V2_INTERFACE_ID, constants_SN_VERSION_IMPLEMENTING_BLAKE_FOR_COMPILED_CLASS as SN_VERSION_IMPLEMENTING_BLAKE_FOR_COMPILED_CLASS, constants_SYSTEM_MESSAGES as SYSTEM_MESSAGES, _StarknetChainId as StarknetChainId, type constants_SupportedCairoVersion as SupportedCairoVersion, _SupportedRpcVersion as SupportedRpcVersion, type constants_SupportedRpcVersion0_10 as SupportedRpcVersion0_10, type constants_SupportedTransactionVersion as SupportedTransactionVersion, constants_TEXT_TO_FELT_MAX_LEN as TEXT_TO_FELT_MAX_LEN, _TransactionHashPrefix as TransactionHashPrefix, constants_UDC as UDC, constants_ZERO as ZERO };
4463
4468
  }
4464
4469
 
4465
4470
  declare class RpcChannel$1 {
@@ -4483,7 +4488,7 @@ declare class RpcChannel$1 {
4483
4488
  private batchClient?;
4484
4489
  private baseFetch;
4485
4490
  constructor(optionsOrProvider?: RpcProviderOptions);
4486
- readSpecVersion(): "0.9.0" | "0.10.0" | "0.10.1" | undefined;
4491
+ readSpecVersion(): "0.9.0" | "0.10.0" | "0.10.2" | undefined;
4487
4492
  private get transactionRetryIntervalDefault();
4488
4493
  setChainId(chainId: _StarknetChainId): void;
4489
4494
  fetch(method: string, params?: object, id?: string | number): Promise<Response>;
@@ -4499,7 +4504,7 @@ declare class RpcChannel$1 {
4499
4504
  * fetch if undefined else just return this.specVersion
4500
4505
  * @example this.specVersion = "0.9.0"
4501
4506
  */
4502
- setUpSpecVersion(): Promise<"0.9.0" | "0.10.0" | "0.10.1">;
4507
+ setUpSpecVersion(): Promise<"0.9.0" | "0.10.0" | "0.10.2">;
4503
4508
  /**
4504
4509
  * Given an l1 tx hash, returns the associated l1_handler tx hashes and statuses for all L1 -> L2 messages sent by the l1 transaction, ordered by the l1 tx sending order
4505
4510
  */
@@ -4617,7 +4622,7 @@ declare namespace rpc_0_9_0 {
4617
4622
  }
4618
4623
 
4619
4624
  declare class RpcChannel {
4620
- readonly id = "RPC0.10.1";
4625
+ readonly id = "RPC0.10.2";
4621
4626
  /**
4622
4627
  * RPC specification version this Channel class implements
4623
4628
  */
@@ -4637,7 +4642,7 @@ declare class RpcChannel {
4637
4642
  private batchClient?;
4638
4643
  private baseFetch;
4639
4644
  constructor(optionsOrProvider?: RpcProviderOptions);
4640
- readSpecVersion(): "0.9.0" | "0.10.0" | "0.10.1" | undefined;
4645
+ readSpecVersion(): "0.9.0" | "0.10.0" | "0.10.2" | undefined;
4641
4646
  private get transactionRetryIntervalDefault();
4642
4647
  setChainId(chainId: _StarknetChainId): void;
4643
4648
  fetch(method: string, params?: object, id?: string | number): Promise<Response>;
@@ -4653,7 +4658,7 @@ declare class RpcChannel {
4653
4658
  * fetch if undefined else just return this.specVersion
4654
4659
  * @example this.specVersion = "0.9.0"
4655
4660
  */
4656
- setUpSpecVersion(): Promise<"0.9.0" | "0.10.0" | "0.10.1">;
4661
+ setUpSpecVersion(): Promise<"0.9.0" | "0.10.0" | "0.10.2">;
4657
4662
  /**
4658
4663
  * Given an l1 tx hash, returns the associated l1_handler tx hashes and statuses for all L1 -> L2 messages sent by the l1 transaction, ordered by the l1 tx sending order
4659
4664
  */
@@ -4829,10 +4834,10 @@ declare class RpcChannel {
4829
4834
  } ? RPCSPEC0101.DEPLOY_ACCOUNT_TXN_V3 : never>;
4830
4835
  }
4831
4836
 
4832
- type rpc_0_10_1_RpcChannel = RpcChannel;
4833
- declare const rpc_0_10_1_RpcChannel: typeof RpcChannel;
4834
- declare namespace rpc_0_10_1 {
4835
- export { rpc_0_10_1_RpcChannel as RpcChannel };
4837
+ type rpc_0_10_2_RpcChannel = RpcChannel;
4838
+ declare const rpc_0_10_2_RpcChannel: typeof RpcChannel;
4839
+ declare namespace rpc_0_10_2 {
4840
+ export { rpc_0_10_2_RpcChannel as RpcChannel };
4836
4841
  }
4837
4842
 
4838
4843
  /**
@@ -5326,9 +5331,9 @@ declare class RpcProvider implements ProviderInterface {
5326
5331
  use<T extends Record<string, any>>(plugin: StarknetPlugin<T, any>): this & T;
5327
5332
  fetch(method: string, params?: object, id?: string | number): Promise<any>;
5328
5333
  getChainId(): Promise<"0x534e5f4d41494e" | "0x534e5f5345504f4c4941">;
5329
- readSpecVersion(): "0.9.0" | "0.10.0" | "0.10.1" | undefined;
5334
+ readSpecVersion(): "0.9.0" | "0.10.0" | "0.10.2" | undefined;
5330
5335
  getSpecVersion(): Promise<string>;
5331
- setUpSpecVersion(): Promise<"0.9.0" | "0.10.0" | "0.10.1">;
5336
+ setUpSpecVersion(): Promise<"0.9.0" | "0.10.0" | "0.10.2">;
5332
5337
  getStarknetVersion(blockIdentifier?: BlockIdentifier): Promise<string>;
5333
5338
  getNonceForAddress(contractAddress: BigNumberish, blockIdentifier?: BlockIdentifier): Promise<string>;
5334
5339
  getBlock(): Promise<PreConfirmedBlock>;
@@ -5481,7 +5486,7 @@ declare class RpcProvider implements ProviderInterface {
5481
5486
  transaction_hash: RPCSPEC09.TXN_HASH;
5482
5487
  })>;
5483
5488
  getTransactionReceipt(txHash: BigNumberish): Promise<GetTransactionReceiptResponse>;
5484
- getTransactionTrace<V extends _SupportedRpcVersion = _SupportedRpcVersion>(txHash: BigNumberish): Promise<V extends '0.10.0' | '0.10.1' ? RPCSPEC0101.TRANSACTION_TRACE : RPCSPEC09.TRANSACTION_TRACE>;
5489
+ getTransactionTrace<V extends _SupportedRpcVersion = _SupportedRpcVersion>(txHash: BigNumberish): Promise<V extends SupportedRpcVersion0_10 ? RPCSPEC0101.TRANSACTION_TRACE : RPCSPEC09.TRANSACTION_TRACE>;
5485
5490
  getTransactionTrace(txHash: BigNumberish): Promise<RPCSPEC0101.TRANSACTION_TRACE | RPCSPEC09.TRANSACTION_TRACE>;
5486
5491
  getTransactionStatus(transactionHash: BigNumberish): Promise<RPCSPEC09.TXN_STATUS_RESULT>;
5487
5492
  getSimulateTransaction(invocations: AccountInvocations, options?: getSimulateTransactionOptions): Promise<SimulateTransactionOverheadResponse>;
@@ -5509,10 +5514,10 @@ declare class RpcProvider implements ProviderInterface {
5509
5514
  transaction_hash: string;
5510
5515
  }>;
5511
5516
  callContract(call: Call, blockIdentifier?: BlockIdentifier): Promise<string[]>;
5512
- estimateMessageFee<V extends _SupportedRpcVersion = _SupportedRpcVersion>(message: RPCSPEC09.L1Message, blockIdentifier?: BlockIdentifier): Promise<V extends '0.10.0' | '0.10.1' ? RPCSPEC0101.FEE_ESTIMATE : RPCSPEC09.MESSAGE_FEE_ESTIMATE>;
5517
+ estimateMessageFee<V extends _SupportedRpcVersion = _SupportedRpcVersion>(message: RPCSPEC09.L1Message, blockIdentifier?: BlockIdentifier): Promise<V extends SupportedRpcVersion0_10 ? RPCSPEC0101.FEE_ESTIMATE : RPCSPEC09.MESSAGE_FEE_ESTIMATE>;
5513
5518
  estimateMessageFee(message: RPCSPEC09.L1Message, blockIdentifier?: BlockIdentifier): Promise<RPCSPEC0101.FEE_ESTIMATE | RPCSPEC09.MESSAGE_FEE_ESTIMATE>;
5514
5519
  getSyncingStats(): Promise<RPCSPEC09.Syncing>;
5515
- getEvents<V extends _SupportedRpcVersion = _SupportedRpcVersion>(eventFilter: V extends '0.10.0' | '0.10.1' ? RPCSPEC0101.EventFilter : RPCSPEC09.EventFilter): Promise<V extends '0.10.0' | '0.10.1' ? RPCSPEC0101.EVENTS_CHUNK : RPCSPEC09.EVENTS_CHUNK>;
5520
+ getEvents<V extends _SupportedRpcVersion = _SupportedRpcVersion>(eventFilter: V extends SupportedRpcVersion0_10 ? RPCSPEC0101.EventFilter : RPCSPEC09.EventFilter): Promise<V extends SupportedRpcVersion0_10 ? RPCSPEC0101.EVENTS_CHUNK : RPCSPEC09.EVENTS_CHUNK>;
5516
5521
  getEvents(eventFilter: RPCSPEC0101.EventFilter | RPCSPEC09.EventFilter): Promise<RPCSPEC0101.EVENTS_CHUNK | RPCSPEC09.EVENTS_CHUNK>;
5517
5522
  verifyMessageInStarknet(message: BigNumberish | TypedData, signature: Signature, accountAddress: BigNumberish, signatureVerificationFunctionName?: string, signatureVerificationResponse?: {
5518
5523
  okResponse: string[];
@@ -5521,7 +5526,7 @@ declare class RpcProvider implements ProviderInterface {
5521
5526
  }): Promise<boolean>;
5522
5527
  isClassDeclared(contractClassIdentifier: ContractClassIdentifier, blockIdentifier?: BlockIdentifier): Promise<boolean>;
5523
5528
  prepareInvocations(invocations: Invocations): Promise<Invocations>;
5524
- getL1MessagesStatus<V extends _SupportedRpcVersion = _SupportedRpcVersion>(transactionHash: BigNumberish): Promise<V extends '0.10.0' | '0.10.1' ? RPCSPEC0101.L1L2MessagesStatus : RPCSPEC09.L1L2MessagesStatus>;
5529
+ getL1MessagesStatus<V extends _SupportedRpcVersion = _SupportedRpcVersion>(transactionHash: BigNumberish): Promise<V extends SupportedRpcVersion0_10 ? RPCSPEC0101.L1L2MessagesStatus : RPCSPEC09.L1L2MessagesStatus>;
5525
5530
  getL1MessagesStatus(transactionHash: BigNumberish): Promise<RPCSPEC0101.L1L2MessagesStatus | RPCSPEC09.L1L2MessagesStatus>;
5526
5531
  getStorageProof(classHashes: BigNumberish[], contractAddresses: BigNumberish[], contractsStorageKeys: CONTRACT_STORAGE_KEYS[], blockIdentifier?: BlockIdentifier): Promise<StorageProof>;
5527
5532
  getCompiledCasm(classHash: BigNumberish): Promise<CASM_COMPILED_CONTRACT_CLASS>;
@@ -10332,4 +10337,4 @@ declare class Logger {
10332
10337
  */
10333
10338
  declare const logger: Logger;
10334
10339
 
10335
- export { type Abi, type AbiEntry, type AbiEntryType, type AbiEnum, type AbiEnums, type AbiEvent, type AbiEvents, type AbiInterfaces, AbiParser1, AbiParser2, AbiParserInterface, type AbiStruct, type AbiStructs, Account, type AccountHooks, AccountInterface, type AccountInvocationItem, type AccountInvocations, type AccountInvocationsFactoryDetails, type AccountOptions, type AllowArray, type ApiEstimateFeeResponse, type Args, type ArgsOrCalldata, type ArgsOrCalldataWithOptions, type ArraySignatureType, type AsyncContractFunction, type BLOCK_HASH, type BLOCK_NUMBER, BatchClient, type BatchClientOptions, type BigNumberish, type Block$1 as Block, type BlockIdentifier, type BlockNumber, BlockStatus, BlockTag, type BlockTransactionTrace, type BlockTransactionsTracesWithInitialReads, type BlockWithTxHashes, BrotherIdImpl, type BrotherIdProviderMethods, type BrotherProfile, type Builtins, type ByteArray, type ByteCode, type CairoAssembly, CairoByteArray, CairoBytes31, type CairoContract, CairoCustomEnum, type CairoEnum, type CairoEnumRaw, type CairoEvent, type CairoEventDefinition, type CairoEventVariant, CairoFelt, CairoFelt252, CairoFixedArray, CairoInt128, CairoInt16, CairoInt32, CairoInt64, CairoInt8, CairoOption, CairoOptionVariant, CairoResult, CairoResultVariant, CairoUint128, CairoUint16, CairoUint256, CairoUint32, CairoUint512, CairoUint64, CairoUint8, CairoUint96, type CairoVersion, type Call, type CallContractResponse, CallData, type CallDetails, type CallOptions, type CallResult, type Calldata, type CommonContractOptions, type CompiledContract, type CompiledSierra, type CompiledSierraCasm, type CompilerVersion, type CompleteDeclareContractPayload, type CompressedProgram, Contract, type ContractClass, type ContractClassIdentifier, type ContractClassPayload, type ContractClassResponse, type ContractEntryPointFields, type ContractFunction, ContractInterface, type ContractOptions, type ContractVersion, type DeclareAndDeployContractPayload, type DeclareContractPayload, type DeclareContractResponse, type DeclareContractTransaction, type DeclareDeployUDCResponse, type DeclareSignerDetails, type DeclareTransactionReceiptResponse, type DeclaredTransaction, type DeployAccountContractPayload, type DeployAccountContractTransaction, type DeployAccountSignerDetails, type DeployAccountTransactionReceiptResponse, type DeployAndInvokeTransaction, type DeployContractResponse, type DeployContractUDCResponse, type DeployTransaction, type DeployTransactionReceiptResponse, type DeployedAccountTransaction, Deployer, type DeployerCall, DeployerInterface, type Details, EDAMode, EDataAvailabilityMode, ESubscriptionTag, ETH_ADDRESS, ETraceFlag, ETransactionExecutionStatus, ETransactionStatus, ETransactionVersion, ETransactionVersion2, ETransactionVersion3, ETxnResponseFlag, type EVENTS_CHUNK, type EmittedEvent, EntryPointType, type EntryPointsByType, type ErrorReceiptResponseHelper, type EstimateFeeBulk, type EstimateFeeResponseBulkOverhead, type EstimateFeeResponseOverhead, EthSigner, type Event$1 as Event, type EventEntry, type EventFilter, type ExecutableDeployAndInvokeTransaction, type ExecutableDeployTransaction, type ExecutableInvokeTransaction, type ExecutableUserInvoke, type ExecutableUserTransaction, type ExecuteOptions, type ExecutionParameters, type FEE_ESTIMATE, type FELT, type FactoryParams, type FastExecuteAccountMethods, type FastExecuteProviderMethods, type FastExecuteResponse, type FastWaitForTransactionOptions, type FeeEstimate, type FeeMode, type FormatResponse, type FunctionAbi, type GasPrices, type GetBlockResponse, type GetTransactionReceiptResponse, type GetTransactionResponse, type GetTxReceiptResponseWithoutHelper, type HexCalldata, type Hint, type INITIAL_READS, Int, type InterfaceAbi, type Invocation, type Invocations, type InvocationsDetails, type InvocationsDetailsWithNonce, type InvocationsSignerDetails, type InvokeFunctionResponse, type InvokeTransaction, type InvokeTransactionReceiptResponse, type InvokedTransaction, type L1HandlerTransactionReceiptResponse, type L1_HANDLER_TXN, type LedgerPathCalculation, LedgerSigner111 as LedgerSigner, LedgerSigner111, LedgerSigner221, LedgerSigner231, type LegacyCompiledContract, type LegacyContractClass, type LegacyEvent, LibraryError, Literal, type LoadedContract, type LogLevel, LogLevelIndex, type Methods, type MultiDeployContractResponse, type MultiType, NON_ZERO_PREFIX, type Nonce, type OptionalPayload, type OutsideCall, type OutsideExecution, type OutsideExecutionOptions, OutsideExecutionTypesV1, OutsideExecutionTypesV2, OutsideExecutionVersion, type OutsideTransaction, type PRE_CONFIRMED_STATE_UPDATE, type PRICE_UNIT, type ParsedEvent, type ParsedEvents, type ParsedStruct, type ParsingStrategy, type PaymasterDetails, type PaymasterFeeEstimate, PaymasterInterface, type PaymasterOptions, PaymasterRpc, type PaymasterRpcOptions, type PaymasterTimeBounds, type PluginConfig, PluginManager, type PreConfirmedBlock, type PreConfirmedStateUpdate, type PreparedDeployAndInvokeTransaction, type PreparedDeployTransaction, type PreparedInvokeTransaction, type PreparedTransaction, type Program, RpcProvider as Provider, type ProviderHooks, ProviderInterface, type ProviderOptions, type ProviderOrAccount, type PythonicHints, type RESOURCE_PRICE, index$4 as RPC, rpc_0_10_1 as RPC0101, rpc_0_9_0 as RPC09, RPCResponseParser, type RPC_ERROR, type RPC_ERROR_SET, type RawArgs, type RawArgsArray, type RawArgsObject, type RawCalldata, type Receipt, ReceiptTx, type ReconnectOptions, type RequiredKeysOf, type ResourceBounds, type ResourceBoundsBN, type ResourceBoundsOverhead, ResponseParser, type RevertedTransactionReceiptResponse, type RevertedTransactionReceiptResponseHelper, RpcChannel, RpcError, RpcProvider, type RpcProviderOptions, type SIMULATION_FLAG, type STATE_UPDATE, type SierraContractClass, type SierraContractEntryPointFields, type SierraEntryPointsByType, type SierraProgramDebugInfo, type Signature, Signer, SignerInterface, type Simplify, type SimulateTransaction, type SimulateTransactionDetails, type SimulateTransactionOverhead, type SimulateTransactionOverheadResponse, type SimulateTransactionResponse, type SimulationFlags, type StarkProfile, type StarknetIdAccountMethods, StarknetIdImpl, type StarknetIdProviderMethods, type StarknetPlugin, type StateUpdate, type StateUpdateResponse, type StorageResponse, type SubscribeEventsParams, type SubscribeNewHeadsParams, type SubscribeNewTransactionReceiptsParams, type SubscribeNewTransactionsParams, type SubscribeTransactionStatusParams, Subscription, type SubscriptionBlockIdentifier, type SubscriptionNewHeadsEvent, type SubscriptionNewTransactionEvent, type SubscriptionNewTransactionReceiptsEvent, type SubscriptionOptions, type SubscriptionStarknetEventsEvent, type SubscriptionTransactionStatusEvent, type SuccessfulTransactionReceiptResponse, type SuccessfulTransactionReceiptResponseHelper, type TXN_EXECUTION_STATUS, type TXN_HASH, type TXN_STATUS, TimeoutError, type TipAnalysisOptions, type TipEstimate, type TipType, type TokenData, TransactionExecutionStatus, TransactionFinalityStatus, type TransactionReceipt, type TransactionReceiptCallbacks, type TransactionReceiptCallbacksDefault, type TransactionReceiptCallbacksDefined, type TransactionReceiptStatus, type TransactionReceiptValue, type TransactionStatus, type TransactionStatusReceiptSets, type TransactionTrace, TransactionType, type TransactionWithHash, type Tupled, type TypedContractV2, UINT_128_MAX, UINT_128_MIN, UINT_256_HIGH_MAX, UINT_256_HIGH_MIN, UINT_256_LOW_MAX, UINT_256_LOW_MIN, UINT_256_MAX, UINT_256_MIN, UINT_512_MAX, UINT_512_MIN, Uint, type Uint256, type Uint512, type UniversalDeployerContractPayload, type UniversalDetails, type UserInvoke, type UserTransaction, type V3DeclareSignerDetails, type V3DeployAccountSignerDetails, type V3InvocationsSignerDetails, type V3TransactionDetails, ValidateType, WalletAccount, WalletAccountV5, WebSocketChannel, type WebSocketModule, WebSocketNotConnectedError, type WebSocketOptions, type WeierstrassSignatureType, type WithOptions, addAddressPadding, brotherId, byteArray, cairo, compareVersions, config, constants, contractClassResponseToLegacyCompiledContract, contractLoader, createAbiParser, createTransactionReceipt, defaultDeployer, defaultPlugins, ec, encode, eth, index as events, extractContractHashes, fastExecute, fastParsingStrategy, getAbiVersion, type getBlockTransactionsTracesOptions, getChecksumAddress, type getContractVersionOptions, type getEstimateFeeBulkOptions, getGasPrices, getLedgerPathBuffer111 as getLedgerPathBuffer, getLedgerPathBuffer111, getLedgerPathBuffer221, type getSimulateTransactionOptions, getTipStatsFromBlocks, index$3 as hash, hdParsingStrategy, isAccount, isFileSystemAvailable, isNoConstructorValid, isPreConfirmedBlock, isPreConfirmedStateUpdate, isPreConfirmedTransaction, isRPC08Plus_ResourceBounds, isRPC08Plus_ResourceBoundsBN, isSierra, isSupportedSpecVersion, isV3Tx, isVersion, json, legacyDeployer, logger, merkle, num, outsideExecution, parseCalldataField, paymaster, provider, selector, shortString, src5, index$1 as stark, starknetId, toAnyPatchVersion, toApiVersion, index$2 as transaction, typedData, uint256$1 as uint256, units, v2 as v2hash, v3 as v3hash, validateAndParseAddress, validateChecksumAddress, verifyMessageInStarknet, type waitForTransactionOptions, connect as wallet, connectV5 as walletV5 };
10340
+ export { type Abi, type AbiEntry, type AbiEntryType, type AbiEnum, type AbiEnums, type AbiEvent, type AbiEvents, type AbiInterfaces, AbiParser1, AbiParser2, AbiParserInterface, type AbiStruct, type AbiStructs, Account, type AccountHooks, AccountInterface, type AccountInvocationItem, type AccountInvocations, type AccountInvocationsFactoryDetails, type AccountOptions, type AllowArray, type ApiEstimateFeeResponse, type Args, type ArgsOrCalldata, type ArgsOrCalldataWithOptions, type ArraySignatureType, type AsyncContractFunction, type BLOCK_HASH, type BLOCK_NUMBER, BatchClient, type BatchClientOptions, type BigNumberish, type Block$1 as Block, type BlockIdentifier, type BlockNumber, BlockStatus, BlockTag, type BlockTransactionTrace, type BlockTransactionsTracesWithInitialReads, type BlockWithTxHashes, BrotherIdImpl, type BrotherIdProviderMethods, type BrotherProfile, type Builtins, type ByteArray, type ByteCode, type CairoAssembly, CairoByteArray, CairoBytes31, type CairoContract, CairoCustomEnum, type CairoEnum, type CairoEnumRaw, type CairoEvent, type CairoEventDefinition, type CairoEventVariant, CairoFelt, CairoFelt252, CairoFixedArray, CairoInt128, CairoInt16, CairoInt32, CairoInt64, CairoInt8, CairoOption, CairoOptionVariant, CairoResult, CairoResultVariant, CairoUint128, CairoUint16, CairoUint256, CairoUint32, CairoUint512, CairoUint64, CairoUint8, CairoUint96, type CairoVersion, type Call, type CallContractResponse, CallData, type CallDetails, type CallOptions, type CallResult, type Calldata, type CommonContractOptions, type CompiledContract, type CompiledSierra, type CompiledSierraCasm, type CompilerVersion, type CompleteDeclareContractPayload, type CompressedProgram, Contract, type ContractClass, type ContractClassIdentifier, type ContractClassPayload, type ContractClassResponse, type ContractEntryPointFields, type ContractFunction, ContractInterface, type ContractOptions, type ContractVersion, type DeclareAndDeployContractPayload, type DeclareContractPayload, type DeclareContractResponse, type DeclareContractTransaction, type DeclareDeployUDCResponse, type DeclareSignerDetails, type DeclareTransactionReceiptResponse, type DeclaredTransaction, type DeployAccountContractPayload, type DeployAccountContractTransaction, type DeployAccountSignerDetails, type DeployAccountTransactionReceiptResponse, type DeployAndInvokeTransaction, type DeployContractResponse, type DeployContractUDCResponse, type DeployTransaction, type DeployTransactionReceiptResponse, type DeployedAccountTransaction, Deployer, type DeployerCall, DeployerInterface, type Details, EDAMode, EDataAvailabilityMode, ESubscriptionTag, ETH_ADDRESS, ETraceFlag, ETransactionExecutionStatus, ETransactionStatus, ETransactionVersion, ETransactionVersion2, ETransactionVersion3, ETxnResponseFlag, type EVENTS_CHUNK, type EmittedEvent, EntryPointType, type EntryPointsByType, type ErrorReceiptResponseHelper, type EstimateFeeBulk, type EstimateFeeResponseBulkOverhead, type EstimateFeeResponseOverhead, EthSigner, type Event$1 as Event, type EventEntry, type EventFilter, type ExecutableDeployAndInvokeTransaction, type ExecutableDeployTransaction, type ExecutableInvokeTransaction, type ExecutableUserInvoke, type ExecutableUserTransaction, type ExecuteOptions, type ExecutionParameters, type FEE_ESTIMATE, type FELT, type FactoryParams, type FastExecuteAccountMethods, type FastExecuteProviderMethods, type FastExecuteResponse, type FastWaitForTransactionOptions, type FeeEstimate, type FeeMode, type FormatResponse, type FunctionAbi, type GasPrices, type GetBlockResponse, type GetTransactionReceiptResponse, type GetTransactionResponse, type GetTxReceiptResponseWithoutHelper, type HexCalldata, type Hint, type INITIAL_READS, Int, type InterfaceAbi, type Invocation, type Invocations, type InvocationsDetails, type InvocationsDetailsWithNonce, type InvocationsSignerDetails, type InvokeFunctionResponse, type InvokeTransaction, type InvokeTransactionReceiptResponse, type InvokedTransaction, type L1HandlerTransactionReceiptResponse, type L1_HANDLER_TXN, type LedgerPathCalculation, LedgerSigner111 as LedgerSigner, LedgerSigner111, LedgerSigner221, LedgerSigner231, type LegacyCompiledContract, type LegacyContractClass, type LegacyEvent, LibraryError, Literal, type LoadedContract, type LogLevel, LogLevelIndex, type Methods, type MultiDeployContractResponse, type MultiType, NON_ZERO_PREFIX, type Nonce, type OptionalPayload, type OutsideCall, type OutsideExecution, type OutsideExecutionOptions, OutsideExecutionTypesV1, OutsideExecutionTypesV2, OutsideExecutionVersion, type OutsideTransaction, type PRE_CONFIRMED_STATE_UPDATE, type PRICE_UNIT, type ParsedEvent, type ParsedEvents, type ParsedStruct, type ParsingStrategy, type PaymasterDetails, type PaymasterFeeEstimate, PaymasterInterface, type PaymasterOptions, PaymasterRpc, type PaymasterRpcOptions, type PaymasterTimeBounds, type PluginConfig, PluginManager, type PreConfirmedBlock, type PreConfirmedStateUpdate, type PreparedDeployAndInvokeTransaction, type PreparedDeployTransaction, type PreparedInvokeTransaction, type PreparedTransaction, type Program, RpcProvider as Provider, type ProviderHooks, ProviderInterface, type ProviderOptions, type ProviderOrAccount, type PythonicHints, type RESOURCE_PRICE, index$4 as RPC, rpc_0_10_2 as RPC0101, rpc_0_9_0 as RPC09, RPCResponseParser, type RPC_ERROR, type RPC_ERROR_SET, type RawArgs, type RawArgsArray, type RawArgsObject, type RawCalldata, type Receipt, ReceiptTx, type ReconnectOptions, type RequiredKeysOf, type ResourceBounds, type ResourceBoundsBN, type ResourceBoundsOverhead, ResponseParser, type RevertedTransactionReceiptResponse, type RevertedTransactionReceiptResponseHelper, RpcChannel, RpcError, RpcProvider, type RpcProviderOptions, type SIMULATION_FLAG, type STATE_UPDATE, type SierraContractClass, type SierraContractEntryPointFields, type SierraEntryPointsByType, type SierraProgramDebugInfo, type Signature, Signer, SignerInterface, type Simplify, type SimulateTransaction, type SimulateTransactionDetails, type SimulateTransactionOverhead, type SimulateTransactionOverheadResponse, type SimulateTransactionResponse, type SimulationFlags, type StarkProfile, type StarknetIdAccountMethods, StarknetIdImpl, type StarknetIdProviderMethods, type StarknetPlugin, type StateUpdate, type StateUpdateResponse, type StorageResponse, type SubscribeEventsParams, type SubscribeNewHeadsParams, type SubscribeNewTransactionReceiptsParams, type SubscribeNewTransactionsParams, type SubscribeTransactionStatusParams, Subscription, type SubscriptionBlockIdentifier, type SubscriptionNewHeadsEvent, type SubscriptionNewTransactionEvent, type SubscriptionNewTransactionReceiptsEvent, type SubscriptionOptions, type SubscriptionStarknetEventsEvent, type SubscriptionTransactionStatusEvent, type SuccessfulTransactionReceiptResponse, type SuccessfulTransactionReceiptResponseHelper, type TXN_EXECUTION_STATUS, type TXN_HASH, type TXN_STATUS, TimeoutError, type TipAnalysisOptions, type TipEstimate, type TipType, type TokenData, TransactionExecutionStatus, TransactionFinalityStatus, type TransactionReceipt, type TransactionReceiptCallbacks, type TransactionReceiptCallbacksDefault, type TransactionReceiptCallbacksDefined, type TransactionReceiptStatus, type TransactionReceiptValue, type TransactionStatus, type TransactionStatusReceiptSets, type TransactionTrace, TransactionType, type TransactionWithHash, type Tupled, type TypedContractV2, UINT_128_MAX, UINT_128_MIN, UINT_256_HIGH_MAX, UINT_256_HIGH_MIN, UINT_256_LOW_MAX, UINT_256_LOW_MIN, UINT_256_MAX, UINT_256_MIN, UINT_512_MAX, UINT_512_MIN, Uint, type Uint256, type Uint512, type UniversalDeployerContractPayload, type UniversalDetails, type UserInvoke, type UserTransaction, type V3DeclareSignerDetails, type V3DeployAccountSignerDetails, type V3InvocationsSignerDetails, type V3TransactionDetails, ValidateType, WalletAccount, WalletAccountV5, WebSocketChannel, type WebSocketModule, WebSocketNotConnectedError, type WebSocketOptions, type WeierstrassSignatureType, type WithOptions, addAddressPadding, brotherId, byteArray, cairo, compareVersions, config, constants, contractClassResponseToLegacyCompiledContract, contractLoader, createAbiParser, createTransactionReceipt, defaultDeployer, defaultPlugins, ec, encode, eth, index as events, extractContractHashes, fastExecute, fastParsingStrategy, getAbiVersion, type getBlockTransactionsTracesOptions, getChecksumAddress, type getContractVersionOptions, type getEstimateFeeBulkOptions, getGasPrices, getLedgerPathBuffer111 as getLedgerPathBuffer, getLedgerPathBuffer111, getLedgerPathBuffer221, type getSimulateTransactionOptions, getTipStatsFromBlocks, index$3 as hash, hdParsingStrategy, isAccount, isFileSystemAvailable, isNoConstructorValid, isPreConfirmedBlock, isPreConfirmedStateUpdate, isPreConfirmedTransaction, isRPC08Plus_ResourceBounds, isRPC08Plus_ResourceBoundsBN, isSierra, isSupportedSpecVersion, isV3Tx, isVersion, json, legacyDeployer, logger, merkle, num, outsideExecution, parseCalldataField, paymaster, provider, selector, shortString, src5, index$1 as stark, starknetId, toAnyPatchVersion, toApiVersion, index$2 as transaction, typedData, uint256$1 as uint256, units, v2 as v2hash, v3 as v3hash, validateAndParseAddress, validateChecksumAddress, verifyMessageInStarknet, type waitForTransactionOptions, connect as wallet, connectV5 as walletV5 };
@@ -114,7 +114,7 @@ var starknet = (() => {
114
114
  Provider: () => RpcProvider,
115
115
  ProviderInterface: () => ProviderInterface,
116
116
  RPC: () => api_exports3,
117
- RPC0101: () => rpc_0_10_1_exports,
117
+ RPC0101: () => rpc_0_10_2_exports,
118
118
  RPC09: () => rpc_0_9_0_exports,
119
119
  RPCResponseParser: () => RPCResponseParser,
120
120
  ReceiptTx: () => ReceiptTx,
@@ -1257,10 +1257,10 @@ var starknet = (() => {
1257
1257
  var _SupportedRpcVersion = {
1258
1258
  "0.9.0": "0.9.0",
1259
1259
  "0.10.0": "0.10.0",
1260
- "0.10.1": "0.10.1",
1260
+ "0.10.2": "0.10.2",
1261
1261
  v0_9_0: "0.9.0",
1262
1262
  v0_10_0: "0.10.0",
1263
- v0_10_1: "0.10.1"
1263
+ v0_10_2: "0.10.2"
1264
1264
  };
1265
1265
  var DEFAULT_GLOBAL_CONFIG = {
1266
1266
  rpcVersion: "0.10.0",
@@ -9208,6 +9208,7 @@ ${indent}}` : "}";
9208
9208
  );
9209
9209
  }
9210
9210
  function calculateInvokeTransactionHash(senderAddress, version, compiledCalldata, chainId, nonce, accountDeploymentData, nonceDataAvailabilityMode, feeDataAvailabilityMode, resourceBounds, tip, paymasterData, proofFacts) {
9211
+ const proofFactsAdditionalData = proofFacts?.length ? [poseidonHashMany(AToBI(proofFacts))] : [];
9211
9212
  return calculateTransactionHashCommon(
9212
9213
  _TransactionHashPrefix.INVOKE,
9213
9214
  version,
@@ -9222,7 +9223,7 @@ ${indent}}` : "}";
9222
9223
  [
9223
9224
  poseidonHashMany(AToBI(accountDeploymentData)),
9224
9225
  poseidonHashMany(AToBI(compiledCalldata)),
9225
- ...proofFacts ? AToBI(proofFacts) : []
9226
+ ...proofFactsAdditionalData
9226
9227
  ]
9227
9228
  );
9228
9229
  }
@@ -11665,17 +11666,17 @@ ${indent}}` : "}";
11665
11666
  }
11666
11667
  };
11667
11668
 
11668
- // src/channel/rpc_0_10_1.ts
11669
- var rpc_0_10_1_exports = {};
11670
- __export(rpc_0_10_1_exports, {
11669
+ // src/channel/rpc_0_10_2.ts
11670
+ var rpc_0_10_2_exports = {};
11671
+ __export(rpc_0_10_2_exports, {
11671
11672
  RpcChannel: () => RpcChannel2
11672
11673
  });
11673
11674
  var RpcChannel2 = class {
11674
- id = "RPC0.10.1";
11675
+ id = "RPC0.10.2";
11675
11676
  /**
11676
11677
  * RPC specification version this Channel class implements
11677
11678
  */
11678
- channelSpecVersion = _SupportedRpcVersion.v0_10_1;
11679
+ channelSpecVersion = _SupportedRpcVersion.v0_10_2;
11679
11680
  nodeUrl;
11680
11681
  headers;
11681
11682
  requestId;
@@ -14550,12 +14551,12 @@ ${indent}}` : "}";
14550
14551
  if (isVersion("0.9", options.specVersion)) {
14551
14552
  this.channel = new rpc_0_9_0_exports.RpcChannel({ ...options, waitMode: false });
14552
14553
  } else if (isVersion("0.10", options.specVersion)) {
14553
- this.channel = new rpc_0_10_1_exports.RpcChannel({ ...options, waitMode: false });
14554
+ this.channel = new rpc_0_10_2_exports.RpcChannel({ ...options, waitMode: false });
14554
14555
  } else throw new Error(`unsupported channel for spec version: ${options.specVersion}`);
14555
14556
  } else if (isVersion("0.9", config.get("rpcVersion"))) {
14556
14557
  this.channel = new rpc_0_9_0_exports.RpcChannel({ ...options, waitMode: false });
14557
14558
  } else if (isVersion("0.10", config.get("rpcVersion"))) {
14558
- this.channel = new rpc_0_10_1_exports.RpcChannel({ ...options, waitMode: false });
14559
+ this.channel = new rpc_0_10_2_exports.RpcChannel({ ...options, waitMode: false });
14559
14560
  } else throw new Error("unable to define spec version for channel");
14560
14561
  this.responseParser = new RPCResponseParser(options?.resourceBoundsOverhead);
14561
14562
  const plugins = options?.plugins === false ? [] : options?.plugins ?? defaultPlugins;
@@ -14584,7 +14585,7 @@ ${indent}}` : "}";
14584
14585
  if (isVersion("0.10", spec)) {
14585
14586
  return new this({
14586
14587
  ...optionsOrProvider,
14587
- specVersion: _SupportedRpcVersion.v0_10_1
14588
+ specVersion: _SupportedRpcVersion.v0_10_2
14588
14589
  });
14589
14590
  }
14590
14591
  throw new LibraryError(
@@ -14648,7 +14649,7 @@ ${indent}}` : "}";
14648
14649
  return this.channel.getBlockWithTxHashes(blockIdentifier);
14649
14650
  }
14650
14651
  async getBlockWithTxs(blockIdentifier, options) {
14651
- if (this.channel instanceof rpc_0_10_1_exports.RpcChannel) {
14652
+ if (this.channel instanceof rpc_0_10_2_exports.RpcChannel) {
14652
14653
  return this.channel.getBlockWithTxs(blockIdentifier, options);
14653
14654
  }
14654
14655
  return this.channel.getBlockWithTxs(blockIdentifier);
@@ -14705,7 +14706,7 @@ ${indent}}` : "}";
14705
14706
  return solidityUint256PackedKeccak256(params);
14706
14707
  }
14707
14708
  async getBlockWithReceipts(blockIdentifier, options) {
14708
- if (this.channel instanceof rpc_0_10_1_exports.RpcChannel) {
14709
+ if (this.channel instanceof rpc_0_10_2_exports.RpcChannel) {
14709
14710
  return this.channel.getBlockWithReceipts(blockIdentifier, options);
14710
14711
  }
14711
14712
  return this.channel.getBlockWithReceipts(blockIdentifier);
@@ -14715,7 +14716,7 @@ ${indent}}` : "}";
14715
14716
  return this.channel.getBlockStateUpdate(blockIdentifier, contractAddresses);
14716
14717
  }
14717
14718
  async getBlockTransactionsTraces(blockIdentifier, options) {
14718
- if (this.channel instanceof rpc_0_10_1_exports.RpcChannel) {
14719
+ if (this.channel instanceof rpc_0_10_2_exports.RpcChannel) {
14719
14720
  return this.channel.getBlockTransactionsTraces(blockIdentifier, options);
14720
14721
  }
14721
14722
  return this.channel.getBlockTransactionsTraces(blockIdentifier);
@@ -14727,13 +14728,13 @@ ${indent}}` : "}";
14727
14728
  return this.getTransactionByHash(txHash, options);
14728
14729
  }
14729
14730
  async getTransactionByHash(txHash, options) {
14730
- if (this.channel instanceof rpc_0_10_1_exports.RpcChannel) {
14731
+ if (this.channel instanceof rpc_0_10_2_exports.RpcChannel) {
14731
14732
  return this.channel.getTransactionByHash(txHash, options);
14732
14733
  }
14733
14734
  return this.channel.getTransactionByHash(txHash);
14734
14735
  }
14735
14736
  async getTransactionByBlockIdAndIndex(blockIdentifier, index, options) {
14736
- if (this.channel instanceof rpc_0_10_1_exports.RpcChannel) {
14737
+ if (this.channel instanceof rpc_0_10_2_exports.RpcChannel) {
14737
14738
  return this.channel.getTransactionByBlockIdAndIndex(blockIdentifier, index, options);
14738
14739
  }
14739
14740
  return this.channel.getTransactionByBlockIdAndIndex(blockIdentifier, index);
@@ -14841,7 +14842,7 @@ ${indent}}` : "}";
14841
14842
  return this.channel.getSyncingStats();
14842
14843
  }
14843
14844
  async getEvents(eventFilter) {
14844
- if (this.channel instanceof rpc_0_10_1_exports.RpcChannel) {
14845
+ if (this.channel instanceof rpc_0_10_2_exports.RpcChannel) {
14845
14846
  return this.channel.getEvents(eventFilter);
14846
14847
  }
14847
14848
  if (this.channel instanceof rpc_0_9_0_exports.RpcChannel) {